// JavaScript Document

function objeto(nome,largura,altura){



document.write('<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="'+nome+'" align="middle">');



document.write('<param name="allowScriptAccess" value="sameDomain" />');



document.write('<param name="movie" value="'+nome+'" />');



document.write('<param name="quality" value="high" />');

            

document.write('<param name="menu" value="false" />');



document.write('<param name="scale" value="bg_site.jpg" />');



document.write('<param name="background" value="noscale" />');



document.write('<param name="wmode" value="transparent" />');



document.write('<embed src="'+nome+'" quality="high" menu="false" wmode="transparent" '+

' width="'+largura+'" height="'+altura+'" name="'+nome+'" align="middle"'+

' allowScriptAccess="sameDomain" type="application/x-shockwave-flash"'+

' pluginspage="http://www.macromedia.com/go/getflashplayer" />');



document.write('</object>');



}

/*DESABILITA COPIA - 290410 POR HEBER SOARES (Usado dentro do includes/google_analytics.php)*/
function disableSelection(target){
if (typeof target.onselectstart!="undefined") //IE route
target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
target.style.MozUserSelect="none"
else //All other route (ie: Opera)
target.onmousedown=function(){return false}
target.style.cursor = "default"}
/*FIM DESABILITA COPIA*/

/*BLOQUEIA BOTAO DIREITO - 290410 POR HEBER SOARES*/
function right(x) {
     if (navigator.appName == 'Netscape' && (x.which == 3 || x.which == 2))
        {
          return false;
        }
else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) 
        {
          return false;
        }
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
/*FIM BLOQUEIA BOTAO DIREITO*/



function mostraEsconde (qual) {
if (document.getElementById(qual).style.display == "none") {
  document.getElementById(qual).style.display= "";
}
else {
  document.getElementById(qual).style.display = "none";
}
}

function Esconde_popup(){

document.getElementById('apDiv3').style.visibility="hidden";

} 



function fechadiv_popup(){        
i=1;
i++;      
 if(i==10)        {                
 document.getElementById('apDiv3').style.display='none';       

 }    

 setTimeout('fechadiv_popup()',2500);}
