function showPict(larg, haut, pathPict)
{
chemin = pathPict;
var t = ""; 
var theWindow;
haut+=20;
theWindow = window.open("","_blank","bar=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width="+larg+",height="+haut+",screenX=0,left=0,screenY=0,top=0");
t += "<HTML>\n";
t += "<HEAD>\n";
t += "<TITLE>Quilombo Turismo - Foto ampliada</TITLE>\n";
t += "<script language=\"javascript\">\n";
t += "<!--\n";
t += "	function tamanho(){\n";
t += "		if (top.screen) {\n";
t += "			obj=document.foto;\n";
t += "			aw=obj.width;\n";
t += "			ah=obj.height;\n";
t += "			top.resizeTo(aw + 10, ah + 10);\n";
t += "		}\n";
t += "		document.body.background = '';\n";
t += "	}\n";
t += "//-->\n";
t += "</script>\n";
t += "</HEAD>\n";
t += " <BODY background=\"./images/carregando.gif\" leftmargin=0 topmargin=0 BGCOLOR=\"black\">\n";
t += "  <TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\" WIDTH=\"100%\" HEIGHT=\"100%\"BGCOLOR=\"white\">\n";
t += "   <TR>\n";
t += "    <TD ALIGN=\"CENTER\" VALIGN=\"MIDDLE\">";
t += "      <TABLE BORDER=\"0\" CELLPADDING=\"5\" CELLSPACING=\"0\" BGCOLOR=\"white\">\n";
t += "        <TR>\n";
t += "          <TD>\n";
t += "          <P ALIGN=\"center\"><A HREF=\"javascript:self.close()\" onmouseover=\"window.status='Clique para Fechar\'; return true\">\n";
t += "          <IMG NAME=\"foto\" onload=\"javascript:tamanho();\" SRC=\"" + chemin + "\" BORDER=0 TITLE=\"Clique na foto para fechar esta janela.\"></A></TD>\n";
t += "        </TR>\n";
t += "      </TABLE>\n";
t += "    </TD>\n";
t += "   </TR>\n";
t += "  </TABLE>\n";
t += " </BODY>\n";
t += "</HTML>\n";
theWindow.document.clear();
theWindow.document.write(t);
}

var msg;
function wind(filename,largura,altura) 
{ 
  if(!msg || msg.closed){ 
   msg = window.open(filename,"janela","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=yes,copyhistory=yes,width=" + largura + ",height=" + altura ); 
        } 
        else 
        { 
     msg.focus(); 
        } 
        } 
