function cabecera (id_c)
{
document.write('<!-- Cabecera con iconos de la página -->' +
'<table width="760" border="0" cellpadding="0" cellspacing="0" class="fondo_su">'+
'<tr>' +
	'<td colspan="5" bgcolor="#ffffff"><img src="imagenes/img/punto.gif" width="760" height="1" alt=""></td>' +
'</tr>' +
'<tr>');

document.write('<td width="160" valign="top"><a href="index.html"><img src="imagenes/logos/eoilogo.gif" alt="EOI Logo" border="0" width="160"></a></td>');

document.write('<!-- separador vertical con sombra -->' +
'<td width="3" class="sombra" valign="top"><img src="imagenes/img/punto.gif" alt="" width="3" height="1" border="0"></td>' +
'<!-- fin de separador vertical con sombra -->');

document.write(
'<!-- Idiomas -->' +
'<td valign="top" width="320" >' +
'</td>' +
'<!-- Fin de Idiomas -->' +

'<!-- Fecha y Buscador -->' +
'<td align="right" width="276" valign="top" style="filter:progid:DXImageTransform.Microsoft.Gradient(gradientType=1,startColorStr=#000080,endColorStr=#9496CE)">' +
	'<table border="0" width="169" cellpadding="0" cellspacing="0" align="right">' +
	'<tr><td height="4" valign="top"><img src="imagenes/img/punto.gif" height="4"></td></tr>' +
	'<tr>' +
		'<td align="center" valign="middle">');
Poner_Dia();
document.write('<br><br><a href="http://www.madrid.org"><img src="imagenes/logos/logocm.gif" alt="CM Logo" border="0"></a> </td>' +
	'</tr>' +
	'<tr><td height="5" valign="top"><img src="imagenes/img/punto.gif" height="8"></td></tr>' +
	'<tr>' +
		'<td valign="bottom">' +
		'</td>' +
	'</tr>' +
	'</table>' +

'</td>' +
'<!-- fin de Fecha y Buscador -->' +

'<td width="1"><img src="imagenes/img/punto.gif" width="1"alt=""></td>' +

'</tr>' +
'<tr>' +
'<td colspan="5" bgcolor="#F7AE00"><img src="imagenes/img/punto.gif" width="760" height="1" alt=""></td>' +
'</tr>' +
'</table>');
document.write('<!-- Fin de Cabecera con iconos de la página -->');
}

function menu_superior(id_ms)
{
document.write('<!- Menú superior -->' +
'<table width="760" border="0" cellpadding="0" cellspacing="0" bgcolor="#000080">' +
'<tr>' +
	'<td height="1"><img src="imagenes/img/punto.gif" width="760" height="1" alt=""></td>' +
'</tr>' +
'</table>' +
'<!- Fin de Menú superior -->');
}

function menu_inferior(id_mi)
{
document.write('<!- Menú inferior -->' +
'<table width="760" border="0" cellpadding="0" cellspacing="0">' +
'<tr><td colspan="2" height="1" bgcolor="#F7AE00"><img src="imagenes/img/punto.gif" width="760" height="1" alt=""></td></tr>' +
'<tr>' +
'<td width="160"><center><a href="politica.html" class="contenidospp">Política de Responsabilidad</a><br>');
	poner_timestamp();
document.write(
'</center></td>' +
'<TD width="600" align="right" class="copyright">&#169;&nbsp;EOI Embajadores&nbsp;</TD>' +
'</tr>' +
'</table>' +
'<!- Fin de Menú inferior -->');
}

function menu_izquierdo(elemento)
{
	var	numero = 0;
	numero = parseInt(elemento);
	if (numero > 3)
		numero = numero - 1;
    elemento = numero+'';

document.write('<!-- Menu izquierdo -->' +
'<table width="160" cellspacing="0" cellpadding="0" border="0">' +
'<tr>' +
'<td width="1" valign="top"><img src="imagenes/img/punto.gif" alt="" border="0" width="1"></td>' +
'<td width="159" valign="top">' +
'<table width="159" cellspacing="0" cellpadding="0" border="0">' +
'<tr>' +
'<td width="159" valign="top">');

left_menu(elemento);

document.write('</td>' +
'</tr>' +
'</table>' +
'</td>' +
'</tr>' +
'</table>' +
'<!-- fin de menú iquierdo -->');
}

function Poner_Dia(){
browser = navigator.appName;
fecha = new Date()
dia = fecha.getDay()
if (dia==0) { dial = "Domingo"}
else if (dia==1) {dial = "Lunes"}
else if (dia==2) {dial = "Martes"}
else if (dia==3) {dial = "Miércoles"}
else if (dia==4) {dial = "Jueves"}
else if (dia==5) {dial = "Viernes"}
else if (dia==6) {dial = "Sábado"}
else {dial = "algo esta mal"}
dian = fecha.getDate()
meso = fecha.getMonth()
if (meso==0) {mes = "Enero"}
else if (meso==1) {mes = "Febrero"}
else if (meso==2) {mes = "Marzo"}
else if (meso==3) {mes = "Abril"}
else if (meso==4) {mes = "Mayo"}
else if (meso==5) {mes = "Junio"}
else if (meso==6) {mes = "Julio"}
else if (meso==7) {mes = "Agosto"}
else if (meso==8) {mes = "Septiembre"}
else if (meso==9) {mes = "Octubre"}
else if (meso==10) {mes = "Noviembre"}
else if (meso==11) {mes = "Diciembre"}
ann = fecha.getYear()
if (browser == "Netscape")
{
	ann = ann + 1900
}
	  retorno = dial + ", " + dian + " " + mes + " " +  ann

document.write('<span class="dia"><b>' + retorno + '</b><\/font><\/span>')
}

function poner_timestamp()
{
	var date = new Date(document.lastModified);
//	document.write('<span class="timestamp">&nbsp;&nbsp;&nbsp;' + date.getDate() + '/' + (date.getMonth()+ 1) + '/' + date.getYear() + '<\/span>'); 
	document.write('<span class="timestamp">&nbsp;&nbsp;&nbsp;' + date.getYear() + '/' + (date.getMonth()+ 1) + '/' + date.getDate() + '<\/span>'); 
}
