$(document).ready(function() {
   
	
	/* LOGO LINK HOVER */
	
	$('#logo').mouseenter((function(i) {
  	$(this).stop().fadeTo(300,0.5);
  	})).mouseleave((function(i) {
  	$(this).stop().fadeTo(300,1);
  	}));
  	
  	
  	/* SCROLL TO TOP */
	
	$( 'a[href=#top]' ).click(function(){
    	$( 'html, body' ).animate({scrollTop:0}, 300);
    	return false;
    });
  	
  	
  	/* STICKY SIDEBAR MENU */
  	


	$('#sidebar-end').waypoint(function(event, direction) {
	   if (direction === 'down') {
	      $('.sticky-menu').fadeIn(1000);
	   }
	   else {
	      $('.sticky-menu').fadeOut(100);
	   }
	});

  	
  	
  	/* INFINITE SCROLL 
    
    $('#content').infinitescroll({
 
    navSelector  : ".post-navigation",
    nextSelector : "div.post-navigation a:first",
    itemSelector : "#content div.post",                   
	errorCallback: function(){},
	donetext	:	"That's all!"
  	},function(arrayOfNewElems){
  		$('#infscr-loading').remove();
  	}); */
  	
  	
  	/* KEY NAV 
    
    $('#content .post:first-child').addClass('current');
    
    shortcut.add("down",function() {
    
    	$('.key_down').fadeTo(100,0.7).delay(100).fadeTo(100,1);
    	
    	if($('#content').children('.current').attr('ID') != $('#main').children('.post:last').attr('ID')) {
    	
    	$('#content').children('.current').next('.post:first').addClass('current');
    	$('#content').children('.current:first').removeClass('current');
    	
    	$.scrollTo( $('.current'), 400, {easing: 'easeInOutExpo'} );
    	
    	}
    	
    });
    
    shortcut.add("up",function() {
    
    	$('.key_up').fadeTo(100,0.7).delay(100).fadeTo(100,1);
    	
    	if($('#content').children('.current').attr('ID') != $('#main').children(':first').attr('ID')) {
    	
    	$('#content').children('.current').prev('.post:last').addClass('current');
    	$('#content').children('.current:last').removeClass('current');
    	
    	$.scrollTo( $('.current'), 400, {easing: 'easeInOutExpo'} );
    	
    	}
    	
    }); */
  	
	

});
