<?php /* Smarty version 2.6.2, created on 2012-11-12 08:48:53
         compiled from header.tpl */ ?>
<?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'encurl', 'header.tpl', 6, false),array('modifier', 'escape', 'header.tpl', 145, false),)), $this); ?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<title><?php echo $this->_tpl_vars['settings']['site_name']; ?>
</title>
<link href="<?php echo ((is_array($_tmp=($this->_tpl_vars['theme'])."style.css")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<?php if ($this->_tpl_vars['has_flash']): ?>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript">swfobject.registerObject("myFlashContent", "9.0.0");</script>
<?php endif; ?>
<?php echo '
<script type="text/javascript">
checkEmail = function(email) {
  if (!email)
  {
    return 1;
  }
  else
  {
    a = email.indexOf(\'@\');
    b = email.indexOf(\'@\', a+1);
    c = email.lastIndexOf(\'.\');
    if (a == -1 || b != -1 || c <= a + 2 || a < 1 || c + 2 >= email.length || c + 5 < email.length)
    {
      return 2;
    }
  }
  return 0;
}

startList = function() {
      if (document.all&&document.getElementById) {
            navRoot = document.getElementById("nav");
            for (i=0; i<navRoot.childNodes.length; i++) {
                  node = navRoot.childNodes[i];
                  if (node.nodeName=="LI") {
                        node.onmouseover=function() {this.className+=" over";}
                        node.onmouseout=function() {this.className=this.className.replace(" over", "");}
                  }
            }
      }
}
window.onload=startList;
</script>

<script language="JavaScript">
$(document).ready(function() {
$(\'.detailsButton\').click(function(){
   i = $(this).attr(\'rel\');
   $(\'#detailsBox\'+i).slideToggle(\'normal\');
   return false;
});
});
</script>

'; ?>

</head>

<body>

<div class="header_menu">
 <div class="search" style="width:300px">
    <?php if ($this->_tpl_vars['userinfo']['logged'] != 1): ?>
    <?php echo '
    <script type="text/javascript">
    function checklogin() {   
      if (document.loginform.username.value==\'\') {
        alert("Please enter your username!");
        document.loginform.username.focus();
        return false;
      }
      if (document.loginform.password.value==\'\') {
        alert("Please enter your password!");
        document.loginform.password.focus();
        return false;
      }
      return true;
    }
    </script>
    '; ?>

    <form method="post" name="loginform" onsubmit="return checklogin()" action="">
    <input type=hidden name="a" value="do_login">
    <input type=hidden name="referrer" value="<?php echo $this->_tpl_vars['login_referrer']; ?>
">
    <table>
    <tr>
     <td>Username:</td>
     <td><input type="text" name="username"></td>
     <td>&nbsp;Password:</td>
     <td><input type="password" name="password"></td>
    <?php if ($this->_tpl_vars['settings']['use_turing']): ?>
      <th><img src="<?php echo ((is_array($_tmp="?a=turing&".($this->_tpl_vars['sesname'])."=".($this->_tpl_vars['sesid'])."&r=".($this->_tpl_vars['rand']))) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" alt="turing code"></th>
      <td><input type=text name="turing" maxlength=6 size=6></td>
    <?php endif; ?>
     <th>&nbsp;</th>
     <td><input type="submit" value="Go"></td>
    </tr>
    </table>
    </form>
    <p class="links"><a href="<?php echo ((is_array($_tmp="?a=signup")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
">Sign Up</a> | <a href="<?php echo ((is_array($_tmp="?a=forgot_password")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
">Forgot Password?</a></p>
    <?php endif; ?>
 </div>
 <ul class="main" id="nav">
  <li><a href="<?php echo ((is_array($_tmp="?a=home")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
">Home</a>
   <ul class="categories" style="width: 640px;">
    <li><a href="<?php echo ((is_array($_tmp="?a=new")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
">New</a></li>
  <?php if (isset($this->_sections['g'])) unset($this->_sections['g']);
$this->_sections['g']['name'] = 'g';
$this->_sections['g']['loop'] = is_array($_loop=$this->_tpl_vars['groups_nav']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['g']['show'] = true;
$this->_sections['g']['max'] = $this->_sections['g']['loop'];
$this->_sections['g']['step'] = 1;
$this->_sections['g']['start'] = $this->_sections['g']['step'] > 0 ? 0 : $this->_sections['g']['loop']-1;
if ($this->_sections['g']['show']) {
    $this->_sections['g']['total'] = $this->_sections['g']['loop'];
    if ($this->_sections['g']['total'] == 0)
        $this->_sections['g']['show'] = false;
} else
    $this->_sections['g']['total'] = 0;
if ($this->_sections['g']['show']):

            for ($this->_sections['g']['index'] = $this->_sections['g']['start'], $this->_sections['g']['iteration'] = 1;
                 $this->_sections['g']['iteration'] <= $this->_sections['g']['total'];
                 $this->_sections['g']['index'] += $this->_sections['g']['step'], $this->_sections['g']['iteration']++):
$this->_sections['g']['rownum'] = $this->_sections['g']['iteration'];
$this->_sections['g']['index_prev'] = $this->_sections['g']['index'] - $this->_sections['g']['step'];
$this->_sections['g']['index_next'] = $this->_sections['g']['index'] + $this->_sections['g']['step'];
$this->_sections['g']['first']      = ($this->_sections['g']['iteration'] == 1);
$this->_sections['g']['last']       = ($this->_sections['g']['iteration'] == $this->_sections['g']['total']);
?>
    <li><a href="<?php echo ((is_array($_tmp="?a=home&type=".($this->_tpl_vars['groups_nav'][$this->_sections['g']['index']]['id']))) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
"><?php echo $this->_tpl_vars['groups_nav'][$this->_sections['g']['index']]['nav_name']; ?>
</a></li>
  <?php endfor; endif; ?>         
   </ul>
  </li>
  <li><a href="<?php echo ((is_array($_tmp="?a=news")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
">News</a></li> 
  <li><a href="<?php echo ((is_array($_tmp="?a=advertise")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
">Advertise</a>
   <ul class="categories" style="width: 270px;">
    <li><a href="<?php echo ((is_array($_tmp="?a=advertise")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
">Add program</a></li>
    <li><a href="<?php echo ((is_array($_tmp="?a=buy_ads")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
">Banners & Ads</a></li>
   </ul>
  </li>
<?php if ($this->_tpl_vars['settings']['refback_enabled']): ?>
  <li><a href="<?php echo ((is_array($_tmp="?a=allrcb")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
">RCB</a>
   <ul class="categories" style="width: 270px;">
    <li><a href="<?php echo ((is_array($_tmp="?a=allrcb")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
">RCB Programs</a></li>
    <li><a href="<?php echo ((is_array($_tmp="?a=listrcb")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
">RCB Requests</a></li>
   </ul>
  </li>
<?php endif; ?>
  <li><a href="<?php echo ((is_array($_tmp="?a=directory")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
">Directory</a></li>
  <li><a href="<?php echo ((is_array($_tmp="?a=support")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
">Support</a></li>
 </ul>
</div>
<div class="clearall"></div>

<div class="global_wrap">
<div class="header clearfix">
 <div class="logo"></div>
</div>
<div class="clearall"></div>

<div class="middle_wrap clearfix">
 <div class="wrap">
 <div class="content clearfix">
<?php if ($this->_tpl_vars['ads']['3']['enabled']): ?>
 <div class="banner rotating">
<?php if ($this->_tpl_vars['ads']['3']['banner']): ?>
<?php if (! $this->_tpl_vars['ads']['3']['flash']): ?><a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['ads']['3']['url'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"><img src="<?php echo ((is_array($_tmp=$this->_tpl_vars['ads']['3']['banner_url'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" border=0 width=468 height=60 alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['ads']['3']['title'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></a><?php else:  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "swfobj.tpl", 'smarty_include_vars' => array('width' => 468,'height' => 60,'url' => ((is_array($_tmp=$this->_tpl_vars['ads']['3']['banner_url'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')))));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  endif; ?>
<div class="info1"><a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['ads']['3']['url'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"><span class="title"><?php echo ((is_array($_tmp=$this->_tpl_vars['ads']['3']['title'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</span> <span class="text"><?php echo ((is_array($_tmp=$this->_tpl_vars['ads']['3']['text'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</span></a></div>
<?php else: ?>
<a href="<?php echo ((is_array($_tmp="?a=buy_ads&tid=3")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
"><img src="<?php echo ((is_array($_tmp=($this->_tpl_vars['theme'])."images/banner468x60.png")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" border=0 width=468 height=60 alt="Buy ad now"></a>
<?php endif; ?>
<a href="<?php echo ((is_array($_tmp="?a=buy_ads&tid=3")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" class="staff"><?php if ($this->_tpl_vars['ads']['3']['exp_date']): ?>Avaliable on <?php echo $this->_tpl_vars['ads']['3']['exp_date']; ?>
 for $<?php echo $this->_tpl_vars['ads']['3']['price']; ?>
/week<?php else: ?>Buy rotating banner here right now for $<?php echo $this->_tpl_vars['ads']['3']['price']; ?>
/week<?php endif; ?></a>
 </div>
<?php endif; ?>

<?php if ($this->_tpl_vars['settings']['ads6_enabled']): ?>
<div class="banner solidbig">
<?php if (count($_from = (array)$this->_tpl_vars['ads']['6'])):
    foreach ($_from as $this->_tpl_vars['ad']):
?>
<?php if ($this->_tpl_vars['ad']['type'] == 'default'): ?>
<div class="ad clearfix">
     <a href="<?php echo ((is_array($_tmp="?a=buy_ads&type=6")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" target=_blank class=adlink><img src="<?php echo ((is_array($_tmp=($this->_tpl_vars['theme'])."images/banner728x90.png")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" border=0 width=728 height=90 alt="buy ad now"></a>
     <div class="info">
     <a href="<?php echo ((is_array($_tmp="?a=buy_ads&tid=6")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" class="expire">Avaliable Now for $<?php echo $this->_tpl_vars['ad']['price']; ?>
/week</a>
     </div>
</div>
<?php else: ?>
<div class="ad clearfix">
     <div class="adlink">
     <?php if (! $this->_tpl_vars['ad']['flash']): ?><a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['ad']['url'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" target=_blank><img src="<?php echo ((is_array($_tmp=$this->_tpl_vars['ad']['banner_url'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" border=0 width=728 height=90 alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['ad']['title'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></a><?php else:  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "swfobj.tpl", 'smarty_include_vars' => array('width' => 728,'height' => 90,'url' => ((is_array($_tmp=$this->_tpl_vars['ad']['banner_url'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')))));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  endif; ?>
     </div>
     <div class="info">
     <?php if (((is_array($_tmp=$this->_tpl_vars['ad']['text'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))): ?><a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['ad']['url'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" target=_blank class="text"><?php echo ((is_array($_tmp=$this->_tpl_vars['ad']['text'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</a><?php endif; ?>
     <a href="<?php echo ((is_array($_tmp="?a=buy_ads&tid=6")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" class="expire"><?php if ($this->_tpl_vars['ad']['expiration'] > 0): ?>Avaliable on <?php echo $this->_tpl_vars['ad']['exp_date']; ?>
 for $<?php echo $this->_tpl_vars['ad']['price']; ?>
/week<?php else: ?>Never for $<?php echo $this->_tpl_vars['ad']['price']; ?>
/week<?php endif; ?></a>
     </div>
</div>
<?php endif; ?>
<?php endforeach; unset($_from); else: ?>
<a href="<?php echo ((is_array($_tmp="?a=buy_ads&tid=6")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" class="staff">List your non rotating banners here</a>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($this->_tpl_vars['ads']['4']['enabled']): ?>
<div class="banner rotatingbig">
<div class="ad clearfix">
<?php if ($this->_tpl_vars['ads']['4']['banner']): ?>
   <div class="adlink">
     <?php if (! $this->_tpl_vars['ads']['4']['flash']): ?><a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['ads']['4']['url'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" target=_blank><img src="<?php echo ((is_array($_tmp=$this->_tpl_vars['ads']['4']['banner_url'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" border=0 width=728 height=90 alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['ads']['4']['title'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></a><?php else:  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "swfobj.tpl", 'smarty_include_vars' => array('width' => 728,'height' => 90,'url' => ((is_array($_tmp=$this->_tpl_vars['ads']['4']['banner_url'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')))));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  endif; ?>
   </div>
<?php else: ?>
<a href="<?php echo ((is_array($_tmp="?a=buy_ads&tid=4")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" class="adlink"><img src="<?php echo ((is_array($_tmp=($this->_tpl_vars['theme'])."images/banner728x90.png")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" border=0 width=728 height=90 alt="buy ad now"></a>
<?php endif; ?>
     <div class="info">
     <?php if (((is_array($_tmp=$this->_tpl_vars['ads']['4']['text'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))): ?><a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['ads']['4']['url'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" target=_blank class="text"><?php echo ((is_array($_tmp=$this->_tpl_vars['ads']['4']['text'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</a><?php endif; ?>
     <a href="<?php echo ((is_array($_tmp="?a=buy_ads&tid=4")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" class="expire"><?php if ($this->_tpl_vars['ads']['4']['exp_date']): ?>Avaliable on <?php echo $this->_tpl_vars['ads']['4']['exp_date']; ?>
 for $<?php echo $this->_tpl_vars['ads']['4']['price']; ?>
/week<?php else: ?>Buy rotating banner here right now for $<?php echo $this->_tpl_vars['ads']['4']['price']; ?>
/week<?php endif; ?></a>
     </div>
</div>
</div>
<?php endif; ?>

<?php if ($this->_tpl_vars['settings']['ads5_enabled']): ?>
  <div class="banner solid">
<?php if (count($_from = (array)$this->_tpl_vars['ads']['5'])):
    foreach ($_from as $this->_tpl_vars['ad']):
?>
  <?php if ($this->_tpl_vars['ad']['type'] == 'default'): ?>
  <div class="ad clearfix">
       <a href="<?php echo ((is_array($_tmp="?a=buy_ads&tid=5")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" target=_blank class=adlink><img src="<?php echo ((is_array($_tmp=($this->_tpl_vars['theme'])."images/banner468x60.png")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" border=0 width=468 height=60 alt="buy ad now"></a>
       <div class="info">
       <a href="<?php echo ((is_array($_tmp="?a=buy_ads&tid=5")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" class="expire">Avaliable Now for $<?php echo $this->_tpl_vars['ad']['price']; ?>
/week</a>
       </div>
  </div>
  <?php else: ?>
  <div class="ad clearfix">
       <div class="adlink">
       <?php if (! $this->_tpl_vars['ad']['flash']): ?><a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['ad']['url'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" target=_blank><img src="<?php echo ((is_array($_tmp=$this->_tpl_vars['ad']['banner_url'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" border=0 width=468 height=60 alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['ad']['title'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></a><?php else:  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "swfobj.tpl", 'smarty_include_vars' => array('width' => 468,'height' => 60,'url' => ((is_array($_tmp=$this->_tpl_vars['ad']['banner_url'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')))));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  endif; ?>
       </div>
       <div class="info">
       <?php if (((is_array($_tmp=$this->_tpl_vars['ad']['text'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))): ?><a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['ad']['url'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" target=_blank class="text"><?php echo ((is_array($_tmp=$this->_tpl_vars['ad']['title'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
 - <?php echo ((is_array($_tmp=$this->_tpl_vars['ad']['text'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</a><?php endif; ?>
       <a href="<?php echo ((is_array($_tmp="?a=buy_ads&tid=5")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" class="expire"><?php if ($this->_tpl_vars['ad']['expiration'] > 0): ?>Avaliable on <?php echo $this->_tpl_vars['ad']['exp_date']; ?>
 for $<?php echo $this->_tpl_vars['ad']['price']; ?>
/week<?php else: ?>Never<?php endif; ?></a>
       </div>
  </div>
  <?php endif; ?>
  <?php endforeach; unset($_from); else: ?>
  <a href="<?php echo ((is_array($_tmp="?a=buy_ads&tid=5")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" class="staff">List your non rotating banners here</a>
  <?php endif; ?>
  </div>
<?php endif; ?>