function amplia(ruta){
document.getElementById('fotoAmp').style.display="block";
	document.getElementById("fondos").style.display="block";
	document.getElementById("fondos").style.opacity=.5;
	//document.getElementById("wrapper").style.filters.alpha.opacity=950
	document.getElementById("fondos").style.filter = "alpha (opacity=" +50 + ")";
document.getElementById('fotoAmp2').src="img/visorAjax.gif";
document.getElementById('ocult').value=ruta;
window.setTimeout('amplia2();',2000);

//setTimeOut("amplia2('+ruta+');", 500)

}
function amplia2(){

ruta=document.getElementById('ocult').value;
if(ruta!=''){

document.getElementById('fotoAmp2').src=ruta;
}


}
function fueraAmp(){
	document.getElementById('fotoAmp').style.display="none";

		document.getElementById("fondos").style.opacity=1;
	//document.getElementById("wrapper").style.filters.alpha.opacity=950
	document.getElementById("fondos").style.filter = "alpha (opacity=" +100 + ")";
	
}