/* new top nav */


//-----------------------------------------------------------------------------------
//TOP NAVIGATION start

var currentSection = null;
var timeoutNavitem;

function hilite(section) {
	if (section.nodeName == "DIV") {
		var sNav = section;
	} else {
		var sNav = (section.nextSibling.nodeName == "DIV") ? section.nextSibling : section.nextSibling.nextSibling;
	}
	if (sNav != currentSection && currentSection != null) {
		currentSection.style.display = "none";
	}
	// calculations to ensure nav items don't overlap far right menu edge
	var navWidth = sNav.parentNode.parentNode.offsetWidth;
	if (navWidth == 0) navWidth = 600;
	var navPosi = sNav.parentNode.offsetLeft;
	var fixPosi = navWidth - (navPosi + 166);
	sNav.style.left = navPosi + "px";
	if (fixPosi < 0) {
		sNav.style.left = (navPosi + fixPosi) + "px";
	}
    clearTimeout(timeoutNavitem);
    sNav.style.display = "block";
	//if (navigator.appName == "Microsoft Internet Explorer") {
	//	document.getElementById("shim").style.left = sNav.style.left;
	//	document.getElementById("shim").style.height = sNav.offsetHeight + "px";
	//	document.getElementById("shim").style.display = "block";
	//}
	currentSection = sNav;
}

function lolite(section) {
	clearTimeout(timeoutNavitem);
	timeoutNavitem = setTimeout("lolite2()", 1000);
}

function lolite2(section){
    currentSection.style.display = "none";
	//document.getElementById("shim").style.display = "none";
}

//TOP NAVIGATION end