
<!-- begin left sidebar -->

<div id="navibar">
	<div class="links">
		<ul>
			<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Left Navigation') ) : else : ?>
		


	<li><h2>Categories</h2>
				<ul>
				<?php wp_list_cats(); ?>
				</ul>
	</li>



<?php include (TEMPLATEPATH . '/searchform.php'); ?>



	<li><h2><?php _e('Meta'); ?></h2>
				<ul>
					<?php wp_register(); ?>
					<li><?php wp_loginout(); ?></li>
					<li><a href="feed:<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
					<li><a href="feed:<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
					<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
					<li><a href="http://jigsaw.w3.org/css-validator/check/referer" title="Valid CSS">Valid CSS</a></li>
					<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
					<li><a href="http://wordpress.org/" title="Powered by WordPress">WordPress</a></li>
					<?php wp_meta(); ?>
				</ul>
	</li>


				
<?php if (function_exists('wp_theme_switcher')) { ?>
	
	<li><h2><?php _e('Themes'); ?></h2>
					<?php wp_theme_switcher(); ?>
	</li>
<?php } ?>



<?php endif; ?>
</ul>

		</div> <!-- /links -->
	<div id="navi_end_left"> </div>
</div> <!-- /navibar -->



<!-- begin right sidebar -->

<div id="right">
	<div class="links">
		<ul>
			<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Right Sidebar') ) : else : ?>
			


<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
	<li><h2><?php _e('Author'); ?></h2>
		<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
	</li>
-->
		
		
	<li><h2><?php _e('Last Entries'); ?></h2>
		<ul><?php get_archives('postbypost', '10', 'custom', '<li>', '</li>'); ?></ul>
	</li>




 <?php
 $link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories");
 foreach ($link_cats as $link_cat) {
 ?>
  <li id="linkcat-<?php echo $link_cat->cat_id; ?>"><h2><?php echo $link_cat->cat_name; ?></h2>
   <ul><?php wp_get_links($link_cat->cat_id); ?></ul>
  </li>
 <?php } ?>




	<li><h2><?php _e('Archives'); ?></h2>
		<ul><?php wp_get_archives('type=monthly'); ?></ul>
	</li>


	
<?php endif; ?>
</ul>
		
		</div> <!-- /links -->
	<div id="navi_end_right"> </div>
</div> <!-- end right sidebar -->