
// navigation items
whatIsOff = new Image();
whatIsOff.src  = "/img/b_whatIs_off.gif";
whatIsOn = new Image();
whatIsOn.src  = "/img/b_whatIs_on.gif";

diagnosedOff = new Image();
diagnosedOff.src  = "/img/b_diagnosed_off.gif";
diagnosedOn = new Image();
diagnosedOn.src  = "/img/b_diagnosed_on.gif";

treatingOff = new Image();
treatingOff.src  = "/img/b_treating_off.gif";
treatingOn = new Image();
treatingOn.src  = "/img/b_treating_on.gif";

examsOff = new Image();
examsOff.src  = "/img/b_exams_off.gif";
examsOn = new Image();
examsOn.src  = "/img/b_exams_on.gif";

supportOff = new Image();
supportOff.src  = "/img/b_support_off.gif";
supportOn = new Image();
supportOn.src  = "/img/b_support_on.gif";

helpfulTermsOff = new Image();
helpfulTermsOff.src  = "/img/b_helpfulTerms_off.gif";
helpfulTermsOn = new Image();
helpfulTermsOn.src  = "/img/b_helpfulTerms_on.gif";

anatomyOff = new Image();
anatomyOff.src  = "/img/b_anatomy_off.gif";
anatomyOn = new Image();
anatomyOn.src  = "/img/b_anatomy_on.gif";

symptomsOff = new Image();
symptomsOff.src  = "/img/b_symptoms_off.gif";
symptomsOn = new Image();
symptomsOn.src  = "/img/b_symptoms_on.gif";

causesOff = new Image();
causesOff.src  = "/img/b_causes_off.gif";
causesOn = new Image();
causesOn.src  = "/img/b_causes_on.gif";

howProgressesOff = new Image();
howProgressesOff.src  = "/img/b_howProgresses_off.gif";
howProgressesOn = new Image();
howProgressesOn.src  = "/img/b_howProgresses_on.gif";

riskOff = new Image();
riskOff.src  = "/img/b_risk_off.gif";
riskOn = new Image();
riskOn.src  = "/img/b_risk_on.gif";




function initNav() {
	if(primaryNav != "") {
 		document.images[primaryNav].src = eval(primaryNav + "On.src");
	}
	if(secondaryNav != "") {
		document.images[secondaryNav].src = eval(secondaryNav + "On.src");
	}
	
}

function swapImage(image, state) {
	if(primaryNav == image || secondaryNav == image) {
		return
	}
	else {
		document.images[image].src = eval(image + state + ".src");
	}
}

function Leaving(location) {
	if(confirm( 'You are now leaving the AMDHelp.com Web site. Links to other sites are provided as a convenience to the viewer. Eyetech accepts no responsibility for the content of linked sites.' ))
		return true;
	else
		return false;
}

