
/*
Up down slideshow Script
By Dynamic Drive (www.dynamicdrive.com)
For full source code, terms of use, and 100s more scripts, visit http://www.dynamicdrive.com
*/





///////configure the below four variables to change the style of the slider///////
//set the scrollerwidthx and scrollerheightx to the width/height of the LARGEST image in your slideshow!
var scrollerwidthx="145px"
var scrollerheightx="140px"
//3000 milisecondxs=3 secondxs
var pausebetweenimagesx=3000
var counterx = 0


///////Do not edit pass this line///////////////////////

var ie=document.all
var dom=document.getElementById


if (slideimagesx.length>2)
ix=2
else
ix=0

function movex1(whichlayerx){
tlayerx=eval(whichlayerx)
if (tlayerx.top>0&&tlayerx.top<=5){
tlayerx.top=0
setTimeout("movex1(tlayerx)",pausebetweenimagesx)
setTimeout("movex2(document.mainx.document.secondx)",pausebetweenimagesx)
return
}
if (tlayerx.top>=tlayerx.document.height*-1){
tlayerx.top-=5
setTimeout("movex1(tlayerx)",50)
}
else{
tlayerx.top=parseInt(scrollerheightx)
tlayerx.document.write(slideimagesx[ix])
tlayerx.document.close()
if (ix==slideimagesx.length-1)
ix=0
else
ix++
}
}

function movex2(whichlayerx){
tlayerx2=eval(whichlayerx)
if (tlayerx2.top>0&&tlayerx2.top<=5){
tlayerx2.top=0
setTimeout("movex2(tlayerx2)",pausebetweenimagesx)
setTimeout("movex1(document.mainx.document.firstx)",pausebetweenimagesx)
return
}
if (tlayerx2.top>=tlayerx2.document.height*-1){
tlayerx2.top-=5
setTimeout("movex2(tlayerx2)",50)
}
else{
tlayerx2.top=parseInt(scrollerheightx)
tlayerx2.document.write(slideimagesx[ix])
tlayerx2.document.close()
if (ix==slideimagesx.length-1)
ix=0
else
ix++
}
}

function movex3(whichdiv){
tdivx=eval(whichdiv)
if (parseInt(tdivx.style.top)>0&&parseInt(tdivx.style.top)<=5){
tdivx.style.top=0+"px"
setTimeout("movex3(tdivx)",pausebetweenimagesx)
setTimeout("movex4(secondx2_obj)",pausebetweenimagesx)
return
}
if (parseInt(tdivx.style.top)>=tdivx.offsetHeight*-1){
tdivx.style.top=parseInt(tdivx.style.top)-5+"px"
setTimeout("movex3(tdivx)",50)
}
else{
tdivx.style.top=scrollerheightx
tdivx.innerHTML=slideimagesx[ix]
if (ix==slideimagesx.length-1)
ix=0
else
ix++
}
}

function movex4(whichdiv){
tdivx2=eval(whichdiv)
if (parseInt(tdivx2.style.top)>0&&parseInt(tdivx2.style.top)<=5){
tdivx2.style.top=0+"px"
setTimeout("movex4(tdivx2)",pausebetweenimagesx)
setTimeout("movex3(firstx2_obj)",pausebetweenimagesx)
counterx += 1;
if ((counterx%3)==0) pausebetweenimagesx = pausebetweenimagesx * 2;
return
}
if (parseInt(tdivx2.style.top)>=tdivx2.offsetHeight*-1){
tdivx2.style.top=parseInt(tdivx2.style.top)-5+"px"
setTimeout("movex4(secondx2_obj)",50)
}
else{
tdivx2.style.top=scrollerheightx
tdivx2.innerHTML=slideimagesx[ix]
if (ix==slideimagesx.length-1)
ix=0
else
ix++
}
}

function startscroll2(){
if (ie||dom){
firstx2_obj=ie? firstx2 : document.getElementById("firstx2")
secondx2_obj=ie? secondx2 : document.getElementById("secondx2")
movex3(firstx2_obj)
secondx2_obj.style.top=scrollerheightx
secondx2_obj.style.visibility='visible'
}
else if (document.layers){
document.mainx.visibility='show'
movex1(document.mainx.document.firstx)
document.mainx.document.secondx.top=parseInt(scrollerheightx)+5
document.mainx.document.secondx.visibility='show'
}
}


