jQuery(document).ready(function() {
    var offset = jQuery("#right_column").offset();
    var topPadding = 15;

    jQuery(window).scroll(function() {
        if (jQuery(window).scrollTop() > offset.top) {
            jQuery("#right_column").stop().animate({
                marginTop: jQuery(window).scrollTop() - offset.top + topPadding
            });
        } else {
            jQuery("#right_column").stop().animate({
                marginTop: 0
            });
        }
    });
});
