<?php
get_header();
?>

<div id="content">
	<?php 
	if(have_posts()){ 
		?><div id="skiplink"><a href="#sidebar">Jump to menu</a></div><?php 
		while(have_posts()){
			the_post();
			?><div <?php post_class(); ?>>
				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf('Permanent Link to %s', the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2>
				<div class="intro"><?php the_time('F jS, Y') ?> by <?php the_author() ?></div>
				<div class="entry">
					<?php the_content('Read the rest of this entry'); ?>
				</div>
				<p class="postmetadata">
				<?php ob_start(); ?>				
				<?php the_tags('Tags:' . ' ', ', ', '<br />'); ?> <?php printf('Posted in %s', get_the_category_list(', ')); ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;', '', 'Comments Closed' ); ?>
				<?php $metadata = ob_get_contents(); 
				ob_end_clean();
				echo str_replace('&rsquo;', "'", $metadata); ?>
				</p>
			</div>
			<?php
		}
		?>
		<div class="navigation">
			<div class="alignleft"><?php next_posts_link('&lt;&lt; Older Entries') ?></div>
			<div class="alignright"><?php previous_posts_link('Newer Entries &gt;&gt;') ?></div>
		</div>
		
		<?php comments_template();
	}
	else{
		?>
		<h2 class="center">Not Found</h2>
		<p class="center">Sorry, but you are looking for something that isn&#8217;t here.</p>
		<?php include (TEMPLATEPATH . "/searchform.php");
	}
	?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>