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. parent012.onactivate = function() { document.getElementById("parent012").className = "hover"; }; parent012.ondeactivate = function() { document.getElementById("parent012").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.down, 1, 0, TransMenu.reference.bottomLeft); var parent012 = ms.addMenu(document.getElementById("parent012")); var parent015 = ms.addMenu(document.getElementById("parent015")); parent012.addItem("Goals and Tasks","goals.php"); // - 0 - num: 0 parent012.addItem("Structure","structura.php"); // - 1 - num: 2 parent015.addItem("SAFA","projectsafa.php"); // - 0 - num: 0 parent015.addItem("Twinning (ongoing)","ongoingtwinningproject.php"); // - 0 - num: 1 parent015.addItem("Twinning (previous)","previoustwinningproject.php"); // - 0 - num: 2 parent015.addItem("Local Single Sky Implementation (LSSIP)","ertianica.php"); // - 0 - num: 3 parent015.addItem("EUROCONTROL Project of Support to the Civil Aviation Agency of Georgia","evrokontrolis daxmareba.php"); // - 0 - num: 4 TransMenu.renderAll(); }