<?php
/*
Template Name: Blog
*/
?>

<?php get_header(); ?>

<div id="content">

	<div id="contentleft">
	
		<div class="postarea">
	
		<?php include(TEMPLATEPATH . '/includes/breadcrumb.php');?>
				
			<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=".get_theme_mod('blog_cat')."&showposts=".get_theme_mod('blog_cat_num')."&paged=$page"); while ( have_posts() ) : the_post() ?>
            
			<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
				
        		<?php require(TEMPLATEPATH . '/includes/post-author-block.php'); ?>
				
				<?php the_excerpt(); ?>
                
                <div class="clear"></div>
				
				<?php require(TEMPLATEPATH . '/includes/post-meta-block.php'); ?>
							
			<?php endwhile; ?>
			
			<?php require(TEMPLATEPATH . '/includes/post-nav-block.php'); ?>
		
		</div>
		
	</div>
	
	<?php include(TEMPLATEPATH."/sidebar.php");?>
		
</div>

<?php get_footer(); ?>