function move1(whichlayer){
tlayer=eval(whichlayer)
if (tlayer.top>0&&tlayer.top<=5){
tlayer.top=0
setTimeout("move1(tlayer)",2000)
setTimeout("move2(document.main.document.second)",2000)
return
}
if (tlayer.top>=tlayer.document.height*-1){
tlayer.top-=5
setTimeout("move1(tlayer)",100)
}
}
function move2(whichlayer){
tlayer2=eval(whichlayer)
if (tlayer2.top>0&&tlayer2.top<=5){
tlayer2.top=0
setTimeout("move2(tlayer2)",2000)
setTimeout("move1(document.main.document.first)",2000)
return
}
if (tlayer2.top>=tlayer2.document.height*-1){
tlayer2.top-=5
setTimeout("move2(tlayer2)",100)
}
}
function move3down(whichdiv){
tdiv=eval(whichdiv)
if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=5){
tdiv.style.pixelTop=0
setTimeout("move3up(tdiv)",2500)
return
}
if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){
tdiv.style.pixelTop+=3
setTimeout("move3down(tdiv)",80)
}
/*else 
{
 main2.style.display='none'
 move3up(tdiv)
}*/
}
function move3up(whichdiv){
tdiv=eval(whichdiv)
if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=5){
tdiv.style.pixelTop=0
setTimeout("move3up(tdiv)",pausebetweenimages)
return
}
if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){
tdiv.style.pixelTop-=3
setTimeout("move3up(tdiv)",80)
}
else 
{
//main2.style.z-index="0";
main2.style.display="none";
//alert (main2.style.z-index);
 main1.style.visibility='visible'
 move4(xs_pDiv2)
}
}
function move4(whichdiv){
tdiv=eval(whichdiv)
/*if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=5){
tdiv.style.pixelTop=0
setTimeout("move4(tdiv)",pausebetweenimages)
return
}*/
limit=document.body.clientWidth/2-165
if (tdiv.style.pixelLeft<=limit){
tdiv.style.pixelLeft+=3
setTimeout("move4(tdiv)",80)
}
}
function startscroll(){
if (document.all){
move3down(first2)
//move4(xs_pDiv2)
}
else if (document.layers){
document.main.visibility='show'
move1(document.main.document.first)
//the argument document.main2.document.first2 is not correct format
document.main.document.second.top=scrollerheight+5
document.main.document.second.visibility='show'
}
}