<div id="selCategory" class="clsTopNavigationRightMenu">
	<div class="clsFloatleft">
		<h2>{$LANG.categories}</h2>
	</div>
	<div class="clsClearfix">
		<div class="clsQuestionsLink clsQuestionRightlinks clsFloatright ">
			<ul>
				<li class="{$myobj->form_question_category.displayCategory.strings.alphabetLI}"> <span> <a href="{$myobj->category_top.cat_alpha}"> {$LANG.categories_alphabetically} </a> </span> </li>
				<li class="{$myobj->form_question_category.displayCategory.strings.questionsLI}"> <span> <a href="{$myobj->category_top.cat_freq}"> {$LANG.questions} </a> </span> </li>
		  	</ul>
		</div>
	</div>
<div class="">
  <!--rounded corners-->
  <div class="lbindex">
    <div class="rbindex">
      <div class="bbindex">
        <div class="blcindex">
          <div class="brcindex">
            <div class="tbindex">
              <div class="tlcindex">
                <div class="trcindex">
  {if $myobj->isShowPageBlock('form_question_category')}
	  {if $myobj->form_question_category.displayCategory}
	  {literal}
	  	<script type="text/javascript" language="javascript">
			var subCat = new Array();
		</script>
	  {/literal}
		  <div class="clsCategoryList" id="selMainCategory">
			<div class="clsCommonCategory">
			  <div class="clsCategoryListLeft"> {foreach key=inc item=value from=$myobj->form_question_category.displayCategory.array}
				<p> <a href="{$value.cat_url}"> {$value.record.cat_name}{if $value.record.total_questions}({$value.record.total_questions}){/if}</a> {if $value.record.has_child} <a class="clsSubCategory" id="{$value.record.cat_id}" href="{$smarty.server.REQUEST_URI}" onclick="Effect.toggle('subcat_{$value.record.cat_id}', 'BLIND'); return false;"> <img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-dropdown.gif" alt="{$LANG.categories_click_for_subcategory}" title="{$LANG.categories_click_for_subcategory}" /> </a>
				<div style="display:none;" id="subcat_{$value.record.cat_id}">
				  <ul id="selCategoryList">
					{foreach key=i item=val from=$value.displaySubCategoy}
					<li> <a href="{$val.url}"> {$val.record.cat_name}
					  {$val.total_questions} </a> </li>
					{/foreach}
				  </ul>
				</div>
				{/if}
				</p>
				{/foreach} </div>
			</div>
			<div id="selSubCategory" class="clsSubCategoryListRight"> </div>
		  </div>
		  {else}
		  {$LANG.categories_no_category_found}
		  {/if}
	  {/if}
	  </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <!--end of rounded corners-->
</div>
</div>
