<script language="javascript" src="{$jspath}/fancybox.js" type="text/javascript"></script>
<div class="box_innerhead">{#Faq#}</div>
{strip}
{if !$faq}
      <h3>{#Faq_nothing#}</h3>
      {/if}
      
        {foreach from=$faq item=item}
        {if $item->Parent_Id == 0}
        <br />
        <h3><a href="index.php?p=faq&amp;faq_id={$item->fid}&amp;area={$area}&amp;name={$item->Seotitle|seotitle}">{$item->visible_title|koobispecialchars}</a></h3>
        <br />
        
       
        {assign var="parent" value=$item->fid}
        {else}
        
        {section name=floop loop=$item->ulid}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{/section}
        
           {if $smarty.request.faq_id==""}
            <a href="index.php?p=faq&amp;faq_id={$parent}&amp;area={$area}&amp;name={$item->Seotitle|seotitle}#{$item->fid}">{$item->visible_title}</a><br />
            {else}
           <a href="#{$item->fid}">{$item->visible_title}</a><br />
            {/if}
          {section name=floop loop=$item->ulid}
        {/section}
        
        {/if}
       
        {/foreach}
        
        {if $faq}
      <br />
      {/if}
      {if $smarty.request.faq_id!=""}
      {if $curr_faq->visible_title && $curr_faq->main!=0}
      
       
          <div class="faq_innerhead">{$curr_faq->visible_title|koobispecialchars}</div>
       <div class="faq_text">{$curr_faq->text}</div>
          
      <br />
      {/if}
      
      
      {foreach from=$faq item=faq_id}
     
       <div class="faq_innerhead"><a name="{$faq_id->fid}" id="{$faq_id->fid}"></a>{$faq_id->Faq|koobispecialchars} </div>
       <div class="faq_text">{$faq_id->text}</div>
        <div align="right">
		{#Arrow#} <a href="javascript:scroll(0,0);">{#Faq_JumpTop#}</a>
		</div>
        
      <br />
      {/foreach}
      {/if}
{/strip}
