//----------------------------------------------------------------------------------


//----------------------------------------------------------------------------------
function abreVentana( url, nombreVentana, propiedades ) 
{ 
  ventana = window.open( url, nombreVentana, propiedades );
  // ventana.focus();
}
//----------------------------------------------------------------------------------

function escribeCabecera(nivel, tipoPagina) {
	// tipoPagina es P apra portada y R para el resto de páginas genéricas del web
	var dir_ruta="./";
	if (nivel==2) dir_ruta="../";
	else if (nivel==3) dir_ruta="../../";

	document.write('<div id="contenedor">');	
	document.write('<div id="barranav0">');	
	document.write('	<a href="http://www.pce.es" class="enlacenav0">PCE.es</a>');	
	document.write('	<a href="mailto:comitefederal@pce.es" class="enlacenav0">contactar</a>');	
	document.write('	<a href="mailto:prensa@pce.es" class="enlacenav0">prensa</a>');	
	document.write('</div> <!-- barranav0 -->');	

	var sufijo="";
	if (tipoPagina=="P") sufijo="Portada";
	
	document.write('<div id="cabecera' + sufijo + '">');	
	if (tipoPagina=="P") {
		document.write('<div style="text-align:right;"><img src="img/cabPortada_01.gif" width="700" height="300" border="0" hspace="0" vspace="0"/></div>');
	}
	else {
		document.write('<div style="text-align:right;"><a href="index.htm" ><img src="img/cabWeb_01.gif" width="900" height="80" border="0" hspace="0" vspace="0"/></a></div>');
	}
	document.write('</div>');	
	

	document.write('<div id="barranav">');	
	document.write('	<div style="width:220;float:right;"><form method="GET" action="http://www.google.com/search" target="_blank"><input type="hidden" name="hl" value="es"><input type="hidden" name="as_sitesearch" value="lafiestadelpce.es"><input type="text" name="q" style="width:120px;height:17;float:left;font-size:11px;margin:0px 4px 0px 0px;border-style:solid; border-width:1px; border-color:#cccccc;" maxlength="255" value=""><input type="image" name="btnG" VALUE="BUSCAR" src="img/buscar.png" style="margin:0px 0px 0px 0px;"/></div></form>');	 
	document.write('	<a href="' + dir_ruta + 'index.htm" class="enlacenav">portada</a>');	 
	document.write('	<a href="#" class="menuanchorclass" rel="anylinkmenu5">info</a>');
	document.write('	<a href="#" class="menuanchorclass" rel="anylinkmenu2">actividades</a>');	 
	document.write('	<a href="#" class="menuanchorclass" rel="anylinkmenu1">conciertos</a>');	 
	document.write('	<a href="#" class="menuanchorclass" rel="anylinkmenu3">fotos</a>');	
	document.write('	<a href="#" class="menuanchorclass" rel="anylinkmenu7">vídeos</a>');	
	document.write('	<a href="#" class="menuanchorclass" rel="anylinkmenu4">en Córdoba</a>');	
	document.write('	<a href="#" class="menuanchorclass" rel="anylinkmenu6">fiestas anteriores</a>');
	document.write('</div> <!-- barranav -->');	

	//escribeBarraAvisos();
}
//----------------------------------------------------------------------------------

