<?php if (is_home()) : ?>

	<div class="primary column">
    
    
        <div class="post secondary column">
            
        <?php
			if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?>
            <div class="widget">
                <h2 class="blockTitle"><?php _e('About this blog','paper') ?></h2>
                <p><?php _e('A little something about your blog and authors. Nothing lengthy, just an overview.','paper') ?></p>
            </div>
            <div class="widget">
                <h2 class="blockTitle"><?php _e('Pages','paper') ?></h2>
                <ul>
                <?php wp_list_pages('title_li='); ?> 
                </ul>
            </div>
		<?php endif; ?>
        
        </div>

    
        <div class="post secondary column">
       
            
		<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?>
            
        <div class="widget">
			<h2 class="blockTitle"><?php _e('Meta','paper') ?></h2>
                 <?php if(function_exists('polyglot_list_langs')): ?><ul id="langPicker"><?php polyglot_list_langs(true); ?></ul><?php endif; ?>
				<ul>
					<?php wp_register(); ?>
					<li><?php wp_loginout(); ?></li>
					<li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional','paper') ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>','paper') ?></a></li>
					<li><a href="http://gmpg.org/xfn/"><abbr title="<?php _e('XHTML Friends Network','paper') ?>">XFN</abbr></a></li>
					<li><a href="http://wordpress.org/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.','paper') ?>">WordPress</a></li>
					<?php wp_meta(); ?>
				</ul>
		</div>		
        <div class="widget">   
			<h2 class="blockTitle"><?php _e('Search','paper') ?></h2>
            <?php include (TEMPLATEPATH . '/searchform.php'); ?>
        </div>    
		<?php endif; ?>
            
        </div>
    
        <div class="post wide column">
        
            <?php
			if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(3) ) : ?>
            <div class="widget">
                <h2 class="blockTitle"><?php _e('Categories','paper') ?></h2>
                <ul class="widget_categories">
                    <?php wp_list_categories('orderby=name&show_count=1&feed_image='.get_bloginfo('template_url').'/images/feed.png&title_li=');?>
                </ul>
            </div>
            <?php endif; ?>
            
			
        </div>

		<div class="post secondary column">
        
        
            <?php
			if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(4) ) : ?>
            
            <div class="widget">
                <h2 class="blockTitle"><?php _e('Archives','paper') ?></h2>
    			<ul>
    				<?php wp_get_archives('type=monthly'); ?>
    			</ul>
            </div>
            
            
            <?php endif; ?>
            
        </div>
			
        <div class="post secondary column">
            
            
            <?php
			if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(5) ) : ?>
            <div class="widget">
                <h2 class="blockTitle"><?php _e('Blogroll','paper') ?></h2>
                <ul>
                <?php wp_list_bookmarks('categorize=0&limit=20&before=<li>&after=</li>&show_images=0&show_description=1&orderby=id&order=desc&title_li='); ?>
                </ul>
            </div>
            
            <?php endif; ?>
            
            
            
        </div>
			
			

			
    </div>
    
<?php else:?>
<div class="secondary column">
    
    <div class="post secondary column">
       
        <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?>
        
        <?php if ( is_page() ) { ?>
        
        <div class="widget">
			<h2 class="blockTitle"><?php _e('Meta','paper') ?></h2>
				<ul>
					<?php wp_register(); ?>
					<li><?php wp_loginout(); ?></li>
					<li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language','paper') ?>">XHTML</abbr></a></li>
					<li><a href="http://gmpg.org/xfn/"><abbr title="<?php _e('XHTML Friends Network','paper') ?>">XFN</abbr></a></li>
					<li><a href="http://wordpress.org/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.','paper') ?>">WordPress</a></li>
					<?php wp_meta(); ?>
				</ul>
		</div>		
			<?php } ?>
        <div class="widget">
            <h2 class="blockTitle"><?php _e('Pages','paper') ?></h2>
                <?php if(function_exists('polyglot_list_langs')): ?><ul id="langPicker"><?php polyglot_list_langs(true); ?></ul><?php endif; ?>
                <ul>
                <?php wp_list_pages('title_li='); ?> 
                </ul>
        </div>
        
        <div class="widget">
            <h2 class="blockTitle"><?php _e('Search','paper') ?></h2>
            <?php include (TEMPLATEPATH . '/searchform.php'); ?>
        </div>   
            
        <?php if ( is_404() || is_category() || is_day() || is_month() ||
    						is_year() || is_search() || is_paged() ) {
    			?> 

    			<?php /* If this is a 404 page */ if (is_404()) { ?>
    			<?php /* If this is a category archive */ } elseif (is_category()) { ?>
    			<p class="widget"><?php _e('You are currently browsing the archives for the','paper') ?> <?php single_cat_title(''); ?>.</p>

    			<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
    			<p class="widget"><?php _e('You are currently browsing the blog archives for the day') ?> <?php the_time('j M Y'); ?>.</p>

    			<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    			<p class="widget"><?php _e('You are currently browsing the blog archives for the') ?> <?php the_time('M Y'); ?>.</p>

    			<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    			<p class="widget"><?php _e('You are currently browsing the blog archives for the year') ?> <?php the_time('Y'); ?>.</p>

    			<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
    			<p class="widget"><?php _e('You have searched blog archives for') ?> <strong>'<?php the_search_query(); ?>'</strong>.<?php _e(' If you are unable to find anything in these search results, you can try one of these links.') ?></p>

    			<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    			<p><?php _e('You are currently browsing the blog archives.') ?></p>

    			<?php } ?>

    			 <?php } ?>
        
        
		<?php endif; ?>
            
    </div>
    <div class="post secondary column">
       
        <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?>
        <div class="widget">
            <h2 class="blockTitle"><?php _e('Categories','paper') ?></h2>
                <ul class="widget_categories">
                    <?php wp_list_categories('orderby=name&show_count=1&feed_image='.get_bloginfo('template_url').'/images/feed.png&title_li=');?>
                </ul>
        </div>
		<?php endif; ?>
            
    </div>
  
</div>

<?php endif; ?>
<div class="clr">&nbsp;</div>