var nSpeed = 1;            // the speed of the ticker.
var nBgOff = "#DFDFDF";    // the background-color onmouseout.
var nBgOn  = "#FFFFFF";    // the background-color onmouseover.
var nCoOff = "#000000";    // the font-color onmouseout.
var nCoOn  = "#404040";    // the font-color onmouseover.

/* You don't have to edit below this line */
var ie5 = (document.getElementById && document.all);
var ns6 = (document.getElementById && !document.all);

var nWidth;
var nEnd;
var nLeft;
var timerTt = null;
var timerSt = null;

function TickerTape(){
	if(ie5) {
		innerWidth = document.body.clientWidth;
	}

	if(ie5 || ns6) {
		obj.style.backgroundColor = nBgOff;
		obj.style.color = nCoOff;
        	tck.style.left = nLeft;
        	tck.style.width = nWidth;
        	nLeft = nLeft - nSpeed;
        	if( nLeft < nEnd ) {nLeft = obj.offsetWidth;}
        	timerTt=setTimeout('TickerTape()', 30);
    	}
}

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

function TickerInit(){
	if(ie5 || ns6) {
		obj = document.getElementById('cont');
		tck = document.getElementById('text');
		nWidth = tck.offsetWidth;

		obj.style.overflow = "hidden";
		obj.style.width=obj.parentNode.offsetWidth-20;
		obj.style.position = "relative";
		obj.style.visibility = "visible";
		obj.onmouseover = StopIt;
		obj.onmouseout = TickerTape;
		nLeft = obj.offsetWidth;
		nEnd = -nWidth;
		TickerTape();
	}
}

setTimeout("TickerInit()",100);