<h2>{t}Sticky Ads{/t}</h2>
<div class="banner textads">
{foreach from=$ads.2 item=ad}
{if $ad.type == 'default'}

<div class="textad">
<a href="{"?a=buy_ads&tid=2"|encurl}" target=_blank class="title"><b>{t}Available Now{/t}</b></a>
<a href="{"?a=buy_ads&tid=2"|encurl}" target=_blank><img src="{"`$theme`images/banner125x125.png"|encurl}" border=0 width=125 height=125 alt="{t}Buy ad now{/t}"></a>
<p></p>
<a href="{"?a=buy_ads&tid=2"|encurl}" class="expires">{t price=$ad.price}Available now for $%price/week{/t}</a>
</div>

{else}

<div class="textad">
<a href="{$ad.url|escape:html}" target=_blank class="title"><b>{$ad.title|escape:html}</b></a>
{if $ad.banner_url}
       {if !$ad.flash}<a href="{$ad.url|escape:html}" target=_blank><img src="{$ad.banner_url|escape:html}" border=0 width=125 height=125 alt="{$ad.title|escape:html}"></a>{else}{include file="swfobj.tpl" width=125 height=125 url=$ad.banner_url|escape:html}{/if}
{/if}
<p>{if $ad.text}{$ad.text|escape:html}{/if}</p>
{if $ad.expiration}<a href="{"?a=buy_ads&tid=2"|encurl}" class="staff">{t exp_date=$ad.exp_date price=$ad.price}Available on %exp_date for $%price/week{/t}</a>{/if}
</div>

{/if}
{/foreach}
<p class="links"><a href="{"?a=buy_ads&tid=2"|encurl}" class="staff">{t}Place your Text Ads Here{/t}</a></p>
</div>