<?php get_header();?>
<div id="main" class="clear">  <!--main start-->
	<div id="content"><!--content start-->	<?php if (have_posts()) : ?>		<?php while (have_posts()) : the_post(); ?>
		<div class="post"  <?php sticky_class(); ?>  id="post-<?php the_ID();?>">
			<!--post start-->
				<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
				 <p class="small">Posted by&nbsp;<?php the_author() ?>&nbsp;on&nbsp;<?php the_time('jS F') ?>&nbsp;and&nbsp;posted&nbsp;in&nbsp;<?php the_category(', ') ?></p>  
				<div class="entry">
					<?php the_content();?>
				</div>
				<div class="tags">
					<div class="alignleft"><p class="small"><?php the_tags('Tags ' , '&bull; ', '<br />'); ?></p> </div>
					<div class="alignright"><p class="small"><?php comments_popup_link('Have Your Say', '1 Comment', '% Comments' , 'comment-link' , 'Comments are off'); ?></p></div>
				</div>
		</div><!--post end-->

		<?php endwhile; ?>
    <?php if (function_exists('wp_pagenavi')) : ?>
        <div class="center">
          <?php wp_pagenavi(); ?>
        </div>
		<?php else:?>
					<div class="navigation">
						<?php $style_uri = get_bloginfo('template_directory'); ?>
						<div class="alignleft"><?php next_posts_link('<img src="'.$style_uri.'/images/older.png" alt="Older" title="Older" />'); ?></div>
						<div class="alignright"><?php previous_posts_link('<img src="'.$style_uri.'/images/newer.png" alt="Newer" title="Newer" />'); ?></div>
					</div>

		<?php endif; ?>
		
<?php else : ?>

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

	<?php endif; ?>

</div>

<?php get_sidebar(); ?>
</div><!--end main-->
<?php get_footer(); ?>

