	var subOpen=false;
	var the_timeout;
	
	function showLayer(id)
	{
		document.getElementById(id).style.visibility="visible";
	}
	
	function hideLayer(id)
	{
		//hideAllLayers();
		if(subOpen==false){
			document.getElementById(id).style.visibility="hidden";
			
		}
	}
	
	
	function hideAllLayers()
	{
		for(i=0; i<allLayers.length; i++)
		{
			document.getElementById('sub' + allLayers[i]).style.visibility="hidden";
		}
		subOpen=false;
	}
	
	function showSubLayer(id)
	{
				document.getElementById(id).style.visibility="visible";
				subOpen=true;
	}
	
	function hideSubLayer(id)
	{
				//document.getElementById(id).style.visibility="hidden";
				subOpen=false;
				the_timeout = setTimeout("hideLayer('"+id+"');",100);
	}
	
	function changeColor(what,color)
	{
		what.bgColor=color;
	}
	
	function keepColor(what,color)
	{
			document.getElementById(what).bgColor=color;
	}
	

	
	function none() {}
	



