function showHoverMenu() {
	var pos = $(this).offset();
	$(this).find('a').css({'backgroundPosition':'0px -39px'});
	$(this).find('.sublinks').fadeIn('fast').addClass('dropdown-show').css({'left':pos.left, 'top':(pos.top+$(this).height()) });
}

function hoverMenuOut() { 
	$(this).find('a').css({'backgroundPosition':'0px 0px'});
	var x = $(this).find('.sublinks');
	x.fadeOut('fast', function(){
		x.removeClass('dropdown-show');
	});
}

$(document).ready(function(){		
   $(".hoverlink").hoverIntent({
	 sensitivity: 1, 			 // number = sensitivity threshold (must be 1 or higher)
	 interval: 0,   			 // number = milliseconds for onMouseOver polling interval
	 over: showHoverMenu,     	 // function = onMouseOver callback (required)
	 timeout: 100,   			 // number = milliseconds delay before onMouseOut
	 out: hoverMenuOut     	 // function = onMouseOut callback (required)
   });   
});

