// JavaScript Document
$j(function(){
    $j('a[href*=#]').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
        && location.hostname == this.hostname) {
            var $jtarget = $j(this.hash);
            $jtarget = $jtarget.length && $jtarget || $j('[name=' + this.hash.slice(1) +']');
            if ($jtarget.length) {
                var targetOffset = $jtarget.offset().top;
                $j('html,body').animate({scrollTop: targetOffset}, 1000);
                return false;
            }
        }
    });
});