// script que define qual estilo a ser utilizado
ie =  document.all ? true : false;
document.write("<link rel=\"STYLESHEET\" type=\"text/css\" href=\"/portal/inc/" + (ie ? "bb_ie.css" : "bb_ns.css") + "\">");

// script que condiciona o Browser do menu de SERVIÇOS PARA VOCÊ
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 anti-frame
if(top.frames.length!=0){ top.location=self.document.location; }

// script dhtml do menu dropdown de serviços
//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";}

// Pop-ups Dicas Dorsey UNIBB
function openPopup(theURL,winName,features) {
	window.open(theURL,winName,features);
}

// Pop-ups de investimentos
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=0'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
