var speed=2;
var crossobj=document.getElementById? document.getElementById("Scroller-Container") : document.all.content;
var contentheight=crossobj.offsetHeight;

function movedown(){
  if (window.moveupvar) clearTimeout(moveupvar);
  var y=parseInt(crossobj.style.top)-speed;
  crossobj.style.top = (y < (-contentheight+280) ? -contentheight+280:y)+"px";
  movedownvar=setTimeout("movedown()",20);
}

function moveto(y){
  crossobj.style.top = -y+"px";
}

function moveup(){
  if (window.movedownvar) clearTimeout(movedownvar);
  var y=parseInt(crossobj.style.top)+speed;
  crossobj.style.top = (y>3 ? 3:y)+"px";
  moveupvar=setTimeout("moveup()",20)
}

function stopscroll(){
  if (window.moveupvar) clearTimeout(moveupvar);
  if (window.movedownvar) clearTimeout(movedownvar);
}

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

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