/**
 * window.pageLoader object is used
 * to have more than one action triggered
 * by the onload event
 *
 * WARNING : this is incompatible the the
 *           use of <body onload=...> tag
 *           attribute.
 */

function LoadEventNotifier()
{
	var actions = new Array();

	this.addAction = function (codeString)
	{
		actions[actions.length] = codeString;
	};

	this.triggerActions = function ()
	{
		for(i=0; i<actions.length; i++) {
			eval(actions[i]);
		}
		this.loaded = true;
	};

	this.loaded = false;

}

window.pageLoader = new LoadEventNotifier();

window.onload = function() {this.pageLoader.triggerActions();};	