	var lastMenu=null;
	var thisMenu = null;
	var timeOutFlag = 0;
	var lastMenuItem = null;

	function killMenu() {
		if(timeOutFlag==1 && thisMenu) {
			thisMenu.style.visibility="hidden";
			lightenAll();
		}
	}
	
	function keepMenu() {
		timeOutFlag=0;
	}
	
	function timeOutMenu() {
		timeOutFlag = 1;
		setTimeout("killMenu()",1000);
	}	
	
	function flyoutMenu(obj, menu, topofmenu) {
		menu.style.visibility="visible";
		menu.style.pixelTop =  topofmenu;
		menu.style.pixelLeft = obj.getBoundingClientRect().right;
		if ((lastMenu) && (lastMenu != menu)) 
		{
			lastMenu.style.visibility="hidden";
		}
		lastMenu=menu;
		thisMenu=menu;
		timeOutFlag=1;
	}	
	
	function setCursor() {

	}
	
	function hidemenu() {
		if (thisMenu == null) {
			if (lastMenu) {
				lastMenu.style.visibility="hidden";
			}
		}	
		thisMenu=null;
	}
	
	function changeBGColor(obj, bgColor) {
		obj.style.background=bgColor;
	}	
	
	function darken(id) {
		if (document.getElementById) {
   			if (document.getElementById(id).style.background != "#b51300") {
	   			document.getElementById(id).style.background = "D51300";
			}
		} else if (document.all) {
			document.all[id].style.background = "D51300";
		}
	}

	function lighten(id) {
		if (document.getElementById) {
   			if (document.getElementById(id).style.background != "#b51300") {
	    		document.getElementById(id).style.background = "";
			}
		} else if (document.all) {
			document.all[id].style.background = "";
		}
	}
	
	function opennewwindow(thislink) {
		var ht = screen.height*.600;
		var wd = screen.width*.600;
		var startX = (screen.width - wd) / 2;
		var startY = (screen.height - ht) / 2;
		var retVal = window.open(thislink,"","resizable=yes, toolbar=yes, menubar=yes, scrollbars=yes,height=" + ht + ",width=" + wd + ",left=" + startX + ",top=" + startY );	
	}

	function openMap(selectedMap) 
	{
		var url = "maps/flashmap.html?map=" + selectedMap;
		var map = window.open(url,"map","width=760,height=500");
	}
   