PageSourceSearch

https://sebastiaandovis.com/wp-content/plugins/bwp-minify/min/?f=w…/js/justified-image-grid.min.js

js sebastiaandovis.com collected 2026-10-02 22:29:48 UTC 59,882 bytes, 122 lines download raw bytes

1/*
2* Justified Image Grid - Aligns your images into a Flickr / Google+ style thumbnail-grid gallery
3* v3.3
4*
5* Copyright (c) 2012-2016 Firsh, http://www.justifiedgrid.com/
6*/
7function loadJustifiedImageGrid(c){c.justifiedImageGrid=function(n,x){function q(a,d){return"hasOwnProperty"in a?a.hasOwnProperty(d):Object.prototype.hasOwnProperty.call(a,d)}function m(b,d){b=v(b);if("below"==a.caption)return b;d=(((d||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join("");return b.replace(/\x3c!--[\s\S]*?--\x3e|<\?(?:php)?[\s\S]*?\?>/gi,"").replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,function(a,b){return-1<d.indexOf("<"+b.toLowerCase()+">")?a:""})}function v(a,d){if(void 0===
8a)return"";var b=0,c=!1;"undefined"===typeof d&&(d=2);a=a.toString().replace(/&lt;/g,"<").replace(/&gt;/g,">");var e={ENT_NOQUOTES:0,ENT_HTML_QUOTE_SINGLE:1,ENT_HTML_QUOTE_DOUBLE:2,ENT_COMPAT:2,ENT_QUOTES:3,ENT_IGNORE:4};0===d&&(c=!0);if("number"!==typeof d){d=[].concat(d);for(var k=0,l=d.length;k<l;k+=1)0===e[d[k]]?c=!0:e[d[k]]&&(b|=e[d[k]]);d=b}d&e.ENT_HTML_QUOTE_SINGLE&&(a=a.replace(/&#0*39;/g,"'"));c||(a=a.replace(/&quot;/g,'"'));return a=a.replace(/&amp;/g,"&")}function y(b){"undefined"!==typeof b&&
9b.stopPropagation();b=a.element.find(".jig-overflow > a.jig-loaded").length;var d=a.element.find(".jig-imageContainer .jig-overflow > a").length;"no"==a.errorChecking&&(d-=5);"undefined"!==typeof a.loadCheckTimeout&&clearTimeout(a.loadCheckTimeout);b<d?(a.loadCheckTimeout=setTimeout(function(){y()},500),a.loadMoreButton.animate({opacity:.5},300,"JIGswing")):(a.loadMoreButton.animate({opacity:1},300,"JIGswing"),a.limit+=a.originalLimit,a.loadMoreCounter++,"once"==a.loadMore&&(a.limit=a.allItems.length),
10t.createGallery())}var g={targetHeight:190,heightDeviation:40,aspectRatio:"",disableCropping:"",randomizeWidth:"",margins:4,animSpeed:300,limit:0,initiallyLoad:"",maxRows:"",linkClass:"",linkRel:"jig[*instance*]",linkAttributeName:"",linkAttributeValue:"",linkAttribute:"",linkTitleField:"description",imgAltField:"title",wrapText:"no",readingDirection:"ltr",loadMore:"off",loadMoreText:"Load more",loadMoreCountText:"(*count* images remaining)",loadMoreOffset:100,loadMoreAutoWidth:"on",disableHover:"no",
11downloadLink:"no",lightboxLink:"no",verticalCenterCaptions:"off",customFonts:"yes",captionHeight:54,quality:90,retinaReady:"yes",retinaQuality:"auto",minRetinaQuality:30,maxRetinaDensity:3,caption:"fade",captionMatchWidth:"no",captionMatchWidthForceNo:!1,titleField:"title",captionField:"description",lightbox:"prettyphoto",lightboxInit:"jigAddLightbox1",overlay:"hovered",overlayIcon:"off",bordersTotal:0,innerBorder:"always",innerBorderWidth:0,innerBorderAnimate:"width",middleBorder:"always",middleBorderWidth:0,
12middleBorderColor:"white",outerBorder:"always",outerBorderColor:"black",specialFx:"off",specialFxType:"desaturate",specialFxOptions:"",specialFxBlend:1,incompleteLastRow:"normal",errorChecking:"yes",retryCount:0,resizeCount:0,errorChecked:!1,errorImages:[],filters:!1,filterMultiple:"no",filterStyle:"buttons",L2filters:!1,L2FilterMultiple:"no",L2FilterStyle:"buttons",filterSmallestColor:"#A3A3A3",filterSmallestSize:11,filterLargestColor:"#000000",filterLargestSize:22,separatorCharacter:" - ",thumbnailFilename:"normal",
13cropZone:"",instance:1,element:c(n),lastWindowWidth:c(window).width()},t=this,a=c.extend({},g,x),J="opacity"in c.support&&!c.support.opacity,K="",M=!!window.chrome&&!/opera|opr/i.test(navigator.userAgent);this.s=a;try{K=0<window.navigator.userAgent.indexOf("MSIE ")||!!navigator.userAgent.match(/Trident.*rv\:11\./),"Netscape"==navigator.appName&&-1===navigator.appVersion.indexOf("Trident")&&-1!==navigator.appVersion.indexOf("Edge")&&(K=!0)}catch(b){K=!1}thisIsTouch=!1;"ontouchstart"in document.documentElement&&
14(thisIsTouch=!0);t.init=function(){a.originalTargetHeight=a.targetHeight;a.minHeight=a.originalMinHeight=a.targetHeight-a.heightDeviation;a.maxHeight=a.originalMaxHeight=a.targetHeight+a.heightDeviation;a.prevScreenHeightLimitRatio=-1;a.defaultHeightRatio=a.originalDefaultHeightRatio=a.targetHeight/a.maxHeight;a.originalLimit=a.limit;a.hiddenOpacity=J?.01:0;K&&a.element.addClass("jig-ua-ie");J&&a.element.addClass("jig-ua-old-ie");!1===thisIsTouch?a.element.addClass("jig-no-touch"):a.element.addClass("jig-touch");
15if("no"!==a.lightbox&&"links-off"!==a.lightbox&&"new_tab"!==a.lightbox)if(a.hiddenLinkClass=""!==a.linkClass?'class="jig-link jig-hiddenLink '+a.linkClass+'" ':'class="jig-link jig-hiddenLink" ',a.linkClass=""!==a.linkClass?'class="jig-link '+a.linkClass+'" ':'class="jig-link" ',-1!==a.linkRel.indexOf("[*instance*]"))a.linkRel='rel="'+a.linkRel.replace("*instance*",a.instance)+'" ';else if(-1!==a.linkRel.indexOf("auto"))switch(a.lightbox){case "prettyphoto":a.linkRel='rel="'+a.linkRel.replace("auto",
16"prettyPhoto["+a.instance+"]")+'" ';break;case "colorbox":a.linkRel='rel="'+a.linkRel.replace("auto","colorBox["+a.instance+"]")+'" ';break;default:a.linkRel='rel="'+a.linkRel.replace("auto","gallery["+a.instance+"]")+'" '}else a.linkRel='rel="'+a.linkRel+'" ';else a.linkClass="",a.hiddenLinkClass="",a.linkRel="";""!==a.linkAttributeName&&(a.linkAttribute=""!==a.linkAttributeValue?" "+a.linkAttributeName+'="'+a.linkAttributeValue+'"':" "+a.linkAttributeName+'=""');a.allItems=a.selectedItems=a.items.slice();
17a.aspectRatio&&(a.maxWidth=Math.floor(a.maxHeight*parseFloat(a.aspectRatio)),"normal"==a.incompleteLastRow&&(a.incompleteLastRow="match","off"!==a.loadMore&&(a.incompleteLastRow="flexible-match")));"yes"==a.retinaReady&&("undefined"===typeof window.devicePixelRatio||1==window.devicePixelRatio?(a.retinaReady="no",a.devicePixelRatio=1):a.devicePixelRatio=window.devicePixelRatio>a.maxRetinaDensity?a.maxRetinaDensity:window.devicePixelRatio);"yes"==a.retinaReady&&("auto"==a.retinaQuality?(a.quality=Math.ceil(a.quality/
18a.devicePixelRatio),a.quality=a.quality>a.minRetinaQuality?a.quality:a.minRetinaQuality):a.quality=a.retinaQuality);"yes"==a.disableCropping&&(a.minHeight=a.originalMinHeight=50);"captions"==a.specialFx&&"below"==a.caption&&(a.specialFx="off");if("yes"==a.customFonts&&"off"!==a.caption&&("below"==a.caption||"off"!==a.verticalCenterCaptions||"captions"==a.specialFx)){var b=c("body").find(".jig-fontCheck");if(0===b.length){c("body").append('<div class="jig-fontCheck">!"\'\\#$%&amp;()*+,-./0123456789:;&lt;=&gt;?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_abcdefghijklmnopqrstuvwxyz{|}~ A quick brown fox jumps over the lazy dog.</div>');
19var b=c("body").find(".jig-fontCheck"),d=b.width(),h=0,f=setInterval(function(){h++;var a=b.width();d==a||0===a?50<h&&(b.remove(),clearInterval(f)):(c("body").trigger("jig-fontLoaded"),b.remove(),clearInterval(f))},100)}}var e=function(){return!1},k=e,l=e,u=e,g=e,B=e,p=e,n=e,m=e,v=e,z=e,A=e,M=e,w=function(b,d,h,f){if("captions"!==a.specialFx||".jig-caption-wrapper .jig-caption"!==d)b.find(d).JIGhoverFlow(h,{opacity:f},a.animSpeed);else{b=b.find(d);var L=N(b,!0);b.JIGhoverFlow(h,{opacity:f},{duration:a.animSpeed,
20progress:function(){0!==c(this).closest(".jig-cw-role-real").length&&O(L)}})}},x=function(b,d,h,f){if("captions"!==a.specialFx)b.find(d).JIGhoverFlow(h,{height:f},a.animSpeed,"JIGeaseInOutQuad");else{b=b.find(d);var L=N(b);b.JIGhoverFlow(h,{height:f},{duration:a.animSpeed,easing:"JIGeaseInOutQuad",progress:function(){0!==c(this).closest(".jig-cw-role-real").length&&O(L)}})}},F=function(b,d,h,f){if("captions"!==a.specialFx)b.find(d).JIGhoverFlow(h,{height:f},{duration:a.animSpeed,easing:"JIGeaseInOutQuad",
21progress:function(){var a=b.find(".jig-caption-wrapper"),d=b.parent();a.css("top",Math.round(d.height()/2-a.height()/2))}});else{var L=b.find(d),e=N(L),k=L.closest(".jig-caption");b.find(d).JIGhoverFlow(h,{height:f},{duration:a.animSpeed,easing:"JIGeaseInOutQuad",progress:function(){var a=b.find(".jig-caption-wrapper"),d=b.parent();a.css("top",Math.round(d.height()/2-k.height()/2));0!==c(this).closest(".jig-cw-role-real").length&&O(e)},complete:function(){"slide"!=a.caption&&"reverse-slide"!=a.caption||
22"hide"!=f||b.find(".jig-cw-role-effect").height(.01)}})}},G=function(b,d,h,c){b.find(d).JIGhoverFlow(h,{opacity:c},a.animSpeed)},E=function(b,d,h,c){b.find(d).JIGhoverFlow(h,{borderLeftWidth:c,borderTopWidth:c,borderRightWidth:c,borderBottomWidth:c},a.animSpeed)};switch(a.overlay){case "hovered":"on"===a.overlayIcon?(k=function(a){w(a,"div.jig-overlay-wrapper, div.jig-overlay-icon-wrapper","mouseenter","show")},l=function(a){w(a,"div.jig-overlay-wrapper, div.jig-overlay-icon-wrapper","mouseleave",
23"hide")}):(k=function(a){w(a,"div.jig-overlay-wrapper","mouseenter","show")},l=function(a){w(a,"div.jig-overlay-wrapper","mouseleave","hide")});break;case "others":"on"===a.overlayIcon?(k=function(a){w(a,"div.jig-overlay-wrapper, div.jig-overlay-icon-wrapper","mouseenter","hide")},l=function(a){w(a,"div.jig-overlay-wrapper, div.jig-overlay-icon-wrapper","mouseleave","show")}):(k=function(a){w(a,"div.jig-overlay-wrapper","mouseenter","hide")},l=function(a){w(a,"div.jig-overlay-wrapper","mouseleave",
24"show")})}switch(a.innerBorder){case "hovered":switch(a.innerBorderAnimate){case "width":n=function(b){E(b,"div.jig-border","mouseenter",a.innerBorderWidth+"px")};m=function(a){E(a,"div.jig-border","mouseleave",0)};break;case "opacity":n=function(a){w(a,"div.jig-border","mouseenter","show")};m=function(a){w(a,"div.jig-border","mouseleave","hide")};break;case "off":n=function(a){c(a).find("div.jig-border").show()},m=function(a){c(a).find("div.jig-border").hide()}}break;case "others":switch(a.innerBorderAnimate){case "width":n=
25function(a){E(a,"div.jig-border","mouseenter",0)};m=function(b){E(b,"div.jig-border","mouseleave",a.innerBorderWidth+"px")};break;case "opacity":n=function(a){w(a,"div.jig-border","mouseenter","hide")};m=function(a){w(a,"div.jig-border","mouseleave","show")};break;case "off":n=function(a){c(a).find("div.jig-border").hide()},m=function(a){c(a).find("div.jig-border").show()}}}switch(a.middleBorder){case "hovered":v=function(b){c(b).parent().parent("div.jig-imageContainer").css("background",a.middleBorderColor)};
26z=function(a){c(a).parent().parent("div.jig-imageContainer").css("background","transparent")};break;case "others":v=function(a){c(a).parent().parent("div.jig-imageContainer").css("background","transparent")},z=function(b){c(b).parent().parent("div.jig-imageContainer").css("background",a.middleBorderColor)}}switch(a.outerBorder){case "hovered":A=function(b){c(b).parent().parent("div.jig-imageContainer").css("border-color",a.outerBorderColor)};M=function(a){c(a).parent().parent("div.jig-imageContainer").css("border-color",
27"transparent")};break;case "others":A=function(a){c(a).parent().parent("div.jig-imageContainer").css("border-color","transparent")},M=function(b){c(b).parent().parent("div.jig-imageContainer").css("border-color",a.outerBorderColor)}}if(J)switch(a.specialFx){case "others":u=function(a){G(a,".jig-pixastic","mouseleave",.01)};g=function(b){G(b,".jig-pixastic","mouseleave",a.specialFxBlend)};break;case "hovered":u=function(b){G(b,".jig-pixastic","mouseenter",a.specialFxBlend)},g=function(a){G(a,".jig-pixastic",
28"mouseleave",.01)}}else switch(a.specialFx){case "others":u=function(a){G(a,".jig-pixastic","mouseenter",.01)};g=function(b){G(b,".jig-pixastic","mouseleave",a.specialFxBlend)};break;case "hovered":u=function(b){G(b,".jig-pixastic","mouseenter",a.specialFxBlend)},g=function(a){G(a,".jig-pixastic","mouseleave",.01)}}switch(a.caption){case "fade":B=function(a){w(a,".jig-caption-wrapper .jig-caption","mouseenter","show")};p=function(a){w(a,".jig-caption-wrapper .jig-caption","mouseleave","hide")};break;
29case "reverse-fade":B=function(a){w(a,".jig-caption-wrapper .jig-caption","mouseenter","hide")};p=function(a){w(a,".jig-caption-wrapper .jig-caption","mouseleave","show")};break;case "slide":J?(B=function(a){w(a,".jig-caption-wrapper .jig-caption","mouseenter","show")},p=function(a){w(a,".jig-caption-wrapper .jig-caption","mouseleave","hide")}):"off"==a.verticalCenterCaptions||"simple"==a.verticalCenterCaptions?(B=function(a){x(a,".jig-caption-wrapper .jig-caption","mouseenter","show")},p=function(a){x(a,
30".jig-caption-wrapper .jig-caption","mouseleave","hide")}):(B=function(a){F(a,".jig-caption-wrapper .jig-caption","mouseenter","show")},p=function(a){F(a,".jig-caption-wrapper .jig-caption","mouseleave","hide")});break;case "reverse-slide":J?(B=function(a){w(a,".jig-caption-wrapper .jig-caption","mouseenter","hide")},p=function(a){w(a,".jig-caption-wrapper .jig-caption","mouseleave","show")}):"off"==a.verticalCenterCaptions||"simple"==a.verticalCenterCaptions?(B=function(a){x(a,".jig-caption-wrapper .jig-caption",
31"mouseenter","hide")},p=function(a){x(a,".jig-caption-wrapper .jig-caption","mouseleave","show")}):(B=function(a){F(a,".jig-caption-wrapper .jig-caption","mouseenter","hide")},p=function(a){F(a,".jig-caption-wrapper .jig-caption","mouseleave","show")});break;case "mixed":"off"==a.verticalCenterCaptions||"simple"==a.verticalCenterCaptions?(B=function(a){x(a,".jig-caption-wrapper .jig-caption-description-wrapper","mouseenter","show")},p=function(a){x(a,".jig-caption-wrapper .jig-caption-description-wrapper",
32"mouseleave","hide")}):(B=function(a){F(a,".jig-caption-wrapper .jig-caption-description-wrapper","mouseenter","show")},p=function(a){F(a,".jig-caption-wrapper .jig-caption-description-wrapper","mouseleave","hide")});break;case "reverse-mixed":"off"==a.verticalCenterCaptions||"simple"==a.verticalCenterCaptions?(B=function(a){x(a,".jig-caption-wrapper .jig-caption-description-wrapper","mouseenter","hide")},p=function(a){x(a,".jig-caption-wrapper .jig-caption-description-wrapper","mouseleave","show")}):
33(B=function(a){F(a,".jig-caption-wrapper .jig-caption-description-wrapper","mouseenter","hide")},p=function(a){F(a,".jig-caption-wrapper .jig-caption-description-wrapper","mouseleave","show")})}"yes"!==a.disableHover&&(a.element.on("mouseenter mouseleave","a",function(a){var b=c(this);"none"!==b.css("display")&&(a.stopImmediatePropagation(),"mouseenter"
33===a.type?(k(b),u(b),B(b),n(b),v(b),A(b),b.data("title",b.attr("title")),b.removeAttr("title")):(l(b),g(b),p(b),m(b),z(b),M(b),b.attr("title",b.data("title"))))}),
34a.element.on("mousedown","a",function(a){c(this).attr("title",c(this).data("title"))}));c("body").one("jig-fontLoaded",R);if("off"!==a.loadMore){a.loadMoreCounter=0;if("carousel"==a.lightbox)a.element.on("click",function(a){c(a.target).hasClass("justified-image-grid")&&(a.stopPropagation(),a.preventDefault())});a.element.on("click",".jig-loadMoreButton",y)}"prettyphoto"==a.lightbox&&"undefined"!==typeof jigOtherPrettyPhotoIsPresent&&c(document).ready(function(){setTimeout(function(){window[a.lightboxInit]()},
3510)});if(a.filters||a.L2filters){a.filteredImages=[];if(a.filters){a.filterMultiple=a.filterMultiple||"no";a.filterStyle=a.filterStyle||"buttons";var r;"buttons"==a.filterStyle?(a.filterType="Button",e="div"):(a.filterType="Tag",e="span");var C='<div id="jig'+a.instance+"-filter"+a.filterType+'s" class="jig-filter'+a.filterType+"s "+("no"!==a.filterMultiple?"jig-filterMultiple ":"jig-filterSingle ")+(thisIsTouch?"jig-touch ":"jig-no-touch ")+(K?"jig-ua-ie":"")+'jig-clearfix" data-filter-level="1">';
36for(r in a.filters)q(a.filters,r)&&(a.filteredImages[r]=[],C+="<"+e+' class="jig-filter'+a.filterType+'" data-filter-slug="'+r+'">'+a.filters[r]+"</"+e+">");a.element.before(C+"</div>");"undefined"!==typeof a.filteredImages["all-items-nofilter"]&&(a.filteredImages["all-items-nofilter"]=a.selectedItems.slice());e=0;for(C=a.selectedItems.length;e<C;e+=1)if(a.selectedItems[e].filters)for(var H=0,P=a.selectedItems[e].filters.length;H<P;H+=1)"undefined"!==typeof a.filteredImages[a.selectedItems[e].filters[H][0]]&&
37"function"==typeof a.filteredImages[a.selectedItems[e].filters[H][0]].push&&a.filteredImages[a.selectedItems[e].filters[H][0]].push(a.selectedItems[e]);e=c("#jig"+a.instance+"-filter"+a.filterType+"s .jig-filter"+a.filterType+'[data-filter-slug="all-items-nofilter"]');0<e.length&&c("#jig"+a.instance+"-filter"+a.filterType+"s .jig-filter"+a.filterType).first().attr("data-filter-slug")!==e.attr("data-filter-slug")&&e.parent().prepend(e);if("tags"==a.filterStyle){for(r in a.filters)q(a.filters,r)&&c("#jig"+
38a.instance+"-filter"+a.filterType+'s .jig-filterTag[data-filter-slug="'+r+'"]').attr("rel",a.filteredImages[r].length);c.fn.tagcloud.defaults={size:{start:a.filterSmallestSize,end:a.filterLargestSize,unit:"px"},color:{start:a.filterSmallestColor,end:a.filterLargestColor}};0<e.length?(e.css({"font-size":a.filterLargestSize,color:a.filterLargestColor}),c("#jig"+a.instance+"-filter"+a.filterType+"s .jig-filter"+a.filterType+":gt(0)").tagcloud()):c("#jig"+a.instance+"-filter"+a.filterType+"s .jig-filter"+
39a.filterType).tagcloud()}c("#jig"+a.instance+"-filter"+a.filterType+"s").on("click",".jig-filter"+a.filterType,Q)}if(a.L2filters){a.L2filterMultiple=a.L2filterMultiple||"no";a.L2filterStyle=a.L2filterStyle||"buttons";var D;"buttons"==a.L2filterStyle?(a.L2filterType="Button",r="div"):(a.L2filterType="Tag",r="span");a.L2filteredImages=[];e='<div id="jig'+a.instance+"-L2filter"+a.L2filterType+'s" class="jig-filter'+a.L2filterType+"s "+("no"!==a.L2filterMultiple?"jig-filterMultiple ":"jig-filterSingle ")+
40(thisIsTouch?"jig-touch ":"jig-no-touch ")+(K?"jig-ua-ie":"")+'jig-clearfix" data-filter-level="2">';for(D in a.L2filters)q(a.L2filters,D)&&(a.L2filteredImages[D]=[],e+="<"+r+' class="jig-filter'+a.L2filterType+'" data-filter-slug="'+D+'">'+a.L2filters[D]+"</"+r+">");a.element.before(e+"</div>");"undefined"!==typeof a.L2filteredImages["all-items-nofilter"]&&(a.L2filteredImages["all-items-nofilter"]=a.selectedItems.slice());r=0;for(e=a.selectedItems.length;r<e;r+=1)if(a.selectedItems[r].L2filters)for(C=
410,H=a.selectedItems[r].L2filters.length;C<H;C+=1)"undefined"!==typeof a.L2filteredImages[a.selectedItems[r].L2filters[C][0]]&&a.L2filteredImages[a.selectedItems[r].L2filters[C][0]].push(a.selectedItems[r]);r=c("#jig"+a.instance+"-L2filter"+a.L2filterType+"s .jig-filter"+a.L2filterType+'[data-filter-slug="all-items-nofilter"]');0<r.length&&c("#jig"+a.instance+"-L2filter"+a.L2filterType+"s .jig-filter"+a.L2filterType).first().attr("data-filter-slug")!==r.attr("data-filter-slug")&&r.parent().prepend(r);
42if("tags"==a.L2filterStyle){for(D in a.L2filters)q(a.L2filters,D)&&c("#jig"+a.instance+"-L2filter"+a.L2filterType+'s .jig-filterTag[data-filter-slug="'+D+'"]').attr("rel",a.L2filteredImages[D].length);c.fn.tagcloud.defaults={size:{start:a.filterSmallestSize,end:a.filterLargestSize,unit:"px"},color:{start:a.filterSmallestColor,end:a.filterLargestColor}};0<r.length?(r.css({"font-size":a.filterLargestSize,color:a.filterLargestColor}),c("#jig"+a.instance+"-L2filter"+a.L2filterType+"s .jig-filter"+a.L2filterType+
43":gt(0)").tagcloud()):c("#jig"+a.instance+"-L2filter"+a.L2filterType+"s .jig-filter"+a.L2filterType).tagcloud()}c("#jig"+a.instance+"-L2filter"+a.L2filterType+"s").on("click",".jig-filter"+a.L2filterType,Q)}Q()}else t.createGallery();var I;c(window).resize(function(){"undefined"!==typeof I&&clearTimeout(I);I=setTimeout(function(){t.createGallery("resize")},100)})};t.createGallery=function(b){if(!1===c.JIGjQueryMinVersion("1.7"))return JIGjQueryMinVersion("1.7",!0),!1;var d=Math.round(a.element.width()),
44h=c(window).width(),f;void 0===a.fixedWidth?(a.element.css("width","").css("width",Math.round(a.element.width())),0===a.element.width()?void 0===a.fallbackWidth?0!==d&&h==a.lastWindowWidth?a.element.css("width",d+"px"):(f=0,a.element.parents().each(function(b,d){var e=c(d),k=c(d).parent(),l=e.width();if(e.is(":visible")&&0!==l)return a.element.css("width",l-f+"px"),"undefined"==typeof k.data("jigAddedTabsHandler")&&(k.on("click",function(a){h!==c(window).width()&&k.find(".justified-image-grid").each(function(){var a=
45c(this);a.is(":visible")&&a.data("justifiedImageGrid").createGallery("resize")})}),k.data("jigAddedTabsHandler",!0)),!1;f+=e.outerWidth(!0)-e.width()})):a.element.css("width",a.fallbackWidth+"px"):1E4<a.element.width()&&(a.element.css("width",h),c(window).on("load",function(){t.createGallery("resize")}))):a.element.css("width","").css("width",a.fixedWidth);d=Math.round(a.element.width());if(9>d)10<a.retryCount?a.element.find(".jig-clearfix").html("The element is invisible or too thin, upon page loading. In case of using tabs, try a Custom width in the General settings and you may also use a fixed width. (Justified Image Grid)"):
46a.retryBuilding=setTimeout(function(){a.retryCount++;t.createGallery()},100);else{a.retryBuilding&&clearTimeout(a.retryBuilding);a.element.find(".jig-clearfix").empty();a.justResized=!1;if("resize"===b){if(a.areaWidth&&a.areaWidth==d)return;a.justResized=!0}a.element.find(".jig-overflow a *:not(div)").off();a.areaWidth=d;a.row=[];a.fullWidth=a.extra=0;a.rows=[];a.unshifts=[];a.screenHeight=c(window).height();a.screenHeightLimitRatio=Math.min(a.screenHeight/a.originalMaxHeight,1);if(a.prevScreenHeightLimitRatio!==
47a.screenHeightLimitRatio){1>a.screenHeightLimitRatio?(a.maxHeight=a.screenHeight,a.targetHeight=Math.round(a.maxHeight-a.heightDeviation*a.screenHeightLimitRatio),a.minHeight=50!=a.minHeight?Math.round(a.targetHeight-a.heightDeviation*a.screenHeightLimitRatio):50,a.defaultHeightRatio=a.targetHeight/a.maxHeight):(a.maxHeight=a.originalMaxHeight,a.targetHeight=a.originalTargetHeight,a.minHeight=a.originalMinHeight,a.defaultHeightRatio=a.originalDefaultHeightRatio);if(-1!=a.prevScreenHeightLimitRatio||
481!=a.screenHeightLimitRatio)for(var e in a.selectedItems)q(a.selectedItems,e)&&("undefined"===typeof a.selectedItems[e].originalWidth&&(a.selectedItems[e].originalWidth=a.selectedItems[e].width),a.selectedItems[e].width=Math.round(a.selectedItems[e].originalWidth*a.screenHeightLimitRatio));a.prevScreenHeightLimitRatio=a.screenHeightLimitRatio}a.items=a.selectedItems.slice();if(!0===a.errorChecked&&!1===a.justResized){for(var k in a.items)if(q(a.items,k)&&-1!=c.inArray(void 0===a.items[k].photon?void 0===
49a.items[k].thumbUrl?a.items[k].url:a.items[k].thumbUrl:a.items[k].photon,a.errorImages)&&(e=a.items[k],a.items.splice(k,1),a.filters)){d=c("#jig"+a.instance+"-filterButtons .jig-filterButtonSelected").attr("data-filter-slug");a.filteredImages[d]=a.items.slice();for(var d=1,l=a.filters.length;d<l;d+=1)for(var u=0,g=a.filteredImages[a.filters[d][0]].length;u<g;u+=1){var n=c.inArray(e,a.filteredImages[a.filters[d][0]]);-1!=n&&a.filteredImages[a.filters[d][0]].splice(n,1)}}a.selectedItems=a.items.slice();
50a.errorImages=[];if(0===a.selectedItems.length){a.timThumbError='<a href="http://justifiedgrid.com/support/fix/all-of-the-images-have-failed-to-load/" target="_blank" rel="external nofollow" style="border-style:none; text-decoration: none; font-weight: bold;"><div style="background-color: #212121; color: white; padding: 10px; display: inline-block;">JIG</div><div style="background-color: #b71c1c; color:white; color: rgba(255, 255, 255, 0.87); padding: 10px; display: inline-block;">All of the images have failed to load. Please click here to reach the troubleshooting fix.</div></a>';
51a.element.html(a.timThumbError);return}a.errorChecked=!1}
51if(""===a.maxRows||0===a.maxRows)a.maxRows=1E3;a.rowcount=0;a.imagesShown=0;""!==a.initiallyLoad&&"off"!==a.loadMore&&0===a.loadMoreCounter&&(a.limit=parseInt(a.initiallyLoad,10));for(a.whileUntil=0===a.limit?0:a.limit<a.selectedItems.length?a.items.length-a.limit:0;a.items.length>a.whileUntil&&a.rowcount<a.maxRows;)k=Y(),!1!==k&&(a.rows.push(k),a.rowcount++);a.imagesShown+=a.selectedItems.length-a.items.length;a.element.find(".jig-imageContainer:gt("+
52(a.imagesShown-1)+")").remove();a.imagesAlreadyAdded=a.element.find(".jig-imageContainer").length;d=k=0;for(l=a.rows.length;d<l;d+=1)for(u=0,g=a.rows[d].length;u<g;u+=1)k++,e=a.rows[d][u],e.container&&k<=a.imagesAlreadyAdded?Z(e,a.rows[d].length,u):aa(e,a.rows[d].length,u);if("links-off"!==a.lightbox&&"no"!==a.lightbox&&"new_tab"!==a.lightbox&&""!==a.linkrel){for(;0<a.unshifts.length;)e=a.unshifts.shift(),void 0===e.linkContainer?S(e):a.currentHiddenLink=e.linkContainer;for(;0<a.items.length;)e=a.items.shift(),
53void 0===e.linkContainer?S(e):a.currentHiddenLink=e.linkContainer;a.currentHiddenLink=void 0}void 0===a.fixedWidth&&(a.element.css("width","").css("width",Math.round(a.element.width())),0===a.element.width()&&a.element.css("width",a.areaWidth+"px"));c("img",a.element).not(".jig-hiddenImg").on("load",function(){if(this.complete||void 0!==this.naturalWidth&&0!==this.naturalWidth||void 0!==this.readyState&&("complete"===this.readyState||4===this.readyState)||J){var b=c(this).closest("a"),d=c(this).closest(".jig-overflow");
540!==b.length&&!0!==b.hasClass("jig-loaded")&&(b.addClass("jig-loaded"),"0"===d.css("opacity")&&d.css("opacity",1),"off"!=a.specialFx&&c(this).clone().addClass("jig-pixastic").insertAfter(c(this)).on("load",T).each(function(){(this.complete||void 0!==this.naturalWidth&&0!==this.naturalWidth||void 0!==this.readyState&&("complete"===this.readyState||4===this.readyState))&&c(this).trigger("load")}));c(this).off("load")}else"yes"==a.errorChecking&&(b=/(?:\?src=)(.*)(?:&h=)|^(https?:\/\/.+?wp\.com.*)$/g.exec(c(this).attr("src")),
55null!==b?void 0!==b[1]?a.errorImages.push(b[1]):void 0!==b[2]&&a.errorImages.push(b[2]):a.errorImages.push(c(this).attr("src")),c(this).closest(".jig-imageContainer").addClass("jig-unloadable"),U())}).on("error",function(){if("yes"==a.errorChecking){var b=/(?:\?src=)(.*)(?:&h=)|^(https?:\/\/.+?wp\.com.*)$/g.exec(c(this).attr("src"));null!==b?void 0!==b[1]?a.errorImages.push(b[1]):void 0!==b[2]&&a.errorImages.push(b[2]):a.errorImages.push(c(this).attr("src"));c(this).closest(".jig-imageContainer").addClass("jig-unloadable");
56U()}}).each(function(){(this.complete||void 0!==this.naturalWidth&&0!==this.naturalWidth||void 0!==this.readyState&&("complete"===this.readyState||4===this.readyState))&&c(this).trigger("load")});"resize"!==b?V():"prettyphoto"==a.lightbox&&"undefined"!==typeof jigReCallPrettyPhotoAfterPossibleResize?setTimeout(function(){window[a.lightboxInit]();jigReCallPrettyPhotoAfterPossibleResize=void 0},10):a.visibleImageCount!=c(".jig-imageContainer",a.element).length&&V();if("click"==a.loadMore||"scroll"==
57a.loadMore||"hybrid"==a.loadMore||"once"==a.loadMore)a.loadMoreButton=a.element.find(".jig-loadMoreButton"),b=a.selectedItems.length-a.limit,k=a.element.find(".jig-hiddenLink").length,1==a.loadMoreButton.length?0<b?(a.loadMoreButton.find(".jig-loadMoreButton-count").text(0!==k?k:b),"yes"===a.loadMoreAutoWidth&&a.loadMoreButton.css("width",a.loadMoreButton.find(".jig-loadMoreButton-inner").width())):a.loadMoreButton.remove():0<b&&(e="",a.loadMoreCountText&&"none"!==a.loadMoreCountText&&(e=a.loadMoreCountText,
58e=e.replace("*count*",'<span class="jig-loadMoreButton-count">'+(0!==k?k:b)+"</span>")),a.loadMoreButton=c('<div class="jig-loadMoreButton"><span class="jig-loadMoreButton-inner">'+a.loadMoreText+(""!==e?"<br />"+e:"")+"</span></div>"),a.element.find(".jig-clearfix").after(a.loadMoreButton),"yes"===a.loadMoreAutoWidth&&a.loadMoreButton.css("width",a.loadMoreButton.find(".jig-loadMoreButton-inner").width())),"scroll"!=a.loadMore&&"hybrid"!=a.loadMore||c(window).scroll(function(){if(("scroll"==a.loadMore||
59"hybrid"==a.loadMore&&0<a.loadMoreCounter)&&0<a.selectedItems.length-a.limit){var b=a.element.find(".jig-loadMoreButton").offset();c(window).scrollTop()>
59=b.top-parseInt(a.loadMoreOffset,10)-c(window).height()&&y()}});if("no"!==a.wrapText){b=a.element.find(".jig-imageContainer:last");0===a.element.find(".jig-flowSpacer").length&&a.element.find(".jig-imageContainer:last").after('<div class="jig-flowSpacer"></div>').next().css({width:"1px",height:b.height()+3,"float":"ltr"==a.readingDirection?"left":
60"right"});var p=a.element.find(".jig-flowSpacer");setTimeout(function(){"ltr"==a.readingDirection?a.element.offset().left==p.offset().left?p.css("margin-right",0):p.css("margin-right",2*a.margins):a.element.offset().left==p.offset().left?p.css("margin-left",0):p.css("margin-left",2*a.margins)},1)}"yes"!=a.customFonts||"off"===a.caption||"below"!=a.caption&&"off"===a.verticalCenterCaptions&&"captions"!=a.specialFx||R(!0);a.prevInstanceID="#jig"+(a.instance-1);c(window).width()!=h||a.areaWidth!=Math.round(a.element.width())?
61(a.resizeCount++,1<a.resizeCount&&a.element.css("min-height",a.element.height()),t.createGallery("resize"),1<a.instance&&0!==c(a.prevInstanceID).length&&c(a.prevInstanceID).data("justifiedImageGrid").createGallery("resize"),a.element.css("min-height","")):(1<a.instance&&0!==c(a.prevInstanceID).length&&(a.prevInstanceData=c(a.prevInstanceID).data("justifiedImageGrid"),a.prevInstanceData.s.element.css("width","").css("width",a.prevInstanceData.s.element.width()),a.prevInstanceData.s.areaWidth!=a.prevInstanceData.s.element.width()&&
62a.prevInstanceData.createGallery("resize")),a.resizeCount=0,a.lastWindowWidth=h,a.visibleImageCount=c(".jig-imageContainer",a.element).length)}};var R=function(b){!0!==b&&(b="captions"==a.specialFx?!0:!1);a.element.find(".jig-imageContainer").each(function(d,h){var f=c(h),e;if("off"!==a.verticalCenterCaptions){e=f.find(".jig-caption-wrapper");var k=e.filter(".jig-cw-role-real"),l=k.height(),u=k.find(".jig-caption"),g="mixed"==a.caption||"reverse-mixed"==a.caption?k.find(".jig-caption-description-wrapper"):
63!1;"slide"!=a.caption&&"reverse-slide"!=a.caption||!u.is(":animated")?"mixed"!=a.caption&&"reverse-mixed"!=a.caption||!g.is(":animated")?(0===l&&(u.css({opacity:0,display:"block"}),l=k.height(),u.removeAttr("style")),!0===b?e.css({bottom:"auto",top:Math.round(k.closest(".jig-imageContainer").height()/2-l/2)}):e.css({bottom:"auto"}).animate({top:Math.round(k.closest(".jig-imageContainer").height()/2-l/2)},a.animSpeed,"JIGeaseInOutQuad")):g.promise().done(function(){l=k.height();var b=g.height();"mixed"==
64a.caption&&0!==b?(g.css({display:"none"}),l=k.height(),g.css({display:"block"})):"reverse-mixed"==a.caption&&0===b&&(g.css({display:"block"}),l=k.height(),g.css({display:"none"}));e.css({bottom:"auto"}).animate({top:Math.round(k.closest(".jig-imageContainer").height()/2-l/2)},a.animSpeed,"JIGeaseInOutQuad")}):u.promise().done(function(){l=k.height();0===l&&(u.css({opacity:0,display:"block"}),l=k.height(),u.removeAttr("style"));e.css({bottom:"auto"}).animate({top:Math.round(k.closest(".jig-imageContainer").height()/
652-l/2)},a.animSpeed,"JIGeaseInOutQuad")})}"below"==a.caption&&P(f,!0);"captions"==a.specialFx&&(M&&"no"!==a.captionMatchWidth&&f.find(".jig-caption-title, .jig-caption-wrapper").each(function(){var a=c(this),b=a.css("width","")[0].getBoundingClientRect().width;0!==b%2&&(b=Math.ceil(b),a.css({width:0!==b%2?b+1:b}))}),e=e?e:f.find(".jig-caption-wrapper"),O(N(e)))})},V=function(){switch(a.lightbox){case "prettyphoto":case "colorbox":case "magnific":case "photoswipe":case "photoswipe3":case "foobox":case "custom":window[a.lightboxInit]();
66break;case "links-off":a.element.find("a").css("cursor","default");a.element.on("click","a",function(a){a.preventDefault()});c(a.element).on("click","a",function(a){2===a.which&&a.preventDefault()});break;case "socialgallery":try{socialGalleryBind()}catch(b){}}},Q=function(b){var d=c(this),h=d.attr("data-filter-slug"),f=!1,e,k,l,g;"undefined"===typeof b&&(d=!1!==a.filters?c("#jig"+a.instance+"-filter"+a.filterType+"s .jig-filter"+a.filterType).first():c("#jig"+a.instance+"-L2filter"+a.L2filterType+
67"s .jig-filter"+a.L2filterType).first(),h=d.attr("data-filter-slug"));e=d.parent().attr("data-filter-level");if(1==e){if("no"==a.filterMultiple||"all-items-nofilter"==h)!1===d.hasClass("jig-filter"+a.filterType+"Selected")&&(d.siblings(".jig-filter"+a.filterType+"Selected").removeClass("jig-filter"+a.filterType+"Selected"),d.addClass("jig-filter"+a.filterType+"Selected"),a.selectedItems=a.filteredImages[h],f=!0);else{f=d.parent().find(".jig-filter"+a.filterType+"Selected").length;1==f&&"all-items-nofilter"==
68d.siblings(".jig-filter"+a.filterType+"Selected").attr("data-filter-slug")&&d.siblings(".jig-filter"+a.filterType+"Selected").removeClass("jig-filter"+a.filterType+"Selected");if(!1===d.hasClass("jig-filter"+a.filterType+"Selected"))d.addClass("jig-filter"+a.filterType+"Selected"),f++;else{if(1==f)if("all-items-nofilter"==c("#jig"+a.instance+"-filter"+a.filterType+"s .jig-filter"+a.filterType).first().attr("data-filter-slug"))c("#jig"+a.instance+"-filter"+a.filterType+"s .jig-filter"+a.filterType).first().click().addClass("jig-filter"+
69a.filterType+"Selected");else return;d.removeClass("jig-filter"+a.filterType+"Selected");f--}var n=[];d.parent().find(".jig-filter"+a.filterType+"Selected").each(function(){n.push(c(this).attr("data-filter-slug"))});h=n.toString();if("undefined"===typeof a.filteredImages[h]){a.filteredImages[h]=[];var m=0;k=a.allItems.length;for(f=0;f<k;f+=1)if(a.allItems[f].filters)for(m=0,g=a.allItems[f].filters.length,l=0;l<g;l+=1)"or"==a.filterMultiple?-1<c.inArray(a.allItems[f].filters[l][0],n)&&-1==c.inArray(a.allItems[f],
70a.filteredImages[h])&&a.filteredImages[h].push(a.allItems[f]):(-1<c.inArray(a.allItems[f].filters[l][0],n)&&m++,m==n.length&&-1==c.inArray(a.allItems[f],a.filteredImages[h])&&a.filteredImages[h].push(a.allItems[f]))}a.selectedItems=a.filteredImages[h];f=!0}f&&a.L2filters&&(a.L1selectedItems=a.selectedItems)}if(a.L2filters){"undefined"===typeof b&&(d=c("#jig"+a.instance+"-L2filter"+a.L2filterType+"s .jig-filter"+a.L2filterType).first(),e=d.parent().attr("data-filter-level"));if(2==e)if("no"==a.L2filterMultiple||
71"all-items-nofilter"==h)d.siblings(".jig-filter"+a.L2filterType+"Selected").removeClass("jig-filter"+a.L2filterType+"Selected"),d.addClass("jig-filter"+a.L2filterType+"Selected");else if(b=d.parent().find(".jig-filter"+a.L2filterType+"Selected").length,1==b&&"all-items-nofilter"==d.siblings(".jig-filter"+a.L2filterType+"Selected").attr("data-filter-slug")&&d.siblings(".jig-filter"+a.L2filterType+"Selected").removeClass("jig-filter"+a.L2filterType+"Selected"),!1===d.hasClass("jig-filter"+a.L2filterType+
72"Selected"))d.addClass("jig-filter"+a.L2filterType+"Selected"),b++;else{if(1==b)if("all-items-nofilter"==c("#jig"+a.instance+"-L2filter"+a.L2filterType+"s .jig-filter"+a.L2filterType).first().attr("data-filter-slug"))c("#jig"+a.instance+"-L2filter"+a.L2filterType+"s .jig-filter"+a.L2filterType).first().click().addClass("jig-filter"+a.L2filterType+"Selected");else return;d.removeClass("jig-filter"+a.L2filterType+"Selected");b--}var p=[];c("#jig"+a.instance+"-L2filter"+a.L2filterType+"s .jig-filter"+
73a.L2filterType+"Selected").each(function(){p.push(c(this).attr("data-filter-slug"))});h=[];a.filters&&c("#jig"+a.instance+"-filter"+a.filterType+"s .jig-filter"+a.filterType+"Selected").each(function(){h.push(c(this).attr("data-filter-slug"))});d=h.concat(p).toString();!1===a.filters&&(a.L1selectedItems=a.allItems);if("undefined"===typeof a.filteredImages[d])if(1==p.length&&"all-items-nofilter"==p[0])a.filteredImages[d]=a.L1selectedItems,a.selectedItems=a.filteredImages[d];else for(a.filteredImages[d]=
74[],b=0,k=a.L1selectedItems.length,f=0;f<k;f+=1)if(a.L1selectedItems[f].L2filters)for(b=0,g=a.L1selectedItems[f].L2filters.length,l=0;l<g;l+=1)"or"==a.L2filterMultiple?-1<c.inArray(a.L1selectedItems[f].L2filters[l][0],p)&&-1==c.inArray(a.L1selectedItems[f],a.filteredImages[d])&&a.filteredImages[d].push(a.L1selectedItems[f]):(-1<c.inArray(a.L1selectedItems[f].L2filters[l][0],p)&&b++,b==p.length&&-1==c.inArray(a.L1selectedItems[f],a.filteredImages[d])&&a.filteredImages[d].push(a.L1selectedItems[f]));
75a.selectedItems=a.filteredImages[d];f=!0}if(f){a.element.find(".jig-imageContainer, .jig-hiddenLink").remove();d=0;for(b=a.selectedItems.length;d<b;d+=1)a.selectedItems[d].linkContainer=void 0;t.createGallery("filter")}},Y=function(){a.row=[];a.validRow=!0;a.fullWidth=0;for(a.extra=0;a.items.length>a.whileUntil&&a.extra<a.areaWidth;){var b=a.items.shift();b.newHeight=b.newWidth=b.containerHeight=b.containerWidth=b.marLeft=void 0;b.ratio=b.width/a.maxHeight;a.row.push(b);a.fullWidth+=Math.round(b.width*
76a.defaultHeightRatio)+a.margins+a.bordersTotal;a.extra=a.fullWidth-a.margins}a.extra-=a.areaWidth;
76if(0<a.row.length&&0<a.extra||0===a.rows.length&&a.items.length>a.whileUntil){for(var b="landscape",d=0,h=a.row.length;d<h;d+=1)if(1>a.row[d].ratio){b="portrait";break}"landscape"==b?W():"yes"!==a.disableCropping?z():W()}else if(0<a.rows.length&&a.items.length==a.whileUntil){switch(a.incompleteLastRow){case "flexible":z("flexible");break;case "flexible-center":z("flexible-center");break;case "hide":z("hide");
77break;case "flexible-match":"off"!==a.loadMore&&0>=a.selectedItems.length-a.limit?E():z("flexible");break;case "flexible-match-center":"off"!==a.loadMore&&0>=a.selectedItems.length-a.limit?E("center"):z("flexible-center");break;case "match":E();break;case "match-center":E("center");break;case "center":z("center");break;default:z("lastRow")}if(!0!==a.validRow)return a.imagesShown-=a.row.length,a.unshifts=a.row,a.whileUntil+=a.unshifts.length,!1}else"center"!==a.incompleteLastRow&&"match-center"!==
78a.incompleteLastRow&&"flexible-match-center"!==a.incompleteLastRow?z("lastRow"):z("center");return a.row},E=function(b){var d,h=0;d=0;for(var c=a.rows.length;d<c;d+=1)h=d;if(void 0===a.rows[h]||void 0===a.rows[h][0])z("lastRow");else{d=a.rows[h][0].containerHeight?a.rows[h][0].containerHeight:a.rows[h][0].newHeight;a.marginsTotal=(a.row.length-1)*a.margins+a.row.length*a.bordersTotal;for(var c=a.rowlen=0,e=a.row.length;c<e;c+=1)void 0!==a.rows[h][c]&&a.row[c].width==a.rows[h][c].width?(a.row[c].newHeight=
79a.rows[h][c].newHeight,a.row[c].containerHeight=a.rows[h][c].containerHeight,a.row[c].newWidth=a.rows[h][c].newWidth,a.row[c].containerWidth=a.rows[h][c].containerWidth,a.row[c].marLeft=a.rows[h][c].marLeft):(a.row[c].newHeight=d,a.row[c].newWidth=Math.round(a.row[c].newHeight*a.row[c].ratio)),a.rowlen+=a.row[c].newWidth,"undefined"!==typeof a.row[c].marLeft&&(a.rowlen-=2*a.row[c].marLeft);d>a.targetHeight&&(a.remaining=a.rowlen+a.marginsTotal-a.areaWidth,0<a.remaining&&I());"undefined"!==typeof b&&
80a.rowlen+a.marginsTotal<a.areaWidth&&(a.row[0].spaceLeft=Math.floor(.5*(a.areaWidth-a.rowlen-a.marginsTotal)))}},W=function(){var b=!0;a.marginsTotal=(a.row.length-1)*a.margins+a.row.length*a.bordersTotal;a.rowlen=0;a.heights=[];for(var d=0,h=a.row.length;d<h;d+=1){var c=Math.round(a.row[d].width*a.defaultHeightRatio);a.row[d].newWidth=c-Math.round((c+a.marginsTotal/a.row.length)/a.fullWidth*a.extra);a.heights[d]=a.row[d].newWidth/a.row[d].ratio;if(a.heights[d]<a.minHeight){z();return}a.heights[d]>
81a.maxHeight?(a.row[d].newHeight=a.targetHeight,a.row[d].newWidth=Math.round(a.row[d].newHeight*a.row[d].ratio),b=!1):(a.row[d].newHeight=a.heights[d],a.rowlen+=a.row[d].newWidth)}b&&(a.remaining=a.rowlen+a.marginsTotal-a.areaWidth,I())},z=function(b){var d=!0;if(1!=a.row.length&&void 0===b){var c=a.row.pop();a.fullWidth-=Math.round(c.width*a.defaultHeightRatio)+a.margins+a.bordersTotal;a.items.unshift(c);a.extra=a.fullWidth-a.margins;a.extra-=a.areaWidth}a.marginsTotal=(a.row.length-1)*a.margins+
82a.row.length*a.bordersTotal;a.rowlen=0;a.heights=[];for(var c=0,f=a.row.length;c<f;c+=1){var e=Math.round(a.row[c].width*a.defaultHeightRatio);a.row[c].newWidth=e-Math.round((e+a.marginsTotal/a.row.length)/a.fullWidth*a.extra);a.heights[c]=a.row[c].newWidth/a.row[c].ratio;if(a.heights[c]>a.maxHeight){if(void 0===b){b=a.items.shift();a.row.push(b);a.fullWidth+=Math.round(b.width*a.defaultHeightRatio)+a.margins+a.bordersTotal;a.extra=a.fullWidth-a.margins;a.extra-=a.areaWidth;X();return}"off"!==a.loadMore&&
830>=a.selectedItems.length-a.limit&&("flexible"==b?b="lastRow":"flexible-center"==b&&(b="center"));if("lastRow"==b){b=0;for(d=a.row.length;b<d;b+=1)a.row[b].newHeight=a.targetHeight,a.row[b].newWidth=Math.round(a.row[b].newHeight*a.row[b].ratio);return}if("center"==b){d=b=0;for(c=a.row.length;d<c;d+=1)a.row[d].newHeight=a.targetHeight,a.row[d].newWidth=Math.round(a.row[d].newHeight*a.row[d].ratio),b+=a.row[d].newWidth;a.row[0].spaceLeft=Math.floor(.5*(a.areaWidth-b-a.marginsTotal));return}a.validRow=
84!1;a.row[c].newWidth=void 0;d=!1}else if(a.heights[c]<a.minHeight&&void 0===b){X();return}void 0!==a.row[c].newWidth&&(a.row[c].newHeight=a.heights[c],a.rowlen+=a.row[c].newWidth)}d&&(a.remaining=a.rowlen+a.marginsTotal-a.areaWidth,I())},I=function(){if(0!==a.remaining)if(0<a.remaining)for(;0<a.remaining;)for(var b=0,d=a.row.length;b<d&&(a.row[b].newWidth--,a.row[b].newHeight=a.heights[b]=a.row[b].newWidth/a.row[b].ratio,a.remaining--,0!==a.remaining);b+=1);else for(;0>a.remaining;)for(b=0,d=a.row.length;b<
85d&&(a.row[b].newWidth++,a.row[b].newHeight=a.heights[b]=a.row[b].newWidth/a.row[b].ratio,a.remaining++,0!==a.remaining);b+=1);for(var b=Math.floor(Math.min.apply(null,a.heights)),d=0,c=a.row.length;d<c;d+=1)a.row[d].containerHeight=b,a.row[d].newHeight=Math.round(a.row[d].newHeight)},X=function(){var b=[],d=0;a.marginsTotal=(a.row.length-1)*a.margins+a.row.length*a.bordersTotal;for(var c=0,f=a.row.length;c<f;c+=1){var e=a.row[c],k=Math.round(a.row[c].width*a.defaultHeightRatio);e.newHeight=a.targetHeight;
86e.newWidth=k;b[c]=Math.round((k+a.marginsTotal/a.row.length)/a.fullWidth*a.extra);d+=b[c]}d=a.extra-d;if(0!==d)if(0<d)for(;0<d;)for(c=0,f=b.length;c<f&&(b[c]++,d--,0!==d);c+=1);else for(;0>d;)for(c=0,f=b.length;c<f&&(b[c]--,d++,0!==d);c+=1);d=0;for(c=a.row.length;d<c;d+=1)f=b[d],e=a.row[d],e.marLeft=Math.round(f/2),e.containerWidth=e.newWidth-f},aa=function(b,d,h){if(isNaN(b.newWidth)||!b.width)return!1;void 0!==b.linkContainer&&(c(b.linkContainer).remove(),b.linkContainer=void 0);"undefined"===typeof b[a.linkTitleField]&&
87(b[a.linkTitleField]="");"undefined"===typeof b[a.imgAltField]&&(b[a.imgAltField]="");"undefined"===typeof b[a.titleField]&&(b[a.titleField]="");"undefined"===typeof b[a.captionField]&&(b[a.captionField]="");"undefined"===typeof b.gallery&&(b.gallery="");var f="";b.carousel_data?(b.carousel_data=" "+b.carousel_data+" ",f=" tiled-gallery-item"):b.carousel_data="";b.extra_class&&(f+=" "+b.extra_class);b.off="";b.url=b.url;var f=c('<div class="jig-imageContainer'+f+'"/>'),e=c('<div class="jig-overflow"/>'),
88k=b.url,l=b.link_target?b.link_target:"_self",g=a.linkClass,n=a.linkRel,t,p;p=!0;""!==b.gallery&&(f.append(b.gallery.html),n=' rel="'+b.gallery.rel+'" ',f.addClass(b.gallery.lightbox_class),f.attr("id",b.gallery.id));!b.link||(k=b.link,"video"!==l&&"videoplayer"!==l?(g="foobox"!==l?'target="'+l+'" '+g.replace("jig-link","jig-customLink"):'target="'+l+'" '+g.replace("jig-link",""),n=b.link_rel?'rel="'+b.link_rel+'"'
88:""):"magnific"==a.lightbox&&-1==g.indexOf("mfp-")&&(g=g.replace("jig-link","jig-link mfp-iframe")),
89"videoplayer"!=l&&"foobox"!=l)||-1===k.indexOf("&poster=")&&-1===k.indexOf("|poster=")||(p=!1);if(!0===p)try{k=decodeURIComponent((k+"").replace(/\+/g,"%20"))}catch(da){}t=b[a.linkTitleField];p=b[a.imgAltField];b.download&&("yes"==a.downloadLink?(l=(0!==t.length?a.separatorCharacter:"")+b.download,t+=l):"alt"==a.downloadLink&&(l=(0!==p.length?a.separatorCharacter:"")+b.download,p+=l));b.lightbox_link&&("yes"==a.lightboxLink?(lightboxLink=(0!==t.length?a.separatorCharacter:"")+b.lightbox_link,t+=lightboxLink):
90"alt"==a.lightboxLink&&(lightboxLink=(0!==p.length?a.separatorCharacter:"")+b.lightbox_link,p+=lightboxLink));""!==t&&(t='title="'+t+'" ');""!==p&&(p='alt="'+p+'" ');"new_tab"==a.lightbox&&(g='target="_blank" ');k=c("<a "+g+n+a.linkAttribute+t+(b.wh?'data-wh="'+b.wh+'" ':"")+'href="'+("links-off"!=a.lightbox?k:"#")+'" />');g=c("<img "+p+b.carousel_data+"/>");b.carousel_data&&b.download&&("yes"==a.downloadLink?(l=(0!==g.attr("data-image-title").length?a.separatorCharacter:"")+c("<textarea />").html(b.download).val(),
91g.attr("data-image-title",g.attr("data-image-title")+l)):"alt"==a.downloadLink&&(l=(0!==g.attr("data-image-description").length?"<br />":"")+c("<textarea />").html(b.download).val(),g.attr("data-image-description",g.attr("data-image-description")+l)));"undefined"!==typeof b.geo&&g.attr("data-geo",b.geo);h==d-1&&f.addClass("jig-last");e.css("width",(b.containerWidth?b.containerWidth:b.newWidth)+"px");e.css("height",(b.containerHeight?b.containerHeight:b.newHeight)+"px");b.photon?g.attr("src",decodeURIComponent((b.photon+
92"").replace(/\+/g,"%20"))):(d=b.thumbUrl?b.thumbUrl:b.url,h=a.originalMaxHeight,n="","normal"==a.thumbnailFilename&&(l=/.*\.(jpe?g|gif|bmp|png|webp)/im.exec(d),null!==l&&(n="&f=."+l[1])),a.aspectRatio||a.randomizeWidth?(l=a.maxWidth,""!==a.randomizeWidth&&(l="undefined"!==typeof b.originalWidth?b.originalWidth:b.width),"yes"==a.retinaReady&&(h=Math.floor(h*a.devicePixelRatio),l=Math.floor(l*a.devicePixelRatio)),g.attr("src",a.timthumb+"?src="+d+"&h="+h+"&w="+l+"&q="+a.quality+a.cropZone+n)):"yes"==
93a.retinaReady?(h=Math.floor(h*a.devicePixelRatio),l=Math.floor(("undefined"!==typeof b.originalWidth?b.originalWidth:b.width)*a.devicePixelRatio),g.attr("src",a.timthumb+"?src="+d+"&h="+h+"&w="+l+"&q="+a.quality+a.cropZone+n)):g.attr("src",a.timthumb+"?src="+d+"&h="+h+"&q="+a.quality+a.cropZone+n));g.attr("width",b.newWidth).css("width",b.newWidth+"px");g.attr("height",b.newHeight).css("height",b.newHeight+"px");b.marLeft&&g.css("margin-left",-b.marLeft+"px");("center"==a.incompleteLastRow||"flexible-center"==
94a.incompleteLastRow||"flexible-match-center"==a.incompleteLastRow||"match-center"==a.incompleteLastRow)&&b.spaceLeft&&0<b.spaceLeft&&(f.css("ltr"==a.readingDirection?"margin-left":"margin-right",b.spaceLeft+"px"),b.spaceLeft=0);g.css("margin-top",0);k.append(g);"off"!==a.overlay&&k.append('<div class="jig-overlay-wrapper"><div class="jig-overlay"></div></div>'+("on"===a.overlayIcon?'<div class="jig-overlay-icon-wrapper"><div class="jig-overlay-icon"></div></div>':""));"off"!==a.caption&&(""!==b.gallery&&
95(b[a.titleField]="undefined"!==typeof b.gallery[a.titleField]&&""!==b.gallery[a.titleField]&&" "!==b.gallery[a.titleField]?b.gallery[a.titleField]:"",b[a.captionField]="undefined"!==typeof b.gallery[a.captionField]&&""!==b.gallery[a.captionField]&&" "!==b.gallery[a.captionField]?b.gallery[a.captionField]:""),d="",""!==b[a.titleField]&&" "!==b[a.titleField]&&(d+='<div class="jig-caption-title">'+m(b[a.titleField],"<br><hr><em><strong><mark><i><b><font><span><ul><ol><li>")+"</div>"),""!==b[a.captionField]&&
96" "!==b[a.captionField]&&(d+='<div class="jig-caption-description-wrapper"><div class="jig-caption-description'+(""!==d?"":" jig-alone")+'">'+m(b[a.captionField],"<br><hr><em><strong><mark><i><b><font><span><ul><ol><li>")+"</div></div>"),""!==d?(d='<div class="jig-caption-wrapper jig-cw-role-real"><div class="jig-caption">'+d+"</div></div>","below"!==a.caption?k.append(d):0!==a.middleBorderWidth&&"always"==a.innerBorder&&"always"!==a.middleBorder?f.append(c(d).width(e.width()-2*parseFloat(a.innerBorderWidth))
96):
97f.append(c(d).css({width:e.css("width")}))):"below"==a.caption&&(d='<div class="jig-caption-wrapper"></div>',0!==a.middleBorderWidth&&"always"==a.innerBorder&&"always"!==a.middleBorder?f.append(c(d).width(e.width()-2*parseFloat(a.innerBorderWidth))):f.append(c(d).css({width:e.css("width")}))));0===a.bordersTotal&&0===a.innerBorderWidth||k.append('<div class="jig-border"></div>');e.append(k);b.carousel_data&&b.caption&&e.append('<div class="tiled-gallery-caption">'+m(b.caption)+"</div>");f.prepend(e);
98a.element.find(".jig-clearfix").before(f);"off"!==a.caption&&("below"==a.caption?P(f):"captions"==a.specialFx&&(h=f.find(".jig-cw-role-real"),d="no"==a.captionMatchWidth||a.captionMatchWidthForceNo?c(h[0].cloneNode(!1)):h.clone(),d.removeClass("jig-cw-role-real").addClass("jig-cw-role-effect"),"off"!==a.overlay?f.find(".jig-overlay-wrapper").before(d):h.before(d)));b.container=f;b.overflow=e;b.img=g;b.linkElement=k;return f},Z=function(b,d,c){c==d-1?b.container.addClass("jig-last"):b.container.removeClass("jig-last");
99d=b.overflow;c=b.img;d.css("width",(b.containerWidth?b.containerWidth:b.newWidth)+"px").width();d.css("height",(b.containerHeight?b.containerHeight:b.newHeight)+"px");c.attr("width",b.newWidth).css("width",b.newWidth+"px");c.attr("height",b.newHeight).css("height",b.newHeight+"px");b.marLeft?c.css("margin-left",-b.marLeft+"px"):c.css("margin-left","");if("center"==a.incompleteLastRow||"flexible-center"==a.incompleteLastRow||"flexible-match-center"==a.incompleteLastRow||"match-center"==a.incompleteLastRow)b.spaceLeft&&
1000<b.spaceLeft?(b.container.css("ltr"==a.readingDirection?"margin-left":"margin-right",b.spaceLeft+"px"),b.spaceLeft=0):b.container.css("ltr"==a.readingDirection?"margin-left":"margin-right","");if("off"!=a.specialFx){var h=c.siblings(".jig-pixastic");0===h.length&&"captions"==a.specialFx&&(h=c.siblings(".jig-cw-role-effect").find(".jig-pixastic"));ba(h,c,b.container)}"below"==a.caption&&(0!==a.middleBorderWidth&&"always"==a.innerBorder&&"always"!==a.middleBorder?b.container.find(".jig-caption-wrapper").width(d.width()-
1012*parseFloat(a.innerBorderWidth)):b.container.find(".jig-caption-wrapper").css({width:d.css("width")}),P(b.container,!0));"off"!==a.caption&&"off"!==a.verticalCenterCaptions&&(d=b.container.find(".jig-cw-role-real").clone(),d.find(".jig-caption").css("display","block"),d.appendTo(b.linkElement).css({bottom:"auto",opacity:.01}).css("top",Math.round((b.containerHeight?b.containerHeight:b.newHeight)/2-d.height()/2)),c=d.css("top"),d.remove(),b.container.find(".jig-caption-wrapper").css({bottom:"auto"}).animate({top:c},
102a.animSpeed,"JIGeaseInOutQuad"))},S=function(b,d){"undefined"===typeof b[a.linkTitleField]&&(b[a.linkTitleField]="");"undefined"===typeof b[a.imgAltField]&&(b[a.imgAltField]="");"undefined"===typeof b[a.titleField]&&(b[a.titleField]="");"undefined"===typeof b[a.captionField]&&(b[a.captionField]="");var h=b.off="";b.carousel_data?(b.carousel_data=" "+b.carousel_data+" ",h=" tiled-gallery-item"):b.carousel_data="";b.extra_class&&(h+=" "+b.extra_class);var f=b.url,e,k,g=a.hiddenLinkClass;k=b.link_target?
103b.link_target:"_self";var n=a.linkRel;e=!0;""!==h&&(g=g.replace('jig-hiddenLink"',"jig-hiddenLink"+h+'"'));!b.link||(f=b.link,"video"!==k&&"videoplayer"!==k?(g="foobox"!==k?'target="'+k+'" '+g.replace("jig-link","jig-customLink jig-hiddenLink"):'target="'+k+'" '+g.replace("jig-link","jig-hiddenLink"),n=b.link_rel?'rel="'+b.link_rel+'"':""):"magnific"==a.lightbox&&-1==g.indexOf("mfp-")&&(g=g.replace("jig-link","jig-link mfp-iframe")),"videoplayer"!=k&&"foobox"!=k)||-1===f.indexOf("&poster=")&&-1===
104f.indexOf("|poster=")||(e=!1);if(!0===e)try{f=decodeURIComponent((f+"").replace(/\+/g,"%20"))}catch(ca){}e=b[a.linkTitleField];k=b[a.imgAltField];b.download&&("yes"==a.downloadLink?(h=(0!==e.length?a.separatorCharacter:"")+b.download,e+=h):"alt"==a.downloadLink&&(h=(0!==k.length?a.separatorCharacter:"")+b.download,k+=h));b.lightbox_link&&("yes"==a.lightboxLink?(lightboxLink=(0!==e.length?a.separatorCharacter:"")+b.lightbox_link,e+=lightboxLink):"alt"==a.lightboxLink&&(lightboxLink=(0!==k.length?a.separatorCharacter:
105"")+b.lightbox_link,k+=lightboxLink));""!==e&&(e='title="'+e+'" ');""!==k&&(k='alt="'+k+'" ');f=c("<a "+g+n+a.linkAttribute+e+(b.wh?'data-wh="'+b.wh+'" ':"")+'href="'+("links-off"!=a.lightbox?f:"#")+'"/>');g=c('<img class="jig-hiddenImg" '+k+b.carousel_data+"/>");b.carousel_data&&b.download&&("yes"==a.downloadLink?(h=(0!==g.attr("data-image-title").length?a.separatorCharacter:"")+c("<textarea />").html(b.download).val(),g.attr("data-image-title",g.attr("data-image-title")+h)):"alt"==a.downloadLink&&
106(h=(0!==g.attr("data-image-description").length?"<br />":"")+c("<textarea />").html(b.download).val(),g.attr("data-image-description",g.attr("data-image-description")+h)));g.attr("src","data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw%3D%3D");f.append(g);b.linkContainer=f;void 0!==a.currentHiddenLink?c(a.currentHiddenLink).after(f):a.element.find(".jig-clearfix").after(f);a.currentHiddenLink=f},ba=function(a,d,h){d.off("load");0!==a.length&&a.off("load").remove();d.clone().addClass("jig-pixastic").insertAfter(d).on("load",
107T).each(function(){(this.complete||void 0!==this.naturalWidth&&0!==this.naturalWidth)&&c(this).trigger("load")})},T=function(){if(!0!==c(this).hasClass("jig-specialfx-complete"))if(c(this).parent(),c(this).stop().css("display","block").css("opacity",1),""===a.specialFxOptions)switch(a.specialFxType){case "desaturate":Pixastic.process(this,"desaturate",{retinaReady:a.retinaReady,devicePixelRatio:a.devicePixelRatio,average:!1},A);break;case "blur":Pixastic.process(this,"blurfast",{retinaReady:a.retinaReady,
108devicePixelRatio:a.devicePixelRatio,amount:.5},A);break;case "glow":Pixastic.process(this,"glow",{retinaReady:a.retinaReady,devicePixelRatio:a.devicePixelRatio,amount:.3,radius:.2},A);break;case "sepia":Pixastic.process(this,"sepia",{retinaReady:a.retinaReady,devicePixelRatio:a.devicePixelRatio},A);break;case "laplace_dark":Pixastic.process(this,"laplace",{retinaReady:a.retinaReady,devicePixelRatio:a.devicePixelRatio,edgeStrength:2,invert:!1,greyLevel:0},A);break;case "laplace_light":Pixastic.process(this,
109"laplace",{retinaReady:a.retinaReady,devicePixelRatio:a.devicePixelRatio,edgeStrength:2,invert:!0,greyLevel:0},A)}else{for(var b=a.specialFxOptions,d={},h=0,f=b.length;h<f;h+=1){var e=b[h].split(":");d[e[0]]=e[1]}d.retinaReady=a.retinaReady;d.devicePixelRatio=a.devicePixelRatio;switch(a.specialFxType){case "desaturate":Pixastic.process(this,"desaturate",d,A);break;case "blur":Pixastic.process(this,"blurfast",d,A);break;case "glow":Pixastic.process(this,"glow",d,A);break;case "sepia":Pixastic.process(this,
110"sepia",A);break;case "laplace_dark":Pixastic.process(this,"laplace",d,A);break;case "laplace_light":Pixastic.process(this,"laplace",d,A)}}c(this).off("load")},A=function(b,d){if(!1===b){var h=c(d);h.siblings(".jig-cw-role-effect").remove();h.remove()}else if(b=c(b),"hovered"===a.specialFx?b.css("opacity",a.hiddenOpacity):b.css("opacity",a.specialFxBlend),b.addClass("jig-specialfx-complete"),"captions"==a.specialFx){h=b.closest(".jig-imageContainer").find(".jig-cw-role-effect");if("no"==a.captionMatchWidth)b.appendTo(h);
111else try{var f=b[0].toDataURL("image/jpeg"),e=b.css("width")+" "+b.css("height");b.remove();h.find(".jig-caption-title").css({"background-image":"url("+f+")","background-size":e});h.find(".jig-caption-description").css({"background-image":"url("+f+")","background-size":e})}catch(k){a.captionMatchWidthForceNo=!0,f=b.closest(".jig-imageContainer"),f.find(".jig-cw-role-effect .jig-caption").remove(),f.find(".jig-caption-title").css({display:"block"}),b.appendTo(h)}O(N(h))}},N=function(b,d){var c={};
112c.roleEffect=b.eq(0).closest(".jig-caption-wrapper");if(0===c.roleEffect.length)return!1;if("no"==a.captionMatchWidth||a.captionMatchWidthForceNo)c.roleEffect.hasClass("jig-cw-role-effect")?c.roleReal=c.roleEffect.siblings(".jig-cw-role-real"):(c.roleReal=c.roleEffect,c.roleEffect=c.roleEffect.siblings(".jig-cw-role-effect")),d&&(c.fadeZeroHeight=d),c.captionElement=c.roleReal.find(".jig-caption");else{c.roleEffect=c.roleEffect.filter(".jig-cw-role-effect");if(!c.roleEffect.hasClass("jig-cw-role-effect"))return!1;
113c.img=c.roleEffect.siblings("img");c.captionTitle=c.roleEffect.find(".jig-caption-title");c.captionDescription=c.roleEffect.find(".jig-caption-description")}return c},O=function(b){if(!1===b)return!1;if("no"==a.captionMatchWidth||a.captionMatchWidthForceNo){var c=b.roleReal.position();0!==b.roleReal.height()?(b.roleEffect.css({height:b.captionElement.height()+"px"}).find(".jig-pixastic").css({top:-c.top+"px"}),b.fadeZeroHeight&&b.roleEffect.css({opacity:b.captionElement.css("opacity")})):b.roleEffect.find(".jig-pixastic").css({top:-c.top+
114"px"})}else{var c=b.roleEffect.position(),h=b.captionTitle.position(),f=b.captionDescription.position(),e=parseInt(b.img.css("margin-left"),10);h&&b.captionTitle.css({"background-position":e-h.left+"px "+-c.top+"px"});f&&b.captionDescription.css({"background-position":e+"px "+(-f.top-c.top)+"px"})}},P=function(b,c){var d=b.find(".jig-caption-wrapper"),f=d.find(".jig-caption-title"),d=d.find(".jig-caption-description"),e=a.captionHeight,g={remove:" -,;.!?".split(""),noEllipsis:[]};c&&(0!==f.length&&
115f.triggerHandler("isTruncated.dot")&&f.trigger("destroy.dot"),0!==d.length&&d.triggerHandler("isTruncated.dot")&&d.trigger("destroy.dot"));0!==f.length&&(f.outerHeight()>a.captionHeight&&f.dotdotdot({height:a.captionHeight-(f.outerHeight()-f.height()),lastCharacter:g}),e-=f.outerHeight());0!==d.length&&d.outerHeight(!0)>e&&d.dotdotdot({height:e-(d.outerHeight()-d.height()),lastCharacter:g})};a.errorChecked=!1;var U=function(){0<c(".jig-unloadable").length&&(a.errorChecked=!0,a.element.find(".jig-unloadable").remove(),
116t.createGallery("errorCheck"))};t.init()};c.fn.justifiedImageGrid=function(n){return this.each(function(){if(void 0===c(this).data("justifiedImageGrid")){var x=new c.justifiedImageGrid(this,n);c(this).data("justifiedImageGrid",x)}})};c.extend(c.easing,{JIGswing:function(c){return.5-Math.cos(c*Math.PI)/2},JIGeaseInOutQuad:function(c){return.5>c?2*c*c:1-Math.pow(-2*c+2,2)/2}});c.fn.JIGhoverFlow=function(n,x,q,m,v){if(-1==c.inArray(n,["mouseover","mouseenter","mouseout","mouseleave"]))return this;var y=
117"object"===typeof q?q:{complete:v||!v&&m||c.isFunction(q)&&q,duration:q,easing:v&&m||m&&!c.isFunction(m)&&m};"undefined"==typeof y.easing&&(y.easing="JIGswing");y.queue=!1;var g=y.complete;y.complete=function(){c(this).dequeue();c.isFunction(g)&&g.call(this)};return this.each(function(){var g=c(this);
117"mouseover"==n||"mouseenter"==n?g.data("jQuery.JIGhoverFlow",!0):g.removeData("jQuery.JIGhoverFlow");g.queue(function(){("mouseover"==n||"mouseenter"==n?void 0!==g.data("jQuery.JIGhoverFlow"):void 0===
118g.data("jQuery.JIGhoverFlow"))?g.animate(x,y):g.queue([])})})};(function(c){var n=function(c,t){return c-t},q=function(c){4===c.length&&(c=c.replace(/(\w)(\w)(\w)/gi,"$1$1$2$2$3$3"));c=/(\w{2})(\w{2})(\w{2})/.exec(c);return[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)]},m=function(c){return"#"+jQuery.map(c,function(c){c=c.toString(16);return c=1===c.length?"0"+c:c}).join("")},v=function(c,n){return jQuery.map(q(c.end),function(a,g){return(a-q(c.start)[g])/n})},y=function(c,n,a){c=jQuery.map(q(c.start),
119function(c,g){var m=Math.round(c+n[g]*a);255<m?m=255:0>m&&(m=0);return m});return m(c)};c.fn.tagcloud=function(g){var m=c.extend({},c.fn.tagcloud.defaults,g);g=this.map(function(){return c(this).attr("rel")});g=jQuery.makeArray(g).sort(n);var a=g[0];g=g.pop()-a;0===g&&(g=1);var q,x;m.size&&(q=(m.size.end-m.size.start)/g);m.color&&(x=v(m.color,g));return this.each(function(){var g=c(this).attr("rel")-a;m.size&&c(this).css({"font-size":m.size.start+g*q+m.size.unit});m.color&&c(this).css({color:y(m.color,
120x,g)})})};c.fn.tagcloud.defaults={size:{start:14,end:18,unit:"pt"}}})(jQuery);c.JIGjQueryMinVersion=function(n,x){if(n){var q=c().jquery,m=n.split("."),v=q.split("."),q=[],y=[],g=!1;q[0]=isNaN(parseInt(m[0],10))?0:parseInt(m[0],10);q[1]=isNaN(parseInt(m[1],10))?0:parseInt(m[1],10);q[2]=isNaN(parseInt(m[2],10))?0:parseInt(m[2],10);q[3]=isNaN(parseInt(m[3],10))?0:parseInt(m[3],10);y[0]=isNaN(parseInt(v[0],10))?0:parseInt(v[0],10);y[1]=isNaN(parseInt(v[1],10))?0:parseInt(v[1],10);y[2]=isNaN(parseInt(v[2],
12110))?0:parseInt(v[2],10);y[3]=isNaN(parseInt(v[3],10))?0:parseInt(v[3],10);for(m=0;4>m;m++)if(q[m]<=y[m]){if(g=!0,q[m]!=y[m])break}else{g=!1;break}if(!0===g)return!0;!0===x&&c(".justified-image-grid").html('<span style="color:red;font-weight:bold">Your jQuery version ('+c().jquery+") is old, this plugin needs at least 1.7, please go to the plugin settings and choose another jQuery source. If this does not work then your theme or a plugin is not using WordPress best practices and forces the loading of an old version. In that case contact the author of Justified Image Grid.</span>")}return!1}}
122(function(){loadJustifiedImageGrid(jQuery)})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.