function ar (num_mapa){

winName = "imagen";

alto = alto_map[num_mapa]
ancho = ancho_map[num_mapa]
//cabecera ="MAPA"
titulo = titulo_map [num_mapa]
//leyenda = leyenda_map [num_mapa]
ref_mapa = 1000 + num_mapa


locfoto = "../recortes_prensa/r_" + ref_mapa +".jpg"

izq = (800 - ancho)/2;
sup = (600 - alto)/2;

if (alto>770){
	features = "status=0,height=" + 780 + ",width=" + (ancho+55) + ",left=" + izq + ",top=" + sup + ",scrollbars=yes,location=0,menubar=0,resizable=0"

}else{

	features = "status=0,height=" + (alto+30) + ",width=" + (ancho+30) + ",left=" + izq + ",top=" + sup + ",scrollbars=no,location=0,menubar=0,resizable=0"

}


var miventana
miventana = window.open ("../zoom.htm", winName, features)

miventana.document.write ("<html>");
miventana.document.write ("<head>");
miventana.document.write ("<title>" + titulo + "</title>")
//miventana.document.write ("<link rel='stylesheet' href='../estilos/textos.css'>")
miventana.document.write ("</head>")
miventana.document.write ("<body bgcolor='#1E1E1E'>")

//miventana.document.write ("<div id='c_ini' style='position:absolute; width:37px; height:15px; z-index:2; //background-color: #993300; layer-background-color: #993300; left: 0px; top: 7px; border: 1px none #000000;'>")
//miventana.document.write ("<div align='center'></div></div>")
//miventana.document.write ("<div id='c0' style='position:absolute; width:" + (ancho+4) +"px; height:15px; z-index:20; //background-color: #993300; layer-background-color: #993300; left: 39px; top: 7px; border: 1px none #000000;'>") 
//miventana.document.write ("<div align='left'><a href='#' class='blancpeque'><img src='../1pixel.gif' width='5' height='1' //border='0'><b>"+titulo+"</b></a></div></div>")




miventana.document.write ("<div id='Layer1' style='position:absolute; width:200px; height:115px; z-index:1; left: 15; top: 15'><img src='" + locfoto + "' width='" + ancho + "' height='" + alto + "' border='2'></div>")

//miventana.document.write ("<div id='c2' style='position:absolute; width:" + (ancho+4) +"px; height:15px; z-index:20; //background-color: #999966; layer-background-color: #999966; left: 39px; top:" + (alto + 45) +"px; border: 1px none //#000000;'>") 
//miventana.document.write ("<div align='left'><a href='#' class='blancpeque'><img src='../1pixel.gif' width='5' height='1' //border='0'>"+leyenda+"</a></div></div>")

miventana.document.write ("</body>")
miventana.document.write ("</html>")


}



function af (num_foto){

	winName = "imagen";

	alto = alto_fot[num_foto]
	ancho = ancho_fot[num_foto]
	//cabecera ="MAPA"
	titulo = titulo_fot [num_foto]
	//leyenda = leyenda_fot [num_foto]
	ref_foto = 1000 + num_foto


	locfoto = "../fotos_new/" + ref_foto +".jpg"

	izq = (800 - ancho)/2;
	sup = (600 - alto)/2;

	if (alto>770){
	features = "status=0,height=" + 780 + ",width=" + (ancho+55) + ",left=" + izq + ",top=" + sup + ",scrollbars=yes,location=0,menubar=0,resizable=0"

	}else{

	features = "status=0,height=" + (alto+50) + ",width=" + (ancho+30) + ",left=" +izq+ ",top=" + sup + ",scrollbars=no,location=0,menubar=0,resizable=0"

	}


	var miventana
	miventana = window.open ("../zoom.htm", winName, features)
	
	miventana.document.write ("<html>");
	miventana.document.write ("<head>");
	miventana.document.write ("<title>" + titulo + "</title>")
	miventana.document.write ("<link rel='stylesheet' href='../estilos/estilos_migas.css'>")
	miventana.document.write ("</head>")
	miventana.document.write ("<body bgcolor='#1E1E1E'>")

	miventana.document.write ("<div id='c_ini' style='position:absolute; width:37px; height:15px; z-index:2; background-color: #993300; 	layer-background-color: #993300; left: 0px; top: 12px; border: 1px none #000000;'>")
	miventana.document.write ("<div align='center'></div></div>")
	miventana.document.write ("<div id='c0' style='position:absolute; width:" + (ancho+4) +"px; height:15px; z-index:20; background-color: #993300; 	layer-background-color: #993300; left: 20px; top: 12px; border: 1px none #000000;'>") 
	miventana.document.write ("<div align='left'><a href='#' class='normalpeque'><img src='../1pixel.gif' width='5' height='1' 	border='0'>"+titulo+"</a></div></div>")




	miventana.document.write ("<div id='Layer1' style='position:absolute; width:200px; height:115px; z-index:1; left: 15; top: 35'><img src='" + locfoto 	+ "' width='" + ancho + "' height='" + alto + "' border='2' class='foto'></div>")

	//miventana.document.write ("<div id='c2' style='position:absolute; width:" + (ancho+4) +"px; height:15px; z-index:20; //background-color: #999966; 	layer-background-color: #999966; left: 39px; top:" + (alto + 45) +"px; border: 1px none //#000000;'>") 
	//miventana.document.write ("<div align='left'><a href='#' class='blancpeque'><img src='../1pixel.gif' width='5' height='1' 	//border='0'>"+leyenda+"</a></div></div>")

	miventana.document.write ("</body>")	
	miventana.document.write ("</html>")


}