// Cool CSS Menu- By JavaScriptKit.com (http://www.javascriptkit.com)
// For this and over 400+ free scripts, visit JavaScript Kit- http://www.javascriptkit.com/
// Fading routine based on Dynamic Drive script: http://www.dynamicdrive.com/dynamicindex4/highlightgrad.php
// This notice must stay intact for use

var baseopacity=0

function showpic(func){

if (!document.getElementById)
return
textcontainerobj=document.getElementById("content")
browserdetect=textcontainerobj.filters? "ie" : typeof textcontainerobj.style.MozOpacity=="string"? "mozilla" : ""
instantset(baseopacity)

//* THESE ARE THE RANDOM PICS GENERATED ON THE PICS PAGE...all numbers + 500 //
if (func==0)
	thetext="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='550' height='400' id='slide1' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='julieslide/slide1.swf' /><param name='quality' value='best' /><param name='bgcolor' value='#000000' /><embed src='julieslide/slide1.swf' quality='best' bgcolor='#000000' width='550' height='400' name='slide1' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>"
else if (func==1)
	thetext="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='550' height='400' id='slide2' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='julieslide/slide2.swf' /><param name='quality' value='best' /><param name='bgcolor' value='#000000' /><embed src='julieslide/slide2.swf' quality='best' bgcolor='#000000' width='550' height='400' name='slide2' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>"

else if (func==2)
	thetext="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='550' height='400' id='slide3' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='julieslide/slide3.swf' /><param name='quality' value='best' /><param name='bgcolor' value='#000000' /><embed src='julieslide/slide3.swf' quality='best' bgcolor='#000000' width='550' height='400' name='slide3' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>"
	
else
	thetext="<img src='http://www.nasserq.com/nasserq/randgenpics/25.jpg' width=320><br>"









	

document.getElementById("content").innerHTML=thetext
highlighting=setInterval("gradualfade(textcontainerobj)",50)
}

function hidetext(){
cleartimer()
instantset(baseopacity)
}

function instantset(degree){
if (browserdetect=="mozilla")
textcontainerobj.style.MozOpacity=degree/100
//else if (browserdetect=="ie")
//textcontainerobj.filters.alpha.opacity=degree
else if (document.getElementById && baseopacity==0)
document.getElementById("content").innerHTML=""
}

function cleartimer(){
if (window.highlighting) clearInterval(highlighting)
}

function gradualfade(cur2){
if (browserdetect=="mozilla" && cur2.style.MozOpacity<1)
cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+0.2, 0.99)
else if (browserdetect=="ie" && cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=15
else if (window.highlighting)
clearInterval(highlighting)
}

//////////////////////////////////////////////RANDOM IMAGE GENERATOR///////////////////////////////////////////////





function flashpick(){
var rn=Math.floor(Math.random()*3)
showpic(rn)
}

















