1(function(c){var x=[],r=[],K=[];window.gg_gallery_pag=[];window.gg_gall_curr_filter=[];window.gg_gall_curr_search=[];var D=[],E=[],v=[],y=[],A=[],S=[],T=[],z=[],L=[],O=[],F=[],w=[],t=[],q=!1,U="",V=!1;gg_loader='<div class="gg_loader"><div class="ggl_1"></div><div class="ggl_2"></div><div class="ggl_3"></div><div class="ggl_4"></div></div>';window.gg_galleries_init=function(b,d){if("undefined"!=typeof b&&b){if(!c("#"+b).length)return!1;"undefined"==typeof d&&(v[b]=1,y[b]=0);Z(b,d)}else c(".gg_gallery_wrap").not(":empty").each(function(){var f= 2c(this).attr("id");gg_galleries_init(f,d)})};var Z=function(b,d){if("undefined"==typeof b)return!1;var f=c("#"+b).hasClass("gg_collection_wrap")?".gg_coll_container":"";x[b]=f?c("#"+b+" .gg_coll_container").width():c("#"+b).width();"undefined"==typeof d&&(K[b]=parseInt(c("#"+b+" "+f+" .gg_img").first().css("border-right-width")),r[b]=parseInt(c("#"+b+" "+f+" .gg_img").first().css("margin-right")),c("#"+b).hasClass("gg_masonry_gallery")?r[b]=parseInt(c("#"+b+" "+f+" .gg_img").first().css("padding-right")): 3c("#"+b).hasClass("gg_collection_wrap")&&(r[b]=parseInt(c("#"+b+" "+f+" .gg_coll_img_wrap").first().css("padding-right"))));c("#"+b).hasClass("gg_standard_gallery")?ja(b):c("#"+b).hasClass("gg_columnized_gallery")?ka(b):c("#"+b).hasClass("gg_masonry_gallery")?la(b):c("#"+b).hasClass("gg_string_gallery")?ma(b):c("#"+b).hasClass("gg_collection_wrap")&&na(b)},G=function(b,d){$subj="undefined"==typeof d?c("#"+b+" .gg_main_thumb"):c("#"+b+" .gg_coll_outer_container .gg_main_thumb");$subj.each(function(){"undefined"!= 4c(this).data("gg-lazy-src")&&(c(this).attr("src",c(this).data("gg-lazy-src")),c(this).removeAttr("gg-lazy-src"))})},ja=function(b){if(!c("#"+b+" .gg_img").length)return!1;G(b);v[b]&&lc_lazyload("#"+b+" .gg_img .gg_main_thumb",{allLoaded:function(d){c("#"+b+" .gg_loader").fadeOut("fast");c("#"+b+" .gg_img").each(function(f){c(this).addClass(b+"-"+f).css("width",Object.keys(d)[0].w+2*K[b]);var e=c("#"+b+" .gg_img").not(".gg_shown");0==f&&M(b,e.not(".gg_tags_excluded_img").length);f==c("#"+b+" .gg_img").length- 51&&e.gg_display_images(b)});v[b]=0;c(window).trigger("gg_loaded_gallery",[b])}});H(b)},ka=function(b){if(!c("#"+b+" .gg_img").length)return!1;G(b);var d=oa(b);c("#"+b+" .gg_container").css("width","calc(100% + "+r[b]+"px + "+d+"px)");c("#"+b+" .gg_img").css("width","calc("+100/d+"% - "+r[b]+"px - 1px)");H(b);v[b]&&lc_lazyload("#"+b+" .gg_img .gg_main_thumb",{allLoaded:function(f){c("#"+b+" .gg_loader").fadeOut("fast");c("#"+b+" .gg_img").each(function(e){c(this).addClass(b+"-"+e);var g=c("#"+b+" .gg_img").not(".gg_shown"); 60==e&&M(b,g.not(".gg_tags_excluded_img").length);e==c("#"+b+" .gg_img").length-1&&g.gg_display_images(b)});v[b]=0;c(window).trigger("gg_loaded_gallery",[b])}});H(b)},oa=function(b){for(var d=x[b]-r[b],f=1,e=d,g=parseInt(c("#"+b).data("col-maxw"));e>=g;)f++,e=Math.round(d/f)-r[b];return f},la=function(b){G(b);for(var d=parseInt(c("#"+b).data("col-num")),f=r[b],e=Math.floor((x[b]+f)/d),g="undefined"!=typeof c("#"+b).data("minw")?parseInt(c("#"+b).data("minw")):gg_masonry_min_w;e<g;){if(1>=d)return d= 71,!1;d--;e=Math.floor((x[b]+f)/d)}c("#"+b+" .gg_img").each(function(h){h=b+"-"+h;c(this).css("width",e).addClass(h)});d=x[b]+f-d*e;0<d&&c("#"+b+" .gg_container").css("left",Math.floor(d/2));H(b);v[b]?lc_lazyload("#"+b+" .gg_img:not(.gg_tags_excluded_img) .gg_main_thumb",{allLoaded:function(h){c("#"+b+" .gg_loader").fadeOut("fast");c("#"+b+" .gg_container").isotope({percentPosition:!0,isResizeBound:!1,resize:!1,originLeft:!gg_rtl,masonry:{columnWidth:1},containerClass:"gg_isotope",itemClass:"gg_isotope-item", 8itemSelector:".gg_img:not(.gg_old_page)",transitionDuration:0});setTimeout(function(){var k=c("#"+b+" .gg_img").not(".gg_shown");M(b,k.not(".gg_tags_excluded_img").length);k.gg_display_images(b);v[b]=0;c(window).trigger("gg_loaded_gallery",[b])},300)}}):setTimeout(function(){c("#"+b+" .gg_container").isotope("layout")},100)},ma=function(b,d){G(b);v[b]?lc_lazyload("#"+b+" .gg_img .gg_main_thumb",{allLoaded:function(f){P(b,d);c("#"+b+" .gg_loader").fadeOut("fast");f=c("#"+b+" .gg_img").not(".gg_shown"); 9M(b,f.not(".gg_tags_excluded_img").length);f.gg_display_images(b);v[b]=0;c(window).trigger("gg_loaded_gallery",[b])}}):P(b,d);H(b)},P=function(b,d){if("undefined"!=typeof d){var f=d+" .gg_img .gg_main_thumb";b=d.replace("#gg_fakebox_","")}else f="#"+b+" .gg_img:not(.gg_tags_excluded_img) .gg_main_thumb";F[b]=0;
9w[b]=[];t[b]=[];var e=x[b]+r[b];c(f).each(function(g,h){var k=c(this).parents(".gg_img"),l=b+"-"+k.data("img-id");k.css("width",c(this).width()-2).css("maxWidth",c(this).width()+K[b]);k.addClass(l); 10k=c(this).width()-2+K[b]+r[b];w[b].push("."+l);t[b].push(k);F[b]+=k;l=F[b];e==l?(w[b]=[],t[b]=[],F[b]=0):e<l&&(pa(b,l-e,e),w[b]=[],t[b]=[],F[b]=0)})},pa=function(b,d,f){var e=d,g="undefined"!=typeof c("#"+b).data("minw")?parseInt(c("#"+b).data("minw")):gg_phosostr_min_w;if(1==w[b].length)return c(w[b][0]).css("width","calc(100% - "+(r[b]+1)+"px)"),!0;d=t[b];var h=[],k=!1;for(a=0;W(d)>f&&!k&&100>a;){a++;var l=Math.ceil(e/(w[b].length-h.length)),n=!1;c.each(t[b],function(m,p){if(-1!==c.inArray(m,h))return!0; 11var N=p-l;if(N<g){N=g;var aa=c(w[b][m]).find(".gg_main_thumb").width()-2+K[b];N>aa&&(N=aa);h.push(m);n=!0;e-=t[b][m]-N}});n||(c.each(t[b],function(m,p){if(-1!==c.inArray(m,h))return!0;t[b][m]=p-l}),d=t[b],e=W(d)-f,h.length>=w[b].length&&(l=Math.ceil(e/w[b].length),c.each(t[b],function(m,p){t[b][m]=p-l}),k=!0),d=t[b])}c.each(w[b],function(m,p){c(p).css("width",t[b][m]-r[b])});var u=f-W(t[b]);0<u&&c.each(w[b],function(m,p){if(-1===c.inArray(m,h)||m==w[b].length-1)return c(p).css("width",t[b][m]-r[b]+ 12u),!1})},W=function(b){var d=0;c.each(b,function(f,e){d+=parseFloat(e)});return d},na=function(b){G(b,!0);var d=qa(b);c("#"+b+" .gg_coll_container").css("width","calc(100% + "+r[b]+"px + "+d+"px)");c("#"+b+" .gg_coll_img_wrap").css("width","calc("+100/d+"% - 1px)");gg_rtl&&c("#"+b+" .gg_coll_container").css("left",-1*d);H(b);S[b]?setTimeout(function(){c("#"+b+" .gg_container").isotope("layout")},300):lc_lazyload("#"+b+" .gg_coll_img .gg_main_thumb",{allLoaded:function(f){c("#"+b+" .gg_loader").fadeOut("fast"); 13c("#"+b+" .gg_coll_img").each(function(e){e=b+"-"+e;c(this).addClass(e)});f=c("#"+b+" .gg_cats_selected").length&&"*"!=c("#"+b+" .gg_cats_selected").attr("rel")?c("#"+b+" .gg_cats_selected").attr("rel"):"";c("#"+b+" .gg_coll_container").isotope({layoutMode:"fitRows",percentPosition:!0,isResizeBound:!1,resize:!1,originLeft:!gg_rtl,containerClass:"gg_isotope",itemClass:"gg_isotope-item",itemSelector:".gg_coll_img_wrap",transitionDuration:"0.6s",filter:f?":not(.gg_coll_pag_hidden) .ggc_"+f:":not(.gg_coll_pag_hidden)"}); 14setTimeout(function(){var e=c("#"+b+" .gg_coll_img_wrap").not(".gg_shown");M(b,e.length);e.gg_display_images();v[b]=0;c(window).trigger("gg_loaded_collection",[b])},300)}})},qa=function(b){for(var d=x[b]-r[b],f=1,e=d;e>=gg_coll_max_w;)f++,e=Math.round(d/f)-r[b];return f};c(document).ready(function(){c(document).on("click",".gg_coll_img:not(.gg_linked_img)",function(){var b=c(this).parents(".gg_collection_wrap").attr("id"),d=c(this).parents(".gg_collection_wrap").attr("rel"),f=c(this).data("gall-data"), 15e=c(this).attr("rel");if("undefined"==typeof z[b]||!z[b]){var g=c(this).parents(".gg_collection_wrap").find(".gg_img_title_under").length?c(this).next().find(".gg_img_title_under").text():c(this).find(".gg_img_title").text();I(d,"gcg_",e,g);ra(b,f)}})});var ra=function(b,d){var f=c(location).attr("href");"undefined"==typeof L[b]&&(L[b]=[]);O[b]=c("#"+b+' .gg_coll_img[data-gall-data="'+d+'"]');c("#"+b+" .gg_coll_gallery_container .gg_gallery_wrap").length&&(c("#"+b+" .gg_coll_gallery_container .gg_gallery_wrap").remove(), 16c("#"+b+" .gg_coll_gallery_container").append('<div class="gg_gallery_wrap">'+gg_loader+"</div>"));c("#"+b+" .gg_coll_gallery_container .gg_gallery_wrap").addClass("gg_coll_ajax_wait");c("#"+b+" > table").animate({left:"-100%"},700,function(){c("#"+b+" .gg_coll_table_first_cell").css("opacity",0)});setTimeout(function(){c("#"+b+" .gg_coll_table_first_cell").css("position","absolute")},710);var e=c("#"+b).offset().top;c(window).scrollTop()>e&&c("html, body").animate({scrollTop:e-15},600);"undefined"!= 17typeof L[b][d]?Q(b,L[b][d]):z[b]=c.post(f,{gg_type:"load_coll_gallery",cid:b,gdata:d},function(g){if(-1===c.trim(g).indexOf("gg_coll_gall_topmargin"))return Q(b,"<p>Error retrieving gallery code</p>"),!1;L[b][d]=g;Q(b,g);"undefined"!=typeof gg_lcl_allow_deeplink&&gg_lcl_allow_deeplink()}).fail(function(g){console.error(g);Q(b,"<p>Error retrieving gallery code</p>")})},Q=function(b,d){c("#"+b+" .gg_coll_gallery_container .gg_gallery_wrap").remove();c("#"+b+" .gg_coll_gallery_container").removeClass("gg_main_loader").append(d); 181<c("#"+b+" .gg_coll_gall_title").length&&c("#"+b+" .gg_coll_gall_title").first().remove();ba(b);z[b]=null;var f=c("#"+b+" .gg_coll_gallery_container").find(".gg_gallery_wrap").attr("id");gg_galleries_init(f)},ba=function(b){c("#"+b+" .gg_coll_gall_title").each(function(){var d=c(this).parents(".gg_coll_table_cell").width();c(this).parent().find(".gg_coll_go_back").outerWidth(!0)+c(this).outerWidth()>d?c(this).addClass("gg_narrow_coll"):c(this).removeClass("gg_narrow_coll")})};c(document).ready(function(){c(document).on("click", 19".gg_coll_go_back",function(){var b=c(this).parents(".gg_collection_wrap").attr("id"),d=c(this).parents(".gg_collection_wrap").attr("rel");"undefined"!=typeof z[b]&&z[b]&&(z[b].abort(),z[b]=null);var f=c(window).scrollTop(),e=f+c(window).height(),g=O[b].offset().top;if(g+O[b].height()>e||g<f)f=O[b].offset().top-60,c("html, body").animate({scrollTop:f},600);
19c("#"+b+" .gg_coll_table_first_cell").css("opacity",1).css("position","static");c("#"+b+" > table").animate({left:0},700);setTimeout(function(){c("#"+ 20b+" .gg_coll_gallery_container > *").not(".gg_coll_go_back").remove();B("gcg_"+d)},700)})});c(document).ready(function(){c(document).on("click",".gg_filter a",function(b){b.preventDefault();b=c(this).parents(".gg_filter").attr("id").substr(4);var d=c(this).attr("rel"),f="#"+c(this).parents(".gg_collection_wrap").attr("id");c("#ggf_"+b+" a").removeClass("gg_cats_selected");c(this).addClass("gg_cats_selected");ca(b,d,f);c("#ggmf_"+b).length&&(c("#ggmf_"+b+" option").removeAttr("selected"),"*"!==c(this).attr("rel")&& 21c("#ggmf_"+b+" option[value="+c(this).attr("rel")+"]").attr("selected","selected"))});c(document).on("change",".gg_coll_table_cell .gg_mobile_filter_dd",function(b){b=c(this).parents(".gg_mobile_filter").attr("id").substr(5);var d=c(this).val(),f="#"+c(this).parents(".gg_collection_wrap").attr("id");ca(b,d,f);d="*"==c(this).val()?".ggf_all":".ggf_id_"+d;c("#ggf_"+b+" a").removeClass("gg_cats_selected");c("#ggf_"+b+" "+d).addClass("gg_cats_selected")})});var ca=function(b,d,f){if("*"!==d)var e=c(".ggf_id_"+ 22d).text();"*"!==d?I(b,"gcc_",d,e):B("gcc_"+b);"*"!==d&&(d=".ggc_"+d);"*"==d?c(".cid_"+b).find(".gg_coll_pag_wrap").fadeIn():c(".cid_"+b).find(".gg_coll_pag_wrap").fadeOut();d="*"==d?":not(.gg_coll_pag_hidden)":d;c(f+" .gg_coll_container").isotope({filter:d})};c.fn.gg_display_images=function(b,d){if("undefined"!=typeof b&&"undefined"!=typeof gg_gall_curr_filter[b]&&gg_gall_curr_filter[b]&&"undefined"==typeof d)return this.gg_display_images(b,":not(.gg_tags_excluded_img)"),this.gg_display_images(b, 23".gg_tags_excluded_img"),!0;("undefined"==typeof d?this:c(this).filter(d)).each(function(f,e){var g=c(this);setTimeout(function(){g.addClass("gg_shown")},("undefined"!=typeof gg_delayed_fx&&gg_delayed_fx?170:0)*f)})};var M=function(b,d,f){if("undefined"!=typeof A[b]&&A[b])return!1;d*=200;var e="undefined"==typeof f?c("#"+b+" .gg_container"):c("#"+b+" .gg_coll_container");e.animate({"min-height":80},300,"linear").animate({"max-height":9999},6500,"linear");A[b]=setTimeout(function(){(-1==navigator.appVersion.indexOf("Safari")|| 24-1!=navigator.appVersion.indexOf("Safari")&&-1==navigator.appVersion.indexOf("Version/5.")&&-1==navigator.appVersion.indexOf("Version/4."))&&e.css("min-height","none");e.stop().css("max-height","none");A[b]=!1},d);v[b]&&setTimeout(function(){v[b]=0;c("#"+b+" .gg_paginate > div").fadeTo(150,1)},500);S[b]=!0},X=function(){q=decodeURIComponent(window.location.href);if(-1!==q.indexOf("#")){var b=q.split("#");q=b[0];U="#"+b[1]}var d={};b=q.slice(q.indexOf("?")+1).split("&");c.each(b,function(f,e){var g= 25e.split("=");d[g[0]]=g[1]});return d},sa=function(b){b=b.toString().replace(/^\s+|\s+$/g,"");b=b.toLowerCase();for(var d=0;28>d;d++)b=b.replace(new RegExp("\u00e0\u00e1\u00e4\u00e2\u00e8\u00e9\u00eb\u00ea\u00ec\u00ed\u00ef\u00ee\u00f2\u00f3\u00f6\u00f4\u00f9\u00fa\u00fc\u00fb\u00f1\u00e7\u00b7/_,:;".charAt(d),"g"),"aaaaeeeeiiiioooouuuunc------".charAt(d));return b=b.replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")},C=function(b){return-1===c.inArray(b,gg_deeplinked_elems)?!1:!0}, 26I=function(b,d,f,e){if(V||!C(d)||!gg_dl_coll_gall&&c(".gg_collection_wrap .gid_"+b).length)return!1;var g=X(),h=d+b;f="undefined"!=typeof e&&e?f+"/"+sa(e):f;e=h+"="+f+U;if(-1===q.indexOf("?"))history.pushState(null,null,q+"?"+e);else{if("undefined"!=typeof g[h]&&g[h]==f)return!0;var k=q.slice(0,q.indexOf("?")+1),l=0,n=!1;c.each(g,function(u,m){if("undefined"==typeof u||("tag"==d||"search"==d)&&u=="ggp_"+b)return!0;0<l&&(k+="&");u!=h&&(k+=m?u+"="+m:u,n=!0,l++)});n&&(k+="&");k+=e;gg_basic_deeplink? 27history.replaceState(null,null,k):history.pushState(null,null,k)}},B=function(b){var d=X();if("undefined"==typeof d[b])return!1;var f=[];c.each(d,function(e,g){"undefined"!=typeof e&&e&&e!=b&&f.push(g?e+"="+g:e)});d=f.length?"?":"";d=q.slice(0,q.indexOf("?"))+d+f.join("&")+U;history.replaceState(null,null,d);-1===q.indexOf("ggt_")&&-1===q.indexOf("ggc_")&&-1===q.indexOf("ggp_")&&q.indexOf("ggs_")};window.addEventListener("popstate",function(b){b=X();V=!0;var d={galls:{},colls:{}},f={ggt:"",ggs:"", 28ggp:1,gcc:""};c.each(b,function(e,g){if("undefined"==typeof g)return!0;var h=parseInt(e.substr(4),10);if(!c(".gid_"+h).length&&!c(".cid_"+h).length)return!0;g=g.split("/")[0];if(c(".gid_"+h).length){h=c(".gid_"+h).attr("id");var k=c('.gg_pre_gallery[data-gid="'+h+'"]');"undefined"==typeof d.galls[h]&&(d.galls[h]=f);C("ggt_")&&-1!==e.indexOf("ggt_")&&k.find('.gg_tag[data-tag="'+g+'"]').length&&(d.galls[h].ggt=k.find('.gg_tag[data-tag="'+g+'"]').data("images").split(","));C("ggs_")&&-1!==e.indexOf("ggs_")&& 29k.find(".gg_gall_search_form input").length&&(d.galls[h].ggs=g);C("ggp_")&&-1!==e.indexOf("ggp_")&&!c("#"+h+" .gg_infinite_scroll").length&&(d.galls[h].ggp=parseInt(g,10))}else"undefined"==typeof d.colls[h]&&(d.colls[h]=f),C("gcc_")&&-1!==e.indexOf("gcc_")&&c(".ggf_id_"+g).length&&(d.colls[h].gcc=parseInt(g,10)),C("gcg_")&&-1!==e.indexOf("gcg_")&&c(".gg_coll_img[rel="+g+"]").length&&(d.colls[h].gcg=parseInt(g,10))});c(".gg_true_gallery").each(function(){var e=c(this).attr("id");c(this).find(".gg_paginate"); 30var g=d.galls;"undefined"==typeof g[e]&&(g[e]=f);"undefined"==typeof gg_gallery_pag[e]&&(gg_gallery_pag[e]=1);"undefined"==typeof gg_gall_curr_filter[e]&&(gg_gall_curr_filter[e]="");"undefined"==typeof gg_gall_curr_search[e]&&(gg_gall_curr_search[e]="");var h=gg_gall_curr_filter[e];gg_gallery_pag[e]=g[e].ggp;gg_gall_curr_filter[e]=g[e].ggt;gg_gall_curr_search[e]=g[e].ggs;"undefined"!=typeof gg_pag_vars&&"undefined"!=typeof gg_pag_vars[e]?J(e):h!=gg_gall_curr_filter[e]?gg_gall_curr_filter[e]?c('.gg_pre_gallery[data-gid="'+ 31e+'"] .gg_tag[data-tag="'+gg_gall_curr_filter[e].join(",")+'"]').trigger("click"):c('.gg_pre_gallery[data-gid="'+e+'"] .gg_tag[data-tag="*"]').trigger("click"):c('.gg_pre_gallery[data-gid="'+e+'"] .gg_gall_search_form input').val(gg_gall_curr_search[e]).trigger("keyup")});c(".gg_collection_wrap").each(function(){var e=parseInt(c(this).attr("rel"),10),g=d.colls;if(!c(".cid_"+e+" .ggf_all").length)return!0;C("gcc_")&&("undefined"!=typeof g[e]&&"undefined"!=typeof g[e].gcc?c(".cid_"+e+" .ggf_id_"+g[e].gcc).trigger("click"): 32c(".cid_"+e+" .ggf_all").trigger("click"));"undefined"!=typeof g[e]&&"undefined"!=typeof g[e].gcg?c(".cid_"+e+" .gg_coll_img[rel="+g[e].gcg+"]").trigger("click"):c(".cid_"+e+" .gg_coll_go_back").trigger("click")});-1===q.indexOf("ggt_")&&-1===q.indexOf("ggp_")&&-1===q.indexOf("ggs_")&&q.indexOf("gcc_");V=!1});c(document).ready(function(){c(document).on("click",".gg_true_gallery .gg_next_page",function(){var b=c(this).parents(".gg_gallery_wrap").attr("id");c(this).hasClass("gg_pag_disabled")||0!=y[b]|| 33(gg_gallery_pag[b]=("undefined"==typeof gg_gallery_pag[b]?1:gg_gallery_pag[b])+1,J(b,!0))});c(document).on("click",".gg_true_gallery .gg_prev_page",function(){var b=c(this).parents(".gg_gallery_wrap").attr("id");if(!c(this).hasClass("gg_pag_disabled")&&0==y[b]){var d="undefined"==typeof gg_gallery_pag[b]?1:gg_gallery_pag[b];gg_gallery_pag[b]=1>d-1?1:d-1;J(b,!0)}});c(document).on("click",".gg_true_gallery .gg_num_btns_wrap > div, .gg_true_gallery .gg_dots_pag_wrap > div",function(){var b=c(this).parents(".gg_gallery_wrap").attr("id"); 34c(this).hasClass("gg_pag_disabled")||0!=y[b]||(gg_gallery_pag[b]=c(this).attr("rel"),J(b,!0))});c(document).on("click",".gg_true_gallery .gg_infinite_scroll",function(){var b=c(this).parents(".gg_gallery_wrap").attr("id");gg_gallery_pag[b]="undefined"==typeof gg_gallery_pag[b]?2:gg_gallery_pag[b]+1;J(b)})});var J=function(b,d){var f=c("#"+b).attr("rel");if(c("#"+b).hasClass("gg_filtering_imgs")||y[b])return console.error("GG - wait till previous tag filter or pagination to end"),!1;y[b]=1;"undefined"== 35typeof gg_gall_curr_filter[b]&&(gg_gall_curr_filter[b]="");"undefined"==typeof gg_gall_curr_search[b]&&(gg_gall_curr_search[b]="");"undefined"!=typeof d&&(1<gg_gallery_pag[b]?I(f,"ggp_",gg_gallery_pag[b]):B("ggp_"+f));f={gid:c("#"+b).attr("rel"),gg_type:"gg_pagination",gg_filtered_imgs:gg_gall_curr_filter[b],gg_search_str:gg_gall_curr_search[b],gg_ol:c("#"+b).data("gg_ol"),gg_page:gg_gallery_pag[b],gg_pag_vars:gg_pag_vars[b]};var e=JSON.stringify(f),g="undefined"==typeof E[b]||"undefined"==typeof E[b][e]? 36!1:!0;if(1!=gg_gallery_pag[b]&&c("#"+b+" .gg_infinite_scroll").length)c("#"+b+" .gg_container").css("max-height",c("#"+b+" .gg_container").height()),c("#"+b+" .gg_paginate .gg_loader").length&&c("#"+b+" .gg_paginate .gg_loader").remove(),c("#"+b+" .gg_infinite_scroll").fadeTo(200,0),setTimeout(function(){c("#"+b+" .gg_paginate").prepend(gg_loader)},200);else{var h=c("#"+b+" .gg_container").height(),k=Math.round(h/30*25);220>k&&(k=220);"undefined"!=typeof A[b]&&(clearTimeout(A[b]),A[b]=!1);c("#"+b+ 37" .gg_container").css("max-height",h).stop().animate({"max-height":150},k);c("#"+b+" .gg_img").addClass("gg_old_page");setTimeout(function(){c("#"+b+" .gg_old_page").remove()},k);setTimeout(function(){c("#"+b+" .gg_loader").fadeIn("fast");c("#"+b+" .gg_paginate").remove()},200)}g?(c("#"+b+" .gg_paginate").fadeOut(),setTimeout(function(){da(b,E[b][e])},500)):("undefined"==typeof E[b]&&(E[b]=[]),c.post(window.location.href,f,function(l){E[b][e]=l;da(b,l)}));return!0},da=function(b,d){var f=c("<div>"+
38d+"</div>"),e=f.find(".gg_img");f=f.find(".gg_paginate");c("#"+b).find(".gg_paginate").replaceWith(f);f.length&&!c("#"+b).find(".gg_paginate").length&&c("#"+b+" .gg_container").after(f);c("#"+b).hasClass("gg_string_gallery")?(c("#"+b+" .gg_container .gg_string_clear_both").remove(),c("#"+b+" .gg_container").append(e),c("#"+b+" .gg_container").append('<div class="gg_string_clear_both" style="clear: both;"></div>')):c("#"+b+" .gg_container").append(e);c("#"+b).hasClass("gg_masonry_gallery")&&c("#"+ 39b+" .gg_container").isotope("reloadItems");c("#"+b+" .gg_img").length||(c("#"+b).addClass("gg_noresult"),c("#"+b+" .gg_loader").fadeOut());y[b]=0;v[b]=1;Z(b)};c(document).ready(function(){c(document).on("click",".gg_coll_pag_wrap .gg_next_page:not(.gg_pag_disabled)",function(){var b=c(this).parents(".gg_coll_pag_wrap"),d=parseInt(b.attr("data-pag"),10)+1;d>=parseInt(b.data("totpag"),10)&&c(this).addClass("gg_pag_disabled");b.find(".gg_prev_page").removeClass("gg_pag_disabled");b.find(".gg_nav_mid span").text(d); 40R(b,d,!1)});c(document).on("click",".gg_coll_pag_wrap .gg_prev_page:not(.gg_pag_disabled)",function(){var b=c(this).parents(".gg_coll_pag_wrap"),d=parseInt(b.attr("data-pag"),10)-1;1>=d&&c(this).addClass("gg_pag_disabled");b.find(".gg_next_page").removeClass("gg_pag_disabled");b.find(".gg_nav_mid span").text(d);R(b,d,!1)});c(document).on("click",".gg_coll_pag_wrap .gg_num_btns_wrap > div:not(.gg_pag_disabled), .gg_coll_pag_wrap .gg_dots_pag_wrap > div:not(.gg_pag_disabled)",function(){var b=c(this).parents(".gg_coll_pag_wrap"); 41parseInt(b.attr("data-pag"),10);var d=parseInt(c(this).attr("rel"),10);b.find(".gg_pagenum, .gg_pag_dot").removeClass("gg_pag_disabled");c(this).addClass("gg_pag_disabled");R(b,d,!1)});c(document).on("click",".gg_coll_pag_wrap .gg_infinite_scroll",function(){var b=c(this).parents(".gg_coll_pag_wrap"),d=parseInt(b.data("totpag"),10),f=parseInt(b.attr("data-pag"),10)+1;f>=d&&c(this).fadeOut(function(){b.slideUp()});R(b,f,!0)})});var R=function(b,d,f){var e=b.parents(".gg_collection_wrap");parseInt(b.data("totpag"), 4210);var g=parseInt(b.data("per-pag"),10),h=1,k=1;b.attr("data-pag",d);e.find(".gg_coll_img_wrap").removeClass("gg_coll_pag_hidden");e.find(".gg_coll_img_wrap").each(function(l,n){(!f&&k!=d||f&&k>d)&&c(this).addClass("gg_coll_pag_hidden");h++;h>g&&(h=1,k++)});e.find(".gg_coll_container").isotope({filter:":not(.gg_coll_pag_hidden)"})};c(window).scroll(function(){var b=c(this).scrollTop();c(".gg_auto_inf_scroll").each(function(){var d=c(this),f=d.offset().top,e=d.outerHeight(),g=c(window).height();b> 43f+e-g&&d.trigger("click")})});c(document).ready(function(){c(document).on("click",".gg_tag:not(.gg_tag_sel)",function(b){c(this).trigger("gg-click")});c(document).on("gg-click",".gg_tag",function(b){b=c(this).parents(".gg_tags_wrap").data("gid");var d=c("#"+b).attr("rel"),f=c(this).data("tag"),e="*"==f?"*":c(this).data("images").toString().split(",");Y(b,e,"tags")&&(c(this).parents(".gg_tags_wrap").find(".gg_tag_sel").removeClass("gg_tag_sel"),c(this).addClass("gg_tag_sel"),gg_gall_curr_filter[b]&& 44"*"!=e?I(d,"ggt_",c(".gg_tag_gid_"+d+" .gg_tag_sel").attr("data-tag")):B("ggt_"+d));c(this).parents(".gg_tags_wrap").find(".gg_tags_dd").length&&(c(this).parents(".gg_tags_wrap").find(".gg_tags_dd option").removeAttr("selected"),"*"!==f&&c(this).parents(".gg_tags_wrap").find('.gg_tags_dd option[value="'+f+'"]').attr("selected","selected"))});c(document).on("change",".gg_tags_dd",function(b){b=c(this).parents(".gg_tags_wrap");var d=b.data("gid"),f=c("#"+d).attr("rel"),e=b.find('.gg_tag[data-tag="'+ 45c(this).val()+'"]').data("images"),g="*"==e?e:e.split(",");if(Y(d,g,"tags"))b.find(".gg_tag_sel").removeClass("gg_tag_sel"),b.find('.gg_tag[data-images="'+e+'"]').addClass("gg_tag_sel"),gg_gall_curr_filter[d]&&"*"!=g?I(f,"ggt_",c(".gg_tag_gid_"+f+" .gg_tag_sel").attr("data-tag")):B("ggt_"+f);else return!1})});var Y=function(b,d,f){var e=c("#"+b),g=e.find(".gg_paginate").length;"undefined"==typeof D[b]&&(D[b]=!1);if(e.hasClass("gg_filtering_imgs")&&y[b])return console.error("GG - wait till previous tag filter or pagination to end"), 46!1;"tags"==f&&(gg_gall_curr_filter[b]="*"==d?"":d);h=!1;if(!g){var h=!0;"*"!=d?c.each(d,function(k,l){if(!c("#"+b+' .gg_img[data-img-id="'+l+'"]').length)return h=!1}):D[b]&&(h=!1)}h&&!D[b]&&("undefined"==typeof gg_pag_vars||"undefined"==typeof gg_pag_vars[b])||"tags"==f&&!gg_gall_curr_filter[b]&&gg_gall_curr_search[b]&&!g&&h||"tags"==f&&gg_gall_curr_filter[b]&&gg_gall_curr_search[b]&&!g||"search"==f&&!gg_gall_curr_search[b]&&gg_gall_curr_filter[b]&&!g&&h||"search"==f&&gg_gall_curr_search[b]&&gg_gall_curr_filter[b]&& 47!g?ta(e,d,f):(gg_gallery_pag[b]=1,D[b]=!0,B("ggp_"+e.attr("rel")),c("#"+b).removeClass("gg_noresult"),!J(b)||gg_gall_curr_filter[b]||gg_gall_curr_search[b]||(D[b]=!1));return!0},ta=function(b,d,f){var e=b.attr("id"),g=b.find(".gg_container"),h="gg_fakebox_"+e,k=b.hasClass("gg_string_gallery"),l="tags"==f?"gg_tags_excluded_img":"gg_search_excluded_img",n=0;if(b.hasClass("gg_masonry_gallery"))b.addClass("gg_filtering_imgs"),b.find(".gg_img").each(function(){var m=c(this).data("img-id");"*"==d||-1!== 48c.inArray(m.toString(),d)?(c(this).removeClass(l),n++):c(this).addClass(l)}),g.isotope({filter:":not(.gg_tags_excluded_img, .gg_search_excluded_img)"});else{g.css("height",g.outerHeight());f=b.hasClass("gg_standard_gallery")?"text-align: center;":"";var u=k?b.outerWidth(!0):g.outerWidth(!0);c("body").append('<div id="'+h+'" class="gg_filter_fakebox" style="width: '+u+"px; "+f+'"></div>');k&&(c("#"+h).html(b.clone()),c("#"+h+" .gg_string_gallery").removeAttr("id"),c("#"+h+" .gg_img").removeClass(l).removeAttr("style")); 49b.find(".gg_img").each(function(){var m=c(this),p=m.data("img-id");"*"==d||-1!==c.inArray(p.toString(),d)?(n++,k||c("#"+h).append('<div style="display: inline-block; width: '+m.outerWidth(!0)+"px; height: "+m.outerHeight(!0)+'px;" data-img-id="'+p+'"></div>')):c("#"+h).find('[data-img-id="'+p+'"]').remove();p=m.position();
49m.css({left:p.left+"px",top:p.top+"px"})});b.find(".gg_img").css("position","absolute");setTimeout(function(){b.addClass("gg_filtering_imgs");n&&k&&P(!1,"#"+h);b.find(".gg_img").each(function(){var p= 50c(this).data("img-id");"*"==d||-1!==c.inArray(p.toString(),d)?(p=c("#"+h+' [data-img-id="'+p+'"]').position(),c(this).css({left:p.left+"px",top:p.top+"px"}),c(this).removeClass(l)):(c(this).css({left:"auto",top:"auto"}),c(this).addClass(l))});var m=c("#"+h+" div").length?c("#"+h+" div").last().position().top+c("#"+h+" div").last().height():100;g.css("height",m);n&&k&&P(e)},50)}n?b.removeClass("gg_noresult"):b.addClass("gg_noresult");setTimeout(function(){b.removeClass("gg_filtering_imgs");b.hasClass("gg_masonry_gallery")|| 51(g.css("height","auto"),b.find(".gg_img").not(".gg_tags_excluded_img, .gg_search_excluded_img").css("position","static"),c("#"+h).remove())},500)};c(document).on("keyup",".gg_gall_search_form input",function(){"undefined"!=typeof gg_search_defer&&clearTimeout(gg_search_defer);var b=c(this);gg_search_defer=setTimeout(function(){var d=b.parents(".gg_pre_gallery").data("gid"),f=c("#"+d),e=c("#"+d).attr("rel"),g=[],h=c.trim(b.val());if(2>h.length)h="",g="*",b.parents(".gg_gall_search_form").removeClass("ggs_has_txt"); 52else{b.parents(".gg_gall_search_form").addClass("ggs_has_txt");var k=h.toLowerCase().split(" ");f.find(".gg_img").each(function(){var l=c(this).data("gg-title")+" "+c(this).data("gg-descr")+" "+c(this).data("gg-author")+" "+c(this).data("gg-tags");l=l.toLowerCase();var n=c(this).data("img-id");c.each(k,function(u,m){if(2>m.length)return!0;if(-1!==l.indexOf(m))return g.push(""+n),!1})})}gg_gall_curr_search[d]=h;Y(d,g,"search",h);h?I(e,"ggs_",h):B("ggs_"+e)},300)});c(document).on("click",".gg_clear_search", 53function(){var b=c(this).parents(".gg_gall_search_form").find("input");b.val("");b.trigger("keyup")});jQuery(document).on("keypress",".gg_gall_search_form input",function(b){return 13!=b.keyCode});var H=function(b,d){c("#"+b+" .gg_img").each(function(f,e){var g=c(this);c.trim(g.find(".gg_img_title").html())?g.find(".gg_main_overlay").show():g.find(".gg_main_overlay").hide()})};"ontouchstart"in window&&(c(".gg_img").on("touchstart",function(){c(this).addClass("gg_touch_on")}),c(".gg_img").on("touchend", 54function(){c(this).removeClass("gg_touch_on")}));window.gg_itg_init=function(b){G(b);lc_lazyload("#"+b+" .gg_img .gg_main_thumb",{allLoaded:function(){c("#"+b+" .gg_itg_container").addClass("gg_itg_shown")}})};c(document).on("click",".gg_itg_wrap",function(b){var d=c(this).attr("id");b=c(b.terget).hasClass("gg_itg_img")?c(b.target).data("index"):c(b.target).parents(".gg_itg_img").length?c(b.target).parents(".gg_itg_img").data("index"):0;gg_throw_lb(gg_itg_obj[d],d,b,!0)});window.gg_galleria_show= 55function(b){setTimeout(function(){c(b+" .galleria-stage").length?(c(b).removeClass("gg_show_loader"),c(b+" .galleria-container").fadeTo(200,1)):gg_galleria_show(b)},50)};var ua=function(b){return c(b).hasClass("gg_galleria_responsive")?parseFloat(c(b).data("asp-ratio")):c(b).height()};window.gg_galleria_init=function(b){var d=c(b).data("gg-autoplay"),f=gg_galleria_autoplay&&"0"!=d||"1"==d?!0:!1;Galleria.run(b,{theme:"ggallery",height:ua(b),fullscreenDoubleTap:!1,wait:!0,debug:!1,dataConfig:function(e){return{title:c(e).attr("alt"), 56description:c(e).data("description")}},extend:function(){var e=this;c(b+" .galleria-loader").append(gg_loader);f&&setTimeout(function(){c(b+" .galleria-gg-play").addClass("galleria-gg-pause");e.play(gg_galleria_interval)},50);c(b+" .galleria-gg-play").click(function(){c(this).toggleClass("galleria-gg-pause");e.playToggle(gg_galleria_interval)});c(b+" .galleria-gg-lightbox").click(function(){c(b+" .galleria-thumbnails > div").each(function(g,h){c(this).hasClass("active")&&(gg_active_index=g)});c(b+ 57" .galleria-gg-play").removeClass("galleria-gg-pause");e.pause()});c(b+" .galleria-gg-toggle-thumb").click(function(){var g=c(this).parents(".gg_galleria_slider_wrap"),h=c(this).parents(".gg_galleria_slider_wrap").find(".galleria-thumbnails-container").height();g.hasClass("galleria-gg-show-thumbs")||g.hasClass("gg_galleria_slider_show_thumbs")?(g.stop().animate({"padding-bottom":"15px"}
57,400),g.find(".galleria-thumbnails-container").stop().animate({bottom:"20px",opacity:0},400),g.removeClass("galleria-gg-show-thumbs"), 58g.hasClass("gg_galleria_slider_show_thumbs")&&g.removeClass("gg_galleria_slider_show_thumbs")):(g.stop().animate({"padding-bottom":h+2+12},400),g.find(".galleria-thumbnails-container").stop().animate({bottom:"-"+(h+2+10)+"px",opacity:1},400),g.addClass("galleria-gg-show-thumbs"))});"undefined"!=typeof gg_lcl_allow_deeplink&&gg_lcl_allow_deeplink()}})};window.gg_car_calc_breakpoints=function(b,d,f,e){var g=[];if(e){d=c("#gg_car_"+b).width()+50;var h=Math.round(d/e);b={breakpoint:d,settings:{slidesToShow:e, 59slidesToScroll:f?e:1}};g.push(b);for(a=e;1<=a;a--)b={breakpoint:d-h*(e-a),settings:{slidesToShow:a,slidesToScroll:f?a:1}},g.push(b)}else for(a=1;100>a;a++){e=a*d;if(2E3<e)break;b={breakpoint:e,settings:{slidesToShow:a,slidesToScroll:f?a:1}};g.push(b)}return g};window.gg_carousel_preload=function(b,d){c("#gg_car_"+b).prepend(gg_loader);if(c("#gg_car_"+b+" .gg_grayscale_fx").length||c("#gg_car_"+b+" .gg_blur_fx").length)f=!1;else{lc_lazyload("#gg_car_"+b+" img",{allLoaded:function(e){c("#gg_car_"+b+ 60" .gg_img_inner").height()}});var f=!0}lc_lazyload("#gg_car_"+b+" "+(f?"":".slick-active")+" img",{allLoaded:function(e){c("#gg_car_"+b+" .gg_loader").fadeOut(200,function(){c(this).remove()});c("#gg_car_"+b).removeClass("gg_car_preload");d&&c("#gg_car_"+b).slick("slickPlay");setTimeout(function(){ea(b);c(window).trigger("gg_loaded_carousel",[b])},f?1200:320)}})};var ea=function(b){c(("undefined"==typeof b?"":"#gg_car_"+b)+" .gg_img.gg_car_item").each(function(d,f){var e=c(this),g=e.find(".gg_main_img_wrap > *"), 61h=c(this).width(),k=c(this).height();c("<img />").on("load",function(){var l=Math.max(h/this.width,k/this.height),n=this.height*l;g.css("width",this.width*l).css("height",n);e.addClass("gg_car_img_ready")}).attr("src",e.find(".gg_main_thumb").attr("src"))})};c(document).ready(function(b){c(document).on("mouseenter touchstart",".gg_car_pause_on_h",function(d){c(this).slick("slickPause")}).on("mouseleave touchend",".gg_car_pause_on_h",function(d){c(this).hasClass("gg_car_autoplay")&&c(this).slick("slickPlay")}); 62c(document).on("click",".gg_carousel_wrap .gg_img:not(.gg_linked_img)",function(d){var f=c(this);setTimeout(function(){f.parents(".gg_carousel_wrap").slick("slickPause")},150)});c(document).on("click",".gg_carousel_wrap .slick-arrow, .gg_carousel_wrap .slick-dots li:not(.slick-active)",function(d){c(this).parents(".gg_carousel_wrap").removeClass("gg_car_autoplay")});c(document).on("swipe",".gg_carousel_wrap",function(d){c(this).removeClass("gg_car_autoplay")})});var fa=function(b,d,f,e){var g=function(h, 63k,l){var n;return function(){var u=this,m=arguments;n?clearTimeout(n):l&&h.apply(u,m);n=setTimeout(function(){l||h.apply(u,m);n=null},k||e)}};b.fn[d]=function(h){return h?this.on(f,g(h)):this.trigger(d)}};fa(c,"gg_smartresize","resize",49);c(window).gg_smartresize(function(){c(".gg_galleria_responsive").each(function(){var b=c(this).width(),d=parseFloat(c(this).data("asp-ratio"));b=Math.ceil(b*d);c(this).css("height",b)})});fa(c,"gg_smartscroll","scroll",50);c(window).gg_smartscroll(function(){va()}); 64var va=function(){c(".gg_coll_back_to_new_style").length&&"undefined"!=typeof gg_back_to_gall_scroll&&gg_back_to_gall_scroll&&c(".gg_coll_gallery_container .gg_gallery_wrap").each(function(b,d){var f=c(this).height(),e=c(this).parents(".gg_coll_gallery_container").find(".gg_coll_go_back");if(f>c(window).height()){var g=c(this).offset();c(window).scrollTop()>g.top&&c(window).scrollTop()<g.top+f-60?(f=Math.round(c(window).scrollTop()-g.top)+55,0>f&&(f=0),e.addClass("gg_cgb_sticky").css("top",f)):e.removeClass("gg_cgb_sticky").css("top", 650)}else e.removeClass("gg_cgb_sticky").css("top",0)})};c(document).ready(function(){setInterval(function(){c(".gg_gallery_wrap").each(function(){var b=c(this).attr("id");if("undefined"==typeof S[b])return!0;var d=c(this).hasClass("gg_collection_wrap")?c("#"+b+" .gg_coll_container").width():c("#"+b).width();if("undefined"==typeof x[b])return x[b]=d,!0;x[b]!=d&&(wa(b),x[b]=d)})},200)});var wa=function(b){"undefined"!=typeof T[b]&&clearTimeout(T[b]);T[b]=setTimeout(function(){c("#"+b).trigger("gg_resize_gallery", 66[b])},50)};c(document).ready(function(){c(".gg_pre_gallery.gg_gall_has_filter.gg_gall_has_search").each(function(){var b=c(this).data("gid");c("#"+b).trigger("gg_resize_gallery",[b]);c(this).fadeTo(300,1)})});c(document).on("gg_resize_gallery",".gg_gallery_wrap",function(b,d){var f=".gg_pre_gallery.gg_gall_has_filter.gg_gall_has_search[data-gid="+c(this).attr("id")+"]";c(f).length&&(850<=c(this).width()?c(f).removeClass("gg_pg_on_mobile"):c(f).addClass("gg_pg_on_mobile"));c(this).hasClass("gg_collection_wrap")&& 67c(this).find(".gg_coll_gallery_container .gg_container").length&&ba(d);c(this).hasClass("gg_carousel_wrap")?ea(d):gg_galleries_init(d,!0)});if("undefined"!=typeof gg_preload_hires_img&&gg_preload_hires_img){var ha=c(".gg_gallery_wrap, .gg_carousel_wrap").length,ia=0;if(ha)c(window).on("gg_loaded_gallery gg_loaded_collection gg_loaded_carousel",function(){ia++;ia==ha&&setTimeout(function(){c(".gg_img").not(".gg_coll_img, .gg_linked_img").each(function(){c("<img />")[0].src=c(this).data("gg-url")})}, 68300)})}window.gg_lb_html_fix=function(b){b="string"==typeof b?b.replace(/"/g,""").replace(/</g,"<").replace(/>/g,">"):"";return c.trim(b)};c(document).ready(function(){c(document).on("click",".gg_gallery_wrap:not(.gg_static_car) div.gg_img:not(.gg_coll_img, .gg_linked_img, .gg_tags_excluded_img)",function(b){b.preventDefault();var d=[];b=c(this);var f=b.attr("rel"),e=b.parents(".gg_gallery_wrap").attr("id"),g=b.data("gg-url"),h=0;c("#"+e+" .gg_img:not(.gg_coll_img, .gg_linked_img, .gg_tags_excluded_img)").each(function(k, 69l){var n=c(this).data("gg-url");"undefined"==typeof d[n]&&(d[n]={img:n,title:gg_lb_html_fix(c(this).data("gg-title")),descr:gg_lb_html_fix(c(this).data("gg-descr")),author:gg_lb_html_fix(c(this).data("gg-author"))},n==g&&(h=k))});gg_throw_lb(d,f,h)})})})(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.