{if $SiteNavigation}
<div class="round">
{assign var=navi_title_divtoggle value=$navi_title|replace:' ':'&nbsp;'}
{assign var=navi_title value=$navi_title|replace:' ':''}
{assign var=jst value=$navi_title|seotitle}
<script type="text/javascript">
<!-- //
$(document).ready(function()
{ldelim}
	$('div.toggles_{$jst}').toggleElements( {ldelim} fxAnimation:'slide', fxSpeed:'normal', className:'togglerboxes',onClick:Panel_{$jst}_Closer,onHide:Panel_{$jst}_Opener{rdelim} );
{rdelim});
function Panel_{$jst}_Opener() {ldelim}$.cookie('navpanel_{$jst}','opened', {ldelim}expires: 30,path: '{$cookiepath}'{rdelim});}
function Panel_{$jst}_Closer() {ldelim}$.cookie('navpanel_{$jst}', '', {ldelim}expires: 30,path: '{$cookiepath}'{rdelim});}
// -->
</script>
{assign var=cn value=navpanel_$jst}

<div class="navigation_box">
<div class="toggles_{$jst}{if $smarty.cookies.$cn!='opened'} opened{/if}" title="{$navi_title_divtoggle|stripslashes|default:"Navi"}">
{*<div class="boxes_header">{$navi_title|stripslashes|default:"Navi"}</div>*}
<ul>
{foreach from=$SiteNavigation item=navi}{assign var="ST" value=$ST+1}
{* *}
  <li><a target="{$navi->target|default:'_self'}"  href="{$navi->document|escape:"html"}" class="{if $navi->document==$document || $navi->active}navi_first_active{else}navi_first{/if}">{$navi->title|koobispecialchars}</a>{if !count($navi->sub_navi)}</li>
 {/if}
  {if count($navi->sub_navi)}
  	{assign var="ST" value=0}
    
	<ul>{foreach from=$navi->sub_navi item=sub_navi}{assign var="SS" value=$SS+1}
      
	  <li><a target="{$sub_navi->target|default:'_self'}" href="{$sub_navi->document|escape:"html"}" class="{if $sub_navi->document==$document || $sub_navi->active}navi_second_active{else}navi_second{/if}">{$sub_navi->title|koobispecialchars}</a>{if !count($sub_navi->sub_navi)}</li>{/if}{if count($sub_navi->sub_navi)} 
        <ul>{foreach from=$sub_navi->sub_navi item=sub_sub_navi} 
          <li><a target="{$sub_sub_navi->target|default:'_self'}" href="{$sub_sub_navi->document|escape:"html"}" class="{if $sub_sub_navi->document==$document || $sub_sub_navi->active}navi_third_active{else}navi_third{/if}">{$sub_sub_navi->title|koobispecialchars}</a></li>{/foreach} 
        </ul>
      </li>{/if}
	  {/foreach}
	  
    </ul>
  </li>{/if}
  {/foreach}
</ul>
</div>
</div>
</div>
{/if}