﻿if (!Array.prototype.indexOf) {
    Array.prototype.indexOf = function(obj) {
        for (var i = 0; i < this.length; i++) {
            if (this[i] === obj)
                return i;
        }

        return -1;
    };
}

if (!Array.prototype.forEach) {
    Array.prototype.forEach = function(f) {
        for (var i = 0; i < this.length; i++)
            f(this[i]);
    }
}

if (!window.console) {
    window.console = 
    {
        log : function(message) { }
    };
}
