
<!--
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function PopUp(URL, Width, Height,Other) {
  window.open(URL,'Newframe','width='+Width+',height='+Height+Other);
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function ValidaEmail(email) {
err = 0;
 // Email tem que estar preenchido
if (email.value == " " || email.value.length < 1)
{ err = 1; }
// Arroba tem que existir, nao pode ser primeiro caracter e tem que ser seguido de no minimo 4 caracteres
if (email.value.indexOf("@") < 1 || email.value.indexOf("@") > email.value.length - 5)
{ err = 1; }
// Pelo menos um ponto tem que existir, e nao pode ser primeiro caracter
if (email.value.indexOf(".") < 1)
{ err = 1; }
// Ultimo ponto tem que existir e ser seguido de no minimo 2 caracteres
if (email.value.lastIndexOf(".") > email.value.length - 3)
{ err = 1; }
// Só pode existir um @
if (email.value.indexOf("@") != email.value.lastIndexOf("@"))
{ err = 1; }
// Nao pode existir 
if (email.value.indexOf(",") > 0 || email.value.indexOf(";") > 0 || email.value.indexOf(":") > 0 || email.value.indexOf("/") > 0 )
{ err = 1; }
// Nao pode existir
if (email.value.indexOf("|") > 0 || email.value.indexOf(")") > 0 || email.value.indexOf("(") > 0 || email.value.indexOf("^") > 0 )
{ err = 1; }
// Nao pode existir
if (email.value.indexOf("..") > 0 || email.value.indexOf("!") > 0 || email.value.indexOf("*") > 0)
{ err = 1; }
// Nao pode existir
if (email.value.indexOf("$") > 0 || email.value.indexOf("#") > 0 || email.value.indexOf("`") > 0 || email.value.indexOf("~") > 0 )
{ err = 1; }
// Nao pode existir Arroba-Ponto
if (email.value.indexOf("@.") > 0)
{ err = 1; }
// Nao podem existir espacos em branco no email
if (email.value.indexOf(" ") > 0)
{ err = 1; }
if (err == 1)
{ email.focus();
  alert('E-MAIL incorreto! Verifique-o e tente novamente.'); 
  return false; }
else
  return true;
}

function inc_boletim()
  {
  if (window.event.keyCode==13) 
   {  if (ValidaEmail(document.frmnews.news))
	{
		PopUp('cadastrar_email.asp?email='+document.frmnews.news.value,'200','160',',scrollbars=no');
		document.frmnews.news.value = ''
	}	
   }
  } 
  
  function inc_boletim2()
  {
     if (ValidaEmail(document.frmnews.news))
	{
		PopUp('cadastrar_email.asp?email='+document.frmnews.news.value,'200','160',',scrollbars=no');
		document.frmnews.news.value = ''
	}	
  } 
  
  
function votar(cod)
{ for (var i = 0; i < document.frm.enquete.length; i++) 
   if (document.frm.enquete[i].checked) 
        {  voto = document.frm.enquete[i].value }
   PopUp('enquete.asp?cod_enquete='+cod+'&voto='+voto,'330','250',',scrollbars=no');
   
}
function resultado(cod)
{PopUp('enquete.asp?cod_enquete='+cod,'330','250',',scrollbars=no');
}  

function validate_busca()
{
	with (document.busca) 
	{
	if (chave.value == "") {
		alert("Preenchimento do campo é obrigatório.");
		 chave.focus();
		return false; }
	
	if (chave.value.length < 3) {
	    alert("Você deve colocar uma palavra com mais de 2 caracteres.");
        busca.focus();
        return false; }	

	return true;
	}
}

function post_busca()
{r = validate_busca()
 if (r) 
 { 
  document.busca.action = "busca.asp";
  document.busca.submit();
 }
}
//-->
<!--


<!--
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();
}
MM_reloadPage(true);
// -->
//-->


/*---funçoes do banner lateral---*/
function fechabanner(par){
	if(par=="nao"){
		document.getElementById("floater").style.display="inline";
		//document.getElementById("yamaha").style.display="inline";
	}else{
		document.getElementById("floater").style.display="none";
		
	}
}

function fechabanner80(par){
	document.getElementById("yamaha").style.display="none";
}

window.onload = function(){
	fechabanner('nao');
};