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. menu2.onactivate = function() { document.getElementById("topmenu_tab2").className = "hover"; }; menu2.ondeactivate = function() { document.getElementById("topmenu_tab2").className = ""; }; menu3.onactivate = function() { document.getElementById("topmenu_tab3").className = "hover"; }; menu3.ondeactivate = function() { document.getElementById("topmenu_tab3").className = ""; }; menu4.onactivate = function() { document.getElementById("topmenu_tab4").className = "hover"; }; menu4.ondeactivate = function() { document.getElementById("topmenu_tab4").className = ""; }; menu5.onactivate = function() { document.getElementById("topmenu_tab5").className = "hover"; }; menu5.ondeactivate = function() { document.getElementById("topmenu_tab5").className = ""; }; menu6.onactivate = function() { document.getElementById("topmenu_tab6").className = "hover"; }; menu6.ondeactivate = function() { document.getElementById("topmenu_tab6").className = ""; }; } } // set up drop downs anywhere in the body of the page. I think the bottom of the page is better.. // but you can experiment with effect on loadtime. if (TransMenu.isSupported()) { //================================================================================================== // create a set of dropdowns //================================================================================================== // the first param should always be down, as it is here // // The second and third param are the top and left offset positions of the menus from their actuators // respectively. To make a menu appear a little to the left and bottom of an actuator, you could use // something like -5, 5 // // The last parameter can be .topLeft, .bottomLeft, .topRight, or .bottomRight to inidicate the corner // of the actuator from which to measure the offset positions above. Here we are saying we want the // menu to appear directly below the bottom left corner of the actuator //================================================================================================== var ms = new TransMenuSet(TransMenu.direction.down, 1, 0, TransMenu.reference.bottomLeft); //================================================================================================== // create a dropdown menu //================================================================================================== // the first parameter should be the HTML element which will act actuator for the menu //================================================================================================== //================================================================================================== //================================================================================================== var menu2 = ms.addMenu(document.getElementById("topmenu_tab2")); menu2.addItem("Product Overview", "http://www.pentaho.com/products"); menu2.addItem("Enterprise Edition", "http://www.pentaho.com/products/enterprise"); menu2.addItem("Reporting", "http://www.pentaho.com/products/reporting"); menu2.addItem("Analysis", "http://www.pentaho.com/products/analysis"); menu2.addItem("      Spreadsheet Services", "http://www.pentaho.com/products/analysis/spreadsheet_services"); menu2.addItem("Dashboards", "http://www.pentaho.com/products/dashboards"); menu2.addItem("Data Integration", "http://www.pentaho.com/products/data_integration"); menu2.addItem("Data Mining", "http://www.pentaho.com/products/data_mining"); menu2.addItem("BI Platform", "http://www.pentaho.com/products/bi_platform"); menu2.addItem("Discover", "http://www.pentaho.com/products/demos/showNtell.php"); menu2.addItem("      Demos", "http://www.pentaho.com/products/demos/showNtell.php?tab=demos"); menu2.addItem("      Case Studies", "http://www.pentaho.com/products/demos/showNtell.php?tab=cases"); menu2.addItem("      White Papers", "http://www.pentaho.com/products/demos/showNtell.php?tab=papers"); menu2.addItem("      Market Insights", "http://www.pentaho.com/products/demos/showNtell.php?tab=insights"); menu2.addItem("Try Our Hosted Demo", "http://demo.pentaho.com"); //================================================================================================== //================================================================================================== var menu3 = ms.addMenu(document.getElementById("topmenu_tab3")); menu3.addItem("Support", "http://www.pentaho.com/services/support"); menu3.addItem("Training", "http://www.pentaho.com/services/training"); menu3.addItem("      FAQ", "http://www.pentaho.com/services/training/faq"); menu3.addItem("      Course Catalog", "http://www.pentaho.com/docs/2008_winter_pentaho_training_course_catalog.pdf"); menu3.addItem("Consulting", "http://www.pentaho.com/services/consulting"); menu3.addItem("ISV/OEM Support", "http://www.pentaho.com/services/isv_oem_support"); menu3.addItem("WebEx Event Center", "https://pentaho.webex.com"); //================================================================================================== //================================================================================================== var menu4 = ms.addMenu(document.getElementById("topmenu_tab4")); menu4.addItem("Technology Partners", "http://www.pentaho.com/partners/technology"); menu4.addItem("System Integrators", "http://www.pentaho.com/partners/system_integrators"); menu4.addItem("Authorized Resellers", "http://www.pentaho.com/partners/resellers"); menu4.addItem("OEM Partners", "http://www.pentaho.com/partners/oems"); menu4.addItem("Become a Partner", "http://www.pentaho.com/partners/join_now"); menu4.addItem("Partner Portal", "http://wiki.pentaho.org/display/PARTNERS/"); //================================================================================================== //================================================================================================== var menu5 = ms.addMenu(document.getElementById("topmenu_tab5")); menu5.addItem("Community Home", "http://community.pentaho.com/"); menu5.addItem("      BI Platform", "http://community.pentaho.com/projects/bi_platform"); menu5.addItem("      Kettle", "http://kettle.pentaho.org"); menu5.addItem("      Mondrian", "http://mondrian.pentaho.org"); menu5.addItem("      Pentaho Reporting", "http://reporting.pentaho.org"); menu5.addItem("      Weka", "http://weka.pentaho.org"); menu5.addItem("FAQs", "http://community.pentaho.com/faq"); menu5.addItem("Roadmap", "http://community.pentaho.com/roadmap"); menu5.addItem("Forums", "http://forums.pentaho.org"); menu5.addItem("Wiki", "http://wiki.pentaho.org"); menu5.addItem("Document Forum", "http://forums.pentaho.org/forumdisplay.php?f=236"); menu5.addItem("Newsletter", "http://www.pentaho.com/news/index.php?tab=community|2007"); menu5.addItem("Downloads", "http://www.pentaho.com/download"); //================================================================================================== //================================================================================================== var menu6 = ms.addMenu(document.getElementById("topmenu_tab6")); menu6.addItem("About Pentaho", "http://www.pentaho.com/about"); menu6.addItem("Customer Successes", "http://www.pentaho.com/about/customers"); menu6.addItem("Awards", "http://www.pentaho.com/about/awards/"); menu6.addItem("Meet the Team", "http://www.pentaho.com/team"); menu6.addItem("News, Blogs, Links", "http://www.pentaho.com/news"); menu6.addItem("Events & Webcasts", "http://www.pentaho.com/events"); menu6.addItem("Tribal Store", "http://www.cafepress.com/pentaho"); menu6.addItem("WebEx Event Center", "https://pentaho.webex.com"); menu6.addItem("Careers", "http://www.pentaho.com/careers"); menu6.addItem("Contact Us", "http://www.pentaho.com/contact"); //================================================================================================== //================================================================================================== // write drop downs into page //================================================================================================== // this method writes all the HTML for the menus into the page with document.write(). It must be // called within the body of the HTML page. //================================================================================================== TransMenu.renderAll(); }