// JavaScript Document
//Script submitted by vasile birsan
//http://members.home.net/v.birsan/
//Displayed on www.a1javascripts.com/
//slider's width


function start(){
if (document.all) return
if (document.getElementById){
document.getElementById("slider").style.visibility="show"
initial6(document.getElementById('slider'))
}
else if(document.layers){
document.slider1.visibility="show"
intialslide()
}
}
function intialslide(){
document.slider1.document.slider2.document.write('<nobr>'+imagef+'</nobr>')
document.slider1.document.slider2.document.close()
thel=document.slider1.document.slider2.document.width
document.slider1.document.slider2.left-=thel
sslide()
}
function sslide(){
if (document.slider1.document.slider2.left>=thel*(-1)){
document.slider1.document.slider2.left-=sspeed+"px";
setTimeout("sslide()",100)
}
else{
document.slider1.document.slider2.left=swidth+"px";
sslide()
}
}
function initial6(whichdiv){
tdiv6=eval(whichdiv)
tdiv6.innerHTML=('<nobr>'+imagef+'</nobr>')
tdiv6.style.left=swidth+"px";
thel=swidth*leftimage.length
scroll6()
}
function scroll6(){
if (parseInt(tdiv6.style.left)>=thel*(-1)){
tdiv6.style.left=parseInt(tdiv6.style.left)-sspeed+"px";
setTimeout("scroll6()",100)
}
else{
tdiv6.style.left=swidth+"px";
scroll6()
}
}
//You might run into a position problem within the page, using either
//NS4.x or NS6.x. To correct this use the coordinates: 'left=value',
//'top=value' within ilayer/layer tags or 'position:relative/absolute;
//left:value;top:value;' within NS6's div tags.
//Those values can be either positive or negative!
//Make sure you've got the onload='...;' within body tag but without
//takeFocus(); there!




function changeImage(imagePath)
{
	document.getElementById("main_image").src=imagePath;
}

function floatImage(thumbImage)
{
	//var pos =
	var bild= document.getElementById(thumbImage)
	var links= bild.offsetLeft;
	//var links=document.all.bild.offsetLeft;
	
	document.getElementById("infobox").innerHTML += thumbImage+" | "+links+"<br />";
	
	
	//for (i=links; i>0;i--)bild.style.left=i;
	
	
	//for
	
}
