<?php
global $options;
foreach ($options as $value) {
    if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
$dateformat = get_option('date_format');
$timeformat = get_option('time_format');
?>

<?php get_header(); ?>
    </div>
</div>
<div id="main">
	<div class="wrap">
	
		<?php if(is_home() && $paged < 2) { ?>
			<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Home Top (full-width)') ) : ?> <?php endif; ?>
			<div class="clear"></div>
		<?php } ?>
 		 
		<?php if (strlen($wpzoom_ad_head_imgpath) > 1 && $wpzoom_ad_head_select == 'Yes') {?>
			<div id="main_banner"> <?php if (strlen($wpzoom_ad_head_imgpath) > 1) { echo stripslashes($wpzoom_ad_head_imgpath); }?> </div>
		<?php } ?>
 	
     	<div id="content">
    	    
    	    <?php if(is_home() && $paged < 2) { ?>
				<div class="home_widgets">
					<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Home (main area)') ) : ?> <?php endif; ?>
				</div>
			<?php } ?>
		
			<?php if ($wpzoom_homepage_posts == 'Show') { include(TEMPLATEPATH . '/wpzoom_recent_posts.php'); } ?>
			 
		</div>
		
	<?php get_sidebar(); ?>
	
	<?php if(is_home() && $paged < 2) { ?>
		<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Home Bottom (full-width)') ) : ?> <?php endif; ?>
	<?php } ?>
	
<?php get_footer(); ?> 