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. youthfestival013.onactivate = function() { document.getElementById("youthfestival013").className = "hover"; }; youthfestival013.ondeactivate = function() { document.getElementById("youthfestival013").className = ""; }; about017.onactivate = function() { document.getElementById("about017").className = "hover"; }; about017.ondeactivate = function() { document.getElementById("about017").className = ""; }; fund018.onactivate = function() { document.getElementById("fund018").className = "hover"; }; fund018.ondeactivate = function() { document.getElementById("fund018").className = ""; }; sportingeorgia019.onactivate = function() { document.getElementById("sportingeorgia019").className = "hover"; }; sportingeorgia019.ondeactivate = function() { document.getElementById("sportingeorgia019").className = ""; }; } } if (TransMenu.isSupported()) { var ms = new TransMenuSet(TransMenu.direction.Right, 142, 1, TransMenu.reference.TopLeft); var youthfestival013 = ms.addMenu(document.getElementById("youthfestival013")); var about017 = ms.addMenu(document.getElementById("about017")); var fund018 = ms.addMenu(document.getElementById("fund018")); var sportingeorgia019 = ms.addMenu(document.getElementById("sportingeorgia019")); youthfestival013.addItem("European Youth Olympic Festivals","EYOD-history.php"); // - 0 - num: 0 about017.addItem("Committee Members","members.php"); // - 0 - num: 0 about017.addItem("History","history.php"); // - 0 - num: 1 about017.addItem("Olympic Museum","musem.php"); // - 0 - num: 2 about017.addItem("Georgian Olympic Association","association.php"); // - 0 - num: 3 about017.addItem("Georgian Olympic Academy","academy.php"); // - 0 - num: 4 about017.addItem("Magazine 'Olimpieli'","magazine.php"); // - 0 - num: 5 fund018.addItem("About Fund","aboutfund.php"); // - 0 - num: 0 fund018.addItem("Statistics","statistics.php"); // - 0 - num: 1 sportingeorgia019.addItem("Sport Structure in Georgia","sportstructue.php"); // - 0 - num: 0 sportingeorgia019.addItem("Our Sport Results","sportresults.php"); // - 0 - num: 1 TransMenu.renderAll(); }