/* comerybeberHOME_FUNC (MANUAL) contiene la función Mostrar y ¡OJO! porque si cambia el diseño de la HOME de comerybeber, se debería cambiar "manualmente" la función Mostrar, para que quede reflejado el nuevo diseño */

function Mostrar (que,tit,mas){
	switch (que) {
	case 'bocata':
	case 'pizza': 	
	case 'pasta': 	
	case 'tapa': 	
	case 'licor':	
	case 'sin':	
		{
		if ((que == 'licor') || (que == 'sin')) var mybackground = 'h_bg_vermell';
		else mybackground = 'h_bg_groc';
		for (var i = 0; (i<eval('VEC_'+que+'_href.length'));i++) 
			{
			document.write ('	<tr>');
			document.write ('		<td width="72" valign="top" background="/comerybeber/img/'+mybackground+'.gif"><img src="/img/tb.gif" border="0" alt="" width="72" height="4"><br><a href="'+eval('VEC_'+que+'_href['+i+']')+'"><img src="'+eval('VEC_'+que+'_img['+i+']')+'" border="0" alt="'+eval('VEC_'+que+'_alt['+i+']')+'" width="72" height="60" align="absmiddle"></a>');
			document.write ('		</td>');
			document.write ('		<td width="8" valign="top"><img src="/img/tb.gif" border="0" alt="" width="8" height="4"><br><img src="/comerybeber/img/h_fletxa.gif" border="0" alt="" width="8" height="9" align="absmiddle"></td>');
			document.write ('		<td width="87" valign="top"><img src="/img/tb.gif" border="0" alt="" width="87" height="4"><br>');
			document.write ('			<a href="'+eval('VEC_'+que+'_href['+i+']')+'" class="LISTADO">'+eval('VEC_'+que+'_nombre['+i+']')+'</a>');
			document.write ('		</td>');
			document.write ('	</tr>');
			}
		}
		break;
	case 'sano':			
	case 'temporada':		
	case 'ligero':			
	case 'afrodisiaco':
		{
		/* Domingo=0, Lunes=1, Martes=2, Miercoles=3, Jueves=4, Viernes=5, Sabado=6 */		
		if ((que=='sano') || (que=='temporada'))
			{var today = new Date();
			 today = today.getDay();}		
		else var today=1;
		// INICIO tratamiento tras determinar el día a tratar...
		num_aleatorio = Math.floor(Math.random()*eval('VEC_'+que+today+'_href.length'));
		document.write ('	<tr>');
		document.write ('		<td width="72" valign="top" background="/comerybeber/img/h_bg_tronja.gif"><img src="/img/tb.gif" border="0" alt="" width="72" height="4"><br>');
		document.write ('			<a href="'+eval('VEC_'+que+today+'_href['+num_aleatorio+']')+'"><img src="'+eval('VEC_'+que+today+'_img['+num_aleatorio+']')+'" border="0" alt="'+eval('VEC_'+que+today+'_alt['+num_aleatorio+']')+'" width="72" height="60" align="absmiddle"></a>');	
		document.write ('		</td>');
		document.write ('		<td width="8" valign="top"><img src="/img/tb.gif" border="0" alt="" width="8" height="4"></td>');
		document.write ('		<td width="87" valign="top"><img src="/img/tb.gif" border="0" alt="" width="87" height="4"><br>');
		document.write ('			<a href="'+eval('VAR_'+que+today+'_href')+'" class="LISTADO"><b>'+tit+'</b></a><br>');
		for (var i = 0; (i<eval('VEC_'+que+today+'_href.length'));i++) 
			{
			document.write ('			<span class="DESTACADOBL">'+eval(i+1)+'.</span> <a href="'+eval('VEC_'+que+today+'_href['+i+']')+'" class="LISTADO">'+eval('VEC_'+que+today+'_nombre['+i+']')+'</a><br>');
			}
		document.write ('<br><span class="DESTACADOBL">[</span><a href="'+eval('VAR_'+que+'_mas')+'" class="DESTACADOBL">'+mas+'</a><span class="DESTACADOBL">]</span><br><br>');								
		document.write ('		</td>');
		document.write ('	</tr>');																	
		}
		break;
	case 'receta':		 
		{
		num_aleatorio = Math.floor(Math.random()*eval('VEC_'+que+'_href.length'));
		document.write ('	<tr>');
		document.write ('		<td width="72" valign="top" background="/comerybeber/img/h_bg_tronja.gif"><img src="/img/tb.gif" border="0" alt="" width="72" height="4"><br>');
		document.write ('			<a href="'+eval('VEC_'+que+'_href['+num_aleatorio+']')+'"><img src="'+eval('VEC_'+que+'_img['+num_aleatorio+']')+'" border="0" alt="'+eval('VEC_'+que+'_alt['+num_aleatorio+']')+'" width="72" height="60" align="absmiddle"></a><br><br>');	
		document.write ('		</td>');
		document.write ('		<td width="8" valign="top"><img src="/img/tb.gif" border="0" alt="" width="8" height="4"><br><img src="/comerybeber/img/h_fletxa.gif" border="0" alt="" width="8" height="9" align="absmiddle"></td>');
		document.write ('		<td width="87" valign="top"><img src="/img/tb.gif" border="0" alt="" width="87" height="4"><br>');
		document.write ('			<a href="'+eval('VEC_'+que+'_href['+num_aleatorio+']')+'" class="LISTADO">'+eval('VEC_'+que+'_nombre['+num_aleatorio+']')+'</a><br>');
		document.write ('<br><span class="DESTACADOBL">[</span><a href="'+eval('VAR_'+que+'_mas')+'" class="DESTACADOBL">'+mas+'</a><span class="DESTACADOBL">]</span>');			
		document.write ('		</td>');
		document.write ('	</tr>');																	
		}
		break;	
	case 'especiales':		 
		{
		num_aleatorio = Math.floor(Math.random()*eval('VEC_'+que+'_href.length'));
		document.write ('	<tr>');
		document.write ('		<td width="72" valign="top" background="/comerybeber/img/h_bg_tronja.gif"><img src="/img/tb.gif" border="0" alt="" width="72" height="4"><br>');
		document.write ('			<a href="'+eval('VEC_'+que+'_href['+num_aleatorio+']')+'"><img src="'+eval('VEC_'+que+'_img['+num_aleatorio+']')+'" border="0" alt="'+eval('VEC_'+que+'_alt['+num_aleatorio+']')+'" width="72" height="60" align="absmiddle"></a><br><br>');	
		document.write ('		</td>');
		document.write ('		<td width="8" valign="top"><img src="/img/tb.gif" border="0" alt="" width="8" height="4"><br></td>');
		document.write ('		<td width="87" valign="top"><img src="/img/tb.gif" border="0" alt="" width="87" height="4"><br>');
		document.write ('			'+eval('VAR_'+que+'_tit')+'<br>');
		document.write ('<br><span class="DESTACADOBL">[</span><a href="'+eval('VAR_'+que+'_mas')+'" class="DESTACADOBL">'+mas+'</a><span class="DESTACADOBL">]</span>');			
		document.write ('		</td>');
		document.write ('	</tr>');																	
		}
		break;			
	case 'vino':		 
		{
		num_aleatorio = Math.floor(Math.random()*eval('VEC_'+que+'_href.length'));
		document.write ('	<tr>');
		document.write ('		<td width="72" valign="top" background="/comerybeber/img/h_bg_vermell.gif" align="center" rowspan="2"><img src="/img/tb.gif" border="0" alt="" width="72" height="4"><br>');
		document.write ('			<a href="'+eval('VEC_'+que+'_href['+num_aleatorio+']')+'"><img src="'+eval('VEC_'+que+'_img['+num_aleatorio+']')+'" border="0" alt="'+eval('VEC_'+que+'_alt['+num_aleatorio+']')+'" width="45" align="absmiddle"></a><br>');	
		document.write ('			<img src="/img/tb.gif" border="0" alt="" width="72" height="1"><br>');
		document.write ('		</td>');
		document.write ('		<td width="8" valign="top"><img src="/img/tb.gif" border="0" alt="" width="8" height="4"><br><img src="/comerybeber/img/h_fletxa.gif" border="0" alt="" width="8" height="9" align="absmiddle"></td>');
		document.write ('		<td width="87" valign="top"><img src="/img/tb.gif" border="0" alt="" width="87" height="4"><br>');
		document.write ('			<a href="'+eval('VEC_'+que+'_href['+num_aleatorio+']')+'" class="LISTADO">'+eval('VEC_'+que+'_nombre['+num_aleatorio+']')+'</a>');
		document.write ('		</td>');
		document.write ('	</tr>');
		document.write ('	<tr>');
		if (VEC_vino_bodega_href.length > 0) 
			var my_fletxa = '<img src="/comerybeber/img/h_fletxa.gif" border="0" alt="" width="8" height="9" align="absmiddle">';
		else
			var my_fletxa = '';
		document.write ('		<td width="8" valign="top"><img src="/img/tb.gif" border="0" alt="" width="8" height="4"><br>'+my_fletxa+'</td>');
		document.write ('		<td width="87" valign="top"><img src="/img/tb.gif" border="0" alt="" width="87" height="4"><br>');
		if (VEC_vino_bodega_href.length > 0) 
			document.write ('			<a href="'+eval('VEC_'+que+'_bodega_href['+num_aleatorio+']')+'" class="DESTACADON">'+eval('VEC_'+que+'_bodega_nombre['+num_aleatorio+']')+'</a><br><br>');
		document.write ('		</td>');
		document.write ('	</tr>');
		}
		break;					
	case 'cerveza':		 
		{
		num_aleatorio = Math.floor(Math.random()*eval('VEC_'+que+'_href.length'));
		document.write ('	<tr>');
		document.write ('		<td width="72" valign="top" background="/comerybeber/img/h_bg_vermell.gif" align="center"><img src="/img/tb.gif" border="0" alt="" width="72" height="4"><br>');
		document.write ('			<a href="'+eval('VEC_'+que+'_href['+num_aleatorio+']')+'"><img src="'+eval('VEC_'+que+'_img['+num_aleatorio+']')+'" border="0" alt="'+eval('VEC_'+que+'_alt['+num_aleatorio+']')+'" width="39"  align="absmiddle"></a><br>');	
		document.write ('			<img src="/img/tb.gif" border="0" alt="" width="72" height="1"><br>');
		document.write ('		</td>');
		document.write ('		<td width="8" valign="top"><img src="/img/tb.gif" border="0" alt="" width="8" height="4"><br><img src="/comerybeber/img/h_fletxa.gif" border="0" alt="" width="8" height="9" align="absmiddle"></td>');
		document.write ('		<td width="87" valign="top"><img src="/img/tb.gif" border="0" alt="" width="87" height="4"><br>');
		document.write ('			<a href="'+eval('VEC_'+que+'_href['+num_aleatorio+']')+'" class="LISTADO">'+eval('VEC_'+que+'_nombre['+num_aleatorio+']')+'</a>');
		document.write ('		</td>');
		document.write ('	</tr>');
		}
		break;							
	default:
		{
		}
	}
}