/*! respond.js v1.4.2: min/max-width media query polyfill * copyright 2014 scott jehl * licensed under mit * http://j.mp/respondjs */ !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(){v(!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))},g=function(a){return a.replace(c.regex.minmaxwh,"").match(c.regex.other)};if(c.ajax=f,c.queue=d,c.unsupportedmq=g,c.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^/][^*]*\*+)*\//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*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},c.mediaqueriessupported=a.matchmedia&&null!==a.matchmedia("only all")&&a.matchmedia("only all").matches,!c.mediaqueriessupported){var h,i,j,k=a.document,l=k.documentelement,m=[],n=[],o=[],p={},q=30,r=k.getelementsbytagname("head")[0]||l,s=k.getelementsbytagname("base")[0],t=r.getelementsbytagname("link"),u=function(){var a,b=k.createelement("div"),c=k.body,d=l.style.fontsize,e=c&&c.style.fontsize,f=!1;return b.style.csstext="position:absolute;font-size:1em;width:1em",c||(c=f=k.createelement("body"),c.style.background="none"),l.style.fontsize="100%",c.style.fontsize="100%",c.appendchild(b),f&&l.insertbefore(c,l.firstchild),a=b.offsetwidth,f?l.removechild(c):c.removechild(b),l.style.fontsize=d,e&&(c.style.fontsize=e),a=j=parsefloat(a)},v=function(b){var c="clientwidth",d=l[c],e="css1compat"===k.compatmode&&d||k.body[c]||d,f={},g=t[t.length-1],p=(new date).gettime();if(b&&h&&q>p-h)return a.cleartimeout(i),i=a.settimeout(v,q),void 0;h=p;for(var s in m)if(m.hasownproperty(s)){var w=m[s],x=w.minw,y=w.maxw,z=null===x,a=null===y,b="em";x&&(x=parsefloat(x)*(x.indexof(b)>-1?j||u():1)),y&&(y=parsefloat(y)*(y.indexof(b)>-1?j||u():1)),w.hasquery&&(z&&a||!(z||e>=x)||!(a||y>=e))||(f[w.media]||(f[w.media]=[]),f[w.media].push(n[w.rules]))}for(var c in o)o.hasownproperty(c)&&o[c]&&o[c].parentnode===r&&r.removechild(o[c]);o.length=0;for(var d in f)if(f.hasownproperty(d)){var e=k.createelement("style"),f=f[d].join("\n");e.type="text/css",e.media=d,r.insertbefore(e,g.nextsibling),e.stylesheet?e.stylesheet.csstext=f:e.appendchild(k.createtextnode(f)),o.push(e)}},w=function(a,b,d){var e=a.replace(c.regex.comments,"").replace(c.regex.keyframes,"").match(c.regex.media),f=e&&e.length||0;b=b.substring(0,b.lastindexof("/"));var h=function(a){return a.replace(c.regex.urls,"$1"+b+"$2$3")},i=!f&&d;b.length&&(b+="/"),i&&(f=1);for(var j=0;f>j;j++){var k,l,o,p;i?(k=d,n.push(h(a))):(k=e[j].match(c.regex.findstyles)&®exp.$1,n.push(regexp.$2&&h(regexp.$2))),o=k.split(","),p=o.length;for(var q=0;p>q;q++)l=o[q],g(l)||m.push({media:l.split("(")[0].match(c.regex.only)&®exp.$2||"all",rules:n.length-1,hasquery:l.indexof("(")>-1,minw:l.match(c.regex.minw)&&parsefloat(regexp.$1)+(regexp.$2||""),maxw:l.match(c.regex.maxw)&&parsefloat(regexp.$1)+(regexp.$2||"")})}v()},x=function(){if(d.length){var b=d.shift();f(b.href,function(c){w(c,b.href,b.media),p[b.href]=!0,a.settimeout(function(){x()},0)})}},y=function(){for(var b=0;b