$(document).ready(function() {
	if ( location.hash.length > 0 ) {
		var targetOffset = $('a[name=' + location.hash.replace(/^#/, '') + ']').offset().top - 15;
		$('html, body').animate({
			scrollTop: targetOffset
		}, 1000);
	}
});
