
// 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";

//Break out of frames
	if(top.frames.length != 0) {
	top.location = document.URL;
	}

// Create image objects, preload all active and inactive images.
    if (br== "n3") { 
    img1on = new Image();          
    img1on.src = "../graphics/homon.gif"; 
    img2on = new Image();
    img2on.src = "../graphics/abouton.gif";
    img3on = new Image();        
    img3on.src = "../graphics/newson.gif"; 
    img4on = new Image();
    img4on.src = "../graphics/varietyon.gif";
    img5on = new Image();
    img5on.src = "../graphics/researchon.gif";
    img6on = new Image();
    img6on.src = "../graphics/memberson.gif";

    img1off = new Image();          
    img1off.src = "../graphics/homoff.gif"; 
    img2off = new Image();
    img2off.src = "../graphics/aboutoff.gif";
    img3off = new Image();          
    img3off.src = "../graphics/newsoff.gif";
    img4off = new Image();
    img4off.src = "../graphics/varietyoff.gif";
    img5off = new Image();
    img5off.src = "../graphics/researchoff.gif";
    img6off = new Image();
    img6off.src = "../graphics/membersoff.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");
    }
}

