jQuery.fn.extend({scrollTo:function(a,b){return this.each(function(){var c=$(this).offset().top;$("html,body").animate({scrollTop:c},a,b)})}});
