/************************************************************************  
Script made by Martial Boissonneault © 2001 http://getElementById.com/
This script may be used and changed freely as long as this msg is intact
Visit http://getElementById.com/ for more free scripts and tutorials.
*************************************************************************/
var ie5 = (document.getElementById && document.all);
var ns6 = (document.getElementById && !document.all);

var nWidth = 786;          // width of text; more text you have higher this number is.
var nSpeed = 1;            // the speed of the ticker.
var nBgOff = "#ff";    // the background-color onmouseout.
var nBgOn  = "#ff";    // the background-color onmouseover.
var nCoOff = "#000";    // the font-color onmouseout.
var nCoOn  = "#bb002b";    // 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;

var tck = document.getElementById('text_ticker');
var obj = document.getElementById('inner_ticker');

//window.loadFirebugConsole()

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(){
//	obj.style.backgroundColor = nBgOff;
//	obj.style.overFlow = 'hidden';
	tck.style.left = nLeft+'px';
	nLeft = nLeft - nSpeed;
	if( nLeft + tck.offsetWidth < 0 ) {
		nLeft = nWidth;
	}
	timerTt=setTimeout('TickerTape()', 15);
}

function StopIt(){
	clearTimeout(timerTt);
}

function TickerInit(){
	obj.style.visibility = "visible";
	obj.onmouseover=StopIt;
	obj.onmouseout=TickerTape;
	
	TickerTape();
	Statik();
}



