var navegador
var ref_archivo_ventana
var ref_archivo_imagen_ventana
var tema_apunta_a = 7;



function apv (numpreso){
	
	izq = 20 //(800 - 600)/2;
	sup = 20 // (600 - 500)/2;
	features = "status=0,height=" + 500 + ",width=" + 800 + ",left=" + izq + ",top=" + sup + ",scrollbars=yes,location=0,menubar=0,resizable=0"
	archivo = "../oaxaca/p" + numpreso + ".htm"
	titulo = "preso" + numpreso;
	var miventana
	miventana = window.open (archivo, titulo, features)
}



function ag (num_grupo,num_subopcion){


	if (name == "portada"){
		top.parent.indicol.ag (num_grupo,num_subopcion)
	}else{
		ng = parseInt (num_grupo)
		ref = "#" + (ng + 1000000) + (nivel_submenu + 2000000) + (num_subopcion + 3000000) + (ancho_pastilla+4000000) + (ancho_pastilla_opcion_elegida + 5000000) + (posicion_pastilla_opcion_elegida + 6000000) + (nivel_color+7000000);
		c = parent.contenido.location;
		cad = "K" + c //sin la K no lo acepta como cadena
		largo_cad = cad.length;
		inicio = largo_cad - 49 - 27;
		archi = cad.substring (inicio,inicio + 26);
		if (archi == "y_generico_grupo_marco.htm"){ //si el subframe está cargado ataca a la cabecera del subframe
			parent.contenido.cabecera.location = "../html/item" + ng + "c.htm" + ref;
		}else{
			parent.contenido.location = "../html/y_generico_grupo_marco.htm" + ref;
		}
	}	
}




function agv (num_grupo){
	ng = parseInt (num_grupo)
	ref =  "#" + (ng+1000000) + 2000000 + 3000000 + 4000000 + 5000000 + 6000000 + 7000000
	archivo = "../html/y_generico_grupo_marco.htm" + ref;
	titulo = "vg" + num_grupo
	izq = 0;
	sup = 0;
	features="status=0,height=650,width=900,left="+izq+",top="+sup+",scrollbars=0,location=0,menubar=0,resizable=0"
	var miventana
	miventana = window.open (archivo, titulo, features)
}



function abre_mapa_chiapas (numlocalidad){

	ref =  "?" + numlocalidad;
	archivo = "../mapa_chiapas/marco.htm" + ref;
	titulo = "mapachiapas" 
	izq = 0;
	sup = 0;
	features="status=0,height=600,width=800,left="+izq+",top="+sup+",scrollbars=0,location=0,menubar=0,resizable=yes"
	var miventana
	miventana = window.open (archivo, titulo, features)



}

function y_abre_grupo (num_grupo,num_subopcion){ag (num_grupo,num_subopcion)}
function y_abre_grupo_ventana (num_grupo){agv (num_grupo)}



function amn (num_menu,num_subopcion,num_infraopcion){



	if (num_infraopcion > 0){
		
	}else{
		num_infraopcion = 0;
	}


	
	if (name == "portada"){
		top.parent.indicol.amn (num_menu,num_subopcion,num_infraopcion)


	}else{

		if (name == "rueda"){
			top.parent.indicol.amn (num_menu,num_subopcion,num_infraopcion)
		



		}else{
			nm = parseInt (num_menu)
			ref = "#" + (nm + 1000000) + (nivel_submenu + 2000000) + (num_subopcion + 3000000) + (ancho_pastilla+4000000) + (ancho_pastilla_opcion_elegida + 5000000) + (posicion_pastilla_opcion_elegida + 6000000) + (nivel_color+7000000) + (num_infraopcion+8000000);
			c = parent.contenido.location;
			cad = "K" + c //sin la K no lo acepta como cadena
			largo_cad = cad.length;
			//** inicio = largo_cad - 49 - 26;
			inicio = largo_cad - 56 - 26;
			archi = cad.substring (inicio,inicio + 25);


			if (archi == "y_generico_menu_marco.htm"){ //si el subframe está cargado ataca a la cabecera del subframe
				parent.contenido.cabecera.location = "../html/item" + nm + "c.htm" + ref;
			}else{
				parent.contenido.location = "../html/y_generico_menu_marco.htm" + ref;
			}
		}	
	}

}



