//----------------------------------------------------------------------------------
//------COLORES
//	Azul: 5081E6


//----------------------------------------------------------------------------------
function abreVentana( url, nombreVentana, propiedades ) 
{ 
  ventana = window.open( url, nombreVentana, propiedades );
  // ventana.focus();
}
//----------------------------------------------------------------------------------
function salta (selectN) {
        var url = selectN.options[selectN.selectedIndex].value;
        if ( url != "" )
        {
                document.location=url;
    	}
}
//----------------------------------------------------------------------------------
function indiceFotos (nFoto, FotoInicial, TotalFotos) {
	document.write("<TABLE border=0 cellpadding=3 cellspacing=4 bgcolor=dddddd>");
	document.write("<TR bgcolor=5081E6>");
	for (j=FotoInicial;j<=TotalFotos;j++) {
		if (j==nFoto) document.write("<TD bgcolor=dddddd align=center><span class=Texto12><B>" + j + "</B></span></TD>");
		else document.write("<TD align=center><A HREF=foto" + j + ".htm class=Menu2>" + j + "</A></TD>");
	}
	document.write("</TR>");
	document.write("</TABLE>");

}
//----------------------------------------------------------------------------------

function salta (selectN) {
        var url = selectN.options[selectN.selectedIndex].value;
        if( url != "" )
        {
                document.location=url;
    	}
}
//----------------------------------------------------------------------------------

 
// ---ini--- inicializaci&oacute;n de los arrays con las variables y valores de la URL actual
	var variables = new Array();
	var valores = new Array();
	
	var estadoParser=0; 
	var variable_nombre="";
	var variable_valor="";
	var iVariable=0;
	
	var s = document.location+"";
				
	for (i=0; (i<s.length); i++) {
		switch (estadoParser){
			case 0: // Estado inicial. Se busca la ? que separa URL y variables
				if (s.substring(i,i+1)=='?') estadoParser=1;
				break; 	
			case 1: // Se busca el nombre de la variable.
				if (s.substring(i,i+1)=='=')	estadoParser=2;
				else variable_nombre = variable_nombre +s.substring(i,i+1);
				break; 
			case 2: // Se busca el valor de la variable
				if (s.substring(i,i+1)=="&") {
						variables[iVariable] = variable_nombre;
						valores[iVariable] = variable_valor;
						iVariable++;
						variable_nombre="";
						variable_valor="";
						estadoParser=1;
				} 
				else variable_valor = variable_valor + s.substring(i,i+1);
				break; 
		}	
	}
	if (estadoParser==2) {
		variables[iVariable] = variable_nombre;
		valores[iVariable] = variable_valor;
		iVariable++;			
	}
// ---fin--- inicializaci&oacute;n de los arrays con las variables y valores de la URL actual
	
	
// ---ini---	valorVariable(var1)
// Devuelve el valor de la variable "var1" en la URL actual
function valorVariable(var1) {
 		for (j = 0; j < iVariable; j++) {
 			if (variables[j] == var1) return valores[j];
 		}
 		return "";
}
// ---fin---	valorVariable(var1)

//----------------------------------------------------------------------------------
 

