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