<?php get_header(); ?>
<?php include (TEMPLATEPATH . '/tab.php'); ?>
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post <?php if (++$counter % 2 == 0) { echo "posteven"; }?>" id="post-<?php the_ID(); ?>">
<a href="<?php the_permalink() ?>"><img class="postimg" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php get_image_url(); ?>&h=200&w=200&zc=1" alt=""/></a>
<div class="box">
<div class="boxtitle">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<span class="author"> Posted by <?php the_author(); ?></span>
<span class="comm"><?php comments_popup_link('0 Comment', '1 Comment', '% Comments'); ?></span>
</div>
<div class="entry">
<p><?php the_content_rss('', TRUE, '', 50); ?> </p>
<a class="read" href="<?php the_permalink() ?>"> Continue </a>
</div>
</div>
<div class="clear"></div>
</div>
<?php endwhile; ?>
<div class="clear"></div>
<div id="navigation">
<?php if(function_exists('wp_pagenavi')) : ?>
<?php wp_pagenavi() ?>
<?php else : ?>
<div class="alignleft"><?php next_posts_link(__('« Older Entries','arclite')) ?></div>
<div class="alignright"><?php previous_posts_link(__('Newer Entries »','arclite')) ?></div>
<div class="clear"></div>
<?php endif; ?>
</div>
<?php else : ?>
<h1 class="title">Not Found</h1>
<p>Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>