http://adactio.com/atmedia2005/
Code:
function foo() {
//do stuff
}
window.onload=foo;
Doing this at the moment, but means I have to have all my scripts in the one library.js file. If anyone can come back with any answers to the original question id be most greatful.