{
	know0=new Image();
	know0.src="../images/nav-knowfr-off.jpg";
	know1=new Image();
	know1.src="../images/nav-knowfr-on.jpg"; 
	
	eat0=new Image();
	eat0.src="../images/nav-eatfr-off.jpg";
	eat1=new Image();
	eat1.src="../images/nav-eatfr-on.jpg";
	
	learn0=new Image();
	learn0.src="../images/nav-learnfr-off.jpg";
	learn1=new Image();
	learn1.src="../images/nav-learnfr-on.jpg";
	
	live0=new Image();
	live0.src="../images/nav-livefr-off.jpg";
	live1=new Image();
	live1.src="../images/nav-livefr-on.jpg";
	
	pro0=new Image();
	pro0.src="../images/nav-profr-off.jpg";
	pro1=new Image();
	pro1.src="../images/nav-profr-on.jpg";
	
	edu0=new Image();
	edu0.src="../images/nav-edufr-off.jpg";
	edu1=new Image();
	edu1.src="../images/nav-edufr-on.jpg";
	
	about0=new Image();
	about0.src="../images/nav-aboutfr-off.jpg";
	about1=new Image();
	about1.src="../images/nav-aboutfr-on.jpg";
}

// main nav functions

function navOn(imgName) {
	if (document.images) {
		document.images[imgName].src = eval(imgName + '1.src');
	}
}

function navOff(imgName) {
	if (document.images) {
		document.images[imgName].src = eval(imgName + '0.src');
	}
}


