var arrAdjuntosGaleria = new Array();
function rotar(accion) {
	bool = false;
	switch (accion) {
		case "back":
			
			if ((actualFoto-1) >= 0) {
				bool = true;
				actualFoto = actualFoto - 1;
			} 
		break;
		case "go":
			if ((actualFoto +1)< arrAdjuntosGaleria.length) {
				bool = true;
				actualFoto = actualFoto + 1;
			}
		break;
	}
	if(bool){
		document.getElementById("actual").innerHTML = eval((actualFoto+1));
		var img, epi, i;
		for (i = 0; i < arrAdjuntosGaleria.length; ++i) {
			img = document.getElementById("img-"+arrAdjuntosGaleria[i]);
			img.style.display = ((i == actualFoto)? "block": "none");
			epi = document.getElementById("epi-"+arrAdjuntosGaleria[i]);
			epi.style.display = ((i == actualFoto)? "block": "none");
		}
	}
}

function showForm(){
	if(document.getElementById("formularioDiv").style.display == "block")
		document.getElementById("formularioDiv").style.display = "none";
	else
		document.getElementById("formularioDiv").style.display = "block";
}
