function open_pop(endereco, X, Y,nome,left,top,rolagem) {
	parametros = "fullscreen=0,location=0,directories=0,menubar=0,toolbar=0,status=0,resizable=0,scrollbars="+rolagem+", width="+X.toString()+", height="+Y.toString()+",left="+left.toString()+",top="+top.toString()
	nova = window.open(endereco,nome,parametros)
	if (navigator.platform == 'MacPPC')
	{
		nova.resizeTo (X, Y);
	}
	nova.focus();
}

function open_pop2(endereco, X, Y,nome,left,top,rolagem) {
	rolagem = 1;
	parametros = "fullscreen=0,location=0,directories=0,menubar=0,toolbar=0,status=0,resizable=0,scrollbars="+rolagem+", width="+X.toString()+", height="+Y.toString()+",left="+left.toString()+",top="+top.toString()
	nova = window.open(endereco,nome,parametros)
	if (navigator.platform == 'MacPPC')
	{
		nova.resizeTo (X, Y);
	}
	nova.focus();
}

function pan_p(){
	open_pop('ipix/port/index.html',610,309,'ipixp',100,100);
}

function pan_i(){
	open_pop('ipix/eng/index.html',610,309,'ipixp',100,100);
}


function foto(endereco)
{

	var aw = screen.Width;
    var ah = screen.Height;
	if (navigator.appName != "Microsoft Internet Explorer")
	{sobraX = 0;	sobraY = 0;	}
	if ((navigator.platform == 'MacPPC' ) && (navigator.appName == "Microsoft Internet Explorer"))
	{sobraX = 0;	sobraY = 0;}
	nova = window.open('', 'foto', 'fullscreen=0,location=0,directories=0,menubar=0,toolbar=0,status=0,resizable=1,scrollbars=0,width=50,height=50,top=0,left=0')
	nova.document.open('text/html', 'replace');
	nova.document.writeln('<HTML><HEAD><TITLE> HOTEL EMILIANO </TITLE></HEAD>');
	nova.document.writeln('<BODY bgcolor="#FFFFFF"  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="self.resizeTo( ' + aw + ',  ' + ah + ');">'); 
	nova.document.writeln('<table width="100%" height="100%"><tr><td><div align="center">');
	nova.document.writeln('<a href="javascript:close(\'foto\')"><IMG SRC="' + endereco + '" BORDER=0 name="pic" alt="clique para fechar"></a></div></td></tr></table></BODY></HTML>');
	nova.document.close();
	nova.focus();
}


function fullScreen(theURL)
{
	window.open(theURL,'','fullscreen=1,width='+(screen.width-10)+',height='+(screen.height-50)+',top=0,left=0');
}

function troca(url){
 	url = url.value;
	document.location.href=url;
}

function maximizeWin() {
  if (window.screen) {
    var aw = screen.availWidth;
    var ah = screen.availHeight;
    window.moveTo(0, 0);
    window.resizeTo(aw, ah);
  }
}
