$(document).ready(function() {
	var sidebar = $("#sidebar");
    var top = sidebar.offset().top - parseFloat(sidebar.css('margin-top').replace(/auto/, 0));
    $(window).scroll(function (event) {
        var y = $(this).scrollTop();
        if (y >= top) {
            sidebar.addClass('fixed');
        } else {
            sidebar.removeClass('fixed');
        }
    });
    
    $("#networking-icons a img").css({ opacity: 0.2 }).hover(function() {
    	$(this).stop().animate({ opacity: 1 }, 150);
    }, function() {
    	$(this).stop().animate({ opacity: 0.2 }, 500);
    });
});
