/***********************************************
* Flexi Slideshow- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var thr_variableslide=new Array()

//thr_variableslide[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"]

thr_variableslide[0]=['ads/theater/ad1.jpg', '#', '']
thr_variableslide[1]=['ads/theater/ad2.jpg', '#', '']
thr_variableslide[2]=['ads/theater/ad3.jpg', '#', '']

//configure the below 3 variables to set the dimension/background color of the slideshow

var thr_slidewidth='170px' //set to width of LARGEST image in your slideshow
var thr_slideheight='170px' //set to height of LARGEST iamge in your slideshow, plus any text description
var thr_slidebgcolor='#FFFCF3'

//configure the below variable to determine the delay between image rotations (in miliseconds)
var thr_slidedelay=3000

////Do not edit pass this line////////////////

var ie=document.all
var dom=document.getElementById

for (i=0;i<thr_variableslide.length;i++){
var thr_cacheimage=new Image()
thr_cacheimage.src=thr_variableslide[i][0]
}

var thr_currentslide=0

function thr_rotateimages(){
thr_contentcontainer='<center>'
if (thr_variableslide[thr_currentslide][1]!="")
thr_contentcontainer+='<a href="'+thr_variableslide[thr_currentslide][1]+'">'
thr_contentcontainer+='<img src="'+thr_variableslide[thr_currentslide][0]+'" border="0" vspace="3">'
if (thr_variableslide[thr_currentslide][1]!="")
thr_contentcontainer+='</a>'
thr_contentcontainer+='</center>'
if (thr_variableslide[thr_currentslide][2]!="")
thr_contentcontainer+=thr_variableslide[thr_currentslide][2]

if (document.layers){
thr_crossrotateobj.document.write(thr_contentcontainer)
thr_crossrotateobj.document.close()
}
else if (ie||dom)
thr_crossrotateobj.innerHTML=thr_contentcontainer
if (thr_currentslide==thr_variableslide.length-1) thr_currentslide=0
else thr_currentslide++
setTimeout("thr_rotateimages()",thr_slidedelay)
}

if (ie||dom)
document.write('<div id="thr_slidedom" style="width:'+thr_slidewidth+';height:'+thr_slideheight+'; background-color:'+thr_slidebgcolor+'"></div>')

function start_slider_thr(){
thr_crossrotateobj=dom? document.getElementById("thr_slidedom") : ie? document.all.thr_slidedom : document.thr_slidensmain.document.thr_slidenssub
if (document.layers)
document.thr_slidensmain.visibility="show"
thr_rotateimages()
}

if (ie||dom)
start_slider_thr()
else if (document.layers)
window.onload=start_slider_thr

/*
</script>

<ilayer id="thr_slidensmain" width=&{thr_slidewidth}; height=&{thr_slideheight}; bgColor=&{thr_slidebgcolor}; visibility=hide><layer id="thr_slidenssub" width=&{thr_slidewidth}; left=0 top=0></layer></ilayer>

<p align="center"><font face="Arial" size="-2">Free DHTML scripts provided by<br>
<a href="http://www.dynamicdrive.com">Dynamic Drive</a></font></p>
*/