var woffEnabled = true;
var scripts = document.getElementsByTagName("SCRIPT");
var script = scripts[scripts.length - 1].src;
var path = "/webfonts";
var browserName, browserVersion, webfontType;
var webfontTypeOverride;
if (/webfont=(woff|ttf|eot)/.test(window.location.search)) {
    webfontTypeOverride = RegExp.$1;
    if (webfontTypeOverride == "ttf") {
        webfontTypeOverride = "data-css"
    }
}
if (/MSIE (\d+\.\d+)/.test(navigator.userAgent)) {
    browserName = "MSIE";
    browserVersion = new Number(RegExp.$1);
    if (browserVersion >= 9 && woffEnabled) {
        webfontType = "woff"
    } else {
        if (browserVersion >= 5) {
            webfontType = "eot"
        }
    }
} else {
    if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
        browserName = "Firefox";
        browserVersion = new Number(RegExp.$1);
        if (browserVersion >= 3.6 && woffEnabled) {
            webfontType = "woff"
        } else {
            if (browserVersion >= 3.5) {
                webfontType = "data-css"
            }
        }
    } else {
        if (/Chrome\/(\d+\.\d+)/.test(navigator.userAgent)) {
            browserName = "Chrome";
            browserVersion = new Number(RegExp.$1);
            if (browserVersion >= 6 && woffEnabled) {
                webfontType = "woff"
            } else {
                if (browserVersion >= 4) {
                    webfontType = "data-css"
                }
            }
        } else {
            if (/Mozilla.*(iPhone|iPad).*AppleWebKit.*Safari/.test(navigator.userAgent)) {
                browserName = "MobileSafari";
                webfontType = "svg"
            } else {
                if (/Safari\/(\d+\.\d+)/.test(navigator.userAgent)) {
                    browserName = "Safari";
                    if (/Version\/(\d+\.\d+)/.test(navigator.userAgent)) {
                        browserVersion = new Number(RegExp.$1);
                        if (browserVersion >= 3.1) {
                            webfontType = "data-css"
                        }
                    }
                } else {
                    if (/Opera\/(\d+\.\d+)/.test(navigator.userAgent)) {
                        browserName = "Opera";
                        if (/Version\/(\d+\.\d+)/.test(navigator.userAgent)) {
                            browserVersion = new Number(RegExp.$1);
                            if (browserVersion >= 10.1) {
                                webfontType = "data-css"
                            }
                        }
                    }
                }
            }
        }
    }
}


