 function createWindow(cURL){
  var cName = 'Leaving';
  var cFeatures = 'location=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,width=420,height=300';
  cURL = '/cgi-bin/leaving.cgi?newsite=' + cURL;
  var ExitWindow = window.open(cURL,cName,cFeatures);
  }

///////////////////////////////  BEGIN -- 
///////////////////////////////  1ST LEVEL MOUSEOVERS
  var n=""
  var dir="/graphics/new_home/" 
  if(document.images)  
  {
  newsbtn = new Image ();
  newsbtn.src = "/graphics/new_home/hsf_btn_news1.gif" ;
  news2btn = new Image ();
  news2btn.src = "/graphics/new_home/hsf_btn_news2.gif";
  realtimebtn = new Image ();
  realtimebtn.src = "/graphics/new_home/hsf_btn_realdata1.gif";
  realtime2btn = new Image ();
  realtime2btn.src = "/graphics/new_home/hsf_btn_realdata2.gif";
  stationbtn = new Image ();
  stationbtn.src = "/graphics/new_home/hsf_btn_station1.gif";
  station2btn = new Image ();
  station2btn.src = "/graphics/new_home/hsf_btn_station2.gif";
  shuttlebtn = new Image ();
  shuttlebtn.src = "/graphics/new_home/hsf_btn_shuttle1.gif";
  shuttle2btn = new Image ();
  shuttle2btn.src = "/graphics/new_home/hsf_btn_shuttle2.gif";
  beyondbtn = new Image ();
  beyondbtn.src = "/graphics/new_home/hsf_btn_beyond1.gif";
  beyond2btn = new Image ();
  beyond2btn.src = "/graphics/new_home/hsf_btn_beyond2.gif";
  gallerybtn = new Image ();
  gallerybtn.src = "/graphics/new_home/hsf_btn_gallery1.gif";
  gallery2btn = new Image ();
  gallery2btn.src = "/graphics/new_home/hsf_btn_gallery2.gif";
  historybtn = new Image ();
  historybtn.src = "/graphics/new_home/hsf_btn_history1.gif";
  history2btn = new Image ();
  history2btn.src = "/graphics/new_home/hsf_btn_history2.gif";
  outreachbtn = new Image ();
  outreachbtn.src = "/graphics/new_home/hsf_btn_outreach3.gif" 
  outreach2btn = new Image ();
  outreach2btn.src = "/graphics/new_home/hsf_btn_outreach2.gif";
  feedbackbtn = new Image ();
  feedbackbtn.src = "/graphics/new_home/hsf_btn_feedback1.gif";
  feedback2btn = new Image ();
  feedback2btn.src = "/graphics/new_home/hsf_btn_feedback2.gif";
  sitemapbtn = new Image ();
  sitemapbtn.src = "/graphics/new_home/hsf_btn_sitemap1.gif";
  sitemap2btn = new Image ();
  sitemap2btn.src = "/graphics/new_home/hsf_btn_sitemap2.gif";
  searchbtn = new Image ();
  searchbtn.src = "/graphics/new_home/hsf_btn_search1.gif";
  search2btn = new Image ();
  search2btn.src = "/graphics/new_home/hsf_btn_search2.gif";

///////////////////////////////  BEGIN -- 
///////////////////////////////  2ND LEVEL MOUSEOVERS
  shuttleoptbtn = new Image (91,22);
  shuttleoptbtn.src = "/graphics/new_home/hsf_btn_shuttle.gif";
  stationoptbtn = new Image (91,22);
  stationoptbtn.src = "/graphics/new_home/hsf_btn_station.gif";
  realoptbtn = new Image (91,22);
  realoptbtn.src = "/graphics/new_home/hsf_btn_realdata.gif";
  newsoptbtn = new Image (91,22);
  newsoptbtn.src = "/graphics/new_home/hsf_btn_news.gif";
  galleryoptbtn = new Image (91,22);
  galleryoptbtn.src = "/graphics/new_home/hsf_btn_gallery.gif";
  feedbackoptbtn = new Image (91, 22);
  feedbackoptbtn.src = "/graphics/new_home/hsf_btn_feedback.gif";
  historyoptbtn = new Image (91,22);
  historyoptbtn.src = "/graphics/new_home/hsf_btn_history.gif";
  outreachoptbtn = new Image (91,22);
  outreachoptbtn.src = "/graphics/new_home/hsf_btn_outreach.gif";  
  blankbtn = new Image (91,22);
  blankbtn.src = "/graphics/new_home/hsf_l2.gif";
  onlinebtn = new Image (19,22);
  onlinebtn.src = "/graphics/new_home/hsf_l2.gif";
  }