function escribeCabecera(titulo, nivel, seccionT, seccionN) {
	var dir_ruta="./";
	if (nivel==2) dir_ruta="../";
	else if (nivel==3) dir_ruta="../../";
	else if (nivel==4) dir_ruta="../../../";
	
	var color1 = new Array;
	var color2 = new Array;
	var estilo = new Array;
	
	for (i=0;i<=6;i++) {
		color1[i]="ffffff";
		color2[i]="5081E6";
		estilo[i]="enlace1";
	}
	color1[seccionN]="5081E6";
	color2[seccionN]="ffffff";
	estilo[seccionN]="enlace1Negativo";

	document.write("<BODY bgcolor=CC3333 leftmargin=1 topmargin=1 marginwidth=1 marginheight=1>");
	document.write("<center>");
	document.write("<TABLE border=0 cellpadding=0 cellspacing=3 width=770 >");

	document.write("<TR>");
	document.write("<TD width=150 bgcolor=FF292A><A HREF=" + dir_ruta + "index.htm ><IMG src=" + dir_ruta + "img/JMZ_LlabraorDeLlibertaes_1.gif width=156 height=168 border=0 hspace=0 vspace=0></A></TD>");
	document.write("<TD width=620 bgcolor=FF292A align=center valign=top>");
	document.write("	<TABLE border=0 cellpadding=0 cellspacing=2 width=100% bgcolor=5081E6>");
	document.write("	<TR>");
	document.write("	<TD  bgcolor=" + color1[0] + " onmouseout=\"this.style.backgroundColor='#" + color1[0] + "';\" onmouseover=\"this.style.backgroundColor='#" + color2[0] + "';\" ><DIV class=menu><A HREF=" + dir_ruta + "index.htm class=" + estilo[0] + " >Portada</A></DIV></TD>");
	document.write("	<TD  bgcolor=" + color1[1] + " onmouseout=\"this.style.backgroundColor='#" + color1[1] + "';\" onmouseover=\"this.style.backgroundColor='#" + color2[1] + "';\" ><DIV class=menu><A HREF=" + dir_ruta + "programa.htm class=" + estilo[1] + ">Actividades</A></div></TD>");
	document.write("	<TD  bgcolor=" + color1[6] + " onmouseout=\"this.style.backgroundColor='#" + color1[6] + "';\" onmouseover=\"this.style.backgroundColor='#" + color2[6] + "';\" ><DIV class=menu><A HREF=" + dir_ruta + "biografia.htm class=" + estilo[6] + ">Biograf&iacute;a</A></div></TD>");
	document.write("	<TD  bgcolor=" + color1[2] + " onmouseout=\"this.style.backgroundColor='#" + color1[2] + "';\" onmouseover=\"this.style.backgroundColor='#" + color2[2] + "';\" ><DIV class=menu><A HREF=" + dir_ruta + "expo.htm class=" + estilo[2] + ">Exposici&oacute;n</A></DIV></TD>");
	document.write("	<TD  bgcolor=" + color1[3] + " onmouseout=\"this.style.backgroundColor='#" + color1[3] + "';\" onmouseover=\"this.style.backgroundColor='#" + color2[3] + "';\" ><DIV class=menu><A HREF=" + dir_ruta + "fotos.htm class=" + estilo[3] + ">Fotos</A></DIV></TD>");
	document.write("	<TD  bgcolor=" + color1[4] + " onmouseout=\"this.style.backgroundColor='#" + color1[4] + "';\" onmouseover=\"this.style.backgroundColor='#" + color2[4] + "';\" ><DIV class=menu><A HREF=" + dir_ruta + "prensa.htm class=" + estilo[4] + ">Prensa</A></DIV></TD>");
	document.write("	<TD  bgcolor=" + color1[5] + " onmouseout=\"this.style.backgroundColor='#" + color1[5] + "';\" onmouseover=\"this.style.backgroundColor='#" + color2[5] + "';\" ><DIV class=menu><A HREF=" + dir_ruta + "../index.htm class=" + estilo[5] + ">Fund. Juan Mu&ntilde;iz Zapico</A></DIV></TD></TR>");
	document.write("	</TABLE>");

	
	switch (seccionT) {
	   case "I" : // ---------------- Portada, index
			document.write("	<div class=texto1>La vida de Juan Mu&ntilde;iz Zapico es representativa de una &eacute;poca y de todos aquellos j&oacute;venes trabajadores que ante la sobreexplotaci&oacute;n y represi&oacute;n del r&eacute;gimen franquista, arriesgaron su vida por la libertad de todas y todas. Con el objetivo de la recuperaci&oacute;n de la Memoria Hist&oacute;rica, en el treinta aniversario de su muerte, desde la Fundaci&oacute;n Juan Mu&ntilde;iz Zapico se ha organizado un programa aniversario y una exposici&oacute;n.</div>");
			break;
	   default:
			document.write("		<A HREF=" + dir_ruta + "index.htm ><IMG src=" + dir_ruta + "img/JMZ_LlabraorDeLlibertaes_2.gif title='Juan Mu&ntilde;iz Zapico · Juan&iacute;n · Llabraor de llibertaes' width=312 height=120 border=0 hspace=50 vspace=10></A>");
	}
	
	document.write("</TD>");
	document.write("</TR>");
	document.write("</TABLE>");


}

//----------------------------------------------------------------------------------
 

