// Daniel Sócrates
function Flash(swf, width, height, flashvars, id){
	var escreveFlash = new String();
	if (navigator.appName.indexOf("Microsoft") != -1){
		escreveFlash += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
		escreveFlash += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=version=8,0,0,0" ';
		escreveFlash += 'width="' + width + '" height="' + height + '" name="' + id + '"id = '+ id +'">';
		escreveFlash += '<param name="movie" value="' + swf + '"/>';
		if(flashvars != null) {escreveFlash += '<param name="flashvars" value="' + flashvars + '"/>'};
		escreveFlash += '<param name="menu" value="false"/>';
		escreveFlash += '<param name="salign" value="LT"/>';
		escreveFlash += '<param name="scale" value="noscale"/>';
		escreveFlash += '<param name="wmode" value="transparent"/>';
		escreveFlash += '<param name="allowScriptAccess" value="sameDomain"/>';
		escreveFlash += '</object>';
	} else{
		escreveFlash += '<embed src="' + swf + '" ';
		escreveFlash += 'width="' + width + '" ';
		escreveFlash += 'height="' + height + '" ';
		escreveFlash += 'id="' + id + '" ';
		escreveFlash += 'name="' + id + '" ';
		escreveFlash += 'menu="false" ';
		escreveFlash += 'scale="noscale" ';
		escreveFlash += 'salign="LT" ';
		escreveFlash += 'wmode="transparent" ';
		escreveFlash += 'allowScriptAccess="sameDomain" ';
		if(flashvars != null) {escreveFlash += 'flashvars="' + flashvars + '" '};
		escreveFlash += 'type="application/x-shockwave-flash" ';
		escreveFlash += 'pluginspage="http://www.macromedia.com/go/getflashplayer">';
		escreveFlash += '</embed>';
	}
	document.write(escreveFlash);
}


function abre_url(url){
	window.location = url;
}






function verifica(){
					if(enviacontato.txtNome.value == ""){
						envia = 0;
						alert("Digite o Nome");
						enviacontato.txtNome.focus();
						return false; 	
					 }else{
						envia = 1;
					 }
					 				 
					 
					if(enviacontato.txtEmpresa.value == ""){
						alert("Digite o Empresa");
						envia = 0;
						enviacontato.txtEmpresa.focus();
						return false; 	
					 }else{
						envia = 1;
					 }
	
					if(enviacontato.txtTel.value == ""){
						alert("Digite o Telefone");
						envia = 0;
						enviacontato.txtTel.focus();
						return false; 	
					 }else{
						envia = 1;
					 }
	
					if(enviacontato.txtDDD.value == ""){
						alert("Digite o DDD");
						envia = 0;
						enviacontato.txtDDD.focus();
						return false; 	
					}else{
						envia = 1;
					}

			
					if(enviacontato.txtEmail.value == ""){
						alert("Digite o Email");
						envia = 0;
						enviacontato.txtEmail.focus();
						return false; 	
					}else{
						envia = 1;
					}
					

					if(enviacontato.txtMensagem.value == ""){
						alert("Digite a mensagem");
						envia = 0;
						enviacontato.txtMensagem.focus();
						return false; 	
					}else{
						envia = 1;
					}
					
				
					
					
	
					   parte1 = enviacontato.txtEmail.value.indexOf("@");
	  				   parte2 = enviacontato.txtEmail.value.indexOf(".");
	     			   //parte3 = enviacontato.txtEmail.value.length;
	       			   if (!(parte1 >= 3 && parte2 >= 6)) {
	                        enviacontato.txtEmail.focus();
						alert("Digite o Email Correto");
						    envia = 0;
	                        return false;
	                   }else{
						    envia = 1;
					   }
					
					
					
					
					 if(envia == 1){
						
					     return true;
					 }else{
					 	 
						 return false; 	
					 }
					 
					 
	}		
	
	
	


function CampoEnter(campo) 
{
	campo.style.background = '#FFFFCC';
	campo.style.color = '#000000';
	campo.style.fontWeight = 'normal';
}
function CampoSai(campo)
{
	campo.style.background='#FFFFFF';
	campo.style.color = '#000000';
	campo.style.fontWeight = 'normal';
}

	
