function popup(url,w,h,s){var oW=window.open(url,'popup','width='+w+',height='+h+',directories=0,location=0,menubar=0,resizable=1,scrollbars='+s+',status=0,toolbar=0,marginleft=0,margintop=0,left=0,top=0');}

function abrirdopopup(url){opener.location.href=url;
window.close();
}

function abasHome(id){
	for(i=1;i<=3;i++){
		document.getElementById("box_"+i).style.display = "none";
	}
	document.getElementById("box_"+id).style.display = "block";
}

var nomesf = new Array();
nomesf[0] = "barra";
nomesf[1] = "conteudo";
var nframes = 2;
var endsite = "http://www.bradescorural.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;
	  }
}