$(function($) {
      $('a[href^=#]').click(function() {
          $.scrollTo( this.hash, 0, { speed: 1000 });
          return false;
    });
});
