<?php require(ghostpool_inc . 'options.php'); ?>
					
<?php if((is_singular() && get_post_meta($post->ID, 'ghostpool_layout_individual', true) == "Fullwidth") OR ($theme_layout == "Fullwidth" && (is_singular() && get_post_meta($post->ID, 'ghostpool_layout_individual', true) == "Default"))) {} else { ?>

	<div id="sidebar">			

		<?php wp_nav_menu('sort_column=menu_order&container=ul&theme_location=side-nav&fallback_cb=null'); ?>
	
		<?php if(is_singular() && get_post_meta($post->ID, 'ghostpool_sidebar_1', true)) { dynamic_sidebar(get_post_meta($post->ID, 'ghostpool_sidebar_1', true)); } else { dynamic_sidebar('default'); } ?>
		
		<!--Begin Social Icons-->
		<div id="social">

			<?php if($theme_rss_button == "1") {} else { ?><a href="<?php if($theme_rss) { ?><?php echo($theme_rss); ?><?php } else { ?><?php bloginfo('rss2_url'); ?><?php } ?>" class="rss-icon">RSS</a><?php } ?>
						
			<?php if($theme_facebook) { ?><a href="<?php echo $theme_facebook; ?>" class="facebook-icon">Facebook</a><?php } ?>
			
			<?php if($theme_vimeo) { ?><a href="<?php echo $theme_vimeo; ?>" class="vimeo-icon">Vimeo</a><?php } ?>

			<?php if($theme_twitter) { ?><a href="<?php echo $theme_twitter; ?>" class="twitter-icon">Twitter</a><?php } ?>
			
			<?php if($theme_delicious) { ?><a href="<?php echo $theme_delicious; ?>" class="delicious-icon">Delicious</a><?php } ?>
			
			<?php if($theme_youtube) { ?><a href="<?php echo $theme_youtube; ?>" class="youtube-icon">YouTube</a><?php } ?>
			
			<?php if($theme_digg) { ?><a href="<?php echo $theme_digg; ?>" class="digg-icon">Digg</a><?php } ?>
			
			<?php if($theme_dribbble) { ?><a href="<?php echo $theme_dribbble; ?>" class="dribbble-icon">Dribbble</a><?php } ?>
			
		</div>
		<!--End Social Icons-->
		
	</div>	

<?php } ?>