/* Modernizr 2.6.1 (Custom Build) | MIT & BSD
* Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-flexbox_legacy-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-draganddrop-hashchange-history-audio-video-indexeddb-input-inputtypes-localstorage-postmessage-sessionstorage-websockets-websqldatabase-webworkers-geolocation-inlinesvg-smil-svg-svgclippaths-touch-webgl-shiv-cssclasses-addtest-prefixed-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-load
*/
;
window.Modernizr = function (a, b, c) {
function C(a) {
j.cssText = a
}
function D(a, b) {
return C(n.join(a + ";") + (b || ""))
}
function E(a, b) {
return typeof a === b
}
function F(a, b) {
return!!~("" + a).indexOf(b)
}
function G(a, b) {
for (var d in a) {
var e = a[d];
if (!F(e, "-") && j[e] !== c)return b == "pfx" ? e : !0
}
return!1
}
function H(a, b, d) {
for (var e in a) {
var f = b[a[e]];
if (f !== c)return d === !1 ? a[e] : E(f, "function") ? f.bind(d || b) : f
}
return!1
}
function I(a, b, c) {
var d = a.charAt(0).toUpperCase() + a.slice(1), e = (a + " " + p.join(d + " ") + d).split(" ");
return E(b, "string") || E(b, "undefined") ? G(e, b) : (e = (a + " " + q.join(d + " ") + d).split(" "), H(e, b, c))
}
function J() {
e.input = function (c) {
for (var d = 0, e = c.length; d < e; d++)u[c[d]] = c[d]in k;
return u.list && (u.list = !!b.createElement("datalist") && !!a.HTMLDataListElement), u
}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")), e.inputtypes = function (a) {
for (var d = 0, e, f, h, i = a.length; d < i; d++)k.setAttribute("type", f = a[d]), e = k.type !== "text", e && (k.value = l, k.style.cssText = "position:absolute;visibility:hidden;", /^range$/.test(f) && k.style.WebkitAppearance !== c ? (g.appendChild(k), h = b.defaultView, e = h.getComputedStyle && h.getComputedStyle(k, null).WebkitAppearance !== "textfield" && k.offsetHeight !== 0, g.removeChild(k)) : /^(search|tel)$/.test(f) || (/^(url|email)$/.test(f) ? e = k.checkValidity && k.checkValidity() === !1 : e = k.value != l)), t[a[d]] = !!e;
return t
}("search tel url email datetime date month week time datetime-local number range color".split(" "))
}
var d = "2.6.1", e = {}, f = !0, g = b.documentElement, h = "modernizr", i = b.createElement(h), j = i.style, k = b.createElement("input"), l = ":)", m = {}.toString, n = " -webkit- -moz- -o- -ms- ".split(" "), o = "Webkit Moz O ms", p = o.split(" "), q = o.toLowerCase().split(" "), r = {svg: "http://www.w3.org/2000/svg"}, s = {}, t = {}, u = {}, v = [], w = v.slice, x, y = function (a, c, d, e) {
var f, i, j, k = b.createElement("div"), l = b.body, m = l ? l : b.createElement("body");
if (parseInt(d, 10))while (d--)j = b.createElement("div"), j.id = e ? e[d] : h + (d + 1), k.appendChild(j);
return f = ["", '"].join(""), k.id = h, (l ? k : m).innerHTML += f, m.appendChild(k), l || (m.style.background = "", g.appendChild(m)), i = c(k, a), l ? k.parentNode.removeChild(k) : m.parentNode.removeChild(m), !!i
}, z = function () {
function d(d, e) {
e = e || b.createElement(a[d] || "div"), d = "on" + d;
var f = d in e;
return f || (e.setAttribute || (e = b.createElement("div")), e.setAttribute && e.removeAttribute && (e.setAttribute(d, ""), f = E(e[d], "function"), E(e[d], "undefined") || (e[d] = c), e.removeAttribute(d))), e = null, f
}
var a = {select: "input", change: "input", submit: "form", reset: "form", error: "img", load: "img", abort: "img"};
return d
}(), A = {}.hasOwnProperty, B;
!E(A, "undefined") && !E(A.call, "undefined") ? B = function (a, b) {
return A.call(a, b)
} : B = function (a, b) {
return b in a && E(a.constructor.prototype[b], "undefined")
}, Function.prototype.bind || (Function.prototype.bind = function (b) {
var c = this;
if (typeof c != "function")throw new TypeError;
var d = w.call(arguments, 1), e = function () {
if (this instanceof e) {
var a = function () {
};
a.prototype = c.prototype;
var f = new a, g = c.apply(f, d.concat(w.call(arguments)));
return Object(g) === g ? g : f
}
return c.apply(b, d.concat(w.call(arguments)))
};
return e
}), s.flexbox = function () {
return I("flexWrap")
}, s.canvas = function () {
var a = b.createElement("canvas");
return!!a.getContext && !!a.getContext("2d")
}, s.canvastext = function () {
return!!e.canvas && !!E(b.createElement("canvas").getContext("2d").fillText, "function")
}, s.webgl = function () {
return!!a.WebGLRenderingContext
}, s.touch = function () {
var c;
return"ontouchstart"in a || a.DocumentTouch && b instanceof DocumentTouch ? c = !0 : y(["@media (", n.join("touch-enabled),("), h, ")", "{#modernizr{top:9px;position:absolute}}"].join(""), function (a) {
c = a.offsetTop === 9
}), c
}, s.geolocation = function () {
return"geolocation"in navigator
}, s.postmessage = function () {
return!!a.postMessage
}, s.websqldatabase = function () {
return!!a.openDatabase
}, s.indexedDB = function () {
return!!I("indexedDB", a)
}, s.hashchange = function () {
return z("hashchange", a) && (b.documentMode === c || b.documentMode > 7)
}, s.history = function () {
return!!a.history && !!history.pushState
}, s.draganddrop = function () {
var a = b.createElement("div");
return"draggable"in a || "ondragstart"in a && "ondrop"in a
}, s.websockets = function () {
return"WebSocket"in a || "MozWebSocket"in a
}, s.rgba = function () {
return C("background-color:rgba(150,255,150,.5)"), F(j.backgroundColor, "rgba")
}, s.hsla = function () {
return C("background-color:hsla(120,40%,100%,.5)"), F(j.backgroundColor, "rgba") || F(j.backgroundColor, "hsla")
}, s.multiplebgs = function () {
return C("background:url(https://),url(https://),red url(https://)"), /(url\s*\(.*?){3}/.test(j.background)
}, s.backgroundsize = function () {
return I("backgroundSize")
}, s.borderimage = function () {
return I("borderImage")
}, s.borderradius = function () {
return I("borderRadius")
}, s.boxshadow = function () {
return I("boxShadow")
}, s.textshadow = function () {
return b.createElement("div").style.textShadow === ""
}, s.opacity = function () {
return D("opacity:.55"), /^0.55$/.test(j.opacity)
}, s.cssanimations = function () {
return I("animationName")
}, s.csscolumns = function () {
return I("columnCount")
}, s.cssgradients = function () {
var a = "background-image:", b = "gradient(linear,left top,right bottom,from(#9f9),to(white));", c = "linear-gradient(left top,#9f9, white);";
return C((a + "-webkit- ".split(" ").join(b + a) + n.join(c + a)).slice(0, -a.length)), F(j.backgroundImage, "gradient")
}, s.cssreflections = function () {
return I("boxReflect")
}, s.csstransforms = function () {
return!!I("transform")
}, s.csstransforms3d = function () {
var a = !!I("perspective");
return a && "webkitPerspective"in g.style && y("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}", function (b, c) {
a = b.offsetLeft === 9 && b.offsetHeight === 3
}), a
}, s.csstransitions = function () {
return I("transition")
}, s.fontface = function () {
var a;
return y('@font-face {font-family:"font";src:url("https://")}', function (c, d) {
var e = b.getElementById("smodernizr"), f = e.sheet || e.styleSheet, g = f ? f.cssRules && f.cssRules[0] ? f.cssRules[0].cssText : f.cssText || "" : "";
a = /src/i.test(g) && g.indexOf(d.split(" ")[0]) === 0
}), a
}, s.generatedcontent = function () {
var a;
return y(['#modernizr:after{content:"', l, '";visibility:hidden}'].join(""), function (b) {
a = b.offsetHeight >= 1
}), a
}, s.video = function () {
var a = b.createElement("video"), c = !1;
try {
if (c = !!a.canPlayType)c = new Boolean(c), c.ogg = a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/, ""), c.h264 = a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/, ""), c.webm = a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/, "")
} catch (d) {
}
return c
}, s.audio = function () {
var a = b.createElement("audio"), c = !1;
try {
if (c = !!a.canPlayType)c = new Boolean(c), c.ogg = a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/, ""), c.mp3 = a.canPlayType("audio/mpeg;").replace(/^no$/, ""), c.wav = a.canPlayType('audio/wav; codecs="1"').replace(/^no$/, ""), c.m4a = (a.canPlayType("audio/x-m4a;") || a.canPlayType("audio/aac;")).replace(/^no$/, "")
} catch (d) {
}
return c
}, s.localstorage = function () {
try {
return localStorage.setItem(h, h), localStorage.removeItem(h), !0
} catch (a) {
return!1
}
}, s.sessionstorage = function () {
try {
return sessionStorage.setItem(h, h), sessionStorage.removeItem(h), !0
} catch (a) {
return!1
}
}, s.webworkers = function () {
return!!a.Worker
}, s.applicationcache = function () {
return!!a.applicationCache
}, s.svg = function () {
return!!b.createElementNS && !!b.createElementNS(r.svg, "svg").createSVGRect
}, s.inlinesvg = function () {
var a = b.createElement("div");
return a.innerHTML = "", (a.firstChild && a.firstChild.namespaceURI) == r.svg
}, s.smil = function () {
return!!b.createElementNS && /SVGAnimate/.test(m.call(b.createElementNS(r.svg, "animate")))
}, s.svgclippaths = function () {
return!!b.createElementNS && /SVGClipPath/.test(m.call(b.createElementNS(r.svg, "clipPath")))
};
for (var K in s)B(s, K) && (x = K.toLowerCase(), e[x] = s[K](), v.push((e[x] ? "" : "no-") + x));
return e.input || J(), e.addTest = function (a, b) {
if (typeof a == "object")for (var d in a)B(a, d) && e.addTest(d, a[d]); else {
a = a.toLowerCase();
if (e[a] !== c)return e;
b = typeof b == "function" ? b() : b, f && (g.className += " " + (b ? "" : "no-") + a), e[a] = b
}
return e
}, C(""), i = k = null, function (a, b) {
function k(a, b) {
var c = a.createElement("p"), d = a.getElementsByTagName("head")[0] || a.documentElement;
return c.innerHTML = "x", d.insertBefore(c.lastChild, d.firstChild)
}
function l() {
var a = r.elements;
return typeof a == "string" ? a.split(" ") : a
}
function m(a) {
var b = i[a[g]];
return b || (b = {}, h++, a[g] = h, i[h] = b), b
}
function n(a, c, f) {
c || (c = b);
if (j)return c.createElement(a);
f || (f = m(c));
var g;
return f.cache[a] ? g = f.cache[a].cloneNode() : e.test(a) ? g = (f.cache[a] = f.createElem(a)).cloneNode() : g = f.createElem(a), g.canHaveChildren && !d.test(a) ? f.frag.appendChild(g) : g
}
function o(a, c) {
a || (a = b);
if (j)return a.createDocumentFragment();
c = c || m(a);
var d = c.frag.cloneNode(), e = 0, f = l(), g = f.length;
for (; e < g; e++)d.createElement(f[e]);
return d
}
function p(a, b) {
b.cache || (b.cache = {}, b.createElem = a.createElement, b.createFrag = a.createDocumentFragment, b.frag = b.createFrag()), a.createElement = function (c) {
return r.shivMethods ? n(c, a, b) : b.createElem(c)
}, a.createDocumentFragment = Function("h,f", "return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&(" + l().join().replace(/\w+/g, function (a) {
return b.createElem(a), b.frag.createElement(a), 'c("' + a + '")'
}) + ");return n}")(r, b.frag)
}
function q(a) {
a || (a = b);
var c = m(a);
return r.shivCSS && !f && !c.hasCSS && (c.hasCSS = !!k(a, "article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")), j || p(a, c), a
}
var c = a.html5 || {}, d = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i, e = /^<|^(?:a|b|button|code|div|fieldset|form|h1|h2|h3|h4|h5|h6|i|iframe|img|input|label|li|link|ol|option|p|param|q|script|select|span|strong|style|table|tbody|td|textarea|tfoot|th|thead|tr|ul)$/i, f, g = "_html5shiv", h = 0, i = {}, j;
(function () {
try {
var a = b.createElement("a");
a.innerHTML = "