$(document).ready(function get_rss_feed() {
	//clear the content in the div for the next feed.
	$("#feedContent").empty();
 
	//use the JQuery get to grab the URL from the selected item, put the results in to an argument for parsing in the inline function called when the feed retrieval is complete
	$.get("proxy.php?url=http://www.newsfeedmaker.com/show-feed/e273a76c", function(d) {
		//find each 'item' in the file and parse it
		$(d).find('item').each(function() {
 
			//name the current found item this for this particular loop run
			var $item = $(this);
			// grab the post title
			var title = $item.find('title').text();
			// grab the post's URL
			var link = $item.find('link').text();
			// next, the description
			var description = $item.find('description').text();
			//don't forget the pubdate
			var pubDate = $item.find('pubDate').text();
 
			// now create a var 'html' to store the markup we're using to output the feed to the browser window
			var html = "<div class=\"entry\"><h3 class=\"postTitle\">" + title + "<\/h3>";
			html += "<p class=\"date\"><em>" + pubDate + "<\/em><\/p>";
			html += "<p class=\"description\">" + description + "</p>";
			html += "<p class=\"more\"><a href=\"" + link + "\" target=\"_blank\">Read More >><\/a><\/p><\/div>";
 
			//put that feed content on the screen!
			$('#feedContent').append($(html));
			
			// load cycle plugin for scrolling of feeds
			loadslider();
		});
	});
 
});
function loadslider() {
	$('#feedContent').cycle({ 
		fx:    'scrollUp', 
		delay: -2000,
		timeout: 8000,
		pause: 1
	});
};
