<script>
    $(document).ready(function(){
        var hash = window.location.hash;
        if(hash == "#contact"){
            $('body,html').animate({
                scrollTop: $(hash).offset().top + 405
            }, 1000);
        }
    });
</script>