//This test only activates script on Netscape 3.0 and above or MSIE 3.01 and above.
var num = parseFloat(navigator.appVersion);
if (navigator.appName == "Netscape" && num >= 3){
var browserVer = 1; //test for browserVer == 1 in all dependent functions
	} else {
if (navigator.appName == "Microsoft Internet Explorer" && num >= 3.01){
var browserVer = 1;
	} else {
var browserVer = 2;
	 }
}
// preload universal images:
if (browserVer == 1) {
home_off = new Image (113,24);
home_off.src = "images/all/btn_home_off.gif";
home_on = new Image (113,24);
home_on.src = "images/all/btn_home_on.gif";
aboutus_off = new Image (116,24);
aboutus_off.src = "images/all/btn_aboutus_off.gif";
aboutus_on = new Image (116,24);
aboutus_on.src = "images/all/btn_aboutus_on.gif";
surgeon_off = new Image (177,24);
surgeon_off.src = "images/all/btn_ourphysicians_off.gif";
surgeon_on = new Image (177,24);
surgeon_on.src = "images/all/btn_ourphysicians_on.gif";
directions_off = new Image (199,24);
directions_off.src = "images/all/btn_directions_off.gif";
directions_on = new Image (199,24);
directions_on.src = "images/all/btn_directions_on.gif";
contact_off = new Image (151,24);
contact_off.src = "images/all/btn_contactus_off.gif";
contact_on = new Image (151,24);
contact_on.src = "images/all/btn_contactus_on.gif";
pay_off = new Image (150,24);
pay_off.src = "images/all/btn_makepayment_off.gif";
pay_on = new Image (150,24);
pay_on.src = "images/all/btn_makepayment_on.gif";


swap0 = new Image(325, 43);
swap0.src = "images/all/info_blank.gif";
swap1 = new Image(325, 43);
swap1.src = "images/all/info_product.gif";
swap2 = new Image(325, 43);
swap2.src = "images/all/info_win.gif";
swap3 = new Image(325, 43);
swap3.src = "images/all/info_newsletter.gif";
swap4 = new Image(325, 43);
swap4.src = "images/all/info_buy.gif";
swap5 = new Image(331, 28);
swap5.src = "images/all/info_sample.gif";
swap6 = new Image(331, 28);
swap6.src = "images/all/info_scholarship.gif";
swap7 = new Image(331, 28);
swap7.src = "images/all/info_sweeps.gif";
swap8 = new Image(331, 28);
swap8.src = "images/all/info_whatsnew.gif";
}

function swap(imagePosition, highlightImage) {
if (document.images) {
document[imagePosition].src = eval(highlightImage + ".src");
	}
}
function hiLite(imgDocID,imgObjName) {
if (browserVer == 1) {
//if (document.images) {
 document.images[imgDocID].src = eval(imgObjName + ".src");
//}
	}
}