function escribeBarraAvisos() {
		// barra de novedades, avisos rápidos...
	document.write('	<div id="pie" style="font-size:14px;line-height:24px;height:50px;font-weight:bold;margin-bottom:7px; padding-top:5px;padding-bottom:5px;"><a href="index.htm" ><img src="img/dosComunistas.gif" align="left" width="45" height="50" border="0" hspace="15" vspace="0"/></a>');	
	document.write('  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Homenaje a Marcos Ana&nbsp;<a href="cronicas.htm#MarcosAna" class="enlace7">crónica</a>&nbsp;<a href="fotos.htm?IdTema=3" class="enlace7">fotos</a>&nbsp;<a href="video.htm?IdTema=4" class="enlace7">vídeos</a>&nbsp;');	
	document.write('  ·&nbsp;&nbsp;Seguimiento de la Fiesta&nbsp;&nbsp;<a href="prensa.htm" class="enlace7">prensa</a>&nbsp;<a href="blogs.htm" class="enlace7">blogs</a>&nbsp;<a href="cronicas.htm" class="enlace7">crónicas</a>&nbsp;<a href="video.htm" class="enlace7">vídeos</a>&nbsp;<a href="fotos.htm?IdTema=5" class="enlace7">fotos</a><br/>Bonos solidarios&nbsp;&nbsp;<a href="bonos.htm#sorteoBonos" class="enlace7">sorteo</a>&nbsp;&nbsp;');	
	document.write('  ·&nbsp;&nbsp;Mitin Central&nbsp;&nbsp;<a href="cronicas.htm#mitin" class="enlace7">crónica</a>&nbsp;<a href="mitin.htm#frutos" class="enlace7">Intervención de Paco Frutos</a>&nbsp;<a href="mitin.htm#iglesia" class="enlace7">Intervención de Juan Iglesia</a>&nbsp;<a href="mitin.htm#mola" class="enlace7">Intervención de Maite Mola</a>&nbsp;<a href="fotos.htm?IdTema=4" class="enlace7">fotos</a>');	
	document.write('  </div> ');	
	
}
//----------------------------------------------------------------------------------

function destacadoLibros(parametrosParticulares) {
	//document.write('	<div id="destacado" style="background-image:url(img/fondo_libros.jpg); background-repeat:no-repeat; background-color:#ffffff;' + parametrosParticulares + '">');	
	//document.write('	<p style="text-align:left;line-height:25px;padding:0px 0px 0px 20px;"><a href="cultura_03.htm" style="text-decoration:none;font-family: \'Trebuchet MS\',Verdana,Georgia,Arial;font-size:22px;letter-spacing:1px;font-weight:bold;color:#CC0000;">Presentación<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;de <span style="font-size:32px;">libros</span><br/>Fiesta PCE’09</a></p>');	
	//document.write('	</div>');	
	document.write('	<div id="destacado" style="background-color:#cc0000;width:240px;height:120px;' + parametrosParticulares + '">');	
	document.write('	<a href="cultura_03.htm"><img src="img/libros.gif" border="0" hspace="0" vspace="0" title="Libros"/></a>');	
	document.write('	</div>');	

}

//----------------------------------------------------------------------------------

function destacadoDeMujeres(parametrosParticulares) {
	document.write('	<div id="destacado" style="background-image:url(img/fondo_teatro.gif); background-repeat:no-repeat; background-color:#ffffff;' + parametrosParticulares + '">');	
	document.write('	<p style="text-align:center;line-height:25px;padding:0px 0px 0px 10px;"><a href="cultura_04.htm" style="text-decoration:none;font-family: \'Trebuchet MS\',Verdana,Georgia,Arial;font-size:22px;letter-spacing:1px;font-weight:bold;color:#660000;"><span style="font-size:32px;">De mujeres</span><br/>&nbsp;<br/>(collage escénico)</a></p>');	
	document.write('	</div>');	
}

//----------------------------------------------------------------------------------

function destacadoIntendencia(parametrosParticulares) {
	document.write('	<div id="destacado" style="background-image:url(img/cordoba_01.gif); background-repeat:no-repeat; background-color:#ffffff;' + parametrosParticulares + '">');	
	document.write('	<span style="text-align:left;line-height:23px;padding:0px 0px 0px 10px;"><a href="intendencia.htm" style="text-decoration:none;font-family: \'Trebuchet MS\',Verdana,Georgia,Arial;font-size:20px;letter-spacing:1px;font-weight:bold;color:#CC0000;">Plano de la Fiesta</a><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="intendencia.htm#recinto" style="text-decoration:none;font-family: \'Trebuchet MS\',Verdana,Georgia,Arial;font-size:21px;letter-spacing:1px;font-weight:bold;color:#CC0000;line-height:30px;">Situación</a><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="intendencia.htm#alojamiento" style="text-decoration:none;font-family: \'Trebuchet MS\',Verdana,Georgia,Arial;font-size:22px;letter-spacing:1px;font-weight:bold;color:#CC0000;line-height:30px;">Alojamiento</a></span>');	
	document.write('	</div>');	
}

