// Specifications for menu contents and menubar image associations var menus = new Array(); menus[0] = { image_id: "home", menuTop: 0, menuLeftOffset: 0, menu_items: [] }; menus[1] = { image_id: "campus", menuTop: 187, menuLeftOffset: 5, menu_items: [ {text: "Saxtons River", href: "http://www.kindlefarm.org/main/campus_and_programs/saxtons_river/"}, {text: "Newfane", href: "http://www.kindlefarm.org/main/campus_and_programs/newfane/"}, {text: "Community Partners", href: "http://www.kindlefarm.org/main/campus_and_programs/community_partners/"} ] }; menus[2] = { image_id: "about", menuTop: 185, menuLeftOffset: 11, menu_items: [ {text: "501c3 Nonprofit Status", href: "http://www.kindlefarm.org/main/about_us/501c3_nonprofit_status/"}, {text: "Mission", href: "http://www.kindlefarm.org/main/about_us/mission/"}, {text: "What Makes us Unique", href: "http://www.kindlefarm.org/main/about_us/what_makes_us_unique/"}, {text: "Student Demographics", href: "http://www.kindlefarm.org/main/about_us/student_demographics/"}, {text: "Enrollment", href: "http://www.kindlefarm.org/main/about_us/enrollment/"}, {text: "History", href: "http://www.kindlefarm.org/main/about_us/history/"}, {text: "Business Office", href: "http://www.kindlefarm.org/main/about_us/business_office/"}, {text: "Get Involved", href: "http://www.kindlefarm.org/main/about_us/get_involved/"} ] }; menus[3] = { image_id: "staff", menuTop: 185, menuLeftOffset: 6, menu_items: [ {text: "Internet Resources", href: "http://www.kindlefarm.org/main/staff_toolbox/internet_resources/"}, {text: "Employment Opportunities", href: "http://www.kindlefarm.org/main/staff_toolbox/employment_opportunities/"} ] }; menus[4] = { image_id: "student", menuTop: 185, menuLeftOffset: 17, menu_items: [ {text: "Parent-Student Handbook", href: "http://www.kindlefarm.org/main/student_toolbox/parent-student_handbook/"}, {text: "Resources", href: "http://www.kindlefarm.org/main/student_toolbox/resources/"} ] }; menus[5] = { image_id: "programs", menuTop: 187, menuLeftOffset: 19, menu_items: [ {text: "Academics", href: "http://www.kindlefarm.org/main/essential_programs/academics/"}, {text: "Art and Music", href: "http://www.kindlefarm.org/main/essential_programs/art_and_music/"}, {text: "Fitness and Recreation", href: "http://www.kindlefarm.org/main/essential_programs/fitness_and_recreation/"}, {text: "Social Emotional and Behavioral", href: "http://www.kindlefarm.org/main/essential_programs/social_emotional__and_behavioral/"}, {text: "Technology", href: "http://www.kindlefarm.org/main/essential_programs/technology/"}, {text: "Transitional", href: "http://www.kindlefarm.org/main/essential_programs/transitional/"}, {text: "Vocational", href: "http://www.kindlefarm.org/main/essential_programs/vocational/"}, {text: "Wilderness and Adventure", href: "http://www.kindlefarm.org/main/essential_programs/wilderness_and_adventure/"} ] }; menus[6] = { image_id: "news", menuTop: 195, menuLeftOffset: 19, menu_items: [ {text: "Article Listings", href: "http://www.kindlefarm.org/main/news_-_events/article_listings/"}, {text: "Events Calendar", href: "http://www.kindlefarm.org/main/news_-_events/events_calendar/"}, {text: "Media", href: "http://www.kindlefarm.org/main/news_-_events/media/"}, ] }; // Global menu state (used by make_menus and show_menu) var menu_ready = false; // Called from the onload event handler, this function generates the // menu div elements and their contents function make_menus() { var menu_div, menu_item, item_link, text_node, button, offset_base, offset_left, offset_top; // Use menus array to drive div creation loop for (var i=0; i 0) { // The menu is non-empty // Set event handlers for the menu menu_div.onmouseover = show_menu; menu_div.onmouseout = hide_menu; // Set stacking order in case other layers are around the page menu_div.style.zIndex = 1000; // Load the menu with its link elements for (var j=0; j