TICKER_CONTENT = EF_getobj('ef_ticker').innerHTML;
 
TICKER_RIGHTTOLEFT = false;
TICKER_SPEED = 2;
TICKER_STYLE = "font-family:Arial; font-size:12px; color:#fff";
TICKER_PAUSED = false;

ticker_start();

function ticker_start() {
	var tickerSupported = false;
	TICKER_WIDTH = EF_getobj('ef_ticker').style.width;
	var img = "<img src=/img/site/tdot.gif width="+TICKER_WIDTH+" height=0>";

//	if (navigator.userAgent.indexOf("Firefox")!=-1 || navigator.userAgent.indexOf("Safari")!=-1) {
		EF_getobj('ef_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;
//	}
/*	if (navigator.userAgent.indexOf("MSIE")!=-1 && navigator.userAgent.indexOf("Opera")==-1) {
		EF_getobj('ef_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) EF_getobj('ef_ticker').outerHTML = ""; else {*/
		EF_getobj('ef_ticker').scrollLeft = TICKER_RIGHTTOLEFT ? EF_getobj('ef_ticker').scrollWidth - EF_getobj('ef_ticker').offsetWidth : 0;
		document.getElementById("TICKER_BODY").innerHTML = TICKER_CONTENT;
		EF_getobj('ef_ticker').style.display="block";
		TICKER_tick();
//	}
}

function TICKER_tick() {
	if(!TICKER_PAUSED) EF_getobj('ef_ticker').scrollLeft += TICKER_SPEED * (TICKER_RIGHTTOLEFT ? -1 : 1);
	if(TICKER_RIGHTTOLEFT && EF_getobj('ef_ticker').scrollLeft <= 0) EF_getobj('ef_ticker').scrollLeft = EF_getobj('ef_ticker').scrollWidth - EF_getobj('ef_ticker').offsetWidth;
	if(!TICKER_RIGHTTOLEFT && EF_getobj('ef_ticker').scrollLeft >= EF_getobj('ef_ticker').scrollWidth - EF_getobj('ef_ticker').offsetWidth) EF_getobj('ef_ticker').scrollLeft = 0;
	window.setTimeout("TICKER_tick()", 30);
}