
function setSubNav(mode) {
	 top['header'].subnavMode = mode;
	}
	
function refreshSubnavMode (){
	/*  CTW -- We don't want to do this
	
	var mode = top['header'].subnavMode;
	if(mode=="modalities"){
		if(top['main'].location.href.indexOf("toc_modality.asp") == -1)
			top['main'].location.href="/toc_modality.asp";
	}
	
	else if(mode=="allergies"){
			if(top['main'].location.href.indexOf("toc_allergies.asp") == -1)
				top['main'].location.href="/toc_allergies.asp";
		}

	else if(mode=="conditiondescriptions"){
			if(top['main'].location.href.indexOf("toc_conditiondescriptions.asp") == -1)
				top['main'].location.href="/toc_condition_descriptions.asp";
		}

	else if(mode=="nutrition"){
		if(top['main'].location.href.indexOf("toc_nutrition.asp") == -1)
			top['main'].location.href="/toc_nutrition.asp";
	}
	
	else if(mode=="conditions"){
		if(top['main'].location.href.indexOf("toc_cond.asp") == -1)
			top['main'].location.href="/toc_cond.asp";
	}
		
	else if(mode=="news"){
			if(top['main'].location.href.indexOf("news.asp") == -1)
				top['main'].location.href="/news.asp";
		}

	else if(mode=="events"){
		if(top['main'].location.href.indexOf("events.asp") == -1)
			top['main'].location.href="/events.asp";
	}
	*/

}


function refreshChoice() {
	return true;
	//chosen = top['header'].chosen;

	if (chosen !="" && chosen !="undefined")
		chooseMode(chosen)
}

function hilight () {
	for(var i=0; i<arguments.length; ++i){
		var mode = arguments[i];
		if (document.getElementById(mode)) {
			document.getElementById(mode).className="selected";
		}
	}
}
