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. aboutus012.onactivate = function() { document.getElementById("aboutus012").className = "hover"; }; aboutus012.ondeactivate = function() { document.getElementById("aboutus012").className = ""; }; partners014.onactivate = function() { document.getElementById("partners014").className = "hover"; }; partners014.ondeactivate = function() { document.getElementById("partners014").className = ""; }; organizations015.onactivate = function() { document.getElementById("organizations015").className = "hover"; }; organizations015.ondeactivate = function() { document.getElementById("organizations015").className = ""; }; legaldocs016.onactivate = function() { document.getElementById("legaldocs016").className = "hover"; }; legaldocs016.ondeactivate = function() { document.getElementById("legaldocs016").className = ""; }; projects018.onactivate = function() { document.getElementById("projects018").className = "hover"; }; projects018.ondeactivate = function() { document.getElementById("projects018").className = ""; }; } } if (TransMenu.isSupported()) { var ms = new TransMenuSet(TransMenu.direction.Right, 200, 0, TransMenu.reference.TopLeft); var aboutus012 = ms.addMenu(document.getElementById("aboutus012")); var partners014 = ms.addMenu(document.getElementById("partners014")); var organizations015 = ms.addMenu(document.getElementById("organizations015")); var legaldocs016 = ms.addMenu(document.getElementById("legaldocs016")); var projects018 = ms.addMenu(document.getElementById("projects018")); aboutus012.addItem("Stage I","aboutstage1.php"); // - 0 - num: 0 aboutus012.addItem("Stage II","aboutstage2.php"); // - 0 - num: 1 partners014.addItem("Stage I","partnersstage1.php"); // - 0 - num: 0 partners014.addItem("Stage II","partnersstage2.php"); // - 0 - num: 1 organizations015.addItem("Stage I","csostage1.php"); // - 0 - num: 0 organizations015.addItem("Stage II","csostage2.php"); // - 0 - num: 1 legaldocs016.addItem("Georgia","georgialaw.php"); // - 0 - num: 0 legaldocs016.addItem("Armenia","armenialaw.php"); // - 0 - num: 1 projects018.addItem("Stage I","projectstage1.php"); // - 0 - num: 0 projects018.addItem("Stage II","projectsstage2.php"); // - 0 - num: 1 TransMenu.renderAll(); }