var hideTimeOutID;

function showLayer(hiddenElement) {
	window.clearTimeout(hideTimeOutID);
	document.getElementById(hiddenElement).style.visibility='visible';
}

function hideLayer(shownElement) {
	document.getElementById(shownElement).style.visibility='hidden';
}

function hideTreatmentOptions() {
	hideLayer('subnav1');
}

function hideDelayed() {
	hideTimeOutID = window.setTimeout('hideTreatmentOptions()',1000);
}