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