    http.onreadystatechange = function ()
    {
      if (http.readyState == 2)
      {
        //showLoading();
      }

      if (http.readyState == 4)
      {
         if (http.status == 200)
         {
           hideLoading();
           beforeShow();
           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()
    {
          }
    
    function beforeShow()
    {
      hideLoading();
      
      $("#divExterna").fadeIn("normal");
      
      var flashMovieLoadingEmbed = document.getElementById('flashMovieLoadingEmbed');
      if(flashMovieLoadingEmbed)
      {
        flashMovieLoadingEmbed.parentNode.removeChild(flashMovieLoadingEmbed);
        //flashMovieLoadingEmbed.removeNode(true);
      }
      
      var flashMovieLoading = document.getElementById('flashMovieLoading');
      if(flashMovieLoading)
      {
        flashMovieLoading.parentNode.removeChild(flashMovieLoading);
        //flashMovieLoading.removeNode(true);
      }
    }

    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'>";
    }
    
    function MostraMenu(id)
    {
      var div = document.getElementById('divMenu' + id);
      var menuTitle = document.getElementById('menuTitle' + id);
      var colunaMenu = document.getElementById('colunaMenu' + id);
      
      menuTitle.className = 'menuOver';
      colunaMenu.className = 'colunaMenuOver';
      
      div.style.top = getY(colunaMenu) + 41;
      //div.style.left = getX(colunaMenu) - colunaMenu.width;
      div.style.left = getX(colunaMenu);
      div.style.display = '';
    }
    
    function EscondeMenu(id)
    {
      var div = document.getElementById('divMenu' + id)
      var menuTitle = document.getElementById('menuTitle' + id);
      var colunaMenu = document.getElementById('colunaMenu' + id);

      menuTitle.className = 'menu';
      colunaMenu.className = 'colunaMenu';
      
      div.style.display = 'none';
    }