<?php get_header(); ?>
<div class="post-body pages">
<?php get_sidebar('left'); ?>
<div class="posts-wrap three_col"> 

		<?php if (have_posts()) : ?>
 	  <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
 	  <h2 class="archive-title">
         <?php $cat_p = get_queried_object(); ?>
         <?php if($cat_p->parent!=0){ echo "<span>".get_cat_name($cat_p->parent)."</span>";}?>
        <?php single_cat_title(); ?>
      </h2>
 	   <?php //print_r(get_queried_object());?>


<div class="cat_static_blocks"> 
<?php while (have_posts()) : the_post(); ?>
	


                            <?php $count_row = 1; ?>
                            <div class="left static_blocks">
                                   <h2> <span><?php the_title(); ?></span> </h2>
                                   <div class="left thumbnail">
                                        <img src="<? echo get_Image_url($post->ID,'s','thumbnail');?>"  width="150" alt=""><br>
                                        <a href="<?php echo the_permalink( ); ?> " class="static_blocks_link">Read more</a>
                                   </div>
                                   <div class="left text_static_blocks">
                                        <p>
                                           <?php the_excerpt(); ?>  
                                        </p>
                                   </div>
                            </div>
                        <?php $count_row +=1;
                              if($count_row>2){echo '<div class="clear line"></div>'; $count_row = 1;}   ?>
                        

        
		<?php endwhile; ?>
</div>        
		<div class="navigation">
			<div class="nav-prev"><?php next_posts_link( __('&laquo; Older Entries', 'blank')) ?></div>
			<div class="nav-next"><?php previous_posts_link( __('Newer Entries &raquo;', 'blank')) ?></div>
		</div>

	<?php else : ?>

		<h2><?php _e('The page you`re looking for doesn`t exist', 'blank'); ?></h2>
		<div class="search-404">
		<?php _e('Do you want to search for it?', 'blank'); ?><br />
		<?php include (TEMPLATEPATH . "/searchform.php"); ?>
		</div>
        
	<?php endif; ?>
 </div><!-- end .posts-wrap -->

<?php get_sidebar('right'); ?>
</div>
<?php get_footer('all'); ?>


  