// 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]=["images/indexrandom/001.jpg","http://www.racheleriley.com/work_kiposters.html", "_self" ]
fadeimages[1]=["images/indexrandom/002.jpg", "http://www.racheleriley.com/work_donato.html", "_self"] 
fadeimages[2]=["images/indexrandom/003.jpg", "http://www.racheleriley.com/work_kiposters.html.html", "_self"]
fadeimages[3]=["images/indexrandom/004.jpg", "http://www.racheleriley.com/work_ricrecycles.html", "_self"] 
fadeimages[4]=["images/indexrandom/005.jpg", "http://www.racheleriley.com/work_mordprotokoll.html", "_self"] 
fadeimages[5]=["images/indexrandom/006.jpg", "http://www.racheleriley.com/work_lastdiversion.html", "_self"] 
fadeimages[6]=["images/indexrandom/007.jpg", "http://www.racheleriley.com/work_negconflict.html", "_self"] 
fadeimages[7]=["images/indexrandom/008.jpg", "http://www.racheleriley.com/work_agee.html", "_self"] 
fadeimages[8]=["images/indexrandom/009.jpg", "http://www.racheleriley.com/work_onceaday.html", "_self"] 
fadeimages[9]=["images/indexrandom/010.jpg", "http://www.racheleriley.com/work_silentcoll.html", "_self"] 
fadeimages[10]=["images/indexrandom/011.jpg", "http://www.racheleriley.com/work_mapping.html", "_self"] 
fadeimages[11]=["images/indexrandom/012.jpg", "http://www.racheleriley.com/work_onceaday.html", "_self"] 
fadeimages[12]=["images/indexrandom/013.jpg", "http://www.racheleriley.com/work_mfathesis.html", "_self"] 
fadeimages[13]=["images/indexrandom/014.jpg", "http://www.racheleriley.com/work_negconflict.html", "_self"] 
fadeimages[14]=["images/indexrandom/015.jpg", "http://www.racheleriley.com/work_lastdiversion.html", "_self"] 
fadeimages[15]=["images/indexrandom/016.jpg", "http://www.racheleriley.com/work_visualizing.html", "_self"] 
fadeimages[16]=["images/indexrandom/017.jpg", "http://www.racheleriley.com/work_mfathesis.html", "_self"] 
fadeimages[17]=["images/indexrandom/018.jpg", "http://www.racheleriley.com/work_07mfa.html", "_self"] 
fadeimages[18]=["images/indexrandom/019.jpg", "http://www.racheleriley.com/work_mordprotokoll.html", "_self"] 
fadeimages[19]=["images/indexrandom/020.jpg", "http://www.racheleriley.com/work_donttarget.html", "_self"] 
fadeimages[20]=["images/indexrandom/021.jpg", "http://www.racheleriley.com/work_virtus.html", "_self"] 
fadeimages[21]=["images/indexrandom/022.jpg", "http://www.racheleriley.com/work_roweboat.html", "_self"] 
fadeimages[22]=["images/indexrandom/023.jpg", "http://www.racheleriley.com/work_kiposters.html", "_self"] 
fadeimages[23]=["images/indexrandom/024.jpg", "http://www.racheleriley.com/work_06mfa.html", "_self"] 
fadeimages[24]=["images/indexrandom/025.jpg", "http://www.racheleriley.com/work_evolcaution.html", "_self"] 
fadeimages[25]=["images/indexrandom/026.jpg", "http://www.racheleriley.com/work_emily.html", "_self"] 
fadeimages[26]=["images/indexrandom/027.jpg", "http://www.racheleriley.com/work_www.html", "_self"]
fadeimages[27]=["images/indexrandom/028.jpg", "http://www.racheleriley.com/work_ricrecycles.html", "_self"] 
fadeimages[28]=["images/indexrandom/029.jpg", "http://www.racheleriley.com/work_typominion.html", "_self"]
fadeimages[29]=["images/indexrandom/030.jpg", "http://www.racheleriley.com/work_donttarget.html", "_self"]
fadeimages[30]=["images/indexrandom/031.jpg", "http://www.racheleriley.com/work_lastdiversion.html", "_self"]
fadeimages[31]=["images/indexrandom/032.jpg", "http://www.racheleriley.com/work_onceaday.html", "_self"]
fadeimages[32]=["images/indexrandom/033.jpg", "http://www.racheleriley.com/work_roweboat.html", "_self"]
fadeimages[33]=["images/indexrandom/034.jpg", "http://www.racheleriley.com/work_system.html", "_self"]
fadeimages[34]=["images/indexrandom/035.jpg", "http://www.racheleriley.com/work_s08.html", "_self"]
fadeimages[35]=["images/indexrandom/036.jpg", "http://www.racheleriley.com/work_visualizing.html", "_self"]
fadeimages[36]=["images/indexrandom/037.jpg", "http://www.racheleriley.com/work_negconflict.html", "_self"]
fadeimages[37]=["images/indexrandom/038.jpg", "http://www.racheleriley.com/work_07mfa.html", "_self"]
fadeimages[38]=["images/indexrandom/039.jpg", "http://www.racheleriley.com/work_negconflict.html", "_self"]
fadeimages[39]=["images/indexrandom/040.jpg", "http://www.racheleriley.com/work_lastdiversion.html", "_self"]
fadeimages[40]=["images/indexrandom/041.jpg", "http://www.racheleriley.com/work_ricrecycles.html", "_self"]
fadeimages[41]=["images/indexrandom/042.jpg", "http://www.racheleriley.com/work_06mfa.html", "_self"]
fadeimages[42]=["images/indexrandom/043.jpg", "http://www.racheleriley.com/work_07mfa.html", "_self"]
fadeimages[43]=["images/indexrandom/044.jpg", "http://www.racheleriley.com/work_www.html", "_self"]
fadeimages[44]=["images/indexrandom/045.jpg", "http://www.racheleriley.com/work_kimfa.html", "_self"]
fadeimages[45]=["images/indexrandom/046.jpg", "http://www.racheleriley.com/work_06mfa.html", "_self"]
fadeimages[46]=["images/indexrandom/047.jpg", "http://www.racheleriley.com/work_mordprotokoll.html", "_self"]
fadeimages[47]=["images/indexrandom/048.jpg", "http://www.racheleriley.com/work_www.html", "_self"]
fadeimages[48]=["images/indexrandom/049.jpg", "http://www.racheleriley.com/work_lastdiversion.html", "_self"]
fadeimages[49]=["images/indexrandom/050.jpg", "http://www.racheleriley.com/work_ricrecycles.html", "_self"]
fadeimages[50]=["images/indexrandom/051.jpg", "http://www.racheleriley.com/work_mfathesis.html", "_self"]
fadeimages[51]=["images/indexrandom/052.jpg","http://www.racheleriley.com/work_mfathesis.html", "_self" ] 
fadeimages[52]=["images/indexrandom/053.jpg","http://www.racheleriley.com/work_lastdiversion.html", "_self" ] 
fadeimages[53]=["images/indexrandom/054.jpg","http://www.racheleriley.com/work_mfathesis.html", "_self" ] 
fadeimages[54]=["images/indexrandom/055.jpg","http://www.racheleriley.com/work_cautionplay.html", "_self" ] 
fadeimages[55]=["images/indexrandom/056.jpg","http://www.racheleriley.com/work_onceaday.html", "_self" ] 
fadeimages[56]=["images/indexrandom/057.jpg","http://www.racheleriley.com/work_onceaday.html", "_self" ] 
fadeimages[57]=["images/indexrandom/058.jpg","http://www.racheleriley.com/work_system.html", "_self" ] 
fadeimages[58]=["images/indexrandom/059.jpg","http://www.racheleriley.com/work_evolcaution.html", "_self" ] 
fadeimages[59]=["images/indexrandom/060.jpg","http://www.racheleriley.com/work_epr.html", "_self" ] 
fadeimages[60]=["images/indexrandom/061.jpg","http://www.racheleriley.com/work_onceaday.html", "_self" ] 
fadeimages[61]=["images/indexrandom/062.jpg","http://www.racheleriley.com/work_mfathesis.html", "_self" ] 
fadeimages[62]=["images/indexrandom/063.jpg","http://www.racheleriley.com/work_mfathesis.html", "_self" ] 
fadeimages[63]=["images/indexrandom/064.jpg","http://www.racheleriley.com/work_donttarget.html", "_self" ] 
fadeimages[64]=["images/indexrandom/065.jpg","http://www.racheleriley.com/work_virtus.html", "_self" ] 
fadeimages[65]=["images/indexrandom/066.jpg","http://www.racheleriley.com/work_07mfa.html", "_self" ] 
fadeimages[66]=["images/indexrandom/067.jpg","http://www.racheleriley.com/work_negconflict.html", "_self" ]  
fadeimages[67]=["images/indexrandom/068.jpg","http://www.racheleriley.com/work_lastdiversion.html", "_self" ] 
fadeimages[68]=["images/indexrandom/069.jpg","http://www.racheleriley.com/work_mfathesis.html", "_self" ] 
fadeimages[69]=["images/indexrandom/070.jpg","http://www.racheleriley.com/work_mfathesis.html", "_self" ] 
fadeimages[70]=["images/indexrandom/071.jpg","http://www.racheleriley.com/work_kiweb.html", "_self" ] 
fadeimages[71]=["images/indexrandom/072.jpg","http://www.racheleriley.com/work_www.html", "_self" ] 
fadeimages[72]=["images/indexrandom/073.jpg","http://www.racheleriley.com/work_evolcaution.html", "_self" ]
fadeimages[73]=["images/indexrandom/074.jpg","http://www.racheleriley.com/work_ricrecycles.html", "_self" ] 
fadeimages[74]=["images/indexrandom/075.jpg","http://www.racheleriley.com/work_donttarget.html", "_self" ]
fadeimages[75]=["images/indexrandom/076.jpg","http://www.racheleriley.com/work_lastdiversion.html", "_self" ] 
fadeimages[76]=["images/indexrandom/077.jpg","http://www.racheleriley.com/work_mfathesis.html", "_self" ] 
fadeimages[77]=["images/indexrandom/078.jpg","http://www.racheleriley.com/work_mfathesis.html", "_self" ]
fadeimages[78]=["images/indexrandom/079.jpg","http://www.racheleriley.com/work_onceaday.html", "_self" ]
fadeimages[79]=["images/indexrandom/080.jpg","http://www.racheleriley.com/work_onceaday.html", "_self" ]  
fadeimages[80]=["images/indexrandom/081.jpg","http://www.racheleriley.com/work_onceaday.html", "_self" ] 
fadeimages[81]=["images/indexrandom/082.jpg","http://www.racheleriley.com/work_onceaday.html", "_self" ]
fadeimages[82]=["images/indexrandom/083.jpg","http://www.racheleriley.com/work_pinto.html", "_self" ] 
fadeimages[83]=["images/indexrandom/084.jpg","http://www.racheleriley.com/work_mapping.html", "_self" ]
fadeimages[84]=["images/indexrandom/085.jpg","http://www.racheleriley.com/work_mapping.html", "_self" ]
fadeimages[85]=["images/indexrandom/086.jpg","http://www.racheleriley.com/work_visualizing.html", "_self" ]
fadeimages[86]=["images/indexrandom/087.jpg","http://www.racheleriley.com/work_waterresol.html", "_self" ]  
fadeimages[87]=["images/indexrandom/088.jpg","http://www.racheleriley.com/work_mapping.html", "_self" ] 
fadeimages[88]=["images/indexrandom/089.jpg","http://www.racheleriley.com/work_silentcoll.html", "_self" ] 
fadeimages[89]=["images/indexrandom/090.jpg","http://www.racheleriley.com/work_donttarget.html", "_self" ]
fadeimages[90]=["images/indexrandom/091.jpg","http://www.racheleriley.com/work_visualizing.html", "_self" ] 
fadeimages[91]=["images/indexrandom/092.jpg","http://www.racheleriley.com/work_visualizing.html", "_self" ]
fadeimages[92]=["images/indexrandom/093.jpg","http://www.racheleriley.com/work_visualizing.html", "_self" ] 
fadeimages[93]=["images/indexrandom/094.jpg","http://www.racheleriley.com/work_artparty.html", "_self" ]   
fadeimages[94]=["images/indexrandom/095.jpg","http://www.racheleriley.com/work_gobold.html", "_self" ] 
fadeimages[95]=["images/indexrandom/096.jpg","http://www.racheleriley.com/work_moanalysis.html", "_self" ]
fadeimages[96]=["images/indexrandom/097.jpg","http://www.racheleriley.com/work_envrionmedia.html", "_self" ]
fadeimages[97]=["images/indexrandom/098.jpg","http://www.racheleriley.com/work_visualizing.html", "_self" ] 
fadeimages[98]=["images/indexrandom/099.jpg","http://www.racheleriley.com/work_system.html", "_self" ] 
fadeimages[99]=["images/indexrandom/100.jpg","http://www.racheleriley.com/work_cautionplay.html", "_self" ] 
fadeimages[100]=["images/indexrandom/101.jpg","http://www.racheleriley.com/work_visualizing.html", "_self" ]
fadeimages[101]=["images/indexrandom/102.jpg","http://www.racheleriley.com/work_vconversation.html", "_self" ]
fadeimages[102]=["images/indexrandom/103.jpg","http://www.racheleriley.com/work_broad.html", "_self" ] 
fadeimages[103]=["images/indexrandom/104.jpg","http://www.racheleriley.com/work_aborig.html", "_self" ]
fadeimages[104]=["images/indexrandom/105.jpg","http://www.racheleriley.com/work_pinto.html", "_self" ] 
fadeimages[105]=["images/indexrandom/106.jpg","http://www.racheleriley.com/work_hlworkshop.html", "_self" ]
fadeimages[106]=["images/indexrandom/107.jpg","http://www.racheleriley.com/work_vitiellolabel.html", "_self" ]
fadeimages[107]=["images/indexrandom/108.jpg","http://www.racheleriley.com/work_s08.html", "_self" ]
fadeimages[108]=["images/indexrandom/109.jpg","http://www.racheleriley.com/work_nerve.html", "_self" ]
fadeimages[109]=["images/indexrandom/110.jpg","http://www.racheleriley.com/wor_robhallk.html", "_self" ] 

  
var fadebgcolor="#D6E1D0"

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



