// Menu horizontal
var mnuhor = '';
var mnuItems = '';
addItem ('Inicio', '/', 70);
addItem ('Tema del Mes', 'go.php?g=temas', 110);
addItem ('Boletines', 'go.php?g=boletines', 85);
addItem ('Artículos', 'go.php?g=articulos', 85);
addItem ('Eventos', 'go.php?g=eventos', 80);
addItem ('Fotos', 'Galerias', 70);
addItem ('Enlaces', 'go.php?g=enlaces', 75);

mnuhor += '<table cellpadding="0" cellspacing="0" width="776">';
mnuhor += '<tr><td bgcolor="#66CC66" background="/imagenes/submenu.gif" height="20" align="right">';
mnuhor += '<table border="0" cellspacing="0" cellpadding="0" class="menu">';
mnuhor += '<tr><-- Menu Items --></tr></table></td></tr></table>';

mnuhor = mnuhor.replace("<-- Menu Items -->", mnuItems);
document.writeln (mnuhor);

function addItem (titulo, enlace, width) {
  mnuItems += '<td width="'+width+'">|&nbsp;&nbsp;<a href="'+enlace+'"><strong>'+titulo+'</strong></a></td>';
}