var t = 100;
var iScrollStep = -1;
var iMaxScroll  = 800;

function scroll(){
  ele = document.getElementById('news_content');
  
  iCurrent = parseInt(ele.style.marginTop);

  if(iCurrent){
    if(Math.abs(iCurrent)>iMaxScroll)
      iCurrent=0;
    ele.style.marginTop = iCurrent + iScrollStep + 'px';
  }
  else
    ele.style.marginTop = iScrollStep + 'px';

  window.setTimeout("scroll()", t);
}

function initialise(){
  if(window.opera)
    return;

  // Make div clip on overflow
  ele = document.getElementById('news_container');
  ele.style.overflow = 'hidden';

  // Make scroll stop on mouseover
  ele.onmouseover = function(){
    this.iScrollStep = iScrollStep;
    iScrollStep = 0;
  }
  ele.onmouseout = function(){
    iScrollStep = this.iScrollStep;
  }

  scroll();
}