/*!
 * Bootstrap Package v7.0.2 (http://www.bk2k.info)
 * Copyright 2014-2016 Benjamin Kott
 * Licensed under the MIT license
 */
+function(a){function b(b){return c=this,this.each(function(){var c=a(this),g=c.data("bk2k.responsiveimage"),h="object"==typeof b&&b;g||(d||(d=new e(h&&h.breakpoints?{breakpoints:h.breakpoints}:{})),h&&h.breakpoints&&(h.breakpoints=null),h=a.extend({},c.data(),h),c.data("bk2k.responsiveimage",g=new f(this,h))),"string"==typeof b&&g[b]()})}var c,d,e=function(b){this.viewportWidth=0,this.viewportHeight=0,this.options=a.extend({},e.DEFAULTS,b),this.attrib="src",this.update()};e.DEFAULTS={breakpoints:{0:"small",768:"medium",992:"large",1200:"bigger"}},e.prototype.viewportW=function(){var a=document.documentElement.clientWidth,b=window.innerWidth;return this.viewportWidth=b>a?b:a},e.prototype.viewportH=function(){var a=document.documentElement.clientHeight,b=window.innerHeight;return this.viewportHeight=b>a?b:a},e.prototype.inviewport=function(a){return!!a&&a.bottom>=0&&a.right>=0&&a.top<=this.viewportHeight&&a.left<=this.viewportWidth},e.prototype.update=function(){this.viewportH(),this.viewportW();var b=this.attrib,c=this.viewportWidth;a.each(this.options.breakpoints,function(a,d){c>=a&&(b=d)}),this.attrib=b},a.fn.viewportH=e.prototype.viewportH,a.fn.viewportW=e.prototype.viewportW;var f=function(b,c){this.$element=a(b),this.options=a.extend({},f.DEFAULTS,c),this.attrib="src",this.loaded=!1,this.checkviewport()};f.DEFAULTS={threshold:0,attrib:"src",skip_invisible:!1,preload:!1},f.prototype.checkviewport=function(){this.attrib!==d.attrib&&(this.attrib=d.attrib,this.loaded=!1),this.unveil()},f.prototype.boundingbox=function(){var a={},b=this.$element[0].getBoundingClientRect(),c=+this.options.threshold||0;return a.right=b.right+c,a.left=b.left-c,a.bottom=b.bottom+c,a.top=b.top-c,a},f.prototype.inviewport=function(){var a=this.boundingbox();return d.inviewport(a)},f.prototype.unveil=function(b){if(!(this.loaded||!b&&!this.options.preload&&this.options.skip_invisible&&this.$element.is(":hidden"))){var c=b||this.options.preload||this.inviewport();if(c){var d=this.options[this.attrib]||this.options.src;d&&(this.$element.attr("src",d),this.$element.css("opacity",1),a(window).trigger("loaded.bk2k.responsiveimage"),this.loaded=!0)}}},f.prototype.print=function(){this.unveil(!0)};var g=a.fn.responsiveimages;a.fn.responsiveimage=b,a.fn.responsiveimage.Constructor=f,a.fn.responsiveimage.noConflict=function(){return a.fn.responsiveimage=g,this},a(window).on("load.bk2k.responsiveimage",function(){a("img.lazyload").responsiveimage(),a(window).on("scroll.bk2k.responsiveimage",function(){c.responsiveimage("unveil")}).on("resize.bk2k.responsiveimage",function(){d&&d.update(),c.responsiveimage("checkviewport")}).on("beforeprint.bk2k.responsiveimage",function(){c.responsiveimage("print"),a(window).trigger("readytoprint.bk2k.responsiveimage")})})}(jQuery);