function amnv (num_menu,num_subopcion){

	if (num_subopcion > 0){
		
	}else{
		num_subopcion = 0;
	}
	


	
	if (name == "portada"){
		top.parent.indicol.amnv (num_menu,num_subopcion)
	}else{
		nm = parseInt (num_menu)
		ref = "#" + (nm + 1000000) + (2000000) + (num_subopcion + 3000000) + (4000000) + (5000000) + (6000000) + (7000000) + (8000000);
		archivo = "../html/y_generico_menu_marco.htm" + ref;
		titulo = "vmn" + nm;
		izq = 0;
		sup = 0;
		features="status=0,height=650,width=1000,left="+izq+",top="+sup+",scrollbars=0,location=yes,menubar=yes,resizable=yes"
		var miventana
		miventana = window.open (archivo, titulo, features)
	}
}



function at (num_tema,articulosrelacionadossino,periodo_tema,tipo_array){ 

	//tipo_array: 0=tema, 1=localidad 


	if (tipo_array>0){}else{tipo_array=0;}
	if (periodo_tema>0){}else{periodo_tema=0;}


	if (name == "portada"){
		top.parent.indicol.at (num_tema,articulosrelacionadossino)
	}else{


		if (articulosrelacionadossino > 0){
			articulos_relacionados_sino =1
		}else{
			articulos_relacionados_sino=0
		}

		nt = parseInt (num_tema)
		pt = parseInt (periodo_tema)


		
		ref = "#" + (num_tema+1000000) + (nivel_submenu + 2000000+(tipo_array*100000)) + (tema_apunta_a + 3000000) + (ancho_pastilla+4000000) + (ancho_pastilla_opcion_elegida + 5000000) + (posicion_pastilla_opcion_elegida + 6000000) + (nivel_color+7000000) + (8000000+articulos_relacionados_sino) + (9000000+periodo_tema);
		c = parent.contenido.location;
		cad = "K" + c //sin la K no lo acepta como cadena
		largo_cad = cad.length;
		inicio = largo_cad - 63 - 17;
		archi = cad.substring (inicio,inicio + 16);

		if (pt ==0){
			pt="";
		}


		if (archi == "y_tema_marco.htm"){ //si el subframe está cargado ataca al contenido del subframe tema
			if (articulos_relacionados_sino ==0){
				parent.contenido.contenido.location = "../html/tema-" + nt + pt + ".htm" + ref + "Recarga";
			}else{
				parent.contenido.contenido.location = "../html/item" + nt + "art.htm" + ref + "Recarga";
			}	
		}else{
			parent.contenido.location = "../html/y_tema_marco.htm" + ref;
		}	
	}
}



function al (num_localidad,articulosrelacionadossino,periodo_localidad){
	at (num_localidad,0,0,1)
}



function atc (num_tema,articulosrelacionadossino){ //cciodh

	


		if (articulosrelacionadossino > 0){
			articulos_relacionados_sino =1
		}else{
			articulos_relacionados_sino=0
		}

		nt = parseInt (num_tema)
		ref = "#" + (num_tema+1000000) + (nivel_submenu + 2000000) + (tema_apunta_a + 3000000) + (ancho_pastilla+4000000) + (ancho_pastilla_opcion_elegida + 5000000) + (posicion_pastilla_opcion_elegida + 6000000) + (nivel_color+7000000) + (8000000+articulos_relacionados_sino);
		c = location;
		cad = "K" + c //sin la K no lo acepta como cadena
		largo_cad = cad.length;
		inicio = largo_cad - 56 - 17;
		archi = cad.substring (inicio,inicio + 16);

		if (archi == "y_tema_marco.htm"){ //si el subframe está cargado ataca al contenido del subframe tema
			if (articulos_relacionados_sino ==0){
				location = "html/tema-" + nt + ".htm" + ref + "Recarga";
			}else{
				location = "html/item" + nt + "art.htm" + ref + "Recarga";
			}	
		}else{
			location = "html/y_tema_marco.htm" + ref;
		}	
	
}




