function exibir(imagens) {
	$(document).ready(function () {
		$("div#fechar-foto").click(function () {
				$("#galeria").fadeOut("slow");
				$("#fechar-foto").fadeOut("slow");
				$("#anterior").fadeOut("slow");
				$("#proximo").fadeOut("slow");
		});
	});
	var fechar = document.getElementById("fechar-foto");
	var imagem = document.getElementById("galeria");
	var anterior = document.getElementById("anterior");
	var proximo = document.getElementById("proximo");
	var i1 = document.getElementById("i1");
	var i2 = document.getElementById("i2");
	var i3 = document.getElementById("i3");
	var i4 = document.getElementById("i4");
	var i5 = document.getElementById("i5");
	var i6 = document.getElementById("i6");
	var i7 = document.getElementById("i7");
	var i8 = document.getElementById("i8");
	var i9 = document.getElementById("i9");
	var i10 = document.getElementById("i10");
	switch(imagens) {
		case "00":
		proximo.style.display = "none";
		anterior.style.display = "none";
		fechar.style.display = "none";
		break;
		
		case "01":
		fechar.style.display = "block";
		imagem.src = "images/p1g.jpg";
		imagem.style.display = "block";
		anterior.href = "#";
		anterior.style.display = "none";
		proximo.style.display = "block";
		proximo.href = "javascript: exibir('02');";
		i1.style.background = "white";
		i2.style.background = "none";		
		i3.style.background = "none";
		i4.style.background = "none";
		i5.style.background = "none";
		i6.style.background = "none";
		i7.style.background = "none";
		i8.style.background = "none";
		i9.style.background = "none";
		i10.style.background = "none";
		break;

		case "02":
		fechar.style.display = "block";
		imagem.src = "images/p2g.jpg";
		imagem.style.display = "block";
		anterior.href = "javascript: exibir('01');";
		anterior.style.display = "block";
		proximo.style.display = "block";
		proximo.href = "javascript: exibir('03');";
		i1.style.background = "none";
		i2.style.background = "white";		
		i3.style.background = "none";
		i4.style.background = "none";
		i5.style.background = "none";
		i6.style.background = "none";
		i7.style.background = "none";
		i8.style.background = "none";
		i9.style.background = "none";
		i10.style.background = "none";
		break;

		case "03":
		fechar.style.display = "block";
		imagem.src = "images/p3g.jpg";
		imagem.style.display = "block";
		anterior.href = "javascript: exibir('02');";
		anterior.style.display = "block";
		proximo.style.display = "block";
		proximo.href = "javascript: exibir('04');";
		i1.style.background = "none";
		i2.style.background = "none";		
		i3.style.background = "white";
		i4.style.background = "none";
		i5.style.background = "none";
		i6.style.background = "none";
		i7.style.background = "none";
		i8.style.background = "none";
		i9.style.background = "none";
		i10.style.background = "none";
		break;
		
		case "04":
		fechar.style.display = "block";
		imagem.src = "images/p4g.jpg";
		imagem.style.display = "block";
		anterior.href = "javascript: exibir('03');";
		anterior.style.display = "block";
		proximo.style.display = "block";
		proximo.href = "javascript: exibir('05');";
		i1.style.background = "none";
		i2.style.background = "none";		
		i3.style.background = "none";
		i4.style.background = "white";
		i5.style.background = "none";
		i6.style.background = "none";
		i7.style.background = "none";
		i8.style.background = "none";
		i9.style.background = "none";
		i10.style.background = "none";
		break;
		
		case "05":
		fechar.style.display = "block";
		imagem.src = "images/p5g.jpg";
		imagem.style.display = "block";
		anterior.href = "javascript: exibir('04');";
		anterior.style.display = "block";
		proximo.style.display = "block";
		proximo.href = "javascript: exibir('06');";
		i1.style.background = "none";
		i2.style.background = "none";		
		i3.style.background = "none";
		i4.style.background = "none";
		i5.style.background = "white";
		i6.style.background = "none";
		i7.style.background = "none";
		i8.style.background = "none";
		i9.style.background = "none";
		i10.style.background = "none";
		break;
		
		case "06":
		fechar.style.display = "block";
		imagem.src = "images/p6g.jpg";
		imagem.style.display = "block";
		anterior.href = "javascript: exibir('05');";
		anterior.style.display = "block";
		proximo.style.display = "block";
		proximo.href = "javascript: exibir('07');";
		i1.style.background = "none";
		i2.style.background = "none";		
		i3.style.background = "none";
		i4.style.background = "none";
		i5.style.background = "none";
		i6.style.background = "white";
		i7.style.background = "none";
		i8.style.background = "none";
		i9.style.background = "none";
		i10.style.background = "none";
		break;
		
		case "07":
		fechar.style.display = "block";
		imagem.src = "images/p_7g.jpg";
		imagem.style.display = "block";
		anterior.href = "javascript: exibir('06');";
		anterior.style.display = "block";
		proximo.style.display = "block";
		proximo.href = "javascript: exibir('08');";
		i1.style.background = "none";
		i2.style.background = "none";		
		i3.style.background = "none";
		i4.style.background = "none";
		i5.style.background = "none";
		i6.style.background = "none";
		i7.style.background = "white";
		i8.style.background = "none";
		i9.style.background = "none";
		i10.style.background = "none";
		break;
		
		case "08":
		fechar.style.display = "block";
		imagem.src = "images/p_8g.jpg";
		imagem.style.display = "block";
		anterior.href = "javascript: exibir('07');";
		anterior.style.display = "block";
		proximo.style.display = "block";
		proximo.href = "javascript: exibir('09');";
		i1.style.background = "none";
		i2.style.background = "none";		
		i3.style.background = "none";
		i4.style.background = "none";
		i5.style.background = "none";
		i6.style.background = "none";
		i7.style.background = "none";
		i8.style.background = "white";
		i9.style.background = "none";
		i10.style.background = "none";
		break;
		
		case "09":
		fechar.style.display = "block";
		imagem.src = "images/p9g.jpg";
		imagem.style.display = "block";
		anterior.href = "javascript: exibir('08');";
		anterior.style.display = "block";
		proximo.style.display = "block";
		proximo.href = "javascript: exibir('10');";
		i1.style.background = "none";
		i2.style.background = "none";		
		i3.style.background = "none";
		i4.style.background = "none";
		i5.style.background = "none";
		i6.style.background = "none";
		i7.style.background = "none";
		i8.style.background = "none";
		i9.style.background = "white";
		i10.style.background = "none";
		break;
		
		case "10":
		fechar.style.display = "block";
		imagem.src = "images/p10g.jpg";
		imagem.style.display = "block";
		anterior.href = "javascript: exibir('09');";
		proximo.style.display = "none";
		proximo.href = "#";
		i1.style.background = "none";
		i2.style.background = "none";		
		i3.style.background = "none";
		i4.style.background = "none";
		i5.style.background = "none";
		i6.style.background = "none";
		i7.style.background = "none";
		i8.style.background = "none";
		i9.style.background = "none";
		i10.style.background = "white";
		break;
	}
}