var ua,domReady,cssHelper;"function"!=typeof Object.create&&(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&&"undefined"==typeof document.documentElement.style.maxHeight;ua.ie7=ua.ie&&document.documentElement&&"undefined"!=typeof document.documentElement.style.maxHeight&&"undefined"==typeof XDomainRequest;ua.ie8=ua.ie&&"undefined"!=typeof XDomainRequest;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){return void setTimeout(arguments.callee,50)}n()}(),document.onreadystatechange=function(){"complete"===document.readyState&&(document.onreadystatechange=null,n())}),ua.webkit&&document.readyState&&!function(){"loading"!==document.readyState?n():setTimeout(arguments.callee,10)}(),window.onload=n,function(i){return"function"==typeof i&&(n.done?i():t[t.length]=i),i}}();cssHelper=function(){var r,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},s=!1,o=[],h=function(n){"function"==typeof n&&(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){return void i()}u=!1;setTimeout(function(){u=!0},5e3);document.documentElement.style.cursor="progress";r.onreadystatechange=function(){4!==r.readyState||u||(!r.status&&"file:"===location.protocol||r.status>=200&&r.status<300||304===r.status||navigator.userAgent.indexOf("Safari")>-1&&"undefined"==typeof r.status?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=n.replace(t.FINAL_SEMICOLONS,"}")},f={stylesheet:function(n){for(var r={},s=[],h=[],e=[],c=[],a=n.cssHelperText,v=n.getAttribute("media"),u,l,o=v?v.toLowerCase().split(","):["all"],i=0;i<o.length;i++)s[s.length]=f.mediaQuery(o[i],r);if(u=a.match(t.BLOCKS),null!==u)for(i=0;i<u.length;i++)"@media "===u[i].substring(0,7)?(l=f.mediaQueryList(u[i],r),e=e.concat(l.getRules()),h[h.length]=l):e[e.length]=c[c.length]=f.rule(u[i],r,null);return r.element=n,r.getCssText=function(){return a},r.getAttrMediaQueries=function(){return s},r.getMediaQueryLists=function(){return h},r.getRules=function(){return e},r.getRulesWithoutMQ=function(){return c},r},mediaQueryList:function(n,i){var r={},h=n.indexOf("{"),c=n.substring(0,h),e;n=n.substring(h+1,n.length-1);for(var o=[],s=[],l=c.toLowerCase().substring(7).split(","),u=0;u<l.length;u++)o[o.length]=f.mediaQuery(l[u],r);if(e=n.match(t.BLOCKS_INSIDE),null!==e)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,r,o;n=n||"";"mediaQueryList"===i.type?s=i:h=i;for(var u,c=!1,f=[],a=!0,l=n.match(t.NOT_WHITESPACE),e=0;e<l.length;e++)r=l[e],u||"not"!==r&&"only"!==r?u?"("===r.charAt(0)&&(o=r.substring(1,r.length-1).split(":"),f[f.length]={mediaFeature:o[0],value:o[1]||null}):u=r:"not"===r&&(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 u},getExpressions:function(){return f}}},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("string"==typeof n.cssHelperText){var t={stylesheet:null,mediaQueryLists:[],rules:[],selectors:{},declarations:[],properties:{}},c=t.stylesheet=f.stylesheet(n),s=(t.mediaQueryLists=c.getMediaQueryLists(),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(){},d=function(){var u;s=!0;r=[];for(var n=[],f=function(){for(var i,t=0;t<n.length;t++)k(n[t]);for(i=document.getElementsByTagName("style"),t=0;t<i.length;t++)l(i[t]);s=!1;p()},e=document.getElementsByTagName("link"),i=0;i<e.length;i++)u=e[i],u.getAttribute("rel").indexOf("style")>-1&&u.href&&0!==u.href.length&&!u.disabled&&(n[n.length]=u);if(n.length>0){var o=0,h=function(){o++;o===n.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(i=0;i<n.length;i++)c(n[i])}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(null!==n[t]){if("array"===a[t])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]="array"===a[t]?[]:{},i=0;i<r.length;i++)u="stylesheets"===t?"stylesheet":t,v(t,r[i].cssHelperParsed[u]);return n[t]},y=function(n){return"undefined"!=typeof window.innerWidth?window["inner"+n]:"undefined"!=typeof document.documentElement&&"undefined"!=typeof document.documentElement.clientWidth&&0!=document.documentElement.clientWidth?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,"undefined"==typeof i||i===!0?cssHelper.parsed(function(){var i=l(r,n),t;for(t in i)i.hasOwnProperty(t)&&v(t,i[t]);c("newStyleParsed",r)}):r.parsingDisallowed=!0,r},removeStyle:function(n){if(n.parentNode)return n.parentNode.removeChild(n)},parsed:function(n){s?h(n):"undefined"!=typeof r?"function"==typeof n&&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){"function"==typeof t&&(u[n]||(u[n]={listeners:[]}),u[n].listeners[u[n].listeners.length]=t)},removeListener:function(n,t){if("function"==typeof t&&u[n])for(var 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=1===n.offsetWidth,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);16!==n.offsetWidth&&(n.style.fontSize=16/n.offsetWidth+"em");n.style.width=""},e=function(t){n.style.width=t;var i=n.offsetWidth;return n.style.width="",i},a=function(n,t){var u=n.length,f="min-"===n.substring(0,4),o=!f&&"max-"===n.substring(0,4),s,i,w,h,c,y,p,l,a,v;return(null!==t&&(r.LENGTH_UNIT.exec(t)?(s="length",i=e(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,null!==t?"length"===s?f&&h>=i||o&&i>h||!f&&!o&&h===i:!1:h>0):"device-height"===n.substring(u-13,u)?(c=screen.height,null!==t?"length"===s?f&&c>=i||o&&i>c||!f&&!o&&c===i:!1:c>0):"width"===n.substring(u-5,u)?(h=document.documentElement.clientWidth||document.body.clientWidth,null!==t?"length"===s?f&&h>=i||o&&i>h||!f&&!o&&h===i:!1:h>0):"height"===n.substring(u-6,u)?(c=document.documentElement.clientHeight||document.body.clientHeight,null!==t?"length"===s?f&&c>=i||o&&i>c||!f&&!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,"absolute"===s?"portrait"===i?c>=h: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],"aspect-ratio"===s?f&&y>=p||o&&p>y||!f&&!o&&y===p:!1):"device-aspect-ratio"===n.substring(u-19,u)?"aspect-ratio"===s&&screen.width*i[1]==screen.height*i[0]:"color-index"===n.substring(u-11,u)?(l=Math.pow(2,screen.colorDepth),null!==t?"absolute"===s?f&&l>=i||o&&i>l||!f&&!o&&l===i:!1:l>0):"color"===n.substring(u-5,u)?(a=screen.colorDepth,null!==t?"absolute"===s?f&&a>=i||o&&i>a||!f&&!o&&a===i:!1:a>0):"resolution"===n.substring(u-10,u)?(v=e("dpcm"===w?"1cm":"1in"),null!==t?"resolution"===s?f&&v>=i||o&&i>v||!f&&!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;f>i&&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 e,s,h,u,c,a,f=n.getMediaQueries(),l={},r=0;r<f.length;r++)if(e=f[r].getMediaType(),0!==f[r].getExpressions().length){if(s=!0,"all"!==e&&i&&i.length>0)for(s=!1,h=0;h<i.length;h++)i[h]===e&&(s=!0);s&&o(f[r])&&(l[e]=!0)}u=[];c=0;for(a in l)l.hasOwnProperty(a)&&(c>0&&(u[c++]=","),u[c++]=a);u.length>0&&(t[t.length]=cssHelper.addStyle("@media "+u.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 h,u,i,c,f=n.getAttrMediaQueries(),l=!1,e={},r=0;r<f.length;r++)o(f[r])&&(e[f[r].getMediaType()]=f[r].getExpressions().length>0);h=[];u=[];for(i in e)e.hasOwnProperty(i)&&(h[h.length]=i,e[i]&&(u[u.length]=i),"all"===i&&(l=!0));u.length>0&&(t[t.length]=cssHelper.addStyle(n.getCssText(),u,!1));c=n.getMediaQueryLists();l?s(c):s(c,h)},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)},f=0,p=function(){var t=cssHelper.getViewportWidth(),i=cssHelper.getViewportHeight(),n,r,e;ua.ie&&(n=document.createElement("div"),n.style.position="absolute",n.style.top="-9999em",n.style.overflow="scroll",document.body.appendChild(n),f=n.offsetWidth-n.clientWidth,document.body.removeChild(n));e=function(){var n=cssHelper.getViewportWidth(),e=cssHelper.getViewportHeight();(Math.abs(n-t)>f||Math.abs(e-i)>f)&&(t=n,i=e,clearTimeout(r),r=setTimeout(function(){u()?cssHelper.broadcast("cssMediaQueriesTested"):c()},500))};window.onresize=function(){var n=window.onresize||function(){};return function(){n();e()}}()},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){}