<h2>Text Ads</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>Avaliable Now</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="buy ad now"></a>
<p></p>
<a href="{"?a=buy_ads&tid=2"|encurl}" class="expires">Avaliable now for ${$ad.price}/week</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">Avaliable on {$ad.exp_date} for ${$ad.price}/week</a>{/if}
</div>

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