data=new Array()
data[0]=new Array("http://www.hifi-tv-moebel.de/scroller/01.jpg","GUIDE: Wissenswertes rund um die multimediale Einrichtung","http://guide.hifi-tv-moebel.de")
data[1]=new Array("http://www.hifi-tv-moebel.de/scroller/02.jpg","GUIDE: Wissenswertes rund um die multimediale Einrichtung","http://guide.hifi-tv-moebel.de")
data[2]=new Array("http://www.hifi-tv-moebel.de/scroller/03.jpg","GUIDE: Wissenswertes rund um die multimediale Einrichtung","http://guide.hifi-tv-moebel.de")
data[3]=new Array("http://www.hifi-tv-moebel.de/scroller/04.jpg","Spectral CATENA 2010","http://www.spectral-catena-muenchen.de/?page_id=2")
data[4]=new Array("http://www.hifi-tv-moebel.de/scroller/05.jpg","Spectral CATENA 2010","http://www.spectral-catena-muenchen.de/?page_id=2")
data[5]=new Array("http://www.hifi-tv-moebel.de/scroller/06.jpg","Spectral CATENA 2010","http://www.spectral-catena-muenchen.de/?page_id=2")
data[6]=new Array("http://www.hifi-tv-moebel.de/scroller/07.jpg","Spectral","http://guide.hifi-tv-moebel.de/2009/11/spectral-katalog-catena-buch-2010.html")
data[7]=new Array("http://www.hifi-tv-moebel.de/scroller/08.jpg","Spectral","http://guide.hifi-tv-moebel.de/2009/11/spectral-katalog-catena-buch-2010.html")
data[8]=new Array("http://www.hifi-tv-moebel.de/scroller/09.jpg","Spectral BRICK","http://www.hifi-tv-moebel.de/hersteller-86/fernsehmoebel/tv-moebel.html")
data[9]=new Array("http://www.hifi-tv-moebel.de/scroller/10.jpg","Spectral BRICK","http://www.hifi-tv-moebel.de/hersteller-86/fernsehmoebel/tv-moebel.html")
data[10]=new Array("http://www.hifi-tv-moebel.de/scroller/11.jpg","Spectral CATENA 2010","http://www.spectral-catena-muenchen.de/?page_id=2")
data[11]=new Array("http://www.hifi-tv-moebel.de/scroller/12.jpg","Spectral CATENA 2010","http://www.spectral-catena-muenchen.de/?page_id=2")
data[12]=new Array("http://www.hifi-tv-moebel.de/scroller/13.jpg","Spectral","http://hifi-tv-moebel.de/fernsehmoebel/tv-moebel.html")
data[13]=new Array("http://www.hifi-tv-moebel.de/scroller/14.jpg","Spectral","http://hifi-tv-moebel.de/fernsehmoebel/tv-moebel.html")
data[14]=new Array("http://www.hifi-tv-moebel.de/scroller/15.jpg","Spectral","http://hifi-tv-moebel.de/fernsehmoebel/tv-moebel.html")
data[15]=new Array("http://www.hifi-tv-moebel.de/scroller/16.jpg","Spectral","http://hifi-tv-moebel.de/fernsehmoebel/tv-moebel.html")


imgPlaces=5 // number of images visible
imgWidth=190 // width of the images
imgHeight=200 // height of the images
imgSpacer=0 // space between the images
rdmImg=0 // 0 = no  1 = yes  show images at random
dir=0 //  scroll direction 0 = left, 1 = right


border=0 // container border width
bordertype="none" // container border type
bordercolor="" // container border colour
borderbackground="" // container background colour

cssPositioning=0 // use CSS to position the display 0 = no  1 = yes
cssLeft=400 // used if cssPositioning is selected
cssTop=100 // used if cssPositioning is selected

newWindow=0 // 0 = Open a new window for links 0 = no  1 = yes

// ********** End User Defining Area **********

if(rdmImg==1){ // generate random images list

tempArray=new Array()
for(i=0;i<data.length;i++){ // create an array identical to data array
tempArray[i]=data[i]
}

rdmArray=new Array() // random images array
for(p=0;p<data.length;p++){ // create an array of randomly selected images
rndnum=Math.floor(Math.random()*(tempArray.length)) // select a random image from tempArray
rdmArray[p]=tempArray[rndnum] // put selected image in rdmArray
tempArray.splice(rndnum,1) // remove selected image from tempArray
}

}

step=1
nextPic=0
speed=29.95
timer=""
initPos=new Array()
nowDivPos=new Array()
moz=document.getElementById&&!document.all

