<!-- hide script from old browsers -->

// Define constants
      
IE4 = 1
NN3 = 2
NN4 = 3
OTHER_BROWSER = 0
      
// Check browser
      
browseFlag = OTHER_BROWSER
browserName = navigator.appName; 
browserVersion = parseInt(navigator.appVersion);
      
if ((browserName == "Microsoft Internet Explorer") && (browserVersion >= 4))
{
   browseFlag = IE4
}
else
{
   if ((browserName == "Netscape") && (browserVersion >= 3) && (browserVersion < 4))
   {
      browseFlag = NN3
   }
   else
   {
      if ((browserName == "Netscape") && (browserVersion >= 4))
      {
         browseFlag = NN4
      }
   }
}

      
// Cache all MouseEvent images for speedy repaint
      
if (browseFlag != OTHER_BROWSER)
{
	commercial_off = new Image(122,28);
	commercial_off.src = "images/commercial_off.gif";
	commercial_on = new Image(122,28);
	commercial_on.src = "images/commercial_on.gif";
	
	commercial_off2 = new Image(122,28);
	commercial_off2.src = "images/commercial_off_2.gif";
	commercial_on2 = new Image(122,28);
	commercial_on2.src = "images/commercial_on_2.gif";	
	
	military_off = new Image(122,28);
	military_off.src = "images/military_off.gif";
	military_on = new Image(122,28);
	military_on.src = "images/military_on.gif";
	
}

      
function JuggleImages(button1,button2)
{
//   if (browseFlag != OTHER_BROWSER)
//   {
      document.images[button1].src = eval(button2 + ".src");
//   }
}
<!-- end hiding -->



<!-- Hide script from old browsers

	if (document.images) {
		image0 = new Image
		image1 = new Image

		image0.src = "../../images/spacer.gif"
		image1.src = "../../images/arrow.jpg"
	}
	else {
		image1 = ""
		image2 = ""
		document.spacer = ""
	}

// End hiding script from old browsers -->

<!-- Hide script from old browsers

	if (document.images) {
		image0a = new Image
		image1a = new Image

		image0a.src = "../images/spacer.gif"
		image1a.src = "../images/arrow.jpg"
	}
	else {
		image0a = ""
		image1a = ""
		document.spacer = ""
	}

// End hiding script from old browsers -->