// JavaScript Document

function getThisElem(whichLayer){
	if (document.getElementById){ // this is the way the standards work
		var thisElem = document.getElementById(whichLayer);	}
	else if (document.all){ // this is the way old msie versions work
		var thisElem = document.all[whichLayer]; }
	else if (document.layers){ // this is the way nn4 works
		var thisElem = document.layers[whichLayer];	}
	return thisElem;
}

function hideLayers(){
	var i = showHideLayers.length;
	for(i=i-1; i>=0; i--){
		var whichLayer = showHideLayers[i];
		thisElem = getThisElem(whichLayer)
		thisElem.style.display = "none";
	}
}

function toggleLayer(whichLayer){
	thisElem = getThisElem(whichLayer)
	thisElem.style.display = thisElem.style.display?"":"none";
}

var showHideLayers = new Array();