{* Build the category selection *}
{strip}

{if $smarty.const.CAT_SELECTION_METHOD eq 1}
   {if !empty ($CategoryTitle)}{$CategoryTitle}{else}{l}Please select a category!{/l}{/if}
   <input type="hidden" id="PARENT_ID" name="PARENT_ID" value="{$PARENT_ID}" />


{elseif $smarty.const.CAT_SELECTION_METHOD eq 2}
   <div id="catTitle">
      {if !empty ($CategoryTitle)}{$CategoryTitle}{else}{l}Please select a category!{/l}{/if}
   </div>
   <span id="toggleCategTree">{l}Change category{/l}</span>
   <input type="hidden" id="PARENT_ID" name="PARENT_ID" value="{$PARENT_ID}" />

   <div id="categtreebox"></div>
{else}
   {html_options options=$categs selected=$PARENT_ID name="PARENT_ID"}
{/if}
{/strip}