I have even tried inserting in your ajax_showContent function after the innerHTML is loaded:
var anchor = document.location.hash.split("#");
var anchor_node = document.getElementById(anchor[1]);
if (anchor_node) {
window.scrollTo(0, anchor_node.offsetTop)}
It scrolls somewhere but not far enough.
If i put here windows.scrollTo(0,0) at least it scrolls to the top of the page