﻿/* Modernizr 2.0.6 (Custom Build) | MIT & BSD
* Contains: flexbox | hsla | multiplebgs | opacity | rgba | textshadow | cssgradients | history | audio | video | input | inputtypes | iepp | hasevent | prefixes | domprefixes
*/
; window.Modernizr = function (a, b, c) { function B() { e.input = function (a) { for (var b = 0, c = a.length; b < c; b++) r[a[b]] = a[b] in k; return r } ("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")), e.inputtypes = function (a) { for (var d = 0, e, g, h, i = a.length; d < i; d++) k.setAttribute("type", g = a[d]), e = k.type !== "text", e && (k.value = l, k.style.cssText = "position:absolute;visibility:hidden;", /^range$/.test(g) && k.style.WebkitAppearance !== c ? (f.appendChild(k), h = b.defaultView, e = h.getComputedStyle && h.getComputedStyle(k, null).WebkitAppearance !== "textfield" && k.offsetHeight !== 0, f.removeChild(k)) : /^(search|tel)$/.test(g) || (/^(url|email)$/.test(g) ? e = k.checkValidity && k.checkValidity() === !1 : /^color$/.test(g) ? (f.appendChild(k), f.offsetWidth, e = k.value != l, f.removeChild(k)) : e = k.value != l)), q[a[d]] = !!e; return q } ("search tel url email datetime date month week time datetime-local number range color".split(" ")) } function A(a, b) { return !! ~("" + a).indexOf(b) } function z(a, b) { return typeof a === b } function y(a, b) { return x(n.join(a + ";") + (b || "")) } function x(a) { j.cssText = a } var d = "2.0.6", e = {}, f = b.documentElement, g = b.head || b.getElementsByTagName("head")[0], h = "modernizr", i = b.createElement(h), j = i.style, k = b.createElement("input"), l = ":)", m = Object.prototype.toString, n = " -webkit- -moz- -o- -ms- -khtml- ".split(" "), o = "Webkit Moz O ms Khtml".split(" "), p = {}, q = {}, r = {}, s = [], t = function () { function d(d, e) { e = e || b.createElement(a[d] || "div"), d = "on" + d; var f = d in e; f || (e.setAttribute || (e = b.createElement("div")), e.setAttribute && e.removeAttribute && (e.setAttribute(d, ""), f = z(e[d], "function"), z(e[d], c) || (e[d] = c), e.removeAttribute(d))), e = null; return f } var a = { select: "input", change: "input", submit: "form", reset: "form", error: "img", load: "img", abort: "img" }; return d } (), u, v = {}.hasOwnProperty, w; !z(v, c) && !z(v.call, c) ? w = function (a, b) { return v.call(a, b) } : w = function (a, b) { return b in a && z(a.constructor.prototype[b], c) }, p.flexbox = function () { function c(a, b, c, d) { a.style.cssText = n.join(b + ":" + c + ";") + (d || "") } function a(a, b, c, d) { b += ":", a.style.cssText = (b + n.join(c + ";" + b)).slice(0, -b.length) + (d || "") } var d = b.createElement("div"), e = b.createElement("div"); a(d, "display", "box", "width:42px;padding:0;"), c(e, "box-flex", "1", "width:10px;"), d.appendChild(e), f.appendChild(d); var g = e.offsetWidth === 42; d.removeChild(e), f.removeChild(d); return g }, p.history = function () { return !!a.history && !!history.pushState }, p.rgba = function () { x("background-color:rgba(150,255,150,.5)"); return A(j.backgroundColor, "rgba") }, p.hsla = function () { x("background-color:hsla(120,40%,100%,.5)"); return A(j.backgroundColor, "rgba") || A(j.backgroundColor, "hsla") }, p.multiplebgs = function () { x("background:url(https://),url(https://),red url(https://)"); return /(url\s*\(.*?){3}/.test(j.background) }, p.textshadow = function () { return b.createElement("div").style.textShadow === "" }, p.opacity = function () { y("opacity:.55"); return /^0.55$/.test(j.opacity) }, p.cssgradients = function () { var a = "background-image:", b = "gradient(linear,left top,right bottom,from(#9f9),to(white));", c = "linear-gradient(left top,#9f9, white);"; x((a + n.join(b + a) + n.join(c + a)).slice(0, -a.length)); return A(j.backgroundImage, "gradient") }, p.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"'); var d = 'video/mp4; codecs="avc1.42E01E'; c.h264 = a.canPlayType(d + '"') || a.canPlayType(d + ', mp4a.40.2"'), c.webm = a.canPlayType('video/webm; codecs="vp8, vorbis"') } } catch (e) { } return c }, p.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"'), c.mp3 = a.canPlayType("audio/mpeg;"), c.wav = a.canPlayType('audio/wav; codecs="1"'), c.m4a = a.canPlayType("audio/x-m4a;") || a.canPlayType("audio/aac;") } catch (d) { } return c }; for (var C in p) w(p, C) && (u = C.toLowerCase(), e[u] = p[C](), s.push((e[u] ? "" : "no-") + u)); e.input || B(), x(""), i = k = null, a.attachEvent && function () { var a = b.createElement("div"); a.innerHTML = "<elem></elem>"; return a.childNodes.length !== 1 } () && function (a, b) { function s(a) { var b = -1; while (++b < g) a.createElement(f[b]) } a.iepp = a.iepp || {}; var d = a.iepp, e = d.html5elements || "abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", f = e.split("|"), g = f.length, h = new RegExp("(^|\\s)(" + e + ")", "gi"), i = new RegExp("<(/*)(" + e + ")", "gi"), j = /^\s*[\{\}]\s*$/, k = new RegExp("(^|[^\\n]*?\\s)(" + e + ")([^\\n]*)({[\\n\\w\\W]*?})", "gi"), l = b.createDocumentFragment(), m = b.documentElement, n = m.firstChild, o = b.createElement("body"), p = b.createElement("style"), q = /print|all/, r; d.getCSS = function (a, b) { if (a + "" === c) return ""; var e = -1, f = a.length, g, h = []; while (++e < f) { g = a[e]; if (g.disabled) continue; b = g.media || b, q.test(b) && h.push(d.getCSS(g.imports, b), g.cssText), b = "all" } return h.join("") }, d.parseCSS = function (a) { var b = [], c; while ((c = k.exec(a)) != null) b.push(((j.exec(c[1]) ? "\n" : c[1]) + c[2] + c[3]).replace(h, "$1.iepp_$2") + c[4]); return b.join("\n") }, d.writeHTML = function () { var a = -1; r = r || b.body; while (++a < g) { var c = b.getElementsByTagName(f[a]), d = c.length, e = -1; while (++e < d) c[e].className.indexOf("iepp_") < 0 && (c[e].className += " iepp_" + f[a]) } l.appendChild(r), m.appendChild(o), o.className = r.className, o.id = r.id, o.innerHTML = r.innerHTML.replace(i, "<$1font") }, d._beforePrint = function () { p.styleSheet.cssText = d.parseCSS(d.getCSS(b.styleSheets, "all")), d.writeHTML() }, d.restoreHTML = function () { o.innerHTML = "", m.removeChild(o), m.appendChild(r) }, d._afterPrint = function () { d.restoreHTML(), p.styleSheet.cssText = "" }, s(b), s(l); d.disablePP || (n.insertBefore(p, n.firstChild), p.media = "print", p.className = "iepp-printshim", a.attachEvent("onbeforeprint", d._beforePrint), a.attachEvent("onafterprint", d._afterPrint)) } (a, b), e._version = d, e._prefixes = n, e._domPrefixes = o, e.hasEvent = t; return e } (this, this.document);
