var type = "unknown";	//Variable used to hold the browser name
BrowserSniffer();

//detects the capabilities of the browser
function BrowserSniffer() {
	if (document.all) type="all";					//eg Internet Explorer e.g. IE4 upwards
	else if (document.layers) type="layers";		//eg Netscape Communicator 4
	else if (document.getElementById) type="ById";	//eg Opera and Mozila e.g. Netscape 6 upwards
	else type = "unknown";		//I hope it will not get here
}
//Show and hide a layer
//id is the name of the layer
//action is either hidden or visible
//Seems to work with all versions NN4 plus other browsers
function ShowLayer(id, action){
	if (type=="all") eval("document.all." + id + ".style.visibility='" + action + "'");
	if (type=="layers") eval("document." + id + ".visibility='" + action + "'");
	if (type=="ById") eval("document.getElementById('" + id + "').style.visibility='" + action + "'");
}