function foto1(caminho){

	Wwidth  = 500;
	Wheight = 400;

	tamW = screen.width;
	tamH = screen.height;

	posW = (tamW/2) - (Wwidth/2);
	posH = (tamH/2) - (Wheight/2);	

	params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",scrollbars=0,status=0";
	
	window.open(caminho,'foto',params);
}

function foto2(caminho){
	Wwidth  = 375;
	Wheight = 525;

	tamW = screen.width;
	tamH = screen.height;

	posW = (tamW/2) - (Wwidth/2);
	posH = (tamH/2) - (Wheight/2);	

	params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",scrollbars=0,status=0";
	
	window.open(caminho,'foto',params);
}

function janela(){
	Wwidth  = 350;
	Wheight = 350;

	tamW = screen.width;
	tamH = screen.height;

	posW = (tamW/2) - (Wwidth/2);
	posH = (tamH/2) - (Wheight/2);	

	params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",scrollbars=0,status=0";
	
	window.open(mapa,'mapa',params);
}

function abre_mapa(){

	Wwidth  = 700;
	Wheight = 419;

	tamW = screen.width;
	tamH = screen.height;

	posW = (tamW/2) - (Wwidth/2);
	posH = (tamH/2) - (Wheight/2);	

	params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",scrollbars=0,status=0";
	
	window.open('mapa/mapa.html','foto',params);
}

function popup1(caminho){

	Wwidth  = 520;
	Wheight = 500;

	tamW = screen.width;
	tamH = screen.height;

	posW = (tamW/2) - (Wwidth/2);
	posH = (tamH/2) - (Wheight/2);	

	params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",scrollbars=1,status=0,toolbar=1";
	
	window.open(caminho,'popup1',params);
}
function abre_mural(caminho){
	if(screen.width == "800"){
		window.open(caminho,'mural_recados','width=792,height=570,top=0,left=0,status=0,scrollbars=0');
		window.close();
	}
	else{

		Wwidth  = 800;
		Wheight = 600;

		tamW = screen.width;
		tamH = screen.height;

		posW = (tamW/2) - (Wwidth/2);
		posH = (tamH/2) - (Wheight/2);	

		params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",status=0";
	
		window.open(caminho,'mural_recados',params);
	}
}

function galeria(caminho){
	Wwidth  = 780;
	Wheight = 550;

	tamW = screen.width;
	tamH = screen.height;

	posW = (tamW/2) - (Wwidth/2);
	posH = (tamH/2) - (Wheight/2);

	params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",scrollbars=0,status=0";

	window.open(caminho,'galeria',params);
}
function abrePoema(caminho){

	Wwidth  = 420;
	Wheight = 350;

	tamW = screen.width;
	tamH = screen.height;

	posW = (tamW/2) - (Wwidth/2);
	posH = (tamH/2) - (Wheight/2);	

	params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",scrollbars=0,status=0";
	
	window.open(caminho,'foto',params);
}

function abreCadastro(){

	Wwidth  = 600;
	Wheight = 375;

	tamW = screen.width;
	tamH = screen.height;

	posW = (tamW/2) - (Wwidth/2);
	posH = (tamH/2) - (Wheight/2);	

	params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",scrollbars=0,status=0";
	
	window.open('cadastro.php','cadastroSite',params);
}

function abreReserva(){

	Wwidth  = 600;
	Wheight = 375;

	tamW = screen.width;
	tamH = screen.height;

	posW = (tamW/2) - (Wwidth/2);
	posH = (tamH/2) - (Wheight/2);

	params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",scrollbars=0,status=0";

	window.open('sistema/index_cliente.php?opcao=reservaSite','reservaSite',params);
}

function abreRegulamento(){

	Wwidth  = 600;
	Wheight = 400;

	tamW = screen.width;
	tamH = screen.height;

	posW = (tamW/2) - (Wwidth/2);
	posH = (tamH/2) - (Wheight/2);	

	params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",scrollbars=0,status=0";
	
	window.open('promocao/regulamento.php','regulamento',params);
}

function abreProgramacao(){

	Wwidth  = 800;
	Wheight = 445;

	tamW = screen.width;
	tamH = screen.height;

	posW = (tamW/2) - (Wwidth/2);
	posH = (tamH/2) - (Wheight/2);

	params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",scrollbars=0,status=0";

	window.open('flash/eventos/2008/abril/programacao_purina.html','programacao',params);
}

function recreacao(){

	Wwidth  = 680;
	Wheight = 425;

	tamW = screen.width;
	tamH = screen.height;

	posW = (tamW/2) - (Wwidth/2);
	posH = (tamH/2) - (Wheight/2);

	params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",scrollbars=0,status=0,toolbar=0";

	window.open('recreacao.php','recreacao',params);
}

function abreFaleConosco(){
	Wwidth  = 345;
	Wheight = 340;

	tamW = screen.width;
	tamH = screen.height;

	posW = (tamW/2) - (Wwidth/2);
	posH = (tamH/2) - (Wheight/2);

	params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",scrollbars=0,status=0,toolbar=0";

	window.open('contato.php','fale_conosco',params);
}
