<?php get_header(); ?>

	<div id="body">	
		<h3 class="bcrumb">
			<?php gabfire_breadcrumb(); ?>
		</h3>
			
		<div id="main_content">
			
			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
					
				<div id="post-<?php the_ID(); ?>" <?php post_class('post'); ?>>
				
						<div class="head">
							<h1 class="entry-title">
								<?php the_title(); ?>
							</h1>
						</div><!-- /head -->
						
						<div class="entry">
							<?php 
							gabfire_media(array(
							'name' => 'qs-full', 
							'imgtag' => 1,
							'link' => 0,
							'enable_video' => 1, 
							'video_id' => 'mediabar', 
							'enable_thumb' => 1, 
							'catch_image' => 1,
							'resize_type' => 'c', /* c to crop, h to resize only height, w to resize only width */
							'media_width' => '537', 
							'media_height' => '300', 
							'thumb_align' => 'aligncenter', 
							'enable_default' => 0
							)); 

							the_content(); 
							
							// make sure any floated content gets cleared
							echo '<div class="clear"></div>';
							
							// Display pagination
							gabfire_postpagination();
							
							// If there is a widget, display it
							dynamic_sidebar('PageWidget');							
							
							edit_post_link(__('Edit','gabfire'),'<p>','</p>'); 
							?>
							<div class="clear"></div>
						</div><!-- /entry -->
						
				</div><!-- /post -->
				
			<?php endwhile; endif; ?>
			
			<?php if ( comments_open()) { ?>
			<div class="post">
				<?php comments_template(); ?>
			</div>
			<?php } ?>
			
		</div><!-- /main_content -->
			
		<aside id="sidebar">
			<?php get_sidebar(); ?> 
		</aside>

	</div><!-- /body -->

<?php get_footer(); ?>