codice:
<script type="text/javascript"> 
<!-- 

  function init (tipo, contaLayer) 
  {
    document.all["loading" + contaLayer].style.visibility = !tipo ? "hidden" : "visible";
  }

//--> 
</script>

occhio che NON è portabile e funziona
SOLO su INTERNET EXPLORER.