// browser sniffer
var w3c = (document.getElementById) ? 1: 0;
var n4 = (document.layers) ? 1 : 0;
if ((document.all) && (w3c!=1)) {var ie4=1};

// toggle layer visibility
function showhide(id,v) {
	if (v == "show") vis="visible";
	if (v == "hide") vis="hidden";
	if (vis == "hidden") {
		if (w3c==1)
			document.getElementById(id).style.visibility = "hidden";
		if (n4==1)
			document.layers[id].visibility = "hidden";
		if (ie4==1)
			document.all.item(id).style.visibility = "hidden";
	}
	else {
		if (w3c==1)
			document.getElementById(id).style.visibility = "visible";
		if (n4==1)
			document.layers[id].visibility = "visible";
		if (ie4==1)
			document.all.item(id).style.visibility = "visible";
	}
}
