<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<title>{$settings.site_name}</title>
<link href="{"`$theme`style.css"|encurl}" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
{if $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>
{/if}
{literal}
<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>

{/literal}
</head>

<body>

<div class="header_menu">
 <div class="search" style="width:300px">
    {if $userinfo.logged != 1}
    {literal}
    <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>
    {/literal}
    <form method="post" name="loginform" onsubmit="return checklogin()" action="">
    <input type=hidden name="a" value="do_login">
    <input type=hidden name="referrer" value="{$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>
    {if $settings.use_turing}
      <th><img src="{"?a=turing&`$sesname`=`$sesid`&r=`$rand`"|encurl}" alt="turing code"></th>
      <td><input type=text name="turing" maxlength=6 size=6></td>
    {/if}
     <th>&nbsp;</th>
     <td><input type="submit" value="Go"></td>
    </tr>
    </table>
    </form>
    <p class="links"><a href="{"?a=signup"|encurl}">Sign Up</a> | <a href="{"?a=forgot_password"|encurl}">Forgot Password?</a></p>
    {/if}
 </div>
 <ul class="main" id="nav">
  <li><a href="{"?a=home"|encurl}">Home</a>
   <ul class="categories" style="width: 640px;">
    <li><a href="{"?a=new"|encurl}">New</a></li>
  {section name=g loop=$groups_nav}
    <li><a href="{"?a=home&type=`$groups_nav[g].id`"|encurl}">{$groups_nav[g].nav_name}</a></li>
  {/section}         
   </ul>
  </li>
  <li><a href="{"?a=news"|encurl}">News</a></li> 
  <li><a href="{"?a=advertise"|encurl}">Advertise</a>
   <ul class="categories" style="width: 270px;">
    <li><a href="{"?a=advertise"|encurl}">Add program</a></li>
    <li><a href="{"?a=buy_ads"|encurl}">Banners & Ads</a></li>
   </ul>
  </li>
{if $settings.refback_enabled}
  <li><a href="{"?a=allrcb"|encurl}">RCB</a>
   <ul class="categories" style="width: 270px;">
    <li><a href="{"?a=allrcb"|encurl}">RCB Programs</a></li>
    <li><a href="{"?a=listrcb"|encurl}">RCB Requests</a></li>
   </ul>
  </li>
{/if}
  <li><a href="{"?a=directory"|encurl}">Directory</a></li>
  <li><a href="{"?a=support"|encurl}">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">
{if $ads.3.enabled}
 <div class="banner rotating">
{if $ads.3.banner}
{if !$ads.3.flash}<a href="{$ads.3.url|escape:html}"><img src="{$ads.3.banner_url|escape:html}" border=0 width=468 height=60 alt="{$ads.3.title|escape:html}"></a>{else}{include file="swfobj.tpl" width=468 height=60 url=$ads.3.banner_url|escape:html}{/if}
<div class="info1"><a href="{$ads.3.url|escape:html}"><span class="title">{$ads.3.title|escape:html}</span> <span class="text">{$ads.3.text|escape:html}</span></a></div>
{else}
<a href="{"?a=buy_ads&tid=3"|encurl}"><img src="{"`$theme`images/banner468x60.png"|encurl}" border=0 width=468 height=60 alt="Buy ad now"></a>
{/if}
<a href="{"?a=buy_ads&tid=3"|encurl}" class="staff">{if $ads.3.exp_date}Avaliable on {$ads.3.exp_date} for ${$ads.3.price}/week{else}Buy rotating banner here right now for ${$ads.3.price}/week{/if}</a>
 </div>
{/if}

{if $settings.ads6_enabled}
<div class="banner solidbig">
{foreach from=$ads.6 item=ad}
{if $ad.type == 'default'}
<div class="ad clearfix">
     <a href="{"?a=buy_ads&type=6"|encurl}" target=_blank class=adlink><img src="{"`$theme`images/banner728x90.png"|encurl}" border=0 width=728 height=90 alt="buy ad now"></a>
     <div class="info">
     <a href="{"?a=buy_ads&tid=6"|encurl}" class="expire">Avaliable Now for ${$ad.price}/week</a>
     </div>
</div>
{else}
<div class="ad clearfix">
     <div class="adlink">
     {if !$ad.flash}<a href="{$ad.url|escape:html}" target=_blank><img src="{$ad.banner_url|escape:html}" border=0 width=728 height=90 alt="{$ad.title|escape:html}"></a>{else}{include file="swfobj.tpl" width=728 height=90 url=$ad.banner_url|escape:html}{/if}
     </div>
     <div class="info">
     {if $ad.text|escape:html}<a href="{$ad.url|escape:html}" target=_blank class="text">{$ad.text|escape:html}</a>{/if}
     <a href="{"?a=buy_ads&tid=6"|encurl}" class="expire">{if $ad.expiration > 0}Avaliable on {$ad.exp_date} for ${$ad.price}/week{else}Never for ${$ad.price}/week{/if}</a>
     </div>
</div>
{/if}
{foreachelse}
<a href="{"?a=buy_ads&tid=6"|encurl}" class="staff">List your non rotating banners here</a>
{/foreach}
</div>
{/if}
{if $ads.4.enabled}
<div class="banner rotatingbig">
<div class="ad clearfix">
{if $ads.4.banner}
   <div class="adlink">
     {if !$ads.4.flash}<a href="{$ads.4.url|escape:html}" target=_blank><img src="{$ads.4.banner_url|escape:html}" border=0 width=728 height=90 alt="{$ads.4.title|escape:html}"></a>{else}{include file="swfobj.tpl" width=728 height=90 url=$ads.4.banner_url|escape:html}{/if}
   </div>
{else}
<a href="{"?a=buy_ads&tid=4"|encurl}" class="adlink"><img src="{"`$theme`images/banner728x90.png"|encurl}" border=0 width=728 height=90 alt="buy ad now"></a>
{/if}
     <div class="info">
     {if $ads.4.text|escape:html}<a href="{$ads.4.url|escape:html}" target=_blank class="text">{$ads.4.text|escape:html}</a>{/if}
     <a href="{"?a=buy_ads&tid=4"|encurl}" class="expire">{if $ads.4.exp_date}Avaliable on {$ads.4.exp_date} for ${$ads.4.price}/week{else}Buy rotating banner here right now for ${$ads.4.price}/week{/if}</a>
     </div>
</div>
</div>
{/if}

{if $settings.ads5_enabled}
  <div class="banner solid">
{foreach from=$ads.5 item=ad}
  {if $ad.type == 'default'}
  <div class="ad clearfix">
       <a href="{"?a=buy_ads&tid=5"|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=5"|encurl}" class="expire">Avaliable Now for ${$ad.price}/week</a>
       </div>
  </div>
  {else}
  <div class="ad clearfix">
       <div class="adlink">
       {if !$ad.flash}<a href="{$ad.url|escape:html}" target=_blank><img src="{$ad.banner_url|escape:html}" border=0 width=468 height=60 alt="{$ad.title|escape:html}"></a>{else}{include file="swfobj.tpl" width=468 height=60 url=$ad.banner_url|escape:html}{/if}
       </div>
       <div class="info">
       {if $ad.text|escape:html}<a href="{$ad.url|escape:html}" target=_blank class="text">{$ad.title|escape:html} - {$ad.text|escape:html}</a>{/if}
       <a href="{"?a=buy_ads&tid=5"|encurl}" class="expire">{if $ad.expiration > 0}Avaliable on {$ad.exp_date} for ${$ad.price}/week{else}Never{/if}</a>
       </div>
  </div>
  {/if}
  {foreachelse}
  <a href="{"?a=buy_ads&tid=5"|encurl}" class="staff">List your non rotating banners here</a>
  {/foreach}
  </div>
{/if}