// Todas las funciones son creación de Elisoft(c)2006

function MuestraCargando()
{
  html = '<div id="cargando" align="center">'
  html=html+'<h5>...Cargando...</h5>'
  html=html+'<img src="imagenes/cargando.gif" border="0">'
  html=html+'</div>'
  document.write(html)

  OcultaObjeto("precarga")
  MuestraObjeto("cargando")
}

function OcultaCargando()
{
  OcultaObjeto("cargando")
  MuestraObjeto("precarga")
}

function MuestraObjeto(obj)
{
  if (document.layers)
  {
    document.layers[obj].visibility="show"
  }
  else if (document.all)
  {
    document.all[obj].style.visibility="visible"
  }
  else if (document.getElementById)
  {
    document.getElementById(obj).style.visibility="visible"
  }
}

function OcultaObjeto(obj)
{
  if (document.layers)
  {
    document.layers[obj].visibility="hide"
  }
  else if (document.all)
  {
    document.all[obj].style.visibility="hidden"
  }
  else if (document.getElementById)
  {
    document.getElementById(obj).style.visibility="hidden"
  }
}
