<?php global $wp_query; if($wp_query->max_num_pages > 1) : ?>
<div id="paging" class="clearfix">

	<?php if($i%2==0 && !is_search()) : ?>
	
	<div class="content-space"></div>
	
	<?php endif; ?>

	<?php if(function_exists('wp_pagenavi')) : wp_pagenavi(); else: ?>
	
	<div style="float:left">
	    <?php next_posts_link(__('&laquo; Previous entries',TS_DOMAIN)); ?>
	</div>
	<div style="float:right">
	 	<?php previous_posts_link(__('Next entries &raquo;',TS_DOMAIN)); ?>
	</div>
	
	<?php endif; ?>
    
</div><!-- end paging -->
<?php endif; ?>