//////////////////////////////////////////////////////
//
//	The purpose of this file is to
//	apply a hover class on mouseover
//	on the <li> elements in the nav.
//	This is because IE doesn't put
//	the pseudo class :hover on <li> elements
//
//	This is code that uses the
//	jquery javascript library (http://jquery.com/)
//
//////////////////////////////////////////////////////
$(document).ready(function() {
	if (document.all&&document.getElementById) {
		// this is needed for the IE 6 pseudo hover class bug
		$(".navtop li").hover(function () {
			$(this).addClass("hover");
		},function () {
			$(this).removeClass("hover");
		});
	} else {
		// this is need for safari when nav covers flash
		$(".navtop li ul").hover(function () {
			$(this).addClass("redraw");
		},function () {
			$(this).removeClass("redraw");
		});
	}

	
	var myfeed = $(".feed ul");
	if (myfeed.length > 0){
		jQuery.getFeed({
		   url: 'cmsxml/mercato_partners.rss',
		   dataType: ($.browser.msie) ? "text" : "xml",
		   success: function(feed) {
			   var length = feed.items.length;
			   var theHTML = "";
				for(var x = 0; x < length; x++ )
				{
					theHTML = theHTML + '<li><span class="headline"><a href="' + feed.items[x].link + '"> ' + feed.items[x].title + '</a></span><br />' + feed.items[x].description + ' <a href="' + feed.items[x].link + '"> Read More</a></li>'
					var bob = feed.items[x];
				}
				myfeed.html(theHTML);
				}
			});
		
	}






});




	
