// Verifica se o portal está tentando ser carregado dentro de um iframe externo. Se estiver, não permite (exemplo, webmail)
PAG = self.location.href;
if(PAG.search(/^http[:][/][/](www.|brt.|fine.)?saopaulopretaporter[.]com/) != -1)
	{
	try
		{
		if(parent.location.href != self.location.href)
			{
			PAG = PAG.substring(PAG.indexOf(location.hostname));
			top.location.href = PAG;
			}
		}
	catch(err)
		{
		PAG = PAG.substring(PAG.indexOf(location.hostname));
		window.open("http://"+PAG, "_top");
		}
	}

function handleError()
	{
	return true;
	}

function rotate()
	{
	try
		{
		document.getElementById('corpo').style.height='400px';
		document.getElementById('corpo').style.height=corpo.document.body.scrollHeight;
		}
	catch(err)
		{
		// ignora erros na tentativa de redimensionar a tela
		}
	try
		{
		if(top.corpo.document.referrer != 'http://'+ location.hostname+location.pathname)
			{
			//banner.START();
			//vitrine.START();
			//patrocinio.START();
			}
		}
	catch(err)
		{
		try
			{
			//vitrine.START();
			}
		catch(err)
			{
			// ignora erros na tentativa de inicializar a vitrine
			}
		}
	}



