function escribe (clase,texto,url) {
document.write("<a href=\""+url+"\" class=\""+clase+"\">"+texto+"</a><br>");
}

function alerta() {
alert("Sección aún sin finalizar. Vuelva a visitar la web pasados unos días,\nquizá para entonces ya esté disponible la sección que desea ;)");
}

function menu (abierto) {
document.write("<div align=center><table border=0 width=750 bgcolor=#000000 cellspacing=0 cellpadding=0><tr><td width=180><img src=../imagenes/esquina.jpg width=180 height=80></td><td width=570><a href=../noticias/index.htm><img src=../imagenes/cabecera.gif width=439 height=80 border=0></a></td></tr><tr><td width=180 background=../imagenes/fondoazul.gif bgcolor=#000040 valign=top><table border=0 width=100% cellspacing=0 cellpadding=5><tr><td width=100%>");
document.write("<hr><center><b>MENÚ DE CONTENIDOS</b></center><hr>");
escribe("menu","ZONA PERSONAL", "../personal/fotos.htm");
//if (!abierto || abierto==1) {
escribe("menu2","&nbsp;Mi curriculum&nbsp;","../personal/curriculum.htm");
escribe("menu2","&nbsp;Revista 32bits&nbsp;","../personal/32bits.htm");
escribe("menu2","&nbsp;Album de fotos&nbsp;","../personal/fotos.htm");
escribe("menu2","&nbsp;Enlaces de interés&nbsp;","../personal/enlaces.htm");
//}
escribe("menu","PROGRAMACIÓN/LINUX", "../programacion/index.htm");
//if (!abierto || abierto==1) {
escribe("menu2","&nbsp;Mis producciones Windows&nbsp;","../programacion/windows.htm");
escribe("menu2","&nbsp;Mis producciones Linux&nbsp;","../programacion/linux.htm");
escribe("menu3","&nbsp;Zona de descarga&nbsp;","javascript:alerta()");
escribe("menu2","&nbsp;Enlaces de interés&nbsp;","../programacion/enlaces.htm");
//}
escribe("menu","SCRIPTING IRC", "../script/index.htm");
//if (!abierto || abierto==2) {
escribe("menu3","&nbsp;Curso B&aacute;sico de Scripting&nbsp;","javascript:alerta()");
escribe("menu3","&nbsp;Ataques y protección&nbsp;","javascript:alerta()");
escribe("menu3","&nbsp;Zona de descarga&nbsp;","javascript:alerta()");
escribe("menu2","&nbsp;Enlaces de interés&nbsp;","../script/enlaces.htm");
//}
escribe("menu","COUNTER STRIKE", "../cstrike/index.htm");
//if (!abierto || abierto==3) {
escribe("menu3","&nbsp;¿Qué es Counter-Strike?&nbsp;","javascript:alerta()");
escribe("menu3","&nbsp;Clan [L.C.S.]&nbsp;","javascript:alerta()");
escribe("menu3","&nbsp;Clan [M.T.N.]&nbsp;","javascript:alerta()");
escribe("menu2","&nbsp;Los mejores trucos&nbsp;","../cstrike/trucos.htm");
escribe("menu2","&nbsp;Humor Counter-Strike&nbsp;","../cstrike/humor.htm");
escribe("menu3","&nbsp;Zona de descarga&nbsp;","javascript:alerta()");
escribe("menu2","&nbsp;Enlaces de interés&nbsp;","../cstrike/enlaces.htm");
//}
escribe("menu","DIBUJOS/ANIME/MANGA", "../manga/index.htm");
//if (!abierto || abierto==4) {
escribe("menu3","&nbsp;Neon Genesis Evangelion&nbsp;","javascript:alerta()");
escribe("menu3","&nbsp;South Park&nbsp;","javascript:alerta()");
escribe("menu3","&nbsp;Bola de Dragón&nbsp;","javascript:alerta()");
escribe("menu3","&nbsp;Viento de Amnesia&nbsp;","javascript:alerta()");
escribe("menu3","&nbsp;Ghost in the Shell&nbsp;","javascript:alerta()");
escribe("menu3","&nbsp;Ranma 1/2&nbsp;","javascript:alerta()");
escribe("menu3","&nbsp;Akira&nbsp;","javascript:alerta()");
escribe("menu3","&nbsp;AnimeVideos&nbsp;","javascript:alerta()");
//}
escribe("menu","ZONA DivX ;-)", "../divx/index.htm");
//if (!abierto || abierto==5) {
escribe("menu3","&nbsp;Historia&nbsp;","javascript:alerta()");
escribe("menu3","&nbsp;Codecs&nbsp;","javascript:alerta()");
escribe("menu3","&nbsp;Players y Subtítulos&nbsp;","javascript:alerta()");
escribe("menu2","&nbsp;Enlaces de interés&nbsp;","../divx/enlaces.htm");
//}
document.write("</td></tr></table></td><td width=570 valign=top><table border=0 width=100% cellspacing=0 cellpadding=10><tr><td width=100%>");
}

function finmenu(fecha) {
document.write("<br><center><font face=Tahoma><b><small><small>Página realizada por <a href=mailto:redstar_ARROBA_linaresdigital.com class=enlaces>RedStar</a><br>Última modificación: "+fecha+"</small></small></b></font><br>&nbsp;</center></td></tr></table></td></tr></table></center></div>");
}

function cuadro(titulo,fecha,contenido) {
document.write("<table border=0 width=100% bgcolor=#800000 cellspacing=2 cellpadding=4><tr><td width=80% bgcolor=#500000 background=../imagenes/fondorojo.gif><font face=Tahoma color=#FFFF00><b>"+titulo+"</b></font></td><td width=20% bgcolor=#500000 background=../imagenes/fondorojo.gif align=center><font face=Tahoma color=#00FFFF><small><b>"+fecha+"</b></small></font></td></tr><tr><td width=100% colspan=2 bgcolor=#000050 background=../imagenes/fondoazul.gif><font face=Tahoma color=#FFFFFF>"+contenido+"</font></td></tr></table>");
}

function ventana(url,id,x,y,an,al) {
window.open(url, id, "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+an+",height="+al+",left="+x+",top="+y);
}

function ventanaswf(url,an,al) {
ventana("http://www.terra.es/personal8/953653102/flash/"+url+".htm",'Humor',"","",an,al);
}
