TICKER_SPEED = 1;
TICKER_RIGHTTOLEFT = false;
TICKER_STYLE = "";
TICKER_PAUSED = false;
TICKER_BLANK = '<img src="/images/s.gif" width="800" height="28" />';

function ticker_start() {
	var ticker = document.getElementById(TICKER_ELEMENT);
	var tickerSupported = false;
	TICKER_WIDTH = ticker.style.width;
	var img = TICKER_BLANK;

	// Firefox
	if (navigator.userAgent.indexOf("Firefox")!=-1 || navigator.userAgent.indexOf("Safari")!=-1) {
		ticker.innerHTML = "<TABLE  cellspacing='0' cellpadding='0' width='100%'><TR><TD nowrap='nowrap'>"+img+"<SPAN style='"+TICKER_STYLE+"' ID='TICKER_BODY' width='100%'>&nbsp;</SPAN>"+img+"</TD></TR></TABLE>";
		tickerSupported = true;
	}

	// IE
	if (navigator.userAgent.indexOf("MSIE")!=-1 || navigator.userAgent.indexOf("Opera")!=-1) {
		ticker.innerHTML = "<DIV nowrap='nowrap' style='width:100%;'>"+img+"<SPAN style='"+TICKER_STYLE+"' ID='TICKER_BODY' width='100%'></SPAN>"+img+"</DIV>";
		tickerSupported = true;
	}

	if(!tickerSupported) ticker.outerHTML = "";
	else {
		ticker.scrollLeft = TICKER_RIGHTTOLEFT ? ticker.scrollWidth - ticker.offsetWidth : 0;
		document.getElementById("TICKER_BODY").innerHTML = TICKER_CONTENT;
		ticker.style.display="block";
		TICKER_tick();
	}
}

function TICKER_tick() {
	var ticker = document.getElementById(TICKER_ELEMENT);
	if(!TICKER_PAUSED) ticker.scrollLeft += TICKER_SPEED * (TICKER_RIGHTTOLEFT ? -1 : 1);
	if(TICKER_RIGHTTOLEFT && ticker.scrollLeft <= 0) ticker.scrollLeft = ticker.scrollWidth - ticker.offsetWidth;
	if(!TICKER_RIGHTTOLEFT && ticker.scrollLeft >= ticker.scrollWidth - ticker.offsetWidth) ticker.scrollLeft = 0;
	window.setTimeout("TICKER_tick()", 50);
}

