function pintarCeldaSeccion(colorPrimario, colorSecundario, rutaImagenes) {
	with(document) {
	  if (navigator.appName.indexOf('Netscape')>=0)
	  	write('	<td height="20" align="center" class="celdaSeccionMenu" bgcolor="'+colorPrimario+'" background="'+rutaImagenes+'menuSeccionesFondoCelda.png" height="20">');
	  else if (navigator.appName.indexOf('Explorer')>=0)
	  	write('	<td height="20" align="center" class="celdaSeccionMenu" style="filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=\'' + colorPrimario + '\', EndColorStr=\'' + variarColor(colorPrimario,-60,-60,-60) + '\')">');
	  else
	  	write('	<td height="20" align="center" class="celdaSeccionMenu" bgcolor="' + colorPrimario + '">');
	}
}

function pintarCeldaSuperSeccion(colorPrimario, colorSecundario, rutaImagenes) {
	with(document) {
	  if (navigator.appName.indexOf('Netscape')>=0)
	  	write('	<td align="center" height="20" style="border:solid 1px #004BE7;border-top-width:0px" bgcolor="' + colorSecundario + '" background="'+rutaImagenes+'menuSeccionesFondoSuperSecc.png">');
	  else if (navigator.appName.indexOf('Explorer')>=0)
	  	write('	<td align="center" height="20" style="border:solid 1px #004BE7;border-top-width:0px" style="filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=\'' + colorSecundario + '\', EndColorStr=\'white\')">');
	  else
	  	write('	<td height="20" align="center" style="border:solid 1px #004BE7;border-top-width:0px" bgcolor="' + colorSecundario + '">');
	}
}

function compruebaBuscadorJuegos(formu) {
	if (formu.titulo.value=='Buscar juego')
		formu.titulo.value='';
	return true;
}

