{assign var='m_index' value='feMenu_'|cat:$block.ID}
{assign var='sCookie' value=$smarty.cookies}

<div class="side_block">
	{if $search}
	<table class="sTable">
	<tr>
		<td class="lalign">
	{/if}
	<div class="header">
		{if $name}{$name}{else}{$block.name}{/if}
	</div>
	{if $search}
		</td>
		{foreach from=$search_forms item='search_form' name='sformsF'}
			{if $search_form.arrange_field && $smarty.foreach.sformsF.first}
				{assign var='spage_key' value=$listing_types[$search_form.listing_type].Page_key}
				<td class="ralign">
					<div class="pocket">
						<a class="blue_11" title="{$lang.advanced_search}" href="{$rlBase}{if $config.mod_rewrite}{$pages.$spage_key}/{$advanced_search_url}.html{else}?page={$pages.$spage_key}&amp;{$advanced_search_url}{/if}">{$lang.advanced_search}</a>
					</div>
				</td>
			{/if}
		{/foreach}
	</tr>
	</table>
	{/if}
	
	<div class="body{*if $sCookie.$m_index == 'hide'} hide{/if*}" id="block_content_{$block.ID}">
		<div {if $no_padding}style="padding: 0;"{/if}>