//declare var hiarchMenuDisableMenu = false; var submenu = new Array(); var tmr = new Array(); var adj = new Array(); var last_zIndex = 10000; var fadeTimeOut=100; // EXAMPLE CONFIG var menuWidth = 140; //width of submenu in pixels var alignSubmenu = 'bottom'; //bottom or right side of the main button. var useLastItemCSS = true; //generate last menu item too //if false, it will behave as a normal item //and the css menuItemLast class will not be used //build or unhide submenu div... function buildSubmenu(obj){ if (hiarchMenuDisableMenu==true) { return false; } //get common part of div id menuPath = obj.id.split('_'); //unset mousout of parent menus and make sure they are visible... x = "div"; for(i=0;i-1) { subObj.style.width = menuWidth; } subObj.style.top = T_pos; subObj.style.left = L_pos; //write div to the body... document.getElementsByTagName('body')[0].appendChild(subObj); //build html for submenu content = ""; m = submenu[obj.id]; for(i=0;i" + m[i][0] + ""; adj[i] = obj.id + "_" + i; } //insert new menu subObj.innerHTML = content; //make all just made div's the same width... for(i=0;i=0 && navigator.userAgent.indexOf('Opera')==-1){ document.onmouseover = function(){ obj = event.srcElement; if(obj.className == 'menuItemFirst' || obj.className == 'menuItem' || obj.className == 'menuItemLast') obj.className+='Over'; } document.onmouseout = function(){ obj = event.srcElement; if(obj.className == 'menuItemFirstOver' || obj.className == 'menuItemOver' || obj.className == 'menuItemLastOver') obj.className = obj.className.substring(0,(obj.className.length - 4)); } } //*** End of msie patch