var mainFlag=false; // used to indicate if you are over the main menu var menuCoords; // Coordinates defining defining each menu item function init() { showDiv('mainMenuMap'); showDiv('utilMenuMap'); } function overMenu(whichMain,c1,c2,c3,c4){ if (whichMain < 7){ theMenu = "mainMenuHover"; } else { theMenu = "utilMenuHover"; } var menNum = whichMain-1; hideDiv(theMenu); // for Mac compatibility clipDiv(theMenu,c2,c3,c4,c1); showDiv(theMenu); mainFlag = true; } function offMenu(){ if (mainFlag){ mainFlag = false; eval("setTimeout('delayIt()',100)"); } } function delayIt(which) { if (mainFlag == false){ clipDiv('mainMenuHover',0,0,0,0); clipDiv('utilMenuHover',0,0,0,0); } }