<?php get_header(); ?>
<div id="wrapp">
<div id="contentwrap">
<div class="inside">

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

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

			<div class="post" id="post-<?php the_ID(); ?>">
            <div class="in2">
                <div class="meta">
                 <span class="date"><?php the_time('M d, y'); ?></span>&nbsp;&nbsp;&nbsp;<span class="author">Posted by <?php the_author(); ?></span>
                </div>
				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>

				<div class="entry">
					<?php the_content(''); ?>
				</div>

			</div>
			</div>
            <?php comments_template(); ?>
    	<?php endwhile; ?>

		<div class="navigation">
			<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
			<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
		</div>
     	<?php if (function_exists('wp_pagenavi')) { wp_pagenavi(); }  ?>

	<?php else : ?>

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

	<?php endif; ?>
</div>
</div>
<?php get_sidebar(); ?>
<?php include(TEMPLATEPATH.'/sidebar2.php');?>

</div>

<?php get_footer(); ?>
