/*
Modo de usar:
javascript:popimg('img/imagem.jpg','');
*/
function popimg () { // cria uma janela para mostrar uma imagem
	var img, attribs, a = popimg.arguments;
	img = a[0];
	attribs = "\'scrollbars="+a[2]+",resizable=yes\'";
	viewer = window.open ('',a[1],attribs);
	doc = viewer.document;
	doc.open();
	doc.write ('<html>\n<head>\n<title>Hotel Mirante do Bosque</title>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\n</head>\n<body bgcolor=\"#FFFFFF\" topmargin=\"0\" marginheight=\"0\" leftmargin=\"0\" marginwidth=\"0\" onLoad=\"window.focus();resdetect()\">\n');
	doc.write ('<a href="JavaScript:self.close()"><img src=\"'+img+'\" name=pop border=0 alt="Fechar"></a>');
	doc.write ('<br><center><FONT FACE=\"Arial, Helvetica, sans-serif\" SIZE=\"2\"> '+a[1]+'</FONT></center></body><SCRIPT LANGUAGE="JavaScript">function resdetect(){if((screen.Width <= (document.images.pop.width)) && (screen.availHeight <= (document.images.pop.height))){window.resizeTo(screen.Width, screen.availHeight)}else{window.resizeTo(document.images.pop.width+10,document.images.pop.height+28)}}</script></html>');
	doc.close();
}