///////////////////////////////  BEGIN -- 
///////////////////////////////  MENULINKS FUNCTION --
///////////////////////////////  THIS FUNCTION IS DESIGNED TO DISPLAY THE 2ND LEVEL MENU OPTIONS 
///////////////////////////////  ALONG WITH THEIR APPROPRIATE LINKS
  timeoutId = 0;
  function menuLinks (useLinks) {
  if (document.images){ 
  if (useLinks == 0){

///////////////////////////////  BEGIN -- DEFAULT SETTINGS
  document.shuttle.src =  shuttlebtn.src;
  document.station.src = stationbtn.src;
  document.realtime.src = realtimebtn.src;
  document.news.src = newsbtn.src;
  document.gallery.src = gallerybtn.src;
  document.feedback.src = feedbackbtn.src;
  document.history.src = historybtn.src;
  document.outreach.src = outreachbtn.src;
  document.sitemap.src = sitemapbtn.src;
  document.searchsite.src = searchbtn.src;
  document.low1.src = onlinebtn.src;
  document.links[0].href = "index.html";
  document.links[0].alt = "Human Space Flight Web";
  document.links[1].href = "index.html";
  document.links[1].alt = "Human Space Flight Web";
  document.links[2].href = "index.html";
  document.links[2].alt = "Human Space Flight Web";
  document.links[3].href = "index.html";
  document.links[3].alt = "Human Space Flight Web";
  document.links[4].href = "index.html";
  document.links[4].alt = "Human Space Flight Web";
  document.links[5].href = "index.html";
  document.links[5].alt = "Human Space Flight Web";
  document.links[6].href = "index.html";
  document.links[6].alt = "Human Space Flight Web";
  document.links[7].href = "index.html";
  document.links[7].alt = "Human Space Flight Web";
  document.links[8].href = "index.html";
  document.links[8].alt = "Human Space Flight Web";
  }
///////////////////////////////  BEGIN -- SHUTTLE
///////////////////////////////  2ND LEVEL MOUSEOVERS
  else if (useLinks == 1) {
  document.shuttle.src =  shuttle2btn.src;
  document.station.src = stationbtn.src;
  document.realtime.src = realtimebtn.src;
  document.news.src = newsbtn.src;
  document.gallery.src = gallerybtn.src;
  document.feedback.src = feedbackbtn.src;
  document.history.src = historybtn.src;
  document.outreach.src = outreachbtn.src;
  document.sitemap.src = sitemapbtn.src;
  document.searchsite.src = searchbtn.src;
  document.low1.src = shuttleoptbtn.src;
  document.links[0].href = "/spacenews/reports/index.html";
  document.links[0].alt = "Mission Status Reports";
  document.links[1].href = "/spacenews/reports/index.html";
  document.links[1].alt = "Mission Status Reports";
  document.links[2].href = "/shuttle/future/index.html";
  document.links[2].alt = "Future Missions";
  document.links[3].href = "/shuttle/archives/index.html";
  document.links[3].alt = "Past Missions";
  document.links[4].href = "/shuttle/support/index.html";
  document.links[4].alt = "Behind the Scenes";
  document.links[5].href = "/living/index.html"; 
  document.links[5].alt = "Living in Space"; 
  document.links[6].href = "/shuttle/benefits/index.html";
  document.links[6].alt = "Shuttle Benefits"; 
  document.links[7].href = "/shuttle/reference/index.html";
  document.links[7].alt = "Shuttle Reference";
  document.links[8].href = "/shuttle/upgrades/index.html";
  document.links[8].alt = "Shuttle Upgrades";
  }
///////////////////////////////  BEGIN -- STATION
///////////////////////////////  2ND LEVEL MOUSEOVERS
  else if (useLinks == 2) {
  document.shuttle.src =  shuttlebtn.src;
  document.station.src = station2btn.src;
  document.realtime.src = realtimebtn.src;
  document.news.src = newsbtn.src;
  document.gallery.src = gallerybtn.src;
  document.feedback.src = feedbackbtn.src;
  document.history.src = historybtn.src;
  document.outreach.src = outreachbtn.src;
  document.sitemap.src = sitemapbtn.src;
  document.searchsite.src = searchbtn.src;
  document.low1.src = stationoptbtn.src;
  document.links[0].href = "/station/assembly/index.html";
  document.links[0].alt = "Assembly";
  document.links[1].href = "/station/science/index.html";
  document.links[1].alt = "Science";
  document.links[2].href = "/station/crew/index.html";
  document.links[2].alt = "Crew";
  document.links[3].href = "/station/eva/index.html";
  document.links[3].alt = "Spacewalks";
  document.links[4].href = "/shuttle/support/index.html";
  document.links[4].alt = "Behind the Scenes";
  document.links[5].href = "/living/index.html";
  document.links[5].alt = "Living in Space";
  document.links[6].href = "/station/benefits/index.html";
  document.links[6].alt = "Station Benefits";  
  document.links[7].href = "/station/reference/index.html";
  document.links[7].alt = "Station Reference";
  document.links[8].href = "/gallery/images/station/";
  document.links[8].alt = "Station Gallery";
  }
///////////////////////////////  BEGIN -- REALTIME
///////////////////////////////  2ND LEVEL MOUSEOVERS
  else if (useLinks == 3) {
  document.shuttle.src =  shuttlebtn.src;
  document.station.src = stationbtn.src;
  document.realtime.src = realtime2btn.src;
  document.news.src = newsbtn.src;
  document.gallery.src = gallerybtn.src;
  document.feedback.src = feedbackbtn.src;
  document.history.src = historybtn.src;
  document.outreach.src = outreachbtn.src;
  document.sitemap.src = sitemapbtn.src;
  document.searchsite.src = searchbtn.src;
  document.low1.src = realoptbtn.src;
  document.links[0].href = "/realdata/nasatv/index.html";
  document.links[0].alt = "NASA TV";
  document.links[1].href = "/realdata/nasatv/schedule.html";
  document.links[1].alt = "NASA TV Schedule";
  document.links[2].href = "/realdata/tracking/index.html";
  document.links[2].alt = "Orbital Tracking";
  document.links[3].href = "/realdata/sightings/index.html";
  document.links[3].alt = "Sighting Opportunities";
  document.links[4].href = "/realdata/sightings/index.html";
  document.links[4].alt = "Sighting Opportunities";
  document.links[5].href = "/realdata/sightings/quickstart/index.html";
  document.links[5].alt = "SkyWatch Quick Start";
  document.links[6].href = "/realdata/sightings/quickstart/index.html";
  document.links[6].alt = "SkyWatch Quick Start";
  document.links[7].href = "/realdata/elements/index.html";
  document.links[7].alt = "Orbital Elements";  
  document.links[8].href = "/realdata/weather/";
  document.links[8].alt = "Weather";
  }
///////////////////////////////  BEGIN -- NEWS
///////////////////////////////  2ND LEVEL MOUSEOVERS
  else if (useLinks == 4) {
  document.shuttle.src =  shuttlebtn.src;
  document.station.src = stationbtn.src;
  document.realtime.src = realtimebtn.src;
  document.news.src = news2btn.src;
  document.gallery.src = gallerybtn.src;
  document.feedback.src = feedbackbtn.src;
  document.history.src = historybtn.src;
  document.outreach.src = outreachbtn.src;
  document.sitemap.src = sitemapbtn.src;
  document.searchsite.src = searchbtn.src;
  document.low1.src = newsoptbtn.src;
  document.links[0].href = "/spacenews/reports/index.html";
  document.links[0].alt = "Mission Control Center Reports";
  document.links[1].href = "/spacenews/reports/index.html";
  document.links[1].alt = "Mission Control Center Reports";
  document.links[2].href = "/spacenews/releases/index.html";
  document.links[2].alt = "Press Releases";
  document.links[3].href = "/spacenews/releases/index.html";
  document.links[3].alt = "Press Releases";
  document.links[4].href = "javascript:createWindow('www.shuttlepresskit.com')";
  document.links[4].alt = "Mission Press Kits";
  document.links[5].href = "javascript:createWindow('www.shuttlepresskit.com')";
  document.links[5].alt = "Mission Press Kits";
  document.links[6].href = "/spacenews/subscribe/index.html";
  document.links[6].alt = "Subscribe to News";
  document.links[7].href = "/spacenews/subscribe/index.html";
  document.links[7].alt = "Subscribe to News";
  document.links[8].href = "http://www.nasa.gov/today/";
  document.links[8].alt = "Today at NASA";
  }
///////////////////////////////  BEGIN -- GALLERY
///////////////////////////////  2ND LEVEL MOUSEOVERS
  else if (useLinks == 5) {
  document.shuttle.src =  shuttlebtn.src;
  document.station.src = stationbtn.src;
  document.realtime.src = realtimebtn.src;
  document.news.src = newsbtn.src;
  document.gallery.src = gallery2btn.src;
  document.feedback.src = feedbackbtn.src;
  document.history.src = historybtn.src;
  document.outreach.src = outreachbtn.src;
  document.sitemap.src = sitemapbtn.src;
  document.searchsite.src = searchbtn.src;
  document.low1.src = galleryoptbtn.src;
  document.links[0].href = "/gallery/images/mercury/index.html";
  document.links[0].alt = "Mercury Gallery";
  document.links[1].href = "/gallery/images/gemini/index.html";
  document.links[1].alt = "Gemini Gallery";
  document.links[2].href = "/gallery/images/apollo/index.html";
  document.links[2].alt = "Apollo Gallery";
  document.links[3].href = "/gallery/images/apollo-soyuz/index.html";
  document.links[3].alt = "Apollo-Soyuz Gallery";
  document.links[4].href = "/gallery/images/skylab/index.html";
  document.links[4].alt = "Skylab Gallery";
  document.links[5].href = "/gallery/images/shuttle/index.html";
  document.links[5].alt = "Shuttle Gallery";
  document.links[6].href = "/gallery/images/station/index.html"; 
  document.links[6].alt = "Station Gallery"; 
  document.links[7].href = "/gallery/images/exploration/index.html";
  document.links[7].alt = "Constellation Gallery";
  document.links[8].href = "/gallery/images/exploration/index.html";
  document.links[8].alt = "Constellation Gallery";
  }
///////////////////////////////  BEGIN -- FEEDBACK
///////////////////////////////  2ND LEVEL MOUSEOVERS
  else if (useLinks == 6) {
  document.shuttle.src =  shuttlebtn.src;
  document.station.src = stationbtn.src;
  document.realtime.src = realtimebtn.src;
  document.news.src = newsbtn.src;
  document.gallery.src = gallerybtn.src;
  document.feedback.src = feedback2btn.src;
  document.history.src = historybtn.src;
  document.outreach.src = outreachbtn.src;
  document.sitemap.src = sitemapbtn.src;
  document.searchsite.src = searchbtn.src;
  document.low1.src = feedbackoptbtn.src; 
  document.links[0].href = "/feedback/expert/answer/isscrew/index.html";
  document.links[0].alt = "Ask the Crew";
  document.links[1].href = "/feedback/expert/answer/isscrew/index.html";
  document.links[1].alt = "Ask the Crew";
  document.links[2].href = "/feedback/expert/index.html";
  document.links[2].alt = "Ask the Mission Control";
  document.links[3].href = "/feedback/expert/index.html";
  document.links[3].alt = "Ask the Mission Control";
  document.links[4].href = "/shuttle/reference/faq/index.html";
  document.links[4].alt = "Frequently Asked Questions";
  document.links[5].href = "/shuttle/reference/faq/index.html";
  document.links[5].alt = "Frequently Asked Questions";
  document.links[6].href = "/spacenews/subscribe/index.html";
  document.links[6].alt = "Subscribe to Human Space Flight News";  
  document.links[7].href = "/spacenews/subscribe/index.html";
  document.links[7].alt = "Subscribe to Human Space Flight News";
  document.links[8].href = "/spacenews/subscribe/index.html";
  document.links[8].alt = "Subscribe to Human Space Flight News";
  }
///////////////////////////////  BEGIN -- HISTORY
///////////////////////////////  2ND LEVEL MOUSEOVERS
  else if (useLinks == 7) {
  document.shuttle.src =  shuttlebtn.src;
  document.station.src = stationbtn.src;
  document.realtime.src = realtimebtn.src;
  document.news.src = newsbtn.src;
  document.gallery.src = gallerybtn.src;
  document.feedback.src = feedbackbtn.src;
  document.history.src = history2btn.src;
  document.outreach.src = outreachbtn.src;
  document.sitemap.src = sitemapbtn.src;
  document.searchsite.src = searchbtn.src;
  document.low1.src = historyoptbtn.src;  
  document.links[0].href = "/history/mercury/index.html";
  document.links[0].alt = "Mercury History";
  document.links[1].href = "/history/gemini/index.html";
  document.links[1].alt = "Gemini History";
  document.links[2].href = "/history/apollo/index.html";
  document.links[2].alt = "Apollo History";
  document.links[3].href = "/history/astp/index.html";
  document.links[3].alt = "Apollo-Soyuz History";
  document.links[4].href = "/history/skylab/index.html";
  document.links[4].alt = "Skylab History";
  document.links[5].href = "/shuttle/archives/index.html";
  document.links[5].alt = "Shuttle History";
  document.links[6].href = "/history/shuttle-mir/index.html";
  document.links[6].alt = "Shuttle-Mir History";
  document.links[7].href = "/history/station/index.html";
  document.links[7].alt = "Station History";
  document.links[8].href = "http://history.nasa.gov/index.html";
  document.links[8].alt = "NASA History";
  }
///////////////////////////////  BEGIN -- OUTREACH
///////////////////////////////  2ND LEVEL MOUSEOVERS
  else if (useLinks == 8) {
  document.shuttle.src =  shuttlebtn.src;
  document.station.src = stationbtn.src;
  document.realtime.src = realtimebtn.src;
  document.news.src = newsbtn.src;
  document.gallery.src = gallerybtn.src;
  document.feedback.src = feedbackbtn.src;
  document.history.src = historybtn.src;
  document.outreach.src = outreach2btn.src;
  document.sitemap.src = sitemapbtn.src;
  document.searchsite.src = searchbtn.src;
  document.low1.src = outreachoptbtn.src; 
  document.links[0].href = "/shuttle/reference/faq/index.html";
  document.links[0].alt = "Frequently Asked Questions";
  document.links[1].href = "/shuttle/reference/faq/index.html";
  document.links[1].alt = "Frequently Asked Questions";
  document.links[2].href = "/spacenews/factsheets/index.html";
  document.links[2].alt = "Fact Sheet Library";
  document.links[3].href = "/spacenews/factsheets/index.html";
  document.links[3].alt = "Fact Sheet Library";
  document.links[4].href = "http://education.nasa.gov/";
  document.links[4].alt = "Educational Programs";
  document.links[5].href = "http://education.nasa.gov/";
  document.links[5].alt = "Educational Programs";
  document.links[6].href = "http://quest.arc.nasa.gov/";
  document.links[6].alt = "Web Chats";  
  document.links[7].href = "http://www.nasajobs.nasa.gov/";
  document.links[7].alt = "NASA Jobs";
  document.links[8].href = "http://astronauts.nasa.gov/";
  document.links[8].alt = "Astronaut Applications";
  }
///////////////////////////////  BEGIN -- SITEMAP
///////////////////////////////  2ND LEVEL MOUSEOVERS
  else if (useLinks == 9) {
  document.shuttle.src =  shuttlebtn.src;
  document.station.src = stationbtn.src;
  document.realtime.src = realtimebtn.src;
  document.news.src = newsbtn.src;
  document.gallery.src = gallerybtn.src;
  document.feedback.src = feedbackbtn.src;
  document.history.src = historybtn.src;
  document.outreach.src = outreachbtn.src;
  document.sitemap.src = sitemap2btn.src;
  document.searchsite.src = searchbtn.src;
  document.low1.src = blankbtn.src; 
  document.links[0].href = "";
  document.links[0].alt = "Human Space Flight Web";
  document.links[1].href = "";
  document.links[1].alt = "Human Space Flight Web";
  document.links[2].href = "";
  document.links[2].alt = "Human Space Flight Web";
  document.links[3].href = "";
  document.links[3].alt = "Human Space Flight Web";
  document.links[4].href = "";
  document.links[4].alt = "Human Space Flight Web";
  document.links[5].href = "";
  document.links[5].alt = "Human Space Flight Web";
  document.links[6].href = "";
  document.links[6].alt = "Human Space Flight Web";  
  document.links[7].href = "";
  document.links[7].alt = "Human Space Flight Web";
  document.links[8].href = "";
  document.links[8].alt = "Human Space Flight Web";
  }
///////////////////////////////  BEGIN -- SEARCH
///////////////////////////////  2ND LEVEL MOUSEOVERS
  else if (useLinks == 10) {
  document.shuttle.src =  shuttlebtn.src;
  document.station.src = stationbtn.src;
  document.realtime.src = realtimebtn.src;
  document.news.src = newsbtn.src;
  document.gallery.src = gallerybtn.src;
  document.feedback.src = feedbackbtn.src;
  document.history.src = historybtn.src;
  document.outreach.src = outreachbtn.src;
  document.sitemap.src = sitemapbtn.src;
  document.searchsite.src = search2btn.src;
  document.low1.src = blankbtn.src; 
  document.links[0].href = "";
  document.links[0].alt = "Human Space Flight Web";
  document.links[1].href = "";
  document.links[1].alt = "Human Space Flight Web";
  document.links[2].href = "";
  document.links[2].alt = "Human Space Flight Web";
  document.links[3].href = "";
  document.links[3].alt = "Human Space Flight Web";
  document.links[4].href = "";
  document.links[4].alt = "Human Space Flight Web";
  document.links[5].href = "";
  document.links[5].alt = "Human Space Flight Web";
  document.links[6].href = "";
  document.links[6].alt = "Human Space Flight Web";  
  document.links[7].href = "";
  document.links[7].alt = "Human Space Flight Web";
  document.links[8].href = "";
  document.links[8].alt = "Human Space Flight Web";
  }
  }
  }