function createThumbShow(){

if(cssPositioning==0){
document.write("<div id=\"container\" style=\"position:relative; width:0px;height:0px; border:"+border+"px "+bordertype+" "+bordercolor+";background:"+borderbackground+"\">")
}
else{
document.write("<div id=\"container\" style=\"position:absolute; left:"+cssLeft+"px; top:"+cssTop+"px; width:0px;height:0px; border:"+border+" "+bordertype+" "+bordercolor+";background:"+borderbackground+"\">")
}

document.write("<div id=\"display_area\" style=\"position:absolute; left:0; top:0; width:0px; height:0px; clip:rect(0,0,0,0)\" onmouseover=\"stopMe()\" onmouseout=\"animate()\">")

for(i=0;i<imgPlaces+1;i++){ // create image holders
document.write("<div id=\"div_"+[i]+"\" style=\"position:absolute\">")
document.write("<a id=\"loc_"+[i]+"\" href=\"\" onclick=\"newWin(this.location);return false\">")
document.write("<img src=\"\" id=\"pic_"+[i]+"\" width=\""+imgWidth+"\" height=\""+imgHeight+"\" alt=\"Multiple Image SlideShow\" border=\"0\">")
document.write("</a>")
document.write("</div>")
}
document.write("</div>")
document.write("</div>")
} 
function initThumbShow(){
containerBorder=parseInt(document.getElementById("container").style.borderWidth)*2
containerWidth=(imgPlaces*imgWidth)+((imgPlaces-1)*imgSpacer)
document.getElementById("container").style.width=containerWidth+(!moz?containerBorder:"")
document.getElementById("container").style.height=imgHeight+(!moz?containerBorder:"")

displayArea=document.getElementById("display_area")
displayArea.style.width=containerWidth
displayArea.style.clip=(!moz?"rect(0,"+containerWidth+","+imgHeight+",0)":"rect(0,"+containerWidth+","+imgHeight+",0)")

imgPos= -document.getElementById("pic_0").width-border

for(i=0;i<imgPlaces+1;i++){

if(dir==0){imgPos+=(document.getElementById("pic_0").width)+imgSpacer} // if left

initPos[i]=imgPos
if(dir==0){document.getElementById("div_"+[i]).style.left=initPos[i]} // if left

if(dir==1){ // if right
document.getElementById("div_"+[(imgPlaces-i)]).style.left=initPos[i]
imgPos+=(document.getElementById("pic_0").width)+imgSpacer
}

if(nextPic==data.length){
nextPic=0
}

if(rdmImg==1){
document.getElementById("pic_"+[i]).src=rdmArray[nextPic][0]
document.getElementById("pic_"+[i]).alt=rdmArray[nextPic][1]
document.getElementById("loc_"+[i]).location=rdmArray[nextPic][2]
}
else{
document.getElementById("pic_"+[i]).src=data[nextPic][0]
document.getElementById("pic_"+[i]).alt=data[nextPic][1]
document.getElementById("loc_"+[i]).location=data[nextPic][2]
}
nextPic++
}

animate()
}

timer=""
function animate(){
clearTimeout(timer)
for(i=0;i<imgPlaces+1;i++){
nowDivPos[i]=parseInt(document.getElementById("div_"+i).style.left)

if(dir==0){nowDivPos[i]-=step}
if(dir==1){nowDivPos[i]+=step}

if(dir==0&&nowDivPos[i]<= -(document.getElementById("pic_0").width+imgSpacer) || dir==1&&nowDivPos[i]>containerWidth){ 
if(dir==0){document.getElementById("div_"+[i]).style.left=containerWidth+imgSpacer}
if(dir==1){document.getElementById("div_"+[i]).style.left= -document.getElementById("pic_0").width-(imgSpacer*2)}

if(nextPic>data.length-1){
nextPic=0
}

if(rdmImg==1){
document.getElementById("pic_"+[i]).src=rdmArray[nextPic][0]
document.getElementById("pic_"+[i]).alt=rdmArray[nextPic][1]
document.getElementById("loc_"+[i]).location=rdmArray[nextPic][2]
}
else{
document.getElementById("pic_"+[i]).src=data[nextPic][0]
document.getElementById("pic_"+[i]).alt=data[nextPic][1]
document.getElementById("loc_"+[i]).location=data[nextPic][2]
}

nextPic++

}
else{
document.getElementById("div_"+[i]).style.left=nowDivPos[i]
}

}
timer=setTimeout("animate()",speed)

}

function stopMe(){
clearTimeout(timer)
}

function newWin(loc){
if(loc==""){return}
if(newWindow==0){
location=loc
}
else{
//window.open(loc)
window.open(loc,'','left=130,top=270,width=200,height=200') // use for specific size and positioned window
}
}