<div>
    <h2>{$lang.section.classified}</h2>
	<div class="main_tabs margin-top-10">
		<div class="tab_block first {if $active_tabs eq 'all'} active{/if}">
			<a href="{$site_root}{$menu_path.28}" onclick="">{$lang.classified.all_class}</a>
		</div>
		<div class="tab_block {if $active_tabs eq 'add'} active{/if}">
			<a href="{$add_link}" onclick="">{$lang.classified.post_ad}</a>
		</div>
		<div class="tab_block {if $active_tabs eq 'my'}active{/if}">
			<a href="{$site_root}{$menu_path.28}?sel=my_ads" onclick="">{$lang.classified.my_ads}</a>
		</div>
	</div>

	<!-- end main tabs -->
    {*if $form.err}
       	*&nbsp;{$form.err}    
    {/if*}
    <div id="index_quick_search" class="index_quick_search search_form_hide_show" style="margin-top:-5px;">
        <form action="{$site_root}/{$seo.classified}?sel=search" method="post" name="s_form" style="margin: 10px;">
            <div >
                <div>{$lang.classified.search_keyword}</div>
                    <div class="search_input" style=" width: 370px; display:table; background-color: #FFFFFF;">
						<input type="hidden" name="sel" value="search_keyword">
						<div>
							<input class="float_left" type="text" name="keywords" id="keywords" value="{$keywords}" maxlength="200" style="width: 325px;border: 0 none; background-color: #FFFFFF;"/>
						</div>
						<a style="margin-top: -6px; padding-bottom: 0px;" onclick="Search();" class="big-search-lupa float_right" title="{$lang.button.search}">&nbsp;</a>		
					</div>
                    <div>
                        {$lang.classified.sample}:&nbsp;
				        <span onclick="PasteSample('{$lang.classified.sample_word}'); return false;" style="cursor: pointer;">{$lang.classified.sample_word}</span>
                    </div>
            </div>
        </form> 	
    </div>
</div>
{literal}
<script type="text/javascript">
	function PasteSample(word) {
		document.s_form.keywords.value = word;
		return;
	}
	function Search(){
		var keywords = $("#keywords").val();
		location.href='{/literal}{$site_root}/{$seo.classified}?sel=search&keywords={literal}'+keywords;
	}
</script>
{/literal}