  {if $menu}
  <div class="menu">
    <ul>
    {foreach from=$menu->items item=menuItem}
      {if $menuItem->label == "separator"}
        <li style="visibility: hidden">&nbsp;</li>
      {else}
        <li><a href="index.php{$menuItem->urlParams}">
            {if $menuItem->bSelected}<span style="color: red">{/if}
              {$menuItem->label}
            {if $menuItem->bSelected}</span>{/if}
            </a>
       {if $menuItem->bExpanded}
          <ul>
          {foreach from=$menuItem->items item=submenuItem }            
            <li><a href="index.php{$submenuItem->urlParams}">
            {if $submenuItem->bSelected}<span style="color: red">{/if}
              {$submenuItem->label}
            {if $submenuItem->bSelected}</span>{/if}
            </a></li>
          {/foreach}
          </ul>
        {/if}
        </li>
      {/if}
    {/foreach}    
    </ul>
  </div>
  {/if}
