<div class="list {$group.type}">
 <div class="header clearfix">
 <h1>{$group.name}</h1>
 {if $groups[g].reg_enabled}
  <a href="{"?a=advertise"|encurl}#{$group.type}" class="staff">List your program in the {$group.type} listing</a>
 {/if}
 </div>

{assign var=banner_group value=`$group.id+100`}
{if $ads[$banner_group].enabled}
 <div class="banner rotating">
{if $ads[$banner_group].banner}
  <div class="ad clearfix">
       <div class="adlink">
       {if !$ads[$banner_group].flash}<a href="{$ads[$banner_group].url|escape:html}"><img src="{$ads[$banner_group].banner_url|escape:html}" border=0 width=468 height=60 alt="{$ads[$banner_group].title|escape:html}"></a>{else}{include file="swfobj.tpl" width=468 height=60 url=$ads[$banner_group].banner_url|escape:html}{/if}
       </div>
       <div class="info">
       {if $ads[$banner_group].text|escape:html}<a href="{$ads[$banner_group].url|escape:html}" target=_blank class="text">{$ads[$banner_group].title|escape:html} - {$ads[$banner_group].text|escape:html}</a>{/if}
       <a href="{"?a=buy_ads&tid=`$banner_group`"|encurl}" class="expire">{if $ads[$banner_group].exp_date}Avaliable on {$ads[$banner_group].exp_date} for ${$ads[$banner_group].price}/week{else}Buy rotating banner here right now for ${$ads[$banner_group].price}/week{/if}</a>
       </div>
  </div>
{else}
  <div class="ad clearfix">
       <a href="{"?a=buy_ads&tid=`$banner_group`"|encurl}" target=_blank class=adlink><img src="{"`$theme`images/banner468x60.png"|encurl}" border=0 width=468 height=60 alt="buy ad now"></a>
       <div class="info">
       <a href="{"?a=buy_ads&tid=`$banner_group`"|encurl}" class="expire">Avaliable Now for ${$ads[$banner_group].price}/week</a>
       </div>
  </div>
{/if}
 </div>
{/if}

{if $group.description}
 <div class="description clearfix">
  {$group.description}
 </div>
{/if}

{section name=l loop=$group.listings}
{include file="program_details.tpl" listing=$group.listings[l]}
{sectionelse}
<br />
&nbsp;&nbsp;Currently there are no items in the {$group.name} listing {if $frm.pfilter}using {$frm.pfilter}{/if}
<br />
{/section}

{if $pages}
{paginator col=$pages.col cur=$pages.cur url="?a=home&type=`$group.id`&p=%s"|encurl}
{/if}

</div>