//----------------------------------------------------------------------------------

function destacadoCartel(parametrosParticulares) {
	document.write('	<div id="destacado" style="background-color:#798E17;' + parametrosParticulares + '">');	
	//document.write('	<a href=\'javascript:abreVentana("img/cartelFiestaPCE2009.jpg","NV","width=630,height=860,resizable=no,toolbar=no,menubar=no,directories=no,location=no,scrollbars=no,status=no")\'><img src="img/cartelFiestaPCE2009_02.gif" border="0" hspace="0" width="219" height="100" vspace="0" title="Cartel Fiesta PCE 2009"/></a>');	
	document.write('	<a href="cartel.htm"><img src="img/cartelFiestaPCE2009_02.gif" border="0" hspace="0" width="219" height="100" vspace="0" title="Cartel Fiesta PCE 2009"/></a>');	
	document.write('	</div>');	
}
//----------------------------------------------------------------------------------

function destacadoEntradas(parametrosParticulares) {
	document.write('	<div id="destacado" style="background-image:url(img/bono_01.gif);background-color:#cc0000;' + parametrosParticulares + '">');	
	document.write('	<div style="margin:-5px 0px 0px 0px; text-decoration:none;text-align:right;font-family: \'Trebuchet MS\',Verdana,Georgia,Arial;font-size:18px;letter-spacing:0.02em;font-weight:bold;color:#ff0000;">ENTRADA LIBRE</div>');	
	document.write('	<div style="text-align:center;padding-top:5px;"><a href="bonos.htm" style="text-decoration:none;text-align:center;font-family: \'Trebuchet MS\',Verdana,Georgia,Arial;font-size:20px;letter-spacing:0.05em;font-weight:bold;color:#ffffff;line-height:20px;">Bonos solidarios<br/>3€</a></div>');	
	document.write('	</div>');	
}
//----------------------------------------------------------------------------------

function destacadoConciertos(parametrosParticulares) {
	document.write('	<div id="destacado" style="background-image:url(img/conciertos_02.jpg);background-color:#000000;height:200px;' + parametrosParticulares + '">');	
	document.write('	<div style="margin:-5px 0px 0px 0px; text-decoration:none;text-align:right;font-family: \'Trebuchet MS\',Verdana,Georgia,Arial;font-size:18px;letter-spacing:0.02em;font-weight:bold;color:#ff0000;"><a xhref="conciertos_01.htm" style="text-decoration:none;text-align:center;font-family: \'Trebuchet MS\',Verdana,Georgia,Arial;font-size:20px;letter-spacing:0.01em;font-weight:bold;color:#ffffff;">Conciertos</a></div>');	
	document.write('	<a href="conciertos_01.htm"><img src="img/conciertos/reincidentes_03.gif" border="0" width="230"   style="margin:12px 0px 0px 0px;"/></a>');	
	document.write('	<a href="conciertos_04.htm"><img src="img/conciertos/jazzoil_04.jpg" border="0" width="87"   style="margin:2px 0px 0px 0px;"/></a><a href="conciertos_05.htm"><img src="img/conciertos/jazzpacho_04.jpg" border="0" width="143"   style="margin:2px 0px 0px 0px;"/></a>');
	document.write('	<a href="conciertos_02.htm"><img src="img/conciertos/kikoveneno_04.gif" border="0" width="230"   style="margin:8px 0px 0px 0px;"/></a>');
	document.write('	<a href="conciertos_03.htm"><img src="img/conciertos/cabrero_juanpinilla_03.gif" border="0" width="230"   style="margin:8px 0px 3px 0px;"/></a>');
	document.write('	</div>');	
}
//----------------------------------------------------------------------------------

