$(document).ready(function get_rss_feed() {
	//$("#feedcontent").empty(); // Empty the contents of the #feedcontent div
	
	//Grab URL and place results in argument for parsing
	$.get("proxy.php?url=http://feeds.pheedo.com/EETimes_Semi_News", function(d) { 
		$(d).find('item').each(function() { //Find each 'item' in the file and parse
			
			var $item = $(this);
			
			var title = $item.find('title').text();
			var link = $item.find('link').text();
			var description = $item.find('description').text();
			var pubDate = $item.find('pubDate').text();
			var guid = $item.find('guid').text();
			
			// Create var 'html' to hold the markup for output of feed content
			var html = "<div class=\"entry\" rel=\"" + guid + "\"><h2 class=\"postTitle\">" + title + "<\/h2>";
			html += "<em class=\"date\">" + pubDate + "</em>";
			html += "<p class=\"description\">" + description + "</p>";
			html += "<a href=\"" + link + "\" target=\"_blank\">Read More >><\/a><\/div>";
			
			// Place inside #feedcontent
			$('#feedcontent').append($(html));
			
			// Remove ads from #feedcontent
			$("#feedcontent .entry[rel!='']").remove();
			$("#feedcontent .entry .description a img[src^='http://ads']").remove();
			$("#feedcontent .entry .description a img[alt='']").remove();
			});
		
			// load cycle plugin for scrolling of feeds
			loadslider();
		});
});
function loadslider() {
	$('#feedcontent').cycle({ 
		fx:    'scrollUp', 
		delay: -2000,
		timeout: 8000,
		pause: 1
	});
};