var nomesf = new Array();
nomesf[0] = "frm_top";
nomesf[1] = "mid";
var nframes = 2;
var endsite = "http://www.bradescopoderpublico.com.br/";

try
{
	if (parent.frames.length > 0)
	{
		if (parent.frames.length != nframes)
		 {
		   //Quantidade de frames diferente do permitido.
		   top.location.href=endsite;
		 }	
		for(x=0;x<parent.frames.length;x++)
		 {
		  if (nomesf[x] != parent.frames[x].name)
		    {
			//Nome dos Frames
			top.location.href=endsite;
			}
		 }
	}
}
catch(e)
{
	  var detect = navigator.userAgent.toLowerCase();
	  if (detect.indexOf('mac') < 1)
	  {
	   //Catch caso carrege de um iframe
	   top.location.href=endsite;
	  }
}

if (window.screen)
{	
	var texto=screen.width+"x"+screen.height;
	var Resolucao=texto.indexOf('640x') 
	
	if(Resolucao < 0){
		if (navigator.appName == "Netscape") {
			document.write("<link href='" + bradesco + "css/bradesco_home_netscape.css' rel='stylesheet'>");
		}else{
		document.write("<link href='" + bradesco + "css/bradesco_home.css' rel='stylesheet'>");
		}
	}else{
		document.write("<link href='" + bradesco + "css/bradesco_home_resolucao.css' rel='stylesheet'>");
	}
document.write("<scr"+"ipt src='" + bradesco + "js/functions_home.js' type='text/javascript'><\/script>");	
}	


var InternetBanking

function IB2000Open(IB2000Form)
{
	window.document.IB2000.action = IB2000Form.action
	window.document.IB2000.AGN.value = IB2000Form.AGN.value
	window.document.IB2000.CTA.value = IB2000Form.CTA.value
	window.document.IB2000.DIGCTA.value = IB2000Form.DIGCTA.value
	window.document.IB2000.TPCONTA.value = IB2000Form.TPCONTA.value

if(IB2000Form.AGN.value != '' && IB2000Form.CTA.value != '' && IB2000Form.DIGCTA.value != '' && IB2000Form.TPCONTA.value != '')
                {
                               InternetBanking = window.open("", "InternetBanking","toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,screenX=0,screenY=0,left=0,top=0,width=765,height=528");
                               window.document.IB2000.submit()
                               IB2000Form.reset()
                }
	return false;
}


function IB2000OpenCadSenha()
{
if(navigator.appName.indexOf("Netscape") != -1)
        IB2K1CADSENHA = window.open(urlHTTPSBradesco + 'scripts/ib2k1.dll/CADSENHA/CONDUSO', "IB2K1CADSENHA","toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,screenX=0,screenY=0,left=0,top=0,width=765,height=528");
else
        IB2K1CADSENHA = window.open(urlHTTPSBradesco + 'scripts/ib2k1.dll/CADSENHA/CONDUSO', "IB2K1CADSENHA","toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,screenX=0,screenY=0,left=0,top=0,width=765,height=528");
return false;
}
function CadAltSenha()
{
if(navigator.appName.indexOf("Netscape") != -1)
        IB2K1CADSENHA = window.open(urlHTTPSBradesco + 'scripts/ib2k1.dll/CADSENHA/CONDUSO', "IB2K1CADSENHA","toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,screenX=0,screenY=0,left=0,top=0,width=765,height=528");
else
        IB2K1CADSENHA = window.open(urlHTTPSBradesco + 'scripts/ib2k1.dll/CADSENHA/CONDUSO', "IB2K1CADSENHA","toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,screenX=0,screenY=0,left=0,top=0,width=765,height=528");
return false;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}