<?php get_header(); ?>

<div id="wrapper" class="clearfix">
          	<div id="content" class="clearfix" >
            	<?php if ( get_option( 'ptthemes_breadcrumbs' )) {  ?>
                <div class="breadcrumb clearfix">
                	<div class="breadcrumb_in"><?php yoast_breadcrumb('','');  ?></div>
                </div>
            <?php } ?>
            	<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
                      <?php the_title(); ?>
                      </a></h1>   
                
  		 
        <div class="single_post_blog">
      <?php if(have_posts()) : ?>
         <?php $post_images = bdw_get_images($post->ID,'large');?>
		  <?php while(have_posts()) : the_post() ?>
              <div id="post-<?php the_ID(); ?>" class="posts post_spacer">
              
 
		<?php if(get_post_meta($post->ID,'video',true)){?>
            <div class="video_main">
            <?php echo get_post_meta($post->ID,'video',true);?>
            </div>
         <?php }?>
         
         
         
          <?php 
		  if(get_the_post_thumbnail( $post->ID, array(575,500))){
		  $position='left';
		 echo get_the_post_thumbnail( $post->ID, array(575,500),array('class'	=> "alignleft",));
      }
       ?>
         
         
         
                      <?php the_content(); ?>
                   <p class="post_bottom clearfix"> <span class="category"> <?php the_category(" "); ?> </span>   <?php the_tags('<span class="tags">', ', ', '<br /> </span>'); ?>   </p>
              </div> <!-- post #end -->
              
               
<div class="pos_navigation clearfix">
			<div class="post_left fl"><?php previous_post_link('%link',''.__('Previous')) ?></div>
			<div class="post_right fr"><?php next_post_link('%link',__('Next').'') ?></div>
	</div>
              </div> <!-- single post content #end -->
              
              <div class="single_post_advt"><?php dynamic_sidebar(12);  ?> </div>
              
              
                  
                		
      <?php endwhile; ?>
 <?php endif; ?>
 
          <div id="comments" class="clearfix"> <?php comments_template(); ?></div>
          
  </div> <!-- content #end -->
           
      
      <div id="sidebar">
       	<?php dynamic_sidebar(11);  ?>
       </div>
</div> <!-- wrapper #end -->
<div id="bottom"></div>  
<?php get_footer(); ?>