liveTicker = function() {
	try {
		var d = $(admcSport.vars.selectors.LIVETICKER).get(0);
		var b = d.parentNode.offsetWidth;
		var data = "" 
			if (admcSport.pageIsArabic())
				data += "lang=ar&"
			else
				data += "lang=en&"
		$.ajax( {
			url : "/ADMCDelivery/feeds/ticker/admc_ticker.jsp",
			cache : false,
			data : data + "update=true",
			success : function(f) {
				$(".ticker .live-scroller .scrolling marquee ul").replaceWith(f);
			}
		});
		$(d).hover(function() {
			$("marquee", this).get(0).stop()
		}, function() {
			$("marquee", this).get(0).start()
		})
	} catch (c) {
	}
};

matchCenterFlyout = function(b) {
	//disabled
};

$(function() {
	if ($(admcSport.vars.selectors.LIVETICKER).length > 0)
		liveTicker();
	if ($(".flyout").length > 0)
		matchCenterFlyout();
	window.setInterval(function(){
		if ($(admcSport.vars.selectors.LIVETICKER).length > 0)
			liveTicker();
		if ($(".match-centre-closed").length > 0)
			matchCenterFlyout();
		}, 1000*60);
});


