<?php if (get_option('flex_footer_fw') == "yes") { // end wrapper for full width footer ?>
<div class="clear"></div>
</div>  
<?php } ?>
<div id="footer">
	<?php if (get_option('flex_foot_feature') == "no") { ?>
	<?php } else { ?>
	<div id="footerfeature">
		<div class="topshadow">
			<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Footer') ) : else : ?>
			<!-- This is where you edit the footer ads if you don't use widgets -->
			<h2 style="padding:15px 0 0 15px; margin:0px;color:#fff; font:normal 26px Georgia, serif;">This is the footer section for additional featured content</h2>
			<p style="padding:10px 15px 0 15px; margin: 0px; font-size:14px; line-height:18px;">This content can easily be edited in the footer.php file of the theme. If you activate widgets in the footer, this content will all be replaced with your widgets. Or, you can simple disable the entire section in the theme options.</p>
			<!-- This is the left ad -->
			<div class="foot_box"> <img src="<?php bloginfo('template_directory'); ?>/images/sample-ebook.png" style="float:left; margin-right:10px;" alt=""/>
				<h2>Special Offer 1</h2>
				This is a content area in the footer where you can promote special offers or activate widgets for recent posts, image galleries and more!&nbsp;&nbsp;<a href="#" target="_top"><strong>Read more!</strong></a> </div>
			<!-- This is the right ad -->
			<div class="foot_box"> <img src="<?php bloginfo('template_directory'); ?>/images/sample-ebook.png" style="float:left; margin-right:10px;" alt=""/>
				<h2>Special Offer 2</h2>
				This is a content area in the footer where you can promote special offers or activate widgets for recent posts, image galleries and more!&nbsp;&nbsp;<a href="#" target="_top"><strong>Read more!</strong></a> </div>
			<?php endif; ?>
			<div class="clear"></div>
		</div>
	</div>
	<?php } ?>
	<div id="footerdark">
    	<div id="footercontent">
    <p><!-- --><?php if (get_option('flex_foot_copy') == "yes" || !get_option('flex_foot_copy')) { ?>
		Copyright &copy;
			<script type="text/javascript"><!--
				var today = new Date();
				document.write(today.getFullYear());
			//-->
			</script>
			<a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name');?></a><?php } ?> <?php echo stripslashes(get_option('flex_foot_links')); ?></p>
            
		<?php if(get_option('flex_foot_flexlink') == "yes" || !get_option('flex_foot_flexlink')) { 
			if(get_option('flex_foot_flexaff')) { ?>
			<p>Powered by <a href="<?php echo get_option('flex_foot_flexaff'); ?>" rel="nofollow" target="_blank">FlexSqueeze</a></p>
			<?php } else { ?>
		<p>Powered by <a href="http://www.flexsqueeze.com">FlexSqueeze</a></p>
		<?php } } ?>
	</div>

</div>
</div>
<!-- footer close -->
<div class="clear"></div>
</div>
<!-- wrap close -->
<?php wp_footer(); ?>
<?php if (get_option('flex_footer_fw') == "no") { // if not a full width footer close wrapper ?>
</div>  
<?php } ?>

<?php if (get_option('flex_footer_script')) { echo stripslashes(get_option('flex_footer_script')); }?>
</body></html>