<?php get_header(); ?>
  <div id="container" class="clearfix">
    <div id="leftnav">
	  <?php get_sidebar(); ?>
    </div>
	
    <div id="rightnav">
	  <?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
</div>
	
    <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()) { ?>				
		<h4 class="pagetitle">Archief voor de categorie '<?php echo single_cat_title(); ?>'</h4>
		
 	  <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
		<h4 class="pagetitle">Archief voor <?php the_time('j F Y'); ?></h4>
		
	 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
		<h4 class="pagetitle">Archief voor <?php the_time('F Y'); ?></h4>

		<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
		<h4 class="pagetitle">Archief voor <?php the_time('Y'); ?></h4>
		
	  <?php /* If this is a search */ } elseif (is_search()) { ?>
		<h4 class="pagetitle">Zoek resultaten</h4>
		
	  <?php /* If this is an author archive */ } elseif (is_author()) { ?>
		<h4 class="pagetitle">Auteur archief</h4>

		<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
		<h4 class="pagetitle">Blog Archieven</h4>

		<?php } ?>


		<div class="navigation">
			<div class="alignleft"><?php next_posts_link('&laquo; Vorige berichten') ?></div>
			<div class="alignright"><?php previous_posts_link('Volgende berichten &raquo;') ?></div>
		</div>

		<?php while (have_posts()) : the_post(); ?>
		<div class="post" id="post-<?php the_ID(); ?>">

<div class="date"> <br/><?php the_time('d') ?>
				<br /><?php the_time('M') ?> </div>
				<h3 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanente link naar <?php the_title(); ?>"><?php the_title(); ?></a></h3>
				
				<div class="entry">
					<?php the_excerpt() ?>
				</div>
		
				<p class="postmetadata">Gepost in <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Bewerken','','<strong>|</strong>'); ?>  <?php comments_popup_link('Geen Reacties &#187;', '1 Reactie &#187;', '% Reacties &#187;'); ?></p> 

			</div>
	
		<?php endwhile; ?>

		<div class="navigation">
			<div class="alignleft"><?php next_posts_link('&laquo; Vorige berichten') ?></div>
			<div class="alignright"><?php previous_posts_link('volgende berichten &raquo;') ?></div>
		</div>
	
	<?php else : ?>

		<h4 class="center">Niet gevonden</h4>
		<?php include (TEMPLATEPATH . '/searchform.php'); ?>

	<?php endif; ?>
    </div>
</div>
    <?php get_footer(); ?>
	