	
function initRestListingRatingsKey () {
	var config = {
		sensitivity: 3, 
		interval: 200, 
		timeout:300,
		over: showRestListingRatingsKey, //function that is triggered on hover 
		out:  hideRestListingRatingsKey   //function that is triggered on mouseout
	};

	if ($nymag_j.browser.msie && $nymag_j.browser.version =="6.0" ) { 
	   $nymag_j("div.listing-photo div.slideshow-button img").addClass("hideMeFromNav");
	}

	$nymag_j("div.summary-details ul li.rest-price-range span").hoverIntent(config);
	$nymag_j("div.summary-details ul li.rest-star-ratings span").hoverIntent(config);
}
		
$nymag_j(initRestListingRatingsKey);


function showRestListingRatingsKey() {
	$nymag_j(".listing-photo .hideMeFromNav").css("visibility","hidden");
	$nymag_j(this).children("div.price-and-ratings-key").fadeIn(600);
	
}
function hideRestListingRatingsKey() {
	$nymag_j(".listing-photo .hideMeFromNav").css("visibility","visible");
	$nymag_j(this).children("div.price-and-ratings-key").fadeOut("slow");
}

$nymag_j(function(){
    if(nymag.dcads.levels.l1=="listings" && nymag.dcads.levels.pageName=="index.html"){
        $nymag_j.get("/urr"+document.location.pathname+"profile_bottom",function(d){ 
            if(!d.match(/\<h2 class\=\"primary first-page\"\>Page Not Found\<\/h2\>/)) $nymag_j("#content-primary > .listing").append(d);
        });
    }
});
