<?php get_header() ;?>
<?php if (($var['sidebars'] == 'left' || $var['sidebars'] == 'left and right') && ($var['sidebarGroup'] != 'right') ) { get_sidebar('left'); if($var['sidebars'] == 'left and right' && ($var['sidebarGroup'] == 'left')) {get_sidebar('right'); } } ?>
<div id="main" class="equalht">
<div class="main_wrapper">
<?php if ($var['k9-vision'] == 'on') { ?> <div class="mvtext" style="height:400px">Internal Content Area (<?php echo $var['main_width']; ?>px wide)</div><div class="clear" style="height:280px"></div><?php } else { ?>
<?php dynamic_sidebar('Content'); ?>
<?php k9_get_hanger('content/before/'); ?>
<?php if(have_posts()) : ?>
<?php while (have_posts()) : the_post() ?>
<div class="page">
<?php if ($var['hide_page_title'] != 'on') {?><h1 class="page_title"><a href="<?php the_permalink (); ?>" title="Permanent link to <?php the_title_attribute(); ?>" ><?php the_title() ;?></a></h1><?php } ?>
<?php the_content(); ?>
<div class="clear"></div>
</div>
<?php endwhile; ?>
<?php else : ?>
<h3>Page not found...</h3>
<?php endif; } ?>
<?php k9_get_hanger('content/after/'); ?>
<?php if ($var['comments_pages'] != '') {?>
<div id="comments_wrapper">
<?php comments_template(); ?>
</div>
<?php } ?>
</div>
</div>
<?php if (($var['sidebars'] == 'right' || $var['sidebars'] == 'left and right') && ($var['sidebarGroup'] != 'left') ) { if($var['sidebars'] == 'left and right' && ($var['sidebarGroup'] == 'right')) {get_sidebar('left'); } get_sidebar('right'); } ?>
<div class="clear"></div>
<?php get_footer() ;?>