if(self.location.href.match(/^(http\:\/\/)(www)(\.)(aaam)(\.)(com)(\.)(br)(.*)$/)){
	top.location = 'http://www.assetbancoreal.com.br' + self.location.href.match(/^(http\:\/\/)(www)(\.)(aaam)(\.)(com)(\.)(br)(.*)$/)[9];
}

if(top.location == self.location){
	callingURL = top.location.href.replace('http://', '');
	callingURL = callingURL.substring(callingURL.indexOf('/'), callingURL.length);
	if(callingURL.indexOf('popup') == -1){
		self.location.replace("/index_internas.htm?sUrl=" + callingURL)
	}
}
