{include file="$gentemplates/$header_tpl"}
{strip}
<div class="profile_general_table">
	<div>
		<h2>{$lang.faq.questions_in_topic}:&nbsp;{$category.category}</h2>
		{*if $form.err}
		<p class="error_msg">*&nbsp;{$form.err}</p>
		{/if*}
		{if $faqs}
			{section name=a loop=$faqs}
				<p><a href="#" onclick="ShowFaq({$faqs[a].id});">{$faqs[a].title}</a></p>
			{/section}
			
			{section name=a loop=$faqs}
			<div class="faqs_body" id="faqs_{$faqs[a].id}" style="padding-top:10px;{if $smarty.section.a.index ne 0}display:none;{/if}">
				<p><b>{$faqs[a].title}</b><br />
				{$faqs[a].body}</p>
			</div>
			{/section}
		{/if}
	</div>						  		
{/strip}
<script type="text/javascript">
{literal}
function ShowFaq(par){
	$('.faqs_body').hide();
	$('#faqs_'+par).show();
}
{/literal}
</script>
{include file="$gentemplates/$footer_tpl"}