/*! respond.js v1.4.2: min/max-width media query polyfill * copyright 2013 scott jehl * licensed under https://github.com/scottjehl/respond/blob/master/license-mit * */ !function (a) { "use strict"; a.matchmedia = a.matchmedia || function (a) { var b, c = a.documentelement, d = c.firstelementchild || c.firstchild, e = a.createelement("body"), f = a.createelement("div"); return f.id = "mq-test-1", f.style.csstext = "position:absolute;top:-100em", e.style.background = "none", e.appendchild(f), function (a) { return f.innerhtml = '­', c.insertbefore(e, d), b = 42 === f.offsetwidth, c.removechild(e), { matches: b, media: a } } }(a.document) }(this), function (a) { "use strict"; function b() { u(!0) } var c = {}; a.respond = c, c.update = function () { }; var d = [], e = function () { var b = !1; try { b = new a.xmlhttprequest } catch (c) { b = new a.activexobject("microsoft.xmlhttp") } return function () { return b } }(), f = function (a, b) { var c = e(); c && (c.open("get", a, !0), c.onreadystatechange = function () { 4 !== c.readystate || 200 !== c.status && 304 !== c.status || b(c.responsetext) }, 4 !== c.readystate && c.send(null)) }; if (c.ajax = f, c.queue = d, c.regex = { media: /@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi, keyframes: /@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi, urls: /(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g, findstyles: /@media *([^\{]+)\{([\s\s]+?)$/, only: /(only\s+)?([a-za-z]+)\s?/, minw: /\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/, maxw: /\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/ }, c.mediaqueriessupported = a.matchmedia && null !== a.matchmedia("only all") && a.matchmedia("only all").matches, !c.mediaqueriessupported) { var g, h, i, j = a.document, k = j.documentelement, l = [], m = [], n = [], o = {}, p = 30, q = j.getelementsbytagname("head")[0] || k, r = j.getelementsbytagname("base")[0], s = q.getelementsbytagname("link"), t = function () { var a, b = j.createelement("div"), c = j.body, d = k.style.fontsize, e = c && c.style.fontsize, f = !1; return b.style.csstext = "position:absolute;font-size:1em;width:1em", c || (c = f = j.createelement("body"), c.style.background = "none"), k.style.fontsize = "100%", c.style.fontsize = "100%", c.appendchild(b), f && k.insertbefore(c, k.firstchild), a = b.offsetwidth, f ? k.removechild(c) : c.removechild(b), k.style.fontsize = d, e && (c.style.fontsize = e), a = i = parsefloat(a) }, u = function (b) { var c = "clientwidth", d = k[c], e = "css1compat" === j.compatmode && d || j.body[c] || d, f = {}, o = s[s.length - 1], r = (new date).gettime(); if (b && g && p > r - g) return a.cleartimeout(h), h = a.settimeout(u, p), void 0; g = r; for (var v in l) if (l.hasownproperty(v)) { var w = l[v], x = w.minw, y = w.maxw, z = null === x, a = null === y, b = "em"; x && (x = parsefloat(x) * (x.indexof(b) > -1 ? i || t() : 1)), y && (y = parsefloat(y) * (y.indexof(b) > -1 ? i || t() : 1)), w.hasquery && (z && a || !(z || e >= x) || !(a || y >= e)) || (f[w.media] || (f[w.media] = []), f[w.media].push(m[w.rules])) } for (var c in n) n.hasownproperty(c) && n[c] && n[c].parentnode === q && q.removechild(n[c]); n.length = 0; for (var d in f) if (f.hasownproperty(d)) { var e = j.createelement("style"), f = f[d].join("\n"); e.type = "text/css", e.media = d, q.insertbefore(e, o.nextsibling), e.stylesheet ? e.stylesheet.csstext = f : e.appendchild(j.createtextnode(f)), n.push(e) } }, v = function (a, b, d) { var e = a.replace(c.regex.keyframes, "").match(c.regex.media), f = e && e.length || 0; b = b.substring(0, b.lastindexof("/")); var g = function (a) { return a.replace(c.regex.urls, "$1" + b + "$2$3") }, h = !f && d; b.length && (b += "/"), h && (f = 1); for (var i = 0; f > i; i++) { var j, k, n, o; h ? (j = d, m.push(g(a))) : (j = e[i].match(c.regex.findstyles) && regexp.$1, m.push(regexp.$2 && g(regexp.$2))), n = j.split(","), o = n.length; for (var p = 0; o > p; p++)k = n[p], l.push({ media: k.split("(")[0].match(c.regex.only) && regexp.$2 || "all", rules: m.length - 1, hasquery: k.indexof("(") > -1, minw: k.match(c.regex.minw) && parsefloat(regexp.$1) + (regexp.$2 || ""), maxw: k.match(c.regex.maxw) && parsefloat(regexp.$1) + (regexp.$2 || "") }) } u() }, w = function () { if (d.length) { var b = d.shift(); f(b.href, function (c) { v(c, b.href, b.media), o[b.href] = !0, a.settimeout(function () { w() }, 0) }) } }, x = function () { for (var b = 0; b < s.length; b++) { var c = s[b], e = c.href, f = c.media, g = c.rel && "stylesheet" === c.rel.tolowercase(); e && g && !o[e] && (c.stylesheet && c.stylesheet.rawcsstext ? (v(c.stylesheet.rawcsstext, e, f), o[e] = !0) : (!/^([a-za-z:]*\/\/)/.test(e) && !r || e.replace(regexp.$1, "").split("/")[0] === a.location.host) && ("//" === e.substring(0, 2) && (e = a.location.protocol + e), d.push({ href: e, media: f }))) } w() }; x(), c.update = x, c.getemvalue = t, a.addeventlistener ? a.addeventlistener("resize", b, !1) : a.attachevent && a.attachevent("onresize", b) } }(this);