var thetimeout;

function delayhide(){
thetimeout=setTimeout("layallhide()",5000)
}

function cleartime(){
clearTimeout(thetimeout)
}

function showlayer(layer){
layer.style.left=document.body.scrollLeft+event.clientX-event.offsetX-25	
layer.style.top=document.body.scrollTop+event.clientY-event.offsetY+27
layer.style.visibility="visible"
if (thetimeout) clearTimeout(thetimeout)
delayhide()
}

function hidemenu(layer){
layer.style.visibility="hidden"
}
function layallhide()
{ lay1.style.visibility="hidden";
  lay2.style.visibility="hidden";
  lay3.style.visibility="hidden";
  lay4.style.visibility="hidden";
  lay5.style.visibility="hidden";
  lay6.style.visibility="hidden";  
  if (thetimeout) clearTimeout(thetimeout)

}

function addsaes()
{  url = "http://www.saes.sh.cn"; 
title = "天津市环境保护科学研究院"; 
window.external.AddFavorite(url,title); 
}

function addurl()
{  url = window.location.href; 
title = "天津市环境保护科学研究院"; 
window.external.AddFavorite(url,title); 
}

function MM_openPicWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,'scrollbars=no,resizable=no,top=100,left=250,width=700,height=500');
}
