function imagen(imagen,vertical) { 
	if (vertical == "si") {
		ancho = 350;
		alto = 475;
	}
	else {
		ancho = 500;
		alto = 350;
	}
	var codHTML = ""; alto_ventana = Number(alto) + 30; 
	
	ancho_ventana = Number(ancho) + 4; 

	var ventana; ventana = window.open("", "Foto", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+ancho_ventana+",height="+alto_ventana);

	codHTML += '<html><head><title>';
	codHTML += '</title></head><body bgcolor="000000" text=FFFFFF leftMargin=0 topMargin=0 marginwidth="0" marginheight="0">';

	codHTML += '<table border="0" cellspacing="0" cellpadding="0"><tr><td>';
	codHTML += '<IMG SRC="/fotos/' + imagen + '_.jpg" WIDTH=' + ancho + ' HEIGHT=' + alto + ' BORDER="1" VSPACE="1" HSPACE="1"></td></tr></table>';

	codHTML += '<table width="' + ancho_ventana + '" border="0" cellspacing="0" cellpadding="5"><tr><td>';
	codHTML += '<font size="1" face="Verdana, sans-serif">';
	codHTML += '</font></td></tr>';

	codHTML += '<tr><td align=right><font size=1 face="Verdana, sans-serif">';
	codHTML += '© 2003-2006 - Casas Rurales "Cañón del Río Lobos"</font></td></tr></table></body></html>';

	if (document.all || document.layers || document.getElementByld){
		w=screen.availWidth; h=screen.availHeight;}
	else {w=800; H=600;}
	ventana.moveTo(parseInt((w-ancho)/2),parseInt((h+40-alto)/2)-40);

	ventana.document.open(); ventana.document.write(codHTML); ventana.document.close(); 
	ventana.focus();
	}

function CargarFoto(img, ancho, alto){
  derecha=(screen.width-ancho)/2;
  arriba=(screen.height-alto)/2;
  string="toolbar=1,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width="+ancho+",height="+alto+",left="+derecha+",top="+arriba+"";
  fin=window.open(img,"",string);
}
