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 = ""; }; parent014.onactivate = function() { document.getElementById("parent014").className = "hover"; }; parent014.ondeactivate = function() { document.getElementById("parent014").className = ""; }; parent015.onactivate = function() { document.getElementById("parent015").className = "hover"; }; parent015.ondeactivate = function() { document.getElementById("parent015").className = ""; }; parent017.onactivate = function() { document.getElementById("parent017").className = "hover"; }; parent017.ondeactivate = function() { document.getElementById("parent017").className = ""; }; parent018.onactivate = function() { document.getElementById("parent018").className = "hover"; }; parent018.ondeactivate = function() { document.getElementById("parent018").className = ""; }; } } if (TransMenu.isSupported()) { var ms = new TransMenuSet(TransMenu.direction.right, 210, 0, TransMenu.reference.TopLeft); var parent012 = ms.addMenu(document.getElementById("parent012")); var parent014 = ms.addMenu(document.getElementById("parent014")); var parent015 = ms.addMenu(document.getElementById("parent015")); var parent017 = ms.addMenu(document.getElementById("parent017")); var parent018 = ms.addMenu(document.getElementById("parent018")); parent012.addItem("Introduction","intro.php"); // - 0 - num: 0 parent012.addItem("“Mapping” UN Presence ","mappingpresence.php"); // - 0 - num: 1 parent012.addItem("UNDP","undp.php"); // - 0 - num: 2 parent012.addItem("UNFPA","UNFPA.php"); // - 0 - num: 3 parent012.addItem("UNHCR","UNHCR.php"); // - 0 - num: 4 parent012.addItem("UNICEF","UNICEF.php"); // - 0 - num: 5 parent012.addItem("UNIFEM","unifem.php"); // - 0 - num: 6 parent012.addItem("FAO","FAO.php"); // - 0 - num: 7 parent012.addItem("WFP","WFP.php"); // - 0 - num: 8 parent012.addItem("WHO","WHO.php"); // - 0 - num: 9 parent012.addItem("ILO","ILO.php"); // - 0 - num: 10 parent012.addItem("OHCHR","OHCHR.php"); // - 1 - num: 11 parent012.addItem("UNAIDS","unaids.php"); // - 0 - num: 12 parent012.addItem("IOM","IOM.php"); // - 0 - num: 13 parent014.addItem("About UN Resident Coordinator System","about.php"); // - 0 - num: 0 parent014.addItem("UN Resident Coordinator","unresidentcoordinator.php"); // - 0 - num: 1 parent014.addItem("Annual Reports","annualreports.php"); // - 0 - num: 2 parent014.addItem("Office of UN Resident Coordinator","officeoftheunrco.php"); // - 0 - num: 3 parent014.addItem("UN Coordination Groups",""); // - 5 - num: 4 var parent01415 = parent014.addMenu(parent014.items[4]); parent01415.addItem("UN Country Team","UNCT.php"); // - 0 - num: 0 parent01415.addItem("UN Human Rights Coordination Group ","HRCG.php"); // - 0 - num: 1 parent01415.addItem("UN Communications Group ","UNCG.php"); // - 0 - num: 2 parent01415.addItem("Operations Management Team","OMT.php"); // - 0 - num: 3 parent01415.addItem("Security Management Team","SMT.php"); // - 0 - num: 4 parent014.addItem("UN Theme Groups","unthemegroups.php"); // - 0 - num: 5 parent015.addItem("Sandra Elisabeth Roelofs ","SER.php"); // - 0 - num: 0 parent015.addItem("Paata Burchuladze","PB.php"); // - 0 - num: 1 parent015.addItem("Nina Ananiashvili","NA.php"); // - 0 - num: 2 parent017.addItem("About MDGs","MDGglobal.php"); // - 0 - num: 0 parent017.addItem("MDGs in Georgia","mdg.php"); // - 0 - num: 1 parent018.addItem("Donor Meeting, 27 February 2009","donormeeting.php"); // - 0 - num: 0 TransMenu.renderAll(); }