function y_abre_tema (num_tema,articulosrelacionadossino){at (num_tema,articulosrelacionadossino)}

function atv (num_tema,temaapunta,periodo_tema,tipo_array){


	if (tipo_array>0){}else{tipo_array=0;}
	if (periodo_tema>0){}else{periodo_tema=0;}


	
	if (name == "portada"){
		top.parent.indicol.atv (num_tema,temaapunta,periodo_tema)
	}else{

		if (temaapunta>-1){
			ta = temaapunta;
		}else{
			ta = 0
		}
		nt = parseInt (num_tema)
		ref = "#" + (nt+1000000) + (2000000+(tipo_array*100000)) + (3000000+ta) + (4000000) + (5000000) + (6000000) + (7000000) + (8000000) +(9000000+periodo_tema);
		archivo = "../html/y_tema_marco.htm" + ref;
		titulo = "vt" + nt;
		izq = 0;
		sup = 0;
		//features="status=0,height=650,width=900,left="+izq+",top=" + sup + ",scrollbars=0,location=0,menubar=0,resizable=0"
		features="status=0,height=650,width=1000,left="+izq+",top=" + sup + ",scrollbars=0,location=0,menubar=0"
		var miventana
		miventana = window.open (archivo, titulo, features)
	}
}

function atv_wiki (num_tema,temaapunta,periodo_tema,tipo_array){


	if (tipo_array>0){}else{tipo_array=0;}
	if (periodo_tema>0){}else{periodo_tema=0;}


	
	if (name == "portada"){
		top.parent.indicol.atv (num_tema,temaapunta,periodo_tema)
	}else{

		if (temaapunta>-1){
			ta = temaapunta;
		}else{
			ta = 0
		}
		nt = parseInt (num_tema)
		ref = "#" + (nt+1000000) + (2000000+(tipo_array*100000)) + (3000000+ta) + (4000000) + (5000000) + (6000000) + (7000000) + (8000000) +(9000000+periodo_tema);
		archivo = "../html/y_tema_marco.htm" + ref;
		titulo = "vt" + nt;
		izq = 0;
		sup = 0;
		//features="status=0,height=650,width=900,left="+izq+",top=" + sup + ",scrollbars=0,location=0,menubar=yes,resizable=0"
		features="status=0,height=650,width=1000,left="+izq+",top=" + sup + ",scrollbars=0,location=0,menubar=yes"
		var miventana
		miventana = window.open (archivo, titulo, features)
	}
}


function alv (num_localidad,articulosrelacionadossino,periodo_localidad){

	atv (num_localidad,0,0,1)

}


function ah (num_item){ //en el marco para acticulos relacionados

	if (name == "portada"){
		top.parent.indicol.ah (num_item)
	}else{
		numero_item = parseInt(num_item)
		ref = "#" + (numero_item+1000000) + (nivel_submenu + 2000000) + (3000000) + (ancho_pastilla+4000000) + (ancho_pastilla_opcion_elegida + 5000000) + (posicion_pastilla_opcion_elegida + 6000000) + (nivel_color+7000000);
		c = parent.contenido.location;
		cad = "K" + c //sin la K no lo acepta como cadena
		largo_cad = cad.length;
		inicio = largo_cad - 49 - 21;
		archi = cad.substring (inicio,inicio + 20);
		if (archi == "y_generico_marco.htm"){ //si el subframe está cargado ataca al contenido del subframe
			parent.contenido.contenido.location = "../html/item" + numero_item + ".htm" + ref + "Recarga";
		}else{
			parent.contenido.location = "y_generico_marco.htm" + ref;
		}	
	}
}



function ahi (num_item){  //abre html de indice, sin cabecera relaCIONADOS
	parent.cabecera.y_muestra_volver()
	parent.contenido.location = "../html/item" + num_item + ".htm";
}


function ahv (numitem){

	izq = 100;
	sup = (600 - 500)/2;

	features = "status=0,height=" + 700 + ",width=" + 800 + ",left=" + izq + ",top=" + sup + ",scrollbars=yes,location=0,menubar=0,resizable=0"
	
	archivo = "../html/item" + numitem + ".htm"
	titulo = numitem
	var miventana
	miventana = window.open (archivo, titulo, features)
}


