$(document).ready(function() {
	var sidebar = $("#sidebar");
    var top = sidebar.offset().top - parseFloat(sidebar.css('margin-top').replace(/auto/, 0));
    $(window).scroll(function (event) {
        // what the y position of the scroll is
        var y = $(this).scrollTop();
        
        // whether that's below the form
        if (y >= top) {
            // if so, ad the fixed class
            sidebar.addClass('fixed');
        } else {
            // otherwise remove it
            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);
    })
});