var nSpeed = 1;            // the speed of the ticker.
var nBgOff = "#DFDFDF";    // the background-color onmouseout.
var nBgOn  = "#DFDFDF";    // 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 nHeight;
var nEnd;
var nTop;
var timerTt = null;
var timerSt = null;

function TickerTape(){
	if(ie5) {
		innerHeight = document.body.clientHeight;
	}
	
	if(ie5 || ns6) {
		obj.style.backgroundColor = nBgOff;
		obj.style.color = nCoOff;
        	tck.style.top = nTop;
        	tck.style.height = nHeight;
        	nTop = nTop - nSpeed;
        	if( nTop+nHeight < nEnd ) {nTop = obj.offsetHeight;}
        	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');
		nHeight = tck.offsetHeight;
		
		obj.style.overflow = "hidden";
		obj.style.height=obj.parentNode.offsetHeight-20;
		obj.style.position = "relative";
		obj.style.visibility = "visible";
		obj.onmouseover = StopIt;
		obj.onmouseout = TickerTape;
		nTop = obj.offsetHeight;
		nEnd = 0;
		TickerTape();
	}
}

setTimeout("TickerInit()",100);
