 <br />
<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="box_faq">
  <tr>
    <td >{if !$faq}
      {$lang.nofaq}
      {/if}
      {if $faq}
      <ul>
        {/if}
        {foreach from=$faq item=item}
        {if $item->parent_id == 0}
        {* <br /> *}
        <li><strong><a href="index.php?p=faq&amp;faq_id={$item->fid}&amp;area={$area}">
          {$item->visible_title}
          </a></strong></li>
		 
        {assign var="parent" value=$item->fid}
        {else}
        {section name=floop loop=$item->ulid}
         <ul>
          {/section}
          <li>
            {if $smarty.request.faq_id==""}
            <a class="light" href="index.php?p=faq&amp;faq_id={$parent}&amp;area={$area}#{$item->fid}">
            {$item->visible_title}
            </a>
            {else}
            <a href="#{$item->fid}">
            {$item->visible_title}
            </a>
            {/if}
          </li>
          {section name=floop loop=$item->ulid}
        </ul>
        {/section}
        {/if}
        {/foreach}
        {if $faq}
      </ul>
      <br />
      {/if}
      {if $smarty.request.faq_id!=""}
      {if $curr_faq->visible_title && $curr_faq->main!=0}
      <table width="95%"  border="0" align="center" cellpadding="3" cellspacing="0">
        <tr>
          <td class="box_innerhead">{$curr_faq->visible_title}</td>
        </tr>
        <tr>
          <td >{$curr_faq->text}
          </td>
        </tr>
      </table>
      <br />
      {/if}
      {foreach from=$faq item=faq_id}
      <table width="95%"  border="0" align="center" cellpadding="3" cellspacing="0">
        <tr>
          <td class="box_innerhead"><a class="light"  name="{$faq_id->fid}" id="{$faq_id->fid}"></a>{$faq_id->faq} </td>
        </tr>
        <tr>
          <td ><div class="faqtext">
              {$faq_id->text}
            </div></td>
        </tr>
        <tr>
          <td><div align="right"><img src="templates/{$theme}/img/page/rel.gif" alt="" hspace="2" class="absmiddle" /><a href="javascript:scroll(0,0);">
              {$lang.scrolltop}
              </a></div></td>
        </tr>
      </table>
      <br />
      {/foreach}
      {/if}
    </td>
  </tr>
</table>
