
 var scrollingEnabled = true;
 var textHeight = new Number();
 var zoneHeight = new Number();
 var scrollSpeed = 50;
 var scrollPause = 0;
 
 function $(obj){ return document.getElementById(obj); }
 
 function iniScrolling(){
  textHeight = $('textToScroll').offsetHeight;
  zoneHeight = $('zoneToScroll').offsetHeight;
  if(textHeight>zoneHeight) window.setTimeout('scrollText()', scrollPause);
 }
 
 function scrollText(){
  var currentMargin = parseInt($('textToScroll').style.marginTop) || 0;
  if(currentMargin - 200 >=-(textHeight-zoneHeight) && scrollingEnabled==true){
   currentMargin--;
   $('textToScroll').style.marginTop = currentMargin+'px';
   window.setTimeout('scrollText()', scrollSpeed);
  }else return;
 }
 
 window.onload = iniScrolling;
 scrollingEnabled = false;