function y_abre_item (num_item){ah (num_item)}
function abrehtm (numitem){ahv (numitem)}


function anv (numnoticia,parrafo){
	ubi_not = ubi_noticia (numnoticia,parrafo)
	izq = (800 - 600)/2;
	sup = (600 - 500)/2;
	features = "status=0,height=" + 500 + ",width=" + 800 + ",left=" + izq + ",top=" + sup + ",scrollbars=yes,location=0,menubar=yes,resizable=0"
	archivo = ubi_not 
	titulo = "not" + numnoticia;
	var miventana
	miventana = window.open (archivo, titulo, features)
}

function anv_wiki (numnoticia,parrafo){
	ubi_not = ubi_noticia (numnoticia,parrafo)
	izq = (800 - 600)/2;
	sup = (600 - 500)/2;
	features = "status=0,height=" + 500 + ",width=" + 800 + ",left=" + izq + ",top=" + sup + ",scrollbars=yes,location=yes,menubar=yes,resizable=0"
	archivo = ubi_not 
	titulo = "not" + numnoticia;
	var miventana
	miventana = window.open (archivo, titulo, features)
}


function an (num_noticia,parrafo){ //por si hay que introducir una cabecera generica de noticias
	ani (num_noticia,parrafo)
}


function ani (num_noticia,parrafo){ //abre noticia desde indice
	ubi_not = ubi_noticia (num_noticia,parrafo)
	parent.cabecera.y_muestra_volver()
	parent.contenido.location = ubi_not
	status=num_noticia;
}


function abre_noticia (num_noticia,parrafo){an (num_noticia,parrafo)}
function abrenot (numnoticia){anv(numnoticia)}


function ubi_noticia (num_noticia,parrafo){
	num_carpeta = parseInt(num_noticia/1000)
	carpeta = "nbd"+num_carpeta
	if (num_noticia <27000){
		ubi_not = "../" + carpeta + "/item" + num_noticia + ".htm#" + parrafo;
	}else{
		if (num_noticia >700000){
			ubi_not = "../nbd9000/item" + num_noticia + ".htm#" + parrafo;
		}else{
			ubi_not = "../noticiasbd/item" + num_noticia + ".htm#" + parrafo;
		}
	}
	return (ubi_not)
}



function as (num_seccion){ 

	if (name == "portada"){
		top.parent.indicol.as (num_seccion)
	}else{
		numero_seccion = parseInt(num_seccion)
		ref = "#" + (numero_seccion+1000000) + (nivel_submenu + 2000000) + (3000000) + (ancho_pastilla+4000000) + (ancho_pastilla_opcion_elegida + 5000000) + (posicion_pastilla_opcion_elegida + 6000000) + (nivel_color+7000000);
		c = parent.contenido.location;
		cad = "K" + c //sin la K no lo acepta como cadena
		largo_cad = cad.length;
		inicio = largo_cad - 49 - 29;
		archi = cad.substring (inicio,inicio + 28);
		if (archi == "y_generico_seccion_marco.htm"){ //si el subframe está cargado ataca al contenido del subframe
			
			parent.contenido.contenido.location = "../html/seccion" + numero_seccion + ".htm" + ref ;
		}else{
			parent.contenido.location = "../html/y_generico_seccion_marco.htm" + ref;
		}	
	}
}



function asv (num_seccion){ 

	if (name == "portada"){
		top.parent.indicol.asv (num_seccion)
	}else{
		numero_seccion = parseInt(num_seccion)
		ref = "#" + (numero_seccion+1000000) + (2000000) + (3000000) + (4000000) + (5000000) + (6000000) + (7000000);
		archivo = "../html/y_generico_seccion_marco.htm" + ref;
		titulo = "vs" + numero_seccion;
		izq = 0;
		sup = 0;
		features="status=0,height=650,width=900,left="+izq+",top="+sup+",scrollbars=0,location=0,menubar=0,resizable=0"
		var miventana
		miventana = window.open (archivo, titulo, features)
	}
}








