The script control.js contains the function 'addLoadEvent'. This function enables one to add multiple onload events to a page.
There are two problems with the current function.
2) The events added to the above function, only fires after the entire web page (including all images) have been loaded.
An alternative approach which is used by some of the AJAX libraries (JQuery, mootools), is based on Dead Edwards code found here: http://dean.edwards.name/weblog/2006/06/again/
There are a few available reusable scripts on the net, which provides this technique.