function pintarMenu(plataformas, rutaImagenes, colorPrimario, colorSecundario, seccion) {
	with (document) {
		write('<div id="menuPagina" align="center" style="position:absolute;top:221px;left:1px">');
	  write('<table cellSpacing="0" cellPadding="0" width="124" border="0" bgcolor="'+colorSecundario+'">');
	  write('	<tr>');
	  write('		<td>');
	  write('			<img src="'+rutaImagenes+'menuBuscadorArriba.gif"><br>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<form action="/juegos" name="buscadorJuegos" onSubmit="return compruebaBuscadorJuegos(this)">');
	  write('	<tr>');
	  write('		<td background="'+rutaImagenes+'menuBuscadorFondo.gif">');
	  write('			<img src="'+rutaImagenes+'b.gif" width="2">');
	  write('			<input type="text" value="Buscar juego" onFocus="this.value=\'\'" size="15" name="titulo" class="formularioBuscadorMenu" style="color:'+colorPrimario+';border-color:'+colorPrimario+'">');
	  write('			<input type="image" src="'+rutaImagenes+'menuBuscadorBoton.gif" align="absmiddle">');
	  write('			<br>');
	  write('			<img src="'+rutaImagenes+'b.gif" width="2">');
	  write('			<select name="plataforma" class="formularioBuscadorMenu" style="color:'+colorPrimario+';border-color:'+colorPrimario+'">');
	  write('				<option value="">Elige plataforma</option>');
	  for(var i=0;i<plataformas.length;i++) {
	  	write('			<option value="'+plataformas[i]+'">'+plataformas[i]+'</option>');
		}
	  write('			</select>');
	  write('			<br>');
	  write('			<img src="'+rutaImagenes+'b.gif" width="2">');
	  write('			<a href="/juegos?busquedaAvanzada=true" class="linkBuscadorMenu" style="color:'+colorPrimario+'">Búsqueda Avanzada >></a>');
	  write('		</td>');
	  write('	</tr>');
	  write('	</form>');
	  write('	<tr>');
	  write('		<td>');
	  write('			<img src="'+rutaImagenes+'menuBuscadorAbajo.gif"><br>');
	  write('		</td>');
	  write('	</tr>');
	  write('</table>');
	  write('<img src="'+rutaImagenes+'b.gif" height="3">');
	  write('<table cellSpacing="0" cellPadding="0" width="117" border="0" bgcolor="'+colorSecundario+'" background="'+rutaImagenes+'menuSeccionesFondo.gif">');
	  write('	<tr>');
	  write('		<td>');
	  write('			<img src="'+rutaImagenes+'menuSeccionesArriba.gif"><br>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSuperSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<font class="superSeccionMenu" style="color:'+colorPrimario+'">SECCIONES</font>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<a href="/" class="seccionMenu">PORTADA</a>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<a href="http://www.toomai.es/index_jeux.html?affil=10978" class="seccionMenu" target="_blank" title="Tienda de juegos por descarga"><font color="'+colorSecundario+'" style="font-size:11px"><b>DESCARGA DE JUEGOS</b></font></a>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<a href="/noticias" class="seccionMenu">NOTICIAS</a>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<a href="/analisis" class="seccionMenu">ANÁLISIS</a>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<a href="/avances" class="seccionMenu">AVANCES</a>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<a href="/humor" class="seccionMenu">HUMOR</a>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<a href="/editorial" class="seccionMenu">EDITORIAL</a>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<a href="/reportajes" class="seccionMenu">REPORTAJES</a>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<a href="/trucos" class="seccionMenu">TRUCOS</a>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<a href="/guias" class="seccionMenu">GUÍAS</a>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSuperSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<font class="superSeccionMenu" style="color:'+colorPrimario+'">COMUNIDAD</font>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<a href="/foros" class="seccionMenu">FOROS</a>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<a href="/mercadillo" class="seccionMenu">MERCADILLO</a>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<a href="/opinion" class="seccionMenu">OPINIÓN</a>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<a href="/encuestas" class="seccionMenu">ENCUESTAS</a>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<a href="/usuarios" class="seccionMenu">USUARIOS</a>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSuperSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<font class="superSeccionMenu" style="color:'+colorPrimario+'">BASES DE DATOS</font>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<a href="/juegos" class="seccionMenu">JUEGOS</a>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<a href="/lanzamientos" class="seccionMenu">LANZAMIENTOS</a>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<a href="/top" class="seccionMenu">TOP JUEGOS</a>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<a href="/imagenes" class="seccionMenu">IMÁGENES</a>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<a href="/videos" class="seccionMenu">VÍDEOS</a>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  pintarCeldaSeccion(colorPrimario, colorSecundario, rutaImagenes);
	  write('			<a href="/companias" class="seccionMenu">COMPAÑÍAS</a>');
	  write('		</td>');
	  write('	</tr>');
	  write('	<tr>');
	  write('		<td>');
	  write('			<img src="'+rutaImagenes+'menuSeccionesAbajo.gif"><br>');
	  write('		</td>');
	  write('	</tr>');
	  write('</table>');
	  write('<img src="'+rutaImagenes+'b.gif" height="5"><br>');
		write('<a href="http://www.sortes.com" target="_blank"><img src="' + rutaImagenes + 'sortes.png" border="0" style="background-color:white"></a><br>');
	  write('<img src="'+rutaImagenes+'b.gif" height="5">');
	  write('<table cellSpacing="0" cellPadding="0" width="124" border="0" bgcolor="'+colorPrimario+'">');
	  write('	<tr>');
	  write('		<td>');
	  write('			<img src="'+rutaImagenes+'menuPublicidadArriba.gif"><br>');
	  write('		</td>');
	  write('	</tr>');
		write('	<tr>');
		write('		<td bgcolor="'+colorPrimario+'">');
//		write('			<br>');
//		write('			<div align="center"><iframe align="center" width="120" height="120" frameborder="0" src="/anuncio.jsp?situacion=Lateral 120x120" marginheight="0" marginwidth="0" scrolling="no"></iframe></div>');
		write('			<br>');
		write('			<div align="center">');
	  if (seccion=='Home') {
			sas_pageid='9644/72038';		// Page : antevenio/VICIOJUEGOS/home
			sas_formatid=3853;			// Format : 728x90 728x90
			sas_target=wlrcmd;                    // Targeting
			SmartAdServer_iframe(sas_pageid,sas_formatid,sas_target,120,600);
	  } else if (seccion='Noticias') {
			sas_pageid='9644/72040';		// Page : antevenio/VICIOJUEGOS/home
			sas_formatid=3853;			// Format : 728x90 728x90
			sas_target=wlrcmd;                    // Targeting
			SmartAdServer_iframe(sas_pageid,sas_formatid,sas_target,120,600);
	  } else if (seccion='Guías') {
			sas_pageid='9644/72037';		// Page : antevenio/VICIOJUEGOS/home
			sas_formatid=3853;			// Format : 728x90 728x90
			sas_target=wlrcmd;                    // Targeting
			SmartAdServer_iframe(sas_pageid,sas_formatid,sas_target,120,600);
	  } else if (seccion='Avances') {
			sas_pageid='9644/72036';		// Page : antevenio/VICIOJUEGOS/home
			sas_formatid=3853;			// Format : 728x90 728x90
			sas_target=wlrcmd;                    // Targeting
			SmartAdServer_iframe(sas_pageid,sas_formatid,sas_target,120,600);
	  } else if (seccion='Análisis') {
			sas_pageid='9644/72035';		// Page : antevenio/VICIOJUEGOS/home
			sas_formatid=3853;			// Format : 728x90 728x90
			sas_target=wlrcmd;                    // Targeting
			SmartAdServer_iframe(sas_pageid,sas_formatid,sas_target,120,600);
	  } else if (seccion='Lanzamientos') {
			sas_pageid='9644/72039';		// Page : antevenio/VICIOJUEGOS/home
			sas_formatid=3853;			// Format : 728x90 728x90
			sas_target=wlrcmd;                    // Targeting
			SmartAdServer_iframe(sas_pageid,sas_formatid,sas_target,120,600);
	  } else {
			sas_pageid='9644/72041';		// Page : antevenio/VICIOJUEGOS/home
			sas_formatid=3853;			// Format : 728x90 728x90
			sas_target=wlrcmd;                    // Targeting
			SmartAdServer_iframe(sas_pageid,sas_formatid,sas_target,120,600);
	  }
//		write('				<iframe align="center" width="120" height="600" frameborder="0" src="/anuncio.jsp?situacion=Lateral 120x600" marginheight="0" marginwidth="0" scrolling="no"></iframe>');
		write('			</div>');
		write('		 	<br>');
		write('		</td>');
		write('	</tr>');
	  write('	<tr>');
	  write('		<td>');
	  write('			<img src="'+rutaImagenes+'menuPublicidadAbajo.gif"><br>');
	  write('		</td>');
	  write('	</tr>');
	  write('</table>');
	  write('</div>');
	  document.getElementById('menuPagina').style.left=document.getElementById('cabeceraPagina').style.left;
	}
}