//Holds the path the the images TransMenu.spacerGif = "images/spacer.gif"; // path to a transparent spacer gif TransMenu.dingbatOn = "images/submenu-on.gif"; // path to the active sub menu dingbat TransMenu.dingbatOff = "images/submenu-off.gif"; // path to the inactive sub menu dingbat TransMenu.shadowPng = "images/grey-40.png"; // a PNG graphic to serve as the shadow for mac IE5 TransMenu.backgroundPng = "images/white-90.png"; // a PNG graphic to server as the background for mac IE5 window.onload = function() { //========================================================================================== // 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(); menu1.onactivate = function() { document.getElementById("portfolio").className = "menu"; }; menu1.ondeactivate = function() { document.getElementById("portfolio").className = "menu"; }; } }