function import_rss_feed(node, url) {

	//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(url, function(d) {

		//clear the content in the div for the next feed.
		$(node).empty();

		var html = "<div class=\"rss\">";

		
		var it = $(d).find("item");
		var ran = Math.floor(Math.random()*it.length);
		var $item = it.eq(ran);
		// grab the post title
		var title = $item.find('title').text();
		// grab the post's URL
		//var link = $item.find('link').text();
		
		var lead = $item.find('Lead').text();
		var  sparte = $item.find('Sparte').text();
		var  datum = $item.find('Datum').text();
		var  uhrzeit = $item.find('Uhrzeit').text();
		var  spielstaette = $item.find('Spielstaette').text();
		var  bild = $item.find('Bild').text();
		var  artikel = $item.find('Artikel').text();
		var link = $item.find('link').text();
		var slashIndex = link.lastIndexOf("/");
		var phpIndex = link.lastIndexOf(".php");
		link = "../php/rss_formular.php?id=" + link.substring(slashIndex+1,phpIndex);
		//don't forget the pubdate
		var pubDate = $item.find('pubDate').text();
		var pD = new Date(Date.parse(pubDate));
		
		// now create a var 'html' to store the markup we're using to output the feed to the browser window
		html += "<div class=\"rssItem\">";
		html += "<img src=\"img/freikartenHeader.png\" alt=\"Freikarten\" />";
		html += '<div id="freikarteLink"><a href="http://www.freikarte.at" target="_blank">www.freikarte.at</a></div>';
		html += "<table border=\"0\"><tr><td class=\"img\" rowspan=\"2\"><img src=\"" + bild + "\" alt=\"" + title + "\" /></td>"; 
		html += "<td>";
		html += "<h1 class=\"color\">" + title + "</h1>";
		//html += "<h3>" + lead + "</h3>";
		//html += "<h3 class=\"color\">" + sparte + "</h3>";
		html += "<h3>" +  datum + " " + uhrzeit+ "</h3>";
		html += "<h3>" + spielstaette + "</h3>";
		html += "</td></tr><tr><td class=\"link\"><a href=\""+ link +"\">&gt;&gt; Freikarten gewinnen</a></td></tr></table>";
		
		//html += "<a href=\"" + link + "\" target=\"_blank\">" + title + "</a><br />";
		//if (description.length > 0) {
			//html += "<p class=\"description\">" + description + "</p>";
		//} 
		//var minutes = pD.getMinutes();
		//html += "<small class=\"date\">" + pD.getDate() + "." + pD.getMonth() + "." +  pD.getFullYear() + " " + pD.getHours() + ":" + ((minutes < 10) ? "0" + minutes : minutes) + "</small>";
		html += "</div>"; // end of rssItem
		html += "<div class=\"clear\">&nbsp;</div>";
		
		html += "</div>";
		$(node).append($(html));
	});
};
