var OpcaoAtual = 0; var nav = ""; if( navigator.userAgent.indexOf( "MSIE" ) > -1 ){ nav = "ie" } if( navigator.userAgent.indexOf( "Firefox" ) > -1 ){ nav = "ff" } if( navigator.userAgent.indexOf( "Netscape" ) > -1 ){ nav = "ns" } var popinformativo = false; function c24hredim(){ if( nav == "ie" ){ if( typeof( document.all.Metrop )=="object" ){ document.all.Metrop.height = Metrop.document.body.scrollHeight; Metrop.resizeTo( 595,Metrop.document.body.scrollHeight ); } } if( nav == "ns" ){ document.getElementById( "Metrop" ).height = document.getElementById( "Metrop" ).contentDocument.body.offsetHeight + 16; } if( nav == "ff" ){ document.getElementById( "Metrop" ).height = document.getElementById( "Metrop" ).contentDocument.body.offsetHeight + 16; } } function c24hredimGalInt(){ if( nav == "ie" ){ resizeTo(document.body.scrollWidth,document.body.scrollHeight); // alert( parent.document.frames.Galeria.height ); //alert( Galeria.posHeight ); // alert( Galeria.document.body.scrollHeight ); // Galeria.height = Galeria.document.body.scrollHeight + 200; // parent.Metrop.height = parent.Metrop.document.body.scrollHeight + Galeria.document.body.scrollHeight + 200; } if( nav == "ns" ){ document.getElementById( "Metrop" ).height = document.getElementById( "Metrop" ).contentDocument.body.offsetHeight + document.getElementById( "Galeria" ).contentDocument.body.offsetHeight + 16; } if( nav == "ff" ){ document.getElementById( "Metrop" ).height = document.getElementById( "Metrop" ).contentDocument.body.offsetHeight + document.getElementById( "Galeria" ).contentDocument.body.offsetHeight + 16; } } function abre(url) { janela = window.open(url, '', 'width=620,height=450,resizable=0,scrollbars=no,menubar=no,status=0' ); janela.moveTo( ( screen.width - 620 ) / 2, ( screen.height - 450 ) / 2 ) } function pop(url) { janela = window.open(url, '', 'width=501,height=450,resizable=0,scrollbars=no,menubar=no,status=0' ); janela.moveTo( ( screen.width - 501 ) / 2, ( screen.height - 450 ) / 2 ) } function Realca( op ){ OpcaoAtual =op; //alert( document.all( "Op" ).length + " - " + op ); for( z = 0; z < document.all( "Op" ).length;z++){ document.all( "Op" )[z].style.backgroundColor = ""; } document.all( "Op" )[op].style.backgroundColor = "#FFFFFF"; } function Exibe( o, Mnu ){ if( document.all){ document.all( "SubMenu" + Mnu ).style.display = ""; } else{ document.getElementById( "SubMenu" + Mnu ).style.display = ""; } } function Oculta( o, Mnu ){ if( document.all ){ document.all( "SubMenu" + Mnu ).style.display = "none"; } else{ document.getElementById( "SubMenu" + Mnu ).style.display = "none"; } } function bg( o, f ){ if( f == 0 ){ o.style.backgroundColor = ""; } else { o.style.backgroundColor = ""; } } function fecharPop() { document.all('DivFlashInformativo').style.display='none'; document.all('DivFlashInformativoBKG').style.display='none'; }