
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}




// script que condiciona o Browser do menu de SERVIÇOS PARA VOCÊ - copiado do BB
if (document.all || document.layers) {
	IE4 = (document.all);
	NS4 = (document.layers);
	NS6 = false;
} else if (document.getElementById) {
	IE4 = false;
	NS4 = false;
	NS6 = (document.getElementById);
}
if ( navigator.userAgent.indexOf("Mozilla") != -1 ) {
	mozilla = true;
}

    ver4 = (NS4 || IE4);
	 IE5 = (IE4 && navigator.appVersion.indexOf("5.")!=-1);
   isMac = (navigator.appVersion.indexOf("Mac") != -1);
  isMenu = (NS4 || (IE4 && !isMac) || (IE5 && isMac));

function popUp(){return};
function popDown(){return};
if (!ver4) event=null;

// fim do script


// script dhtml do menu dropdown de serviços - copiado do BB
//var IE4 = document.all; NS4 = document.layers; NS6 = document.getElementById;
function getStyle(id)
{
	return NS4 ? document[id] : NS6 ? document.getElementById(id).style : document.all[id].style;
}

function HideLayer(id)
{
	getStyle(id).visibility = NS4 ? "hide" : "hidden"; 
	getStyle(id).display = "none";
}

function ShowLayer(id)
{
	getStyle(id).visibility = NS4 ? "show" : "visible"; 
	getStyle(id).display = "block";
}


function changecolor(param)
{	
	param.background = '../img/bgSubOver.gif'
}


function popAplicativo(flag){
  window.open("/PremiosDistribuidos/default.asp?flag=" + flag ,"Aplicativo","left=30, top=30, width=760px, height=530px, resizable=no,scrollbars=no, toolbar=no, statusbar=no");
}


