var variableslide=new Array()

//variableslide[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"]



//variableslide[1]=['http://grafua.ru/images/bosch2.jpg', 'http://www.grafua.ru/catalog/3105.html', 'Bosch SRV 55T13 Eu'] 
//variableslide[2]=['http://grafua.ru/images/kuppersbusch5.jpg', 'http://www.grafua.ru/catalog/1910.html', 'Kuppersbusch LB 6700.0 E'] 
//variableslide[5]=['http://grafua.ru/images/electrolux1.jpg', 'http://www.grafua.ru/lowprice/', 'Electrolux ESL 45010'] 

//variableslide[0]=['http://grafua.ru/images/expansive.jpg', 'http://www.grafua.ru/news/44.html', 'Kuppersbusch подорожал'] 
//variableslide[1]=['http://grafua.ru/images/expansive.jpg', 'http://www.grafua.ru/news/44.html', 'Kuppersbusch подорожал'] 
//variableslide[0]=['http://grafua.ru/images/Liebherr1.jpg', 'http://www.grafua.ru/catalog/3080.html', 'Liebherr CBNes 5067'] 
//variableslide[1]=['http://grafua.ru/images/miele4.jpg', 'http://www.grafua.ru/catalog/639.html', 'Miele WP 2670 WPM']
variableslide[0]=['http://grafua.ru/images/kuppersbusch4.jpg', 'http://www.grafua.ru/lowprice/', 'Kuppersbusch EKE 8141.0F'] 
//variableslide[3]=['http://grafua.ru/images/kuppersbusch.jpg', 'http://www.grafua.ru/lowprice/', 'Kuppersbusch GMS 6540.0E'] 
//variableslide[3]=['http://grafua.ru/images/electrolux2.jpg', 'http://www.grafua.ru/lowprice/', 'Electrolux EHT 6435 X'] 
//variableslide[5]=['http://grafua.ru/images/kuppersbusch2.jpg', 'http://www.grafua.ru/lowprice/', 'Kuppersbusch EMW 7505.0M']
//variableslide[4]=['http://grafua.ru/images/hyla.jpg', 'http://www.grafua.ru/brand/brand11/16/71/', 'Hyla']
variableslide[1]=['http://grafua.ru/images/baro.jpg', 'http://www.gracia-fitness.ru/', 'Тренажер'] 	
//variableslide[7]=['http://grafua.ru/images/zanussi.jpg', 'http://www.grafua.ru/lowprice/', 'Zanussi ZGL 646 IW'] 
//variableslide[5]=['http://grafua.ru/images/jetair.jpg', 'http://www.grafua.ru/lowprice/', 'Jet Air FS301 1M']
variableslide[2]=['http://grafua.ru/images/kuppersbusch6.jpg', 'http://www.grafua.ru/spec/767.html', 'Kuppersbusch EKI 8840']
variableslide[3]=['http://grafua.ru/images/schulte.jpg', 'http://www.grafua.ru/spec/1957.html', 'Schulte 930.00.403']
//configure the below 3 variables to set the dimension/background color of the slideshow 

var slidewidth='561px' //set to width of LARGEST image in your slideshow
var slideheight='173px' //set to height of LARGEST iamge in your slideshow, plus any text description
var slidebgcolor='#F3F3F3'

//configure the below variable to determine the delay between image rotations (in miliseconds)
var slidedelay=6000

////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]+'" target="_blank" >'
contentcontainer+='<img src="'+variableslide[currentslide][0]+'" border="0" vspace="0">'
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
