//////////////////////////////////////////////////////
//
//	The purpose of this file is to
//	apply a hover class on mouseover
//	on the <li> elements in the nav.
//	This is because IE doesn't put
//	the pseudo class :hover on <li> elements
//
//	This is code that uses the
//	jquery javascript library (http://jquery.com/)
//
//////////////////////////////////////////////////////
$(window).load(function() {
	if ($.browser.msie) {
		// this is needed for the IE 6 pseudo hover class bug
		$(".mainNav > li").hover(function () {			
			$(this).addClass("hover");			
		},function () {
			$(this).removeClass("hover");
		});				
	}
	$(".mainNav > li[ul]").hover(function () {			
		$(this).addClass("has_navchild");			
	},function () {
		$(this).removeClass("has_navchild");
	}); 

	if($.browser.safari) {		
		$(".mainNav").mousemove(function() {
			return false;
		});

		// hook up to the mouse move on the body to set the default state
		$("body").mousemove(function(e) {
			$(".has_navchild").removeClass("has_navchild");
		});
	}
});


//jump menu code//
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}