// ================================================== // fancybox v3.1.28 // // licensed gplv3 for open source use // or fancybox commercial license for commercial use // // http://fancyapps.com/fancybox/ // copyright 2017 fancyapps // // ================================================== !function(t,e,n,o){"use strict";function i(t){var e=t.currenttarget,o=t.data?t.data.options:{},i=o.selector?n(o.selector):t.data?t.data.items:[],a=n(e).attr("data-fancybox")||"",s=0,r=n.fancybox.getinstance();t.preventdefault(),r&&r.current.opts.$orig.is(e)||(a?(i=i.length?i.filter('[data-fancybox="'+a+'"]'):n('[data-fancybox="'+a+'"]'),s=i.index(e),s<0&&(s=0)):i=[e],n.fancybox.open(i,o,s))}if(n){if(n.fn.fancybox)return void n.error("fancybox already initialized");var a={loop:!1,margin:[44,0],gutter:50,keyboard:!0,arrows:!0,infobar:!1,toolbar:!0,buttons:["slideshow","fullscreen","thumbs","close"],idletime:4,smallbtn:"auto",protect:!1,modal:!1,image:{preload:"auto"},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'',preload:!0,css:{},attr:{scrolling:"auto"}},animationeffect:"zoom",animationduration:366,zoomopacity:"auto",transitioneffect:"fade",transitionduration:366,slideclass:"",baseclass:"",basetpl:'',spinnertpl:'
',errortpl:'

{{error}}

