if(typeof this.PINT==="undefined"){var PINT={};}

/** Added Prototypes **********/
/** -- ARRAYS */
// Map ( .map() ) - http://ow.ly/70cRA
if(!Array.prototype.map){Array.prototype.map=function(a,b){var c,d,e;if(this==null){throw new TypeError(" this is null or not defined")}var f=Object(this);var g=f.length>>>0;if({}.toString.call(a)!="[object Function]"){throw new TypeError(a+" is not a function")}if(b){c=b}d=new Array(g);e=0;while(e<g){var h,i;if(e in f){h=f[e];i=a.call(c,h,e,f);d[e]=i}e++}return d}}
// Filter ( .filter() ) - http://ow.ly/70cPJ
if(!Array.prototype.filter){Array.prototype.filter=function(a){"use strict";if(this===void 0||this===null)throw new TypeError;var b=Object(this);var c=b.length>>>0;if(typeof a!=="function")throw new TypeError;var d=[];var e=arguments[1];for(var f=0;f<c;f++){if(f in b){var g=b[f];if(a.call(e,g,f,b))d.push(g)}}return d}}
// Reduce ( .reduce() ) - http://ow.ly/70cSC
if(!Array.prototype.reduce){Array.prototype.reduce=function a(a){var b,c=this.length,d;if(typeof a!=="function")throw new TypeError("First argument is not callable");if((c==0||c===null)&&arguments.length<=1)throw new TypeError("Array length is 0 and no second argument");if(arguments.length<=1){d=this[0];b=1}else{d=arguments[1]}for(b=b||0;b<c;++b){if(b in this)d=a.call(undefined,d,this[b],b,this)}return d}}
// IndexOf ( .indexOf() ) - http://ow.ly/70cXD
if(!Array.prototype.indexOf){Array.prototype.indexOf=function(a){"use strict";if(this===void 0||this===null){throw new TypeError}var b=Object(this);var c=b.length>>>0;if(c===0){return-1}var d=0;if(arguments.length>0){d=Number(arguments[1]);if(d!==d){d=0}else if(d!==0&&d!==Infinity&&d!==-Infinity){d=(d>0||-1)*Math.floor(Math.abs(d))}}if(d>=c){return-1}var e=d>=0?d:Math.max(c-Math.abs(d),0);for(;e<c;e++){if(e in b&&b[e]===a){return e}}return-1}}
/** -- STRINGS */
// Capitalize ( .capitalize() )
if(!String.prototype.capitalize){String.prototype.capitalize=function(){return this.replace(/(^|\s)([a-z])/g,function(m,p1,p2){ return p1+p2.toUpperCase()})}}
// Trim ( .trim() ) - http://ow.ly/71aNY
if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}}


/** JQUERY FILTERS **********/
(function ($) {
    // Random ( :random ) - http://ow.ly/70cNY
    $.jQRandom = 0; $.extend($.expr[":"], { random: function(a, i, m, r) { if (i == 0) { $.jQRandom = Math.floor(Math.random() * r.length); }; return i == $.jQRandom; } });
}(jQuery));


/** FUNCTIONS **********/
(function ($) {

    /** ADD CLASS *****/
    // Format: $('.something').PINT_addClass('last');
    $.fn.PINT_addClass = function(addClass) {
        this.each(function() {
            $(this).addClass(addClass);
        });
    };

}(jQuery));


/** INITIALIZE/RUN FUNCTIONS **********/
$(document).ready(function() {

    /** JS ENABLED - Target any element differently (CSS) if JS enabled/disabled *****/
    $('body').PINT_addClass('js');
    $('table.line tr:last-child').PINT_addClass('last');
    
    /** JS CODE LOADING DEFERMENT TO AFTER JQUERY LOADS (DO NOT REMOVE) **********/

        /* Code Execution/Functions */
        // 'Setup' code added to 'Page Begin'. Find 'PINT.onStartFns'
        // Code added via CONTENTBLOCK to be run inside common.js, so it is run after jQuery loaded
        if( PINT.onStartFns ) { $.each(PINT.onStartFns, function(index, fn) { fn(); }); }

    /** ENDS JS CODE LOADING **********/

});
