<?php get_header(); ?> 

	<div id="main" class="clear">
	<div id="content">

	<?php if (have_posts()) : ?>
	<div class="post"> 
	<h1 class="bigHead"><?php the_search_query(); ?></h1>
	<p>You Are Browsing The Search Results For "<?php the_search_query(); ?>"</p>
	</div>
		<?php while (have_posts()) : the_post(); ?>
		
		<div class="post" id="post-<?php the_ID(); ?>">
				<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_excerpt(); ?></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' , '' , 'Comments are off'); ?></p>  </div>  
				</div>
			</div>

		<?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">No posts found. Try a different search?</h2>
		

	<?php endif; ?>

	</div>

<?php get_sidebar(); ?>
	</div>
<?php get_footer(); ?>