$j = jQuery;

if (
    !dyn_css_rule(".to_hide", "display: none")
    || !dyn_css_rule(".to_show", "display: block")
) {
    $j(document).ready(function() {
        $j(".to_hide").hide();
        $j(".to_show").show();
    });
}

(function($){  
    $.fn.autoscroll = function() {
        $('html,body').animate(
            {
                scrollLeft: this.offset().left,
                scrollTop: this.offset().top
            },
            500
        );
        return this;
    };  
})(jQuery);
