<?php get_header(); ?>

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

		<?php
			$counter = 1;
		?>

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

			<?php
				$hd_classes = 'post';
				if ($counter == 1) $hd_classes .= ' first-post';
			?>
			
			<div id="post-<?php the_ID(); ?>" <?php if (function_exists('post_class')) post_class('post') ?>>
				<div class="post-header">
					<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
					<h3><?php the_time(get_settings('date_format')) ?> // Posted in <?php the_category(', ') ?> <?php the_tags('(Tags: ', ', ', ')'); ?>&nbsp;|&nbsp; <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?><?php edit_post_link('Edit', ' &nbsp;|&nbsp; ', ''); ?></h3>
				</div>
				<div class="post-body">
					<?php the_content('Read the rest of this entry &raquo;'); ?>
				</div>
			</div>

		<?php $counter++; ?>

		<?php endwhile; ?>

		<div class="nav-prev-next-post">
			<div class="prev"><?php next_posts_link('&laquo; Previous Entries') ?></div>
			<div class="next"><?php previous_posts_link('Next Entries &raquo;') ?></div>
		</div>

	<?php else : ?>

		<h2>Not Found</h2>
		<p>Sorry, but you are looking for something that isn't here.</p>

	<?php endif; ?>

<?php get_sidebar(); ?>

<?php get_footer(); ?>
