// newhovermenuparts.js
// --- Controls functions of the dropdown menus - uses jQuery and hoverIntent for these features

$(document).ready(function() {

function addMenu(){
	$(this).addClass("hovering").find('> a strong').addClass("hovering");
	$(this).addClass("active");
/*		
	debug(' Is IE : ' + ((jQuery.support.cssFloat)));
	
	var i = (this.id == 'ctl00_fourth');
	
	debug('is ' + this.id + ' : ' + i);

	if((this.id == 'ctl00_fourth'))//&&(!(jQuery.support.cssFloat))
	{
		debug('- true');
		$('.lastChild .sIFR-flash').addClass('destroy').parent().addClass('splint');
	}
*/	
}

function removeMenu(){
	$(this).removeClass("hovering").find('> a strong').removeClass("hovering");
	$(this).removeClass("active");
/*	
	if((this.id == 'ctl00_fourth'))//&&(!(jQuery.support.cssFloat))
	{
		debug('- true');
		$('.lastChild .sIFR-flash').removeClass('destroy').parent().removeClass('splint');
	}
*/	
}

var menuConfig = {    
	interval: 100,
	sensitivity: 4,
	over: addMenu,
	timeout: 200,
	out: removeMenu
};
$('li.current').children('a').addClass('current')
$("li.menu").hoverIntent(menuConfig)
$("li.menu.hovering div.container-one ul.navigation-sub-one li.menu").hoverIntent(menuConfig)
});