function escribeCabeceraFoto(tema) {
		
	var TemaColor1 = new Array;
	var TemaColor2 = new Array;
	var TemaEstilo = new Array;
	
	for (i=1;i<=5;i++) {
		TemaColor1[i]="ffffff";
		TemaColor2[i]="5081E6";
		TemaEstilo[i]="enlace1";
	}
	TemaColor1[tema]="5081E6";
	TemaColor2[tema]="ffffff";
	TemaEstilo[tema]="enlace1Negativo";

	document.write("	<TABLE border=0 cellpadding=0 cellspacing=2 width=100% bgcolor=5081E6>");
	document.write("	<TR>");
	document.write("	<TD  bgcolor=" + TemaColor1[1] + " onmouseout=\"this.style.backgroundColor='#" + TemaColor1[1] + "';\" onmouseover=\"this.style.backgroundColor='#" + TemaColor2[1] + "';\" ><DIV class=menu><A HREF=fotos.htm?t=20070104 class=" + TemaEstilo[1] + " >30 aniv.  entierro de Juan&iacute;n</A></DIV></TD>");
	document.write("	<TD  bgcolor=" + TemaColor1[2] + " onmouseout=\"this.style.backgroundColor='#" + TemaColor1[2] + "';\" onmouseover=\"this.style.backgroundColor='#" + TemaColor2[2] + "';\" ><DIV class=menu><A HREF=fotos.htm?t=20070428 class=" + TemaEstilo[2] + ">30 aniv.  legalizaci&oacute;n de CC.OO.</A></div></TD>");
	document.write("	<TD  bgcolor=" + TemaColor1[3] + " onmouseout=\"this.style.backgroundColor='#" + TemaColor1[3] + "';\" onmouseover=\"this.style.backgroundColor='#" + TemaColor2[3] + "';\" ><DIV class=menu><A HREF=fotos.htm?t=20070530 class=" + TemaEstilo[3] + ">Presentaci&oacute;n biograf&iacute;a</A></div></TD>");
	document.write("	<TD  bgcolor=" + TemaColor1[4] + " onmouseout=\"this.style.backgroundColor='#" + TemaColor1[4] + "';\" onmouseover=\"this.style.backgroundColor='#" + TemaColor2[4] + "';\" ><DIV class=menu><A HREF=fotos.htm?t=20070610 class=" + TemaEstilo[4] + ">Homenaje a Juan&iacute;n</A></div></TD>");
	document.write("	<TD  bgcolor=" + TemaColor1[5] + " onmouseout=\"this.style.backgroundColor='#" + TemaColor1[5] + "';\" onmouseover=\"this.style.backgroundColor='#" + TemaColor2[5] + "';\" ><DIV class=menu><A HREF=fotos.htm?t=20070920 class=" + TemaEstilo[5] + ">Escuela Sindical JMZ</A></div></TD>");
	document.write("	</TR>");
	document.write("	</TABLE>");

}
//----------------------------------------------------------------------------------
 

