/************************************************************************  
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 = 1500;          // width of text; more text you have higher this number is.
var nSpeed = 3;            // the speed of the ticker.
var nBgOff = "#800000";    // the background-color onmouseout.
var nBgOn  = "#000000";    // the background-color onmouseover.
var nCoOff = "#ffffff";    // the font-color onmouseout.
var nCoOn  = "#00ffff";    // 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) {
        obj.style.backgroundColor = nBgOff;
	obj.style.color = nCoOff;
        tck.style.left = nLeft;
        tck.style.width = nWidth;
        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) {
        tck = document.getElementById('text');
        obj = document.getElementById('cont');
        obj.style.visibility = "visible";
        obj.onmouseover=StopIt;
        obj.onmouseout=TickerTape;
        TickerTape();
	Statik();
    }
}
onload=TickerInit;
