/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright © 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */ /*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */ window.matchMedia=window.matchMedia||function(a){“use strict”;var c,d=a.documentElement,e=d.firstElementChild||d.firstChild,f=a.createElement(“body”),g=a.createElement(“div”);return g.id=“mq-test-1”,g.style.cssText=“position:absolute;top:-100em”,f.style.background=“none”,f.appendChild(g),function(a){return g.innerHTML='&shy;<style media=“'a'”> mq-test-1 { width: 42px; }</style>',d.insertBefore(f,e),c=42===g.offsetWidth,d.removeChild(f),{matches:c,media:a}}}(document);

/*! Respond.js v1.1.0: min/max-width media query polyfill. © Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */ (function(a){“use strict”;function x(){u(!0)}var b={};a.respond=b,b.update=function(){},b.mediaQueriesSupported=a.matchMedia&&a.matchMedia(“only all”).matches,b.mediaQueriesSupported;var q,r,t,c=a.document,d=c.documentElement,e=[],f=,g=[],h={},i=30,j=c.getElementsByTagName(“head”)||d,k=c.getElementsByTagName(“base”),l=j.getElementsByTagName(“link”),m=[],n=function(){for(var b=0;l.length>b;b++){var c=l,d=c.href,e=c.media,f=c.rel&&“stylesheet”===c.rel.toLowerCase();d&&f&&!h&&(c.styleSheet&&c.styleSheet.rawCssText?(p(c.styleSheet.rawCssText,d,e),h=!0):(!/^(*//)/.test(d)&&!k||d.replace(RegExp.$1,“”).split(“/”)[0]===a.location.host)&&m.push({href:d,media:e}))}o()},o=function(){if(m.length){var a=m.shift();v(a.href,function(b){p(b,a.href,a.media),h=!0,setTimeout(function(){o()},0)})}},p=function(a,b,c){var d=a.match(/@media+{([^{}]*{[^}{]*})+/gi),g=d&&d.length||0;b=b.substring(0,b.lastIndexOf(“/”));var h=function(a){return a.replace(/(url()?([^/)'“][^:)'”]+)['“]?())/g,”$1“b”$2$3“)},i=!g&&c;b.length&&(b+=”/“),i&&(g=1);for(var j=0;g>j;j++){var k,l,m,n;i?(k=c,f.push(h(a))):(k=d.match(/@media *([^{]+){([Ss]+?)$/)&&RegExp.$1,f.push(RegExp.$2&&h(RegExp.$2))),m=k.split(”,“),n=m.length;for(var o=0;n>o;o++)l=m,e.push({media:l.split(”(“).match(/(onlys+)?(+)s?/)&&RegExp.$2||”all“,rules:f.length-1,hasquery:l.indexOf(”(“)>-1,minw:l.match(/(min-width:[s]*([s]*+)(px|em)*)/)&&parseFloat(RegExp.$1)+(RegExp.$2||”“),maxw:l.match(/(max-width:*([s]*+)(px|em)*)/)&&parseFloat(RegExp.$1)+(RegExp.$2||”“)})}u()},s=function(){var a,b=c.createElement(”div“),e=c.body,f=!1;return b.style.cssText=”position:absolute;font-size:1em;width:1em“,e||(e=f=c.createElement(”body“),e.style.background=”none“),e.appendChild(b),d.insertBefore(e,d.firstChild),a=b.offsetWidth,f?d.removeChild(e):e.removeChild(b),a=t=parseFloat(a)},u=function(a){var b=”clientWidth“,h=d,k=”CSS1Compat“===c.compatMode&&h||c.body||h,m={},n=l,o=(new Date).getTime();if(a&&q&&i>o-q)return clearTimeout®,r=setTimeout(u,i),void 0;q=o;for(var p in e)if(e.hasOwnProperty(p)){var v=e,w=v.minw,x=v.maxw,y=null===w,z=null===x,A=”em“;w&&(w=parseFloat(w)*(w.indexOf(A)>-1?t||s():1)),x&&(x=parseFloat(x)*(x.indexOf(A)>-1?t||s():1)),v.hasquery&&(y&&z||!(y||k>=w)||!(z||x>=k))||(m||(m=[]),m.push(f))}for(var B in g)g.hasOwnProperty(B)&&g&&g.parentNode===j&&j.removeChild(g);for(var C in m)if(m.hasOwnProperty(C)){var D=c.createElement(”style“),E=m.join(”n“);D.type=”text/css“,D.media=C,j.insertBefore(D,n.nextSibling),D.styleSheet?D.styleSheet.cssText=E:D.appendChild(c.createTextNode(E)),g.push(D)}},v=function(a,b){var c=w();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))},w=function(){var b=!1;try{b=new a.XMLHttpRequest}catch©{b=new a.ActiveXObject(”Microsoft.XMLHTTP“)}return function(){return b}}();n(),b.update=n,a.addEventListener?a.addEventListener(”resize“,x,!1):a.attachEvent&&a.attachEvent(”onresize“,x)})(this);