//// code for pop-up menus on home page

// how it works:
//  When the mouse passes over one of the main navigation buttons, it calls
//   show_menu_exclusive() to swap the button image, open that button's pop-up menu,
//   and close any others that might be open.
//  When the mouse leaves the nav button, it starts a delayed restore of the button image
//   and closing of that pop-up menu by calling start_delayed_hide_menu(). The closing
//   is delayed because the mouse might be entering the pop-up menu. If not, then the menu
//   will either be closed by the delayed call to do_delayed_hide_menu(), or by entering
//   a different navigation button.
//  When the mouse enters a pop-up menu button, it cancels the delayed close of that
//   pop-up menu with cancel_delayed_hide_menu().
//  When the mouse leaves a pop-up menu button, it starts the delayed close.
//
//

//// globals

// variable records which menu is currently open
var open_menu = "";

// timer for delayed hide
var timerid = null;

// browser identification
var isIE6CSS = (document.compatMode && document.compatMode.indexOf("CSS1") >= 0 ? true : false);
var NS4 = document.layers;

//// functions

// determine inner window width so menu can be properly located horizontally
function getInsideWindowWidth() {
  if (window.innerWidth) {
    return window.innerWidth;
  }
  else if (isIE6CSS) {
    return document.body.parentElement.clientWidth;
  }
  else if (document.body && document.body.clientWidth) {
    return document.body.clientWidth;
  }
  return 0;
}

// standard positions of menus
var menux = new Array();
menux['menuabout'] = 0;
menux['menuresearch'] = 116;
menux['menunews'] = 267;
menux['menuprograms'] = 377;
menux['menucareer'] = 497;
menux['menusupport'] = 576;

// sets horizontal position of menu div based on current window width
function set_menu_x(menulayer) {
  var obj;
  if ((obj=MM_findObj(menulayer))!=null) {
    if (obj.style) { obj=obj.style; }
    var minwidth = 775;   // the minimum width
    var actualwidth = getInsideWindowWidth();
    var xpos = menux[menulayer];
    if (actualwidth > minwidth) {
      xpos = xpos + (actualwidth-minwidth)/2;
    }
    var units = (typeof obj.left == "string" ? "px" : "");
    obj.left = xpos + units;
  }
}


// show main nav mouseover and corresponding pop-up menu (immediately hide previous, if any)
//
function show_menu_exclusive(menuname) {
  if (NS4)
    return;

  if (timerid != null) {        // cancel any delayed hides
    clearTimeout (timerid);
    timerid = null;
  }

  if (open_menu == menuname)  // return if this menu already open
    return;

  if (open_menu != "") {      // restore main navigation button
    // find image object
    var oldnavobj = MM_findObj(open_menu);
    if (oldnavobj != null) {
      // get image src
      var src = oldnavobj.src;
      // replace "_hi2.gif" with ".gif"
      var i = src.lastIndexOf("_hi2.gif");
      if (i >= 0) {
        src = src.substring(0,i)+".gif";
      }
      // swap back unhighlighted image
      oldnavobj.src = src;
    }
    // hide the old pop-up menu
    var oldmenulayer = "menu" + open_menu;
    MM_showHideLayers(oldmenulayer,'','hide')
  }

  // swap in new menu button rollover and show pop-up menu

  if (menuname != "") {
    // find image object
    var navobj = MM_findObj(menuname);
    if (navobj != null) {
      // get image src
      var src = navobj.src;
      // replace ".gif" with "_hi2.gif"
      // (but make sure we're not already showing _hi2.gif)
      var i = src.lastIndexOf("_hi2.gif");
      if (i < 0) {
        i = src.lastIndexOf(".gif");
        if (i >= 0) {
          src = src.substring(0,i)+"_hi2.gif";
        }
      }
      // swap back unhighlighted image
      navobj.src = src;
    }
    // show the new pop-up menu
    var menulayer = "menu" + menuname;
    set_menu_x(menulayer);
    MM_showHideLayers(menulayer,'','show')
  }

  // record the open menu
  open_menu = menuname;
}

