/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 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 */
(function(a){a.matchMedia=a.matchMedia||function(f,g){var d,b=f.documentElement,c=b.firstElementChild||b.firstChild,e=f.createElement("body"),h=f.createElement("div");h.id="mq-test-1";h.style.cssText="position:absolute;top:-100em";e.style.background="none";e.appendChild(h);return function(i){h.innerHTML='';b.insertBefore(e,c);d=h.offsetWidth===42;b.removeChild(e);return{matches:d,media:i}}}(a.document)})(this);
/*! Respond.js v1.4.0: min/max-width media query polyfill. (c) Scott Jehl. MIT Lic. j.mp/respondjs */
(function(k){var t={};k.respond=t;t.update=function(){};var c=[],d=function(){var w=false;try{w=new k.XMLHttpRequest()}catch(z){w=new k.ActiveXObject("Microsoft.XMLHTTP")
}return function(){return w}}(),n=function(w,A){var z=d();if(!z){return}z.open("GET",w,true);z.onreadystatechange=function(){if(z.readyState!==4||z.status!==200&&z.status!==304){return}A(z.responseText)};if(z.readyState===4){return}z.send(null)};t.ajax=n;t.queue=c;t.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]*\)/};t.mediaQueriesSupported=k.matchMedia&&k.matchMedia("only all")!==null&&k.matchMedia("only all").matches;if(t.mediaQueriesSupported){return}var y=k.document,s=y.documentElement,h=[],j=[],q=[],o={},g=30,e=y.getElementsByTagName("head")[0]||s,f=y.getElementsByTagName("base")[0],b=e.getElementsByTagName("link"),l,r,p,x=function(){var A,D=y.createElement("div"),w=y.body,C=s.style.fontSize,B=w&&w.style.fontSize,z=false;
D.style.cssText="position:absolute;font-size:1em;width:1em";if(!w){w=z=y.createElement("body");w.style.background="none"}s.style.fontSize="100%";w.style.fontSize="100%";w.appendChild(D);if(z){s.insertBefore(w,s.firstChild)}A=D.offsetWidth;if(z){s.removeChild(w)}else{w.removeChild(D)}s.style.fontSize=C;if(B){w.style.fontSize=B}A=p=parseFloat(A);return A},i=function(K){var P="clientWidth",B=s[P],z=y.compatMode==="CSS1Compat"&&B||y.body[P]||B,N={},O=b[b.length-1],A=new Date().getTime();if(K&&l&&A-l-1?p||x():1)}if(!!H){H=parseFloat(H)*(H.indexOf(w)>-1?p||x():1)}if(!L.hasquery||(!J||!M)&&(J||z>=E)&&(M||z<=H)){if(!N[L.media]){N[L.media]=[]}N[L.media].push(j[L.rules])}}}for(var G in q){if(q.hasOwnProperty(G)){if(q[G]&&q[G].parentNode===e){e.removeChild(q[G])}}}q.length=0;for(var F in N){if(N.hasOwnProperty(F)){var D=y.createElement("style"),C=N[F].join("\n");
D.type="text/css";D.media=F;e.insertBefore(D,O.nextSibling);if(D.styleSheet){D.styleSheet.cssText=C}else{D.appendChild(y.createTextNode(C))}q.push(D)}}},m=function(J,w,A){var H=J.replace(t.regex.keyframes,"").match(t.regex.media),K=H&&H.length||0;w=w.substring(0,w.lastIndexOf("/"));var z=function(L){return L.replace(t.regex.urls,"$1"+w+"$2$3")},B=!K&&A;if(w.length){w+="/"}if(B){K=1}for(var E=0;E-1,minw:G.match(t.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:G.match(t.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}}i()},v=function(){if(c.length){var w=c.shift();n(w.href,function(z){m(z,w.href,w.media);o[w.href]=true;k.setTimeout(function(){v()},0)})}},a=function(){for(var B=0;B