',btntpl:{slideshow:'',fullscreen:'',thumbs:'',close:'',smallbtn:''},parentel:"body",autofocus:!0,backfocus:!0,trapfocus:!0,fullscreen:{autostart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideshow:{autostart:!1,speed:4e3},thumbs:{autostart:!1,hideonclose:!0},oninit:n.noop,beforeload:n.noop,afterload:n.noop,beforeshow:n.noop,aftershow:n.noop,beforeclose:n.noop,afterclose:n.noop,onactivate:n.noop,ondeactivate:n.noop,clickcontent:function(t,e){return"image"===t.type&&"zoom"},clickslide:"close",clickoutside:"close",dblclickcontent:!1,dblclickslide:!1,dblclickoutside:!1,mobile:{clickcontent:function(t,e){return"image"===t.type&&"togglecontrols"},clickslide:function(t,e){return"image"===t.type?"togglecontrols":"close"},dblclickcontent:function(t,e){return"image"===t.type&&"zoom"},dblclickslide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{close:"close",next:"next",prev:"previous",error:"the requested content cannot be loaded.
please try again later.",play_start:"start slideshow",play_stop:"pause slideshow",full_screen:"full screen",thumbs:"thumbnails"},de:{close:"schliessen",next:"weiter",prev:"zurück",error:"die angeforderten daten konnten nicht geladen werden.
bitte versuchen sie es später nochmal.",play_start:"diaschau starten",play_stop:"diaschau beenden",full_screen:"vollbild",thumbs:"vorschaubilder"}}},s=n(t),r=n(e),c=0,l=function(t){return t&&t.hasownproperty&&t instanceof n},u=function(){return t.requestanimationframe||t.webkitrequestanimationframe||t.mozrequestanimationframe||t.orequestanimationframe||function(e){return t.settimeout(e,1e3/60)}}(),d=function(){var t,n=e.createelement("fakeelement"),i={transition:"transitionend",otransition:"otransitionend",moztransition:"transitionend",webkittransition:"webkittransitionend"};for(t in i)if(n.style[t]!==o)return i[t]}(),f=function(t){return t&&t.length&&t[0].offsetheight},h=function(t,o,i){var s=this;s.opts=n.extend(!0,{index:i},a,o||{}),o&&n.isarray(o.buttons)&&(s.opts.buttons=o.buttons),s.id=s.opts.id||++c,s.group=[],s.currindex=parseint(s.opts.index,10)||0,s.previndex=null,s.prevpos=null,s.currpos=0,s.firstrun=null,s.creategroup(t),s.group.length&&(s.$lastfocus=n(e.activeelement).blur(),s.slides={},s.init(t))};n.extend(h.prototype,{init:function(){var t,e,o,i=this,a=i.group[i.currindex].opts;i.scrolltop=r.scrolltop(),i.scrollleft=r.scrollleft(),n.fancybox.getinstance()||n.fancybox.ismobile||"hidden"===n("body").css("overflow")||(t=n("body").width(),n("html").addclass("fancybox-enabled"),t=n("body").width()-t,t>1&&n("head").append('")),o="",n.each(a.buttons,function(t,e){o+=a.btntpl[e]||""}),e=n(i.translate(i,a.basetpl.replace("{{buttons}}",o))).addclass("fancybox-is-hidden").attr("id","fancybox-container-"+i.id).addclass(a.baseclass).data("fancybox",i).prependto(a.parentel),i.$refs={container:e},["bg","inner","infobar","toolbar","stage","caption"].foreach(function(t){i.$refs[t]=e.find(".fancybox-"+t)}),(!a.arrows||i.group.length<2)&&e.find(".fancybox-navigation").remove(),a.infobar||i.$refs.infobar.remove(),a.toolbar||i.$refs.toolbar.remove(),i.trigger("oninit"),i.activate(),i.jumpto(i.currindex)},translate:function(t,e){var n=t.opts.i18n[t.opts.lang];return e.replace(/\{\{(\w+)\}\}/g,function(t,e){var i=n[e];return i===o?t:i})},creategroup:function(t){var e=this,i=n.makearray(t);n.each(i,function(t,i){var a,s,r,c,l={},u={},d=[];n.isplainobject(i)?(l=i,u=i.opts||i):"object"===n.type(i)&&n(i).length?(a=n(i),d=a.data(),u="options"in d?d.options:{},u="object"===n.type(u)?u:{},l.src="src"in d?d.src:u.src||a.attr("href"),["width","height","thumb","type","filter"].foreach(function(t){t in d&&(u[t]=d[t])}),"srcset"in d&&(u.image={srcset:d.srcset}),u.$orig=a,l.type||l.src||(l.type="inline",l.src=i)):l={type:"html",src:i+""},l.opts=n.extend(!0,{},e.opts,u),n.fancybox.ismobile&&(l.opts=n.extend(!0,{},l.opts,l.opts.mobile)),s=l.type||l.opts.type,r=l.src||"",!s&&r&&(r.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?s="image":r.match(/\.(pdf)((\?|#).*)?$/i)?s="pdf":"#"===r.charat(0)&&(s="inline")),l.type=s,l.index=e.group.length,l.opts.$orig&&!l.opts.$orig.length&&delete l.opts.$orig,!l.opts.$thumb&&l.opts.$orig&&(l.opts.$thumb=l.opts.$orig.find("img:first")),l.opts.$thumb&&!l.opts.$thumb.length&&delete l.opts.$thumb,"function"===n.type(l.opts.caption)?l.opts.caption=l.opts.caption.apply(i,[e,l]):"caption"in d&&(l.opts.caption=d.caption),l.opts.caption=l.opts.caption===o?"":l.opts.caption+"","ajax"===s&&(c=r.split(/\s+/,2),c.length>1&&(l.src=c.shift(),l.opts.filter=c.shift())),"auto"==l.opts.smallbtn&&(n.inarray(s,["html","inline","ajax"])>-1?(l.opts.toolbar=!1,l.opts.smallbtn=!0):l.opts.smallbtn=!1),"pdf"===s&&(l.type="iframe",l.opts.iframe.preload=!1),l.opts.modal&&(l.opts=n.extend(!0,l.opts,{infobar:0,toolbar:0,smallbtn:0,keyboard:0,slideshow:0,fullscreen:0,thumbs:0,touch:0,clickcontent:!1,clickslide:!1,clickoutside:!1,dblclickcontent:!1,dblclickslide:!1,dblclickoutside:!1})),e.group.push(l)})},addevents:function(){var o=this;o.removeevents(),o.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stoppropagation(),t.preventdefault(),o.close(t)}).on("click.fb-prev touchend.fb-prev","[data-fancybox-prev]",function(t){t.stoppropagation(),t.preventdefault(),o.previous()}).on("click.fb-next touchend.fb-next","[data-fancybox-next]",function(t){t.stoppropagation(),t.preventdefault(),o.next()}),s.on("orientationchange.fb resize.fb",function(t){t&&t.originalevent&&"resize"===t.originalevent.type?u(function(){o.update()}):(o.$refs.stage.hide(),settimeout(function(){o.$refs.stage.show(),o.update()},500))}),r.on("focusin.fb",function(t){var i=n.fancybox?n.fancybox.getinstance():null;i.isclosing||!i.current||!i.current.opts.trapfocus||n(t.target).hasclass("fancybox-container")||n(t.target).is(e)||i&&"fixed"!==n(t.target).css("position")&&!i.$refs.container.has(t.target).length&&(t.stoppropagation(),i.focus(),s.scrolltop(o.scrolltop).scrollleft(o.scrollleft))}),r.on("keydown.fb",function(t){var e=o.current,i=t.keycode||t.which;if(e&&e.opts.keyboard&&!n(t.target).is("input")&&!n(t.target).is("textarea"))return 8===i||27===i?(t.preventdefault(),void o.close(t)):37===i||38===i?(t.preventdefault(),void o.previous()):39===i||40===i?(t.preventdefault(),void o.next()):void o.trigger("afterkeydown",t,i)}),o.group[o.currindex].opts.idletime&&(o.idlesecondscounter=0,r.on("mousemove.fb-idle mouseenter.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(){o.idlesecondscounter=0,o.isidle&&o.showcontrols(),o.isidle=!1}),o.idleinterval=t.setinterval(function(){o.idlesecondscounter++,o.idlesecondscounter>=o.group[o.currindex].opts.idletime&&(o.isidle=!0,o.idlesecondscounter=0,o.hidecontrols())},1e3))},removeevents:function(){var e=this;s.off("orientationchange.fb resize.fb"),r.off("focusin.fb keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),e.idleinterval&&(t.clearinterval(e.idleinterval),e.idleinterval=null)},previous:function(t){return this.jumpto(this.currpos-1,t)},next:function(t){return this.jumpto(this.currpos+1,t)},jumpto:function(t,e,i){var a,s,r,c,l,u,d,h=this,p=h.group.length;if(!(h.issliding||h.isclosing||h.isanimating&&h.firstrun)){if(t=parseint(t,10),s=h.current?h.current.opts.loop:h.opts.loop,!s&&(t<0||t>=p))return!1;if(a=h.firstrun=null===h.firstrun,!(p<2&&!a&&h.issliding)){if(c=h.current,h.previndex=h.currindex,h.prevpos=h.currpos,r=h.createslide(t),p>1&&((s||r.index>0)&&h.createslide(t-1),(s||r.indexr.pos?"next":"previous"),c.$slide.removeclass("fancybox-slide--complete fancybox-slide--current fancybox-slide--next fancybox-slide--previous"),c.iscomplete=!1,e&&(r.ismoved||r.opts.transitioneffect)&&(r.ismoved?c.$slide.addclass(d):(d="fancybox-animated "+d+" fancybox-fx-"+r.opts.transitioneffect,n.fancybox.animate(c.$slide,d,e,function(){c.$slide.removeclass(d).removeattr("style")}))))}}},createslide:function(t){var e,o,i=this;return o=t%i.group.length,o=o<0?i.group.length+o:o,!i.slides[t]&&i.group[o]&&(e=n('
').appendto(i.$refs.stage),i.slides[t]=n.extend(!0,{},i.group[o],{pos:t,$slide:e,isloaded:!1}),i.updateslide(i.slides[t])),i.slides[t]},scaletoactual:function(t,e,i){var a,s,r,c,l,u=this,d=u.current,f=d.$content,h=parseint(d.$slide.width(),10),p=parseint(d.$slide.height(),10),g=d.width,b=d.height;"image"!=d.type||d.haserror||!f||u.isanimating||(n.fancybox.stop(f),u.isanimating=!0,t=t===o?.5*h:t,e=e===o?.5*p:e,a=n.fancybox.gettranslate(f),c=g/a.width,l=b/a.height,s=.5*h-.5*g,r=.5*p-.5*b,g>h&&(s=a.left*c-(t*c-t),s>0&&(s=0),sp&&(r=a.top*l-(e*l-e),r>0&&(r=0),rt.width||o.height>t.height))},isscaleddown:function(){var t=this,e=t.current,o=e.$content,i=!1;return o&&(i=n.fancybox.gettranslate(o),i=i.width1||math.abs(n.height()-o.height)>1),o},loadslide:function(t){var e,o,i,a=this;if(!t.isloading&&!t.isloaded){switch(t.isloading=!0,a.trigger("beforeload",t),e=t.type,o=t.$slide,o.off("refresh").trigger("onreset").addclass("fancybox-slide--"+(e||"unknown")).addclass(t.opts.slideclass),e){case"image":a.setimage(t);break;case"iframe":a.setiframe(t);break;case"html":a.setcontent(t,t.src||t.content);break;case"inline":n(t.src).length?a.setcontent(t,n(t.src)):a.seterror(t);break;case"ajax":a.showloading(t),i=n.ajax(n.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,n){"success"===n&&a.setcontent(t,e)},error:function(e,n){e&&"abort"!==n&&a.seterror(t)}})),o.one("onreset",function(){i.abort()});break;default:a.seterror(t)}return!0}},setimage:function(e){var o,i,a,s,r=this,c=e.opts.image.srcset;if(c){a=t.devicepixelratio||1,s=t.innerwidth*a,i=c.split(",").map(function(t){var e={};return t.trim().split(/\s+/).foreach(function(t,n){var o=parseint(t.substring(0,t.length-1),10);return 0===n?e.url=t:void(o&&(e.value=o,e.postfix=t[t.length-1]))}),e}),i.sort(function(t,e){return t.value-e.value});for(var l=0;l=s||"x"===u.postfix&&u.value>=a){o=u;break}}!o&&i.length&&(o=i[i.length-1]),o&&(e.src=o.url,e.width&&e.height&&"w"==o.postfix&&(e.height=e.width/e.height*o.value,e.width=o.value))}e.$content=n('
').addclass("fancybox-is-hidden").appendto(e.$slide),e.opts.preload!==!1&&e.opts.width&&e.opts.height&&(e.opts.thumb||e.opts.$thumb)?(e.width=e.opts.width,e.height=e.opts.height,e.$ghost=n("").one("error",function(){n(this).remove(),e.$ghost=null,r.setbigimage(e)}).one("load",function(){r.afterload(e),r.setbigimage(e)}).addclass("fancybox-image").appendto(e.$content).attr("src",e.opts.thumb||e.opts.$thumb.attr("src"))):r.setbigimage(e)},setbigimage:function(t){var e=this,o=n("");t.$image=o.one("error",function(){e.seterror(t)}).one("load",function(){cleartimeout(t.timouts),t.timouts=null,e.isclosing||(t.width=this.naturalwidth,t.height=this.naturalheight,t.opts.image.srcset&&o.attr("sizes","100vw").attr("srcset",t.opts.image.srcset),e.hideloading(t),t.$ghost?t.timouts=settimeout(function(){t.timouts=null,t.$ghost.hide()},math.min(300,math.max(1e3,t.height/1600))):e.afterload(t))}).addclass("fancybox-image").attr("src",t.src).appendto(t.$content),(o[0].complete||"complete"==o[0].readystate)&&o[0].naturalwidth&&o[0].naturalheight?o.trigger("load"):o[0].error?o.trigger("error"):t.timouts=settimeout(function(){o[0].complete||t.haserror||e.showloading(t)},100)},setiframe:function(t){var e,i=this,a=t.opts.iframe,s=t.$slide;t.$content=n('
').css(a.css).appendto(s),e=n(a.tpl.replace(/\{rnd\}/g,(new date).gettime())).attr(a.attr).appendto(t.$content),a.preload?(i.showloading(t),e.on("load.fb error.fb",function(e){this.isready=1,t.$slide.trigger("refresh"),i.afterload(t)}),s.on("refresh.fb",function(){var n,i,s,r=t.$content,c=a.css.width,l=a.css.height;if(1===e[0].isready){try{i=e.contents(),s=i.find("body")}catch(t){}s&&s.length&&(c===o&&(n=e[0].contentwindow.document.documentelement.scrollwidth,c=math.ceil(s.outerwidth(!0)+(r.width()-n)),c+=r.outerwidth()-r.innerwidth()),l===o&&(l=math.ceil(s.outerheight(!0)),l+=r.outerheight()-r.innerheight()),c&&r.width(c),l&&r.height(l)),r.removeclass("fancybox-is-hidden")}})):this.afterload(t),e.attr("src",t.src),t.opts.smallbtn===!0&&t.$content.prepend(i.translate(t,t.opts.btntpl.smallbtn)),s.one("onreset",function(){try{n(this).find("iframe").hide().attr("src","//about:blank")}catch(t){}n(this).empty(),t.isloaded=!1})},setcontent:function(t,e){var o=this;o.isclosing||(o.hideloading(t),t.$slide.empty(),l(e)&&e.parent().length?(e.parent(".fancybox-slide--inline").trigger("onreset"),t.$placeholder=n("
").hide().insertafter(e),e.css("display","inline-block")):t.haserror||("string"===n.type(e)&&(e=n("
").append(n.trim(e)).contents(),3===e[0].nodetype&&(e=n("
").html(e))),t.opts.filter&&(e=n("
").html(e).find(t.opts.filter))),t.$slide.one("onreset",function(){t.$placeholder&&(t.$placeholder.after(e.hide()).remove(),t.$placeholder=null),t.$smallbtn&&(t.$smallbtn.remove(),t.$smallbtn=null),t.haserror||(n(this).empty(),t.isloaded=!1)}),t.$content=n(e).appendto(t.$slide),t.opts.smallbtn&&!t.$smallbtn&&(t.$smallbtn=n(o.translate(t,t.opts.btntpl.smallbtn)).appendto(t.$content.filter("div").first())),this.afterload(t))},seterror:function(t){t.haserror=!0,t.$slide.removeclass("fancybox-slide--"+t.type),this.setcontent(t,this.translate(t,t.opts.errortpl))},showloading:function(t){var e=this;t=t||e.current,t&&!t.$spinner&&(t.$spinner=n(e.opts.spinnertpl).appendto(t.$slide))},hideloading:function(t){var e=this;t=t||e.current,t&&t.$spinner&&(t.$spinner.remove(),delete t.$spinner)},afterload:function(t){var e=this;e.isclosing||(t.isloading=!1,t.isloaded=!0,e.trigger("afterload",t),e.hideloading(t),t.opts.protect&&t.$content&&!t.haserror&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventdefault(),!0}),"image"===t.type&&n('
').appendto(t.$content)),e.revealcontent(t))},revealcontent:function(t){var e,i,a,s,r,c=this,l=t.$slide,u=!1;return e=t.opts[c.firstrun?"animationeffect":"transitioneffect"],a=t.opts[c.firstrun?"animationduration":"transitionduration"],a=parseint(t.forcedduration===o?a:t.forcedduration,10),!t.ismoved&&t.pos===c.currpos&&a||(e=!1),"zoom"!==e||t.pos===c.currpos&&a&&"image"===t.type&&!t.haserror&&(u=c.getthumbpos(t))||(e="fade"),"zoom"===e?(r=c.getfitpos(t),r.scalex=r.width/u.width,r.scaley=r.height/u.height,delete r.width,delete r.height,s=t.opts.zoomopacity,"auto"==s&&(s=math.abs(t.width/t.height-u.width/u.height)>.1),s&&(u.opacity=.1,r.opacity=1),n.fancybox.settranslate(t.$content.removeclass("fancybox-is-hidden"),u),f(t.$content),void n.fancybox.animate(t.$content,r,a,function(){c.complete()})):(c.updateslide(t),e?(n.fancybox.stop(l),i="fancybox-animated fancybox-slide--"+(t.pos>c.prevpos?"next":"previous")+" fancybox-fx-"+e,l.removeattr("style").removeclass("fancybox-slide--current fancybox-slide--next fancybox-slide--previous").addclass(i),t.$content.removeclass("fancybox-is-hidden"),f(l),void n.fancybox.animate(l,"fancybox-slide--current",a,function(e){l.removeclass(i).removeattr("style"),t.pos===c.currpos&&c.complete()},!0)):(f(l),t.$content.removeclass("fancybox-is-hidden"),void(t.pos===c.currpos&&c.complete())))},getthumbpos:function(o){var i,a=this,s=!1,r=function(e){for(var o,i=e[0],a=i.getboundingclientrect(),s=[];null!==i.parentelement;)"hidden"!==n(i.parentelement).css("overflow")&&"auto"!==n(i.parentelement).css("overflow")||s.push(i.parentelement.getboundingclientrect()),i=i.parentelement;return o=s.every(function(t){var e=math.min(a.right,t.right)-math.max(a.left,t.left),n=math.min(a.bottom,t.bottom)-math.max(a.top,t.top);return e>0&&n>0}),o&&a.bottom>0&&a.right>0&&a.left=t.currpos-1&&o.pos<=t.currpos+1?i[o.pos]=o:o&&(n.fancybox.stop(o.$slide),o.$slide.off().remove())}),t.slides=i,t.updatecursor(),t.trigger("aftershow"),(n(e.activeelement).is("[disabled]")||o.opts.autofocus&&"image"!=o.type&&"iframe"!==o.type)&&t.focus())},preload:function(){var t,e,n=this;n.group.length<2||(t=n.slides[n.currpos+1],e=n.slides[n.currpos-1],t&&"image"===t.type&&n.loadslide(t),e&&"image"===e.type&&n.loadslide(e))},focus:function(){var t,e=this.current;this.isclosing||(e&&e.iscomplete&&(t=e.$slide.find("input[autofocus]:enabled:visible:first"),t.length||(t=e.$slide.find("button,:input,[tabindex],a").filter(":enabled:visible:first"))),t=t&&t.length?t:this.$refs.container,t.focus())},activate:function(){var t=this;n(".fancybox-container").each(function(){var e=n(this).data("fancybox");e&&e.uid!==t.uid&&!e.isclosing&&e.trigger("ondeactivate")}),t.current&&(t.$refs.container.index()>0&&t.$refs.container.prependto(e.body),t.updatecontrols()),t.trigger("onactivate"),t.addevents()},close:function(t,e){var o,i,a,s,r,c,l=this,f=l.current,h=function(){l.cleanup(t)};return!l.isclosing&&(l.isclosing=!0,l.trigger("beforeclose",t)===!1?(l.isclosing=!1,u(function(){l.update()}),!1):(l.removeevents(),f.timouts&&cleartimeout(f.timouts),a=f.$content,o=f.opts.animationeffect,i=n.isnumeric(e)?e:o?f.opts.animationduration:0,f.$slide.off(d).removeclass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),f.$slide.siblings().trigger("onreset").remove(),i&&l.$refs.container.removeclass("fancybox-is-open").addclass("fancybox-is-closing"),l.hideloading(f),l.hidecontrols(),l.updatecursor(),"zoom"!==o||t!==!0&&a&&i&&"image"===f.type&&!f.haserror&&(c=l.getthumbpos(f))||(o="fade"),"zoom"===o?(n.fancybox.stop(a),r=n.fancybox.gettranslate(a),r.width=r.width*r.scalex,r.height=r.height*r.scaley,s=f.opts.zoomopacity,"auto"==s&&(s=math.abs(f.width/f.height-c.width/c.height)>.1),s&&(c.opacity=0),r.scalex=r.width/c.width,r.scaley=r.height/c.height,r.width=c.width,r.height=c.height,n.fancybox.settranslate(f.$content,r),n.fancybox.animate(f.$content,c,i,h),!0):(o&&i?t===!0?settimeout(h,i):n.fancybox.animate(f.$slide.removeclass("fancybox-slide--current"),"fancybox-animated fancybox-slide--previous fancybox-fx-"+o,i,h):h(),!0)))},cleanup:function(t){var e,o=this;o.current.$slide.trigger("onreset"),o.$refs.container.empty().remove(),o.trigger("afterclose",t),o.$lastfocus&&o.current.opts.backfocus&&o.$lastfocus.focus(),o.current=null,e=n.fancybox.getinstance(),e?e.activate():(s.scrolltop(o.scrolltop).scrollleft(o.scrollleft),n("html").removeclass("fancybox-enabled"),n("#fancybox-style-noscroll").remove())},trigger:function(t,e){var o,i=array.prototype.slice.call(arguments,1),a=this,s=e&&e.opts?e:a.current;return s?i.unshift(s):s=a,i.unshift(a),n.isfunction(s.opts[t])&&(o=s.opts[t].apply(s,i)),o===!1?o:void("afterclose"===t?r.trigger(t+".fb",i):a.$refs.container.trigger(t+".fb",i))},updatecontrols:function(t){var e=this,o=e.current,i=o.index,a=o.opts,s=a.caption,r=e.$refs.caption;o.$slide.trigger("refresh"),e.$caption=s&&s.length?r.html(s):null,e.ishiddencontrols||e.showcontrols(),n("[data-fancybox-count]").html(e.group.length),n("[data-fancybox-index]").html(i+1),n("[data-fancybox-prev]").prop("disabled",!a.loop&&i<=0),n("[data-fancybox-next]").prop("disabled",!a.loop&&i>=e.group.length-1)},hidecontrols:function(){this.ishiddencontrols=!0,this.$refs.container.removeclass("fancybox-show-infobar fancybox-show-toolbar fancybox-show-caption fancybox-show-nav")},showcontrols:function(){var t=this,e=t.current?t.current.opts:t.opts,n=t.$refs.container;t.ishiddencontrols=!1,t.idlesecondscounter=0,n.toggleclass("fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleclass("fancybox-show-infobar",!!(e.infobar&&t.group.length>1)).toggleclass("fancybox-show-nav",!!(e.arrows&&t.group.length>1)).toggleclass("fancybox-is-modal",!!e.modal),t.$caption?n.addclass("fancybox-show-caption "):n.removeclass("fancybox-show-caption")},togglecontrols:function(){this.ishiddencontrols?this.showcontrols():this.hidecontrols()}}),n.fancybox={version:"3.1.28",defaults:a,getinstance:function(t){var e=n('.fancybox-container:not(".fancybox-is-closing"):first').data("fancybox"),o=array.prototype.slice.call(arguments,1);return e instanceof h&&("string"===n.type(t)?e[t].apply(e,o):"function"===n.type(t)&&t.apply(e,o),e)},open:function(t,e,n){return new h(t,e,n)},close:function(t){var e=this.getinstance();e&&(e.close(),t===!0&&this.close())},destroy:function(){this.close(!0),r.off("click.fb-start")},ismobile:e.createtouch!==o&&/android|webos|iphone|ipad|ipod|blackberry/i.test(navigator.useragent),use3d:function(){var n=e.createelement("div");return t.getcomputedstyle&&t.getcomputedstyle(n).getpropertyvalue("transform")&&!(e.documentmode&&e.documentmode<11)}(),gettranslate:function(t){var e;if(!t||!t.length)return!1;if(e=t.eq(0).css("transform"),e&&e.indexof("matrix")!==-1?(e=e.split("(")[1],e=e.split(")")[0],e=e.split(",")):e=[],e.length)e=e.length>10?[e[13],e[12],e[0],e[5]]:[e[5],e[4],e[0],e[3]],e=e.map(parsefloat);else{e=[0,0,1,1];var n=/\.*translate\((.*)px,(.*)px\)/i,o=n.exec(t.eq(0).attr("style"));o&&(e[0]=parsefloat(o[2]),e[1]=parsefloat(o[1]))}return{top:e[0],left:e[1],scalex:e[2],scaley:e[3],opacity:parsefloat(t.css("opacity")),width:t.width(),height:t.height()}},settranslate:function(t,e){var n="",i={};if(t&&e)return e.left===o&&e.top===o||(n=(e.left===o?t.position().left:e.left)+"px, "+(e.top===o?t.position().top:e.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),e.scalex!==o&&e.scaley!==o&&(n=(n.length?n+" ":"")+"scale("+e.scalex+", "+e.scaley+")"),n.length&&(i.transform=n),e.opacity!==o&&(i.opacity=e.opacity),e.width!==o&&(i.width=e.width),e.height!==o&&(i.height=e.height),t.css(i)},animate:function(t,e,i,a,s){var r=d||"transitionend";n.isfunction(i)&&(a=i,i=null),n.isplainobject(e)||t.removeattr("style"),t.on(r,function(i){(!i||!i.originalevent||t.is(i.originalevent.target)&&"z-index"!=i.originalevent.propertyname)&&(t.off(r),n.isplainobject(e)?e.scalex!==o&&e.scaley!==o&&(t.css("transition-duration","0ms"),e.width=math.round(t.width()*e.scalex),e.height=math.round(t.height()*e.scaley),e.scalex=1,e.scaley=1,n.fancybox.settranslate(t,e)):s!==!0&&t.removeclass(e),n.isfunction(a)&&a(i))}),n.isnumeric(i)&&t.css("transition-duration",i+"ms"),n.isplainobject(e)?n.fancybox.settranslate(t,e):t.addclass(e),t.data("timer",settimeout(function(){t.trigger("transitionend")},i+16))},stop:function(t){cleartimeout(t.data("timer")),t.off(d)}},n.fn.fancybox=function(t){var e;return t=t||{},e=t.selector||!1,e?n("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},i):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},i),this},r.on("click.fb-start","[data-fancybox]",i)}}(window,document,window.jquery||jquery),function(t){"use strict";var e=function(e,n,o){if(e)return o=o||"","object"===t.type(o)&&(o=t.param(o,!0)),t.each(n,function(t,n){e=e.replace("$"+t,n||"")}),o.length&&(e+=(e.indexof("?")>0?"&":"?")+o),e},n={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listtype=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramplace:8,type:"iframe",url:"//www.youtube.com/embed/$4",thumb:"//img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1,api:1},paramplace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},metacafe:{matcher:/metacafe.com\/watch\/(\d+)\/(.*)?/,type:"iframe",url:"//www.metacafe.com/embed/$1/?ap=1"},dailymotion:{matcher:/dailymotion.com\/video\/(.*)\/?(.*)/,params:{additionalinfos:0,autostart:1},type:"iframe",url:"//www.dailymotion.com/embed/video/$1"},vine:{matcher:/vine.co\/v\/([a-za-z0-9\?\=\-]+)/,type:"iframe",url:"//vine.co/v/$1/embed/simple"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-za-z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12])+"&output="+(t[12]&&t[12].indexof("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};t(document).on("oninit.fb",function(o,i){t.each(i.group,function(o,i){var a,s,r,c,l,u,d,f=i.src||"",h=!1;i.type||(a=t.extend(!0,{},n,i.opts.media),t.each(a,function(n,o){if(r=f.match(o.matcher),u={},d=n,r){if(h=o.type,o.paramplace&&r[o.paramplace]){l=r[o.paramplace],"?"==l[0]&&(l=l.substring(1)),l=l.split("&");for(var a=0;ae.clientheight,a=("scroll"===o||"auto"===o)&&e.scrollwidth>e.clientwidth;return i||a},l=function(t){for(var e=!1;;){if(e=c(t.get(0)))break;if(t=t.parent(),!t.length||t.hasclass("fancybox-stage")||t.is("body"))break}return e},u=function(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(e,"ontouchstart"))};u.prototype.destroy=function(){this.$container.off(".fb.touch")},u.prototype.ontouchstart=function(o){var i=this,c=n(o.target),u=i.instance,d=u.current,f=d.$content,h="touchstart"==o.type;if(h&&i.$container.off("mousedown.fb.touch"),!d||i.instance.isanimating||i.instance.isclosing)return o.stoppropagation(),void o.preventdefault();if((!o.originalevent||2!=o.originalevent.button)&&c.length&&!r(c)&&!r(c.parent())&&!(o.originalevent.clientx>c[0].clientwidth+c.offset().left)&&(i.startpoints=a(o),i.startpoints&&!(i.startpoints.length>1&&u.issliding))){if(i.$target=c,i.$content=f,i.cantap=!0,n(e).off(".fb.touch"),n(e).on(h?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(i,"ontouchend")),n(e).on(h?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(i,"ontouchmove")),!u.current.opts.touch&&!u.canpan()||!c.is(i.$stage)&&!i.$stage.find(c).length)return void(c.is("img")&&o.preventdefault());o.stoppropagation(),n.fancybox.ismobile&&(l(i.$target)||l(i.$target.parent()))||o.preventdefault(),i.canvaswidth=math.round(d.$slide[0].clientwidth),i.canvasheight=math.round(d.$slide[0].clientheight),i.starttime=(new date).gettime(),i.distancex=i.distancey=i.distance=0,i.ispanning=!1,i.isswiping=!1,i.iszooming=!1,i.sliderstartpos=i.sliderlastpos||{top:0,left:0},i.contentstartpos=n.fancybox.gettranslate(i.$content),i.contentlastpos=null,1!==i.startpoints.length||i.iszooming||(i.cantap=!u.issliding,"image"===d.type&&(i.contentstartpos.width>i.canvaswidth+1||i.contentstartpos.height>i.canvasheight+1)?(n.fancybox.stop(i.$content),i.$content.css("transition-duration","0ms"),i.ispanning=!0):i.isswiping=!0,i.$container.addclass("fancybox-controls--isgrabbing")),2!==i.startpoints.length||u.isanimating||d.haserror||"image"!==d.type||!d.isloaded&&!d.$ghost||(i.iszooming=!0,i.isswiping=!1,i.ispanning=!1,n.fancybox.stop(i.$content),i.$content.css("transition-duration","0ms"),i.centerpointstartx=.5*(i.startpoints[0].x+i.startpoints[1].x)-n(t).scrollleft(),i.centerpointstarty=.5*(i.startpoints[0].y+i.startpoints[1].y)-n(t).scrolltop(),i.percentageofimageatpinchpointx=(i.centerpointstartx-i.contentstartpos.left)/i.contentstartpos.width,i.percentageofimageatpinchpointy=(i.centerpointstarty-i.contentstartpos.top)/i.contentstartpos.height,i.startdistancebetweenfingers=s(i.startpoints[0],i.startpoints[1]))}},u.prototype.ontouchmove=function(t){var e=this;if(e.newpoints=a(t),n.fancybox.ismobile&&(l(e.$target)||l(e.$target.parent())))return t.stoppropagation(),void(e.cantap=!1);if((e.instance.current.opts.touch||e.instance.canpan())&&e.newpoints&&e.newpoints.length&&(e.distancex=s(e.newpoints[0],e.startpoints[0],"x"),e.distancey=s(e.newpoints[0],e.startpoints[0],"y"),e.distance=s(e.newpoints[0],e.startpoints[0]),e.distance>0)){if(!e.$target.is(e.$stage)&&!e.$stage.find(e.$target).length)return;t.stoppropagation(),t.preventdefault(),e.isswiping?e.onswipe():e.ispanning?e.onpan():e.iszooming&&e.onzoom()}},u.prototype.onswipe=function(){var e,a=this,s=a.isswiping,r=a.sliderstartpos.left||0;s===!0?math.abs(a.distance)>10&&(a.cantap=!1,a.instance.group.length<2&&a.instance.opts.touch.vertical?a.isswiping="y":a.instance.issliding||a.instance.opts.touch.vertical===!1||"auto"===a.instance.opts.touch.vertical&&n(t).width()>800?a.isswiping="x":(e=math.abs(180*math.atan2(a.distancey,a.distancex)/math.pi),a.isswiping=e>45&&e<135?"y":"x"),a.instance.issliding=a.isswiping,a.startpoints=a.newpoints,n.each(a.instance.slides,function(t,e){n.fancybox.stop(e.$slide),e.$slide.css("transition-duration","0ms"),e.intransition=!1,e.pos===a.instance.current.pos&&(a.sliderstartpos.left=n.fancybox.gettranslate(e.$slide).left)}),a.instance.slideshow&&a.instance.slideshow.isactive&&a.instance.slideshow.stop()):("x"==s&&(a.distancex>0&&(a.instance.group.length<2||0===a.instance.current.index&&!a.instance.current.opts.loop)?r+=math.pow(a.distancex,.8):a.distancex<0&&(a.instance.group.length<2||a.instance.current.index===a.instance.group.length-1&&!a.instance.current.opts.loop)?r-=math.pow(-a.distancex,.8):r+=a.distancex),a.sliderlastpos={top:"x"==s?0:a.sliderstartpos.top+a.distancey,left:r},a.requestid&&(i(a.requestid),a.requestid=null),a.requestid=o(function(){a.sliderlastpos&&(n.each(a.instance.slides,function(t,e){var o=e.pos-a.instance.currpos;n.fancybox.settranslate(e.$slide,{top:a.sliderlastpos.top,left:a.sliderlastpos.left+o*a.canvaswidth+o*e.opts.gutter})}),a.$container.addclass("fancybox-is-sliding"))}))},u.prototype.onpan=function(){var t,e,a,s=this;s.cantap=!1,t=s.contentstartpos.width>s.canvaswidth?s.contentstartpos.left+s.distancex:s.contentstartpos.left,e=s.contentstartpos.top+s.distancey,a=s.limitmovement(t,e,s.contentstartpos.width,s.contentstartpos.height),a.scalex=s.contentstartpos.scalex,a.scaley=s.contentstartpos.scaley,s.contentlastpos=a,s.requestid&&(i(s.requestid),s.requestid=null),s.requestid=o(function(){n.fancybox.settranslate(s.$content,s.contentlastpos)})},u.prototype.limitmovement=function(t,e,n,o){var i,a,s,r,c=this,l=c.canvaswidth,u=c.canvasheight,d=c.contentstartpos.left,f=c.contentstartpos.top,h=c.distancex,p=c.distancey;return i=math.max(0,.5*l-.5*n),a=math.max(0,.5*u-.5*o),s=math.min(l-n,.5*l-.5*n),r=math.min(u-o,.5*u-.5*o),n>l&&(h>0&&t>i&&(t=i-1+math.pow(-i+d+h,.8)||0),h<0&&tu&&(p>0&&e>a&&(e=a-1+math.pow(-a+f+p,.8)||0),p<0&&ea?(t=t>0?0:t,t=ts?(e=e>0?0:e,e=e50?(n.fancybox.animate(e.instance.current.$slide,{top:e.sliderstartpos.top+e.distancey+150*e.velocityy,opacity:0},150),o=e.instance.close(!0,300)):"x"==t&&e.distancex>50&&e.instance.group.length>1?o=e.instance.previous(e.speedx):"x"==t&&e.distancex<-50&&e.instance.group.length>1&&(o=e.instance.next(e.speedx)),o!==!1||"x"!=t&&"y"!=t||e.instance.jumpto(e.instance.current.index,150),e.$container.removeclass("fancybox-is-sliding")},u.prototype.endpanning=function(){var t,e,o,i=this;i.contentlastpos&&(i.instance.current.opts.touch.momentum===!1?(t=i.contentlastpos.left,e=i.contentlastpos.top):(t=i.contentlastpos.left+i.velocityx*i.speed,e=i.contentlastpos.top+i.velocityy*i.speed),o=i.limitposition(t,e,i.contentstartpos.width,i.contentstartpos.height),o.width=i.contentstartpos.width,o.height=i.contentstartpos.height,n.fancybox.animate(i.$content,o,330))},u.prototype.endzooming=function(){var t,e,o,i,a=this,s=a.instance.current,r=a.newwidth,c=a.newheight;a.contentlastpos&&(t=a.contentlastpos.left,e=a.contentlastpos.top,i={top:e,left:t,width:r,height:c,scalex:1,scaley:1},n.fancybox.settranslate(a.$content,i),rs.width||c>s.height?a.instance.scaletoactual(a.centerpointstartx,a.centerpointstarty,150):(o=a.limitposition(t,e,r,c),n.fancybox.settranslate(a.content,n.fancybox.gettranslate(a.$content)),n.fancybox.animate(a.$content,o,150)))},u.prototype.ontap=function(t){var e,o=this,i=n(t.target),s=o.instance,r=s.current,c=t&&a(t)||o.startpoints,l=c[0]?c[0].x-o.$stage.offset().left:0,u=c[0]?c[0].y-o.$stage.offset().top:0,d=function(e){var i=r.opts[e];if(n.isfunction(i)&&(i=i.apply(s,[r,t])),i)switch(i){case"close":s.close(o.startevent);break;case"togglecontrols":s.togglecontrols(!0);break;case"next":s.next();break;case"nextorclose":s.group.length>1?s.next():s.close(o.startevent);break;case"zoom":"image"==r.type&&(r.isloaded||r.$ghost)&&(s.canpan()?s.scaletofit():s.isscaleddown()?s.scaletoactual(l,u):s.group.length<2&&s.close(o.startevent))}};if(!(t.originalevent&&2==t.originalevent.button||s.issliding||l>i[0].clientwidth+i.offset().left)){if(i.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))e="outside";else if(i.is(".fancybox-slide"))e="slide";else{if(!s.current.$content||!s.current.$content.has(t.target).length)return;e="content"}if(o.tapped){if(cleartimeout(o.tapped),o.tapped=null,math.abs(l-o.tapx)>50||math.abs(u-o.tapy)>50||s.issliding)return this;d("dblclick"+e)}else o.tapx=l,o.tapy=u,r.opts["dblclick"+e]&&r.opts["dblclick"+e]!==r.opts["click"+e]?o.tapped=settimeout(function(){o.tapped=null,d("click"+e)},300):d("click"+e);return this}},n(e).on("onactivate.fb",function(t,e){e&&!e.guestures&&(e.guestures=new u(e))}),n(e).on("beforeclose.fb",function(t,e){e&&e.guestures&&e.guestures.destroy()})}(window,document,window.jquery),function(t,e){"use strict";var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{timer:null,isactive:!1,$button:null,speed:3e3,init:function(){var t=this;t.$button=t.instance.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),(t.instance.group.length<2||!t.instance.group[t.instance.currindex].opts.slideshow)&&t.$button.hide()},set:function(){var t=this;t.instance&&t.instance.current&&(t.instance.current.opts.loop||t.instance.currindex1&&t.instance.group[t.instance.currindex].opts.thumbs&&("image"==e.type||e.opts.thumb||e.opts.$thumb)&&("image"==n.type||n.opts.thumb||n.opts.$thumb)?(t.$button.on("click",function(){t.toggle()}),t.isactive=!0):(t.$button.hide(),t.isactive=!1)},create:function(){var t,n,o=this.instance;this.$grid=e('
').appendto(o.$refs.container),t="
    ",e.each(o.group,function(e,o){n=o.opts.thumb||(o.opts.$thumb?o.opts.$thumb.attr("src"):null),n||"image"!==o.type||(n=o.src),n&&n.length&&(t+='
  • ')}),t+="
",this.$list=e(t).appendto(this.$grid).on("click","li",function(){o.jumpto(e(this).data("index"))}),this.$list.find("img").hide().one("load",function(){var t,n,o,i,a=e(this).parent().removeclass("fancybox-thumbs-loading"),s=a.outerwidth(),r=a.outerheight();t=this.naturalwidth||this.width,n=this.naturalheight||this.height,o=t/s,i=n/r,o>=1&&i>=1&&(o>i?(t/=i,n=r):(t=s,n/=o)),e(this).css({width:math.floor(t),height:math.floor(n),"margin-top":math.min(0,math.floor(.3*r-.3*n)),"margin-left":math.min(0,math.floor(.5*s-.5*t))}).show()}).each(function(){this.src=e(this).data("src")})},focus:function(){this.instance.current&&this.$list.children().removeclass("fancybox-thumbs-active").filter('[data-index="'+this.instance.current.index+'"]').addclass("fancybox-thumbs-active").focus()},close:function(){this.$grid.hide()},update:function(){this.instance.$refs.container.toggleclass("fancybox-show-thumbs",this.isvisible),this.isvisible?(this.$grid||this.create(),this.instance.trigger("onthumbsshow"),this.focus()):this.$grid&&this.instance.trigger("onthumbshide"),this.instance.update()},hide:function(){this.isvisible=!1,this.update()},show:function(){this.isvisible=!0,this.update()},toggle:function(){this.isvisible=!this.isvisible,this.update()}}),e(t).on({"oninit.fb":function(t,e){e&&!e.thumbs&&(e.thumbs=new n(e))},"beforeshow.fb":function(t,e,n,o){var i=e&&e.thumbs;if(i&&i.isactive){if(n.modal)return i.$button.hide(),void i.hide();o&&n.opts.thumbs.autostart===!0&&i.show(),i.isvisible&&i.focus()}},"afterkeydown.fb":function(t,e,n,o,i){var a=e&&e.thumbs;a&&a.isactive&&71===i&&(o.preventdefault(),a.toggle())},"beforeclose.fb":function(t,e){var n=e&&e.thumbs;n&&n.isvisible&&e.opts.thumbs.hideonclose!==!1&&n.close()}})}(document,window.jquery),function(t,e,n){"use strict";function o(){var t=e.location.hash.substr(1),n=t.split("-"),o=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseint(n.pop(-1),10)||1:1,i=n.join("-");return o<1&&(o=1),{hash:t,index:o,gallery:i}}function i(t){var e;""!==t.gallery&&(e=n("[data-fancybox='"+n.escapeselector(t.gallery)+"']").eq(t.index-1),e.length||(e=n("#"+n.escapeselector(t.gallery))),e.length&&(s=!1,e.trigger("click")))}function a(t){var e;return!!t&&(e=t.current?t.current.opts:t.opts,e.hash||(e.$orig?e.$orig.data("fancybox"):""))}n.escapeselector||(n.escapeselector=function(t){var e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uffff\w-]/g,n=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charcodeat(t.length-1).tostring(16)+" ":"\\"+t};return(t+"").replace(e,n)});var s=!0,r=null,c=null;n(function(){settimeout(function(){n.fancybox.defaults.hash!==!1&&(n(t).on({"oninit.fb":function(t,e){var n,i;e.group[e.currindex].opts.hash!==!1&&(n=o(),i=a(e),i&&n.gallery&&i==n.gallery&&(e.currindex=n.index-1))},"beforeshow.fb":function(n,o,i){var l;i&&i.opts.hash!==!1&&(l=a(o),l&&""!==l&&(e.location.hash.indexof(l)<0&&(o.opts.orighash=e.location.hash),r=l+(o.group.length>1?"-"+(i.index+1):""),"replacestate"in e.history?(c&&cleartimeout(c),c=settimeout(function(){e.history[s?"pushstate":"replacestate"]({},t.title,e.location.pathname+e.location.search+"#"+r),c=null,s=!1},300)):e.location.hash=r))},"beforeclose.fb":function(o,i,s){var l,u;c&&cleartimeout(c),s.opts.hash!==!1&&(l=a(i),u=i&&i.opts.orighash?i.opts.orighash:"",l&&""!==l&&("replacestate"in history?e.history.replacestate({},t.title,e.location.pathname+e.location.search+u):(e.location.hash=u,n(e).scrolltop(i.scrolltop).scrollleft(i.scrollleft))),r=null)}}),n(e).on("hashchange.fb",function(){var t=o();n.fancybox.getinstance()?!r||r===t.gallery+"-"+t.index||1===t.index&&r==t.gallery||(r=null,n.fancybox.close()):""!==t.gallery&&i(t)}),i(o()))},50)})}(document,window,window.jquery);