   1. // Easingの追加  
   2. jQuery.easing.quart = function (x, t, b, c, d) {  
   3.     return -c * ((t=t/d-1)*t*t*t - 1) + b;  
   4. };  
   5.   
   6. /*------------------------------------- 
   7.  ページ読み込み中 
   8. -------------------------------------*/  
   9. jQuery(document).ready(function(){  
  10.   
  11.     //  
  12.     // <a href="#***">の場合、スクロール処理を追加  
  13.     //  
  14.     jQuery('a[href*=#]').click(function() {  
  15.         if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {  
  16.             var $target = jQuery(this.hash);  
  17.             $target = $target.length && $target || jQuery('[name=' + this.hash.slice(1) +']');  
  18.             if ($target.length) {  
  19.                 var targetOffset = $target.offset().top;  
  20.                 jQuery('html,body').animate({ scrollTop: targetOffset }, 1200, 'quart');  
  21.                 return false;  
  22.             }  
  23.         }  
  24.     });  
  25.   
  26. });  