// JavaScript Global - Criado por Ronnie Garcia - MaxMidia : Comunicação & Marketing
window.status="..:: UpSecure ::..";

function fecha(){
document.getElementById('credito').style.visibility='hidden';
window.clearTimeout(timer);
}
function creditos() {
document.getElementById('credito').style.visibility='visible';
timer=window.setTimeout('fecha()',5000);
}
//=== creditos do site ==========================================
txt = "<div id='credito' style='position:absolute; left:0px; top:339px; width:100%; height:117px; z-index:1; visibility: hidden;'><table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td><table width='200' bgcolor='#FFFFFF' align='center' style='border: 1 solid #999999'><tr><td><table width='195' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td align='center' ><img name='index_r16_c2' src='creditos/index_r16_c2.jpg' width='195' height='4' border='0' alt=''></td></tr><tr><td align='center' bgcolor='#F0F0F0' class='braco'><font class='preto'><br>Desenvolvido por <a href='http://www.agenciamaxmidia.com.br/' target='_blank'><strong><font color='#034e90' style='text-decoration: none;'>agenciamaxmidia.com.br</font></strong></a><br><br>Design: <strong><br>Nayla Andrade</strong><br><br>Programador:<br><strong>Ronnie Garcia</strong><br><br>Textos: <strong><br>Ana Rita Brandão</strong><br><br></font></td></tr><tr><td background='creditos/index_r8_c1.jpg'><img src='creditos/index_r8_c1.jpg' width='10' height='3'></td></tr><tr><td height='30' align='center' bgcolor='#F0F0F0' class='braco'><strong><a href='javascript:fecha();'><font class='braco' style='text-decoration:none'>Fechar</font></a></strong></td></tr><tr><td align='center'><img name='index_r21_c2' src='creditos/index_r21_c2.jpg' width='195' height='4' border='0' alt=''></td></tr><tr></tr></table></td></tr></table></td></tr></table></div>";
//=== Tirar retangulo do flash ==================================
function flash(file, width, height){
    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='" + width + "' height='" + height + "'>");
	document.write("<param name='wmode' value='transparent'>");
    document.write("<param name='movie' value='" + file + "'>");
    document.write("<param name='quality' value='high'>");
    document.write("<embed src='" + file + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + width + "' height='" + height + "' wmode='transparent'></></embed>");
    document.write("</object>");
}
// === Valida ===================================================
function newsletter(){
	if(document.form1.email.value.match(/(\w+)@(.+)\.(\w+)$/) == null){
	window.alert("Você digitou um e-mail invalido!\nPor Favor verifique os dados digitados");
	document.form1.email.focus();
	return false;
	}
	return true;
}
//=== Verificar contato =================================
function contato(){
	if(document.form1.nome.value.length < 3){
	window.alert("O campo nome está incorreto!\nPor Favor verifique os dados digitados");
	document.form1.nome.focus();
	document.getElementById("nomeimg").src='images/erro.gif';
	return false;
	} else {
		document.getElementById("nomeimg").src='images/ok.gif';
	}
	if(document.form1.email.value.match(/(\w+)@(.+)\.(\w+)$/) == null){
	window.alert("O campo e-mail está incorreto!\nPor Favor verifique os dados digitados");
	document.form1.email.focus();
	document.getElementById("emailimg").src='images/erro.gif';
	return false;
	} else {
		document.getElementById("emailimg").src='images/ok.gif';
	
	}
	if(document.form1.assunto.value.length < 3){
	window.alert("O campo assunto está incorreto!\nPor Favor verifique os dados digitados");
	document.form1.assunto.focus();
	document.getElementById("assuntoimg").src='images/erro.gif';
	return false;
	} else {
		document.getElementById("assuntoimg").src='images/ok.gif';
	}
	if(document.form1.mensagem.value.length < 3){
	window.alert("O campo mensagem está incorreto!\nPor Favor verifique os dados digitados");
	document.form1.mensagem.focus();
	document.getElementById("mensagemimg").src='images/erro.gif';
	return false;
	} else {
		document.getElementById("mensagemimg").src='images/ok.gif';
	
	}
	return true;
}