What you want to do is process your own hash links. A good idea is to group all of your a that link the hash link. for instance
$(".ahashlink").click( function() { var location = $(this).attr("href"); var offset = $(location).offset().top; $("body").scrollTop(offset+38); return false; });
This will allow you to scroll another 38 pixels (the height of the top panel) to the desired PLUS position. This, however, will not change your URL in your browser to contain the correct hash. This is because after you have window.location.hash = "#something" , your window will automatically scroll through this hash. Therefore, keep this in mind.
source share