// start delayed main nav image restoration and pop-up menu hiding
//
function start_delayed_hide_menu() {
  if (NS4)
    return;

  timerid = setTimeout("do_delayed_hide_menu()", 250); // last arg is delay in milliseconds
}

// cancel delayed main nav image restoration and pop-up menu hiding
//
function cancel_delayed_hide_menu() {
  if (NS4)
    return;

  if (timerid != null) {
    clearTimeout (timerid);
    timerid = null;
  }
}

// perform delayed main nav image restoration and pop-up menu hiding
//
function do_delayed_hide_menu() {
  if (NS4)
    return;

  show_menu_exclusive("");
}



//
// write the menus and preload the menu mouseover graphics
//

var menudivids = new Array("menuabout","menuresearch","menunews","menuprograms","menucareer","menusupport");
var menudatas = new Array();

////
//// MENU DATA
//// Each of the arrays below contains data for one menu.
//// The data for each menu item has four parts:
////  - target url for menu item
////  - image src (the site-relative url of the gif)
////  - gif height (usually 20 or 36)
////  - a unique identifier used for performing mouseovers
////
////

menudatas["menuabout"] = new Array(
  "/about/index.html",      "/img/overview.gif",         20, "mu1about",
  "/about/history/index.html", "/img/about/history.gif", 20, "mu1history",
  "/about/leadership/index.html",        "/img/about/leadership.gif",        20, "mu1leadership",
  "/about/achievements.html",    "/img/about/achievements.gif",    20, "mu1achievements",
  "/about/funding.html", "/img/about/funding.gif", 20, "mu1funding",
  "/about/faqs.html",        "/img/about/faqs.gif",        20, "mu1faqs",
  "/about/directions.html",    "/img/about/directions.gif",    20, "mu1directions",
  "/about/contact.html",    "/img/about/contact.gif",    20, "mu1contact"
);
menudatas["menuresearch"] = new Array(
  "/research/index.html",           "/img/overview.gif",              20, "mu2research",
  "/research/faculty/index.html",   "/img/research/faculty.gif",      20, "mu2faculty",
  "/research/fellows/index.html",   "/img/research/fellows.gif",      36, "mu2fellows",
  "/research/affiliates/index.html","/img/research/affiliates.gif",   36, "mu2affiliates",
  "http://bioimaging.wi.mit.edu/",  "/img/research/bioimaging.gif",   36, "mu2bioimaging",
  "/research/postdoc.html",         "/img/research/postdoc.gif",      36, "mu2postdoc",
  "/research/resources.html",       "/img/research/information.gif",    20, "mu2information",
  "/research/summaries/index.html", "/img/research/summaries.gif",    20, "mu2summaries",
  "/research/papers.html",          "/img/research/papers.gif",       20, "mu2papers",
  "/research/intellectual.html",    "/img/research/intellectual.gif", 20, "mu2intellectual"
);
menudatas["menunews"] = new Array(
  "/news/index.html",            "/img/overview.gif",        20, "mu3news",
  "/news/archives/index.html",   "/img/news/search.gif",     20, "mu3search",
  "/news/ontopic/index.html",    "/img/news/ontopic.gif",    20, "mu3ontopic",
  "/news/multimedia/index.html",   "/img/news/multimedia.gif",   20, "mu3multimedia",
  "/news/paradigm/index.html",   "/img/news/paradigm.gif",   20, "mu3paradigm",
  "/news/factsheets/index.html", "/img/news/factsheets.gif", 20, "mu3factsheets",
  "/news/video_gallery/index.html",    "/img/news/video_gallery.gif",    20, "mu3video_gallery",
  "/news/podcast/index.html",    "/img/news/podcast.gif",    20, "mu3podcast",
  "/news/newsmedia/index.html",  "/img/news/newsmedia.gif",  20, "mu3newsmedia",
  "/news/signup.php",            "/img/news/signup.gif",     20, "mu3signup"
);
menudatas["menuprograms"] = new Array(
  "/programs/index.html",                   "/img/overview.gif",              20, "mu4programs",
  "/programs/biologyweek/biologyweek.html", "/img/programs/biologyweek.gif",  36, "mu4biologyweek",
  "/programs/teacher/index.html",           "/img/programs/teacherprog.gif",  20, "mu4teacherprog",
  "/programs/student/index.html",           "/img/programs/hsprogram.gif",    36, "mu4hsprogram",
  "/programs/mos/index.html",               "/img/programs/moslectures.gif",  36, "mu4moslectures" 
);
menudatas["menucareer"] = new Array(
  "/career/index.html",                "/img/overview.gif",              20, "mu5career",
  "/career/research/index.html",       "/img/career/research.gif",       20, "mu5sciresearch",
  "/career/bioinformatics/index.html", "/img/career/bioinformatics.gif", 36, "mu5bioinformatics",
  "/career/it/index.html",             "/img/career/it.gif",             20, "mu5it",
  "/career/admin/index.html",          "/img/career/admin.gif",          36, "mu5admin",
  "/career/adminsupport/index.html",   "/img/career/adminsupport.gif",   20, "mu5adminsupport",
  "/career/labsupport/index.html",     "/img/career/labsupport.gif",     20, "mu5labsupport",
  "/career/physplant/index.html",      "/img/career/physplant.gif",      20, "mu5physplant"
);
menudatas["menusupport"] = new Array(
  "/support/index.html",            "/img/overview.gif",           20, "mu6support",
  "/support/waystogive/index.html", "/img/support/waystogive.gif", 20, "mu6waystogive",
  "/support/howtogive.html",        "/img/support/howtogive.gif",  20, "mu6howtogive",
  "/support/whogives.html",         "/img/support/whogives.gif",   20, "mu6whogives",
  "/support/corporate.html",     "/img/support/corps.gif",      36, "mu6corps"
);

