// 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") { 
    img0on = new Image();           
    img0on.src = "../images/nav-amcahome-on.gif";
    img1on = new Image();           
    img1on.src = "../images/nav-ourvision-on.gif";  
    img2on = new Image();          
    img2on.src = "../images/nav-meetourteam-on.gif"; 
    img3on = new Image();
    img3on.src = "../images/nav-sl-on.gif";
    img4on = new Image();
    img4on.src = "../images/nav-seminars-on.gif";
    img5on = new Image();
    img5on.src = "../images/nav-consulting-on.gif";
    img6on = new Image();
    img6on.src = "../images/nav-articles-on.gif";
	img7on = new Image();
    img7on.src = "../images/nav-products-on.gif";
    img8on = new Image();
    img8on.src = "../images/nav-resources-on.gif";
    img9on = new Image();
    img9on.src = "../images/nav-whatotherssay-on.gif";
    img10on = new Image();
    img10on.src = "../images/nav-contactus-on.gif";

    img0off = new Image();          
    img0off.src = "../images/nav-amcahome-off.gif"; 
    img1off = new Image();          
    img1off.src = "../images/nav-ourvision-off.gif"; 
    img2off = new Image();        
    img2off.src = "../images/nav-meetourteam-off.gif";
    img3off = new Image();
    img3off.src = "../images/nav-sl-off.gif";
    img4off = new Image();
    img4off.src = "../images/nav-seminars-off.gif";
    img5off = new Image();
    img5off.src = "../images/nav-consulting-off.gif";
    img6off = new Image();
    img6off.src = "../images/nav-articles-off.gif";
    img7off = new Image();
    img7off.src = "../images/nav-products-off.gif";
    img8off = new Image();
    img8off.src = "../images/nav-resources-off.gif";
    img9off = new Image();
    img9off.src = "../images/nav-whatotherssay-off.gif";
    img10off = new Image();
    img10off.src = "../images/nav-contactus-off.gif";
        
    }

// Function to "activate" images.
function imgAct(imgName) {
    if (br == "n3") {
		notover=0;
	    document[imgName].src = eval(imgName + "on.src");
    }
}

// Function to "deactivate" button images.
function imgInact(imgName) {
    if (br == "n3") {
		notover=1;
	    document[imgName].src = eval(imgName + "off.src");
	}
}

// Function to time delay "deactivate" top images.
function delaytop() {
	if (notover) {
    document["imgline"].src = eval("imglineoff.src");
    document["imgtext"].src = eval("imgtextoff.src");
    document["imgtop3"].src = eval("imgtop3off.src");
	}
}
