window.matchMedia=window.matchMedia||function(n){"use strict";var u,i=n.documentElement,f=i.firstElementChild||i.firstChild,r=n.createElement("body"),t=n.createElement("div");return t.id="mq-test-1",t.style.cssText="position:absolute;top:-100em",r.style.background="none",r.appendChild(t),function(n){return t.innerHTML='&shy;<style media="'+n+'"> #mq-test-1 { width: 42px; }<\/style>',i.insertBefore(r,f),u=t.offsetWidth===42,i.removeChild(r),{matches:u,media:n}}}(document),function(n){"use strict";function g(){v(!0)}var r={};if(n.respond=r,r.update=function(){},r.mediaQueriesSupported=n.matchMedia&&n.matchMedia("only all").matches,!r.mediaQueriesSupported){var t=n.document,u=t.documentElement,f=[],e=[],i=[],h={},y=30,o=t.getElementsByTagName("head")[0]||u,nt=t.getElementsByTagName("base")[0],s=o.getElementsByTagName("link"),c=[],p=function(){for(var r=0;r<s.length;r++){var t=s[r],i=t.href,u=t.media,f=t.rel&&t.rel.toLowerCase()==="stylesheet";!i||!f||h[i]||(t.styleSheet&&t.styleSheet.rawCssText?(b(t.styleSheet.rawCssText,i,u),h[i]=!0):(/^([a-zA-Z:]*\/\/)/.test(i)||nt)&&i.replace(RegExp.$1,"").split("/")[0]!==n.location.host||c.push({href:i,media:u}))}w()},w=function(){if(c.length){var t=c.shift();tt(t.href,function(i){b(i,t.href,t.media);h[t.href]=!0;n.setTimeout(function(){w()},0)})}},b=function(n,t,i){var s=n.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),h=s&&s.length||0,c,l,u,a,r,y,p,o;for(t=t.substring(0,t.lastIndexOf("/")),c=function(n){return n.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+t+"$2$3")},l=!h&&i,t.length&&(t+="/"),l&&(h=1),u=0;u<h;u++)for(l?(a=i,e.push(c(n))):(a=s[u].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,e.push(RegExp.$2&&c(RegExp.$2))),y=a.split(","),p=y.length,o=0;o<p;o++)r=y[o],f.push({media:r.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:e.length-1,hasquery:r.indexOf("(")>-1,minw:r.match(/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:r.match(/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});v()},l,k,d=function(){var r,i=t.createElement("div"),n=t.body,f=!1;return i.style.cssText="position:absolute;font-size:1em;width:1em",n||(n=f=t.createElement("body"),n.style.background="none"),n.appendChild(i),u.insertBefore(n,u.firstChild),r=i.offsetWidth,f?u.removeChild(n):n.removeChild(i),a=parseFloat(r)},a,v=function(r){var rt="clientWidth",ut=u[rt],ft=t.compatMode==="CSS1Compat"&&ut||t.body[rt]||ut,p={},ct=s[s.length-1],et=(new Date).getTime(),tt,g,nt,h,it;if(r&&l&&et-l<y){n.clearTimeout(k);k=n.setTimeout(v,y);return}l=et;for(tt in f)if(f.hasOwnProperty(tt)){var c=f[tt],w=c.minw,b=c.maxw,ot=w===null,st=b===null,ht="em";!w||(w=parseFloat(w)*(w.indexOf(ht)>-1?a||d():1));!b||(b=parseFloat(b)*(b.indexOf(ht)>-1?a||d():1));c.hasquery&&(ot&&st||!(ot||ft>=w)||!(st||ft<=b))||(p[c.media]||(p[c.media]=[]),p[c.media].push(e[c.rules]))}for(g in i)i.hasOwnProperty(g)&&i[g]&&i[g].parentNode===o&&o.removeChild(i[g]);for(nt in p)p.hasOwnProperty(nt)&&(h=t.createElement("style"),it=p[nt].join("\n"),h.type="text/css",h.media=nt,o.insertBefore(h,ct.nextSibling),h.styleSheet?h.styleSheet.cssText=it:h.appendChild(t.createTextNode(it)),i.push(h))},tt=function(n,t){var i=it();i&&(i.open("GET",n,!0),i.onreadystatechange=function(){i.readyState===4&&(i.status===200||i.status===304)&&t(i.responseText)},i.readyState!==4)&&i.send(null)},it=function(){var t=!1;try{t=new n.XMLHttpRequest}catch(i){t=new n.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}();p();r.update=p;n.addEventListener?n.addEventListener("resize",g,!1):n.attachEvent&&n.attachEvent("onresize",g)}}(this)