/******** gestión de ampliación de fotos **********/
function abrefoto(idfoto, ruta, titulo)
	{
		var pos;
		if (window.pageYOffset) pos = window.pageYOffset
			else if (document.documentElement && document.documentElement.scrollTop) pos = document.documentElement.scrollTop
				else if (document.body) pos = document.body.scrollTop

		pos = eval(pos+20);
		document.getElementById('cabecera_ampliada').innerHTML =titulo;
		document.getElementById('foto_ampliada').innerHTML='<a href="javascript:cierrafoto()"><img src="/'+ ruta +'/fotos/zoom/'+idfoto+'"  alt="pulse para cerrar" /></a>';
		document.getElementById('foto_zoom').style.top=pos+'px';
		document.getElementById('foto_zoom').style.visibility='visible';
		document.getElementById('foto_zoom').style.display='block';
	}

function cierrafoto()
	{
		document.getElementById('foto_zoom').style.visibility='hidden';
		document.getElementById('foto_zoom').style.display='none';
	}

function abreventana(url) {
	var ventana = window.open('http://' + url);
	ventana.focus();
	return false;
}

/********* función para retornar el zip de un fichero *********/	
/**** damezip(fichero): ficherozip *************************/
function damezip (fichero){
	var aux= fichero.split('.');
	aux= aux[0]+'.zip';
	return(aux);
}	
