// script to allow hover images on mouseover

// code to test to determine the browser type

   var ok_browser = 1; 
   bName = navigator.appName;             
   bVer = parseInt(navigator.appVersion); 
 
   ver = "n2"  
   if      (bName == "Netscape" && bVer >= 3) ver = "n3";
   else if (bName == "Microsoft Internet Explorer" && bVer >= 4) ver = "e4"; 
 
   if (ver == "n3" || ver == "e4")  
      {
      ok_browser = 0; 
      }
   else 
      {
      ok_browser = 1; 
      }

// code to declare image substitutions

   if ( ok_browser == 0 )
      { 

   home2up       = new Image() ;
   home2up.src = "images/home2.gif" ;
   home2down   = new Image() ;
   home2down.src = "images/home2down.gif" ;

   trainingup       = new Image() ;
   trainingup.src = "images/training.gif" ;
   trainingdown   = new Image() ;
   trainingdown.src = "images/trainingdown.gif" ;

   Group_Meetingup       = new Image() ;
   Group_Meetingup.src = "images/Group_Meeting.gif" ;
   Group_Meetingdown   = new Image() ;
   Group_Meetingdown.src = "images/Group_Meetingdown.gif" ;

   Journalup       = new Image() ;
   Journalup.src = "images/Journal.gif" ;
   Journaldown   = new Image() ;
   Journaldown.src = "images/Journaldown.gif" ;

   Equipmentup       = new Image() ;
   Equipmentup.src = "images/Equipment.gif" ;
   Equipmentdown   = new Image() ;
   Equipmentdown.src = "images/Equipmentdown.gif" ;

   Publicationsup       = new Image() ;
   Publicationsup.src = "images/Publications.gif" ;
   Publicationsdown   = new Image() ;
   Publicationsdown.src = "images/Publicationsdown.gif" ;

   Stationeryup       = new Image() ;
   Stationeryup.src = "images/Stationery.gif" ;
   Stationerydown   = new Image() ;
   Stationerydown.src = "images/Stationerydown.gif" ;

   Leading_Handup       = new Image() ;
   Leading_Handup.src = "images/Leading_Hand.gif" ;
   Leading_Handdown   = new Image() ;
   Leading_Handdown.src = "images/Leading_Handdown.gif" ;
}

// functions to replace images
function buttonup(myname)
   { 
   if ( ok_browser == 0 ) 
      { 
      imgOn = eval(myname + "up.src");
      document[myname].src = imgOn; 
      } 
} 

function buttondown(myname)
   { 
   if ( ok_browser == 0 ) 
      { 
      imgOff = eval(myname + "down.src");
      document[myname].src = imgOff; 
      } 
   }  
  
// end script