{
	carbohydrates0=new Image();
	carbohydrates0.src="../images/carbohydratesfr-off.gif";
	carbohydrates1=new Image();
	carbohydrates1.src="../images/carbohydratesfr-on.gif"; 
	
	fats0=new Image();
	fats0.src="../images/fatsfr-off.gif";
	fats1=new Image();
	fats1.src="../images/fatsfr-on.gif";
	
	protein0=new Image();
	protein0.src="../images/proteinfr-off.gif";
	protein1=new Image();
	protein1.src="../images/proteinfr-on.gif";
	
	fiber0=new Image();
	fiber0.src="../images/fiberfr-off.gif";
	fiber1=new Image();
	fiber1.src="../images/fiberfr-on.gif";
	
	grains0=new Image();
	grains0.src="../images/grainsfr-off.gif";
	grains1=new Image();
	grains1.src="../images/grainsfr-on.gif";
	
	sugar0=new Image();
	sugar0.src="../images/sugarfr-off.gif";
	sugar1=new Image();
	sugar1.src="../images/sugarfr-on.gif";
	
	sodium0=new Image();
	sodium0.src="../images/sodiumfr-off.gif";
	sodium1=new Image();
	sodium1.src="../images/sodiumfr-on.gif";
	
	vitamins0=new Image();
	vitamins0.src="../images/vitaminsfr-off.gif";
	vitamins1=new Image();
	vitamins1.src="../images/vitaminsfr-on.gif";
	
	carbtypes0=new Image();
	carbtypes0.src="../images/carbtypesfr-off.gif";
	carbtypes1=new Image();
	carbtypes1.src="../images/carbtypesfr-on.gif";
	
	muchcarb0=new Image();
	muchcarb0.src="../images/muchcarbfr-off.gif";
	muchcarb1=new Image();
	muchcarb1.src="../images/muchcarbfr-on.gif";
	
	choosecarbs0=new Image();
	choosecarbs0.src="../images/choosecarbsfr-off.gif";
	choosecarbs1=new Image();
	choosecarbs1.src="../images/choosecarbsfr-on.gif";
	
	unsaturated0=new Image();
	unsaturated0.src="../images/unsaturatedfr-off.gif";
	unsaturated1=new Image();
	unsaturated1.src="../images/unsaturatedfr-on.gif";
	
	trans0=new Image();
	trans0.src="../images/transfr-off.gif";
	trans1=new Image();
	trans1.src="../images/transfr-on.gif";
	
	muchfat0=new Image();
	muchfat0.src="../images/muchfatfr-off.gif";
	muchfat1=new Image();
	muchfat1.src="../images/muchfatfr-on.gif";
	
	monitoring0=new Image();
	monitoring0.src="../images/monitoringfr-off.gif";
	monitoring1=new Image();
	monitoring1.src="../images/monitoringfr-on.gif";
	
	findingp0=new Image();
	findingp0.src="../images/findingpfr-off.gif";
	findingp1=new Image();
	findingp1.src="../images/findingpfr-on.gif";
	
	muchp0=new Image();
	muchp0.src="../images/muchpfr-off.gif";
	muchp1=new Image();
	muchp1.src="../images/muchpfr-on.gif";
	
	choosingp0=new Image();
	choosingp0.src="../images/choosingpfr-off.gif";
	choosingp1=new Image();
	choosingp1.src="../images/choosingpfr-on.gif";
	
	insoluble0=new Image();
	insoluble0.src="../images/insolublefr-off.gif";
	insoluble1=new Image();
	insoluble1.src="../images/insolublefr-on.gif";
	
	muchf0=new Image();
	muchf0.src="../images/muchffr-off.gif";
	muchf1=new Image();
	muchf1.src="../images/muchffr-on.gif";
	
	tipsf0=new Image();
	tipsf0.src="../images/tipsffr-off.gif";
	tipsf1=new Image();
	tipsf1.src="../images/tipsffr-on.gif";
	
	muchwg0=new Image();
	muchwg0.src="../images/muchwgfr-off.gif";
	muchwg1=new Image();
	muchwg1.src="../images/muchwgfr-on.gif";
	
	wgmyths0=new Image();
	wgmyths0.src="../images/wgmythsfr-off.gif";
	wgmyths1=new Image();
	wgmyths1.src="../images/wgmythsfr-on.gif";
	
	wgtips0=new Image();
	wgtips0.src="../images/wgtipsfr-off.gif";
	wgtips1=new Image();
	wgtips1.src="../images/wgtipsfr-on.gif";
	
	sugarh0=new Image();
	sugarh0.src="../images/sugarhfr-off.gif";
	sugarh1=new Image();
	sugarh1.src="../images/sugarhfr-on.gif";
	
	presweet0=new Image();
	presweet0.src="../images/presweetfr-off.gif";
	presweet1=new Image();
	presweet1.src="../images/presweetfr-on.gif";
	
	supp0=new Image();
	supp0.src="../images/suppfr-off.gif";
	supp1=new Image();
	supp1.src="../images/suppfr-on.gif";
	
	ssources0=new Image();
	ssources0.src="../images/ssourcesfr-off.gif";
	ssources1=new Image();
	ssources1.src="../images/ssourcesfr-on.gif";
	
	muchsod0=new Image();
	muchsod0.src="../images/muchsodfr-off.gif";
	muchsod1=new Image();
	muchsod1.src="../images/muchsodfr-on.gif";
	
	tipssod0=new Image();
	tipssod0.src="../images/tipssodfr-off.gif";
	tipssod1=new Image();
	tipssod1.src="../images/tipssodfr-on.gif";
	
	aboutv0=new Image();
	aboutv0.src="../images/aboutvfr-off.gif";
	aboutv1=new Image();
	aboutv1.src="../images/aboutvfr-on.gif";
	
	aboutm0=new Image();
	aboutm0.src="../images/aboutmfr-off.gif";
	aboutm1=new Image();
	aboutm1.src="../images/aboutmfr-on.gif";
}

// left nav functions

function lnavOn(imgName) {
	if (document.images) {
		document.images[imgName].src = eval(imgName + '1.src');
	}
}

function lnavOff(imgName) {
	if (document.images) {
		document.images[imgName].src = eval(imgName + '0.src');
	}
}


{
	lang0=new Image();
	lang0.src="../images/top-r-ca.jpg";
	lang1=new Image();
	lang1.src="../images/top-r-fr.jpg"; 
}

// language functions

function caOn() {
	if (document.images) {
		document.images['lang'].src = lang0.src;
	}
}

function frOn() {
	if (document.images) {
		document.images['lang'].src = lang1.src;
	}
}


// gda tool popup function

function gdaPopup() {
	window.open('../gda-tool/GDA3.html','GDA','width=980,height=740,resizable=yes,toolbar=no,scrollbars=yes');
}



