<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">{t group=$group.type}List your program in the %group listing{/t}</a>
 {/if}
 </div>

{* 468x60 rotating banner : BEGIN *}
{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}{t exp_date=$ads[$banner_group].exp_date price=$ads[$banner_group].price}Available on %exp_date for $%price/week{/t}{else}{t price=$ads[$banner_group].price}Buy rotating banner here right now for $%price/week{/t}{/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="{t}Buy ad now{/t}"></a>
       <div class="info">
       <a href="{"?a=buy_ads&tid=`$banner_group`"|encurl}" class="expire">{t price=$ads[$banner_group].price}Available Now for $%price/week{/t}</a>
       </div>
  </div>
{/if}
 </div>
{/if}
{* 468x60 rotating banner : END *}

{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 />
{t group=$group.name}Currently there are no items in the %group listing{/t} {if $frm.pfilter}using {$frm.pfilter}{/if}
<br />
{/section}
{if $group.pages}
{paginator col=$group.pages.col cur=$group.pages.cur url="?a=home&type=`$group.id`&p=%s"|encurl}
{/if}

</div>