function abreJanelaPrint(url,nome,largura,altura,scroll){
    lTela = window.screen.width;
   aTela = window.screen.height;
   esqu = (lTela - largura) / 2;
   topo = (aTela - altura) / 2;
   window.open(url,nome,"width=" + largura + ",height=" + altura +
",scrollbars=" + scroll + ",top=" + topo + ",left=" + esqu + ",resizable=yes" + ",menubar=yes" + ",status=yes");
}
function abreJanelaEmails(url,nome,largura,altura,scroll){
    lTela = window.screen.width;
   aTela = window.screen.height;
   esqu = (lTela - largura) / 2;
   topo = (aTela - altura) / 2;
   window.open(url,nome,"width=" + largura + ",height=" + altura +
",scrollbars=no" + scroll + ",top=" + topo + ",left=" + esqu + ",resizable=no" + ",menubar=no" + ",status=yes");
}
function abreJanelaMenuBarNo(url,nome,largura,altura,scroll){
    lTela = window.screen.width;
   aTela = window.screen.height;
   esqu = (lTela - largura) / 2;
   topo = (aTela - altura) / 2;
   window.open(url,nome,"width=" + largura + ",height=" + altura +
",scrollbars=" + scroll + ",top=" + topo + ",left=" + esqu + ",resizable=yes" + ",menubar=no" + ",status=yes");
}
function abreJanelaGaleria(url,nome,largura,altura,scroll){
    lTela = window.screen.width;
   aTela = window.screen.height;
   esqu = (lTela - largura) / 2;
   topo = (aTela - altura) / 2;
   window.open(url,nome,"width=" + largura + ",height=" + altura +
",scrollbars=no" + scroll + ",top=" + topo + ",left=" + esqu);
}


/*MENU*/	
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function GerarSWF(arquivo,altura,largura,id){
    document.writeln('    <object id="globalnav-object" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + largura + '" height="' + altura + '" id="' + id + '" name="' + id + '">');
    document.writeln('        <param name="movie" value="' + arquivo + '" />');
    document.writeln('        <param name="FlashVars" value="loc=en_US&htmlApp=false&gatewayURL=gwurl" />');
    document.writeln('        <param name="bgcolor" value="#ffffff" />');
    document.writeln('        <param name="menu" value="false" />');
    document.writeln('        <param name="quality" value="high" />');
    document.writeln('        <param name="salign" value="tl" />');
    document.writeln('        <param name="scale" value="noscale" />');
    document.writeln('        <param name="wmode" value="transparent" />');
    document.writeln('        <embed id="globalnav-embed" src="' + arquivo + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" flashvars="loc=en_US&htmlApp=false&gatewayURL=gwurl" bgcolor="#ffffff" menu="false" quality="high" salign="tl" scale="noscale" id="' + id + '" width="' + largura + '" height="' + altura + '"></embed>');
    document.writeln('    </object>');
}
function sbtHome(){
	if (document.getElementById('arg1').value == '' || document.getElementById('arg2').value == '' || document.getElementById('arg1').value == 'seu nome' || document.getElementById('arg2').value == 'seu email'){
		alert('Por favor, digite seu nome e e-mail');
	}else{
		document.getElementById('formArg').submit();
	}
}
function some(obj){
	var atual = document.getElementById(obj).value;
	if (atual == 'seu nome' || atual == 'seu email'){
		document.getElementById(obj).value = '';	
	}
}
function coloca(obj,valor){
	var atual = document.getElementById(obj).value;
	if (atual == ''){
		document.getElementById(obj).value = valor;	
	}
}	







