{strip}
<div id="bittopbar">
	<ul id="nav" class="dropmenu">
		{if $adminMenu}
			<li class="m-admin{if $smarty.const.ACTIVE_PACKAGE eq 'kernel'} current{/if}">
				{if $gBitUser->isAdmin()}<a accesskey="A" class="{if $gBitSystem->isFeatureActive( 'site_top_bar_dropdown' )}head{else}item{/if}{if $smarty.const.ACTIVE_PACKAGE eq 'kernel'} selected{/if}" href="{$smarty.const.KERNEL_PKG_URL}admin/index.php">{/if}
					<strong>{tr}Administration{/tr}</strong>
				{if $gBitUser->isAdmin()}</a>{/if}
				{if $gBitSystem->isFeatureActive( 'site_top_bar_dropdown' )}
					<ul>
						{foreach key=key item=menu from=$adminMenu}
							{if $key eq 'kernel' or $key eq 'liberty' or $key eq 'languages' or $key eq 'users' or $key eq 'themes'}
								<li>
									<a class="head cursordefault" href="{$smarty.const.KERNEL_PKG_URL}admin/index.php">
										<strong>{tr}{$key|capitalize}{/tr}</strong>
									</a>
									{include file=`$menu.tpl`}
								</li>
							{/if}
						{/foreach}
						{foreach key=key item=menu from=$adminMenu}
							{if $key neq 'kernel' and $key neq 'liberty' and $key neq 'languages' and $key neq 'users' and $key neq 'themes'}
								<li>
									<a class="head cursordefault" href="{$smarty.const.KERNEL_PKG_URL}admin/index.php">
										{tr}{$key|capitalize}{/tr}
									</a>
									{include file=`$menu.tpl`}
								</li>
							{/if}
						{/foreach}
					</ul>
				{/if}
			</li>
		{/if}

		{foreach key=key item=menu from=$gBitSystem->mAppMenu}
			{if $menu.menu_title && $menu.index_url && $menu.menu_template && !$menu.is_disabled}
				<li class="m-{$key}{if $smarty.const.ACTIVE_PACKAGE eq $menu.package_name} current{/if}">
					<a accesskey="{$key|truncate:1:""}" class="{if $gBitSystem->isFeatureActive( 'site_top_bar_dropdown' )}head{else}item{/if}{if $smarty.const.ACTIVE_PACKAGE eq $menu.package_name} selected{/if}" href="{$menu.index_url}">{tr}{$menu.menu_title}{/tr}</a>
					{if $gBitSystem->isFeatureActive( 'site_top_bar_dropdown' )}
						{include file="`$menu.menu_template`"}
					{/if}
				</li>
			{/if}
		{/foreach}
	</ul>
</div>

<!--[if lt IE 8]>
<script type="text/javascript">
    BitBase.fixIEDropMenu( 'nav' );
</script>
<![endif]-->

{if $gBitSystem->isFeatureActive('site_top_bar_js') && $gBitSystem->isFeatureActive('site_top_bar_dropdown')}
	<script type="text/javascript"> /*<![CDATA[*/
		var listMenu = new FSMenu('listMenu', true, 'left', 'auto', '-999');
		{if $gBitSystem->isFeatureActive( 'site_top_bar_js_fade' )}
			listMenu.animations[listMenu.animations.length] = FSMenu.animFade;
		{/if}
		{if $gBitSystem->isFeatureActive( 'site_top_bar_js_swipe' )}
			listMenu.animations[listMenu.animations.length] = FSMenu.animSwipeDown;
		{/if}
		{if $gBitSystem->isFeatureActive( 'site_top_bar_js_clip' )}
			listMenu.animations[listMenu.animations.length] = FSMenu.animClipDown;
		{/if}
		addEvent(window, 'load', new Function('listMenu.activateMenu("nav")'));
	/*]]>*/ </script>
{/if}
{/strip}
