!function(a,b){function g(b,c){this.element=b,this.settings=a.extend({},f,c),this._defaults=f,this._name=e,this.init()}var e="gray",f={};g.prototype={init:function(){(this.isIE10()||this.isIE11())&&this.switchImage()},isIE10:function(){return Function("/*@cc_on return document.documentMode===10.0@*/")()},isIE11:function(){return!!navigator.userAgent.match(/Trident.*rv[ :]*11\./)},elementType:function(a){var b;return b="IMG"===a.prop("tagName")?"Img":"Bg"},getComputedStyle:function(a){var c={},d={};c=b.getComputedStyle(a,null);for(var e=0,f=c.length;f>e;e++){var g=c[e],h=c.getPropertyValue(g);d[g]=h}return d},extractUrl:function(a){var b;return startRegex=/^url\(["']?/,endRegex=/["']?\)$/,b=a.replace(startRegex,"").replace(endRegex,"")},positionToNegativeMargin:function(a){var b,c,d;return b=a.match(/^(-?\d+\S+)/)[0],c=a.match(/\s(-?\d+\S+)$/)[0],d="margin:"+c+" 0 0 "+b},getBgSize:function(b,c){var d,e,f,g,h,i,j;if(d=new Image,d.src=b,"auto"!==c&&"cover"!==c&&"contain"!==c&&"inherit"!==c){var k=a(this.element);e=d.width/d.height,g=parseInt((c.match(/^(\d+)px/)||[0,0])[1]),i=parseInt((c.match(/\s(\d+)px$/)||[0,0])[1]),f=k.height()*e,h=k.width()/e,g=g||f,i=i||h}return j=g||i?{width:g,height:i}:{width:d.width,height:d.height}},getParams:function(a){var b=this.elementType(a);return this["get"+b+"Params"](a)},getImgParams:function(a){var b={};return b.styles=this.getComputedStyle(a[0]),b.svg={url:a[0].src,width:b.styles.width.replace("px",""),height:b.styles.height.replace("px",""),offset:""},b},getBgParams:function(b){var d,c={};return d=this.extractUrl(b.css("background-image")),bgSize=this.getBgSize(d,b.css("background-size")),offset=this.positionToNegativeMargin(b.css("background-position")),c.styles=this.getComputedStyle(b[0]),c.svg=a.extend({url:d},bgSize,{offset:offset}),c},switchImage:function(){var b,c=a(this.element);params=this.getParams(c),b=a('