<div class="round">
<div class="toggles_shopnavi{if $smarty.cookies.navpanel_shopnavi!='opened'} opened{/if}" title="{#Shop#}">

<a class="{if $smarty.request.start=='1'}shop_navi_first_active{else}shop_navi_first{/if}" href="index.php?p=shop&amp;start=1"><img src="{$imgpath}/shop/navi_img.png" alt="" border="0" class="absmiddle" />{#Shop_starterPage#}</a>
<a class="{if $smarty.request.t=='liste'}shop_navi_first_active{else}shop_navi_first{/if}" href="index.php?p=shop&amp;action=showproducts&amp;cid=0&amp;page=1&amp;limit={$smarty.request.limit|default:$plim}&amp;t=liste"><img src="{$imgpath}/shop/navi_img.png" alt="" border="0" class="absmiddle" />{#Shop_starterShowAll#}</a>
<div id="shopnavi">
{foreach from=$MyShopNavi item=sn}
{if $sn->Parent_Id == 0}
{assign var=op value=$sn->Id}
{assign var=firstsecond value=$sn->Id}
{/if}

{*&& $smarty.request.parent==$sn->Id*}
<ul>
 <li class="first">
 <a class="{if $smarty.request.cid==$sn->Id  || $smarty.request.navop==$sn->Id  || in_array($op,$navi_current)}shop_navi_first_active{else}shop_navi_first{/if}" href="index.php?p=shop&amp;action=showproducts&amp;cid={$sn->Id}&amp;page=1&amp;limit={$smarty.request.limit|default:$plim}&amp;t={$sn->Entry|seotitle}">
 {$sn->Icon} {$sn->Entry|koobispecialchars}
 </a>
  {if !$sn->Sub1}</li>{else}<ul>{/if}
   {foreach from=$sn->Sub1 item=sub1}
    
     <li class="second" style="display:{if $smarty.request.cid!='' && ($smarty.request.cid==$op || $sub1->navop==$op || in_array($op,$navi_current) ) }{else}none{/if}">
     <a style="{if $smarty.request.cid==$sub1->Id || in_array($sub1->Id,$navi_current)}font-weight:bold{else}{/if}" href="index.php?p=shop&amp;action=showproducts&amp;cid={$sub1->Id}&amp;page=1&amp;limit={$smarty.request.limit|default:$plim}&amp;t={$sub1->Entry|seotitle}">{$sub1->Entry|koobispecialchars}</a>
     {if !$sub1->Sub2}
     </li>
     {/if}
     
       {*********** 3.Ebene ***********}
       {if $sub1->Sub2}
        <ul>
         {foreach from=$sub1->Sub2 item=sub2}
          {*********** Starter fuer 4.Ebene ***********}
           <li class="third" style="{if $smarty.request.cid==$sub1->Id || in_array($sub1->Id,$navi_current)}{else}display:none{/if}">
           <a style="{if $smarty.request.cid==$sub2->Id || in_array($sub2->Id,$navi_current)}font-weight:bold{else}{/if}" href="index.php?p=shop&amp;action=showproducts&amp;cid={$sub2->Id}&amp;page=1&amp;limit={$smarty.request.limit|default:$plim}&amp;t={$sub2->Name|seotitle}">{$sub2->Name|koobispecialchars}</a>
           {if !$sub2->Sub3}</li>{/if} 
            
            {*********** 4.Ebene ***********}
            {if $sub2->Sub3}
            
            <ul>
             {foreach from=$sub2->Sub3 item=sub3}
             {*********** Starter fuer 5.Ebene ***********}
             <li class="fourth" style="{if $smarty.request.cid==$sub2->Id || $smarty.request.parent==$sub2->Id || in_array($sub2->Id,$navi_current)}{else}display:none{/if}">
             <a style="{if $smarty.request.cid==$sub3->Id || in_array($sub3->Id,$navi_current)}font-weight:bold{else}{/if}" href="index.php?p=shop&amp;action=showproducts&amp;cid={$sub3->Id}&amp;page=1&amp;limit={$smarty.request.limit|default:$plim}&amp;t={$sub3->Name|seotitle}">{$sub3->Name|koobispecialchars}</a>
             {if !$sub3->Sub4}</li>{/if} 
             
                {*********** 5.Ebene ***********}
                {if $sub3->Sub4}
                <ul>
                  {foreach from=$sub3->Sub4 item=sub4}
                 <li class="fifth" style="{if $smarty.request.cid==$sub3->Id || in_array($sub3->Id,$navi_current)}{else}display:none{/if}">
                  <a style="{if $smarty.request.cid==$sub4->Id || in_array($sub4->Id,$navi_current)}font-weight:bold{else}{/if}" href="index.php?p=shop&amp;action=showproducts&amp;cid={$sub4->Id}&amp;page=1&amp;limit={$smarty.request.limit|default:$plim}&amp;t={$sub4->Name|seotitle}">$sub4->Name|koobispecialchars}</a>
                  </li>
                  {/foreach}
                  
                </ul>
                {/if}
                {*********** 5.Ebene ***********}
                {*********** Ende fuer 5.Ebene ***********}
                {if $sub3->Sub4}</li>{/if} 
                
             {/foreach}
            </ul>
            
            {/if}
            {*********** 4.Ebene ***********}
            
            {if $sub2->Sub3}</li>{/if} {*********** Ende fuer 4.Ebene ***********}
            
         {/foreach}
         </ul>
        {if $sn->Sub1}</li>{/if}
       {/if}
       {*********** 3.Ebene ***********}
       
   {/foreach}
 {$sn->Entry_End}
{if !$sn->Sub1} {*  /li *} {else}</ul></li>{/if}
  </ul>
{/foreach}
</div>
</div>
</div>