if (!webfontType) {}
if (webfontTypeOverride) {
    webfontType = webfontTypeOverride
}
switch (webfontType) {
case "eot":
    document.write("<style>\n");
    document.write('@font-face {font-family:"Futura-Book";src:url("' + path + '/eot/style_99268.eot");}\n');
    document.write('@font-face {font-family:"Futura-Heavy";src:url("' + path + '/eot/style_172342.eot");}\n');
    document.write('@font-face {font-family:"Futura-ExtraBlack";src:url("' + path + '/eot/style_172340.eot");}\n');
    document.write('@font-face {font-family:"Futura-LightCondensed";src:url("' + path + '/eot/style_172345.eot");}\n');
    document.write('@font-face {font-family:"Futura-BoldCondensed";src:url("' + path + '/eot/style_172346.eot");}\n');
    document.write('@font-face {font-family:"Futura-ExtraBlackCondensed";src:url("' + path + '/eot/style_172336.eot");}\n');
    document.write("</style>");
    break;
case "woff":
    document.write("<style>\n");
    document.write('@font-face {font-family:"Futura-Book";src:url("' + path + '/woff/style_99268.woff") format("woff");}\n');
    document.write('@font-face {font-family:"Futura-Heavy";src:url("' + path + '/woff/style_172342.woff") format("woff");}\n');
    document.write('@font-face {font-family:"Futura-ExtraBlack";src:url("' + path + '/woff/style_172340.woff") format("woff");}\n');
    document.write('@font-face {font-family:"Futura-LightCondensed";src:url("' + path + '/woff/style_172345.woff") format("woff");}\n');
    document.write('@font-face {font-family:"Futura-BoldCondensed";src:url("' + path + '/woff/style_172346.woff") format("woff");}\n');
    document.write('@font-face {font-family:"Futura-ExtraBlackCondensed";src:url("' + path + '/woff/style_172336.woff") format("woff");}\n');
    document.write("</style>");
    break;
case "data-css":
    document.write("<link rel='stylesheet' type='text/css' href='" + path + "/datacss/webfonts.css'>");
    break;
default:
    webfontType = "default";
    break
}
window.Modernizr = function (X, aa, B) {
    function I(e, d) {
        return ("" + e).indexOf(d) !== -1
    }
    function J(e, d) {
        for (var f in e) {
            if (W[e[f]] !== B && (!d || d(e[f], C))) {
                return true
            }
        }
    }
    function U(e, d) {
        var f = e.charAt(0).toUpperCase() + e.substr(1);
        f = (e + " " + A.join(f + " ") + f).split(" ");
        return !!J(f, d)
    }
    function a() {
        Z.input = function (e) {
            for (var d = 0, f = e.length; d < f; d++) {
                r[e[d]] = !! (e[d] in Y)
            }
            return r
        }("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));
        Z.inputtypes = function (e) {
            for (var d = 0, h, f = e.length; d < f; d++) {
                Y.setAttribute("type", e[d]);
                if (h = Y.type !== "text") {
                    Y.value = p;
                    if (/^range$/.test(Y.type) && Y.style.WebkitAppearance !== B) {
                        V.appendChild(Y);
                        h = aa.defaultView;
                        h = h.getComputedStyle && h.getComputedStyle(Y, null).WebkitAppearance !== "textfield" && Y.offsetHeight !== 0;
                        V.removeChild(Y)
                    } else {
                        /^(search|tel)$/.test(Y.type) || (h = /^(url|email)$/.test(Y.type) ? Y.checkValidity && Y.checkValidity() === false : Y.value != p)
                    }
                }
                m[e[d]] = !! h
            }
            return m
        }("search tel url email datetime date month week time datetime-local number range color".split(" "))
    }
    var Z = {},
        V = aa.documentElement,
        C = aa.createElement("modernizr"),
        W = C.style,
        Y = aa.createElement("input"),
        p = ":)",
        k = Object.prototype.toString,
        K = " -webkit- -moz- -o- -ms- -khtml- ".split(" "),
        A = "Webkit Moz O ms Khtml".split(" "),
        z = {
            svg: "http://www.w3.org/2000/svg"
        },
        ab = {},
        m = {},
        r = {},
        g = [],
        x, c = function (e) {
            var d = document.createElement("style"),
                f = aa.createElement("div");
            d.textContent = e + "{#modernizr{height:3px}}";
            (aa.head || aa.getElementsByTagName("head")[0]).appendChild(d);
            f.id = "modernizr";
            V.appendChild(f);
            e = f.offsetHeight === 3;
            d.parentNode.removeChild(d);
            f.parentNode.removeChild(f);
            return !!e
        },
        T = function () {
            var d = {
                select: "input",
                change: "input",
                submit: "form",
                reset: "form",
                error: "img",
                load: "img",
                abort: "img"
            };
            return function (e, h) {
                h = h || document.createElement(d[e] || "div");
                e = "on" + e;
                var f = e in h;
                if (!f) {
                    h.setAttribute || (h = document.createElement("div"));
                    if (h.setAttribute && h.removeAttribute) {
                        h.setAttribute(e, "");
                        f = typeof h[e] == "function";
                        if (typeof h[e] != "undefined") {
                            h[e] = B
                        }
                        h.removeAttribute(e)
                    }
                }
                return f
            }
        }(),
        y = {}.hasOwnProperty,
        b;
    b = typeof y !== "undefined" && typeof y.call !== "undefined" ?
    function (e, d) {
        return y.call(e, d)
    } : function (e, d) {
        return d in e && typeof e.constructor.prototype[d] === "undefined"
    };
    ab.flexbox = function () {
        var e = aa.createElement("div"),
            d = aa.createElement("div");
        (function (i, l, j, h) {
            l += ":";
            i.style.cssText = (l + K.join(j + ";" + l)).slice(0, -l.length) + (h || "")
        })(e, "display", "box", "width:42px;padding:0;");
        d.style.cssText = K.join("box-flex:1;") + "width:10px;";
        e.appendChild(d);
        V.appendChild(e);
        var f = d.offsetWidth === 42;
        e.removeChild(d);
        V.removeChild(e);
        return f
    };
    ab.canvas = function () {
        var d = aa.createElement("canvas");
        return !!(d.getContext && d.getContext("2d"))
    };
    ab.canvastext = function () {
        return !!(Z.canvas && typeof aa.createElement("canvas").getContext("2d").fillText == "function")
    };
    ab.webgl = function () {
        var e = aa.createElement("canvas");
        try {
            if (e.getContext("webgl")) {
                return true
            }
        } catch (d) {}
        try {
            if (e.getContext("experimental-webgl")) {
                return true
            }
        } catch (f) {}
        return false
    };
    ab.touch = function () {
        return "ontouchstart" in X || c("@media (" + K.join("touch-enabled),(") + "modernizr)")
    };
    ab.geolocation = function () {
        return !!navigator.geolocation
    };
    ab.postmessage = function () {
        return !!X.postMessage
    };
    ab.websqldatabase = function () {
        return !!X.openDatabase
    };
    ab.indexedDB = function () {
        for (var e = -1, d = A.length; ++e < d;) {
            var f = A[e].toLowerCase();
            if (X[f + "_indexedDB"] || X[f + "IndexedDB"]) {
                return true
            }
        }
        return false
    };
    ab.hashchange = function () {
        return T("hashchange", X) && (document.documentMode === B || document.documentMode > 7)
    };
    ab.history = function () {
        return !!(X.history && history.pushState)
    };
    ab.draganddrop = function () {
        return T("drag") && T("dragstart") && T("dragenter") && T("dragover") && T("dragleave") && T("dragend") && T("drop")
    };
    ab.websockets = function () {
        return "WebSocket" in X
    };
    ab.rgba = function () {
        W.cssText = "background-color:rgba(150,255,150,.5)";
        return I(W.backgroundColor, "rgba")
    };
    ab.hsla = function () {
        W.cssText = "background-color:hsla(120,40%,100%,.5)";
        return I(W.backgroundColor, "rgba") || I(W.backgroundColor, "hsla")
    };
    ab.multiplebgs = function () {
        W.cssText = "background:url(//:),url(//:),red url(//:)";
        return /(url\s*\(.*?){3}/.test(W.background)
    };
    ab.backgroundsize = function () {
        return U("backgroundSize")
    };
    ab.borderimage = function () {
        return U("borderImage")
    };
    ab.borderradius = function () {
        return U("borderRadius", "", function (d) {
            return I(d, "orderRadius")
        })
    };
    ab.boxshadow = function () {
        return U("boxShadow")
    };
    ab.textshadow = function () {
        return aa.createElement("div").style.textShadow === ""
    };
    ab.opacity = function () {
        var d = K.join("opacity:.5;") + "";
        W.cssText = d;
        return I(W.opacity, "0.5")
    };
    ab.cssanimations = function () {
        return U("animationName")
    };
    ab.csscolumns = function () {
        return U("columnCount")
    };
    ab.cssgradients = function () {
        var d = ("background-image:" + K.join("gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:") + K.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0, -17);
        W.cssText = d;
        return I(W.backgroundImage, "gradient")
    };
    ab.cssreflections = function () {
        return U("boxReflect")
    };
    ab.csstransforms = function () {
        return !!J(["transformProperty", "WebkitTransform", "MozTransform", "OTransform", "msTransform"])
    };
    ab.csstransforms3d = function () {
        var d = !! J(["perspectiveProperty", "WebkitPerspective", "MozPerspective", "OPerspective", "msPerspective"]);
        if (d) {
            d = c("@media (" + K.join("transform-3d),(") + "modernizr)")
        }
        return d
    };
    ab.csstransitions = function () {
        return U("transitionProperty")
    };
    ab.fontface = function () {
        var e, d = aa.head || aa.getElementsByTagName("head")[0] || V,
            h = aa.createElement("style"),
            f = aa.implementation || {
                hasFeature: function () {
                    return false
                }
            };
        h.type = "text/css";
        d.insertBefore(h, d.firstChild);
        e = h.sheet || h.styleSheet;
        d = f.hasFeature("CSS2", "") ?
        function (l) {
            if (!(e && l)) {
                return false
            }
            var j = false;
            try {
                e.insertRule(l, 0);
                j = !/unknown/i.test(e.cssRules[0].cssText);
                e.deleteRule(e.cssRules.length - 1)
            } catch (i) {}
            return j
        } : function (i) {
            if (!(e && i)) {
                return false
            }
            e.cssText = i;
            return e.cssText.length !== 0 && !/unknown/i.test(e.cssText) && e.cssText.replace(/\r+|\n+/g, "").indexOf(i.split(" ")[0]) === 0
        };
        Z._fontfaceready = function (i) {
            i(Z.fontface)
        };
        return d('@font-face { font-family: "font"; src: "font.ttf"; }')
    };
    ab.video = function () {
        var e = aa.createElement("video"),
            d = !! e.canPlayType;
        if (d) {
            d = new Boolean(d);
            d.ogg = e.canPlayType('video/ogg; codecs="theora"');
            d.h264 = e.canPlayType('video/mp4; codecs="avc1.42E01E"') || e.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"');
            d.webm = e.canPlayType('video/webm; codecs="vp8, vorbis"')
        }
        return d
    };
    ab.audio = function () {
        var e = aa.createElement("audio"),
            d = !! e.canPlayType;
        if (d) {
            d = new Boolean(d);
            d.ogg = e.canPlayType('audio/ogg; codecs="vorbis"');
            d.mp3 = e.canPlayType("audio/mpeg;");
            d.wav = e.canPlayType('audio/wav; codecs="1"');
            d.m4a = e.canPlayType("audio/x-m4a;") || e.canPlayType("audio/aac;")
        }
        return d
    };
    ab.localstorage = function () {
        try {
            return "localStorage" in X && X.localStorage !== null
        } catch (d) {
            return false
        }
    };
    ab.sessionstorage = function () {
        try {
            return "sessionStorage" in X && X.sessionStorage !== null
        } catch (d) {
            return false
        }
    };
    ab.webWorkers = function () {
        return !!X.Worker
    };
    ab.applicationcache = function () {
        return !!X.applicationCache
    };
    ab.svg = function () {
        return !!aa.createElementNS && !! aa.createElementNS(z.svg, "svg").createSVGRect
    };
    ab.inlinesvg = function () {
        var d = document.createElement("div");
        d.innerHTML = "<svg/>";
        return (d.firstChild && d.firstChild.namespaceURI) == z.svg
    };
    ab.smil = function () {
        return !!aa.createElementNS && /SVG/.test(k.call(aa.createElementNS(z.svg, "animate")))
    };
    ab.svgclippaths = function () {
        return !!aa.createElementNS && /SVG/.test(k.call(aa.createElementNS(z.svg, "clipPath")))
    };
    for (var t in ab) {
        if (b(ab, t)) {
            x = t.toLowerCase();
            Z[x] = ab[t]();
            g.push((Z[x] ? "" : "no-") + x)
        }
    }
    Z.input || a();
    Z.crosswindowmessaging = Z.postmessage;
    Z.historymanagement = Z.history;
    Z.addTest = function (e, d) {
        e = e.toLowerCase();
        if (!Z[e]) {
            d = !! d();
            V.className += " " + (d ? "" : "no-") + e;
            Z[e] = d;
            return Z
        }
    };
    W.cssText = "";
    C = Y = null;
    X.attachEvent &&
    function () {
        var d = aa.createElement("div");
        d.innerHTML = "<elem></elem>";
        return d.childNodes.length !== 1
    }() &&
    function (u, s) {
        function o(D) {
            for (var w = -1; ++w < d;) {
                D.createElement(l[w])
            }
        }
        function j(G, w) {
            for (var E = G.length, F = -1, H, D = []; ++F < E;) {
                H = G[F];
                w = H.media || w;
                D.push(j(H.imports, w));
                D.push(H.cssText)
            }
            return D.join("")
        }
        var l = "abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video".split("|"),
            d = l.length,
            v = RegExp("<(/*)(abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video)", "gi"),
            i = RegExp("\\b(abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video)\\b(?!.*[;}])", "gi"),
            n = s.createDocumentFragment(),
            h = s.documentElement,
            q = h.firstChild,
            f = s.createElement("style"),
            e = s.createElement("body");
        f.media = "all";
        o(s);
        o(n);
        u.attachEvent("onbeforeprint", function () {
            for (var F = -1; ++F < d;) {
                for (var w = s.getElementsByTagName(l[F]), D = w.length, E = -1; ++E < D;) {
                    if (w[E].className.indexOf("iepp_") < 0) {
                        w[E].className += " iepp_" + l[F]
                    }
                }
            }
            q.insertBefore(f, q.firstChild);
            f.styleSheet.cssText = j(s.styleSheets, "all").replace(i, ".iepp_$1");
            n.appendChild(s.body);
            h.appendChild(e);
            e.innerHTML = n.firstChild.innerHTML.replace(v, "<$1bdo")
        });
        u.attachEvent("onafterprint", function () {
            e.innerHTML = "";
            h.removeChild(e);
            q.removeChild(f);
            h.appendChild(n.firstChild)
        })
    }(this, document);
    Z._enableHTML5 = true;
    Z._version = "1.6";
    V.className = V.className.replace(/\bno-js\b/, "") + " js";
    V.className += " " + g.join(" ");
    return Z
}(this, this.document);
var css_browser_selector = function () {
    var d = navigator.userAgent.toLowerCase(),
        f = function (b) {
            return d.indexOf(b) != -1
        },
        e = document.getElementsByTagName("html")[0],
        a = (!(/opera|webtv/i.test(d)) && /msie\s(\d)/.test(d)) ? ("ie ie" + RegExp.$1) : f("firefox/2") ? "gecko ff2" : f("firefox/3") ? "gecko ff3" : f("gecko/") ? "gecko" : f("opera/9") ? "opera opera9" : /opera\s(\d)/.test(d) ? "opera opera" + RegExp.$1 : f("konqueror") ? "konqueror" : f("chrome") ? "chrome webkit safari" : f("applewebkit/") ? "webkit safari" : f("mozilla/") ? "gecko" : "",
        g = (f("x11") || f("linux")) ? " linux" : f("mac") ? " mac" : f("win") ? " win" : "";
    var i = a + g + " js";
    e.className += e.className ? " " + i : i
}();
window.log = function () {
    log.history = log.history || [];
    log.history.push(arguments);
    if (this.console) {
        console.log(Array.prototype.slice.call(arguments))
    }
};
String.prototype.pad = function (a, c, b) {
    return c || (c = " "), (a -= this.length) > 0 ? (c = new Array(Math.ceil(a / c.length) + 1).join(c)).substr(0, b = !b ? a : b == 1 ? 0 : Math.ceil(a / 2)) + this + c.substr(0, a - b) : this
};

function dateToUTC(a) {
    utc = a.getTime() + (a.getTimezoneOffset() * 60000);
    return new Date(utc)
}
function makeRGBA() {
    return "rgba(" + [].slice.call(arguments, 0).join(",") + ")"
};
