<!--
/************************************************************
// Nome do script: Turbano pop-up
// Autor: Thomas Gonzalez Miranda ( thomasgm@php.net )
// Ambiente: Multi-plataforma
// Data da criação: 27/03/2004
// Data da última modificação: 27/03/2004
// Descrição: A criação deste script visa abrir uma nova janela (ao clique do usuário) 
// que pode ser visualziada por internautas usando qualquer tipo de navegador que tenha 
// suporte ou não ao JavaScript. Sem javascript, a janela é aberta no lado superior esquerdo 
// da tela, com javascript ela é sempre aberta no centro, e se auto-redimensiona para o tamanho 
// do conteúdo com o qual está dentro, seja ele imagem ou texto.
************************************************************/

function popUp(strURL,strTipo,intAltura,intWidth,sNome) {
var strOpcoes="";
var Swidth = screen.width;
var Sheight = screen.height;
var Wleft = (Swidth / 2) - (intWidth / 2) - 8;
var Wtop = (Sheight / 2) - (intAltura / 2) - 20;
//var Wtop = 0;
if (strTipo=="console") strOpcoes="resizable,height="+intAltura+",width="+intWidth+",left="+Wleft+",top="+Wtop;
if (strTipo=="consolev2") strOpcoes="resizable,scrollbars,height="+intAltura+",width="+intWidth+",left="+Wleft+",top="+Wtop;
if (strTipo=="officesolution") strOpcoes="resizable,scrollbars,height="+intAltura+",width="+intWidth+",left="+Wleft+",top="+Wtop;
if (strTipo=="office_solution") strOpcoes="resizable,scrollbars,height="+intAltura+",width="+intWidth+",left="+Wleft+",top="+Wtop;
if (strTipo=="xl") strOpcoes="resizable=0,scrollbars=0,height="+intAltura+",width="+intWidth+",left="+Wleft+",top="+Wtop;
if (strTipo=="fixa") strOpcoes="status,height="+intAltura+",width="+intWidth+",left="+Wleft+",top="+Wtop;
if (strTipo=="elastica") strOpcoes="toolbar,menubar,scrollbars,resizable,location,height="+intAltura+",width="+intWidth+",left="+Wleft+",top="+Wtop;
window.open(strURL, sNome, strOpcoes);

}



function redimensionarJanela(img) {
var ie4 = navigator.appVersion.indexOf("MSIE 4");
	if (ie4 == -1 && document.body) {
		var b = document.body;
		var d = document.getElementById("popupd");
		window.resizeBy(img.offsetWidth - b.offsetWidth, d.offsetHeight - b.offsetHeight);
		window.moveTo((screen.availWidth - b.offsetWidth) / 2, (screen.availHeight - b.offsetHeight) / 2);
	}
}
// -->
