<?php get_header(); ?>



<div id="content">

<?php if (have_posts()) : ?>

<?php $post = $posts[0]; ?>



<?php if (is_category()) { ?><h2 class="archiveheader">Category: <?php echo single_cat_title(); ?></h2>

<p class="introtext"><?php echo category_description(); ?></p>

<?php } elseif (is_day()) { ?><h2 class="archiveheader">Date: <?php the_time('F jS, Y'); ?></h2>

<?php } elseif (is_month()) { ?><h2 class="archiveheader">Month: <?php the_time('F, Y'); ?></h2>

<?php } elseif (is_year()) { ?><h2 class="archiveheader">Year: <?php the_time('Y'); ?></h2>

<?php } elseif (is_search()) { ?><h2 class="archiveheader">Search results:</h2>

<?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?><h2 class="archiveheader">Archive</h2>

<?php } ?>



<?php while (have_posts()) : the_post(); ?>

<div class="post">

<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>

<p class="timestamp"><strong><?php the_time('j F, Y (H:i)') ?> | <?php the_category(', ') ?> | By: <?php the_author(); ?><?php edit_post_link('[e]',' | ',''); ?></strong></p>

<div class="contenttext">

<?php the_content('<p>Read more &raquo;</p>'); ?>

</div>

<p class="postmeta">Comments: <?php comments_popup_link( '-', '1', '%', '', ''); ?></p>

</div>



<?php endwhile; ?>





<div class="postpagesnav">

<div class="older"><?php next_posts_link('&laquo; Older entries') ?></div>

<div class="newer"><?php previous_posts_link('Newer entries &raquo;') ?></div>

<br class="clear" />

</div>



<?php else : ?>

<h2>Error 404 - Page not found!</h2>

<p>The page or entry that you tried to access could not be found. It may have been moved or deleted. Use the navigation menus or the search box to find what you are looking for!</p>

<?php endif; ?>



</div>



<?php get_sidebar(); ?>

<?php get_footer(); ?>