////
//// END OF MENU DATA
////

//
// use the menu data above to write the menu divs
//
function write_menus() {
  var imenu, idata;
  for (imenu = 0; imenu < menudivids.length; imenu++) {
    var htmltext = "";
    var menudivid = menudivids[imenu];
    var menudata = menudatas[menudivid];

    // start div tag
    htmltext += "<div id='"+menudivid+"' class='menudiv'>";

    for (idata = 0; idata < menudata.length; idata = idata + 4) {
      var targeturl = menudata[idata];    // menu item link target
      var imgsrc    = menudata[idata+1];  // image src
      var imgheight = menudata[idata+2];  // image height
      var imgid     = menudata[idata+3];  // image name/id
      // if external url, send to new browser window
      var targetwin = (targeturl.indexOf("http") == 0 ? " target='_blank'" : "");
      // mouseover version of image
      var imgsrchi  = imgsrc.substring(0,imgsrc.lastIndexOf(".gif")) + "_hi.gif";

      // link
      htmltext += "<a href='"+targeturl+"'"+targetwin+" onMouseOver=\"MM_swapImage('"+imgid+"','','"+imgsrchi+"',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\">";
      // if first item, green line
      if (idata == 0)
        htmltext += "<img src='/img/pxgreen.gif' width='195' height='2' border='0' alt=''><br>";
      // menu item text image
      htmltext += "<img src='"+imgsrc+"' width='195' height='"+imgheight+"' border='0' alt='' name='"+imgid+"' id='"+imgid+"'>";
      // if not last, insert rule, else simply close link
      if (idata < menudata.length - 4)
        htmltext += "<br><img src='/img/nav2rule.gif' width='195' height='2' border='0' alt=''></a><br>";
      else
        htmltext += "</a>";

      // preload mouseover
      MM_preloadImages(imgsrchi);
    }
    // end div tag
    htmltext += "</div>";
    document.writeln(htmltext);
  }
}


//
// write the menus and preload the mouseover graphics - old hardwired version (no longer used)
//

