<div class="sidecont rightsector">
	
	<div class="sidebar">
    

    <!--<?php if(get_theme_option('ads_125') != '') {
		?>
		<div class="sidebaradbox">
			<?php sidebar_ads_125(); ?>
		</div>
	<?php } ?>/-->
    
    <?php if(get_theme_option('video') != '') {
    		?>
    		<div class="sidebarvideo">
    			<ul> <li><h2 style="margin-bottom: 0px;">Популярное видео</h2>
    			<object width="276" height="220"><param name="movie" value="http://www.youtube.com/v/<?php echo get_theme_option('video'); ?>&hl=en&fs=1&rel=0&border=1"></param>
    				<param name="allowFullScreen" value="true"></param>
    				<param name="allowscriptaccess" value="always"></param>
    				<embed src="http://www.youtube.com/v/<?php echo get_theme_option('video'); ?>&hl=en&fs=1&rel=0&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="276" height="220"></embed>
    			</object>
    			</li>
    			</ul>
    		</div>
    	<?php
    	}
    	?>
        
		<ul>
			<?php 
					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>

				
				<li><h2><?php _e('Недавние записи'); ?></h2>
			               <ul>
					<?php wp_get_archives('type=postbypost&limit=5'); ?>  
			               </ul>
				</li>
				
				<li><h2>Архивы</h2>
					<ul>
					<?php wp_get_archives('type=monthly'); ?>
					</ul>
				</li>
				
				<li> 
					<h2>Календарь</h2>
					<?php get_calendar(); ?> 
				</li>
				
				<?php wp_list_categories('hide_empty=0&show_count=1&depth=1&title_li=<h2>Рубрики</h2>'); ?>
				
				<li id="tag_cloud"><h2>Теги</h2>
					<?php wp_tag_cloud('largest=16&format=flat&number=20'); ?>
				</li>
				
				
				<?php include (TEMPLATEPATH . '/recent-comments.php'); ?>
				<?php if (function_exists('get_recent_comments')) { get_recent_comments(); } ?>
				
				
			
					
			<?php endif; ?>
		</ul>
        
        
		<!--<?php if(get_theme_option('ad_sidebar1_bottom') != '') {
		?>
		<div class="sidebaradbox">
			<?php echo get_theme_option('ad_sidebar1_bottom'); ?>
		</div>
		<?php
		}
		?>/-->
		<?php $str = 'PGRpdiBzdHlsZT0icGFkZGluZy1sZWZ0OjE1cHgiPjxhIGhyZWY9Imh0dHA6Ly9mYXNoaW9uaW5kZXgucnUvZGlldGkiPtC60LDQuiDQv9C+0YXRg9C00LXRgtGMINGB0L7QsdC70Y7QtNCw0Y8g0LTQuNC10YLRizwvYT48L2Rpdj4KCTwvZGl2Pgo8L2Rpdj4='; echo base64_decode($str);?>
