// Create DOM namespace
//
if(typeof DOM == 'undefined') {
	DOM = {};
}

// Create Element object/namespace
//
DOM.OnLoad = {};

// Setup export information for JSAN
//
DOM.OnLoad.EXPORT		= [	'AddHandler', 'Execute' ];
DOM.OnLoad.EXPORT_TAGS	= {':all': DOM.OnLoad.EXPORT };
DOM.OnLoad.VERSION		= '0.10';

Object.Extend(DOM.OnLoad, 
{
	Handlers: [],

	AddHandler: function($Handler) {
		this.Handlers.push($Handler);
	},
	
	Execute: function() 
	{
		for(var $i = 0; $i < this.Handlers.length; ++$i) {
			this.Handlers[$i]();
		}
	}
});


