<?php
/**
 * @package WordPress
 * @subpackage Default_Theme
 */

?>

<?php get_header();?>

<?php if($DYN_hidecontent!="yes") { ?>

<?php if($DYN_layout!="layout_four" && $DYN_layout!="layout_five") { 

	get_sidebar(); 

} ?>

    <div class="mid-wrap <?php 

		if($DYN_layout=="layout_one") { ?> left out-full  <?php } 
		
		elseif($DYN_layout=="layout_two") { ?> right out-threequarter  <?php }
		
		elseif($DYN_layout=="layout_three") { ?> right out-half  <?php }
		
		elseif($DYN_layout=="layout_four") { ?> left out-threequarter  <?php }
		
		elseif($DYN_layout=="layout_five") { ?> left out-half  <?php }
		
		elseif($DYN_layout=="layout_six") { ?> left out-half  <?php }
		
		else { ?> left out-threequarter  <?php }
	
	?>">
    
            	<div id="content">          
                	<div class="post" id="post-<?php the_ID(); ?>"><!-- post -->

		<?php if($DYN_textresize=="yes") { ?>
                            <div class="textresize">
                                <ul>
                                    <li class="resize-sml"><img src="<?php bloginfo("template_url"); ?>/images/blank.gif" width="16" height="22"  alt="Decrease" class="decreaseFont" /></li>
                                    <li class="resize-lrg"><img src="<?php bloginfo("template_url"); ?>/images/blank.gif" width="20" height="22"  alt="Increase" class="increaseFont" /></li>
                                </ul>
                            </div><!-- /textresizer -->
        <?php } ?>
        <?php if($DYN_socialicons=="yes") { ?>
        
        	<?php if($DYN_disableheart=="yes") { ?><div class="socialicons" style="display:block;"><?php } else { ?>
				<div id="togglesocial">
					<ul>                     
						<li class="socialinit"><img src="<?php bloginfo("template_url"); ?>/images/blank.gif" width="26" height="22" alt="Show Icons" /></li>
						<li style="display: none;" class="socialhide"><img src="<?php bloginfo("template_url"); ?>/images/blank.gif" width="26" height="22" alt="Show Icons" /></li>
					</ul>
				</div><!-- /togglesocial -->                            
				<div class="socialicons">
			<?php } ?>
            
                                <ul>
        <?php if($DYN_socialdeli!="yes") { ?><li class="social-delicious"><a href="http://del.icio.us/post?url=<?php the_permalink() ?>&amp;title=<?php the_title() ?>" title="<?php echo GEN_TERM_O1; ?> Del.icio.us" target="_blank"><img src="<?php bloginfo("template_url"); ?>/images/blank.gif" width="21" height="21" alt="Delicious" /></a></li><?php } ?>  
        <?php if($DYN_socialdigg!="yes") { ?><li class="social-digg"><a href="http://www.digg.com/submit?phase=2&amp;url=<?php the_permalink() ?>&amp;title=<?php the_title() ?>" title="<?php echo GEN_TERM_O1; ?> Digg" target="_blank"><img src="<?php bloginfo("template_url"); ?>/images/blank.gif" width="21" height="21" alt="Digg" /></a></li><?php } ?>  
        <?php if($DYN_socialtwitter!="yes") { ?><li class="social-twitter"><a href="http://twitter.com/home?status=Reading: <?php the_title(); ?> <?php the_permalink() ?>" title="<?php echo GEN_TERM_O1; ?> Twitter" target="_blank"><img src="<?php bloginfo("template_url"); ?>/images/blank.gif" width="21" height="21" alt="Twitter" /></a></li><?php } ?>  
        <?php if($DYN_socialfb!="yes") { ?><li class="social-facebook"><a href="http://www.facebook.com/sharer.php?u=<?php echo get_permalink(); ?>&amp;t=<?php echo  the_title(); ?>" title="<?php echo GEN_TERM_O1; ?> Facebook" target="_blank"><img src="<?php bloginfo("template_url"); ?>/images/blank.gif" width="21" height="21" alt="Facebook" /></a></li><?php } ?> 
        <?php if($DYN_socialrss!="yes") { ?><li class="social-rss"><a href="feed://<?php echo get_permalink(); ?>feed/rss/" title="RSS" target="_blank"><img src="<?php bloginfo("template_url"); ?>/images/blank.gif" width="21" height="21" alt="RSS" /></a></li><?php } ?>  
                                </ul>
                            </div><!-- /socialicons -->
<?php } ?>                     
                     <?php if($DYN_postdate!="" && $DYN_authorname!="" && $DYN_pagesubtitle!="" && $DYN_pagetitle!="" || $DYN_pagetitle !="BLANK") { ?>
                            <div class="post-titles"><!-- post-titles -->
                               <?php if($DYN_pagetitle) { ?>
                                		<?php if($DYN_pagetitle != "BLANK") { ?>
										<h1><?php $DYN_pagetitle = htmlspecialchars($DYN_pagetitle); echo do_shortcode($DYN_pagetitle); ?></h1>
                                        <?php } ?>
								<?php } else { ?>
                                		<?php if($DYN_pagetitle != "BLANK") { ?>
										<h1><?php the_title(); ?></h1>
                                        <?php } ?>							
								<?php } ?>		
                                <?php if($DYN_pagesubtitle) { ?>
                                        <h2><?php $DYN_pagesubtitle = htmlspecialchars($DYN_pagesubtitle); echo do_shortcode($DYN_pagesubtitle);  ?></h2>
                                        <?php } ?>
                                <?php if($DYN_postdate || $DYN_authorname) { ?>
                                 <div class="hozbreak nospace">&nbsp;</div>
                                    <p class="post-date">
                                            <?php if($DYN_postdate) { ?>
                                            <small><?php the_time('F jS  Y'); ?></small><span class="break">&nbsp;</span>
                                            <?php } ?>
                                            <?php if($DYN_authorname) { ?>
                                            <small>By <span class="author"><?php echo the_author_firstname(); ?>&nbsp;<?php echo the_author_lastname(); ?></span></small>
                                            <?php } ?>
                                    </p>
                                 <div class="hozbreak nospace">&nbsp;</div>
								<?php } ?>           
                            </div><!-- /post-titles -->
							<div class="clear"></div>
                            <?php } ?>  
                            <div class="entry"><!-- entry -->
                                <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
                
                                <?php wp_link_pages(array('before' => '<ul class="paging"><li class="pages">'.GEN_TERM_R1.':</li> ', 'after' => '</ul>','link_before'=> '<li class="pagebutton">',  'next_or_number' => 'number', 'link_after'=> '</li>',)); ?>
                            </div><!-- /entry -->  
                     </div><!-- /post -->
                
                    	<?php edit_post_link(GEN_TERM_P1, '<p>', '</p>'); ?>
 
				<?php // comments_template(); // Enable this line for comments on pages ?> 


                </div><!-- /content -->
                <div class="clear"></div>
       
	</div><!-- /mid-wrap -->
    

<?php get_sidebar(); ?>

<?php } // Hide Content *END* ?>

<?php get_footer(); ?>