function am (ubi){

	ref = "#" + (1000000) + (nivel_submenu + 2000000) + (3000000) + (ancho_pastilla+4000000) + (ancho_pastilla_opcion_elegida + 5000000) + (posicion_pastilla_opcion_elegida + 6000000) + (nivel_color+7000000);
	
	parent.contenido.location = ubi + ref+ "Manual" ;

	//parent.cabecera.y_muestra_volver()
	//parent.contenido.location = ubi;
}

function abre_manual (ubi){am (ubi)}


function ami (ubi){
	parent.cabecera.y_muestra_volver()
	parent.contenido.location = ubi;
}








function ae(num_enlace){
	direccion = urlenlace[num_enlace];
	nombre= "enlace"+num_enlace;
	wvincle=window.open(direccion,nombre,"toolbar=1,status=0,height=300,width=300,left=250,top=150,scrollbars=1,location=yes,menubar=yes,resizable=yes");
}

function enlace(num_enlace){ae(num_enlace)}



function aad (nombre,extension){
	
	ubicacio = nombre
	nom = "ad" ;
	if (navegador == "Netscape"){
		wadjunto=window.open(ubicacio,nom,"status=0,height=310,width=500,left=150,top=100,scrollbars=0,	location=0,toolbar=1,menubar=1,resizable=1");
	}else{
		wadjunto=window.open(ubicacio,nom,"status=0,height=310,width=500,left=150,top=100,scrollbars=0,	location=0,toolbar=1,menubar=1,resizable=1");
	}	
}

function a_pdf_adjunto (num){
	
	ubicacio = "http://chiapas.pangea.org/adjuntos/" + num + ".pdf"
	
	nom = "pdfadjunto" + num
	
	wadjunto=window.open(ubicacio,nom,"status=0,height=310,width=500,left=150,top=100,scrollbars=0,	location=0,toolbar=1,menubar=1,resizable=1");
		
}



function abre_adjunto (nombre,extension){aad (nombre,extension)}


function opm (num_opcion_elegida,num_supocion_elegida,nivel_carpeta,num_infraopcion_elegida){
	parent.cabecera.carga_opcion (num_opcion_elegida,num_supocion_elegida,nivel_carpeta,num_infraopcion_elegida)
}



function ogr (num_opcion_elegida,nivel_carpeta){
	parent.cabecera.carga_opcion (num_opcion_elegida,nivel_carpeta)
}



// ----------------------------------


function otraweb(direccion,nombre){

wvincle=window.open(direccion,nombre,"toolbar=1,status=0,height=300,width=300,left=250,top=150,scrollbars=1,location=1,menubar=1,resizable=1");

//wvincle.document.close();
}




function abre (numnoticia){ //abre noticia en ventana antigua

 anv (numnoticia);

}










function abre_grupo_ventana (archivo, titulo){
	izq = 0;
	sup = 0;
	features="status=0,height=550,width=800,left="+izq+",top="+sup+",scrollbars=0,location=0,menubar=0,resizable=0"
	var miventana
	miventana = window.open (archivo, titulo, features)
}


function abre_tema_ventana (archivo, titulo){
	izq = 0;
	sup = 0;
	features="status=0,height=550,width=800,left="+izq+",top="+sup+",scrollbars=0,location=0,menubar=0,resizable=0"
	var miventana
	miventana = window.open (archivo, titulo, features)
}









function abremanual_ventana (direccion){

	ubi = direccion


	izq = (800 - 600)/2;
	sup = (600 - 500)/2;

	features = "status=0,height=" + 500 + ",width=" + 600 + ",left=" + izq + ",top=" + sup + ",scrollbars=yes,location=0,menubar=0,resizable=0"

	archivo = ubi;

	titulo = "manual"	
	var miventana
	miventana = window.open (archivo, titulo, features)


}






function abre_item (num_item,parrafo){
	ah (num_item)
	//ubi_item = "../html/item" + num_item + ".htm";
	//parent.cabecera.y_muestra_volver()
	//parent.contenido.location = ubi_item
}









function abre_ventana_espec (archivo,ancho, alto, titulo){

	
	izq = (700 - ancho)/2;
	sup = 50;
	features = "status=0,height="+alto+",width="+ancho+",left="+izq+",top="+sup+",scrollbars=0,location=0,menubar=0,resizable=0"
	var miventana
	miventana = window.open (archivo, titulo, features)
}





