/***********************************************
* 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/oasis/oasis12.jpg", "", ""] //
fadeimages[1]=["images/oasis/oasis2.jpg", "", ""] //
fadeimages[2]=["images/oasis/oasis3.jpg","",""]
fadeimages[3]=["images/oasis/oasis4.jpg", "", ""]//
fadeimages[4]=["images/oasis/oasis5.jpg", "", ""]
fadeimages[5]=["images/oasis/oasis6.jpg", "", ""]
fadeimages[6]=["images/oasis/oasis7.jpg", "", ""]
fadeimages[7]=["images/oasis/oasis8.jpg", "", ""]
fadeimages[8]=["images/oasis/oasis9.jpg", "", ""]
fadeimages[9]=["images/oasis/oasis10.jpg", "", ""]
fadeimages[10]=["images/oasis/oasis11.jpg", "", ""]
fadeimages[11]=["images/oasis/oasis1.jpg", "", ""]


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]=["images/workshop2/IMG_4604.JPG", "", ""] //plain image syntax
fadeimages3[1]=["images/workshop2/IMG_4605.JPG", "", ""] //image with link syntax
fadeimages3[2]=["images/workshop2/IMG_4606.JPG", "", ""] //image with link and target syntax
fadeimages3[3]=["images/workshop2/IMG_4607.JPG", "", ""] //image with link and target syntax
fadeimages3[4]=["images/workshop2/IMG_4608.JPG", "", ""] //image with link and target syntax
fadeimages3[5]=["images/workshop2/IMG_4610.JPG", "", ""] //image with link and target syntax
fadeimages3[6]=["images/workshop2/IMG_4611.JPG", "", ""] //image with link and target syntax
fadeimages3[7]=["images/workshop2/IMG_4612.JPG", "", ""] //image with link and target syntax
fadeimages3[8]=["images/workshop2/IMG_4613.JPG", "", ""] //image with link and target syntax
fadeimages3[9]=["images/workshop2/IMG_4614.JPG", "", ""] //image with link and target syntax
fadeimages3[10]=["images/workshop2/IMG_4616.JPG", "", ""] //image with link and target syntax
fadeimages3[11]=["images/workshop2/IMG_4617.JPG", "", ""] //image with link and target syntax
fadeimages3[12]=["images/workshop2/IMG_4618.JPG", "", ""] //image with link and target syntax
fadeimages3[13]=["images/workshop2/IMG_4619.JPG", "", ""] //image with link and target syntax
fadeimages3[14]=["images/workshop2/IMG_4620.JPG", "", ""] //image with link and target syntax
fadeimages3[15]=["images/workshop2/IMG_4623.JPG", "", ""] //image with link and target syntax
fadeimages3[16]=["images/workshop2/IMG_4625.JPG", "", ""] //image with link and target syntax
fadeimages3[17]=["images/workshop2/IMG_4627.JPG", "", ""] //image with link and target syntax
fadeimages3[18]=["images/workshop2/IMG_4628.JPG", "", ""] //image with link and target syntax
fadeimages3[19]=["images/workshop2/IMG_4629.JPG", "", ""]
fadeimages3[20]=["images/workshop2/IMG_4630.JPG", "", ""]
fadeimages3[21]=["images/workshop2/IMG_4631.JPG", "", ""]
fadeimages3[22]=["images/workshop2/IMG_4633.JPG", "", ""]
fadeimages3[23]=["images/workshop2/IMG_4636.JPG", "", ""]
fadeimages3[24]=["images/workshop2/IMG_4638.JPG", "", ""]
fadeimages3[25]=["images/workshop2/IMG_4640.JPG", "", ""]
fadeimages3[26]=["images/workshop2/IMG_4641.JPG", "", ""]
fadeimages3[27]=["images/workshop2/IMG_4642.JPG", "", ""]
fadeimages3[28]=["images/workshop2/IMG_4643.JPG", "", ""]
fadeimages3[29]=["images/workshop2/IMG_4644.JPG", "", ""]
fadeimages3[30]=["images/workshop2/IMG_4645.JPG", "", ""]
fadeimages3[31]=["images/workshop2/IMG_4646.JPG", "", ""]
fadeimages3[32]=["images/workshop2/IMG_4649.JPG", "", ""]
fadeimages3[33]=["images/workshop2/IMG_4651.JPG", "", ""]
fadeimages3[34]=["images/workshop2/IMG_4652.JPG", "", ""]

 
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]=["rmc/rmc-slide1.jpg", "", ""] //plain image syntax
fadeimages2[1]=["rmc/prep.jpg", "", ""] //image with link syntax
fadeimages2[2]=["rmc/prep1.jpg", "", ""] //image with link and target syntax
fadeimages2[3]=["rmc/prep2.jpg", "", ""] //image with link and target syntax
fadeimages2[4]=["rmc/prep3.jpg", "", ""] //image with link and target syntax
fadeimages2[5]=["rmc/prep4.jpg", "", ""] //image with link and target syntax
fadeimages2[6]=["rmc/prep5.jpg", "", ""] //image with link and target syntax
fadeimages2[7]=["rmc/prep6.jpg", "", ""] //image with link and target syntax
fadeimages2[8]=["rmc/prep7.jpg", "", ""] //image with link and target syntax
fadeimages2[9]=["rmc/prep8.jpg", "", ""] //image with link and target syntax
fadeimages2[10]=["rmc/prep9.jpg", "", ""] //image with link and target syntax
fadeimages2[11]=["rmc/prep10.jpg", "", ""] //image with link and target syntax
fadeimages2[12]=["rmc/prep11.jpg", "", ""] //image with link and target syntax
fadeimages2[13]=["rmc/prep12.jpg", "", ""] //image with link and target syntax
fadeimages2[14]=["rmc/prep13.jpg", "", ""] //image with link and target syntax
fadeimages2[15]=["rmc/prep14.jpg", "", ""] //image with link and target syntax
fadeimages2[16]=["rmc/create.jpg", "", ""] //image with link and target syntax
fadeimages2[17]=["rmc/create1.jpg", "", ""] //image with link and target syntax
fadeimages2[18]=["rmc/create2.jpg", "", ""] //image with link and target syntax
fadeimages2[19]=["rmc/create3.jpg", "", ""]
fadeimages2[20]=["rmc/create4.jpg", "", ""]
fadeimages2[21]=["rmc/create5.jpg", "", ""]
fadeimages2[22]=["rmc/create6.jpg", "", ""]
fadeimages2[23]=["rmc/create7.jpg", "", ""]
fadeimages2[24]=["rmc/wedding.jpg", "", ""]
fadeimages2[25]=["rmc/wedding1.jpg", "", ""]
fadeimages2[26]=["rmc/wedding2.jpg", "", ""]
fadeimages2[27]=["rmc/wedding3.jpg", "", ""]
fadeimages2[28]=["rmc/wedding4.jpg", "", ""]
fadeimages2[29]=["rmc/wedding5.jpg", "", ""]
fadeimages2[30]=["rmc/wedding6.jpg", "", ""]
fadeimages2[31]=["rmc/wedding7.jpg", "", ""]
fadeimages2[32]=["rmc/wedding8.jpg", "", ""]
fadeimages2[33]=["rmc/wedding9.jpg", "", ""]
fadeimages2[34]=["rmc/wedding10.jpg", "", ""]
fadeimages2[35]=["rmc/wedding11.jpg", "", ""]
fadeimages2[36]=["rmc/wedding12.jpg", "", ""]
fadeimages2[37]=["rmc/wedding13.jpg", "", ""]
fadeimages2[38]=["rmc/wedding14.jpg", "", ""]
fadeimages2[39]=["rmc/wedding15.jpg", "", ""]
fadeimages2[40]=["rmc/wedding16.jpg", "", ""]
fadeimages2[41]=["rmc/wedding17.jpg", "", ""]
fadeimages2[42]=["rmc/wedding18.jpg", "", ""]
fadeimages2[43]=["rmc/gift.jpg", "", ""]
fadeimages2[44]=["rmc/gift1.jpg", "", ""]
fadeimages2[45]=["rmc/gift2.jpg", "", ""]
fadeimages2[46]=["rmc/gift3.jpg", "", ""]
fadeimages2[47]=["rmc/gift4.jpg", "", ""]
fadeimages2[48]=["rmc/gift5.jpg", "", ""]
fadeimages2[49]=["rmc/gift6.jpg", "", ""]
fadeimages2[50]=["rmc/gift7.jpg", "", ""]
fadeimages2[51]=["rmc/gift8.jpg", "", ""]
fadeimages2[52]=["rmc/gift9.jpg", "", ""]
fadeimages2[53]=["rmc/gift10.jpg", "", ""]
fadeimages2[54]=["rmc/gift11.jpg", "", ""]
fadeimages2[55]=["rmc/gift12.jpg", "", ""]
fadeimages2[56]=["rmc/corp.jpg", "", ""]
fadeimages2[57]=["rmc/corp1.jpg", "", ""]
fadeimages2[58]=["rmc/corp2.jpg", "", ""]
fadeimages2[59]=["rmc/corp3.jpg", "", ""]
fadeimages2[60]=["rmc/corp4.jpg", "", ""]
fadeimages2[61]=["rmc/corp5.jpg", "", ""]
fadeimages2[62]=["rmc/corp6.jpg", "", ""]
fadeimages2[63]=["rmc/corp7.jpg", "", ""]
fadeimages2[64]=["rmc/corp8.jpg", "", ""]
fadeimages2[65]=["rmc/corp9.jpg", "", ""]
fadeimages2[66]=["rmc/corp10.jpg", "", ""]
fadeimages2[67]=["rmc/corp11.jpg", "", ""]
fadeimages2[68]=["rmc/corp12.jpg", "", ""]
fadeimages2[69]=["rmc/corp13.jpg", "", ""]
fadeimages2[70]=["rmc/corp14.jpg", "", ""]
fadeimages2[71]=["rmc/corp15.jpg", "", ""]
fadeimages2[72]=["rmc/corp16.jpg", "", ""]
fadeimages2[73]=["rmc/corp17.jpg", "", ""]
fadeimages2[74]=["rmc/corp18.jpg", "", ""]
fadeimages2[75]=["rmc/judge.jpg", "", ""]
fadeimages2[76]=["rmc/judge1.jpg", "", ""]
fadeimages2[77]=["rmc/judge2.jpg", "", ""]
fadeimages2[78]=["rmc/judge3.jpg", "", ""]
fadeimages2[79]=["rmc/judge4.jpg", "", ""]
fadeimages2[80]=["rmc/prizes.jpg", "", ""]
fadeimages2[81]=["rmc/prizes1.jpg", "", ""]
fadeimages2[82]=["rmc/prizes2.jpg", "", ""]
fadeimages2[83]=["rmc/prizes3.jpg", "", ""]
fadeimages2[84]=["rmc/prizes4.jpg", "", ""]
fadeimages2[85]=["rmc/prizes5.jpg", "", ""]
fadeimages2[86]=["rmc/prizes6.jpg", "", ""]
fadeimages2[87]=["rmc/prizes7.jpg", "", ""]
fadeimages2[88]=["rmc/prizes8.jpg", "", ""]
fadeimages2[89]=["rmc/prizes9.jpg", "", ""]
fadeimages2[90]=["rmc/winner.jpg", "", ""]
fadeimages2[91]=["rmc/winner1.jpg", "", ""]
fadeimages2[92]=["rmc/winner2.jpg", "", ""]
fadeimages2[93]=["rmc/winner3.jpg", "", ""]
fadeimages2[94]=["rmc/winner4.jpg", "", ""]
fadeimages2[95]=["rmc/winner5.jpg", "", ""]
fadeimages2[96]=["rmc/winner6.jpg", "", ""]





var fadebgcolor="black"

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