text: /** 
   * @preserve LaziestLoader - v0.5.1 - 2014-06-19
   * A responsive lazy loader for jQuery.
   * http://sjwilliams.github.io/laziestloader/
   * Copyright (c) 2014 Josh Williams; Licensed MIT
   */
  !function(factory){"function"==typeof define&&define.amd?define(["jquery"],factory):factory(jQuery)}(function($){var laziestLoader=function(options,callback){function getSource($el){var source,slug,data=$el.data();return data.pattern&&data.widths&&$.isArray(data.widths)?(source=retina?data.patternRetina:data.pattern,source=source||data.pattern,"object"==typeof data.widths[0]?(slug=function(){for(var widths=$.map(data.widths,function(val){return val.size}),bestFitWidth=bestFit($el.width(),widths),i=data.widths.length-1;i>=0;i--)if(data.widths[i].size===bestFitWidth)return data.widths[i].slug}(),source=source.replace(options.sizePattern,slug)):source=source.replace(options.sizePattern,bestFit($el.width(),data.widths))):(source=retina?data.srcRetina:data.src,source=source||data.src),source}function onLoad($el){$el.addClass("ll-loaded").removeClass("ll-notloaded"),$el.trigger("loaded"),"function"==typeof callback&&callback.call($el)}function bindLoader(){$elements.one("laziestloader",function(){var source,$el=$(this);$el.data().ratio&&setHeight.call(this),options.setSourceMode&&(source=options.getSource($el),source&&this.getAttribute("src")!==source&&this.setAttribute("src",source)),!options.setSourceMode||"IMG"!==this.nodeName&&"VIDEO"!==this.nodeName&&"AUDIO"!==this.nodeName?onLoad($el):"IMG"===this.nodeName?this.onload=function(){onLoad($el)}:this.onloadstart=function(){onLoad($el)}})}function unbindLoader(){$elements.off("laziestloader")}function laziestloader(){var $inview=$elements.not($loaded).filter(function(){var $el=$(this),threshold=options.threshold;if(!$el.is(":hidden")){var wt=$w.scrollTop(),wb=wt+$w.height(),et=$el.offset().top,eb=et+$el.height();return eb>=wt-threshold&&wb+threshold>=et}});$inview.trigger("laziestloader"),$loaded.add($inview)}function setHeight(){var $el=$(this),data=$el.data();data.ratio=data.ratio||data.heightMultiplier,data.ratio&&$el.css({height:Math.round($el.width()*data.ratio)})}var $w=$(window),$elements=this,$loaded=$(),retina=window.devicePixelRatio>1,didScroll=!1;options=$.extend(!0,{threshold:0,sizePattern:/{{SIZE}}/gi,getSource:getSource,scrollThrottle:250,sizeOffsetPercent:0,setSourceMode:!0},options);var bestFit=laziestLoader.bestFit=function(targetWidth,widths){var selectedWidth=widths[widths.length-1],i=widths.length,offset=targetWidth*(options.sizeOffsetPercent/100);for(widths.sort(function(a,b){return a-b});i--;)targetWidth-offset<=widths[i]&&(selectedWidth=widths[i]);return selectedWidth};return $elements.addClass("ll-init ll-notloaded").each(setHeight),bindLoader(),$w.scroll(function(){didScroll=!0}),setInterval(function(){didScroll&&(didScroll=!1,laziestloader())},options.scrollThrottle),$w.resize(function(){$loaded=$(),unbindLoader(),bindLoader(),laziestloader()}),laziestloader(),this};$.fn.laziestloader=laziestLoader});