
var ie5 = (document.getElementById && document.all);
var ns6 = (document.getElementById && !document.all);

var obj;
var tck;

var nWidth = 800;          // width of text; more text you have higher this number is.
var nSpeed = 2;            // the speed of the ticker.
var nBgOff = "#f2f2f2";    // the background-color onmouseout.
var nBgOn  = "#ffffff";    // the background-color onmouseover.
var nCoOff = "#000000";    // the font-color onmouseout.
var nCoOn  = "#E6100B";    // the font-color onmouseover.

/* You don't have to edit below this line */

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) {
        obj.style.top = (innerHeight - obj.offsetHeight) + scrollY;
        obj.style.left = 0;
	obj.style.width = 100 + "%";
	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 = innerWidth;}
        timerTt=setTimeout('TickerTape()', 30);
    }
}

function StopIt(){
        clearTimeout(timerTt);
        //obj.style.backgroundColor = nBgOn
	//obj.style.color = nCoOn
}

function TickerInit(){
    if(ie5 || ns6) {
		if(document.getElementById('ticker_text') && document.getElementById('ticker_cont')){
        tck = document.getElementById('ticker_text');
        obj = document.getElementById('ticker_cont');
        obj.style.visibility = "visible";
        obj.onmouseover=StopIt;
        obj.onmouseout=TickerTape;
        TickerTape();
		//Statik();
		}
    }
}

onload=TickerInit;