/* Define an array of object literals, each containing the data necessary to create a submenu. */ var aSubmenuData = [ { id : "nodeID7", itemdata: [ { text: "Introduction", url: "/Aboutus/index.cfm" }, { text: "Message From The Dean", url: "/Aboutus/index.cfm?page=dean_message" }, { text: "Faculty Vision and Mission", url: "/Aboutus/index.cfm?page=mission_vision" }, { text: "Faculty and Staff Directory", url: "/Aboutus/index.cfm?page=FBE_Directory" , submenu : { id : "nodeID61", itemdata: [ { text: "Faculty of Business and Economics", url: "/Aboutus/index.cfm?page=FBE_Directory" }, { text: "Academic Staff Directory", url: "/Aboutus/academic_staff_index.cfm" }, { text: "School of Business", url: "http://www.business.hku.hk/academicStaff.html" , target: "_blank" }, { text: "School of Economics and Finance", url: "http://www.sef.hku.hk/people/administrative_staff/" , target: "_blank" } ] } }, { text: "Our Facilities", url: "/Facilities/" }, { text: "Jobs and Career", url: "/Jobs/index.cfm" }, { text: "Rankings", url: "/Aboutus/index.cfm?page=rankings" }, { text: "Accreditations", url: "/Aboutus/index.cfm?page=accreditations" } ] }, { id : "nodeID21", itemdata: [ { text: "Introduction", url: "/Programme/index.cfm" }, { text: "Undergraduate", url: "javascript:;" , submenu : { id : "nodeID116", itemdata: [ { text: "Introduction", url: "/Programme/Undergraduate/index.cfm" }, { text: "Admissions", url: "/Programme/Undergraduate/index.cfm?page=Admissions" }, { text: "BBA(Acc&Fin)", url: "/Programme/Undergraduate/index.cfm?page=BBAAF" }, { text: "BBA", url: "/Programme/Undergraduate/index.cfm?page=BBA" }, { text: "BBA(IS)", url: "/Programme/Undergraduate/index.cfm?page=BBAIS" }, { text: "BBA(IBGM)", url: "/Programme/Undergraduate/index.cfm?page=BBAIBGM" }, { text: "BBA(Law)", url: "/Programme/Undergraduate/index.cfm?page=BBALAW" }, { text: "BEcon", url: "/Programme/Undergraduate/index.cfm?page=BECON" }, { text: "BEcon&Fin", url: "/Programme/Undergraduate/index.cfm?page=BECONFIN" }, { text: "BFin", url: "/Programme/Undergraduate/index.cfm?page=BFIN" }, { text: "BSc(QFin)", url: "/Programme/Undergraduate/index.cfm?page=BSCQFIN" }, { text: "Courses Offered", url: "/Programme/Undergraduate/courses_offered.cfm?school=SoB" , submenu : { id : "nodeID1131", itemdata: [ { text: "by School of Business", url: "/Programme/Undergraduate/courses_offered.cfm?school=SoB" }, { text: "by School of Economics and Finance", url: "/Programme/Undergraduate/courses_offered.cfm?school=SEF" } ] } }, { text: "Timetable and Calendar", url: "/Programme/Undergraduate/index.cfm?page=Timetable_Calendar" }, { text: "Business Communication", url: "/Programme/Undergraduate/index.cfm?page=Business_Communication" }, { text: "Enrichment Programmes", url: "/Programme/Undergraduate/index.cfm?page=Enrichment_Programmes" }, { text: "Student Societies", url: "/Programme/Undergraduate/index.cfm?page=Student_Societies" } ] } }, { text: "Postgraduate & Research Degree", url: "/Programme/Postgraduate/index.cfm" , submenu : { id : "nodeID152", itemdata: [ { text: "Introduction", url: "/Programme/Postgraduate/index.cfm" }, { text: "EMBA", url: "http://www.emba-global.com/asia" , target: "_blank" }, { text: "MBA", url: "http://mba.hku.hk/" , target: "_blank" }, { text: "MFin", url: "http://www.sef.hku.hk/postgradprog/master_finance/index.php" , target: "_blank" }, { text: "MEcon", url: "http://www.sef.hku.hk/postgradprog/master_econ/index.php" , target: "_blank" }, { text: "IMBA", url: "/Programme/Postgraduate/IMBA/index.cfm" , submenu : { id : "nodeID1092", itemdata: [ { text: "Programme Overview", url: "/Programme/Postgraduate/IMBA/index.cfm" }, { text: "Programme Details", url: "/Programme/Postgraduate/IMBA/index.cfm?page=Programme_Details" }, { text: "News and Events", url: "/Programme/Postgraduate/IMBA/index.cfm?page=News" }, { text: "Course Structure", url: "/Programme/Postgraduate/IMBA/index.cfm?page=Course_Structure" }, { text: "Courses Offered", url: "/Programme/Postgraduate/IMBA/courses_offered.cfm" }, { text: "Timetable & Calendar", url: "/Programme/Postgraduate/IMBA/index.cfm?page=Timetable_Calendar" }, { text: "Admissions", url: "/Programme/Postgraduate/IMBA/index.cfm?page=Admissions" }, { text: "FAQ", url: "/Programme/Postgraduate/IMBA/index.cfm?page=FAQ" }, { text: "Enquiry", url: "/Programme/Postgraduate/IMBA/index.cfm?page=Enquiry" } ] } }, { text: "PhD", url: "/Programme/Postgraduate/PhD/index.cfm" , submenu : { id : "nodeID1093", itemdata: [ { text: "Programme Mission", url: "/Programme/Postgraduate/PhD/index.cfm" }, { text: "Programme Details", url: "/Programme/Postgraduate/PhD/index.cfm?page=Programme_Details" }, { text: "Field of Study", url: "/Programme/Postgraduate/PhD/index.cfm?page=Field_Study" }, { text: "Coursework Requirements", url: "/Programme/Postgraduate/PhD/index.cfm?page=Coursework_Requirement" }, { text: "Admission Requirements", url: "/Programme/Postgraduate/PhD/index.cfm?page=Admissions_Requirement" }, { text: "Application Procedures", url: "/Programme/Postgraduate/PhD/index.cfm?page=Application_Procedures" }, { text: "Tuition Fees", url: "/Programme/Postgraduate/PhD/index.cfm?page=Tuition_Fees" }, { text: "FAQ", url: "/Programme/Postgraduate/PhD/index.cfm?page=FAQ" }, { text: "Enquiry", url: "/Programme/Postgraduate/PhD/index.cfm?page=Enquiry" } ] } } ] } }, { text: "Executive Education", url: "/Programme/Executive.Education/index.cfm?page=introduction" , submenu : { id : "nodeID184", itemdata: [ { text: "EMBA-Global Asia", url: "http://www.emba-global.com/asia" , target: "_blank" } ] } } ] }, { id : "nodeID115", itemdata: [ { text: "Schools", url: "javascript:;" , submenu : { id : "nodeID387", itemdata: [ { text: "School of Business", url: "http://www.business.hku.hk/" , target: "_blank" }, { text: "School of Economics and Finance", url: "http://www.sef.hku.hk/" , target: "_blank" } ] } }, { text: "Academic Areas", url: "/Schools_Areas/index.cfm" , submenu : { id : "nodeID1144", itemdata: [ { text: "Accounting", url: "/Aboutus/academic_staff_index.cfm?show=1" }, { text: "Economics", url: "/Aboutus/academic_staff_index.cfm?show=13" }, { text: "Finance", url: "/Aboutus/academic_staff_index.cfm?show=3" }, { text: "Innovation and Information Management", url: "/Aboutus/academic_staff_index.cfm?show=5" }, { text: "Marketing", url: "/Aboutus/academic_staff_index.cfm?show=6" }, { text: "Management", url: "/Aboutus/academic_staff_index.cfm?show=4" }, { text: "Strategy and IB", url: "/Aboutus/academic_staff_index.cfm?show=2" } ] } } ] }, { id : "nodeID203", itemdata: [ { text: "Research Centres", url: "/Research/index.cfm?page=Research_Centres" } ] }, { id : "nodeID207", itemdata: [ { text: "Newsletters", url: "/News/Newsletter/index.cfm" }, { text: "Events Calendar", url: "/News/Events/index.cfm?dynamic=1" }, { text: "Faculty Achievements", url: "/News/Fac_Achievements/index.cfm" }, { text: "FBE Lecture Insight", url: "/News/FBELectureInsight/index.cfm" }, { text: "Press Releases", url: "/News/Press_Releases/index.cfm" }, { text: "Media Coverage", url: "/News/Media_Coverage/index.cfm" }, { text: "FBE News", url: "/News/FBE_News/index.cfm" , submenu : { id : "nodeID1124", itemdata: [ { text: "HKU MBA ascend in the Economist Ranking", url: "/News/FBE_News/EconomistMBARankingPress%20Release_20091015.pdf" }, { text: "Business Leaders and Innovation Forum - Geox: How a simple idea can lead to a fortune", url: "/News/FBE_News/Details.cfm?page=20090928_ceoforum" }, { text: "Great News on the EQUIS Re-accreditation Outcome", url: "/News/FBE_News/Details.cfm?page=20090610_equis" }, { text: "We are Accreditated - Association to Advance Collegiate Schools of Business (AACSB)", url: "/News/FBE_News/Details.cfm?page=20100514_AACSB" } ] } }, { text: "Student Achievements", url: "/News/Awards/index.cfm" } ] } ]; /* Initialize and render the MenuBar when its elements are ready to be scripted. */ YAHOO.util.Event.onContentReady("fbetopmenu", function () { /* Instantiate a MenuBar: The first argument passed to the constructor is the id of the element in the page representing the MenuBar; the second is an object literal of configuration properties. */ var oMenuBar = new YAHOO.widget.MenuBar("fbetopmenu", { autosubmenudisplay: true, hidedelay: 750, lazyload: true }); /* Subscribe to the "beforerender" event, adding a submenu to each of the items in the MenuBar instance. */ oMenuBar.subscribe("beforeRender", function () { if (this.getRoot() == this) { this.getItem(0).cfg.setProperty("submenu", aSubmenuData[0]); this.getItem(1).cfg.setProperty("submenu", aSubmenuData[1]); this.getItem(2).cfg.setProperty("submenu", aSubmenuData[2]); this.getItem(3).cfg.setProperty("submenu", aSubmenuData[3]); this.getItem(4).cfg.setProperty("submenu", aSubmenuData[4]); } }); /* Call the "render" method with no arguments since the markup for this MenuBar instance is already exists in the page. */ oMenuBar.render(); });