{*
  ===============================================================

  inGenio X
  http://ingenio.area421.com

  Created by 
  Julian Moreno Hidalgo (Software developer)
  Jesus Moreno Hidalgo (Communication's tree)

  inGenio X is a free software licensed under CC-GNU GPL

  ===============================================================
*}

<div class="principal">

{* cabecera *}
<div {$smarty.const.TPL_IMAGEN_CABECERA}>
{include file="menu_cabecera.tpl.html"}
</div>

{* menu alto *}
<div class="div_principal_menu_alto">
{section name=ima loop=$ids_menu_alto}
	{if $ids_menu_alto[ima] == 1}{include file="menu_copy.tpl.html"}{/if}
	{if $ids_menu_alto[ima] == 2}{include file="menu_email.tpl.html"}{/if}
	{if $ids_menu_alto[ima] == 3}{include file="menu_rss.tpl.html"}{/if}
	{if $ids_menu_alto[ima] == 4}{include file="menu_idiomas.tpl.html"}{/if}
	{if $ids_menu_alto[ima] == 5}{include file="menu_reloj.tpl.html"}{/if}
	{if $ids_menu_alto[ima] == 6}{include file="menu_add_item.tpl.html"}{/if}
	{if $ids_menu_alto[ima] == 7}{include file="menu_add_traduccion.tpl.html"}{/if}
	{if $ids_menu_alto[ima] == 8}{include file="menu_portada.tpl.html"}{/if}
{/section}
</div>

{* CONTENIDO Y MENU *}
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr><td  valign="top" width="100%">

{* contenido *}
<div class="div_principal_contenido">
{if $tpl_enadmin}{$tpl_enadmin}{/if} {* link administrador *}
{include file="$inGenio_X_tpl"} {* variable contenido *}
</div>

</td>
<td valign="top">

{* menu derecha *}
<div class="div_principal_menu">
{section name=imp loop=$ids_menu_principal}
	{if $ids_menu_principal[imp] == 1}{include file="menu_copy.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 2}{include file="menu_email.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 3}{include file="menu_rss.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 4}{include file="menu_idiomas.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 5}{include file="menu_reloj.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 6}{include file="menu_add_item.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 7}{include file="menu_add_traduccion.tpl.html"}{/if}	
	{if $ids_menu_principal[imp] == 8}{include file="menu_buscar.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 9}{include file="menu_categorias.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 10}{include file="menu_items_ultimos.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 11}{include file="menu_paginas.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 12}{include file="menu_secciones.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 13}{include file="menu_links.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 14}{include file="menu_items_portada.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 15}{include file="menu_items_votados.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 16}{include file="menu_items_leidos.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 17}{include file="menu_tags.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 18}{include file="menu_tags_2.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 19}{include file="menu_tags_3.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 20}{include file="menu_rss_feeds.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 21}{include file="menu_extra_1.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 22}{include file="menu_extra_2.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 23}{include file="menu_extra_3.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 24}{include file="menu_canales.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 25}{include file="menu_categorias_priv.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 26}{include file="menu_portada.tpl.html"}{/if}
	{if $ids_menu_principal[imp] == 27}{include file="menu_tienda.tpl.html"}{/if}
{/section}
</div>

</td></tr></table>
{* FIN CONTENIDO Y MENU *}

{* menu bajo *}
<div class="div_principal_pie">
{section name=imb loop=$ids_menu_bajo}
	{if $ids_menu_bajo[imb] == 1}{include file="menu_copy.tpl.html"}{/if}
	{if $ids_menu_bajo[imb] == 2}{include file="menu_email.tpl.html"}{/if}
	{if $ids_menu_bajo[imb] == 3}{include file="menu_rss.tpl.html"}{/if}
	{if $ids_menu_bajo[imb] == 4}{include file="menu_idiomas.tpl.html"}{/if}
	{if $ids_menu_bajo[imb] == 5}{include file="menu_reloj.tpl.html"}{/if}
	{if $ids_menu_bajo[imb] == 6}{include file="menu_add_item.tpl.html"}{/if}
	{if $ids_menu_bajo[imb] == 7}{include file="menu_add_traduccion.tpl.html"}{/if}
	{if $ids_menu_bajo[imb] == 8}{include file="menu_portada.tpl.html"}{/if}
{/section}

</div>

</div>
