// JavaScript Document
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;

var shown_layer='';
function switch_layer(id){
	if(document.getElementById(id).style.visibility=='hidden'){
		if(shown_layer!=''){
			document.getElementById(shown_layer).style.visibility='hidden';
			document.getElementById(shown_layer).style.height='0px';
			document.getElementById(shown_layer).style.display='none';
		}
		document.getElementById(id).style.visibility='visible';
		document.getElementById(id).style.height='auto';
		document.getElementById(id).style.display='block';
		shown_layer=id;
	}else{
		document.getElementById(id).style.visibility='hidden';
		document.getElementById(id).style.height='0px';
		document.getElementById(id).style.display='none';
		shown_layer='';
	}
}

