
/*
MAIN nav image swap
*/

// Initialize main nav images
if (document.images) {
	profilesOn = new Image(106,32);
	profilesOn.src = "graphics/bnav_prof_on.gif";
	toolsOn = new Image(106,32);
	toolsOn.src = "graphics/bnav_tools_on.gif";
	refOn = new Image(106,32);
	refOn.src = "graphics/bnav_ref_on.gif";
	jobsOn = new Image(106,32);
	jobsOn.src = "graphics/bnav_job_on.gif";
	discussOn = new Image(106,32);
	discussOn.src = "graphics/bnav_discuss_on.gif";  
	linksOn = new Image(106,32);
	linksOn.src = "graphics/bnav_links_on.gif";
	spotOn = new Image(106,32);
	spotOn.src = "graphics/bnav_spot_on.gif";
	commOn = new Image(110,32);
	commOn.src = "graphics/bnav_commun_on.gif";


    	profilesOff = new Image(106,32);
	profilesOff.src = "graphics/bnav_prof_off.gif";
	toolsOff = new Image(106,32);
	toolsOff.src = "graphics/bnav_tools_off.gif";
	refOff = new Image(106,32);
	refOff.src = "graphics/bnav_ref_off.gif";
	jobsOff = new Image(106,32);
	jobsOff.src = "graphics/bnav_job_off.gif";
	discussOff = new Image(106,32);
	discussOff.src = "graphics/bnav_discuss_off.gif";
	linksOff = new Image(106,32);
	linksOff.src = "graphics/bnav_links_off.gif";
	spotOff = new Image(106,32);
	spotOff.src = "graphics/bnav_spot_off.gif";
	commOff = new Image(110,32);
	commOff.src = "graphics/bnav_commun_off.gif";
}


function navOn(imgName) {
    if (document.images) { 
        imgOn = eval(imgName + "On.src");
        document [imgName].src = imgOn;
	}
}

function navOff(imgName) {
	if (document.images) {
        imgOff = eval(imgName + "Off.src");
        document [imgName].src = imgOff;
	}
}
