Thread:Kangaroopower/@comment-3030984-20120605105319/@comment-4674838-20120618193151

I wouldn't put ALL the code into the onload handler -- you should have some sort of constructor or init method, and call that method from within the onload handler.