
jQuery(function () {
    var msie6 = jQuery.browser == 'msie' && jQuery.browser.version < 7;
    if (!msie6) {
        var top = jQuery('#entry-social').offset().top - parseFloat(jQuery('#entry-social').css('margin-top').replace(/auto/, 0));

        jQuery(window).scroll(function (event) {

            // what the y position of the scroll is

            var y = jQuery(this).scrollTop();
// whether that's below the form
            if (y >= top-20) {
                // if so, ad the fixed class
                jQuery('#entry-social').addClass('fixed');
            } else {
                // otherwise remove it
                jQuery('#entry-social').removeClass('fixed');
            }
        });
    }
});

