// JavaScript Document
//new flyout subnavigation
// add classes on hover

function addMenu(){
	$(this).addClass("hovering");
	$(this).addClass("active");
}

// remove classes on exit
function removeMenu(){
	$(this).removeClass("hovering");
	$(this).removeClass("active");
}

$(function() {
	var menuConfig = {
		interval: 40,
		sensitivity: 4,
		over: addMenu,
		timeout: 200,
		out: removeMenu
	};

	//call menu and fire hoverIntent plugin to slow down the flyout
	$("#main_menu li.menu_item").hoverIntent(menuConfig);
}); 
