<!--
// mention to Alex Dantart for scripting this crap

var foto
function abre (fichero,scrollers)
{
scrollc=(scrollers!=null)?scrollers : "yes"
if (foto!=null) foto.close()
foto=window.open('','foto','toolbar=no,directories=no,status=no,menubar=no,scrollbars='+scrollc+',height=300,width=300,resizable=yes');
foto.document.write ("<html><head><title>Lebrero-Comoplesa</title></head><BODY><table width=100% border=0 cellspacing=0 cellpadding=0><tr><td>");

var extension=(fichero.indexOf(".jpg")!=-1)? "" : ".jpg";

foto.document.write ("<img name='f' src='" +fichero+extension+"'></td></tr></table></body></html>");
do { } while (!foto.document.images.f.complete)
reescala()

}

function reescala() {
    if (document.layers){
		fotowidth=foto.document.images[0].width+20
		fotoheight=foto.document.images[0].height+20
	}  else if (document.all) {
		fotowidth=foto.document.f.width+40
		fotoheight=foto.document.f.height+60
	}
	if (fotowidth>screen.availWidth){fotowidth=screen.availWidth;foto.moveTo(0,null)}
	if (fotoheight>screen.availHeight){fotoheight=screen.availHeight;foto.moveTo(null,0)}
	foto.resizeTo(fotowidth,fotoheight)
	foto.moveTo((screen.width-fotowidth)/2,(screen.height-fotoheight)/2);
}

//-->
