function Cabecalho(){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="772" height="182">\n');
document.write('<param name="movie" value="swf/cabecalho.swf">\n');
document.write('<param name="quality" value="high">\n');
document.write('<embed src="swf/cabecalho.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="772" height="182"></embed></object> \n');
}
function menu(){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="146" height="475">\n');
document.write('<param name="movie" value="swf/menu.swf">\n');
document.write('<param name="quality" value="high">\n');
document.write('<param name="wmode" value="transparent">\n');
document.write('<embed src="swf/menu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="146" height="475" wmode="transparent"></embed></object> \n');
}

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 = 1900 + ano

function NArray (n) 
{
  this.length = n
}

NomeDia = new NArray(7)

NomeDia[0] = "Domingo"
NomeDia[1] = "Segunda-feira"
NomeDia[2] = "Ter&ccedil;a-feira"
NomeDia[3] = "Quarta-feira"
NomeDia[4] = "Quinta-feira"
NomeDia[5] = "Sexta-feira"
NomeDia[6] = "S&aacute;bado"

NomeMes = new NArray(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)
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

 function NovaJanela()
{
window.open("janela.htm","Image3","toolbar=no,location=no, directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=550,height=413");
}

function verificar_campo(email)
 {

  if(!email.value) 
  {
   alert("Preencha o campo e-mail!");
   return;
  }

if(!checaEmail(email)) 
  {
   alert("Este e-mail não é válido! Digite novamente");
   return;
  }
   else{

document.fale.action='resposta.php';
    document.fale.submit();
    }
 }

function checaEmail(email)
{
  if (email.value.search(/\w+@\w+\.\w+/) == -1) {
    return false;
  } else
  {
    if ((email.value.lastIndexOf(".") == email.value.length - 1) ||
email.value.lastIndexOf("@") !=
email.value.indexOf("@"))
	{
      return false;
    } else {
      return true;
    }
  }
}


function abrir(URL)
{
window.open(URL,'imprimir','width=450, height=500,scrollbars=yes');	
}


