<div class="naviheader">{$lang.navigaton}</div>

{foreach from=$navigation item=navi}
{if $navi->document==$document or $navi->active}
<div><a target="{$navi->target|default:'_self'}" onclick="this.blur();" onfocus="this.blur();"  href="{$navi->document|escape:"html"}" class="box_navi_first_active" ><img src="templates/{$theme}/img/page/navi_first_active.gif" alt=""  border="0" />&nbsp;{$navi->title}</a></div>
{else}
<div><a target="{$navi->target|default:'_self'}" onclick="this.blur();" onfocus="this.blur();"  href="{$navi->document|escape:"html"}" class="box_navi_first"><img src="templates/{$theme}/img/page/navi_first.gif" alt=""  border="0" />&nbsp;{$navi->title}</a></div>
{/if}
{if count($navi->sub_navi)} {foreach from=$navi->sub_navi item=sub_navi}
{if $sub_navi->document==$document || $sub_navi->active}
<div><a target="{$sub_navi->target|default:'_self'}" onclick="this.blur();" onfocus="this.blur();"  href="{$sub_navi->document|escape:"html"}" class="navigation_second_active">{$sub_navi->title}</a></div>
{else}
<div><a target="{$sub_navi->target|default:'_self'}" onclick="this.blur();" onfocus="this.blur();"  href="{$sub_navi->document|escape:"html"}" class="navigation_second">{$sub_navi->title}</a></div>
{/if}
{if count($sub_navi->sub_navi)} {foreach from=$sub_navi->sub_navi item=sub_sub_navi}
{if $sub_sub_navi->document==$document}
<div><a target="{$sub_sub_navi->target|default:'_self'}" onclick="this.blur();" onfocus="this.blur();"  href="{$sub_sub_navi->document|escape:"html"}" class="navigation_third_active">{$sub_sub_navi->title}</a></div>
{else}
<div><a target="{$sub_sub_navi->target|default:'_self'}" onclick="this.blur();" onfocus="this.blur();"  href="{$sub_sub_navi->document|escape:"html"}" class="navigation_third">{$sub_sub_navi->title}</a></div>
{/if}
{/foreach}
{/if}
{/foreach}{/if} {/foreach}