function getTopRotationBanners(){	
	var myHTMLOutput = "";
	var topRBList;
	// Open the xml file
	$.ajax({
		type: "GET",
		url: "rotationads_sp.xml",
		dataType: "xml",
		success: function(xml) {
			
			myHTMLOutput += '<ul id="topRBList">';
			// Run the function for each tag in the XML file
			$('image',xml).each(function(i) {
				itemImage = $(this).attr("path");
				itemLink = $(this).attr("myURL");
				itemAlt = $(this).attr("alt");
				itemPubDate = $(this).attr("pubDate");
				itemExpDate = $(this).attr("expDate");
				
				if(isNaN(Date.parse(itemPubDate))){
					itemPubDate = "January 1, 1970";
				}
				
				if(isNaN(Date.parse(itemExpDate))){
					itemExpDate = "December 31, 9999";	
				}
				
				if(Date.parse(itemPubDate)<= Date.parse(serverTime) && Date.parse(itemExpDate) >= Date.parse(serverTime)) {
					// Build row HTML data and store in string
					mydata = BuildItemHTML(itemImage, itemLink, itemAlt);
					myHTMLOutput = myHTMLOutput + mydata;
				}				
			});
			myHTMLOutput += '</ul>';

			displayXML(myHTMLOutput);
			//start the animation
			animator(topRBList.children(":first"));
		}});
	
	function BuildItemHTML(itemImage, itemLink, itemAlt){
		// Build HTML string and return
		output = '';
		output += '<li>';
		output += '<a href="'+ itemLink + '">';
		output += '<img src="'+ itemImage +'" alt="'+ itemAlt +'" />';
		output += '</a>';
		output += '</li>';
		return output;
	};

	function displayXML(myHTMLOutput){
		$("#topRotationBanner").append(myHTMLOutput);
		topRBList = $("#topRBList");
		topRBList.css("overflow", "hidden");
	};
	
	function animator(currentItem) {
		//work out new anim duration
		var normalSpeed = 100;
		var speed = normalSpeed;
		var distance = currentItem.width();
		var duration = (distance + parseInt(currentItem.css("marginLeft"))) / speed;
		//animate the first child
		
		setTimeout(function(){
			currentItem.animate({ marginLeft: -distance }, duration, "linear", function() {
				
				//move current item to the end
				currentItem.appendTo(currentItem.parent()).css("marginLeft", 0);
				
				currentItem = null;
				speed = null;
				normalSpeed = null;
				distance = null;
				duration = null;
				//recurse
				//animator(currentItem.parent().children(":first"));
				animator(topRBList.children(":first"));
			});
		}, 6000);
	};
};