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+='<div style="width:'+slidewidth+';height:'+slideheight+'; "><a href="'+variableslide[currentslide][1]+'"><img src="'+variableslide[currentslide][0]+'" border="0" vspace="3"></a></div>'
if (variableslide[currentslide][1]!="")

contentcontainer+='</center>'
if (variableslide[currentslide][2]!="")
contentcontainer+='<div style="position:absolute;margin-top:-50px;width:'+slidewidth+'; height:50px;background: #FFFFFF;filter:alpha(opacity=60, finishopacity=60, style=1);opacity:.6;-khtml-opacity:.6;"></div><div style="position:absolute;  padding:10px; margin-top:-55px;  width:320px; height:30px; font-size: 16px"><b>'+variableslide[currentslide][2]+'</b></div>'

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+';overflow: hidden;"></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
