// Detect if browser is Netscape 3 + or IE 4 +. bName = navigator.appName; bVer = parseInt(navigator.appVersion); if ((bName == "Netscape" && bVer >= 3) || (bName == "Microsoft Internet Explorer" && bVer >= 4)) br = "n3"; else br = "n2"; // Create image objects, preload all active and inactive images. if (br== "n3") { img11on = new Image(); //Images are Red and Hot img11on.src = "/minisite/images/b-home-on.gif"; img12on = new Image(); img12on.src = "/minisite/images/b-acc-on.gif"; img13on = new Image(); img13on.src = "/minisite/images/b-services-on.gif"; img14on = new Image(); img14on.src = "/minisite/images/b-directions-on.gif"; img15on = new Image(); img15on.src = "/minisite/images/b-info-on.gif"; img11off = new Image(); img11off.src = "/minisite/images/b-home-off.gif"; //Images are Blue and UNHOT img12off = new Image(); img12off.src = "/minisite/images/b-acc-off.gif"; img13off = new Image(); img13off.src = "/minisite/images/b-services-off.gif"; img14off = new Image(); img14off.src = "/minisite/images/b-directions-off.gif"; img15off = new Image(); img15off.src = "/minisite/images/b-info-off.gif"; } // Function to "activate" images. function imgAct(imgName) { if (br == "n3") { document[imgName].src= eval(imgName + "on.src"); } } // Function to "deactivate" images. function imgInact(imgName) { if (br == "n3") { document[imgName].src= eval(imgName + "off.src"); } }