// 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.|couroweb.)?hospitalar[.]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='1000px'; document.getElementById('corpo').style.height=corpo.document.body.scrollHeight+'px';
		}
	catch(err)
		{
		// ignora erros na tentativa de redimensionar a tela
		}

	try
		{
		if(top.corpo.document.referrer != 'http://'+ location.hostname+location.pathname)
			{
			fullbanner.START();
			vitrine.START();
			patrocinio.START();
			}
		}
	catch(err)
		{
		vitrine.START();
		window.open('http://www.hospitalar.com/banner/index.html','fullbanner');
		window.open('http://www.hospitalar.com/vitrine/patrocinio.html','patrocinio');
		}
	}


