var currentpos=0,alt=1,curpos1=0,curpos2=-1

function iecompattest(){
return (document.compatMode!="BackCompat")? document.documentElement : document.body
}

function scrollwindow(speed){
if (document.all)
temp=iecompattest().scrollTop
else
temp=window.pageYOffset
if (alt==0)
alt=1
else
alt=0
if (alt==0)
curpos1=temp
else
curpos2=temp
if (curpos1!=curpos2){
if (document.all)
currentpos=iecompattest().scrollTop+speed
else
currentpos=window.pageYOffset+speed
window.scroll(0,currentpos)
}

}
function startit(xspeed){
intervalid = setInterval("scrollwindow("+xspeed+")",150)
}
function stopit(){
history.go(0)
}

