I have the following javascript


function headerTop() {
var height = $(".header_container").height() + $(".nav_container").height();
$(".content").css({"paddingTop" : height});

window.onload = function () {


This peace of javascript calculate the menu height of the header and nav container and places the content div under the menu

when I go to http://www.mysite.com it works perfect but when I go to http://www.mysite.com/#something he goes to the something anchor but de above peace of javascript is ignored.
I'm totally stuck at this so if.