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);


//abre popup
function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}



//insere flash
function flash (URL, WIDTH, HEIGHT, TRANSPARENT, PARAMETROS)
{
document.write (' <object classid="clsid:27CDB6E-AE6D-11cf-96B8-444553540000" ');
document.write (' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" ');
document.write (' width="'+ WIDTH +'" height="'+ HEIGHT +'">');
document.write (' <param name="movie" value="'+ URL +'" />');
document.write (' <param name="quality" value="high" />');
document.write (' <param name="FlashVars" value="'+PARAMETROS+'" />');

if ( TRANSPARENT ) {
  document.write (' <param name="Wmode" value="Transparent" />'); 
}

document.write (' <embed src="'+ URL +'" quality="high"');

if ( TRANSPARENT ) {
document.write (' Wmode = "transparent"  FlashVars="'+PARAMETROS+'" ');
}

document.write (' pluginspage="http://www.macromedia.com/go/getflashplayer" ');
document.write (' type="application/x-shockwave-flash" width="'+ WIDTH +'" height="'+ HEIGHT +'"></embed></object> ');

}


//verificação NEWSLETTER
//verificação NEWSLETTER
//verificação NEWSLETTER
function verifica_news(idioma) {
	if (idioma == "pt") {
		if (news.nome.value == "Seu nome:") {
			alert("Informe seu nome.");
			news.nome.focus();
			return (false);
			}
	}else if (idioma == "in"){
		if (news.nome.value == "Name:") {
			alert("Your name.");
			news.nome.focus();
			return (false);
			}
	}else if (idioma == "es"){
		if (news.nome.value == "Su nombre:") {
			alert("Informe su nombre.");
			news.nome.focus();
			return (false);
			}
		}
	if (news.email.value == "") { 
	  //verifica idioma
		if (idioma == "pt") {
			alert("E-mail informado está incorreto.");
		} else if (idioma == "in"){
			alert("E-mail is incorrect.");
		} else if (idioma == "es"){
			alert("E-mail informado está incorrecto.");
		}
		
    news.email.focus();
    return (false);
  }else{
  	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(news.email.value)){
	  }else{
  		//verifica idiomas
  		if (idioma == "pt") {
		  	alert("Preencha o campo \"E-mail\" corretamente.");
		} else if (idioma == "in"){
			alert("E-mail is incorrect.");
		} else if (idioma == "es"){
			alert("E-mail informado está incorrecto.");
		}
		
    news.email.focus();
    return (false);  
  	}
  }
}