     
/***********************************************
* Ultimate Fade-In Slideshow (v1.51): © Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var fadeimages=new Array()
//script for events slide show
//SET IMAGE PATHS. Extend or contract array as needed
//fadeimages[0]=["fileadmin/user_upload/bowls_aus/Events/QLD_Open/10/2010-QLD-Open-Logo-274.gif", "http://www.bowlsaustralia.com.au/index.php?id=2066", "_top"]
//fadeimages[0]=["fileadmin/user_upload/bowls_aus/scripts/scrollimages/Aus-Indoor-Champ-2010_274x146.gif", "http://www.bowlsaustralia.com.au/index.php?id=2148", "_top"]
fadeimages[3]=["fileadmin/user_upload/bowls_aus/scripts/scrollimages/Australian-Under-18-Championships-2010-274.gif", "http://www.bowlsaustralia.com.au/index.php?id=2275", "_top"]
//fadeimages[0]=["fileadmin/user_upload/bowls_aus/scripts/scrollimages/NSW-Open-Logo-2010-274.gif", "http://www.bowlsaustralia.com.au/index.php?id=2087", "_top"]
//fadeimages[0]=["fileadmin/user_upload/bowls_aus/scripts/scrollimages/AO2010-Logo-Qualifying274.gif", "http://www.bowlsaustralia.com.au/index.php?id=2232", "_top"] 
//fadeimages[0]=["fileadmin/user_upload/bowls_aus/scripts/scrollimages/AERF_2010_logo.gif", "http://www.bowlsaustralia.com.au/fileadmin/user_upload/bowls_aus/Events/Australian_Open/10/index.htm", "_top"]
//fadeimages[0]=["fileadmin/user_upload/bowls_aus/scripts/scrollimages/Trans-Tasman-2010-274.gif", "http://www.bowlsaustralia.com.au/index.php?id=1934", "_top"]
//fadeimages[0]=["fileadmin/user_upload/bowls_aus/scripts/scrollimages/AO2010-Logo274.gif", "http://www.bowlsaustralia.com.au/index.php?id=1988", "_top"]
//fadeimages[0]=["fileadmin/user_upload/bowls_aus/scripts/scrollimages/Sides2010_274x146.gif", "http://www.bowlsaustralia.com.au/index.php?id=1923", "_top"]
fadeimages[1]=["fileadmin/user_upload/bowls_aus/Events/CofCs/10/2010-C-of-Cs-274.gif", "http://www.bowlsaustralia.com.au/index.php?id=2784", "_top"]
fadeimages[2]=["fileadmin/user_upload/bowls_aus/Events/International_events/Delhi_CWG_2010/Delhi_logo_274.gif", "http://www.bowlsaustralia.com.au/index.php?id=1808", "_top"]
fadeimages[0]=["fileadmin/user_upload/bowls_aus/Events/NSW_Open/10/NSW-Open-Logo-2010-274.gif", "http://www.bowlsaustralia.com.au/index.php?id=2087", "_top"]
//fadeimages[0]=["fileadmin/user_upload/bowls_aus/Events/QLD_Open/10/QLDOpen_results_tile.gif", "http://www.sportingpulse.com/assoc_page.cgi?c=0-7704-0-0-0&a=COMPS", "_top"]
//fadeimages[0]=["fileadmin/user_upload/bowls_aus/Events/Australian_Indoors/10/Results-tile.gif", "http://www.sportingpulse.com/assoc_page.cgi?c=0-7704-0-0-0&a=COMPS", "_top"]


//script for partners slide show
var fadeimages2=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages2[0]=["fileadmin/user_upload/bowls_aus/Sponsor_Logos/asc.png", "http://www.ausport.gov.au/", "_new"]
fadeimages2[1]=["fileadmin/user_upload/bowls_aus/Sponsor_Logos/TB_logo_black_red_274.gif", "http://www.taylorbowls.com/", "_new"]
fadeimages2[10]=["fileadmin/user_upload/bowls_aus/scripts/scrollimages/Fit4Bowls274.gif", "http://www.fit4bowls.com.au/", "_new"]
fadeimages2[2]=["fileadmin/user_upload/bowls_aus/Sponsor_Logos/vic_tptb.png", "http://www.vic.gov.au/", "_new"]
fadeimages2[11]=["fileadmin/user_upload/bowls_aus/scripts/scrollimages/Playbytherules274.jpg", "http://www.bowlsaustralia.com.au/index.php?id=2263", "_new"]
fadeimages2[3]=["fileadmin/user_upload/bowls_aus/Sponsor_Logos/kombat.png", "http://www.kombat.com.au/", "_new"]
fadeimages2[4]=["fileadmin/user_upload/bowls_aus/Sponsor_Logos/tigerturf.png", "http://www.tigerturfworld.com/au/applications/club-sport/bowls", "_new"]
fadeimages2[5]=["fileadmin/user_upload/bowls_aus/Sponsor_Logos/the_ghan.png", "http://www.gsr.com.au/", "_new"]
fadeimages2[6]=["fileadmin/user_upload/bowls_aus/Sponsor_Logos/comm_games.png", "http://www.commonwealthgames.org.au/", "_new"]
fadeimages2[7]=["fileadmin/user_upload/bowls_aus/Sponsor_Logos/abc_sport.png", "http://www.abc.net.au/sport/", "_new"]
fadeimages2[8]=["fileadmin/user_upload/bowls_aus/Sponsor_Logos/aer.png", "http://www.aerf.com.au/home.aspx", "_new"]
fadeimages2[9]=["fileadmin/user_upload/bowls_aus/Sponsor_Logos/2xU.png", "http://www.2xu.com/", "_new"]
fadeimages2[12]=["fileadmin/user_upload/bowls_aus/scripts/scrollimages/Fox-Sports274.gif", "http://www.foxsports.com.au/", "_new"]
fadeimages2[13]=["fileadmin/user_upload/bowls_aus/scripts/scrollimages/Play_for_life.gif", "http://www.ausport.gov.au/participating/find_a_sporting_club", "_new"]
fadeimages2[14]=["fileadmin/user_upload/bowls_aus/scripts/scrollimages/EcoCASH_ATM_Logo-for-signage_274.gif", "http://grgatm.com/EcoCashATM/tabid/74/Default.aspx", "_new"]
fadeimages2[15]=["fileadmin/user_upload/bowls_aus/scripts/scrollimages/ASICS-LOGO_274.gif", "http://www.asics.com.au", "_new"]


//script for bottom right tile slide show
var fadeimages3=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
//fadeimages3[0]=["fileadmin/user_upload/bowls_aus/Sponsor_Logos/Homepage_tile/NSW_Open_2009_homepage_tile.jpg", "http://www.sportingpulse.com/assoc_page.cgi?c=1-7357-0-0-0&a=COMPS", "_new"]
//fadeimages3[0]=["fileadmin/user_upload/bowls_aus/Sponsor_Logos/Homepage_tile/ASC_2009_media_awards.jpg", "http://www.ausport.gov.au/media_awards", "_new"]
//fadeimages3[0]=["fileadmin/user_upload/bowls_aus/scripts/scrollimages/Juniors_homepage_tile.jpg", "http://www.sportingpulse.com/assoc_page.cgi?assoc=7359&pID=1", "_new"]
//fadeimages3[0]=["fileadmin/user_upload/bowls_aus/Sponsor_Logos/Homepage_tile/estore-animated-gif-2010-1.gif", "http://www.estore.bowlsaustralia.com.au", "_new"]
//fadeimages3[0]=["fileadmin/user_upload/bowls_aus/Sponsor_Logos/Homepage_tile/Junior-policy-homepage-tile.gif", "http://www.ezypage.com/bowlsau_junior_policy", "_new"]
//fadeimages3[0]=["fileadmin/user_upload/bowls_aus/Sponsor_Logos/Homepage_tile/Sides-2010-bottom-right-tile.gif", "http://www.sportingpulse.com/assoc_page.cgi?c=0-7704-0-0-0&a=COMPS", "_new"]
fadeimages3[0]=["fileadmin/user_upload/bowls_aus/Sponsor_Logos/Homepage_tile/Fit4Bowls-health-benefits-bottom-right-tile.gif", "http://www.fit4bowls.com.au", "_new"]
//fadeimages3[0]=["fileadmin/user_upload/bowls_aus/Sponsor_Logos/Homepage_tile/Win_UP_DVD.jpg", "http://www.fit4bowls.com.au", "_new"]


//script for Australian Squad image rotation
var fadeimages4=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages4[0]=["fileadmin/user_upload/bowls_aus/Player_Central/Australian_squad/2009/150/Anne_Johns.gif", "http://www.bowlsaustralia.com.au/index.php?id=88", "_new"]
fadeimages4[1]=["fileadmin/user_upload/bowls_aus/Events/International_events/TransTasman/10/Lynsey-Armitage.gif", "http://www.bowlsaustralia.com.au/index.php?id=85", "_new"]
fadeimages4[2]=["fileadmin/user_upload/bowls_aus/Player_Central/Australian_squad/2009/150/Kelsey_Cottrell.gif", "http://www.bowlsaustralia.com.au/index.php?id=86", "_new"]
fadeimages4[3]=["fileadmin/user_upload/bowls_aus/Player_Central/Australian_squad/2009/150/Claire_Duke.gif", "http://www.bowlsaustralia.com.au/index.php?id=87", "_new"]
fadeimages4[4]=["fileadmin/user_upload/bowls_aus/Player_Central/Australian_squad/2009/150/Julie_Keegan.gif", "http://www.bowlsaustralia.com.au/index.php?id=89", "_new"]
fadeimages4[5]=["fileadmin/user_upload/bowls_aus/Player_Central/Australian_squad/2009/150/Penny_Landherr.gif", "http://www.bowlsaustralia.com.au/index.php?id=1948", "_new"]
fadeimages4[6]=["fileadmin/user_upload/bowls_aus/Player_Central/Australian_squad/2009/150/Karen_Murphy.gif", "http://www.bowlsaustralia.com.au/index.php?id=90", "_new"]
fadeimages4[7]=["fileadmin/user_upload/bowls_aus/Player_Central/Australian_squad/2009/150/Sharyn_Renshaw.gif", "http://www.bowlsaustralia.com.au/index.php?id=91", "_new"]
fadeimages4[8]=["fileadmin/user_upload/bowls_aus/Player_Central/Australian_squad/2009/150/Sam_Shannahan.gif", "http://www.bowlsaustralia.com.au/index.php?id=92", "_new"]
fadeimages4[9]=["fileadmin/user_upload/bowls_aus/Player_Central/Australian_squad/2009/150/Kelli_Wray.gif", "http://www.bowlsaustralia.com.au/index.php?id=93", "_new"]
fadeimages4[10]=["fileadmin/user_upload/bowls_aus/Player_Central/Australian_squad/2009/150/Gerard_Beath.gif", "http://www.bowlsaustralia.com.au/index.php?id=1959", "_new"]
fadeimages4[11]=["fileadmin/user_upload/bowls_aus/Player_Central/Australian_squad/2009/150/Mark_Berghofer.gif", "http://www.bowlsaustralia.com.au/index.php?id=95", "_new"]
fadeimages4[12]=["fileadmin/user_upload/bowls_aus/Player_Central/Australian_squad/2009/150/Michael_Cronin.gif", "http://www.bowlsaustralia.com.au/index.php?id=1960", "_new"]
//fadeimages4[13]=["fileadmin/user_upload/bowls_aus/Player_Central/Australian_squad/2009/150/Mark_Jacobsen.gif", "http://www.bowlsaustralia.com.au/index.php?id=96", "_new"]
fadeimages4[14]=["fileadmin/user_upload/bowls_aus/Player_Central/Australian_squad/2009/150/Anthony_Kiepe.gif", "http://www.bowlsaustralia.com.au/index.php?id=158", "_new"]
fadeimages4[15]=["fileadmin/user_upload/bowls_aus/Player_Central/Australian_squad/2009/150/Lee_Schraner.gif", "http://www.bowlsaustralia.com.au/index.php?id=1961", "_new"]
fadeimages4[16]=["fileadmin/user_upload/bowls_aus/Player_Central/Australian_squad/2009/150/Leif_Selby.gif", "http://www.bowlsaustralia.com.au/index.php?id=100", "_new"]
fadeimages4[17]=["fileadmin/user_upload/bowls_aus/Player_Central/Australian_squad/2009/150/Wayne_Turley.gif", "http://www.bowlsaustralia.com.au/index.php?id=1763", "_new"]
fadeimages4[13]=["fileadmin/user_upload/bowls_aus/Player_Central/Australian_squad/2009/150/Brett_Wilkie.gif", "http://www.bowlsaustralia.com.au/index.php?id=1679", "_new"]


//script for Silver tier image rotation
var fadeimages5=new Array() //2nd array set example. Remove or add more sets as needed.
fadeimages5[0]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Terry_Antram.gif", "http://www.bowlsaustralia.com.au/index.php?id=2481", "_new"]
fadeimages5[1]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Sean_Baker.gif", "http://www.bowlsaustralia.com.au/index.php?id=2482", "_new"]
fadeimages5[2]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Kurt_Brown.gif", "http://www.bowlsaustralia.com.au/index.php?id=2483", "_new"]
//fadeimages5[0]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Mark_Casey.gif", "http://www.bowlsaustralia.com.au/index.php?id=2484", "_new"]
fadeimages5[3]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/David_Ferguson.gif", "http://www.bowlsaustralia.com.au/index.php?id=2485", "_new"]
fadeimages5[4]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Dylan_Fisher.gif", "http://www.bowlsaustralia.com.au/index.php?id=2486", "_new"]
//fadeimages5[0]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Andrew_Gardner.gif", "http://www.bowlsaustralia.com.au/index.php?id=2487", "_new"]
//fadeimages5[3]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/John_Goddard.gif", "http://www.bowlsaustralia.com.au/index.php?id=2488", "_new"]
//fadeimages5[4]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Carl_Healey.gif", "http://www.bowlsaustralia.com.au/index.php?id=2489", "_new"]
//fadeimages5[0]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Max_Kleinig.gif", "http://www.bowlsaustralia.com.au/index.php?id=2490", "_new"]
//fadeimages5[5]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Ashley_Klose.gif", "http://www.bowlsaustralia.com.au/index.php?id=2491", "_new"]
//fadeimages5[6]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Jesse_McKenzie.gif", "http://www.bowlsaustralia.com.au/index.php?id=2492", "_new"]
//fadeimages5[0]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/David_McLean.gif", "http://www.bowlsaustralia.com.au/index.php?id=2493", "_new"]
//fadeimages5[7]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Matthew_Miles.gif", "http://www.bowlsaustralia.com.au/index.php?id=2494", "_new"]
//fadeimages5[8]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/David_Opie.gif", "http://www.bowlsaustralia.com.au/index.php?id=2495", "_new"]
fadeimages5[5]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Nathan_Rice.gif", "http://www.bowlsaustralia.com.au/index.php?id=2496", "_new"]
//fadeimages5[10]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Neville_Rodda.gif", "http://www.bowlsaustralia.com.au/index.php?id=2497", "_new"]
//fadeimages5[11]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Aron_Sherriff.gif", "http://www.bowlsaustralia.com.au/index.php?id=2498", "_new"]
//fadeimages5[12]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Todd_Simmons.gif", "http://www.bowlsaustralia.com.au/index.php?id=2499", "_new"]
fadeimages5[6]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Trystan_Smallacombe.gif", "http://www.bowlsaustralia.com.au/index.php?id=2500", "_new"]
fadeimages5[7]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Scott_Taylor.gif", "http://www.bowlsaustralia.com.au/index.php?id=2501", "_new"]
//fadeimages5[0]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Natasha_VanEldik.gif", "http://www.bowlsaustralia.com.au/index.php?id=2502", "_new"]
fadeimages5[8]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Therese_Hastings.gif", "http://www.bowlsaustralia.com.au/index.php?id=2503", "_new"]
fadeimages5[9]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Lisa_Mitchell.gif", "http://www.bowlsaustralia.com.au/index.php?id=2504", "_new"]
fadeimages5[10]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Carla_Odgers.gif", "http://www.bowlsaustralia.com.au/index.php?id=2505", "_new"]
//fadeimages5[16]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Lisa_Prideaux.gif", "http://www.bowlsaustralia.com.au/index.php?id=2506", "_new"]
fadeimages5[11]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Kristina_Krstic.gif", "http://www.bowlsaustralia.com.au/index.php?id=2507", "_new"]
fadeimages5[12]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Rebecca_Quail.gif", "http://www.bowlsaustralia.com.au/index.php?id=2508", "_new"]
fadeimages5[13]=["fileadmin/user_upload/bowls_aus/Player_Central/Silver_tier/Nov09_150/Beth_Quinlan.gif", "http://www.bowlsaustralia.com.au/index.php?id=2518", "_new"]


//script for featured athlete image rotation
var fadeimages6=new Array() //2nd array set example. Remove or add more sets as needed.
fadeimages6[0]=["fileadmin/user_upload/bowls_aus/Player_Central/Featured_athlete/Featured-athlete-Kristina-Krstic.gif", "http://www.bowlsaustralia.com.au/index.php?id=2507", "_new"]
fadeimages6[1]=["fileadmin/user_upload/bowls_aus/Player_Central/Featured_athlete/Featured-athlete-Lynsey-Armitage.gif", "http://www.bowlsaustralia.com.au/index.php?id=85", "_new"]
fadeimages6[2]=["fileadmin/user_upload/bowls_aus/Player_Central/Featured_athlete/Featured-athlete-Aron-Sherriff.gif", "http://www.bowlsaustralia.com.au/index.php?id=2498", "_new"]
//fadeimages6[3]=["fileadmin/user_upload/bowls_aus/Player_Central/Featured_athlete/Featured-athlete-Lee-Schraner.gif", "http://www.bowlsaustralia.com.au/index.php?id=1961", "_new"]


//script for banner on home page under news image rotation
var fadeimages7=new Array() //2nd array set example. Remove or add more sets as needed.
//fadeimages7[0]=["fileadmin/user_upload/bowls_aus/Sponsor_Logos/Home_page_under_news/Bowlsbet_banner_ad.gif", "http://www.bowlsbet.com.au/Home/Default.aspx", "_new"]
fadeimages7[0]=["fileadmin/user_upload/bowls_aus/Sponsor_Logos/Home_page_under_news/BowlsNet.gif", "http://www.bowlsnet.com.au", "_new"]
//fadeimages7[0]=["fileadmin/user_upload/bowls_aus/Sponsor_Logos/Home_page_under_news/TransTas.gif", "http://www.bowlsaustralia.com.au/index.php?id=2694", "_new"]
//fadeimages7[0]=["fileadmin/user_upload/bowls_aus/Events/QLD_Open/10/animated.gif", "http://www.bowlsaustralia.com.au/index.php?id=2797", "_top"]
//fadeimages7[0]=["fileadmin/user_upload/bowls_aus/Events/Australian_Indoors/10/Indoors_animated_slow.gif", "http://www.bowlsaustralia.com.au/index.php?id=2912", "_top"]

//script for right content
var fadeimages8=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages8[0]=["fileadmin/user_upload/bowls_aus/Sponsor_Logos/Right_content/BOWLS_AUS_158X600_v1.swf", "http://www.bowlsaustralia.com.au/index.php?id=2929", "_top"]
fadeimages8[1]=["fileadmin/user_upload/bowls_aus/Sponsor_Logos/Right_content/BOWLS_AUS_158X600_v2.swf", "http://www.bowlsaustralia.com.au/index.php?id=2929", "_top"]

var fadebgcolor="white"





////NO need to edit beyond here/////////////
 
var fadearray=new Array() //array to cache fadeshow instances
var fadeclear=new Array() //array to cache corresponding clearinterval pointers
 
var dom=(document.getElementById) //modern dom browsers
var iebrowser=document.all
 
function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){
this.pausecheck=pause
this.mouseovercheck=0
this.delay=delay
this.degree=10 //initial opacity degree (10%)
this.curimageindex=0
this.nextimageindex=1
fadearray[fadearray.length]=this
this.slideshowid=fadearray.length-1
this.canvasbase="canvas"+this.slideshowid
this.curcanvas=this.canvasbase+"_0"
if (typeof displayorder!="undefined")
theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)
this.theimages=theimages
this.imageborder=parseInt(borderwidth)
this.postimages=new Array() //preload images
for (p=0;p<theimages.length;p++){
this.postimages[p]=new Image()
this.postimages[p].src=theimages[p][0]
}
 
var fadewidth=fadewidth+this.imageborder*2
var fadeheight=fadeheight+this.imageborder*2
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)
document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div></div>')
else
document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox
this.startit()
else{
this.curimageindex++
setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay)
}
}

function fadepic(obj){
if (obj.degree<100){
obj.degree+=10
if (obj.tempobj.filters&&obj.tempobj.filters[0]){
if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+
obj.tempobj.filters[0].opacity=obj.degree
else //else if IE5.5-
obj.tempobj.style.filter="alpha(opacity="+obj.degree+")"
}
else if (obj.tempobj.style.MozOpacity)
obj.tempobj.style.MozOpacity=obj.degree/101
else if (obj.tempobj.style.KhtmlOpacity)
obj.tempobj.style.KhtmlOpacity=obj.degree/100
else if (obj.tempobj.style.opacity&&!obj.tempobj.filters)
obj.tempobj.style.opacity=obj.degree/101
}
else{
clearInterval(fadeclear[obj.slideshowid])
obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"
obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)
obj.populateslide(obj.tempobj, obj.nextimageindex)
obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0
setTimeout("fadearray["+obj.slideshowid+"].rotateimage()", obj.delay)
}
}
 
fadeshow.prototype.populateslide=function(picobj, picindex){
var slideHTML=""
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML+='</a>'
picobj.innerHTML=slideHTML
}
 
 
fadeshow.prototype.rotateimage=function(){
if (this.pausecheck==1) //if pause onMouseover enabled, cache object
var cacheobj=this
if (this.mouseovercheck==1)
setTimeout(function(){cacheobj.rotateimage()}, 100)
else if (iebrowser&&dom||dom){
this.resetit()
var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
crossobj.style.zIndex++
fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50)
this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
}
else{
var ns4imgobj=document.images['defaultslide'+this.slideshowid]
ns4imgobj.src=this.postimages[this.curimageindex].src
}
this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0
}
 
fadeshow.prototype.resetit=function(){
this.degree=10
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
if (crossobj.filters&&crossobj.filters[0]){
if (typeof crossobj.filters[0].opacity=="number") //if IE6+
crossobj.filters(0).opacity=this.degree
else //else if IE5.5-
crossobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=this.degree/101
else if (crossobj.style.KhtmlOpacity)
crossobj.style.KhtmlOpacity=this.degree/100
else if (crossobj.style.opacity&&!crossobj.filters)
crossobj.style.opacity=this.degree/101
}
 
 
fadeshow.prototype.startit=function(){
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
this.populateslide(crossobj, this.curimageindex)
if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER
var cacheobj=this
var crossobjcontainer=iebrowser? iebrowser["master"+this.slideshowid] : document.getElementById("master"+this.slideshowid)
crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}
crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}
}
this.rotateimage()
}