{* Smarty *}

{literal}
<script type="text/javascript">
//<![CDATA[
$(function(){
  $("#MenuTop").menubar({
    autoExpand: true,
    menuIcon: true
  });
});
//]]>
</script>
{/literal}

{foreach $ArrMenu as $val}
  {if $val@first}
<ul id="MenuTop">
  {/if}
  <li><a{if $val.menu_href} href="/{$MS_SP->Sp_PathTop}{$val.menu_href}" target="{$val.menu_target}"{/if} title="{$MS_SP->Sp_LangMessage.MenuTitle[$val.menu_id]}">{$MS_SP->Sp_LangMessage.MenuTextHref[$val.menu_id]}</a>
  {if isset($val.submenu) && is_array($val.submenu) && 0 < count($val.submenu)}
    {include file="Menu/MenuTopSecond.tpl" ArrMenuSecond=$val.submenu}
  {/if}
  </li>
  {if $val@last}
</ul>
  {/if}
{/foreach}