var config = {    
		 sensitivity: 3, // number = sensitivity threshold (must be 1 or higher)    
		 interval: 0,  // number = milliseconds for onMouseOver polling interval    
		 over: doOpen,   // function = onMouseOver callback (REQUIRED)    
		 timeout: 0,   // number = milliseconds delay before onMouseOut    
		 out: doClose    // function = onMouseOut callback (REQUIRED)    
};
	
function doOpen() {
	$(this).addClass("hover");
	$('ul:first',this).css('visibility', 'visible');
	// keep the hover state of the parent menu item
	$(this).parent().parent().children('a').addClass('hover');
}
function doClose() {
	$(this).removeClass("hover");
	$('ul:first',this).css('visibility', 'hidden');
	
	// keep the hover state of the parent menu item
	$(this).parent().parent().children('a').removeClass('hover');	
}

$("ul#top-nav li").hoverIntent(config);
$("ul#top-nav li ul li:has(ul)").find("a:first").append(" &raquo; ");
