

if (document.images)  {
	// "On" images
	img1on = new Image (  );
	img1on.src = "http://familymedicine.medschool.ucsf.edu/fhop/images/button/button_dn_ph.gif";
	img2on = new Image (  );
	img2on.src = "http://familymedicine.medschool.ucsf.edu/fhop/images/button/button_dn_mcah.gif";
	img3on = new Image (  );
	img3on.src = "http://familymedicine.medschool.ucsf.edu/fhop/images/button/button_dn_pt.gif";
	img4on = new Image (  );
	img4on.src = "http://familymedicine.medschool.ucsf.edu/fhop/images/button/button_dn_pubs.gif";
	img5on = new Image (  );
	img5on.src = "http://familymedicine.medschool.ucsf.edu/fhop/images/button/button_dn_sw.gif";
	img6on = new Image (  );
	img6on.src = "http://familymedicine.medschool.ucsf.edu/fhop/images/button/button_dn_about.gif";
	img7on = new Image (  );
	img7on.src = "http://familymedicine.medschool.ucsf.edu/fhop/images/button/button_dn_train.gif";
	
	// "Off" images
	img1off = new Image (  );
	img1off.src = "http://familymedicine.medschool.ucsf.edu/fhop/images/button/button_up_ph1.gif";
	img2off = new Image (  );
	img2off.src = "http://familymedicine.medschool.ucsf.edu/fhop/images/button/button_up_mcah1.gif";;
	img3off = new Image (  );
	img3off.src = "http://familymedicine.medschool.ucsf.edu/fhop/images/button/button_up_pt.gif";
	img4off = new Image (  );
	img4off.src = "http://familymedicine.medschool.ucsf.edu/fhop/images/button/button_up_pub1.gif";
	img5off = new Image (  );
	img5off.src = "http://familymedicine.medschool.ucsf.edu/fhop/images/button/button_up_sw1.gif";
	img6off = new Image (  );
	img6off.src = "http://familymedicine.medschool.ucsf.edu/fhop/images/button/button_up_about.gif";
	img7off = new Image (  );
	img7off.src = "http://familymedicine.medschool.ucsf.edu/fhop/images/button/button_up_tr1.gif";
	
	}
	
	// Function to activate images
	function imgOn(imgName) {
		if (document.images) {
			document.images[imgName].src = eval(imgName + "on.src");
			
		}
	}
	 
	// Function to deactivate images
	function imgOff(imgName) {
		if (document.images) {
			document.images[imgName].src = eval(imgName + "off.src");
			
		}
	}
	