function destacadoActividades_01(parametrosParticulares) {

	document.write('<div id="destacado" style="background-image:url(img/fondo/fondo_01.jpg); background-repeat:no-repeat;background-color:#000000;' + parametrosParticulares + '">');	
	document.write('	<div style="letter-spacing:1px;line-height:16px;font-weight:bold;font-size:14px;margin:0px 5px 5px 20px;"><a href="programa_01.htm" style="text-decoration:none;text-align:center;font-family: \'Trebuchet MS\',Verdana,Georgia,Arial;font-size:24px;letter-spacing:0.1em;font-weight:bold;color:#E90708;line-height:22px;">ACTIVIDADES</a></div>');	
	document.write('	<div class="laffScheduleGrid"><a href="programa_01.htm#20090918" class="laffScheduleItem"><label>Vie</label><span>18</span></a> <a href="programa_01.htm#20090919" class="laffScheduleItem"><label>Sab</label><span>19</span></a> <a href="programa_01.htm#20090920" class="laffScheduleItem"><label>Dom</label><span>20</span></a></div>');	
	document.write('</div>');	
}
//----------------------------------------------------------------------------------

function destacadoProyecciones(parametrosParticulares) {
	document.write('	<div id="destacado" style="background-image:url(img/actividades_01.jpg);background-color:#798E17;' + parametrosParticulares + '">');	
	document.write('	<p style="text-align:center;margin-top:30px;"><a href="cultura_05.htm" style="text-decoration:none;text-align:center;font-family: \'Trebuchet MS\',Verdana,Georgia,Arial;font-size:24px;letter-spacing:0.1em;font-weight:bold;color:#e60921;line-height:23px;">Proyecciones<br/>documentales<br/>películas</a></p>');	
	document.write('	</div>');	
}
//----------------------------------------------------------------------------------

function destacadoMarcosAna(parametrosParticulares) {
	//document.write('	<div id="destacado" style="background-image:url(img/cultura_01.jpg);background-color:#ca79a4;' + parametrosParticulares + '">');	
	//document.write('	<p style="text-align:center;margin:0px 0px 0px 0px;"><a href="cultura_01.htm"><img src="img/actividades/marcosana_03.jpg" border="0" hspace="0" vspace="0" title="Marcos Ana"/></a> <a href="cultura_01.htm" style="text-decoration:none;text-align:center;font-family: \'Trebuchet MS\',Verdana,Georgia,Arial;font-size:23px;letter-spacing:0;font-weight:bold;color:#E90708;line-height:25px;">Homenaje a<br/><span style="font-size:32px;">Marcos Ana</span></a></p>');	
	//document.write('	</div>');	
	document.write('	<div id="destacado" style="background-color:#cc0000;width:240px;height:120px;' + parametrosParticulares + '">');	
	document.write('	<a href="cultura_01.htm"><img src="img/MarcosAna.gif" border="0" hspace="0" vspace="0" title="Homenaje a Marcos Ana"/></a>');	
	document.write('	</div>');	

}
//----------------------------------------------------------------------------------

function destacadoChirigotas(parametrosParticulares) {
	document.write('	<div id="destacado" style="background-image:url(img/cultura_02.jpg);background-color:#798E17;' + parametrosParticulares + '">');	
	document.write('	<p style="text-align:center;margin:0px 0px 0px 0px;"><a href="cultura_02.htm" style="text-decoration:none;text-align:center;font-family: \'Trebuchet MS\',Verdana,Georgia,Arial;font-size:18px;letter-spacing:0;font-weight:bold;color:#660000;line-height:21px;">Comparsas y Chirigotas<br/>de Cádiz y Córdoba</a></p>');	
	document.write('	</div>');	
}
//----------------------------------------------------------------------------------

