<?php get_header(); ?>

	<div class="single column">
        <div class="post">
<?php is_tag(); ?>
		<?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 class="pageTitle"><?php _e('Category archive for','paper') ?> <strong><?php single_cat_title(); ?></strong></h2>
 	  <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
		<h2 class="pageTitle"><?php _e('Psots tagged','paper') ?> <strong><?php single_tag_title(); ?></strong></h2>
 	  <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
		<h2 class="pageTitle"><?php _e('Archive for','paper') ?> <strong><?php the_time('j M Y'); ?></strong></h2>
 	  <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
		<h2 class="pageTitle"><?php _e('Archive for','paper') ?> <strong><?php the_time('M Y'); ?></strong></h2>
 	  <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
		<h2 class="pageTitle"><?php _e('Archive for','paper') ?> <strong><?php the_time('Y'); ?></strong></h2>
	  <?php /* If this is an author archive */ } elseif (is_author()) { ?>
		<h2 class="pageTitle"><?php _e('Author archives','paper') ?></h2>
 	  <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
		<h2 class="pageTitle"><?php _e('Blog archives','paper') ?></h2>
 	  <?php } ?>

		<div class="navigation">
			<div class="alignLeft"><?php next_posts_link(__('&laquo; Older Entries','paper')) ?></div>
			<div class="alignRight"><?php previous_posts_link(__('Newer Entries &raquo;','paper')) ?></div>
		</div>

		<?php while (have_posts()) : the_post(); ?>
		<div class="archive" id="post-<?php the_ID(); ?>">
                
				<h3 class="excerptTitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
				
				<div class="entry">
                    <p><?php the_time('j M Y') ?></p>
					<?php the_excerpt(); ?>
				</div>
               
			</div>

		<?php endwhile; ?>

		<div class="navigation">
			<div class="alignLeft"><?php next_posts_link(__('&laquo; Older Entries','paper')) ?></div>
			<div class="alignRight"><?php previous_posts_link(__('Newer Entries &raquo;','paper')) ?></div>
		</div>

	<?php else : ?>

		<h2 class="center"><?php _e('Not Found','paper') ?></h2>
		<p class="center"><?php _e('Sorry, but you are looking for something that isn\'t here.','paper') ?></p>
		<?php include (TEMPLATEPATH . "/searchform.php"); ?>

	<?php endif; ?>
    </div>
	</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>
