function PopUp(pObj) {
	var sHref = "";
	var undef;
	if (pObj.href != undef)
		sHref = pObj.href;
	else {
		var n = pObj.selectedIndex;
		if (n > 0)
			sHref = pObj.options[n].value;
	}
	if (sHref.length > 0) {
		var newWin = window.open(sHref,"popUpWin","toolbar=no,height=400,width=600,resizable=yes,scrollbars=yes");
		newWin.focus();
	}
	return(false);
}

function nh_HideDivTags(sDivToShow) {
	var pDivs = "";
	if (document.all)
		pDivs  = document.all.tags("div");	
	else
		pDivs  = document.getElementsByTagName("div");	
	var vArr = sDivToShow.split("_");
	var vArrDiv;
	for (var i=0; i<pDivs.length; i++) {
		vArrDiv = (pDivs[i].id).split("_");
		if ( ( vArrDiv[0] == vArr[0] ) || (vArr[0].length < vArrDiv[0].length) )
			pDivs[i].className = "nhMenuhide";
			//pDivs[i].style.display = "none";
	}
}

function nh_Toggle(pDiv, sCss) {
	
	//var undef;
	//if (bStop == undef) bStop = false;
	var vArr = pDiv.split("_");
	nh_HideDivTags(pDiv);	
	if (document.all)
		pDiv = document.all[pDiv];
	else
		pDiv = document.getElementById(pDiv);
		
	//if (pDiv && !bStop) {				
	if (pDiv) {				
		pDiv.className = (pDiv.className = "nhMenuhide" ? ("nhMenushow"+sCss) : "nhMenuhide");
	}
	return(false);
}

function nh_OnMouseOutCheck(pDiv) {
	//return;
	if (document.all)
		if (!document.all[pDiv].contains(event.toElement)) 
			//nh_Toggle(pDiv, '', true);
			nh_HideDivTags(pDiv);
	//window.status = pDiv;
}

/* For Image Loading Efficiency */
var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		blue_over = newImage("images/blue-over.jpg");
		red_over = newImage("images/red-over.jpg");
		yellow_over = newImage("images/yellow-over.jpg");
		preloadFlag = true;
	}
}