function destacadoMovilizate(imgCartel, parametrosParticulares) {
	document.write('	<div id="destacado" style="background-color:#cccccc;' + parametrosParticulares + '">');	
	document.write('	<a href="http://nopagueslacrisis.org/"><img src="' + imgCartel + '" border="0" hspace="0" vspace="0" title="nopagueslacrisis.org"/></a>');	
	document.write('	</div>');	
}
//----------------------------------------------------------------------------------

function destacadoFacebook(parametrosParticulares) {
	document.write('	<div id="destacado" style="background-color:#cccccc;width:240px;height:120px;' + parametrosParticulares + '">');	
	document.write('	<a href="http://www.facebook.es/fiestapce"><img src="img/facebook_fiestapce.gif" border="0" hspace="0" vspace="0" title="fiesta PCE en facebook"/></a>');	
	document.write('	</div>');	
}

//----------------------------------------------------------------------------------

function destacadoMitin(parametrosParticulares) {
	document.write('	<div id="destacado" style="background-color:#cccccc;width:240px;height:120px;' + parametrosParticulares + '">');	
	document.write('	<a href="mitin.htm"><img src="img/mitin.gif" border="0" hspace="0" vspace="0" title="Mitin Central"/></a>');	
	document.write('	</div>');	
}


//----------------------------------------------------------------------------------

function destacadoAnimado(parametrosParticulares) {
	document.write('	<div id="destacado" style="background-color:#cccccc;' + parametrosParticulares + '">');	
	document.write('	<a href="index.htm"><img src="img/banners/LafiestaPCE2009_155x140_anb.gif" border="0" hspace="30" vspace="0" title="http://www.lafiestadelpce.es/" /></a>');	
	document.write('	</div>');	
}

//----------------------------------------------------------------------------------
function destacadoVideo_2(video, temaVideo, tituloTemaVideo, parametrosParticulares) {
	document.write('	<div id="destacado" style="background-color:#000000;width:240px;height:218px;' + parametrosParticulares + '">');	
	document.write('	<div style="background-color:#000000;width:230px;height:16px;padding:1px 0px 1px 10px;"><a href="video.htm?IdTema=' + temaVideo + '"  style="text-decoration:none;color:#eeeeee;font-weight:bold;margin: 0px;padding:0px 3px 0px 3px;line-height:16px;"><img src="img/videos/flechaReproduccion_peq.gif" width="18" height="14" border="0" style="padding:1px 0px 0px 0px;float:left;" title="' + tituloTemaVideo + '" />' + tituloTemaVideo + '</a></div>');
	document.write('	<object width="240" height="200"><param name="movie" value="http://www.youtube.com/v/' + video + '&hl=es&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/' + video + '&hl=es&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="240" height="200"></embed></object>');
	document.write('	</div>');	
}
//----------------------------------------------------------------------------------

