﻿/*** ----------------- **** ----------------- ****
****    Console LOG    **** (c) http://vj.vg/ ****
**** ----------------- **** ----------------- ***/
this.log = this.console && console.log && function(){ console.log.apply( console, arguments ); } || function(){};

/*** ----------------- **** ----------------- ****
**** HTML5 tags Enable **** (c) http://vj.vg/ ****
**** ----------------- **** ----------------- ***/
(
	function( document ){
		if( !/*@cc_on!@*/0 )
			return;
		'abbr article aside audio canvas datalist details eventsource figure footer header hgroup mark menu meter nav output progress section time video'.replace(
			/\w+/g,
			function( tag ){
				document.createElement( tag );
			}
		);
	}
)( document );

/*
 * JavaScript Code
 *
 * Copyright (c) 2010 Александр Кузнецов aka Regent(http://vl.vg/)
 *
 */
(
	function( w, d ){
		var _ = w._ = function( str, obj ){
			return d.getElementById( str );
		};
		_.sidebar = function( n ){
			switch( n ){
				case 1:
					_( 'aPopular' ).className = 'buttom selected';
					_( 'aComments' ).className = 'buttom';
					_( 'popular' ).style.display = 'block';
					_( 's-comments' ).style.display = 'none';
					return false;
				case 2:
					_( 'aPopular' ).className = 'buttom';
					_( 'aComments' ).className = 'buttom selected';
					_( 'popular' ).style.display = 'none';
					_( 's-comments' ).style.display = 'block';
					return false;
				case 3:
					_( 'aTags' ).className = 'buttom selected';
					_( 'aAbout' ).className = 'buttom';
					_( 's-tags' ).style.display = 'block';
					_( 's-about' ).style.display = 'none';
					return false;
				case 4:
					_( 'aTags' ).className = 'buttom';
					_( 'aAbout' ).className = 'buttom selected';
					_( 's-tags' ).style.display = 'none';
					_( 's-about' ).style.display = 'block';
					return false;
				default:
					break;
			}
		};
	}
)( window, document );
