/*
スクロール
*/
function getSP() {
    var obj = new Object();
    obj = $('html').offset();
    return obj;
}

$(document).ready(function(){
    $('a[href*=#]').click(function() {
		//var sc =getSP();
		//var sctime=-(sc.top/2);
        if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
            var $target = jQuery(this.hash);
            $target = $target.length && $target || jQuery('[name=' + this.hash.slice(1) +']');
            if ($target.length) {
                var targetOffset = $target.offset().top;
                jQuery('html,body').stop().animate({ scrollTop: targetOffset }, 1000, 'easeOutCirc');
                return false;
            }
        }
    });
});
