<?php get_header(); ?>

<div id="content">
	<?php if (have_posts()) : ?>	
	
		<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
		<?php /* If this is a category archive */ if (is_category()) { ?>
		<!--<h2><?php single_cat_title(); ?></h2>-->
		<?php if(trim(category_description()) != "<br />") { ?>
		<div id="description"><?php echo category_description(); ?></div>
		<? }?>
		<!--<div class="clearfloatthick">&nbsp;</div>-->
		<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
		<!--<h2><?php single_tag_title(); ?></h2>
		<div class="clearfloatthick">&nbsp;</div>-->
		<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
		<!--<h2 class="pagetitle"><?php the_time('F jS, Y'); ?></h2>-->
		<!--<div class="clearfloatthick">&nbsp;</div>-->
		<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
		<!--<h2 class="pagetitle"><?php the_time('F, Y'); ?></h2>-->
		<!--<div class="clearfloatthick">&nbsp;</div>-->
		<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
		<!--<h2 class="pagetitle"><?php the_time('Y'); ?></h2>-->
		<!--<div class="clearfloatthick">&nbsp;</div>-->
		<?php /* If this is an author archive */ } elseif (is_author()) { ?>
		<h1 class="pagetitle">Archives</h1><h3 class="pagetitle"> ...now browsing by author</h3>
		<div class="clearfloatthick">&nbsp;</div>
		<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
		<h1 class="pagetitle">Archives</h1><h3 class="pagetitle"> ...now browsing the general archives</h3>
 	 	<?php } ?>

		<?php while (have_posts()) : the_post(); ?>
		
<div class="post" id="post-<?php the_ID(); ?>">    	
    	<div class="post-header"></div>
        <div class="post-content">
        	<div class="post-date"><span class="post-month"><?php the_time('M') ?></span><span class="post-day"><?php the_time('d') ?></span></div>	  
	  		<div class="post-title">
                <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
                <span class="post-cat">Posted in <?php the_category(', ') ?></span>
	  		</div>
            <div class="entry">
            	<?php the_content('<span class="moretext">Read more</span>'); ?>
            </div>
            <div class="post-footer"><span class="post-comments"><?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></span></div>
      </div>
      <div class="post-bottom"></div>
	</div><!--/post -->
	
<?php endwhile; ?>
	
	<div class="navigation">
	  <span class="previous-entries"><?php next_posts_link('&#171; Previous Entries') ?></span> <span class="next-entries"><?php previous_posts_link('Next Entries &#187;') ?></span>
	</div>
	
	<?php else : ?>
	
		<h2>Not Found</h2>
		<p>Sorry, but you are looking for something that isn't here.</p>
		
  <?php endif; ?>

</div><!--close content id-->

<?php get_sidebar(); ?>

<?php get_footer(); ?>
