/*! Gray v1.7.0 https://github.com/karlhorky/gray) | MIT */ /*! Modernizr 2.8.3 (Custom Build) | MIT & BSD */ if(function(e,t,i){if(!e.Modernizr){var r=[],n=[],s={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var i=this;setTimeout((function(){t(i[e])}),0)},addTest:function(e,t,i){n.push({name:e,fn:t,options:i})},addAsyncTest:function(e){n.push({name:null,fn:e})}},o=s._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];s._prefixes=o;var a=function(){};a.prototype=s,(a=new a).addTest("svgfilters",(function(){var t=!1;try{t="SVGFEColorMatrixElement"in e&&2==SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE}catch(e){}return t}));var l="CSS"in e&&"supports"in e.CSS,d="supportsCSS"in e;a.addTest("supports",l||d);var u=t.documentElement,f="svg"===u.nodeName.toLowerCase();a.addTest("inlinesvg",(function(){var e=w("div");return e.innerHTML="","http://www.w3.org/2000/svg"==("undefined"!=typeof SVGRect&&e.firstChild&&e.firstChild.namespaceURI)}));var h="Moz O ms Webkit",g=s._config.usePrefixes?h.split(" "):[];s._cssomPrefixes=g;var p=s._config.usePrefixes?h.toLowerCase().split(" "):[];s._domPrefixes=p;var c={elem:w("modernizr")};a._q.push((function(){delete c.elem}));var m={style:c.elem.style};a._q.unshift((function(){delete m.style})),s.testAllProps=k,s.testAllProps=M,a.addTest("cssfilters",(function(){if(a.supports)return M("filter","blur(2px)");var e=w("a");return e.style.cssText=o.join("filter:blur(2px); "),!!e.style.length&&(t.documentMode===i||t.documentMode>9)})),function(){var e,t,i,s,o,l;for(var d in n)if(n.hasOwnProperty(d)){if(e=[],(t=n[d]).name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(i=0;il;l++)if(u=e[l],f=m.style[u],x(u,"-")&&(u=b(u)),m.style[u]!==i){if(n||v(r,"undefined"))return s(),"pfx"!=t||u;try{m.style[u]=r}catch(e){}if(m.style[u]!=f)return s(),"pfx"!=t||u}return s(),!1}function k(e,t,i,r,n){var s=e.charAt(0).toUpperCase()+e.slice(1),o=(e+" "+g.join(s+" ")+s).split(" ");return v(t,"string")||v(t,"undefined")?N(o,t,r,n):function(e,t,i){var r;for(var n in e)if(e[n]in t)return!1===i?e[n]:v(r=t[e[n]],"function")?S(r,i||t):r;return!1}(o=(e+" "+p.join(s+" ")+s).split(" "),t,i)}function M(e,t,r){return k(e,i,i,t,r)}}(window,document),!window.Modernizr._prefixes)throw new Error("jquery-gray: Modernizr._prefixes not set!\n\nPlease add the necessary feature detects:\nhttps://github.com/karlhorky/gray#modernizr");!function(e,t,i,r){var n={fade:!1,classes:{fade:"grayscale-fade"}},s=0;function o(t,i){var r;r=((i=i||{}).classes||{}).fade||n.classes.fade,i.fade=i.fade||t.className.indexOf(r)>-1,this.element=t,this.elementId=s++,this.settings=e.extend({},n,i),this._defaults=n,this._name="gray",this.init()}e.extend(o.prototype,{init:function(){var t;!Modernizr.cssfilters&&Modernizr.inlinesvg&&Modernizr.svgfilters&&(t=e(this.element),(this.cssFilterDeprecated(t)||this.settings.fade)&&this.switchImage(t))},cssFilterDeprecated:function(e){return"none"===e.css("filter")},elementType:function(e){return"IMG"===e.prop("tagName")?"Img":"Bg"},pxToNumber:function(e){return parseInt(e.replace("px",""))},getComputedStyle:function(e){for(var i={},r={},n=0,s=(i=t.getComputedStyle(e,null)).length;n')},switchImage:function(t){var i,r,n,s,o,a;r=this["get"+(i=this.elementType(t))+"Params"](t),n=this.settings.fade?this.settings.classes.fade:"",s=t[0].alt?' aria-labelledby="gray-title-'+this.elementId+'"':"",o=t[0].alt?''+t[0].alt+"":"",a=e('
"+o+'
'),r.styles=this.setStyles(i,r.styles,r.svg,r.image),a.css(r.styles),this.addSVGFilterOnce(),t.replaceWith(a)}}),e.fn.gray=function(t){return this.each((function(){e.data(this,"plugin_gray")||e.data(this,"plugin_gray",new o(this,t))})),this},e(t).on("load",(function(){e(".grayscale:not(.grayscale-replaced)").gray()}))}(jQuery,window,document)