var ua,domReady,cssHelper;typeof Object.create!="function"&&(Object.create=function(n){function t(){}return t.prototype=n,new t});ua={toString:function(){return navigator.userAgent},test:function(n){return this.toString().toLowerCase().indexOf(n.toLowerCase())>-1}};ua.version=(ua.toString().toLowerCase().match(/[\s\S]+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1];ua.webkit=ua.test("webkit");ua.gecko=ua.test("gecko")&&!ua.webkit;ua.opera=ua.test("opera");ua.ie=ua.test("msie")&&!ua.opera;ua.ie6=ua.ie&&document.compatMode&&typeof document.documentElement.style.maxHeight=="undefined";ua.ie7=ua.ie&&document.documentElement&&typeof document.documentElement.style.maxHeight!="undefined"&&typeof XDomainRequest=="undefined";ua.ie8=ua.ie&&typeof XDomainRequest!="undefined";domReady=function(){var t=[],n=function(){if(!arguments.callee.done){arguments.callee.done=!0;for(var n=0;n<t.length;n++)t[n]()}};return document.addEventListener&&document.addEventListener("DOMContentLoaded",n,!1),ua.ie&&(function(){try{document.documentElement.doScroll("left");document.body.length}catch(t){setTimeout(arguments.callee,50);return}n()}(),document.onreadystatechange=function(){document.readyState==="complete"&&(document.onreadystatechange=null,n())}),ua.webkit&&document.readyState&&function(){document.readyState!=="loading"?n():setTimeout(arguments.callee,10)}(),window.onload=n,function(i){return typeof i=="function"&&(n.done?i():t[t.length]=i),i}}();cssHelper=function(){var t={BLOCKS:/[^\s{;][^{;]*\{(?:[^{}]*\{[^{}]*\}[^{}]*|[^{}]*)*\}/g,BLOCKS_INSIDE:/[^\s{][^{]*\{[^{}]*\}/g,DECLARATIONS:/[a-zA-Z\-]+[^;]*:[^;]+;/g,RELATIVE_URLS:/url\(['"]?([^\/\)'"][^:\)'"]+)['"]?\)/g,REDUNDANT_COMPONENTS:/(?:\/\*([^*\\\\]|\*(?!\/))+\*\/|@import[^;]+;|@-moz-document\s*url-prefix\(\)\s*{(([^{}])+{([^{}])+}([^{}])+)+})/g,REDUNDANT_WHITESPACE:/\s*(,|:|;|\{|\})\s*/g,WHITESPACE_IN_PARENTHESES:/\(\s*(\S*)\s*\)/g,MORE_WHITESPACE:/\s{2,}/g,FINAL_SEMICOLONS:/;\}/g,NOT_WHITESPACE:/\S+/g},r,s=!1,o=[],h=function(n){typeof n=="function"&&(o[o.length]=n)},p=function(){for(var n=0;n<o.length;n++)o[n](r)},u={},c=function(n,t){var i,r;if(u[n]&&(i=u[n].listeners,i))for(r=0;r<i.length;r++)i[r](t)},w=function(n,t,i){var r,u;if(ua.ie&&!window.XMLHttpRequest&&(window.XMLHttpRequest=function(){return new ActiveXObject("Microsoft.XMLHTTP")}),!XMLHttpRequest)return"";r=new XMLHttpRequest;try{r.open("get",n,!0);r.setRequestHeader("X_REQUESTED_WITH","XMLHttpRequest")}catch(f){i();return}u=!1;setTimeout(function(){u=!0},5e3);document.documentElement.style.cursor="progress";r.onreadystatechange=function(){r.readyState!==4||u||(!r.status&&location.protocol==="file:"||r.status>=200&&r.status<300||r.status===304||navigator.userAgent.indexOf("Safari")>-1&&typeof r.status=="undefined"?t(r.responseText):i(),document.documentElement.style.cursor="",r=null)};r.send("")},b=function(n){return n=n.replace(t.REDUNDANT_COMPONENTS,""),n=n.replace(t.REDUNDANT_WHITESPACE,"$1"),n=n.replace(t.WHITESPACE_IN_PARENTHESES,"($1)"),n=n.replace(t.MORE_WHITESPACE," "),n.replace(t.FINAL_SEMICOLONS,"}")},f={stylesheet:function(n){for(var i={},o=[],s=[],e=[],h=[],l=n.cssHelperText,a=n.getAttribute("media"),u,c,v=a?a.toLowerCase().split(","):["all"],r=0;r<v.length;r++)o[o.length]=f.mediaQuery(v[r],i);if(u=l.match(t.BLOCKS),u!==null)for(r=0;r<u.length;r++)u[r].substring(0,7)==="@media "?(c=f.mediaQueryList(u[r],i),e=e.concat(c.getRules()),s[s.length]=c):e[e.length]=h[h.length]=f.rule(u[r],i,null);return i.element=n,i.getCssText=function(){return l},i.getAttrMediaQueries=function(){return o},i.getMediaQueryLists=function(){return s},i.getRules=function(){return e},i.getRulesWithoutMQ=function(){return h},i},mediaQueryList:function(n,i){var r={},h=n.indexOf("{"),c=n.substring(0,h),u,e;n=n.substring(h+1,n.length-1);var o=[],s=[],l=c.toLowerCase().substring(7).split(",");for(u=0;u<l.length;u++)o[o.length]=f.mediaQuery(l[u],r);if(e=n.match(t.BLOCKS_INSIDE),e!==null)for(u=0;u<e.length;u++)s[s.length]=f.rule(e[u],i,r);return r.type="mediaQueryList",r.getMediaQueries=function(){return o},r.getRules=function(){return s},r.getListText=function(){return c},r.getCssText=function(){return n},r},mediaQuery:function(n,i){var s,h,u,r,e;n=n||"";i.type==="mediaQueryList"?s=i:h=i;var c=!1,f,o=[],a=!0,l=n.match(t.NOT_WHITESPACE);for(u=0;u<l.length;u++)r=l[u],f||r!=="not"&&r!=="only"?f?r.charAt(0)==="("&&(e=r.substring(1,r.length-1).split(":"),o[o.length]={mediaFeature:e[0],value:e[1]||null}):f=r:r==="not"&&(c=!0);return{getQueryText:function(){return n},getAttrStyleSheet:function(){return h||null},getList:function(){return s||null},getValid:function(){return a},getNot:function(){return c},getMediaType:function(){return f},getExpressions:function(){return o}}},rule:function(n,t,i){for(var r={},o=n.indexOf("{"),s=n.substring(0,o),c=s.split(","),u=[],h=n.substring(o+1,n.length-1).split(";"),e=0;e<h.length;e++)u[u.length]=f.declaration(h[e],r);return r.getStylesheet=function(){return t||null},r.getMediaQueryList=function(){return i||null},r.getSelectors=function(){return c},r.getSelectorText=function(){return s},r.getDeclarations=function(){return u},r.getPropertyValue=function(n){for(var t=0;t<u.length;t++)if(u[t].getProperty()===n)return u[t].getValue();return null},r},declaration:function(n,t){var i=n.indexOf(":"),r=n.substring(0,i),u=n.substring(i+1);return{getRule:function(){return t||null},getProperty:function(){return r},getValue:function(){return u}}}},k=function(n){var u,e,o;if(typeof n.cssHelperText=="string"){var t={stylesheet:null,mediaQueryLists:[],rules:[],selectors:{},declarations:[],properties:{}},c=t.stylesheet=f.stylesheet(n),a=t.mediaQueryLists=c.getMediaQueryLists(),s=t.rules=c.getRules(),h=t.selectors,l=function(n){for(var t,r=n.getSelectors(),i=0;i<r.length;i++)t=r[i],h[t]||(h[t]=[]),h[t][h[t].length]=n};for(i=0;i<s.length;i++)l(s[i]);for(u=t.declarations,i=0;i<s.length;i++)u=t.declarations=u.concat(s[i].getDeclarations());for(e=t.properties,i=0;i<u.length;i++)o=u[i].getProperty(),e[o]||(e[o]=[]),e[o][e[o].length]=u[i];return n.cssHelperParsed=t,r[r.length]=n,t}},l=function(){return},d=function(){var n,u;s=!0;r=[];var i=[],f=function(){for(var t,n=0;n<i.length;n++)k(i[n]);for(t=document.getElementsByTagName("style"),n=0;n<t.length;n++)l(t[n]);s=!1;p()},e=document.getElementsByTagName("link");for(n=0;n<e.length;n++)u=e[n],u.getAttribute("rel").indexOf("style")>-1&&u.href&&u.href.length!==0&&!u.disabled&&(i[i.length]=u);if(i.length>0){var o=0,h=function(){o++;o===i.length&&f()},c=function(n){var i=n.href;w(i,function(r){r=b(r).replace(t.RELATIVE_URLS,"url("+i.substring(0,i.lastIndexOf("/"))+"/$1)");n.cssHelperText=r;h()},h)};for(n=0;n<i.length;n++)c(i[n])}else f()},a={stylesheets:"array",mediaQueryLists:"array",rules:"array",selectors:"object",declarations:"array",properties:"object"},n={stylesheets:null,mediaQueryLists:null,rules:null,selectors:null,declarations:null,properties:null},v=function(t,i){var u,r;if(n[t]!==null){if(a[t]==="array")return n[t]=n[t].concat(i);u=n[t];for(r in i)i.hasOwnProperty(r)&&(u[r]=u[r]?u[r].concat(i[r]):i[r]);return u}},e=function(t){var i,u;for(n[t]=a[t]==="array"?[]:{},i=0;i<r.length;i++)u=t==="stylesheets"?"stylesheet":t,v(t,r[i].cssHelperParsed[u]);return n[t]},y=function(n){return typeof innerWidth!="undefined"?window["inner"+n]:typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0?document.documentElement["client"+n]:void 0};return{addStyle:function(n,t,i){var r,u="css-mediaqueries-js",f="",e=document.getElementById(u);return t&&t.length>0&&(f=t.join(","),u+=f),null!==e?r=e:(r=document.createElement("style"),r.setAttribute("type","text/css"),r.setAttribute("id",u),r.setAttribute("media",f),document.getElementsByTagName("head")[0].appendChild(r)),r.styleSheet?r.styleSheet.cssText+=n:r.appendChild(document.createTextNode(n)),r.addedWithCssHelper=!0,typeof i=="undefined"||i===!0?cssHelper.parsed(function(){var t=l(r,n);for(var i in t)t.hasOwnProperty(i)&&v(i,t[i]);c("newStyleParsed",r)}):r.parsingDisallowed=!0,r},removeStyle:function(n){if(n.parentNode)return n.parentNode.removeChild(n)},parsed:function(n){s?h(n):typeof r!="undefined"?typeof n=="function"&&n(r):(h(n),d())},stylesheets:function(t){cssHelper.parsed(function(){t(n.stylesheets||e("stylesheets"))})},mediaQueryLists:function(t){cssHelper.parsed(function(){t(n.mediaQueryLists||e("mediaQueryLists"))})},rules:function(t){cssHelper.parsed(function(){t(n.rules||e("rules"))})},selectors:function(t){cssHelper.parsed(function(){t(n.selectors||e("selectors"))})},declarations:function(t){cssHelper.parsed(function(){t(n.declarations||e("declarations"))})},properties:function(t){cssHelper.parsed(function(){t(n.properties||e("properties"))})},broadcast:c,addListener:function(n,t){typeof t=="function"&&(u[n]||(u[n]={listeners:[]}),u[n].listeners[u[n].listeners.length]=t)},removeListener:function(n,t){var r,i;if(typeof t=="function"&&u[n])for(r=u[n].listeners,i=0;i<r.length;i++)r[i]===t&&(r.splice(i,1),i-=1)},getViewportWidth:function(){return y("Width")},getViewportHeight:function(){return y("Height")}}}();domReady(function(){var n,r={LENGTH_UNIT:/[0-9]+(em|ex|px|in|cm|mm|pt|pc)$/,RESOLUTION_UNIT:/[0-9]+(dpi|dpcm)$/,ASPECT_RATIO:/^[0-9]+\/[0-9]+$/,ABSOLUTE_VALUE:/^[0-9]*(\.[0-9]+)*$/},t=[],u=function(){var r="css3-mediaqueries-test",n=document.createElement("div"),t,i;return n.id=r,t=cssHelper.addStyle("@media all and (width) { #"+r+" { width: 1px !important; } }",[],!1),document.body.appendChild(n),i=n.offsetWidth===1,t.parentNode.removeChild(t),n.parentNode.removeChild(n),u=function(){return i},i},l=function(){n=document.createElement("div");n.style.cssText="position:absolute;top:-9999em;left:-9999em;margin:0;border:none;padding:0;width:1em;font-size:1em;";document.body.appendChild(n);n.offsetWidth!==16&&(n.style.fontSize=16/n.offsetWidth+"em");n.style.width=""},f=function(t){n.style.width=t;var i=n.offsetWidth;return n.style.width="",i},a=function(n,t){var u=n.length,e=n.substring(0,4)==="min-",o=!e&&n.substring(0,4)==="max-",s,i,w,h,c,y,p,l,a,v;return t!==null&&(r.LENGTH_UNIT.exec(t)?(s="length",i=f(t)):r.RESOLUTION_UNIT.exec(t)?(s="resolution",i=parseInt(t,10),w=t.substring((i+"").length)):r.ASPECT_RATIO.exec(t)?(s="aspect-ratio",i=t.split("/")):r.ABSOLUTE_VALUE?(s="absolute",i=t):s="unknown"),"device-width"===n.substring(u-12,u)?(h=screen.width,t!==null?s==="length"?e&&h>=i||o&&h<i||!e&&!o&&h===i:!1:h>0):"device-height"===n.substring(u-13,u)?(c=screen.height,t!==null?s==="length"?e&&c>=i||o&&c<i||!e&&!o&&c===i:!1:c>0):"width"===n.substring(u-5,u)?(h=document.documentElement.clientWidth||document.body.clientWidth,t!==null?s==="length"?e&&h>=i||o&&h<i||!e&&!o&&h===i:!1:h>0):"height"===n.substring(u-6,u)?(c=document.documentElement.clientHeight||document.body.clientHeight,t!==null?s==="length"?e&&c>=i||o&&c<i||!e&&!o&&c===i:!1:c>0):"orientation"===n.substring(u-11,u)?(h=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight,s==="absolute"?i==="portrait"?h<=c:h>c:!1):"aspect-ratio"===n.substring(u-12,u)?(h=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight,y=h/c,p=i[1]/i[0],s==="aspect-ratio"?e&&y>=p||o&&y<p||!e&&!o&&y===p:!1):"device-aspect-ratio"===n.substring(u-19,u)?s==="aspect-ratio"&&screen.width*i[1]==screen.height*i[0]:"color-index"===n.substring(u-11,u)?(l=Math.pow(2,screen.colorDepth),t!==null?s==="absolute"?e&&l>=i||o&&l<i||!e&&!o&&l===i:!1:l>0):"color"===n.substring(u-5,u)?(a=screen.colorDepth,t!==null?s==="absolute"?e&&a>=i||o&&a<i||!e&&!o&&a===i:!1:a>0):"resolution"===n.substring(u-10,u)?(v=w==="dpcm"?f("1cm"):f("1in"),t!==null?s==="resolution"?e&&v>=i||o&&v<i||!e&&!o&&v===i:!1:v>0):!1},o=function(n){var t=n.getValid(),r=n.getExpressions(),f=r.length,i,u;if(f>0){for(i=0;i<f&&t;i++)t=a(r[i].mediaFeature,r[i].value);return u=n.getNot(),t&&!u||u&&!t}return t},v=function(n,i){for(var f,e,s,r,h,l,c=n.getMediaQueries(),a={},u=0;u<c.length;u++)if(f=c[u].getMediaType(),c[u].getExpressions().length!==0){if(e=!0,f!=="all"&&i&&i.length>0)for(e=!1,s=0;s<i.length;s++)i[s]===f&&(e=!0);e&&o(c[u])&&(a[f]=!0)}r=[];h=0;for(l in a)a.hasOwnProperty(l)&&(h>0&&(r[h++]=","),r[h++]=l);r.length>0&&(t[t.length]=cssHelper.addStyle("@media "+r.join("")+"{"+n.getCssText()+"}",i,!1))},s=function(n,t){for(var i=0;i<n.length;i++)v(n[i],t)},h=function(n){for(var f,r,i,c,e=n.getAttrMediaQueries(),l=!1,h={},u=0;u<e.length;u++)o(e[u])&&(h[e[u].getMediaType()]=e[u].getExpressions().length>0);f=[];r=[];for(i in h)h.hasOwnProperty(i)&&(f[f.length]=i,h[i]&&(r[r.length]=i),i==="all"&&(l=!0));r.length>0&&(t[t.length]=cssHelper.addStyle(n.getCssText(),r,!1));c=n.getMediaQueryLists();l?s(c):s(c,f)},y=function(n){for(var t=0;t<n.length;t++)h(n[t]);ua.ie?(document.documentElement.style.display="block",setTimeout(function(){document.documentElement.style.display=""},0),setTimeout(function(){cssHelper.broadcast("cssMediaQueriesTested")},100)):cssHelper.broadcast("cssMediaQueriesTested")},c=function(){for(var n=0;n<t.length;n++)cssHelper.removeStyle(t[n]);t=[];cssHelper.stylesheets(y)},e=0,p=function(){var t=cssHelper.getViewportWidth(),i=cssHelper.getViewportHeight(),n,r,f;ua.ie&&(n=document.createElement("div"),n.style.position="absolute",n.style.top="-9999em",n.style.overflow="scroll",document.body.appendChild(n),e=n.offsetWidth-n.clientWidth,document.body.removeChild(n));f=function(){var n=cssHelper.getViewportWidth(),f=cssHelper.getViewportHeight();(Math.abs(n-t)>e||Math.abs(f-i)>e)&&(t=n,i=f,clearTimeout(r),r=setTimeout(function(){u()?cssHelper.broadcast("cssMediaQueriesTested"):c()},500))};window.onresize=function(){var n=window.onresize||function(){};return function(){n();f()}}()},i=document.documentElement;return i.style.marginLeft="-32767px",setTimeout(function(){i.style.marginLeft=""},5e3),function(){u()?i.style.marginLeft="":(cssHelper.addListener("newStyleParsed",function(n){h(n.cssHelperParsed.stylesheet)}),cssHelper.addListener("cssMediaQueriesTested",function(){ua.ie&&(i.style.width="1px");setTimeout(function(){i.style.width="";i.style.marginLeft=""},0);cssHelper.removeListener("cssMediaQueriesTested",arguments.callee)}),l(),c());p()}}());try{document.execCommand("BackgroundImageCache",!1,!0)}catch(e){}