// JavaScript Document

var curDiv = '';
function ShowContent(show){

	if(curDiv != '') {
		HideContent(curDiv);
	}

	if(curDiv == show) {
		curDiv = '';
		return;
	}

	document.getElementById(show).style.visibility = "visible";
	document.getElementById(show).style.display = "block";

	curDiv = show;
}

function HideContent(hide){
	document.getElementById(hide).style.visibility = "hidden";
	document.getElementById(hide).style.display = "none";
}

function hideLayer(whichLayer) {

	if (document.getElementById) {
	// this is the way the standards work
	document.getElementById(whichLayer).style.visibility = "hidden";
	}
	else if (document.all) {
	// this is the way old msie versions work
	document.all[whichlayer].style.visibility = "hidden";
	}
	else if (document.layers) {
	// this is the way nn4 works
	document.layers[whichLayer].visibility = "hidden";
	}

}
function showLayer(whichLayer) {

	if (document.getElementById) {
	// this is the way the standards work
	document.getElementById(whichLayer).style.visibility = "visible";
	}
	else if (document.all) {
	// this is the way old msie versions work
	document.all[whichlayer].style.visibility = "visible";
	}
	else if (document.layers) {
	// this is the way nn4 works
	document.layers[whichLayer].visibility = "visible";
	}

}
function handleClick(whichClick,who) {

	if (whichClick == "hide it") {
	// then the user wants to hide the layer
	hideLayer(who);
	
	}
	else if (whichClick == "show it") {
	// then the user wants to show the layer
	showLayer(who);
	}

}