var layerAnoName = "";

function ShowLayerAno(objName) {
  
  var obj = FindObj(objName);
  
  if (obj != null) { 
  
	if (layerAnoName != "" ) {
		AnoHtc_hide();
	}
	
    if (obj.style) { 
		obj.style.visibility='visible'; 
		obj.style.display='block'; 
		ClearTimeOutToHideAno;
		layerAnoName = "";
    }
  }
}


function HideLayerAno( objName) {
	layerAnoName = objName;
	SetTimeOutToHideAno();
}


function ClearTimeOutAno(oAttribute)
{
	var id=document.body.getAttribute(oAttribute);
	if (id !=null)
	{
		window.clearTimeout(id);
	}
	document.body.removeAttribute(oAttribute);
}

function ClearTimeOutToHideAno()
{
	if (document.body.getAttribute("HideAnoTimeOut") !=null)
	{
		ClearTimeOut("HideAnoTimeOut");
	}
}

function SetTimeOutToHideAno()
{
	ClearTimeOut("HideAnoTimeOut");
	document.body.setAttribute("HideAnoTimeOut", window.setTimeout(AnoHtc_hide, 500));
}

function AnoHtc_hide()
{
	ClearTimeOutToHideAno();
	
	if (layerAnoName != "") {
		var obj = obj=FindObj(layerAnoName);
		if (obj != null) { 
			if (obj.style) { 
				obj.style.visibility='hidden'; 
				obj.style.display='none'; 
				layerAnoName = ""
			}
		}
	}	
	
}


