$(function() {
	if ($.fn.XMLToJSON)
		$.ajax({
			url: '/feeds/home_page_ticker',
			async: false,
			dataType: 'xml',
			success: function(xml) {
				var tickerJSON = [];
				$(xml).XMLToJSON(tickerJSON, 'link');
				new HorizTicker(null, tickerJSON, '#newsTicker', 3, 5 );
			},
			error: function() { alert("Error - could not load feed"); }
		})
	else
		alert("Error - you are attempting to use the XML-to-JSON convertor and remapper but the plugin has not been loaded into the page");
});
