Although simplicity is best, but if you just want to automate this process or make it genericise then you can use this lite plugin jquery.hashTag.js
$('a').hashTag({
source: function() {
return $(this).attr('id');
}
});
Just put this snippet inside $(document).ready.
It will do rest of the work itself. Like auto clicking on the link whose id was provided as the hash.