<?php get_header(); ?>


<?php if (is_front_page() ) {?>
<div class="container">
  <div id="content">
    <div class="sidebar">
     <?php include (TEMPLATEPATH . '/sidebar_right.php'); ?>
      <div id="sidebar-base"></div>
    </div>
    <!-- close .sidebar -->
    <div id="main-content-sidebar">
<div id="middlecolumn">
        <div class="entry">
        
		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<div class="post" id="post-<?php the_ID(); ?>">
		<h2><?php the_title(); ?></h2>
			
				<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
			</div>
		
	<?php endwhile; endif; ?>
	<?php //edit_post_link('Edit this', '<p>', '</p>'); ?>
	</div>
   </div>


    </div>
    <!-- close #main-content-sidebar -->
  </div>
  <!-- close #content -->
</div>
<!-- close .container -->

<?php }elseif (is_page(27)) {?>

<div class="container">
  <div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<div class="post" id="post-<?php the_ID(); ?>">
		<h1><?php the_title(); ?></h1>
			
				<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
			</div>
		
	<?php endwhile; endif; ?>
  </div>
  <!-- close #content -->
</div>
<!-- close .container -->

<?php }elseif (is_page(25)) {?>

<div class="container">
  <div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<div class="post" id="post-<?php the_ID(); ?>">
		<h1><?php the_title(); ?></h1>
			
				<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
			</div>
		
	<?php endwhile; endif; ?>
  </div>
  <!-- close #content -->
</div>
<!-- close .container -->

<?php }elseif (is_page(23)) {?>

<div class="container">
  <div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<div class="post" id="post-<?php the_ID(); ?>">
		<h1><?php the_title(); ?></h1>
			
				<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
			</div>
		
<?php //comments_template(); ?>
        
	<?php endwhile; endif; ?>
  </div>
  <!-- close #content -->
</div>
<!-- close .container -->

<?php }elseif (is_page(31)) {?>

<div class="container">
  <div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<div class="post" id="post-<?php the_ID(); ?>">
		<h1><?php the_title(); ?></h1>
			
				<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
			</div>
		
<?php //comments_template(); ?>
        
	<?php endwhile; endif; ?>
  </div>
  <!-- close #content -->
</div>
<!-- close .container -->

<?php }elseif (is_page(7)) {?>

<div class="container">
  <div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<div class="post" id="post-<?php the_ID(); ?>">
		<h1><?php the_title(); ?></h1>
			
				<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
			</div>
		
<?php //comments_template(); ?>
        
	<?php endwhile; endif; ?>
  </div>
  <!-- close #content -->
</div>
<!-- close .container -->

<?php }elseif (is_page(11)) {?>

<div class="container">
  <div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<div class="post" id="post-<?php the_ID(); ?>">
		<h1><?php the_title(); ?></h1>
			
				<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
			</div>
		
<?php //comments_template(); ?>
        
	<?php endwhile; endif; ?>
  </div>
  <!-- close #content -->
</div>
<!-- close .container -->

<?php }elseif (is_page(209)) {?>

<div class="container">
  <div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<div class="post" id="post-<?php the_ID(); ?>">
		<h1><?php the_title(); ?></h1>
			
				<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
			</div>
		
<?php //comments_template(); ?>
        
	<?php endwhile; endif; ?>
  </div>
  <!-- close #content -->
</div>
<!-- close .container -->

<?php }elseif (is_page(220)) {?>

<div class="container">
  <div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<div class="post" id="post-<?php the_ID(); ?>">
		<h1><?php the_title(); ?></h1>
			
				<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
			</div>
		
<?php //comments_template(); ?>
        
	<?php endwhile; endif; ?>
  </div>
  <!-- close #content -->
</div>
<!-- close .container -->

<?php }elseif (is_page(29)) {?>

<div class="container">
  <div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<div class="post" id="post-<?php the_ID(); ?>">
		<h1><?php the_title(); ?></h1>
			
				<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
			</div>
		
<?php //comments_template(); ?>
        
	<?php endwhile; endif; ?>
  </div>
  <!-- close #content -->
</div>
<!-- close .container -->

<?php }elseif (is_page(33)) {?>

<div class="container">
  <div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<div class="post" id="post-<?php the_ID(); ?>">
		<h1><?php the_title(); ?></h1>
			
				<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
			</div>
		
<?php //comments_template(); ?>
        
	<?php endwhile; endif; ?>
  </div>
  <!-- close #content -->
</div>
<!-- close .container -->

<?php }else{?>

<div class="container">
  <div id="content">
    <div class="sidebar sidebarleft">



      <h4>
<?php
$parent_title = get_the_title($post->post_parent);
echo $parent_title;
?>
      </h4>
		<?php
        if($post->post_parent)
        $children = wp_list_pages("sort_column=menu_order&title_li=&child_of=".$post->post_parent."&echo=0"); else
        $children = wp_list_pages("sort_column=menu_order&title_li=&child_of=".$post->ID."&echo=0");
        if ($children) { ?>
        <ul class="submenu">
        <?php echo $children; ?>
        </ul>
        <?php } ?>


     
<div id="sidebar-base"></div>
    </div>
    <!-- close .sidebar -->
    <div id="main-content-sidebar">
		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<div class="post" id="post-<?php the_ID(); ?>">
      <h1><?php the_title(); ?></h1>
	<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
    <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
			</div>
		
	<?php endwhile; endif; ?>
    </div>
    <!-- close #main-content-sidebar -->
    <!-- close #content -->
  </div>
</div>
<!-- close .container -->
<?php }?>
<?php get_footer(); ?>