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
	$.ajax ({
		url: 'feed.php',
		type: 'GET',
		success: function(d) {
 
			//alert($(d).find('item:eq(0)'));
			
			var firstNode = $(d).find('item:eq(0)');
			var title = firstNode.find('title').text();
			var link = firstNode.find('link').text();
			
			$('#blog_title').html(title);
			$('#blog_headline a').attr('href', link);

		}
		
	});
};

$(document).ready(function() {
	get_rss_feed();
});
