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. aboutuniversity012.onactivate = function() { document.getElementById("aboutuniversity012").className = "hover"; }; aboutuniversity012.ondeactivate = function() { document.getElementById("aboutuniversity012").className = ""; }; departaments014.onactivate = function() { document.getElementById("departaments014").className = "hover"; }; departaments014.ondeactivate = function() { document.getElementById("departaments014").className = ""; }; library017.onactivate = function() { document.getElementById("library017").className = "hover"; }; library017.ondeactivate = function() { document.getElementById("library017").className = ""; }; } } if (TransMenu.isSupported()) { var ms = new TransMenuSet(TransMenu.direction.Right, 252, 0, TransMenu.reference.TopLeft); var aboutuniversity012 = ms.addMenu(document.getElementById("aboutuniversity012")); var departaments014 = ms.addMenu(document.getElementById("departaments014")); var library017 = ms.addMenu(document.getElementById("library017")); aboutuniversity012.addItem("President`s Welcome Speech ","welcome.php"); // - 0 - num: 0 aboutuniversity012.addItem("History","history.php"); // - 0 - num: 1 aboutuniversity012.addItem("Mission and Goals","mission.php"); // - 0 - num: 2 aboutuniversity012.addItem("Grading Decree","decree.php"); // - 0 - num: 3 aboutuniversity012.addItem("Ethics Code ","codeofconducts.php"); // - 0 - num: 4 aboutuniversity012.addItem("Organizational Chart","structure.php"); // - 0 - num: 5 departaments014.addItem("Language Department",""); // - 2 - num: 0 departaments014.addItem("General Education Department",""); // - 2 - num: 1 library017.addItem("About Library","aboutlibrary.php"); // - 0 - num: 0 TransMenu.renderAll(); }