var actions = {

	collection: new Array(),

	listen: function(action, handler)
	{
		if(this.collection[action] === undefined) {
			this.collection[action] = new Array();
		}
		if(this.collection[action][handler] === undefined) {
			this.collection[action][handler] = handler;
		}
	},

	trigger: function(action)
	{
		try {
			for( var i in this.collection[action]) {
				eval(i);
			}
		} catch(e) {
		}


	}
};
