
var crossobj=document.getElementById? document.getElementById("content") : document.all.content
var contentheight=crossobj.offsetHeight
var speed=15;  //specify speed of scroll (greater=faster)


function movedown() {
if (window.moveupvar) clearTimeout(moveupvar);
if (parseInt(crossobj.style.top)>(contentheight*(-1)+612)) crossobj.style.top=parseInt(crossobj.style.top)-speed+"px";
movedownvar=setTimeout("movedown()",10);
}

function moveup() {
if (window.movedownvar) clearTimeout(movedownvar);
if (parseInt(crossobj.style.top)<0) crossobj.style.top=parseInt(crossobj.style.top)+speed+"px";
moveupvar=setTimeout("moveup()",10);
}

/*
function movedown(){
if (window.moveupvar) clearTimeout(moveupvar)
if (iens6&&parseInt(crossobj.style.top)>(contentheight*(-1)+598))
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
else if (ns4&&crossobj.top>(contentheight*(-1)+598))
crossobj.top-=speed
movedownvar=setTimeout("movedown()",10)
}

function moveup(){
if (window.movedownvar) clearTimeout(movedownvar)
if (iens6&&parseInt(crossobj.style.top)<0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
else if (ns4&&crossobj.top<0)
crossobj.top+=speed
moveupvar=setTimeout("moveup()",10)
}
*/
function stopscroll() {
if (window.moveupvar) clearTimeout(moveupvar);
if (window.movedownvar) clearTimeout(movedownvar);
}

function movetop() {
stopscroll();
crossobj.style.top=50+"px";
}

function getcontent_height() {
contentheight=crossobj.offsetHeight;
}
window.onload=getcontent_height

