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. parent013.onactivate = function() { document.getElementById("parent013").className = "hover"; }; parent013.ondeactivate = function() { document.getElementById("parent013").className = ""; }; parent015.onactivate = function() { document.getElementById("parent015").className = "hover"; }; parent015.ondeactivate = function() { document.getElementById("parent015").className = ""; }; } } if (TransMenu.isSupported()) { var ms = new TransMenuSet(TransMenu.direction.right, 150, 0, TransMenu.reference.TopLeft); var parent013 = ms.addMenu(document.getElementById("parent013")); var parent015 = ms.addMenu(document.getElementById("parent015")); parent013.addItem("შიდა ტურიზმის პროექტები","projects.php?type=0"); // - 0 - num: 0 parent013.addItem("ინფრასტრუქტურული პროექტები","projects.php?type=2"); // - 0 - num: 1 parent013.addItem("საერთაშორისო პროექტები",""); // - 3 - num: 2 var parent01313 = parent013.addMenu(parent013.items[2]); parent01313.addItem("ტურისტული გამოფენა-ბაზრობები","projects.php?type=1"); // - 0 - num: 0 parent01313.addItem("გაცნობითი ტურები უცხოელი ჟურანლისტებისათვის","projects.php?type=3"); // - 0 - num: 1 parent01313.addItem("სხვა","others.php"); // - 0 - num: 2 parent015.addItem("ტურიზმის კანონი","turismiskanoni.php"); // - 0 - num: 0 parent015.addItem("სხვა ნორმატიული აქტები","otheracts.php"); // - 0 - num: 1 parent015.addItem("საერთაშორისო აქტები","internationalacts.php"); // - 0 - num: 2 TransMenu.renderAll(); }