var imgliquid=imgliquid||{ver:"0.9.944"};imgliquid.bgs_available=!1,imgliquid.bgs_checkrunned=!1,imgliquid.injectcss=".imgliquid img {visibility:hidden}",function(i){function t(){if(!imgliquid.bgs_checkrunned){imgliquid.bgs_checkrunned=!0;var t=i('');i("body").append(t),!function(){var i=t[0];if(i&&window.getcomputedstyle){var e=window.getcomputedstyle(i,null);e&&e.backgroundsize&&(imgliquid.bgs_available="cover"===e.backgroundsize)}}(),t.remove()}}i.fn.extend({imgliquid:function(e){this.defaults={fill:!0,verticalalign:"center",horizontalalign:"center",usebackgroundsize:!0,usedatahtmlattr:!0,responsive:!0,delay:0,fadeintime:0,removeboxbackground:!0,hardpixels:!0,responsivechecktime:500,timecheckvisibility:500,onstart:null,onfinish:null,onitemstart:null,onitemfinish:null,onitemerror:null},t();var a=this;return this.options=e,this.settings=i.extend({},this.defaults,this.options),this.settings.onstart&&this.settings.onstart(),this.each(function(t){function e(){-1===u.css("background-image").indexof(encodeuri(c.attr("src")))&&u.css({"background-image":'url("'+encodeuri(c.attr("src"))+'")'}),u.css({"background-size":g.fill?"cover":"contain","background-position":(g.horizontalalign+" "+g.verticalalign).tolowercase(),"background-repeat":"no-repeat"}),i("a:first",u).css({display:"block",width:"100%",height:"100%"}),i("img",u).css({display:"none"}),g.onitemfinish&&g.onitemfinish(t,u,c),u.addclass("imgliquid_bgsize"),u.addclass("imgliquid_ready"),l()}function d(){function e(){c.data("imgliquid_error")||c.data("imgliquid_loaded")||c.data("imgliquid_oldprocessed")||(u.is(":visible")&&c[0].complete&&c[0].width>0&&c[0].height>0?(c.data("imgliquid_loaded",!0),settimeout(r,t*g.delay)):settimeout(e,g.timecheckvisibility))}if(c.data("oldsrc")&&c.data("oldsrc")!==c.attr("src")){var a=c.clone().removeattr("style");return a.data("imgliquid_settings",c.data("imgliquid_settings")),c.parent().prepend(a),c.remove(),c=a,c[0].width=0,settimeout(d,10),void 0}return c.data("imgliquid_oldprocessed")?(r(),void 0):(c.data("imgliquid_oldprocessed",!1),c.data("oldsrc",c.attr("src")),i("img:not(:first)",u).css("display","none"),u.css({overflow:"hidden"}),c.fadeto(0,0).removeattr("width").removeattr("height").css({visibility:"visible","max-width":"none","max-height":"none",width:"auto",height:"auto",display:"block"}),c.on("error",n),c[0].onerror=n,e(),o(),void 0)}function o(){(g.responsive||c.data("imgliquid_oldprocessed"))&&c.data("imgliquid_settings")&&(g=c.data("imgliquid_settings"),u.actualsize=u.get(0).offsetwidth+u.get(0).offsetheight/1e4,u.sizeold&&u.actualsize!==u.sizeold&&r(),u.sizeold=u.actualsize,settimeout(o,g.responsivechecktime))}function n(){c.data("imgliquid_error",!0),u.addclass("imgliquid_error"),g.onitemerror&&g.onitemerror(t,u,c),l()}function s(){var i={};if(a.settings.usedatahtmlattr){var t=u.attr("data-imgliquid-fill"),e=u.attr("data-imgliquid-horizontalalign"),d=u.attr("data-imgliquid-verticalalign");("true"===t||"false"===t)&&(i.fill=boolean("true"===t)),void 0===e||"left"!==e&&"center"!==e&&"right"!==e&&-1===e.indexof("%")||(i.horizontalalign=e),void 0===d||"top"!==d&&"bottom"!==d&&"center"!==d&&-1===d.indexof("%")||(i.verticalalign=d)}return imgliquid.isie&&a.settings.iefadeindisabled&&(i.fadeintime=0),i}function r(){var i,e,a,d,o,n,s,r,m=0,h=0,f=u.width(),v=u.height();void 0===c.data("owidth")&&c.data("owidth",c[0].width),void 0===c.data("oheight")&&c.data("oheight",c[0].height),g.fill===f/v>=c.data("owidth")/c.data("oheight")?(i="100%",e="auto",a=math.floor(f),d=math.floor(f*(c.data("oheight")/c.data("owidth")))):(i="auto",e="100%",a=math.floor(v*(c.data("owidth")/c.data("oheight"))),d=math.floor(v)),o=g.horizontalalign.tolowercase(),s=f-a,"left"===o&&(h=0),"center"===o&&(h=.5*s),"right"===o&&(h=s),-1!==o.indexof("%")&&(o=parseint(o.replace("%",""),10),o>0&&(h=.01*s*o)),n=g.verticalalign.tolowercase(),r=v-d,"left"===n&&(m=0),"center"===n&&(m=.5*r),"bottom"===n&&(m=r),-1!==n.indexof("%")&&(n=parseint(n.replace("%",""),10),n>0&&(m=.01*r*n)),g.hardpixels&&(i=a,e=d),c.css({width:i,height:e,"margin-left":math.floor(h),"margin-top":math.floor(m)}),c.data("imgliquid_oldprocessed")||(c.fadeto(g.fadeintime,1),c.data("imgliquid_oldprocessed",!0),g.removeboxbackground&&u.css("background-image","none"),u.addclass("imgliquid_nobgsize"),u.addclass("imgliquid_ready")),g.onitemfinish&&g.onitemfinish(t,u,c),l()}function l(){t===a.length-1&&a.settings.onfinish&&a.settings.onfinish()}var g=a.settings,u=i(this),c=i("img:first",u);return c.length?(c.data("imgliquid_settings")?(u.removeclass("imgliquid_error").removeclass("imgliquid_ready"),g=i.extend({},c.data("imgliquid_settings"),a.options)):g=i.extend({},a.settings,s()),c.data("imgliquid_settings",g),g.onitemstart&&g.onitemstart(t,u,c),imgliquid.bgs_available&&g.usebackgroundsize?e():d(),void 0):(n(),void 0)})}})}(jquery),!function(){var i=imgliquid.injectcss,t=document.getelementsbytagname("head")[0],e=document.createelement("style");e.type="text/css",e.stylesheet?e.stylesheet.csstext=i:e.appendchild(document.createtextnode(i)),t.appendchild(e)}();