Dropdowns = new Object(); // Editable Start // this only updates the dropdowns that show / hide, the dropdowns that stay open on a section are // in /templates/static_dropdowns // format is "first label", "first link", "second label", "second link", etc Dropdowns["program"] = Array("Overview", "http://www.grady.uga.edu/medicaljournalism/program/", "How to Apply", "http://www.grady.uga.edu/medicaljournalism/program/how_to_apply.php", "Curriculum", "http://www.grady.uga.edu/medicaljournalism/program/curriculum.php","FAQs", "http://www.grady.uga.edu/medicaljournalism/program/faqs.php"); Dropdowns["students"] = Array("Prospective", "http://www.grady.uga.edu/medicaljournalism/students/prospective_students.php","Current", "http://www.grady.uga.edu/medicaljournalism/students/", "Alumni", "http://www.grady.uga.edu/medicaljournalism/students/archive.php"); Dropdowns["news"] = Array("Recent", "http://www.grady.uga.edu/medicaljournalism/news/", "Archive", "http://www.grady.uga.edu/medicaljournalism/news/archive.php"); Dropdowns["events"] = Array("Recent", "http://www.grady.uga.edu/medicaljournalism/events/", "Archive", "http://www.grady.uga.edu/medicaljournalism/events/archive.php"); // Editable End DropdownTimer = new Object(); for ( var NavName in Dropdowns ) { //alert(NavName); DropdownTimer[NavName] = 0; //alert(DropdownTimer[NavName]); } ////////////////////////////// function loadMenus() { // loop through dropdowns and add to corresponding a for ( var NavName in Dropdowns ) { //alert("nav "+NavName); var MenuLink = document.getElementById("nav_"+NavName); if (MenuLink == null) continue; // create menu div var Dropdown = document.createElement("div"); Dropdown.id = NavName+"_dropdown"; Dropdown.className = "nav_dropdown"; Dropdown.style.display = "none"; var MouseOverFunc = new Function('showDropdown("'+NavName+'")'); var MouseOutFunc = new Function('hideDropdown("'+NavName+'")'); // verify valid menu if (Dropdowns[NavName].length % 2 != 0) alert('Dropdowns['+NavName+'] should be Array(Name, Link, Name, Link, etc)'); for (i=0; i"+Debug.innerHTML; } function addDebugConsole() { // add debug div var DebugConsole = document.createElement('div'); DebugConsole.id = "debug_console"; DebugConsole.style.position = "absolute"; DebugConsole.style.top = 0; DebugConsole.style.left = 0; DebugConsole.style.width = "300px"; DebugConsole.style.height = "600px"; // add debug window to top left of browser document.body.insertBefore(DebugConsole, document.body.firstChild); } /* * (c)2006 Jesse Skinner/Dean Edwards/Matthias Miller/John Resig * Special thanks to Dan Webb's domready.js Prototype extension * and Simon Willison's addLoadEvent */ addDOMLoadEvent = (function(){ // create event function stack var load_events = [], load_timer, script, done, exec, old_onload, init = function () { done = true; // kill the timer clearInterval(load_timer); // execute each function in the stack in the order they were added while (exec = load_events.shift()) exec(); if (script) script.onreadystatechange = ''; }; return function (func) { // if the init function was already ran, just run this function now and stop if (done) return func(); if (!load_events[0]) { // for Mozilla/Opera9 if (document.addEventListener) document.addEventListener("DOMContentLoaded", init, false); // for Internet Explorer /*@cc_on @*/ /*@if (@_win32) document.write("