/***********************************************
* Flexi Slideshow- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var variableslide=new Array()

//variableslide[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"]


variableslide[0]=["PhotoGallery/001_1.jpg","",""]
variableslide[1]=["PhotoGallery/1.jpg","",""]
variableslide[2]=["PhotoGallery/2.jpg","",""]
variableslide[3]=["PhotoGallery/3.jpg","",""]
variableslide[4]=["PhotoGallery/4.jpg","",""]
variableslide[5]=["PhotoGallery/5.jpg","",""]
variableslide[6]=["PhotoGallery/003_3.jpg","",""]
variableslide[7]=["PhotoGallery/004_4.jpg","",""]
variableslide[8]=["PhotoGallery/006_6.jpg","",""]
variableslide[9]=["PhotoGallery/6.jpg","",""]
variableslide[10]=["PhotoGallery/007_7.jpg","",""]
variableslide[11]=["PhotoGallery/7.jpg","",""]
variableslide[12]=["PhotoGallery/8.jpg","",""]
variableslide[13]=["PhotoGallery/9.jpg","",""]
variableslide[14]=["PhotoGallery/10.jpg","",""]
variableslide[15]=["PhotoGallery/009_9.jpg","",""]
variableslide[16]=["PhotoGallery/010_10.jpg","",""]
variableslide[17]=["PhotoGallery/011_11.jpg","",""]
variableslide[18]=["PhotoGallery/11.jpg","",""]
variableslide[19]=["PhotoGallery/12.jpg","",""]
variableslide[20]=["PhotoGallery/13.jpg","",""]
variableslide[21]=["PhotoGallery/14.jpg","",""]
variableslide[22]=["PhotoGallery/15.jpg","",""]
variableslide[23]=["PhotoGallery/16.jpg","",""]
variableslide[24]=["PhotoGallery/17.jpg","",""]
variableslide[25]=["PhotoGallery/18.jpg","",""]
variableslide[26]=["PhotoGallery/19.jpg","",""]
variableslide[27]=["PhotoGallery/20.jpg","",""]
variableslide[28]=["PhotoGallery/21.jpg","",""]
variableslide[29]=["PhotoGallery/22.jpg","",""]
variableslide[30]=["PhotoGallery/23.jpg","",""]
variableslide[31]=["PhotoGallery/24.jpg","",""]
variableslide[32]=["PhotoGallery/25.jpg","",""]
variableslide[33]=["PhotoGallery/26.jpg","",""]
variableslide[34]=["PhotoGallery/27.jpg","",""]
variableslide[35]=["PhotoGallery/28.jpg","",""]
variableslide[36]=["PhotoGallery/29.jpg","",""]
variableslide[37]=["PhotoGallery/30.jpg","",""]
variableslide[38]=["PhotoGallery/31.jpg","",""]

//configure site below 3 variables to set the dimension/background color of the slideshow

var slidewidth='0px' //set to width of LARGEST image in your slideshow
var slideheight='0px' //set to height of LARGEST image in your slideshow, plus any text description
var slidebgcolor='#FFFFFF'

//configure the below variable to determine the delay between image rotations (in miliseconds)
var slidedelay=2100

////Do not edit pass this line////////////////

var ie=document.all
var dom=document.getElementById

for (i=0;i<variableslide.length;i++){
var cacheimage=new Image()
cacheimage.src=variableslide[i][0]
}

var currentslide=0

function rotateimages(){
contentcontainer='<center>'
if (variableslide[currentslide][1]!="")
contentcontainer+='<a href="'+variableslide[currentslide][1]+'">'
contentcontainer+='<img src="'+variableslide[currentslide][0]+'" border="0" vspace="3">'
if (variableslide[currentslide][1]!="")
contentcontainer+='</a>'
contentcontainer+='</center>'
if (variableslide[currentslide][2]!="")
contentcontainer+=variableslide[currentslide][2]

if (document.layers){
crossrotateobj.document.write(contentcontainer)
crossrotateobj.document.close()
}
else if (ie||dom)
crossrotateobj.innerHTML=contentcontainer
if (currentslide==variableslide.length-1) currentslide=0
else currentslide++
setTimeout("rotateimages()",slidedelay)
}

if (ie||dom)
document.write('<div id="slidedom" style="width:'+slidewidth+';height:'+slideheight+'; background-color:'+slidebgcolor+'"></div>')

function start_slider(){
crossrotateobj=dom? document.getElementById("slidedom") : ie? document.all.slidedom : document.slidensmain.document.slidenssub
if (document.layers)
document.slidensmain.visibility="show"
rotateimages()
}

if (ie||dom)
start_slider()
else if (document.layers)
window.onload=start_slider