<?php if (basename(__FILE__) == basename($_SERVER['SCRIPT_FILENAME'])) die ("Please don't do that.");?>

<div id="sidebar">
	<?php
	if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('300px Sidebar')) { ?>

		<div class="widget widget300">
			<strong class="widgetTitle"><?php _e('Categories',THEMENAME);?></strong>
			<ul>
				<?php wp_list_categories('children=1&hierarchical=1&use_desc_for_title=0&title_li=');?>
			</ul>
		</div>

		<div class="widget widget300">
			<strong class="widgetTitle"><?php _e('Pages',THEMENAME);?></strong>
			<ul>
				<?php wp_list_pages('sort_column=menu_order&title_li');?>
			</ul>
		</div>

		<div class="widget widget300">
			<strong class="widgetTitle"><?php _e('Meta',THEMENAME);?></strong>
			<ul>
				<?php wp_register(); ?>
				<li><?php wp_loginout(); ?></li>
				<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional"><?php _e('Valid',THEMENAME);?> <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></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, state-of-the-art semantic personal publishing platform."><?php _e('WordPress',THEMENAME);?></a></li>
				<?php wp_meta(); ?>
			</ul>
		</div>
		<?php
	}?>

	<div id="sidebar120"><?php if (function_exists('dynamic_sidebar')) dynamic_sidebar('120px Sidebar')?></div>
	<div id="sidebar160"><?php if (function_exists('dynamic_sidebar')) dynamic_sidebar('160px Sidebar')?></div>
	<div class="clear"></div>
</div>
