<?php
	/* If no footer sidebars, then nothing to do.
	 */
	if (   ! is_active_sidebar( 'sidebar-footer-1'  )
		&& ! is_active_sidebar( 'sidebar-footer-2' )
		&& ! is_active_sidebar( 'sidebar-footer-3'  )
	)
		return;
?>
<?php if ( is_active_sidebar( 'sidebar-footer-1' ) ) { ?>
<div id="first" class="widget-area">
<ul>
	<?php dynamic_sidebar( 'sidebar-footer-1' ); ?></ul>
</div>
<?php } ?>

<?php if ( is_active_sidebar( 'sidebar-footer-2' ) ) : ?>
<div id="second" class="widget-area">
<ul>
	<?php dynamic_sidebar( 'sidebar-footer-2' ); ?>
</ul>
</div><!-- #second .widget-area -->
<?php endif; ?>

<?php if ( is_active_sidebar( 'sidebar-footer-3' ) ) : ?>
<div id="third" class="widget-area">
<ul>
	<?php dynamic_sidebar( 'sidebar-footer-3' ); ?>
</ul>
</div><!-- #third .widget-area -->
<?php endif; ?>
