// Loader class
function Loader()
{
//private:
	var loadList = Array();
	var __this = this;

//public:	
	// Constructor
	this.construct = function()
	{
		window.onload = function() { __this.execute(); };
	}
	
	// Register load method
	this.register = function(method)
	{
		loadList[loadList.length] = method;
	}
	
	// Execute
	this.execute = function()
	{
		for (var i=0; i<loadList.length; i++)
		{
			eval(loadList[i]);
		}
	}
	
	this.construct();
};

loader = new Loader;