browserName=navigator.appName; 
browserVer=parseInt(navigator.appVersion);
  if ((browserName=="Netscape" && browserVer>=3) || (browserName=="Microsoft Internet Explorer" && browserVer>=4))    
  version="n3";
  else
    version="n2";
  if (version=="n3")
   {
     HomeOn= new Image(21,20);
     HomeOn.src="images/Buttons/Silver.gif";
     BusinessOn= new Image(21,20);
     BusinessOn.src="images/Buttons/Silver.gif";
     NonProfitOn= new Image(21,20);
     NonProfitOn.src="images/Buttons/Silver.gif";
     CategoryOn= new Image(21,20);
     CategoryOn.src="images/Buttons/Silver.gif";
     CategoryAOn= new Image(21,20);
     CategoryAOn.src="images/Buttons/Silver.gif";
     CategoryMOn= new Image(21,20);
     CategoryMOn.src="images/Buttons/Silver.gif";
     BusinessCardOn= new Image(21,20);
     BusinessCardOn.src="images/Buttons/Silver.gif";
     SeniorOn= new Image(21,20);
     SeniorOn.src="images/Buttons/Silver.gif";
     OrgDirOn= new Image(21,20);
     OrgDirOn.src="images/Buttons/Silver.gif";
     SiteMapOn= new Image(21,20);
     SiteMapOn.src="images/Buttons/Silver.gif";
     ForRentOn= new Image(21,20);
     ForRentOn.src="images/Buttons/Silver.gif";
     
     HomeOff= new Image(21,20);
     HomeOff.src="images/Buttons/Gold.gif";
     BusinessOff= new Image(21,20);
     BusinessOff.src="images/Buttons/Gold.gif";
     NonProfitOff= new Image(21,20);
     NonProfitOff.src="images/Buttons/Gold.gif";
     CategoryOff= new Image(21,20);
     CategoryOff.src="images/Buttons/Gold.gif";
     CategoryAOff= new Image(21,20);
     CategoryAOff.src="images/Buttons/Gold.gif";
     CategoryMOff= new Image(21,20);
     CategoryMOff.src="images/Buttons/Gold.gif";
     BusinessCardOff= new Image(21,20);
     BusinessCardOff.src="images/Buttons/Gold.gif";
     SeniorOff= new Image(21,20);
     SeniorOff.src="images/Buttons/Gold.gif";
     OrgDirOff= new Image(21,20);
     OrgDirOff.src="images/Buttons/Gold.gif";
     SiteMapOff= new Image(21,20);
     SiteMapOff.src="images/Buttons/Gold.gif";
     ForRentOff= new Image(21,20);
     ForRentOff.src="images/Buttons/Gold.gif";
        
   }

function lightup(imgName)
 {
   if (version=="n3")
    {
      imgOn=eval(imgName + "On.src");
      document[imgName].src= imgOn;
    }
 }

function turnoff(imgName)
 {
   if (version=="n3")
    {
      imgOff=eval(imgName + "Off.src");
      document[imgName].src= imgOff;
    }
 }