function escribeCabeceraExpo(panel) {
		
	var ExpoColor1 = new Array;
	var ExpoColor2 = new Array;
	var ExpoEstilo = new Array;
	
	for (i=1;i<=8;i++) {
		ExpoColor1[i]="ffffff";
		ExpoColor2[i]="5081E6";
		ExpoEstilo[i]="enlace1";
	}
	ExpoColor1[panel]="5081E6";
	ExpoColor2[panel]="ffffff";
	ExpoEstilo[panel]="enlace1Negativo";

	document.write("	<TABLE border=0 cellpadding=0 cellspacing=2 width=100% bgcolor=5081E6>");
	document.write("	<TR>");
	document.write("	<TD  bgcolor=" + ExpoColor1[1] + " onmouseout=\"this.style.backgroundColor='#" + ExpoColor1[1] + "';\" onmouseover=\"this.style.backgroundColor='#" + ExpoColor2[1] + "';\" ><DIV class=menu><A HREF=expo_panel.htm?p=1 class=" + ExpoEstilo[1] + " >obreru de la esperanza</A></DIV></TD>");
	document.write("	<TD  bgcolor=" + ExpoColor1[2] + " onmouseout=\"this.style.backgroundColor='#" + ExpoColor1[2] + "';\" onmouseover=\"this.style.backgroundColor='#" + ExpoColor2[2] + "';\" ><DIV class=menu><A HREF=expo_panel.htm?p=2 class=" + ExpoEstilo[2] + ">el asturiano del proceso 1001</A></div></TD>");
	document.write("	<TD  bgcolor=" + ExpoColor1[3] + " onmouseout=\"this.style.backgroundColor='#" + ExpoColor1[3] + "';\" onmouseover=\"this.style.backgroundColor='#" + ExpoColor2[3] + "';\" ><DIV class=menu><A HREF=expo_panel.htm?p=3 class=" + ExpoEstilo[3] + ">l'home de la unid&aacute;</A></DIV></TD>");
	document.write("	<TD  bgcolor=" + ExpoColor1[4] + " onmouseout=\"this.style.backgroundColor='#" + ExpoColor1[4] + "';\" onmouseover=\"this.style.backgroundColor='#" + ExpoColor2[4] + "';\" ><DIV class=menu><A HREF=expo_panel.htm?p=4 class=" + ExpoEstilo[4] + ">nos dex&oacute; una tarde de xineru</A></DIV></TD>");
	document.write("	</TR>");
	document.write("	<TR><TD  bgcolor=" + ExpoColor1[5] + " onmouseout=\"this.style.backgroundColor='#" + ExpoColor1[5] + "';\" onmouseover=\"this.style.backgroundColor='#" + ExpoColor2[5] + "';\" ><DIV class=menu><A HREF=expo_panel5.htm?p=5 class=" + ExpoEstilo[5] + ">depu&eacute;s pasaron treinta a&ntilde;os</A></DIV></TD>");
	document.write("	<TD  bgcolor=" + ExpoColor1[6] + " onmouseout=\"this.style.backgroundColor='#" + ExpoColor1[6] + "';\" onmouseover=\"this.style.backgroundColor='#" + ExpoColor2[6] + "';\" ><DIV class=menu><A HREF=expo_panel6.htm?p=6 class=" + ExpoEstilo[6] + ">al home de la unid&aacute;, Xuan&iacute;n</A></DIV></TD>");
	document.write("	<TD  bgcolor=" + ExpoColor1[7] + " onmouseout=\"this.style.backgroundColor='#" + ExpoColor1[7] + "';\" onmouseover=\"this.style.backgroundColor='#" + ExpoColor2[7] + "';\" ><DIV class=menu><A HREF=expo_panel7.htm?p=7 class=" + ExpoEstilo[7] + ">la clase obrera en la transici&oacute;n</A></DIV></TD>");
	document.write("	<TD  bgcolor=" + ExpoColor1[8] + " onmouseout=\"this.style.backgroundColor='#" + ExpoColor1[8] + "';\" onmouseover=\"this.style.backgroundColor='#" + ExpoColor2[8] + "';\" ><DIV class=menu><A HREF=expo_panel8.htm?p=8 class=" + ExpoEstilo[8] + ">llabraor de llibertaes</A></DIV></TD>");
	document.write("	</TR></TABLE>");

}
//----------------------------------------------------------------------------------

function escribePie(nivel) {
	var dir_ruta="./";
	if (nivel==2) dir_ruta="../";
	else if (nivel==3) dir_ruta="../../";
	else if (nivel==4) dir_ruta="../../../";
	
	document.write("<BR>");
	document.write("	</TD></TR></TABLE></TD>");
	document.write("	</TR>");
	document.write("	</TABLE>");
	document.write("</TD>");	
	document.write("</TR>");
	document.write("</TABLE><TABLE border=0 cellpadding=0 cellspacing=0 width=100%><TR>");
	document.write("<TD bgcolor=5081E6><IMG src=" + dir_ruta + "img/px5081E6.gif border=0 width=650 height=3 hspace=0 vspace=0></TD>");
	document.write("</TR>");
	document.write("<TR>");
	document.write("<TD><IMG src=" + dir_ruta + "img/pxNada.gif border=0 width=1 height=1 hspace=5 vspace=10 align=left><span class=Pie>© <A HREF=" + dir_ruta + "index.htm class=Menu>Fundaci&oacute;n Juan Mu&ntilde;iz Zapico</A></span><BR><A HREF=mailto:fundacion.jmz@asturias.ccoo.es class=Menu>fundacion.jmz@asturias.ccoo.es</A><BR><BR></TD>");
	document.write("</TR>");

	document.write("</TABLE>");

	document.write("</BODY>");
	document.write("</HTML>");
}
//----------------------------------------------------------------------------------


