<div class="round">
<div class="toggles_pagesearch{if $smarty.cookies.pagesearch!='opened'} opened{/if}" title="{#Page_Search#}">
<div class="boxes_body">

<form method="get" action="index.php">
<input name="q" type="text" class="input" style="width:160px; margin-bottom:2px" value="{$smarty.get.q|koobispecialchars}" maxlength="35" />
<br />
{include file="$incpath/search/search_areas.tpl"}
<input type="submit" class="button" value="{#Page_SearchButton#}" style="width:65px; margin-left:2px" />
<input type="hidden" name="p" value="search" />
</form>
</div>
</div>
</div>

<script type="text/javascript" language="javascript">
<!-- //
$(document).ready(function(){ldelim}$('div.toggles_pagesearch').toggleElements( {ldelim} fxAnimation:'slide', fxSpeed:'normal', className:'togglerboxes',onClick:Panel_PS_Closer,onHide:Panel_PS_Opener{rdelim} );{rdelim});
function Panel_PS_Opener() {ldelim}$.cookie('pagesearch','opened', {ldelim}expires: 30,path: '{$cookiepath}'{rdelim});{rdelim}
function Panel_PS_Closer() {ldelim}$.cookie('pagesearch', '', {ldelim}expires: 30,path: '{$cookiepath}' {rdelim});{rdelim}
// -->
</script>
