    //variavel que define aonde vai ser exibida a janela modal
    var leftPopUp = false;
    var leftTopo = false;
    var topModal = '0';
    if(isIE)    {
      topModal = '25';
    }
    else    {
      topModal = '20';
    }

    http.onreadystatechange = function ()
    {
      if (http.readyState == 2)
      {
        showLoading();
      }

      if (http.readyState == 4)
      {
         if (http.status == 200)
         {
           hideLoading();
           mostraSite();
           floreia();
         }
      }
    }

// When the page loads:
    window.onload = function()
    {
       /*if (document.getElementsByTagName) {
          // Get all the tags of type object in the page.
          var objs = document.getElementsByTagName('object');
          for (i=0; i<objs.length; i++) {
             // Get the HTML content of each object tag
             // and replace it with itself.
             objs[i].outerHTML = objs[i].outerHTML;
          }
       }*/

       http.open("GET",document.URL,true);
       http.send(null);
    }

// When the page unloads:
    window.onunload = function()
    {
       /*if (document.getElementsByTagName) {
          //Get all the tags of type object in the page.
          var objs = document.getElementsByTagName('object');
          for (i=0; i<objs.length; i++) {
             // Clear out the HTML content of each object tag
             // to prevent an IE memory leak issue.
             objs[i].outerHTML = '';
          }
       }*/
    }

    window.onresize = function()
    {
    }

    window.onscroll = function()
    {
    }

    function mostraSite()
    {
      var site = document.getElementById('divExterna');
      if (site)
      {
        site.style.display = '';
      }
    }

    function CarregaImagem(img)
    {
      if(img)
      {
        var strAux = img.src.split('/');
        strAux = strAux[strAux.length-1];
        strAux = strAux.split('.');
        strAux = strAux[0];

        img.style.display = '';
      }

      hideLoadingImage();
      showDivContentProduct();

      if(strAux != 'blank')
      {
        window.refToModMessage.__resizeDivs();
        window.refToModMessage.__repositionTransparentDiv();
      }

      //divContentProduct.style.display = '';
      if(!isIE)
      {
        var content1 = document.getElementById('divContentProduct');
        window.refToModMessage.setSize(img.scrollWidth+20,content1.scrollHeight + img.scrollHeight/5);
      }
    }

    function hideLoadingImage()
    {
      var aux = document.getElementById('divLoadingImagem');
      if(aux)
      {
        aux.style.display = 'none';
      }
    }

    function showLoadingImage()
    {
      var aux = document.getElementById('divLoadingImagem');
      if(aux)
      {
        aux.style.display = '';
      }
    }

    function showDivContentProduct()
    {
      var aux = document.getElementById('divContentProduct');
      if(aux)
      {
        aux.style.display = '';
      }
    }

    function hideDivContentProduct()
    {
      var aux = document.getElementById('divContentProduct');
      if(aux)
      {
        aux.style.display = 'none';
      }
    }

    function hideRodape()
    {
      var aux = document.getElementById('tabelaRodape');
      alert(aux);
      if(aux)
      {
        aux.style.display = '';
      }
    }

    function floreia()
    {
      var divMenu = document.getElementById('divMenu');

      if(divMenu)
      {
        divMenu.style.display = '';
      }

      var flashMovie = document.getElementById('flashMovie');
    }

    function MostraMapa()
    {
      var linhaMapa = document.getElementById('linhaMapa');

      if(linhaMapa)
      {
        if(linhaMapa.style.display == '')
        {
          linhaMapa.style.display = 'none';
        }
        else
        {
          linhaMapa.style.display = '';
        }
      }
    }

    function TrocaImagemMenu(campo,font,size,color,bgColor,text)
    {
      campo.InnerHTML = "<img src='loadFont.php?font=" + font + "&size=" + size + "&color=" + color + "&bgColor=" + bgColor + "&text=" + text + "' border='0'>";
    }