$(document).ready(function() {
/*	$('#nav-main li').each(function() {
		$(this).mouseover(function() { 
			$(this).addClass("hover");
		});
		$(this).mouseout(function() {
			$(this).removeClass("hover");
		});
	});*/
	
//Uses hoverIntent to determine actions. Make sure hoverIntent.js is included before executing.	
	function addHover() { $(this).addClass("hover"); }
	function removeHover() { $(this).removeClass("hover"); }
	
	var intentConfig = {    
     sensitivity: 5, // number = sensitivity threshold (must be 1 or higher)    
     interval: 50, // number = milliseconds for onMouseOver polling interval    
     over: addHover, // function = onMouseOver callback (REQUIRED)    
     timeout: 300, // number = milliseconds delay before onMouseOut    
     out: removeHover // function = onMouseOut callback (REQUIRED)    
	};

	$('#nav-main li').hoverIntent(intentConfig);
});
