// Initialize Global Framework
XUI = new XUI_Framework("XUI_Global");

function XUI_Framework(name) 
{
	this.name = name;	
	this.collection = [];
	
	this.GetName = GetName;
	this.GetCollection = GetCollection;
	this.GetObject = GetObject;
	this.AddObject = AddObject;	
	this.Create = Create;
	this.AddObjectProperty = AddObjectProperty;
	
	function GetName()
	{
		return this.name;
	}
	
	function GetCollection()
	{
		return this.collection;
	}
	
	function GetObject(object_id)
	{
		return this.collection[object_id];
	}
	
	function AddObject(object_name, object_id)
	{
		this.collection[object_name] = object_id;
	}
	
	function Create(type, name, wrapper_id)
	{
		switch (type)
			{
				case "dropdown":
					
					return new XUI_DropdownBox(name, wrapper_id);
					
				break;
				
				default: 
					alert("Unknown XUI Object Type");
			}			
	}
	
	function AddObjectProperty(name, value)
	{
		alert("alert property!");
	}
}