function destacadoAddthis(parametrosParticulares) {
	document.write('	<div style="padding:3px 0px 3px 5px;margin:0px 0px 6px 0px;border-style:solid; border-width:2px; border-color:#666666;background-color:#eeeeee;height:16px;' + parametrosParticulares + '">');		
	//document.write('    &nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:print();"><img src="img/ico_print.gif" alt="imprimir" valign="top" title="imprimir" border=0 hspace="0" vspace="0" style="align:left;"/></a>&nbsp;');
	document.write('    <div style="line-height:14px;float:left;color:#666666;font-weight:bold;">compartir »</div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.facebook.com/share.php?u=' + location.href + '"><img src="img/ico_facebook.gif" alt="facebook" valign="top" title="facebook" border=0 hspace="4" vspace="0" style="align:left;"/></a>&nbsp;');
	document.write('    <a href="http://www.twitter.com/home?status=' + location.href + '"><img src="img/ico_twitter.gif" alt="twitter" title="twitter" border="0" hspace="0" vspace="0" style="align:left;"/></a>&nbsp;');
	document.write('    <a href="http://meneame.net/submit.php?url=' + location.href + '"><img src="img/ico_meneame.gif" alt="meneame" title="meneame" border=0 hspace="0" vspace="0"style="align:left;"/></a>&nbsp;');	
	document.write('    <a href="http://del.icio.us/post?title=&amp;url=' + location.href + '"><img src="img/ico_delicious.gif" alt="delicious" title="delicious" border="0" hspace="0" vspace="0"style="align:left;"/></a>&nbsp;');
	document.write('    <a href="http://www.digg.com/submit?url=' + location.href + '"><img src="img/ico_digg.gif" alt="digg" title="digg" border=0 hspace=0 vspace="0"/></a>');
	document.write('	</div>');
}

//----------------------------------------------------------------------------------

function escribePie(nivel) {
	var dir_ruta="./";
	if (nivel==2) dir_ruta="../";
	else if (nivel==3) dir_ruta="../../";

	document.write('	<div id="pie"><a href="http://www.pce.es" title="PCE"><img src="img/pce_05.gif" align="right" width="50" height="50" border="0" hspace="10" vspace="0"/></a><a href="index.htm" ><img src="img/dosComunistas.gif" align="right" width="45" height="50" border="0" hspace="5" vspace="0" title="Fiesta PCE"/></a></div>');	
	document.write('	<div><a href="http://www.mediatr3s.es/" style="text-decoration:none;color:#860a37;padding:0px 0px 0px 0px;font-weight:bold;">Copyright © 2009 MEDIATR3S S.Coop.Mad.</a></div>');	
	document.write('</div> <!-- contenedor -->');	
	document.write('</body>');	
	document.write('</html>');	

}
//----------------------------------------------------------------------------------
// escribeGaleria no se usa en el web desde 20090915
function escribeGaleria(idGaleria) {

	totalGalerias = 3;
	if (isNaN(idGaleria) ||  idGaleria>totalGalerias || idGaleria<1) idGaleria=2;
		switch (idGaleria+""){
			case "1": 
				tituloGaleria= 'Fotos de ediciones anteriores de la Fiesta PCE [1/2]';	
				numFotos=17;
				conTooltips=false;
				var textoFoto=new Array();
				for(i=1;i<=(numFotos);i++) textoFoto[i]=i;
				break; 
			case "2": 
				tituloGaleria= 'Fiesta PCE\'09 - Así se preparó el recinto';	
				numFotos=14;
				conTooltips=false;
				var textoFoto=new Array();
				for(i=1;i<=(numFotos);i++) textoFoto[i]=i;
				break; 
			case "3": 
				tituloGaleria= 'Fotos de ediciones anteriores de la Fiesta PCE [2/2]';	
				numFotos=17;
				conTooltips=false;
				var textoFoto=new Array();
				for(i=1;i<=(numFotos);i++) textoFoto[i]=i;
				break; 
			}
	if (conTooltips)
		$(window).bind("load", function() { 
	 		$("div#mygalone").slideView({toolTip:true})
		}); 
	else
			$(window).bind("load", function() { 
	 		$("div#mygalone").slideView()
		}); 

	document.write('	<div class="titulo1" style="margin-bottom:20px;color:#ffffff">' + tituloGaleria + '</div>');	
	document.write('	<div id="mygalone" class="svw" > ');	
	document.write('	    <ul> ');	
	
	for(i=1;i<=(numFotos);i++){
		document.write('	        <li><img alt="' + textoFoto[i] + '" src="img/fotos/' + idGaleria + '/' +  i + '.jpg" /></li>   ');	   
	}   
	document.write('	    </ul> ');	
	document.write('	</div> ');
}	

//----------------------------------------------------------------------------------
