function ModuleControllerObject()
{
	this.arrModules = new Array();

	this.addModule = function(in_objModule)
	{
		this.arrModules.push(in_objModule);
	}

	this.initModules = function()
	{
		for (var i = 0; i < this.arrModules.length; i++)
		{
			this.arrModules[i].init();
		}
		for (var i = 0; i < this.arrModules.length; i++)
		{
			this.arrModules[i].onModulesInitialized();
		}
	}

	this.getModuleByType = function(in_strType)
	{
		var arrModulesByType = new Array();
		for (var i = 0; i < this.arrModules.length; i++)
		{
			if (this.arrModules[i].strType == in_strType)
			{
				arrModulesByType.push(this.arrModules[i]);
			}
		}
		return arrModulesByType;
	}
}