<div id="sidebar">

<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar Top') ) : else : ?>

<h2>Welcome visitor!</h2>

<p>This sample text is useful for making a short presentation of your site, or for displaying widgets or ads which require a bit extra width. Edit this text in sidebar.php - or add a sidebar to the "Sidebar Top" widget area to change this text...</p>

<?php endif; ?>



<div class="left">

<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar Left') ) : else : ?>



<h2>Pages</h2>

<?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?>

<ul>

<li class="<?php echo $highlight; ?>"><a href="<?php bloginfo('url'); ?>">Home</a></li>

<?php wp_list_pages('sort_column=menu_order&title_li=&depth=3') ?>

</ul>



<h2>Categories</h2>

<ul>

<?php wp_list_cats('sort_column=name&list=1&optioncount=0&hierarchical=1&children=0&hide_empty=1'); ?>

</ul>



<?php endif; ?>

</div>



<div class="right">

<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar Right') ) : else : ?>

<h2>Archives</h2>

<ul>

<?php wp_get_archives('type=monthly&show_post_count=0'); ?>

</ul>



<h2>Meta</h2>

<ul>

<li><?php wp_loginout(); ?></li>

<?php wp_meta(); ?>

</ul>



<?php /* get_calendar(1); */ ?>



<?php endif; ?>

<br class="clear" />

</div>