
		function feedReader_js_init(){
			//var itemCount = 1;
			//AJAX call to RSS feed
			//feedURL, feedFormat (RSS2.0 or Atom) and containerID must be defined in CustomScript element
			
			$.ajax({
				type: "GET",
				url: feedURL,
				dataType: "xml",
				success: function(xml) {
					$(xml).find("item").each(function(){
						var itemHTML = "";
						var readMoreLink = "";
						
						itemHTML = "<div class='newsColumnItem bodytext newsColumnText hiddenElement' id='feedItem_" + itemCount + "'>" + $(this).find("description").text();
						if(typeof hideReadMore == "undefined"){
							readMoreLink = "<a href='" + $(this).find("link").text() + "' class='newslink'>Read more</a>";
						} 
						$(containerID).append(itemHTML + readMoreLink + "</div>");													  
						itemCount++;
					});
					//if(typeof rotateItems == "boolean"){
						//if(rotateItems){
							itemRotator_js_init();	
						//}
					//}
				},
				error: function (XMLHttpRequest, textStatus, errorThrown) {
					$(containerID).append("<p>An error occurred retrieving the RSS feed " + feedURL + "</p>");
				}				
			});
		}
