function findLivePageWidth() {
	if (window.innerWidth != null)
		return window.innerWidth;
	if (document.body.clientWidth != null)
		return document.body.clientWidth;
	return (null);
}
	
function popUp(evt,objectID){
	if (isDHTML) { // Makes sure this is a DHTML browser
		var livePageWidth = findLivePageWidth();
		//alert(livePageWidth);
		domStyle = findDOM(objectID,1);
		dom = findDOM(objectID,0);
		state = domStyle.visibility;
		if (dom.offsetWidth) elemWidth = dom.offsetWidth;
		else { if (dom.clip.width)	elemWidth = dom.clip.width; }
		if (dom.offsetHeight) elemHeight = dom.offsetHeight; 
		else { if (dom.clip.height)	elemHeight = dom.clip.height; }
		
		if (state == "visible" || state == "show")  { domStyle.visibility = "hidden"; }
		else {
			if (isID || isAll) { 	
				var leftVal = (dom.offsetLeft)
				var topVal = (dom.offsetTop);
			}
			if (isLayers) {
				var leftVal = document.layers[idMenu].layers[idMenuOpt].pageX ;
				var topVal = domMenu.pageY + domMenu.clip.height;
			}
		/*If the element goes off the page to the left, this moves it back */
			
			domStyle.top = topVal; // Positions the element from the top
			domStyle.left = leftVal; // Positions the element from the left
			domStyle.visibility = "visible"; // Makes the element visable 
		}
	}
}

function toggleMenu(objectID) {
	if (isAll || isID) {
		domStyle = findDOM(objectID,1);
		if (domStyle.display =='block') {domStyle.display='none';}
		else {domStyle.display='block';}
	}
	return;
}
