Good solution : Use history api with hashbangs fallback
Bad solution: as an easy hack you can capture the current scroll position with
$(".content").fadeIn(750);
var offset = window.location.href.match(/offset=(\d+)/)
if(offset){
$(document).scrollTop(offset[1])
}
$("a").click(function(event){
event.preventDefault();
linkLocation = this.href + "?offset="+$(document).scrollTop();//pay
//special attentions to this line will work only for a link without get parameters.
$(".content").fadeOut(500, redirectPage);
});
function redirectPage() {
window.location = linkLocation;
}