/*-------------------------------------------\ | Simple Cross Browser Menu Script | |--------------------------------------------| | Author: Emil A. Eklund | | First Created: May 19, 2000 | | Last Updated: Aug 17, 2000 | |--------------------------------------------| | Created to work with ie4+ and ns4+ | \-------------------------------------------*/ menuPrefix = 'menu'; // Prefix that all menu layers must start with // All layers with this prefix will be treated // as a part of the menu system. var menuTree, mouseMenu, hideTimer, doHide; function init() { ie4 = (document.all)?true:false; ns4 = (document.layers)?true:false; document.onmousemove = mouseMove; if (ns4) { document.captureEvents(Event.MOUSEMOVE); } } function expandMenu(menuContainer,subContainer,menuLeft,menuTop) { // Hide all submenus thats's not below the current level doHide = false; if (menuContainer != menuTree) { if (ie4) { var menuLayers = document.all.tags("DIV"); for (i=0; i' + text + '<\/a><\/nobr>' obj.document.open(); obj.document.write(text); obj.document.close(); } } onload = init;