/************* Função para trocar background ***************/
function trocaMenu(param, param2){
 var cor_de_fundo;
 if(param2 == 1)
 {
//  document.getElementById(param).style.borderTop="2px solid #006699";  
  document.getElementById(param).style.borderBottom="4px solid #952926"; 
 }
  else
  {
   if(param2 == 2)
   {
//    document.getElementById(param).style.borderTop="0px solid #006699";       
    document.getElementById(param).style.borderBottom="0px solid #952926"; 
   }  
  }
 
}
/***********************************************************/

/***************Função para chamar SWF sem ativar***********/
function ins_flash_pagina (param, param_2, param_3) { // arquivo, largura, altura
 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="'+ param_2 +'" height="'+ param_3 +'">');
 document.write('<param name="movie" value="' + param + '" />');
 document.write('<param name="quality" value="high" />');
 document.write('<param name="menu" value="false" />');
 document.write('<param name="wmode" value="transparent" />');
 document.write('<embed src="' + param + '" width="'+ param_2 +'" height="'+ param_3 +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false" wmode="transparent"></embed>');
 document.write('</object>');
}
/***********************************************************/

/***************Função para validar form e-mail************/
function validaForm () { 
if(document.contato.nome.value=="" || document.contato.nome.value.length <= 2)
{
 alert( "Preencha campo NOME corretamente!" );
 document.contato.nome.focus();
 return false;
}
 else {
  if( document.contato.email.value=="" || document.contato.email.value.indexOf('@')==-1 || document.contato.email.value.indexOf('.')==-1 )
  {
   alert( "Preencha campo E-MAIL corretamente!" );
   document.contato.email.focus();
   return false;
  }
   else {
    if( document.contato.texto.value=="")
    {
     alert( "Preencha campo MENSAGEM corretamente!" );
     document.contato.texto.focus();
     return false;
    }
     else {
      if( document.contato.telefone.value=="")
      {
       alert( "Preencha campo TELEFONE corretamente!" );
       document.contato.telefone.focus();
       return false;
      }
     }    
   }  
 }

}
/***********************************************************/

