

function flash(trans, lar, alt, nome){
if (trans == ""){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width=' + lar + ' height=' + alt + ' id="topo" align="middle">	<param name="allowScriptAccess" value="sameDomain" />	<param name="allowFullScreen" value="false" />	<param name="movie" value=' + nome + ' /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" />	<embed src=' + nome + ' quality="high" wmode="transparent" bgcolor="#ffffff" width=' + lar + ' height=' + alt + ' name="topo" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
} else {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="' + lar + '" height="' + alt + '" id="topo" align="middle">	<param name="allowScriptAccess" value="sameDomain" />	<param name="allowFullScreen" value="false" />	<param name="movie" value="' + nome + '" /><param name="quality" value="high" /><param name="bgcolor" value="' + trans + '" />	<embed src="' + nome + '" quality="high" bgcolor="' + trans + '" width="' + lar + '" height="' + alt + '" name="topo" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
	}
}



function abre(bannerWidth, autoCloseTime) {
if(navigator.appName != 'Microsoft Internet Explorer'){	
	if (document.all) {
 	document.all['fbanner'].style.display = "block";
 	}
 	if	(document.layers) {
 	document['fbanner'].display = "block";
 	}
 	if (document.getElementById) {
 	document.getElementById('fbanner').style.display = "block";
	}
  	window.onresize = function() {
  	abre(bannerWidth, autoCloseTime);
 }
 tempo = setTimeout("fecha('fbanner')", autoCloseTime); } }

function fecha() {
	if(navigator.appName != 'Microsoft Internet Explorer'){	
		clearTimeout(tempo);
 
		 if (document.layers) {
		  document['fbanner'].visibility = "hidden";
		 }
		 if (document.all) {
		  document.all['fbanner'].style.visibility = "hidden";
		 }
		 if (document.getElementById) {
		  document.getElementById('fbanner').style.visibility = "hidden";
		 }
	}
}



function omelhordafesta(janela)
        {
window.open(janela,"omelhordafesta","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=335,height=345,left=50,top=3")
        }




function reportar(vURL)
{
    vWindow = window.open(vURL,"","toolbar=no,location=no,status=no,menubar=no,width=400,height=180,top=120,left=100,resizable=no,scrollbars=no");
}



function openWindow(url)
{
  params = "width=480,height=572,toolbar=no,location=no,scrollbars=yes,resizeable=no,top=0,left=120";
  pictureWindow = window.open(url, 'pictureWindow', params);
  pictureWindow.focus();
}




function valida_newsletter(Form) {


    if (Form.email.value.length == 0) {
        alert("O e-mail é um campo obrigatório !");
        Form.email.focus();
        return false;
    }

    if (Form.email.value.indexOf('@', 0) == -1 || Form.email.value.indexOf('.', 0) == -1) {
        alert("Por favor, preencha corretamente o campo e-mail."); 
        Form.email.focus();
        return false;
    }

    return true;

}
