function get_flash(arquivo, largura, altura, bgcolor, id, qualidade, alinhamento,transparente,pgphp) {
	obj = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+largura+'" height="'+altura+'" id="'+id+'" align="'+alinhamento+'">';
	obj+= '<param name="allowScriptAccess" value="sameDomain" />';
	obj+= '<param name="movie" value="'+arquivo+'" />';
	obj+= '<param name="quality" value="'+qualidade+'" />';
	if(transparente == true) {
		obj+= '<param name="wmode" value="transparent" />';
	}
	obj+= '<param name="bgcolor" value="'+bgcolor+'" />';
	obj+= '<param name="FlashVars" value="pg='+pgphp+'" />';
	obj+= '<embed src="'+arquivo+'" '+((transparente==true)?'wmode="transparent"':'')+'" quality="'+qualidade+'" bgcolor="'+bgcolor+'" FlashVars="pg='+pgphp+'" width="'+largura+'" height="'+altura+'" name="'+id+'" align="'+alinhamento+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	obj+= '</object>';
	document.write(obj);
}

function url(url){
	window.open(url);
}

function urlInt(url){
	document.location.href=(url);
}

(function($) {
   $(function() {
      $('#telefone').mask('(99) 9999-9999');
   });
})(jQuery);

$(document).ready(function(){
$(".target_blank").click(function(){
window.open(this.href);
return false;
})});

function validaFormContato(){
	if(window.document.getElementById('nome').value == ""){
		alert("Preencha o campo Nome!");
		return false;
	}
	if(window.document.getElementById('email').value == ""){
		alert("Preencha o campo E-mail!");
		return false;
	}
	if(window.document.getElementById('telefone').value == ""){
		alert("Preencha o campo Telefone!");
		return false;
	}
	if(window.document.getElementById('assunto').value == ""){
		alert("Preencha o campo Assunto!");
		return false;
	}
	if(window.document.getElementById('mensagem').value == ""){
		alert("Preencha o campo Mensagem!");
		return false;
	}
	window.document.getElementById('formContato').submit();
}

function validaFormNews(){
	if(window.document.getElementById('newsNome').value == "seu nome" || window.document.getElementById('newsNome').value == ""){
		alert("Informe seu nome!");
		return false;
	}
	if(window.document.getElementById('newsEmail').value == "seu e-mail" || window.document.getElementById('newsEmail').value == ""){
		alert("Informe seu E-mail!");
		return false;
	}
}

function limpaFormContato(){
	window.document.getElementById('formContato').reset();
}


$(document).ready(function(){ 
	$(document).pngFix(); 
}); 
