function Delegate(func, obj)
{
	this.func = func;
	this.obj = obj;
	this.call = function()
	{
		this.func.call(this.obj);
	};
}

function Broadcaster()
{
	this.m_handlers = new Array();

	this.registerHandler = function(func, obj)
	{
		this.m_handlers.push(new Delegate(func, obj));
	};
	
	this.notify = function ()
	{
		for (h in this.m_handlers)
			this.m_handlers[h].call();
	};
}

var dlb = new Broadcaster(); 