function abre_ventana_espec_scroll (archivo,ancho, alto, titulo){
	izq = (800 - ancho)/2;
	sup = (600 - alto)/2;
	features = "status=0,height="+alto+",width="+ancho+",left="+izq+",top="+sup+",scrollbars=yes,location=0,menubar=0,resizable=0"
	var miventana
	miventana = window.open (archivo, titulo, features)
}







function abrehtm_ancho (numitem){

izq = (800 - 600)/2;
sup = (600 - 500)/2;

features = "status=0,height=" + 600 + ",width=" + 800 + ",left=" + izq + ",top=" + sup + ",scrollbars=yes,location=0,menubar=0,resizable=0"

archivo = "../html/item" + numitem + ".htm"
titulo = numitem
var miventana
miventana = window.open (archivo, titulo, features)


}







//viejos, pero ...





function inicia_glosario(){

	if (name == "cont_ventana"){ //abierto en ventana superpuesta
		parent.cab_ventana.mueve_contador (1)
	}else{
		if (name == "cont"){ //abierto en marco glosario, pero no en su seccion
			parent.cab.mueve_contador (1)
		}else{
			if (name == "cont_seccion"){ //abierto en marco glosario de su seccion
				parent.cab_seccion.mueve_contador (1)
			}
		}
	}
}


function abreglosarioder (numitem){

	if (name == "lista"){
		parent.cont.location = "../__glosario/item" + numitem + ".htm";
	}else{
		if (name == "lista_seccion"){
			parent.cont_seccion.location = "../__glosario/item" + numitem + ".htm";	
		}
	}

}



function atras_glosario(){

	if (history.length > 1){
		history.go(-1)
	}else{
		self.close()
	}
}
 








function abredoc (numitem,anch, alt){

if (anch > 0){ancho = anch}else{ancho=600}
if (alt > 0){ancho = alt}else{alto=500}



izq = (800 - 600)/2;
sup = (600 - 500)/2;

features = "status=0,height=" + alto + ",width=" + ancho + ",left=" + izq + ",top=" + sup + ",scrollbars=yes,location=0,menubar=0,resizable=0"

archivo = "../__documentos/item" + numitem + ".htm"
titulo = numitem
var miventana
miventana = window.open (archivo, titulo, features)


}








function abreglos (numitem,marcador){


	

	ref_archivo_ventana = "../__glosario/item" + (numitem) +".htm#"+marcador;

	if (name=='contenido'){ //no está en el glosario

		izq = (800 - 580)/2;
		sup = (600 - 400)/2;


		features = "status=0,height=" + 500 + ",width=" + 580 + ",left=" + izq + ",top=" + sup + ",scrollbars=yes,location=0,menubar=0,resizable=0"

		titulo = numitem
		var miventana
		miventana = window.open ('../__glosario/__volver_marco.htm', titulo, features)


	}else{

	

		if (name=='cont_ventana'){ //glosario en ventana
			parent.cont_ventana.location = ref_archivo_ventana
		}

		if (name=='cont'){ //glosario en principal
			parent.cont.location = ref_archivo_ventana
		}

		if (name == "cont_seccion"){ //abierto en marco glosario de su seccion
			
			parent.cont_seccion.location = ref_archivo_ventana
		}

	}



}



function abremapa (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]
locfoto = "../__mapas/" + archivo_map [num_mapa]

izq = (800 - ancho)/2;
sup = (600 - alto)/2;



features = "status=0,height=" + (alto+73) + ",width=" + (ancho+63) + ",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>" + cabecera + "</title>")
miventana.document.write ("<link rel='stylesheet' href='../estilos/textos.css'>")
miventana.document.write ("</head>")
miventana.document.write ("<body bgcolor='#FFCC66'>")

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: 38; top: 33'><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 abreden (numitem,marcador){

izq = (800 - 580)/2;
sup = (600 - 400)/2;

ref_archivo_ventana = "../html/item" + (numitem) +".htm#"+marcador;


features = "status=0,height=" + 400 + ",width=" + 580 + ",left=" + izq + ",top=" + sup + ",scrollbars=yes,location=0,menubar=0,resizable=0"

