
bName = navigator.appName;

bVer = parseInt(navigator.appVersion);

if ((bName == "Netscape" && bVer>=3) ||

        (bName == "Microsoft Internet Explorer" && bVer>=4)) browser= "n3";

else browser="n2";

// Create image objects, preload all active and inactive images.

if (browser=="n3") {

                        homeon = new Image();
                        homeon.src = "/images/nav_home_on.gif";
                        homeoff = new Image();
                        homeoff.src = "/images/nav_home_off.gif";
                        planon = new Image();
                        planon.src = "/images/nav_plan_on.gif";
                        planoff = new Image();
                        planoff.src = "/images/nav_plan_off.gif";
                        perspectiveson = new Image();
        				perspectiveson.src = "/images/nav_perspectives_on.gif";       					
                        perspectivesoff = new Image();
                        perspectivesoff.src = "/images/nav_perspectives_off.gif";
                        initiativeson = new Image();
                        initiativeson.src = "/images/nav_initiatives_on.gif";
                        initiativesoff = new Image();
                        initiativesoff.src = "/images/nav_initiatives_off.gif";
                        newson = new Image();
                        newson.src = "/images/nav_news_on.gif";
                        newsoff = new Image();
        				newsoff.src = "/images/nav_news_off.gif";
						innovatorson = new Image();
						innovatorson.src = "/images/nav_innovators_on.gif";
                        innovatorsoff = new Image();
                        innovatorsoff.src = "/images/nav_innovators_off.gif";
                        contacton = new Image();
                        contacton.src = "/images/nav_contact_on.gif";
                        contactoff = new Image();
        				contactoff.src = "/images/nav_contact_off.gif";
						getinvolvedon = new Image();
                        getinvolvedon.src = "/images/nav_getinvolved_on.gif";
                        getinvolvedoff = new Image();
        				getinvolvedoff.src = "/images/nav_getinvolved_off.gif";
       					
}

 

function swapOn(imgName){

        if(browser=="n3"){

        document[imgName].src = eval(imgName + "on.src");

        }

}

 

function swapOff(imgName){

        if(browser=="n3"){

        document[imgName].src = eval(imgName + "off.src");

        }

}

 