﻿/**
 * Utilities :
 * Fix IE flickering background css images bug
 **/

try {
  document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}

/**
 * Utilities :
 * Augment the Array object with a forEach method if needed as in JS 1.6
 **/

if (!Array.prototype.forEach){
    Array.prototype.forEach = function(fun /*, thisp*/){
        var len = this.length;
        if (typeof fun != "function") throw new TypeError();
        var thisp = arguments[1];
        for(var i = 0; i < len; i++){
            if (i in this) fun.call(thisp, this[i], i, this);
        }
    };
}