titulo = numitem
var miventana
miventana = window.open ('../html/__volver_marco_denuncia.htm', titulo, features)


}



function pasa_archivo(){

	return (ref_archivo_ventana)

}

function pasa_archivo_imagen(){

	return (ref_archivo_ventana)

}


function abreglosbad (numitem){

izq = (800 - 580)/2;
sup = (600 - 400)/2;

features = "status=0,height=" + 400 + ",width=" + 580 + ",left=" + izq + ",top=" + sup + ",scrollbars=yes,location=0,menubar=0,resizable=0"

archivo = "../noticiasbd/item" + numitem + ".htm"
titulo = numitem
var miventana
miventana = window.open (archivo, titulo, features)


}























function abre_ventana_home (vinculo){
	nom_ventana = 'vinculo';
	ubicacion = vinculo;

wventana=window.open(ubicacion,nom_ventana,"status=0,height=350,width=620,left=90,top=125 scrollbars=1,location=0,menubar=1,resizable=0, alwaysRaised=1,");
//wpregunta.document.close();

}





function zoom (num_foto,ancho,alto,titulo){

winName = "zoom" + num_foto;
locfoto = "fotos/" + num_foto + ".jpg"
izq = (800 - ancho)/2;
sup = (600 - alto)/2;



features = "status=0,height=" + alto + ",width=" + ancho + ",left=" + izq + ",top=" + sup + ",scrollbars=0,location=0,menubar=0,resizable=0"


var miventana
miventana = window.open ("../zoom.htm", winName, features)
miventana.document.write ("<title>" + titulo + "</title>")
miventana.document.write ("</head>")
miventana.document.write ("<body bgcolor='#FFFFFF'>")
miventana.document.write ("<div id='Layer1' style='position:absolute; width:200px; height:115px; z-index:1; left: 0; top: 0'><img src='" + locfoto + "' width='" + ancho + "' height='" + alto + "'></div>")
miventana.document.write ("</body>")
miventana.document.write ("</html>")


}



function zoom1 (num_foto,ancho,alto,titulo){

winName = "zoom" + num_foto;
locfoto = "fotos/" + num_foto + ".jpg"
izq = (800 - ancho)/2;
sup = (600 - alto)/2;



features = "status=0,height=" + alto + ",width=" + ancho + ",left=" + izq + ",top=" + sup + ",scrollbars=0,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 ("</head>")
miventana.document.write ("<body bgcolor='#FFFFFF'>")
miventana.document.write ("<div id='Layer1' style='position:absolute; width:200px; height:115px; z-index:1; left: 0; top: 0'><img src='" + locfoto + "' width='" + ancho + "' height='" + alto + "'></div>")
miventana.document.write ("</body>")
miventana.document.write ("</html>")


}


function enlace(num_enlace){

direccion = urlenlace[num_enlace];
nombre= "enlace"+num_enlace;

wvincle=window.open(direccion,nombre,"toolbar=1,status=0,height=300,width=300,left=250,top=150,scrollbars=1,location=0,menubar=1,resizable=1");

//wvincle.document.close();
}




function abre_ventana (vinculo){
	nom_ventana = 'vinculo';
	ubicacion = vinculo + ".htm";

wventana=window.open(ubicacion,nom_ventana,"status=0,height=350,width=620,left=90,top=125, scrollbars=1,location=0,menubar=1,resizable=0, alwaysRaised=1,");
//wpregunta.document.close();

}


function abre_ventananom (vinculo,nom){
	nom_ventana = nom;
	ubicacion = vinculo + ".htm";

wventana=window.open(ubicacion,nom_ventana,"status=0,height=350,width=620,left=90,top=125 scrollbars=1,location=0,menubar=1,resizable=0, alwaysRaised=1,");
//wpregunta.document.close();

}



function abre_ventana_vertical (vinculo){
	nom_ventana = 'vinculo_vert';
	ubicacion = vinculo + ".htm";

wventana=window.open(ubicacion,nom_ventana,"status=0,height=450,width=320,left=240,menubar=0,top=10 scrollbars=0,location=0,menubar=1,resizable=0, alwaysRaised=1,");
//wpregunta.document.close();

}





