function pintarPieForo(	idForo,
												tituloURL,
												pagina,
												rutaImagenes,
												colorPrimario,
												colorSecundario
											) {
	with (document) {
	  if (navigator.appName.indexOf('Netscape')>=0)
	  	write('<table border="0" cellpadding="0" cellspacing="0" style="border:solid 1px '+ colorPrimario +'" width="100%" bgcolor="'+colorSecundario+'" background="'+rutaImagenes+'foroCabeceraFondo.png">');
	  else if (navigator.appName.indexOf('Explorer')>=0)
	  	write('<table border="0" cellpadding="0" cellspacing="0" style="border:solid 1px '+ colorPrimario +'" width="100%" style="filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=\''+colorSecundario+'\', EndColorStr=\'' + variarColor(colorSecundario,50,50,50) + '\')">');
	  else
	  	write('<table border="0" cellpadding="0" cellspacing="0" style="border:solid 1px '+ colorPrimario +'" width="100%" bgcolor="<c:out value="${usuarioId.colorSecundario}"/>">');

	  write('  <tr>');
	  write('    <td width="100%">');
	  write('				<table width="100%" border="0" cellspacing="0" cellpadding="0">');
	  write('					<tr>');
	  write('						<td align="center" width="0%">');
	  write('							<table border="0" cellspacing="0" cellpadding="5">');
	  write('								<tr>');
	  write('									<td>');
	  write('										<img src="'+rutaImagenes+'opciones.gif"><br>');
	  write('									</td>');
	  write('									<td>');
	  write('										<a href="/opcionesForo.jsp">Opciones</a>');
	  write('									</td>');
	  write('								</tr>');
	  write('								<tr>');
	  write('									<td>');
	  write('										<img src="'+rutaImagenes+'buscar.gif"><br>');
	  write('									</td>');
	  write('									<td>');
	  write('										<a href="/buscarForo.jsp?idForo='+idForo+'">Buscar</a>');
	  write('									</td>');
	  write('								</tr>');
	  write('							</table>');
	  write('						</td>');
	  write('						<td width="100%" align="center">');
	  write('							<table border="0" cellspacing="0" cellpadding="0">');
	  write('								<tr>');
	  write('									<td align="center">');
	  write('										Ir al foro... ');
	  write('										<select class="formulario" onChange="irAlForo(this.options[selectedIndex].value, listaForos[this.options.selectedIndex-1][2])">');
	  write(' 	 									<option value="losMejores">>>Los Mejores<<</option>');
	  for (i=0;i<listaForos.length;i++) {
	    if (listaForos[i][1]==idForo)
	      var selected = 'selected';
	    if (listaForos[i][1]==0)
	      write('									<option value="'+listaForos[i][1]+'" '+selected+'>'+listaForos[i][0]+'</option>');
	    else
	      write('									<option value="'+listaForos[i][1]+'" '+selected+'>&nbsp;&nbsp;&nbsp;&nbsp;'+listaForos[i][0]+'</option>');
	    selected = '';
	  }
	  write('										</select>');
	  write('									</td>');
	  write('								</tr>');
	  write('							</table>');
	  write('						</td>');
	  write('						<td width="0%">');
	  write('							<table border="0" cellspacing="0" cellpadding="5">');
	  write('								<tr>');
	  write('									<td align="right">');
	  write('										<a href="/estadisticasForo.jsp?idForo='+idForo+'">Estadísticas</a>');
	  write('									</td>');
	  write('									<td>');
	  write('										<img src="'+rutaImagenes+'estadisticas.gif"><br>');
	  write('									</td>');
	  write('								</tr>');
		if (pagina>0) {
		  write('								<tr>');
		  write('									<td align="right">');
		  write('										<a href="/foro/'+tituloURL+'/'+idForo+'/'+pagina+'">Actualizar</a>');
		  write('									</td>');
		  write('									<td>');
		  write('										<img src="'+rutaImagenes+'actualizar.gif"><br>');
		  write('									</td>');
		  write('								</tr>');
		}
	  write('							</table>');
	  write('						</td>');
	  write('					</tr>');
	  write('				</table>');
	  write('    </td>');
	  write('  </tr>');
	  write('</table>');
	  write('<img src="'+rutaImagenes+'b.gif" height="5"><br>');
	}
}