function write_menus_old () {
  document.writeln("<div id=\"menuabout\" class=\"menudiv\"><a href=\"/about/index.html\" onMouseOver=\"MM_swapImage('n0about','','/img/overview_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/pxgreen.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"><br><img src=\"/img/overview.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Overview\" title=\"\" name=\"n0about\" id=\"n0about\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/about/directions.html\" onMouseOver=\"MM_swapImage('n0directions','','/img/about/directions_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/about/directions.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Directions to Whitehead\" title=\"\" name=\"n0directions\" id=\"n0directions\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/about/faq.html\" onMouseOver=\"MM_swapImage('n0faq','','/img/about/faq_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/about/faq.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"FAQ\" title=\"\" name=\"n0faq\" id=\"n0faq\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/about/contact.html\" onMouseOver=\"MM_swapImage('n0contact','','/img/about/contact_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/about/contact.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Contact Us\" title=\"\" name=\"n0contact\" id=\"n0contact\"></a></div>");
  document.writeln("<div id=\"menuresearch\" class=\"menudiv\"><a href=\"/research/index.html\" onMouseOver=\"MM_swapImage('n0research','','/img/overview_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/pxgreen.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"><br><img src=\"/img/overview.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Overview\" title=\"\" name=\"n0research\" id=\"n0research\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/research/faculty/index.html\" onMouseOver=\"MM_swapImage('n0faculty','','/img/research/faculty_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/research/faculty.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Whitehead Faculty\" title=\"\" name=\"n0faculty\" id=\"n0faculty\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/research/fellows/index.html\" onMouseOver=\"MM_swapImage('n0fellows','','/img/research/fellows_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/research/fellows.gif\" width=\"195\" height=\"36\" border=\"0\" alt=\"Whitehead Fellows Program\" title=\"\" name=\"n0fellows\" id=\"n0fellows\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"http://bioimaging.wi.mit.edu/\" target=\"_blank\" onMouseOver=\"MM_swapImage('n0bioimaging','','/img/research/bioimaging_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/research/bioimaging.gif\" width=\"195\" height=\"36\" border=\"0\" alt=\"Whitehead-MIT Bioimaging Center\" title=\"\" name=\"n0bioimaging\" id=\"n0bioimaging\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/research/postdoc.html\" onMouseOver=\"MM_swapImage('n0postdoc','','/img/research/postdoc_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/research/postdoc.gif\" width=\"195\" height=\"36\" border=\"0\" alt=\"Whitehead Postdoctoral Program\" title=\"\" name=\"n0postdoc\" id=\"n0postdoc\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/research/resources.html\" onMouseOver=\"MM_swapImage('n0resources','','/img/research/resources_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/research/resources.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Resources for Scientists\" title=\"\" name=\"n0resources\" id=\"n0resources\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/research/summaries/index.html\" onMouseOver=\"MM_swapImage('n0summaries','','/img/research/summaries_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/research/summaries.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Research Summaries\" title=\"\" name=\"n0summaries\" id=\"n0summaries\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/research/papers.html\" onMouseOver=\"MM_swapImage('n0papers','','/img/research/papers_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/research/papers.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Recent Scientific Papers\" title=\"\" name=\"n0papers\" id=\"n0papers\"></a><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"><br><a href=\"/research/intellectual.html\" onMouseOver=\"MM_swapImage('n0intellectual','','/img/research/intellectual_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/research/intellectual.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Intellectual Property\" title=\"\" name=\"n0intellectual\" id=\"n0intellectual\"></a></div>");
  document.writeln("<div id=\"menunews\" class=\"menudiv\"><a href=\"/news/index.html\" onMouseOver=\"MM_swapImage('n0news','','/img/overview_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/pxgreen.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"><br><img src=\"/img/overview.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Overview\" title=\"\" name=\"n0news\" id=\"n0news\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/news/archives/index.html\" onMouseOver=\"MM_swapImage('n0search','','/img/news/search_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/news/search.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Search News Archives\" title=\"\" name=\"n0search\" id=\"n0search\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/news/ontopic/index.html\" onMouseOver=\"MM_swapImage('n0ontopic','','/img/news/ontopic_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/news/ontopic.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"On Topic\" title=\"\" name=\"n0ontopic\" id=\"n0ontopic\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/news/paradigm/index.html\" onMouseOver=\"MM_swapImage('n0paradigm','','/img/news/paradigm_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/news/paradigm.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Paradigm Magazine\" title=\"\" name=\"n0paradigm\" id=\"n0paradigm\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/news/factsheets/index.html\" onMouseOver=\"MM_swapImage('n0factsheets','','/img/news/factsheets_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/news/factsheets.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Fact Sheets\" title=\"\" name=\"n0factsheets\" id=\"n0factsheets\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/news/academy/index.html\" onMouseOver=\"MM_swapImage('n0academy','','/img/news/academy_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/news/academy.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Whitehead Academy\" title=\"\" name=\"n0academy\" id=\"n0academy\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/news/newsmedia/index.html\" onMouseOver=\"MM_swapImage('n0newsmedia','','/img/news/newsmedia_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/news/newsmedia.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"For the News Media\" title=\"\" name=\"n0newsmedia\" id=\"n0newsmedia\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/news/signup.php\" onMouseOver=\"MM_swapImage('n0signup','','/img/news/signup_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/news/signup.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Sign Up for News\" title=\"\" name=\"n0signup\" id=\"n0signup\"></a></div>");
  document.writeln("<div id=\"menuprograms\" class=\"menudiv\"><a href=\"/programs/index.html\" onMouseOver=\"MM_swapImage('n0programs','','/img/overview_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/pxgreen.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"><br><img src=\"/img/overview.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Overview\" title=\"\" name=\"n0programs\" id=\"n0programs\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/programs/biologyweek/biologyweek.html\" onMouseOver=\"MM_swapImage('n0biologyweek','','/img/programs/biologyweek_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/programs/biologyweek.gif\" width=\"195\" height=\"36\" border=\"0\" alt=\"Biology Week: Events and Symposia\" title=\"\" name=\"n0biologyweek\" id=\"n0biologyweek\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/programs/symposium/index_general.html\" onMouseOver=\"MM_swapImage('n0symposium','','/img/programs/symposium_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/programs/symposium.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Whitehead Symposium\" title=\"\" name=\"n0symposium\" id=\"n0symposium\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/programs/teacher/index.html\" onMouseOver=\"MM_swapImage('n0teacherprog','','/img/programs/teacherprog_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/programs/teacherprog.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Teacher Program\" title=\"\" name=\"n0teacherprog\" id=\"n0teacherprog\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/programs/student/index.html\" onMouseOver=\"MM_swapImage('n0hsprogram','','/img/programs/hsprogram_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/programs/hsprogram.gif\" width=\"195\" height=\"36\" border=\"0\" alt=\"High School Student Program\" title=\"\" name=\"n0hsprogram\" id=\"n0hsprogram\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/programs/mos/index.html\" onMouseOver=\"MM_swapImage('n0moslectures','','/img/programs/moslectures_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/programs/moslectures.gif\" width=\"195\" height=\"36\" border=\"0\" alt=\"Museum of Science Lecture Series\" title=\"\" name=\"n0moslectures\" id=\"n0moslectures\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/programs/stein.html\" onMouseOver=\"MM_swapImage('n0steinlectures','','/img/programs/steinlectures_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/programs/steinlectures.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Stein Lectures\" title=\"\" name=\"n0steinlectures\" id=\"n0steinlectures\"></a></div>");
  document.writeln("<div id=\"menucareer\" class=\"menudiv\"><a href=\"/career/index.html\" onMouseOver=\"MM_swapImage('n0career','','/img/overview_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/pxgreen.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"><br><img src=\"/img/overview.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Overview\" title=\"\" name=\"n0career\" id=\"n0career\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/career/research/index.html\" onMouseOver=\"MM_swapImage('n0sciresearch','','/img/career/research_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/career/research.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Scientific Research\" title=\"\" name=\"n0sciresearch\" id=\"n0sciresearch\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/career/bioinformatics/index.html\" onMouseOver=\"MM_swapImage('n0bioinformatics','','/img/career/bioinformatics_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/career/bioinformatics.gif\" width=\"195\" height=\"36\" border=\"0\" alt=\"Bioinformatics and Research Computing\" title=\"\" name=\"n0bioinformatics\" id=\"n0bioinformatics\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br> <a href=\"/career/it/index.html\" onMouseOver=\"MM_swapImage('n0it','','/img/career/it_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/career/it.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Information Technology\" title=\"\" name=\"n0it\" id=\"n0it\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/career/admin/index.html\" onMouseOver=\"MM_swapImage('n0admin','','/img/career/admin_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/career/admin.gif\" width=\"195\" height=\"36\" border=\"0\" alt=\"Administration and Management\" title=\"\" name=\"n0admin\" id=\"n0admin\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/career/adminsupport/index.html\" onMouseOver=\"MM_swapImage('n0adminsupport','','/img/career/adminsupport_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/career/adminsupport.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Administrative Support\" title=\"\" name=\"n0adminsupport\" id=\"n0adminsupport\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/career/labsupport/index.html\" onMouseOver=\"MM_swapImage('n0labsupport','','/img/career/labsupport_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/career/labsupport.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Lab Support\" title=\"\" name=\"n0labsupport\" id=\"n0labsupport\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/career/physplant/index.html\" onMouseOver=\"MM_swapImage('n0physplant','','/img/career/physplant_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/career/physplant.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Physical Plant\" title=\"\" name=\"n0physplant\" id=\"n0physplant\"></a></div>");
  document.writeln("<div id=\"menusupport\" class=\"menudiv\"><a href=\"/support/index.html\" onMouseOver=\"MM_swapImage('n0support','','/img/overview_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/pxgreen.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"><br><img src=\"/img/overview.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Overview\" title=\"\" name=\"n0support\" id=\"n0support\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/support/waystogive/index.html\" onMouseOver=\"MM_swapImage('n0waystogive','','/img/support/waystogive_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/support/waystogive.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"Ways to Give\" title=\"\" name=\"n0waystogive\" id=\"n0waystogive\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/support/howtogive.html\" onMouseOver=\"MM_swapImage('n0howtogive','','/img/support/howtogive_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/support/howtogive.gif\" width=\"195\" height=\"20\" border=\"0\" alt=\"How to Make a Gift\" title=\"\" name=\"n0howtogive\" id=\"n0howtogive\"><br><img src=\"/img/nav2rule.gif\" width=\"195\" height=\"2\" border=\"0\" alt=\"\"></a><br><a href=\"/support/corporations.html\" onMouseOver=\"MM_swapImage('n0corps','','/img/support/corps_hi.gif',1);cancel_delayed_hide_menu()\" onMouseOut=\"MM_swapImgRestore();start_delayed_hide_menu()\"><img src=\"/img/support/corps.gif\" width=\"195\" height=\"36\" border=\"0\" alt=\"Corporations and Foundations\" title=\"\" name=\"n0corps\" id=\"n0corps\"></a></div>");

  // preloads
  MM_preloadImages('/img/overview_hi.gif','/img/about/directions_hi.gif','/img/about/faq_hi.gif','/img/about/contact_hi.gif');
  MM_preloadImages('/img/research/faculty_hi.gif','/img/research/fellows_hi.gif','/img/research/bioimaging_hi.gif','/img/research/postdoc_hi.gif','/img/research/resources_hi.gif','/img/research/summaries_hi.gif','/img/research/papers_hi.gif','/img/research/intellectual_hi.gif');
  MM_preloadImages('/img/news/search_hi.gif','/img/news/ontopic_hi.gif','/img/news/paradigm_hi.gif','/img/news/factsheets_hi.gif','/img/news/academy_hi.gif','/img/news/newsmedia_hi.gif','/img/news/signup_hi.gif');
  MM_preloadImages('/img/programs/biologyweek_hi.gif','/img/programs/symposium_hi.gif','/img/programs/teacherprog_hi.gif','/img/programs/hsprogram_hi.gif','/img/programs/moslectures_hi.gif','/img/programs/steinlectures_hi.gif');
  MM_preloadImages('/img/career/research_hi.gif','/img/career/bioinformatics_hi.gif', '/img/career/it_hi.gif','/img/career/admin_hi.gif','/img/career/adminsupport_hi.gif','/img/career/labsupport_hi.gif','/img/career/physplant_hi.gif');
  MM_preloadImages('/img/support/waystogive_hi.gif','/img/support/howtogive_hi.gif','/img/support/corps_hi.gif');

}
