var newsareaheight = 10;
var newsheight = 0;
var busy = "no";

function scroll()
{
  if (busy == "no")
  {
    var currtop = document.getElementById("newsscrollarea").style.marginTop;
    currtop = currtop.substr(0, currtop.length-2);
    if (currtop < -newsheight) currtop = newsareaheight;
    document.getElementById("newsscrollarea").style.marginTop = currtop - 1;
  }
  window.setTimeout("scroll()", 100);
}

function rollnews()
{
  newsareaheight = document.getElementById("newsarea").clientHeight;
  var starttop = 0;
  newsheight = document.getElementById("newsscrollarea").clientHeight;
  if (newsheight > newsareaheight) starttop = newsareaheight;
  document.getElementById("newsscrollarea").style.marginTop = starttop;
  if (newsheight > newsareaheight) window.setTimeout("scroll()", 50);
}

function newsover()
{
  busy = "yes";
}

function newsoff()
{
  busy = "no";
}
