var isNav4
var isW3C
var isIE

function init()
{
if (navigator.appName.indexOf ("Netscape") !=-1) {
if (parseInt(navigator.appVersion) == 4) {
isNav4 = true;
}
else if (parseInt(navigator.appVersion) >=5) {
isW3C = true;
}
}
else {
if ((parseInt(navigator.appVersion) >= 4 ) &&
(navigator.appName.indexOf("Microsoft")!=-1)) {
isIE = true;
}
}
}


init();


isNav4=(document.layers)? true:false
var ns6=(navigator.userAgent.indexOf("Gecko") != -1)? true:false
var ie=(document.all)? true:false

function showLayer(layerId,layerId2){
	hideAll();
	if (isNav4){ 
		document.layers[layerId].visibility = "show";
		if (layerId2 != ''){
			document.layers[layerId2].visibility = "show";
		}
	} else if (ie){ 
		document.all[layerId].style.visibility = "visible";
		if (layerId2 != ''){
			document.all[layerId2].style.visibility = "visible";
		}
	} else if (ns6){ 
		document.getElementById(layerId).style.visibility = "visible";
		if (layerId2 != ''){
			document.getElementById(layerId2).style.visibility = "visible";
		}
	}
} 	 


function hideLayer(layerId,layerId2){
	if (isNav4){
		document.layers[layerId].visibility = "hide";
		if (layerId2 != ''){
			document.layers[layerId2].visibility = "hide";
		}
	} else if (ie){
		document.all[layerId].style.visibility = "hidden";
		if (layerId2 != ''){
			document.all[layerId2].style.visibility = "hidden";
		}
	} else if (ns6){ 
		document.getElementById(layerId).style.visibility = "hidden";
		if (layerId2 != ''){
			document.getElementById(layerId2).style.visibility = "hidden";
		}
	}
	window.setTimeout("hideAll();",10000);
} 


function hideAll()
{
  /*hideLayer("lay24");*/
}
