
/*
Conveyor belt slideshow script- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and Terms Of Use, visit dynamicdrive.com
*/


//Specify the slider's width (in pixels)
var sliderwidth=447
//Specify the slider's height
var sliderheight=100
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=1
//configure background color:
slidebgcolor="#F1DEBD"

//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''

leftrightslide[0]='<a href="shop/classic004.html"><img src="bilder/prod/animation/classic004.jpg" width=110 height=99 border=0></a>'
leftrightslide[1]='<a href="shop/comfort001.html"><img src="bilder/prod/animation/comfort001.jpg" width=117 height=99 border=0></a>'
leftrightslide[2]='<a href="shop/classic001.html"><img src="bilder/prod/animation/classic001.jpg" width=93 height=99 border=0></a>'
leftrightslide[3]='<a href="shop/comfort003.html"><img src="bilder/prod/animation/comfort003.jpg" width=101 height=99 border=0></a>'
leftrightslide[4]='<a href="shop/classic005.html"><img src="bilder/prod/animation/classic005.jpg" width=102 height=99 border=0></a>'
leftrightslide[5]='<a href="shop/elegance006.html"><img src="bilder/prod/animation/elegance006.jpg" width=66 height=99 border=0></a>'
leftrightslide[6]='<a href="shop/elegance007.html"><img src="bilder/prod/animation/elegance007.jpg" width=80 height=99 border=0></a>'
leftrightslide[7]='<a href="shop/comfort004.html"><img src="bilder/prod/animation/comfort004.jpg" width=74 height=99 border=0></a>'
leftrightslide[8]='<a href="shop/classic002.html"><img src="bilder/prod/animation/classic002.jpg" width=81 height=99 border=0></a>'
leftrightslide[9]='<a href="shop/practic002.html"><img src="bilder/prod/animation/practic002.jpg" width=64 height=99 border=0></a>'
leftrightslide[10]='<a href="shop/elegance003.html"><img src="bilder/prod/animation/elegance003.jpg" width=111 height=99 border=0></a>'
leftrightslide[11]='<a href="shop/comfort002.html"><img src="bilder/prod/animation/comfort002.jpg" width=97 height=99 border=0></a>'
leftrightslide[12]='<a href="shop/elegance008.html"><img src="bilder/prod/animation/elegance008.jpg" width=116 height=99 border=0></a>'
leftrightslide[13]='<a href="shop/nature002.html"><img src="bilder/prod/animation/nature002.jpg" width=86 height=99 border=0></a>'
leftrightslide[14]='<a href="shop/nature004.html"><img src="bilder/prod/animation/nature004.jpg" width=74 height=99 border=0></a>'
leftrightslide[15]='<a href="shop/comfort005.html"><img src="bilder/prod/animation/comfort005.jpg" width=77 height=99 border=0></a>'
leftrightslide[16]='<a href="shop/classic007.html"><img src="bilder/prod/animation/classic007.jpg" width=109 height=99 border=0></a>'


////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=slidespeed
leftrightslide='<nobr>'+leftrightslide.join(" ")+'</nobr>'
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100;left:-3000">'+leftrightslide+'</span>')
var actualwidth=''
var cross_slide, ns_slide

function fillup(){
if (iedom){
cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2
cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3
cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide
actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth
cross_slide2.style.left=actualwidth+20
}
else if (document.layers){
ns_slide=document.ns_slidemenu.document.ns_slidemenu2
ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
ns_slide.document.write(leftrightslide)
ns_slide.document.close()
actualwidth=ns_slide.document.width
ns_slide2.left=actualwidth+20
ns_slide2.document.write(leftrightslide)
ns_slide2.document.close()
}
lefttime=setInterval("slideleft()",30)
}
window.onload=fillup

function slideleft(){
if (iedom){
if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed
else
cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+30

if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed
else
cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+30

}
else if (document.layers){
if (ns_slide.left>(actualwidth*(-1)+8))
ns_slide.left-=copyspeed
else
ns_slide.left=ns_slide2.left+actualwidth+30

if (ns_slide2.left>(actualwidth*(-1)+8))
ns_slide2.left-=copyspeed
else
ns_slide2.left=ns_slide.left+actualwidth+30
}
}


