// 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 menu1 = ms.addMenu(document.getElementById("btn_home")); //================================================================================================== //================================================================================================== var menu1 = ms.addMenu(document.getElementById("btn_whatson")); menu1.addItem("Official Program", "http://www.australiaday.com.au/whatson/officialprogram.aspx"); menu1.addItem("What's On", "http://www.australiaday.com.au/whatson/whatson.aspx"); menu1.addItem("Australia Day Address", "http://www.australiaday.com.au/whatson/australiadayaddress.aspx"); menu1.addItem("National Anthem", "http://www.australiaday.com.au/whatson/nationalanthem.aspx"); menu1.addItem("Volunteer", "http://www.australiaday.com.au/whatson/volunteer.aspx"); menu1.addItem("Citizenship", "http://www.australiaday.com.au/whatson/citizenship.aspx"); menu1.addItem("Weather", "http://www.australiaday.com.au/whatson/weather_history.aspx"); var submenu1 = menu1.addMenu(menu1.items[1]); submenu1.addItem("In Sydney", "http://www.australiaday.com.au/whatson/whatson.aspx"); submenu1.addItem("In NSW by Location", "http://www.australiaday.com.au/whatson/wo_bylocation.aspx"); submenu1.addItem("In NSW by Event Type", "http://www.australiaday.com.au/whatson/wo_byeventtype.aspx"); submenu1.addItem("Around Australia", "http://www.australiaday.com.au/whatson/wo_aroundaustralia.aspx"); submenu1.addItem("Most Popular", "http://www.australiaday.com.au/whatson/wo_mostpopular.aspx"); //================================================================================================== //================================================================================================== var menu2 = ms.addMenu(document.getElementById("btn_havingfun")); menu2.addItem("Fun & Free Stuff", "http://www.australiaday.com.au/havingfun/funandfree.aspx"); menu2.addItem("Enter & Win", "http://www.australiaday.com.au/havingfun/enterandwin.aspx"); menu2.addItem("Celebrate & Decorate", "http://www.australiaday.com.au/havingfun/celebrateanddecorate.aspx"); var submenu2 = menu2.addMenu(menu2.items[0]); submenu2.addItem("Activity Sheets for Kids", "http://www.australiaday.com.au/havingfun/activitysheets.aspx"); submenu2.addItem("Australia Day Poster", "http://www.australiaday.com.au/havingfun/poster.aspx"); submenu2.addItem("Desktop Wallpaper", "http://www.australiaday.com.au/havingfun/wallpaper.aspx"); submenu2.addItem("Screensavers", "http://www.australiaday.com.au/havingfun/screensavers.aspx"); submenu2.addItem("Send an eCard", "http://www.australiaday.com.au/havingfun/ecards.aspx"); submenu2.addItem("Send an eInvite", "http://www.australiaday.com.au/havingfun/einvites.aspx"); submenu2.addItem("Online Trivia", "http://www.australiaday.com.au/havingfun/trivia.aspx"); var submenu2 = menu2.addMenu(menu2.items[2]); submenu2.addItem("Yourself", "http://www.australiaday.com.au/havingfun/d_yourself.aspx"); submenu2.addItem("Home, Event or Place of Work", "http://www.australiaday.com.au/havingfun/d_homeeventorwork.aspx"); submenu2.addItem("Your Boat", "http://www.australiaday.com.au/havingfun/d_boat.aspx"); submenu2.addItem("Merchandise", "http://www.australiaday.com.au/havingfun/merchandise.aspx"); //================================================================================================== //================================================================================================== var menu3; /* var menu3 = ms.addMenu(document.getElementById("btn_surfboardchallenge")); menu3.addItem("Event Information", "http://www.australiaday.com.au/surfboardchallenge/eventinfo.aspx"); //menu3.addItem("Enter Now", "http://www.australiaday.com.au/surfboardchallenge/enteronline.aspx"); //menu3.addItem("Tell a Friend", "http://www.australiaday.com.au/surfboardchallenge/tellfriend.aspx"); menu3.addItem("Results", "http://www.australiaday.com.au/surfboardchallenge/results.aspx"); menu3.addItem("Photos", "http://www.australiaday.com.au/surfboardchallenge/photos.aspx"); menu3.addItem("Testimonials", "http://www.australiaday.com.au/surfboardchallenge/testimonials.aspx"); menu3.addItem("Enquiries", "http://www.australiaday.com.au/contactus/default.aspx"); menu3.addItem("FAQs", "http://www.australiaday.com.au/surfboardchallenge/faqs.aspx"); var submenu2 = menu3.addMenu(menu3.items[0]); submenu2.addItem("3.5KM Course", "http://www.australiaday.com.au/surfboardchallenge/3km.aspx"); submenu2.addItem("2KM Course", "http://www.australiaday.com.au/surfboardchallenge/2km.aspx"); submenu2.addItem("Nippers & Year of the Lifesaver", "http://www.australiaday.com.au/surfboardchallenge/nippers.aspx"); submenu2.addItem("Training Tips", "http://www.australiaday.com.au/surfboardchallenge/trainingtips.aspx"); var submenu2 = menu3.addMenu(menu3.items[3]); submenu2.addItem("3.5KM Course", "http://www.australiaday.com.au/surfboardchallenge/results_3km.aspx"); submenu2.addItem("2KM Course", "http://www.australiaday.com.au/surfboardchallenge/results_2km.aspx"); submenu2.addItem("Nippers", "http://www.australiaday.com.au/surfboardchallenge/results_nippers.aspx"); */ //================================================================================================== //================================================================================================== var menu4 = ms.addMenu(document.getElementById("btn_yoursay")); menu4.addItem("All Topics", "http://www.australiaday.com.au/yoursay/default.aspx"); menu4.addItem("Who should deliver the next Australia Day Address?", "http://www.australiaday.com.au/yoursay/default.aspx?CategoryID=11"); menu4.addItem("Australia Day 2008 Address", "http://www.australiaday.com.au/yoursay/default.aspx?CategoryID=12"); menu4.addItem("What's the best thing about being an Aussie?", "http://www.australiaday.com.au/yoursay/default.aspx?CategoryID=13"); //================================================================================================== //================================================================================================== var menu5 = ms.addMenu(document.getElementById("btn_studentresources")); menu5.addItem("About Australia", "http://www.australiaday.com.au/studentresources/about.aspx"); menu5.addItem("Australia Day History", "http://www.australiaday.com.au/studentresources/history.aspx"); menu5.addItem("Indigenous Australians", "http://www.australiaday.com.au/studentresources/indigenous.aspx"); menu5.addItem("Australian Currency", "http://www.australiaday.com.au/studentresources/currency.aspx"); menu5.addItem("National Anthem", "http://www.australiaday.com.au/studentresources/anthem.aspx"); menu5.addItem("Flying & Use of the Flag", "http://www.australiaday.com.au/studentresources/flaguse.aspx"); //================================================================================================== //================================================================================================== var menu6 = ms.addMenu(document.getElementById("btn_mediaandnews")); menu6.addItem("Image Galleries", "http://www.australiaday.com.au/mediaandnews/gallery.aspx"); menu6.addItem("Media Releases", "http://www.australiaday.com.au/mediaandnews/mediareleases.aspx"); menu6.addItem("Brand Style Guide", "http://www.australiaday.com.au/mediaandnews/brandstyleguide.aspx"); menu6.addItem("Media Manual", "http://www.australiaday.com.au/mediaandnews/mediamaterial.aspx"); menu6.addItem("Australia Day Advertising", "http://www.australiaday.com.au/mediaandnews/advertising.aspx"); var submenu2 = menu6.addMenu(menu6.items[4]); submenu2.addItem("Television", "http://www.australiaday.com.au/mediaandnews/television.aspx"); //submenu2.addItem("Print", "http://www.australiaday.com.au/mediaandnews/print.aspx"); submenu2.addItem("Radio", "http://www.australiaday.com.au/mediaandnews/radio.aspx"); submenu2 = menu6.addMenu(menu6.items[0]); submenu2.addItem("Australia Day 2008", "http://www.australiaday.com.au/mediaandnews/gallery.aspx?CategoryID=13"); submenu2.addItem("Australia Day 2008 Lunch", "http://www.australiaday.com.au/mediaandnews/gallery.aspx?CategoryID=14"); //================================================================================================== //================================================================================================== var menu7 = ms.addMenu(document.getElementById("btn_corporatepartnership")); menu7.addItem("Corporate Partnerships", "http://www.australiaday.com.au/corporatepartnership/corppartnerships.aspx"); menu7.addItem("Corporate Club", "http://www.australiaday.com.au/corporatepartnership/corpclub.aspx"); menu7.addItem("Australia Day Lunch", "http://www.australiaday.com.au/corporatepartnership/australiadaylunch.aspx"); menu7.addItem("Our Team", "http://www.australiaday.com.au/corporatepartnership/team.aspx"); menu7.addItem("About the Australia Day Council of NSW", "http://www.australiaday.com.au/corporatepartnership/aboutadcnsw.aspx"); var submenu2 = menu7.addMenu(menu7.items[0]); submenu2.addItem("Partners", "http://www.australiaday.com.au/corporatepartnership/partners.aspx"); submenu2.addItem("Testimonials", "http://www.australiaday.com.au/corporatepartnership/testimonials.aspx"); submenu2.addItem("Opportunities", "http://www.australiaday.com.au/corporatepartnership/opportunities.aspx"); submenu2.addItem("Corporate Events", "http://www.australiaday.com.au/corporatepartnership/corpevents.aspx"); var submenu2 = menu7.addMenu(menu7.items[1]); submenu2.addItem("Members", "http://www.australiaday.com.au/corporatepartnership/corpclub_members.aspx"); var submenu2 = menu7.addMenu(menu7.items[4]); submenu2.addItem("Council Members", "http://www.australiaday.com.au/corporatepartnership/aboutadcnsw_members.aspx"); //================================================================================================== //================================================================================================== // 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(); }