﻿///////Do not edit pass this line///////////////////////
     
var SPie=document.all
var SPdom=document.getElementById

if (SPslideimages.length>1)
i=2
else
i=0

function SPmove1(SPwhichlayer){
SPtlayer=eval(SPwhichlayer)
if (SPtlayer.left>0&&SPtlayer.left<=5){
SPtlayer.left=0
setTimeout("SPmove1(SPtlayer)",pausebetweenimages)
setTimeout("SPmove2(document.SPmain.document.SPsecond)",pausebetweenimages)
return
}
if (SPtlayer.left>=SPtlayer.document.width*-1){
SPtlayer.left-=5
setTimeout("SPmove1(SPtlayer)",50)
}
else{
SPtlayer.left=parseInt(scrollerwidth)+5
SPtlayer.document.write(SPslideimages[i])
SPtlayer.document.close()
if (i==SPslideimages.length-1)
i=0
else
i++
}
}

function SPmove2(SPwhichlayer){
SPtlayer2=eval(SPwhichlayer)
if (SPtlayer2.left>0&&SPtlayer2.left<=5){
SPtlayer2.left=0
setTimeout("SPmove2(SPtlayer2)",pausebetweenimages)
setTimeout("SPmove1(document.SPmain.document.SPfirst)",pausebetweenimages)
return
}
if (SPtlayer2.left>=SPtlayer2.document.width*-1){
SPtlayer2.left-=5
setTimeout("SPmove2(SPtlayer2)",50)
}
else{
SPtlayer2.left=parseInt(scrollerwidth)+5
SPtlayer2.document.write(SPslideimages[i])
SPtlayer2.document.close()
if (i==SPslideimages.length-1)
i=0
else
i++
}
}

function SPmove3(SPwhichdiv){
SPtdiv=eval(SPwhichdiv)
if (parseInt(SPtdiv.style.left)>0&&parseInt(SPtdiv.style.left)<=5){
SPtdiv.style.left=0+"px"
setTimeout("SPmove3(SPtdiv)",pausebetweenimages)
setTimeout("SPmove4(SPscrollerdiv2)",pausebetweenimages)
return
}
if (parseInt(SPtdiv.style.left)>=SPtdiv.offsetWidth*-1){
SPtdiv.style.left=parseInt(SPtdiv.style.left)-5+"px"
setTimeout("SPmove3(SPtdiv)",50)
}
else{
SPtdiv.style.left=scrollerwidth
SPtdiv.innerHTML=SPslideimages[i]
if (i==SPslideimages.length-1)
i=0
else
i++
}
}

function SPmove4(SPwhichdiv){
SPtdiv2=eval(SPwhichdiv)
if (parseInt(SPtdiv2.style.left)>0&&parseInt(SPtdiv2.style.left)<=5){
SPtdiv2.style.left=0+"px"
setTimeout("SPmove4(SPtdiv2)",pausebetweenimages)
setTimeout("SPmove3(SPscrollerdiv1)",pausebetweenimages)
return
}
if (parseInt(SPtdiv2.style.left)>=SPtdiv2.offsetWidth*-1){
SPtdiv2.style.left=parseInt(SPtdiv2.style.left)-5+"px"
setTimeout("SPmove4(SPscrollerdiv2)",50)
}
else{
SPtdiv2.style.left=scrollerwidth
SPtdiv2.innerHTML=SPslideimages[i]
if (i==SPslideimages.length-1)
i=0
else
i++
}
}

function SPstartscroll(){
if (SPie||SPdom){
SPscrollerdiv1=SPie? SPfirst2 : document.getElementById("SPfirst2")
SPscrollerdiv2=SPie? SPsecond2 : document.getElementById("SPsecond2")
SPmove3(SPscrollerdiv1)
SPscrollerdiv2.style.left=scrollerwidth
}
else if (document.layers){
document.SPmain.visibility='show'
SPmove1(document.SPmain.document.SPfirst)
document.SPmain.document.SPsecond.left=parseInt(scrollerwidth)+5
document.SPmain.document.SPsecond.visibility='show'
}
}

//window.onload = SPstartscroll
