// JavaScript Document
if(document.images){
	hom_on = new Image();	hom_on.src = "../images/09/nav_home_on.gif";
	nws_on = new Image();	nws_on.src = "../images/09/nav_newsltr_on.gif";
	loc_on = new Image();	loc_on.src = "../images/09/nav_memloc_on.gif";
	joi_on = new Image();	joi_on.src = "../images/09/nav_join_on.gif";
	con_on = new Image();	con_on.src = "../images/09/nav_contact_on.gif";
	hea_on = new Image();	hea_on.src = "../images/09/nav_healthplan_on.gif";
	psy_on = new Image();	psy_on.src = "../images/09/nav_phonesys_on.gif";
	msc_on = new Image();	msc_on.src = "../images/09/nav_mbrsect_on.gif";
	
	hom_off = new Image();	hom_off.src = "../images/09/nav_home_off.gif";
	nws_off = new Image();	nws_off.src = "../images/09/nav_newsltr_off.gif";
	loc_off = new Image();	loc_off.src = "../images/09/nav_memloc_off.gif";
	joi_off = new Image();	joi_off.src = "../images/09/nav_join_off.gif";
	con_off = new Image();	con_off.src = "../images/09/nav_contact_off.gif";
	hea_off = new Image();	hea_off.src = "../images/09/nav_healthplan_off.gif";
	psy_off = new Image();	psy_off.src = "../images/09/nav_phonesys_off.gif";
	msc_off = new Image();	msc_off.src = "../images/09/nav_mbrsect_off.gif";
}

function swapImg(direction,id){
	if(document.images){
		//document.getElementById(id).src = eval(id + "_" + direction +".src");
		document[id].src = eval(id + "_" + direction +".src");
	}
}

function waterMark(txtbox,txt,markOption){
	switch(markOption){
		case "focus":
			if(txtbox.value == txt){ txtbox.value = ""; }
			break;
		case "blur":
			if(trim(txtbox.value) == ""){ txtbox.value = txt; }
			break;
	}
}

function trim(stringToTrim) {
	return stringToTrim.replace(/^\s+|\s+$/g,"");
}