function init() { //========================================================================================== // if supported, initialize TransMenus //========================================================================================== // Check isSupported() so that menus aren't accidentally sent to non-supporting browsers. // This is better than server-side checking because it will also catch browsers which would // normally support the menus but have javascript disabled. // // If supported, call initialize() and then hook whatever image rollover code you need to do // to the .onactivate and .ondeactivate events for each menu. //========================================================================================== if (TransMenu.isSupported()) { TransMenu.initialize(); // hook all the highlight swapping of the main toolbar to menu activation/deactivation // instead of simple rollover to get the effect where the button stays hightlit until // the menu is closed. parent026.onactivate = function() { document.getElementById("parent026").className = "hover"; }; parent026.ondeactivate = function() { document.getElementById("parent026").className = ""; }; parent027.onactivate = function() { document.getElementById("parent027").className = "hover"; }; parent027.ondeactivate = function() { document.getElementById("parent027").className = ""; }; } } if (TransMenu.isSupported()) { var ms = new TransMenuSet(TransMenu.direction.down, 1, 0, TransMenu.reference.bottomLeft); var parent026 = ms.addMenu(document.getElementById("parent026")); var parent027 = ms.addMenu(document.getElementById("parent027")); parent026.addItem("ახალი ამბები","newsroom.php"); // - 0 - num: 0 parent026.addItem("ფოტო გალერეა","ფოტო გალერეა.php"); // - 0 - num: 1 parent027.addItem("ვაკანსიები","vacancies.php"); // - 0 - num: 0 parent027.addItem("ტენდერები ","tenders.php"); // - 0 - num: 1 TransMenu.renderAll(); }