var variableslide=new Array()

//variableslide[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"]



variableslide[0]=['http://www.hydroponica.biz/media/feature1.jpg', 'http://www.hydroponica.biz/wilma-8-pot-system.html', '']

variableslide[1]=['http://www.hydroponica.biz/media/feature2.jpg', 'http://www.hydroponica.biz/hacienda-ballast-600w.html', '']

variableslide[2]=['http://www.hydroponica.biz/media/feature3.jpg', 'http://www.hydroponica.biz/canna-boost-accelerator-5-litre.html', '']

variableslide[3]=['http://www.hydroponica.biz/media/feature4.jpg', 'http://www.hydroponica.biz/lumatek-digital-ballast-600w.html', '']

variableslide[4]=['http://www.hydroponica.biz/media/feature5.jpg', 'http://www.hydroponica.biz/600w-maxibright-euro-kit.html', '']

variableslide[5]=['http://www.hydroponica.biz/media/feature6.jpg', 'http://www.hydroponica.biz/grow-tent-kits/budbox-1-2m-x-1-2m-x-2-0m-grow-tent-600w-sunmaster-kit.html', '']

variableslide[6]=['http://www.hydroponica.biz/media/feature7.jpg', 'http://www.hydroponica.biz/growing-tents-modules/budbox-xxxlarge-2m-x-2m-x-2m.html', '']

variableslide[7]=['http://www.hydroponica.biz/media/feature8.jpg', 'http://www.hydroponica.biz/offers/600w-lumatek-digital-euro-lighting-kit-with-sunmaster-bulb.html', '']

variableslide[8]=['http://www.hydroponica.biz/media/feature9.jpg', 'http://www.hydroponica.biz/grow-tent-kits/darkroom-grow-tent-kits/dr100-1-0m-x-1-0m-x-2-0m-grow-tent-600w-sunmaster-kit-4607.html', '']

variableslide[9]=['http://www.hydroponica.biz/media/feature10.jpg', 'http://www.hydroponica.biz/grow-tent-kits/darkroom-grow-tent-kits/dr120-1-2m-x-1-2m-x-2-0m-grow-tent-600w-sunmaster-kit.html', '']

var slidewidth='686px' //set to width of LARGEST image in your slideshow

var slideheight='323px' //set to height of LARGEST iamge in your slideshow, plus any text description

var slidebgcolor='#FFFFFF'

var slidedelay=4000

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
