
   // preload images for toolbar rollovers

   var tooldir = "http://mba.wharton.upenn.edu/mba/images/toolbar/";

   if (document.images)
   {

      // wharton toolbar graphics

      home1 = new Image(88,24);
      home1.src = tooldir + "wharton/home.gif";
      home2 = new Image(88,24);
      home2.src = tooldir + "wharton/home1.gif"; 
             
      contact1 = new Image(75,24);
      contact1.src = tooldir + "wharton/contact.gif";
      contact2 = new Image(75,24);
      contact2.src = tooldir + "wharton/contact1.gif";

      maps1 = new Image(99,24);
      maps1.src = tooldir + "wharton/maps.gif";
      maps2 = new Image(99,24);
      maps2.src = tooldir + "wharton/maps1.gif";

      search1 = new Image(95,24);
      search1.src = tooldir + "wharton/advsearch.gif";
      search2 = new Image(95,24);
      search2.src = tooldir + "wharton/advsearch1.gif";

      // mba toolbar graphics

      mba = new Image(193,25);
      mba.src = tooldir + "mba/mba.gif";
      mba1 = new Image(193,25);
      mba1.src = tooldir + "mba/mba1.gif";

      academics = new Image(143,25);
      academics.src = tooldir + "mba/academics.gif";
      academics1 = new Image(143,25);
      academics1.src = tooldir + "mba/academics1.gif";
      academics2 = new Image(143,25);
      academics2.src = tooldir + "mba/academics2.gif";

      professional = new Image(171,25);
      professional.src = tooldir + "mba/professional.gif";
      professional1 = new Image(171,25);
      professional1.src = tooldir + "mba/professional1.gif";
      professional2 = new Image(171,25);
      professional2.src = tooldir + "mba/professional2.gif";

      community = new Image(166,25);
      community.src = tooldir + "mba/community.gif";
      community1 = new Image(166,25);
      community1.src = tooldir + "mba/community1.gif";
      community2 = new Image(166,25);
      community2.src = tooldir + "mba/community2.gif";

      admissions = new Image(80,25);
      admissions.src = tooldir + "mba/admissions.gif";
      admissions1 = new Image(80,25);
      admissions1.src = tooldir + "mba/admissions1.gif";
      admissions2 = new Image(80,25);
      admissions2.src = tooldir + "mba/admissions2.gif";
   }

   // simple image replacement

   function imgSwap(imgDocID,imgObjName)
   {
      if (document.images)
      {
         document.images[imgDocID].src = eval(imgObjName + ".src");
      }
   }

   // functions to show and hide quotes in sidebar

   function showQuote(id)
   {
      if (quote = document.getElementById(id))
      {                     
         quote.style.top = document.body.scrollTop + (document.body.clientHeight / 2) - 100;
         quote.style.left = (document.body.clientWidth / 2) - 95;
         quote.style.visibility = "visible";
      }
   }

   function hideQuote(id)
   {
      if (quote = document.getElementById(id))
      {
         quote.style.visibility = "hidden";  
      }
   }

