{if $type=='product'}       
       <ul class="levl-03 categorytree">
      {foreach item="product" from=$resProducts}
   
      <li class="clearfix" style="width:97%;margin-bottom: 4px;"> 
          {form->radio tabindex="3" onclick="showCategory(this)" name="productID" onchange="setSelected('product')" class="productTree" options=$product.0|cat:"->"|cat:"&nbsp;"|cat:$product.1 value=$resProducts}</li>
       {foreachelse}
      <li class="clearfix" style="width:97%;margin-bottom: 4px;">{$language.errNoMatch} </li>
      {/foreach}
    </ul>  
 {else if $type=='blog'}  
      <ul class="levl-03 categorytree">
      {foreach item="blog" from=$resBlogs}         
      <li class="clearfix" style="width:97%;margin-bottom: 4px;"> 
          {form->radio tabindex="3" onclick="showPath(this)" onchange="setSelected('blog')" name="blogID" class="blogTree" options=$blog.0|cat:"->"|cat:"&nbsp;"|cat:$blog.1 value=$resBlogs}</li>
       {foreachelse}
      <li class="clearfix" style="width:97%;margin-bottom: 4px;">{$language.errNoMatch} </li>
      {/foreach}a
    </ul>  
   {else if $type=='page'}  
      <ul class="levl-03 categorytree">
      {foreach item="page" from=$resPages}         
      <li class="clearfix" style="width:97%;margin-bottom: 4px;"> 
          {form->radio tabindex="3" onclick="showPath(this)" onchange="setSelected('page')" name="pageID" class="pageTree" options=$page.0|cat:"->"|cat:"&nbsp;"|cat:$page.1 value=$resPages}</li>
       {foreachelse}
      <li class="clearfix" style="width:97%;margin-bottom: 4px;">{$language.errNoMatch} </li>
      {/foreach}
    </ul>
    {/if}