(function(a,d){function b(){o(!0)}a.respond={};respond.update=function(){};respond.mediaQueriesSupported=d;if(!d){var c=a.document,g=c.documentElement,p=[],n=[],h=[],i={},k=c.getElementsByTagName("head")[0]||g,j=k.getElementsByTagName("link"),l=[],s=function(){for(var u=j.length,b=0;b<u;b++){var e=j[b],c=e.href,d=e.media,e=e.rel&&e.rel.toLowerCase()==="stylesheet";c&&e&&!i[c]&&(!/^([a-zA-Z]+?:(\/\/)?(www\.)?)/.test(c)||c.replace(RegExp.$1,"").split("/")[0]===a.location.host?l.push({href:c,media:d}):
i[c]=!0)}r()},r=function(){if(l.length){var a=l.shift();v(a.href,function(b){w(b,a.href,a.media);i[a.href]=!0;r()})}},w=function(a,b,e){var c=a.match(/@media ([^\{]+)\{((?!@media)[\s\S])*(?=\}[\s]*\/\*\/mediaquery\*\/)/gmi),d=c&&c.length||0,b=b.substring(0,b.lastIndexOf("/")),g=function(a){return a.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+b+"$2$3")},f=!d&&e;b.length&&(b+="/");f&&(d=1);for(var h=0;h<d;h++){var m;f?(m=e,n.push(g(a))):(m=c[h].match(/@media ([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,
n.push(RegExp.$2&&g(RegExp.$2)));m=m.split(",");for(var k=m.length,j=0;j<k;j++){var i=m[j];p.push({media:i.match(/(only\s+)?([a-zA-Z]+)(\sand)?/)&&RegExp.$2,rules:n.length-1,minw:i.match(/\(min\-width:[\s]*([\s]*[0-9]+)px[\s]*\)/)&&parseFloat(RegExp.$1),maxw:i.match(/\(max\-width:[\s]*([\s]*[0-9]+)px[\s]*\)/)&&parseFloat(RegExp.$1)})}}o()},q,t,o=function(a){var b=g.clientWidth,e=c.compatMode==="CSS1Compat"&&b||c.body.clientWidth||b,b={},d=c.createDocumentFragment(),i=j[j.length-1],l=(new Date).getTime();
if(a&&q&&l-q<30)clearTimeout(t),t=setTimeout(o,30);else{q=l;for(var f in p)if(a=p[f],!a.minw&&!a.maxw||(!a.minw||a.minw&&e>=a.minw)&&(!a.maxw||a.maxw&&e<=a.maxw))b[a.media]||(b[a.media]=[]),b[a.media].push(n[a.rules]);for(f in h)h[f]&&h[f].parentNode===k&&k.removeChild(h[f]);for(f in b)a=c.createElement("style"),e=b[f].join("\n"),a.type="text/css",a.media=f,a.styleSheet?a.styleSheet.cssText=e:a.appendChild(c.createTextNode(e)),d.appendChild(a),h.push(a);k.insertBefore(d,i.nextSibling)}},v=function(a,
b){var c=x();if(c)c.open("GET",a,!0),c.onreadystatechange=function(){c.readyState!=4||c.status!=200&&c.status!=304||b(c.responseText)},c.readyState!=4&&c.send()},x=function(){for(var a=!1,b=[function(){return new ActiveXObject("Microsoft.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new XMLHttpRequest}],c=b.length;c--;){try{a=b[c]()}catch(d){continue}break}return function(){return a}}();s();respond.update=
s;a.addEventListener?a.addEventListener("resize",b,!1):a.attachEvent&&a.attachEvent("onresize",b)}})(this,function(a){if(a.matchMedia)return!0;var d,b=document,a=b.documentElement;d=a.firstElementChild||a.firstChild;var c=!b.body,g=b.body||b.createElement("body"),b=b.createElement("div");b.id="mq-test-1";b.style.cssText="position:absolute;top:-99em";g.appendChild(b);b.innerHTML='_<style media="only all"> #mq-test-1 { width: 9px; }</style>';c&&a.insertBefore(g,d);b.removeChild(b.firstChild);d=b.offsetWidth==
9;c?a.removeChild(g):g.removeChild(b);return d}(this));var imgSizer={Config:{imgCache:[],spacer:"spacer.gif"},collate:function(a){if(document.all&&!window.opera&&!window.XDomainRequest&&document.getElementsByTagName){for(var d=imgSizer,b=d.Config.imgCache,a=a&&a.length?a:document.getElementsByTagName("img"),c=0;c<a.length;c++)a[c].origWidth=a[c].offsetWidth,a[c].origHeight=a[c].offsetHeight,b.push(a[c]),d.ieAlpha(a[c]),a[c].style.width="100%";b.length&&d.resize(function(){for(var a=0;a<b.length;a++)b[a].style.height=b[a].origHeight*(b[a].offsetWidth/
b[a].origWidth)+"px"})}},ieAlpha:function(a){var d=imgSizer;if(a.oldSrc)a.src=a.oldSrc;var b=a.src;a.style.width=a.offsetWidth+"px";a.style.height=a.offsetHeight+"px";a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+b+"', sizingMethod='scale')";a.oldSrc=b;a.src=d.Config.spacer},resize:function(a){var d=window.onresize;window.onresize=typeof window.onresize!="function"?a:function(){d&&d();a()}}};
