﻿
// Control Arrays -- http://www.webmasterworld.com/forum91/4618.htm
function FunctionArray() {
    this.funcs = new Array;
}
FunctionArray.prototype.add = function (f) {
    if (typeof (f) != "function") {
        f = new Function(f);
    }

    this.funcs[this.funcs.length] = f;
}

FunctionArray.prototype.execute = function () {
    for (var i = 0; i < this.funcs.length; i++) {
        this.funcs[i]();
    }
}

