	ns4 = (document.layers)? true:false
	ie4 = (document.all)? true:false
	var hideTimeout;

	function showObject(obj) 
	{	
        		if (ns4) obj.visibility = "show";
        		else if (ie4) obj.style.visibility = "visible";
        		return obj;
	}

	function hideObject(obj) 
	{
        		if(hideTimeout != null) window.clearTimeout(hideTimeout);
        		if (ns4) obj.visibility = "hide";
        		else if (ie4) obj.style.visibility = "hidden";
	}

	var swapObj = new Array();
	function showLayers() 
	{
		var tobj;
		 for(i=0;i<swapObj.length;i++) 
		 {
	     		hideObject(swapObj[i]);
		 }
		 args = showLayers.arguments
		 for(i=0;i<args.length;i++) 
		 {
			if (ns4) tobj = eval("document.layers['"+args[i]+"']");
			else if (ie4) tobj = eval("document.all['"+args[i]+"']");
	   		swapObj[i] = showObject(tobj);
	 	}
		 hideTimeout = window.setTimeout("showLayers()", 5000);
		 return true;
	}

	function HideLayers() 
	{
 		var tobj;
		for(i=0;i<swapObj.length;i++) 
		{
			hideObject(swapObj[i]);
        }
	}
