function EventsContainer() { this.functions = []; }
EventsContainer.prototype.add = function (f) { this.functions[this.functions.length] = f; }
EventsContainer.prototype.init = function () { for (var i=0;i<this.functions.length;i++) this.functions[i](); }
