{if $newson eq 2}<div class="ten"><div class="announcment">{$newstext}</div></div>{/if}
{if isset($customheader) and $customheader neq '0'}<div class="ten column">{$customheader|htmlspecialchars_decode|stripslashes}</div>{/if}
<div class="ten column">
<div class="header">
{if $logoon == '1'}
<div class="logo"><a href="{$sitepath}"><img src="{$sitepath}/themes/{$themes}/styles/images/logo.png" alt="{$sitetitle}" width="250" height="45" /></a></div>
{/if}
{if $logoon == '2'}
<div class="logo"><a href="{$sitepath}">{$logotext}</a></div>
{/if}
<div class="search">
<div class="sestext">
<form action="{$sitepath}/search.php" method="GET"><input class="intext" type="text" name="q" {if $smarty.get.q|default eq false}{else} value="{$smarty.get.q|escape|default}"{/if}/>
<button class="bsearch" value="go" type="submit"></button>
</form>
</div>
</div>
</div>
</div>
<div class="tener">
<div id="menu">
<ul id="coolMenu">
<li><a href="{$sitepath}"><img src="{$sitepath}/themes/{$themes}/styles/images/home.png" alt="home" width="18" height="16" /></a></li>
{foreach from=$categori item=caty}
{assign var="ifavaible" value=$caty@total}
{if $caty@index < {$toplinks}}
{if $rewritemod == 2}
<li><a href="{$sitepath}/categories.php?id={$caty.catid}">{$caty.name|stripslashes}</a>
{/if}
{if $rewritemod == 1}
<li><a href="{$sitepath}/category/{$caty.catid}/{$caty.seoname}.html">{$caty.name|stripslashes}</a>
{/if}
<ul>
{foreach from=$subcat item=inc}
{if $inc.cord neq 0 && $caty.catid eq $inc.parent}
{if $rewritemod == 2}
<li><a href="{$sitepath}/categories.php?id={$inc.catid}">{$inc.name|stripslashes|replace:" ":"&nbsp;"}</a>
{/if}
{if $rewritemod == 1}
<li><a href="{$sitepath}/category/{$inc.catid}/{$inc.seoname}.html">{$inc.name|stripslashes|replace:" ":"&nbsp;"}</a>
{/if}
{/if}
{/foreach}
</ul>
</li>
{/if}
{/foreach}
<li>
{if $ifavaible > {$toplinks}}<a href="#">{$lang.114}</a>
<ul>
{foreach from=$categori item=morecat}
{if $morecat.cord eq 0 && $morecat@index >= {$toplinks}}
{if $rewritemod == 2}
<li><a href="{$sitepath}/categories.php?id={$morecat.catid}">{$morecat.name|stripslashes|replace:" ":"&nbsp;"}</a>
{/if}
{if $rewritemod == 1}
<li><a href="{$sitepath}/category/{$morecat.catid}/{$morecat.seoname}.html">{$morecat.name|stripslashes|replace:" ":"&nbsp;"}</a>
{/if}
{/if}
{foreachelse}
<li><a href="{$sitepath}">Categories</li></a>
{/foreach}
</ul>
{/if}
</ul>
</div>
</div>
<div class="ten">
<ul id="sectabs">
{nocache}{if $smarty.session.loggedin|default eq true}
<li><a href="{$sitepath}/link.php">{$lang.208}</a></li>
<li><a href="{$sitepath}/auth.php?auth=6">{$lang.115}</a></li>
<li><a href="{$sitepath}/auth.php?auth=4">{$lang.209}</a></li>
{else}
<li><a href="{$sitepath}/auth.php?auth=7">{$lang.211}</a></li>
<li><a href="{$sitepath}/auth.php?auth=5">{$lang.210}</a></li>
{/if}
{/nocache}
{if isset($startmenu)}
{foreach from=$startmenu item=sm}
{if $sm.active eq 2}
<li><a href="{$sitepath}/{$sm.valueopt}">{$sm.nameopt}</a></li>
{/if}
{/foreach}
{/if}
<li class="floatright"><a href="{$sitepath}/rss.php" target="_blank"><img src="{$sitepath}/themes/{$themes}/styles/images/rss.gif" width="26" height="14" alt="rss" /></a></li>
</ul>
</div>