<?php get_header(); ?><?php if(have_posts()) : ?><?php
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query('showposts=5'.'&paged='.$paged);
while ($wp_query->have_posts()) : $wp_query->the_post();
?>

<div id="post-<?php the_ID(); ?>"<?php if (is_sticky()) {echo " class=\"sticky\"";} ?>>
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<div class="post-meta">Posted in<?php the_category(', ') ?> -<?php the_time('j F Y') ?> -<?php comments_number('No comment', '1 comment', '% comments'); ?></div><?php the_content('Read more...'); ?><?php wp_link_pages(array('before' => '<p class="page-link"><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number', 'pagelink' => '<span>%</span>')); ?>
</div>
<div class="clear post-spt"></div><?php endwhile; ?>
<div class="page-nav">
<span class="older"><?php next_posts_link('&laquo; Previous Articles') ?></span><span class="newer"><?php previous_posts_link('Next Articles &raquo;') ?></span>
<div class="clear"></div>
</div><!-- end page-nav --><?php else : ?>
<h2>Woops...</h2><?php endif; ?>

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