var currentSpanElement = ""; //Needed to track current span element var menuArray = new Array(); //Tracks what divs are showing so it knows what to hide when a new span is clicked var onTextColor = "#000000"; //Text color with mouseover var offTextColor = "#"; //Text color with NO mouseover var onCellColor = "#1480ba"; //Span color with mouseover var offCellColor = "#efffff"; //Span color with nomouseover var offsetMenuX = 100; //X Distance new menu will be from parent menu var offsetMenuY = 30; //Y Distance increase of new menu compared to parent span var startDistanceX = 20; //Sets how far off onMouseOver start element we should go var startDistanceY = 10; //Sets how far off onMouseOver start element we should go var Level1MenuY = 98; //Level1 Menu Top var menuOn = false; //Only one set of menus can be displayed at once var started = false; //Used to track if we just started the menus var clickStart = true; //Allow an onClick event to start the menu or not here var clickX = 10; //Location X of event to start menu var clickY = 10; //Location Y of event to start menu var selectCount = 0; var select = ""; var appletCount = 0; //If we have applets, track the # so we can temporarily hide them var applets = ""; //Tracks the document.all.tags("applet") collection so we can reference it once rather than twice function startIt(menu,thisItem,level) { //menu = menu to display,thisItem=coordinates of item to use,level=current depth of menus if (menuOn == true) { window.event.cancelBubble = true; hideAllDivs(); return; //Only allow one menu to be activated at a time } else { select = document.all.tags("select"); selectCount = select.length; if (selectCount > 0) { for (i=0;i 0) { for (i=0;i= document.body.clientWidth) { positionX -= (eMenu.offsetWidth * 1.0); positionY += 15; } //alert(positionX); //If the menu is too far to the left to display, bump it to the right some if ((positionX + eMenu.offsetWidth) <= eMenu.offsetWidth) { positionX += (eMenu.offsetWidth * 2.0); //alert(positionX); } //If the menu is too far down, bump the menu up to the bottom equals the body clientHeight property if ((positionY + eMenu.offsetHeight) >= document.body.clientHeight) { if (started != true) positionY = document.body.clientHeight - eMenu.offsetHeight; } if (level==0) { eMenu.style.left = 10; eMenu.style.top = 10; } if (level==1) { eMenu.style.left = positionX-45+0; eMenu.style.top = Level1MenuY; } if (level!=1&&level!=0) { eMenu.style.left = positionX; eMenu.style.top = positionY; } //eMenu.style.zIndex = level; //Only use this if we don't reverse the arrays in the ASP/XML Script eMenu.style.visibility='visible'; } started = false; //After 1st menu, turn of started variable } function hideDiv(currentLevel) { for (var i=currentLevel;i 0) { for (i=0;i 0) { for (i=0;i