// JavaScript Document


/***********************************************
* 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()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["http://www.adventurefilmschool.com/past_students/teva_2009/images/aileen_torres_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/teva_2009/aileen_torres.php", ""]
fadeimages[1]=["http://www.adventurefilmschool.com/past_students/teva_2009/images/chehala_leonard_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/teva_2009/chehala_leonard.php", ""]
fadeimages[2]=["http://www.adventurefilmschool.com/past_students/teva_2009/images/eileen_kiza_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/teva_2009/eileen_kiza.php", ""]
fadeimages[3]=["http://www.adventurefilmschool.com/past_students/teva_2009/images/gretchen_powers_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/teva_2009/gretchen_powers.php", ""]
fadeimages[4]=["http://www.adventurefilmschool.com/past_students/teva_2009/images/jose_saldana_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/teva_2009/jose_saldana.php", ""]
fadeimages[5]=["http://www.adventurefilmschool.com/past_students/teva_2009/images/josh_lyons_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/teva_2009/josh_lyons.php", ""]
fadeimages[6]=["http://www.adventurefilmschool.com/past_students/teva_2009/images/stacy_jacob_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/teva_2009/stacy_jacob.php", ""]
fadeimages[7]=["http://www.adventurefilmschool.com/past_students/teva_2009/images/stephanie_pearson_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/teva_2009/stephanie_pearson.php", ""]
fadeimages[8]=["http://www.adventurefilmschool.com/past_students/teva_2009/images/susan_feddema_leonard_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/teva_2009/susan_feddema_leonard.php", ""]
fadeimages[9]=["http://www.adventurefilmschool.com/past_students/teva_2009/images/trevor_halperin_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/teva_2009/trevor_halperin.php", ""]
fadeimages[10]=["http://www.adventurefilmschool.com/past_students/teva_2008/images/philip_johnson_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/teva_2008/philip_johnson.php", ""] 
fadeimages[11]=["http://www.adventurefilmschool.com/past_students/teva_2008/images/sam_lowe_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/teva_2008/sam_lowe.php", ""] 
fadeimages[12]=["http://www.adventurefilmschool.com/past_students/kili_2007/images/emeka_ngwube_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/kili_2007/emeka_ngwube.php", ""] 
fadeimages[13]=["http://www.adventurefilmschool.com/past_students/kili_2007/images/josh_levine_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/kili_2007/josh_levine.php", ""] 
fadeimages[14]=["http://www.adventurefilmschool.com/past_students/kili_2007/images/thayer_walker_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/kili_2007/thayer_walker.php", ""] 
fadeimages[15]=["http://www.adventurefilmschool.com/past_students/peru_2008/images/alex_williams_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/peru_2008/alex_williams.php", ""] 
fadeimages[16]=["http://www.adventurefilmschool.com/past_students/peru_2008/images/anthony_cerretani_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/peru_2008/anthony_cerretani.php", ""] 
fadeimages[17]=["http://www.adventurefilmschool.com/past_students/peru_2008/images/celina_noone_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/peru_2008/celina_noone.php", ""]
fadeimages[18]=["http://www.adventurefilmschool.com/past_students/peru_2008/images/david_thanh_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/peru_2008/david_thanh.php", ""] 
fadeimages[19]=["http://www.adventurefilmschool.com/past_students/peru_2008/images/jeff_evans_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/peru_2008/jeff_evans.php", ""] 
fadeimages[20]=["http://www.adventurefilmschool.com/past_students/peru_2008/images/karen_malmqvist_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/peru_2008/karen_malmqvist.php", ""] 
fadeimages[21]=["http://www.adventurefilmschool.com/past_students/peru_2008/images/krista_barbour_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/peru_2008/krista_barbour.php", ""] 
fadeimages[22]=["http://www.adventurefilmschool.com/past_students/peru_2008/images/lennen_madere_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/peru_2008/lennen_madere.php", ""] 
fadeimages[23]=["http://www.adventurefilmschool.com/past_students/peru_2008/images/michael_brown_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/peru_2008/michael_brown.php", ""] 
fadeimages[24]=["http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/images/alex_williams_small_slide.JPG", "http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/alex_williams.php", ""] 
fadeimages[25]=["http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/images/anthony_claudia_small_slide.JPG", "http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/anthony_claudia.php", ""] 
fadeimages[26]=["http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/images/ashley_weller_small_slide.JPG", "http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/ashley_weller.php", ""] 
fadeimages[27]=["http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/images/carole_wefler_small_slide.JPG", "http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/carole_wefler.php", ""] 
fadeimages[28]=["http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/images/carolyn_wiley_small_slide.JPG", "http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/carolyn_wiley.php", ""] 
fadeimages[29]=["http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/images/dave_dangelo_small_slide.JPG", "http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/dave_dangelo.php", ""] 
fadeimages[30]=["http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/images/elias_bachmann_small_slide.JPG", "http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/elias_bachmann.php", ""] 
fadeimages[31]=["http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/images/jason_turner_small_slide.JPG", "http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/jason_turner.php", ""] 
fadeimages[32]=["http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/images/peter_emerson_small_slide.JPG", "http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/peter_emerson.php", ""] 
fadeimages[33]=["http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/images/tim_brown_small_slide.JPG", "http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/tim_brown.php", ""] 
fadeimages[34]=["http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/images/ryan_ross_small_slide.JPG", "http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/ryan_ross.php", ""] 
fadeimages[35]=["http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/images/tracy_kosinski_small_slide.JPG", "http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/tracy_kosinski.php", ""] 
fadeimages[36]=["http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/images/tyler_jones_small_slide.JPG", "http://www.adventurefilmschool.com/past_students/colorado_backcountry_2009/tyler_jones.php", ""] 
fadeimages[37]=["http://www.adventurefilmschool.com/past_students/mountain_hardwear_2008/images/andrew_mclean_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/mountain_hardwear_2008/andrew_mclean.php", ""] 
fadeimages[38]=["http://www.adventurefilmschool.com/past_students/mountain_hardwear_2008/images/chris_strasser_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/mountain_hardwear_2008/chris_strasser.php", ""]
fadeimages[39]=["http://www.adventurefilmschool.com/past_students/mountain_hardwear_2008/images/freddie_wilkinson_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/mountain_hardwear_2008/freddie_wilkinson.php", ""]
fadeimages[40]=["http://www.adventurefilmschool.com/past_students/mountain_hardwear_2008/images/janet_berman_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/mountain_hardwear_2008/janet_berman.php", ""]
fadeimages[41]=["http://www.adventurefilmschool.com/past_students/mountain_hardwear_2008/images/kevin_mahoney_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/mountain_hardwear_2008/kevin_mahoney.php", ""] 
fadeimages[42]=["http://www.adventurefilmschool.com/past_students/teva_2008/images/anders_carlson_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/teva_2008/anders_carlson.php", ""] 
fadeimages[43]=["http://www.adventurefilmschool.com/past_students/teva_2008/images/bill_hanson_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/teva_2008/bill_hanson.php", ""] 
fadeimages[44]=["http://www.adventurefilmschool.com/past_students/teva_2008/images/emeka_ngwube_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/teva_2008/emeka_ngwube.php", ""] 
fadeimages[45]=["http://www.adventurefilmschool.com/past_students/teva_2008/images/joe_spring_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/teva_2008/joe_spring.php", ""] 
fadeimages[46]=["http://www.adventurefilmschool.com/past_students/teva_2008/images/monika_bunting_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/teva_2008/monika_bunting.php", ""] 
fadeimages[47]=["http://www.adventurefilmschool.com/past_students/outside_magazine_2009/images/sam_bricker_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/outside_magazine_2009/sam_bricker.php", ""] 
fadeimages[48]=["http://www.adventurefilmschool.com/past_students/outside_magazine_2009/images/allison_otto_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/outside_magazine_2009/allison_otto.php", ""]
fadeimages[49]=["http://www.adventurefilmschool.com/past_students/outside_magazine_2009/images/dave_hahn_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/outside_magazine_2009/dave_hahn.php", ""]
fadeimages[50]=["http://www.adventurefilmschool.com/past_students/outside_magazine_2009/images/dave_stefan_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/outside_magazine_2009/dave_stefan.php", ""]
fadeimages[51]=["http://www.adventurefilmschool.com/past_students/outside_magazine_2009/images/john_gates_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/outside_magazine_2009/john_gates.php", ""]
fadeimages[52]=["http://www.adventurefilmschool.com/past_students/outside_magazine_2009/images/paolo_marchesi_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/outside_magazine_2009/paolo_marchesi.php", ""]
fadeimages[53]=["http://www.adventurefilmschool.com/past_students/outside_magazine_2009/images/troy_wong_small_slide.jpg", "http://www.adventurefilmschool.com/past_students/outside_magazine_2009/troy_wong.php", ""]


var fadeimages2=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages2[0]=["http://www.adventurefilmschool.com/images/bn_08.jpg", "http://www.adventurefilmschool.com/", ""] 
fadeimages2[1]=["http://www.adventurefilmschool.com/images/bn_09.jpg", "http://www.adventurefilmschool.com/", ""]
fadeimages2[2]=["http://www.adventurefilmschool.com/images/bn_01.jpg", "http://www.adventurefilmschool.com/", ""]
fadeimages2[3]=["http://www.adventurefilmschool.com/images/bn_02.jpg", "http://www.adventurefilmschool.com/", ""]
fadeimages2[4]=["http://www.adventurefilmschool.com/images/bn_03.jpg", "http://www.adventurefilmschool.com/", ""] 
fadeimages2[5]=["http://www.adventurefilmschool.com/images/bn_04.jpg", "http://www.adventurefilmschool.com/", ""] 
fadeimages2[6]=["http://www.adventurefilmschool.com/images/bn_05.jpg", "http://www.adventurefilmschool.com/", ""] 
fadeimages2[7]=["http://www.adventurefilmschool.com/images/bn_06.jpg", "http://www.adventurefilmschool.com/", ""] 
fadeimages2[8]=["http://www.adventurefilmschool.com/images/bn_07.jpg", "http://www.adventurefilmschool.com/", ""] 


var fadeimages3=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages3[0]=["http://www.adventurefilmschool.com/images/sp_apple.jpg", "http://www.apple.com/", "_blank"] 
fadeimages3[1]=["http://www.adventurefilmschool.com/images/sp_outside.gif", "http://outside.away.com/index.html", "_blank"]
fadeimages3[2]=["http://www.adventurefilmschool.com/images/sp_teva.jpg", "http://www.teva.com/", "_blank"]
fadeimages3[3]=["http://www.adventurefilmschool.com/images/sp_gwha.gif", "http://www.gwha.com/", "_blank"] 
fadeimages3[4]=["http://www.adventurefilmschool.com/images/sp_antlers.jpg", "http://www.antlersvail.com/", "_blank"]  
fadeimages3[5]=["http://www.adventurefilmschool.com/images/sp_coupe.jpg", "http://www.coupestudios.com/", "_blank"] 
fadeimages3[6]=["http://www.adventurefilmschool.com/images/sp_tmg.jpg", "http://www.tevamountaingames.com/", "_blank"] 
fadeimages3[7]=["http://www.adventurefilmschool.com/images/sp_bgm.jpg", "http://www.bentgate.com/", "_blank"] 
fadeimages3[8]=["http://www.adventurefilmschool.com/images/sp_um.jpg", "http://www.untraditional.com/", "_blank"]
fadeimages3[9]=["http://www.adventurefilmschool.com/images/sp_mountain_vision.gif", "http://www.mountain-vision.com/", "_blank"]
fadeimages3[10]=["http://www.adventurefilmschool.com/images/sp_hinde.jpg", "http://www.gregoryhinde.com/", "_blank"] 
fadeimages3[11]=["http://www.adventurefilmschool.com/images/sp_boulderado.jpg", "http://www.boulderado.com/", "_blank"] 
fadeimages3[12]=["http://www.adventurefilmschool.com/images/sp_vvf.jpg", "http://www.vvf.org/", "_blank"] 
fadeimages3[13]=["http://www.adventurefilmschool.com/images/sp_hotel_santa_fe.jpg", "http://www.hotelsantafe.com", "_blank"] 
fadeimages3[14]=["http://www.adventurefilmschool.com/images/sp_lacie.jpg", "http://www.lacie.com/us/index.htm", "_blank"] 
fadeimages3[15]=["http://www.adventurefilmschool.com/images/sp_vio.jpg", "http://www.vio-pov.com/index.php", "_blank"] 
fadeimages3[16]=["http://www.adventurefilmschool.com/images/sp_icebreaker.gif", "http://www.icebreaker.com/site/index.html", "_blank"]


var fadeimages4=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages4[0]=["http://www.adventurefilmschool.com/images/sp_apple.jpg", "http://www.apple.com/", "_blank"] 
fadeimages4[1]=["http://www.adventurefilmschool.com/images/sp_teva.jpg", "http://www.teva.com/", "_blank"]
fadeimages4[2]=["http://www.adventurefilmschool.com/images/sp_antlers.jpg", "http://www.antlersvail.com/", "_blank"] 
fadeimages4[3]=["http://www.adventurefilmschool.com/images/sp_tmg.jpg", "http://www.tevamountaingames.com/", "_blank"] 
fadeimages4[4]=["http://www.adventurefilmschool.com/images/sp_vvf.jpg", "http://www.vvf.org/", "_blank"] 
fadeimages4[5]=["http://www.adventurefilmschool.com/images/sp_lacie.jpg", "http://www.lacie.com/us/index.htm", "_blank"] 
fadeimages4[6]=["http://www.adventurefilmschool.com/images/sp_vio.jpg", "http://www.vio-pov.com/index.php", "_blank"] 

var fadeimages5=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages5[0]=["http://www.adventurefilmschool.com/images/sp_apple.jpg", "http://www.apple.com/", "_blank"] 
fadeimages5[1]=["http://www.adventurefilmschool.com/images/sp_backpacker.jpg", "http://www.backpacker.com/", "_blank"]
fadeimages5[2]=["http://www.adventurefilmschool.com/images/sp_gwha.gif", "http://www.gwha.com/", "_blank"] 
fadeimages5[3]=["http://www.adventurefilmschool.com/images/sp_mountain_vision.gif", "http://www.mountain-vision.com/", "_blank"]

var fadeimages6=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages6[0]=["http://www.adventurefilmschool.com/images/sp_apple.jpg", "http://www.apple.com/", "_blank"] 
fadeimages6[1]=["http://www.adventurefilmschool.com/images/sp_outside.gif", "http://outside.away.com/index.html", "_blank"]
fadeimages6[2]=["http://www.adventurefilmschool.com/images/sp_hotel_santa_fe.jpg", "http://www.hotelsantafe.com", "_blank"] 
fadeimages6[3]=["http://www.adventurefilmschool.com/images/sp_vio.jpg", "http://www.vio-pov.com/index.php", "_blank"]
fadeimages6[4]=["http://www.adventurefilmschool.com/images/sp_lacie.jpg", "http://www.lacie.com/us/index.htm", "_blank"]
fadeimages6[5]=["http://www.adventurefilmschool.com/images/sp_sfma.jpg", "http://www.santafemountainadventures.com/", "_blank"]

var fadeimages7=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages7[0]=["http://www.adventurefilmschool.com/images/sp_northface.gif", "http://www.thenorthface.com/", "_blank"]

var fadeimages8=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages8[0]=["http://www.adventurefilmschool.com/images/sp_apple.jpg", "http://www.apple.com/", "_blank"] 
fadeimages8[1]=["http://www.adventurefilmschool.com/images/sp_outside.gif", "http://outside.away.com/index.html", "_blank"]
fadeimages8[2]=["http://www.adventurefilmschool.com/images/sp_teva.jpg", "http://www.teva.com/", "_blank"]
fadeimages8[3]=["http://www.adventurefilmschool.com/images/sp_antlers.jpg", "http://www.antlersvail.com/", "_blank"]
fadeimages8[4]=["http://www.adventurefilmschool.com/images/sp_northface.gif", "http://www.thenorthface.com/", "_blank"]
fadeimages8[5]=["http://www.adventurefilmschool.com/images/sp_gwha.gif", "http://www.gwha.com/", "_blank"]
fadeimages8[6]=["http://www.adventurefilmschool.com/images/sp_mountain_vision.gif", "http://www.mountain-vision.com/", "_blank"]
fadeimages8[7]=["http://www.adventurefilmschool.com/images/sp_icebreaker.gif", "http://www.icebreaker.com/site/index.html", "_blank"]


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()
}

