//////////////////////////////////////////////////////
//
//	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/)
//
//////////////////////////////////////////////////////
$(function(){
	if (document.all&&document.getElementById) {
		// this is needed for the IE 6 pseudo hover class bug
	$("#headernav .navtop li").hover(function () {
			$(this).addClass("hover");
		},function () {
			$(this).removeClass("hover");
		});
	} else {
		// this is need for safari when nav covers flash
		$("#headernav .navtop li ul").hover(function () {
			$(this).addClass("redraw");
		},function () {
			$(this).removeClass("redraw");
		});
	}
 /*
	// hide sub nav ul's
	$('#headernav .navtop>li>ul').hide();

	// keep selected subnav's open
	$('#headernav .navtop>li.selected>ul').show();
	$('#headernav .navtop>li').hoverIntent(function(){
		// create a reference to the active element (this)
		// so we don't have to keep creating a jQuery object
		$heading = $(this);
		// check to see if any sub menus are open
		if ($heading.siblings().find('ul:visible').size()!=0) {
			// close open sub menus
			$heading.siblings().find('ul:visible').slideUp(2000, function(){
				// open current menu if it's closed
				$heading.find('ul:hidden').slideDown(2000);
			});
		}
		else {
			$heading.find('ul:hidden').slideDown(2000);
			// open current menu if it's closed
		}
	},function(){});
*/

	//$('#wrapper, #header, #body, #footer, #containersub .orangetop, .orangebot').ifixpng();
});
