var ie5 = (document.getElementById && document.all);
var ns6 = (document.getElementById && !document.all);

var nWidth = 1500;         // width of text; more text you have higher this number is.
var nSpeed = 1;            // the speed of the ticker.

var nEnd = -nWidth;  
var nLeft = nWidth;
var timerTt = null;
var timerSt = null;

function Statik() {
  if(ie5){
    scrollY = document.body.scrollTop;
    innerHeight = document.body.clientHeight;
  }
  
  if(ie5 || ns6)
  	timerSt=setTimeout("Statik()", 10);
}

function TickerTape(){
  if(ie5) 
    innerWidth = document.body.clientWidth;

  
  if(ie5 || ns6){
    tck.style.left = nLeft + "px";
    tck.style.width = nWidth + "px";
    nLeft = nLeft - nSpeed;
    if( nLeft < nEnd ) {nLeft = nWidth;}
    timerTt=setTimeout('TickerTape()', 15);
  }
}

function StartTicker(){
  document.getElementById("ticker").style.display = "block";
  if(ie5 || ns6) {
   tck = document.getElementById('ticker');
   TickerTape();
   Statik();
  }
}
