<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      py:strip="">

<xi:include href="utils.html"><xi:fallback/></xi:include>

<head py:match="head" py:attrs="select('@*')">
  <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
  <title py:replace="''">Your title goes here</title>

  <link py:for="css in tg_css" py:replace="tg.ET(css.display())" />
  <link py:for="js in tg_js_head" py:replace="tg.ET(js.display())" />

  <meta py:replace="select('*')"/>
</head>

<body py:match="body" py:attrs="select('@*')">
  <div py:for="js in tg_js_bodytop" py:replace="tg.ET(js.display())" />


  <div id="bgcontain">
    <!-- header START -->

    <div class="HeaderBG">
      <div class="Header">

        <h1><a href="${tg.url_for('frontpage')}" title="${blog.name} - ${blog.description}">${blog.name}</a></h1>
    
        <!--
        <div class="TopMenu">
          <ul>
            <li><a class="TopMenu1" href="/"><em>Home</em></a></li>
          </ul>
        </div> --> <!-- .TopMenu -->
  
        <div class="Search" py:if="google_custom_search">
          <fieldset>
            <legend>Search</legend>

        <div id="google">
          <form method="get" action="http://www.google.com/custom" target="_top">
            <input type="hidden" name="domains" value="${google_custom_search}" />
            <input type="hidden" name="sitesearch" value="${google_custom_search}" />
            <label for="sbi" style="display: none">Enter your search terms</label>

            <input type="text" name="q" size="20" maxlength="255" value="" id="sbi" class="keyword" />
            <label for="sbb" style="display: none">Submit search form</label>
              <div id="buttonsearch">
                <input name="submit" type="image" class="search" title="Search" src="${tg.url('/tg_widgets/gibebloggingpro-' + gibebloggingpro_theme.version + '/images/transparent.gif')}" />
              </div>
          </form>
        </div>

          </fieldset>

        <div class="SearchCorner"></div>
        </div>

      </div> <!-- .Header -->
    </div> <!-- .HeaderBG -->


    <!-- container START -->
    <div class="ContainerBG">
      <div class="Container"> 

      <!-- Side Central START -->
        <div class="SC">

<div py:if="tg_flash" class="flash" py:content="tg_flash"></div>

<div py:replace="select('*|text()')"/>

        <!--  Side Central END -->
        </div>  <!-- .SC -->

      <!-- Side Right - START -->

        <div class="SR">

          <div class="SRL">
   
            <div class="Categories">
              <h2><strong>Tags</strong></h2>
              <ul py:with="tagcount=blog.all_tags_count(limit=20)">
                <li py:for="tag, count in tagcount"><a href="${tg.url_for('tags', tag = tag)}" title="View all posts filed under ${tag.name}">${tag.name} (${count})</a></li>
              </ul>
            </div>
     
            <!-- <div class="Links">
              <h2><strong>Links</strong></h2>
              <ul>
                <li><a href="http://www.hostgator.com">Web Hosting</a></li>
              </ul>
            </div> -->
          </div> <!-- .SRL -->

          <div class="SRR">

<a href="${tg.url_for('rss2.0.xml')}"><img src="${tg.url('/tg_widgets/gibebloggingpro-' + gibebloggingpro_theme.version + '/images/feed-icon-64x64.png')}" align="left" /><p style="padding-left: 70px; font-size: 0.9em;">Subscribe to ${blog.name}</p><br style="clear: both" /></a>

            <div class="Categories">
              <h2><strong>Last 12 months</strong></h2>
              <ul py:with="months=blog.months(num=12)">
                <li py:for="year, month, date, in_that_month in months" py:with="month_name=date.strftime('%B %Y')"><a href="${tg.url_for('archives_month', year = year, month = month)}" title="View all posts from ${month_name}">${month_name} (${in_that_month})</a></li>
              </ul>
            </div>

            <div class="Categories">
              <h2><strong>Further back...</strong></h2>
              <ul py:with="years=blog.years()">
                <li py:for="year, in_that_year in years"><a href="${tg.url_for('archives_year', year = year)}" title="View all posts from ${year}">${year} (${in_that_year})</a></li>
              </ul>
            </div>

          </div> <!-- .SRR -->
        </div> <!-- .SR -->
      </div> <!-- .Container -->
    </div> <!-- .ContainerBG -->
<!-- container END -->
 
    <div class="ExtraBG">
      <div class="Extra">
        <div class="RecentPosts">
          <h3>Recent Entries</h3>
          <ul py:with="recent_posts=blog.recent_posts(num=10)">
            <li py:for="p in recent_posts"><a href="${tg.url_for('posts', post=p)}" rel="bookmark" title="Permanent Link: ${p.title}">${p.title}</a></li>
          </ul>
        </div> <!-- .RecentPosts -->
        <div class="LastComments">
          <h3>Recent Comments</h3>
          <ul py:with="recent_comments=blog.recent_comments(num=5)">
            <li py:for="c in recent_comments"><strong>${c.author_name}</strong> <a href="${tg.url_for('posts', post=c.post)}#comment-${c.comment_id}" title="View the entire comment by ${c.author_name}" py:content="HTML(c.getExcerptHtml())">comment excerpt</a></li>
          </ul>
        </div> <!-- .LastComments -->

        <div class="MostCommented">
          <h3>Most Commented</h3>
          <ul py:with="most_commented_posts=blog.most_commented(num=10)">
            <li py:for="p in most_commented_posts"><a href="${tg.url_for('posts',post=p)}" title="${p.title}">${p.title}</a> (${len(p.approved_comments)})</li>
          </ul>
        </div> <!-- .MostCommented -->
      </div> <!-- .Extra -->
    </div> <!-- .ExtraBG -->

    <div class="FooterBG">
      <div class="Footer">
        <p>Powered by <a href="http://nxsy.org/code/gibe/">Gibe</a>!  &nbsp;  Theme based on <a href="http://bloggingpro.com/">BloggingPro</a> theme by <a href="http://designdisease.com">DesignDisease</a></p>
      </div> <!-- .Footer -->
    </div> <!-- .FooterBG -->
  </div> <!-- .bgcontain -->

  <div py:for="js in tg_js_bodybottom" py:replace="tg.ET(js.display())" />

</body>

</html>
