<!-- ESSA FUNCAO MOSTRA A HORA

function ShowHours()
{
	horario = new Date()
	hora = horario.getHours()
}


        hoje = new Date()
        dia = hoje.getDate()
        dias = hoje.getDay()
        mes = hoje.getMonth()
        ano = hoje.getYear()

        if (dia < 10)
                dia = "0" + dia
        if (ano < 2000)
                ano = "19" + ano
        function CriaArray (n) {
        this.length = n }
        NomeDia = new CriaArray(7)
        NomeDia[0] = "Domingo"
        NomeDia[1] = "Segunda"
        NomeDia[2] = "Ter&ccedil;a"
        NomeDia[3] = "Quarta"
        NomeDia[4] = "Quinta"
        NomeDia[5] = "Sexta"
        NomeDia[6] = "S&aacute;bado"
        NomeMes = new CriaArray(12)
        NomeMes[0] = "Janeiro"
        NomeMes[1] = "Fevereiro"
        NomeMes[2] = "Mar&ccedil;o"
        NomeMes[3] = "Abril"
        NomeMes[4] = "Maio"
        NomeMes[5] = "Junho"
        NomeMes[6] = "Julho"
        NomeMes[7] = "Agosto"
        NomeMes[8] = "Setembro"
        NomeMes[9] = "Outubro"
        NomeMes[10] = "Novembro"
        NomeMes[11] = "Dezembro"

function WriteDate()
{
	
	document.write (NomeDia[dias] + ", " + dia + " de " + NomeMes[mes] + " de " + ano)
}


<!-- #######################################################################################
<!-- #######################################################################################



<!-- ESSA FUNCAO MONTA O MENU POP-UP

function ShowDiv(IdDiv, Oper)
  {
  var s, i, d=document.layers;

  if(d) 
    {
    // Netscape:
    for (i=0; i<d.length; i++)
      {
      if (d[i].id == IdDiv)
        {
        d[i].visibility = (Oper)?"show":"hide";
        } 
      }
    }
  else
    {
    // IE:
    eval(IdDiv + ".style.visibility='" + ((Oper)?"visible":"hidden") + "';");
    }
  }

function ShowCombos(Estado)
  {
  var elmID = "SELECT";
  
  if(!document.layers)
    {
    for (i = 0; i < window.document.all.tags(elmID).length; i++)
      {
      obj = window.document.all.tags(elmID)[i];
      if (! obj || ! obj.offsetParent) continue;
      if (Estado)
        {obj.style.visibility = "";}
      else
        {if (obj.name != "Navegue") obj.style.visibility = "hidden";}
      }
    }
  }

function SetMenu(Menu)
  {
  var i;
  
  ShowCombos(false);
  for (i=1; i<=4; i++)
    {
    ShowDiv("Menu"+i, (i==Menu));
    }
  }




<!-- #######################################################################################
<!-- #######################################################################################


<!-- LIMPA O MENU POP-UP ATUAL

function ClearMenu()
  {
  var i;  

  ShowCombos(true);
  for (i=1; i<=4; i++)
    {
    ShowDiv("Menu"+i, false);
    }
  }




<!-- #######################################################################################
<!-- #######################################################################################


function Verselect(Campo) { 
var aux= "" ,ICombo;
Icombo = Campo.selectedIndex 
aux = Campo.selectedIndex
//alert ( Campo.options[Icombo].text)
//window.location="index1.html";

if ( aux == 0) {alert ("Escolha uma Opção !!!")}
if ( aux == 1) {window.location="acontece/olhos9.html";}
if ( aux == 2) {window.location="acontece/kater.html";}
if ( aux == 3) {window.location="acontece/doverao1.html";}
if ( aux == 4) {window.location="acontece/doacao1.html";}
if ( aux == 5) {window.location="acontece/infarto.html";}
if ( aux == 6) {window.location="acontece/disfun.html";}
if ( aux == 7) {window.location="acontece/desenvo1.html";}
if ( aux == 8) {window.location="acontece/cancer1.html";}
if ( aux == 9) {window.location="acontece/trau1.html";}
if ( aux == 10) {window.location="acontece/tabagism.html";}
if ( aux == 11) {window.location="acontece/amam.html";}
if ( aux == 12) {window.location="acontece/convul.html";}
if ( aux == 13) {window.location="acontece/fumo.html";}
if ( aux == 14) {window.location="acontece/fim1.html";}
if ( aux == 15) {window.location="acontece/aidshoje.html";}
if ( aux == 16) {window.location="acontece/mae.html";}
 } 
 
 
 
 
function ResolucaoVideo()
  {
 
 if( (screen.width == 800) && (screen.height == 600))
 {
  window.location="index01.html"
 }
 else
 {
  window.location="index02.html";
 }
 
    }


 
 
 
<!-- #######################################################################################
<!-- FUNCAO QUE ABRE NOVAS JANELAS - SERVIÇOS PUBLICOS
function Nova_janela(pasta) {
  if (pasta == 'janelablack') {
    var url = "janelablack.html";
    window.open(url,'nova_pasta','resizable=no,menubar=no,scrollbars=no,width=420,height=130');
  }

// copie abaixo para adicionar mais uma janela //
  if (pasta == 'janelablue') {
    var url = "janelablue.html";
    window.open(url,'nova_pasta','resizable=no,menubar=no,scrollbars=no,width=420,height=130');
  }

  if (pasta == 'janelared') {
    var url = "http://www.uol.com.br";
    window.open(url);
  }

  if (pasta == 'ipva') {
    var url = "http://consultas.ciasc.gov.br/ipva/";
    window.open(url);
  }

  if (pasta == 'correio') {
    var url = "http://www.correios.com.br/";
    window.open(url);
  }

  if (pasta == 'guia') {
    var url = "http://www.telefonica.net.br/online/guias/";
    window.open(url);
  }

  if (pasta == 'receita') {
    var url = "http://www.receita.fazenda.gov.br/";
    window.open(url);
  }

  if (pasta == 'guiamais') {
    var url = "http://www.guiamais.com.br/rb/yellow/jsp/index.jsp";
    window.open(url);
  }

  if (pasta == 'tradutorgoo') {
    var url = "http://www.google.com.br/language_tools?";
    window.open(url);
  }

  if (pasta == 'dicionario') {
    var url = "http://www.priberam.pt/DLPO/";
    window.open(url);
  }


  if (pasta == 'clima') {
    var url = "http://www.climatempo.com.br/novo/";
    window.open(url);
  }

  if (pasta == 'dicionariobarsa') {
    var url = "http://www2.globo.com/educacao/dicionario/";
    window.open(url);
  }

  if (pasta == 'ms') {
    var url = "http://portal.saude.gov.br/saude/";
    window.open(url);
  }

  if (pasta == 'anvisa') {
    var url = "http://www.anvisa.gov.br";
    window.open(url);
  }

  if (pasta == 'mapa') {
    var url = "http://mapas.terra.com.br/";
    window.open(url);
  }



}



function top5 ()
{
 window.open('top_5.php', '', 'width=250 height=150 left=200 top=100 menubar=no toolbar=0 statusbar=0,scrollbars=0');

}
 
 
 

function pop ()
{
//   window.open('banners/pop.html', "","channelmode","scrollbars");
   window.open('banners/gripe2004.html', '', 'width=400 height=300 left=200 top=100 menubar=no toolbar=0 statusbar=0,scrollbars=0');
}



 