// 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") { 
    newsletteron = new Image();
    newsletteron.src = "images/home/newsletter2.jpg";
    separationson = new Image();
    separationson.src = "images/home/separations2.jpg";
    officerson = new Image();
    officerson.src = "images/home/leadership2.jpg";
    researchon = new Image();
    researchon.src = "images/home/research2.jpg";
    conferenceson = new Image();          
    conferenceson.src = "images/home/conferences2.jpg";  
    experton = new Image();          
    experton.src = "images/home/awards2.jpg"; 
    bylawson = new Image();
    bylawson.src = "images/home/bylaws2.jpg";
    professionalon = new Image();
    professionalon.src = "images/home/sponsors2.jpg";


    newsletteroff = new Image();
    newsletteroff.src = "images/home/newsletter.jpg";
    separationsoff = new Image();
    separationsoff.src = "images/home/separations.jpg";
    officersoff = new Image();
    officersoff.src = "images/home/leadership.jpg";
    researchoff = new Image();
    researchoff.src = "images/home/research.jpg";
    conferencesoff = new Image();          
    conferencesoff.src = "images/home/conferences.jpg";  
    expertoff = new Image();          
    expertoff.src = "images/home/awards.jpg"; 
    bylawsoff = new Image();
    bylawsoff.src = "images/home/bylaws.jpg";
    professionaloff = new Image();
    professionaloff.src = "images/home/sponsors.jpg";

    }

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