!function(){"use strict";var a={autostart:!0,autostartAtImage:1,autostartAtAlbum:1,backgroundColor:"#fff",browserHistory:!0,canChangeMode:!0,canClose:!1,canMinimalizeThumbnails:!0,canZoom:!0,disabledOnIE8AndOlder:!0,draggableZoom:!0,draggableZoomHideNavigationOnMobile:!0,height:"600px",hideThumbnailsOnInit:!1,maxMobileWidth:767,mode:"standard",preloadAll:!1,slideshow:!0,slideshowAutostart:!1,slideshowCanRandom:!0,slideshowInterval:"8s",slideshowRandom:!1,swipeEvents:!0,textColor:"#000",thumbnails:!0,thumbHeight:75,thumbHeightOnFullScreen:100,thumbnailsFullScreen:!0,thumbnailsHideOnMobile:!0,thumbnailsPosition:"bottom",thumbType:"image",thumbWidth:75,thumbWidthOnFullScreen:100,title:!0,titleExpanded:!1,tooltipClose:"Close",tooltipFullScreen:"Full screen",tooltipRandom:"Random",tooltips:!0,tooltipSeeAllPhotos:"See all photos",tooltipSeeOtherAlbums:"See other albums",tooltipSlideshow:"Slideshow",tooltipToggleThumbnails:"Toggle thumbnails",tooltipZoom:"Zoom",transition:"moveToLeft_moveFromRight",transitionBackward:"auto",transitionCols:1,transitionDuration:"0.7s",transitionRows:1,transitionTimingFunction:"cubic-bezier(0,1,1,1)",transitionWaveDirection:"forward",width:"100%",zoomSize:"fit",afterLoadPhoto:function(){},beforeLoadPhoto:function(){},closeGallery:function(){},initGallery:function(){},showGallery:function(){},showPhoto:function(){}},b={},c={width:"940px",height:"360px",canZoom:!1,draggableZoom:!1,browserHistory:!1,thumbnailsFullScreen:!1,thumbType:"square",thumbWidth:20,thumbHeight:20,canMinimalizeThumbnails:!1,transition:"rotateCubeRightOut_rotateCubeRightIn",transitionBackward:"rotateCubeRightOut_rotateCubeRightIn",transitionCols:6,transitionRows:1,slideshow:!0,slideshowAutostart:!0,zoomSize:"fill"},d={},e={autostart:!0,canClose:!1,zoomSize:"fill",canChangeMode:!1},f={moveToLeft_moveFromRight:["pt-page-moveToLeft","pt-page-moveFromRight"],moveToRight_moveFromLeft:["pt-page-moveToRight","pt-page-moveFromLeft"],moveToTop_moveFromBottom:["pt-page-moveToTop","pt-page-moveFromBottom"],moveToBottom_moveFromTop:["pt-page-moveToBottom","pt-page-moveFromTop"],fade_moveFromRight:["pt-page-fade","pt-page-moveFromRight pt-page-ontop"],fade_moveFromLeft:["pt-page-fade","pt-page-moveFromLeft pt-page-ontop"],fade_moveFromBottom:["pt-page-fade","pt-page-moveFromBottom pt-page-ontop"],fade_moveFromTop:["pt-page-fade","pt-page-moveFromTop pt-page-ontop"],moveToLeftFade_moveFromRightFade:["pt-page-moveToLeftFade","pt-page-moveFromRightFade"],moveToRightFade_moveFromLeftFade:["pt-page-moveToRightFade","pt-page-moveFromLeftFade"],moveToTopFade_moveFromBottomFade:["pt-page-moveToTopFade","pt-page-moveFromBottomFade"],moveToBottomFade_moveFromTopFade:["pt-page-moveToBottomFade","pt-page-moveFromTopFade"],moveToLeftEasing_moveFromRight:["pt-page-moveToLeftEasing pt-page-ontop","pt-page-moveFromRight"],moveToRightEasing_moveFromLeft:["pt-page-moveToRightEasing pt-page-ontop","pt-page-moveFromLeft"],moveToTopEasing_moveFromBottom:["pt-page-moveToTopEasing pt-page-ontop","pt-page-moveFromBottom"],moveToBottomEasing_moveFromTop:["pt-page-moveToBottomEasing pt-page-ontop","pt-page-moveFromTop"],scaleDown_moveFromRight:["pt-page-scaleDown","pt-page-moveFromRight pt-page-ontop"],scaleDown_moveFromLeft:["pt-page-scaleDown","pt-page-moveFromLeft pt-page-ontop"],scaleDown_moveFromBottom:["pt-page-scaleDown","pt-page-moveFromBottom pt-page-ontop"],scaleDown_moveFromTop:["pt-page-scaleDown","pt-page-moveFromTop pt-page-ontop"],scaleDown_scaleUpDown:["pt-page-scaleDown","pt-page-scaleUpDown pt-page-delay300"],scaleDownUp_scaleUp:["pt-page-scaleDownUp","pt-page-scaleUp pt-page-delay300"],moveToLeft_scaleUp:["pt-page-moveToLeft pt-page-ontop","pt-page-scaleUp"],moveToRight_scaleUp:["pt-page-moveToRight pt-page-ontop","pt-page-scaleUp"],moveToTop_scaleUp:["pt-page-moveToTop pt-page-ontop","pt-page-scaleUp"],moveToBottom_scaleUp:["pt-page-moveToBottom pt-page-ontop","pt-page-scaleUp"],scaleDownCenter_scaleUpCenter:["pt-page-scaleDownCenter","pt-page-scaleUpCenter pt-page-delay400"],rotateRightSideFirst_moveFromRight:["pt-page-rotateRightSideFirst","pt-page-moveFromRight pt-page-delay200 pt-page-ontop"],rotateLeftSideFirst_moveFromLeft:["pt-page-rotateLeftSideFirst","pt-page-moveFromLeft pt-page-delay200 pt-page-ontop"],rotateTopSideFirst_moveFromTop:["pt-page-rotateTopSideFirst","pt-page-moveFromTop pt-page-delay200 pt-page-ontop"],rotateBottomSideFirst_moveFromBottom:["pt-page-rotateBottomSideFirst","pt-page-moveFromBottom pt-page-delay200 pt-page-ontop"],flipOutRight_flipInLeft:["pt-page-flipOutRight","pt-page-flipInLeft pt-page-delay500"],flipOutLeft_flipInRight:["pt-page-flipOutLeft","pt-page-flipInRight pt-page-delay500"],flipOutTop_flipInBottom:["pt-page-flipOutTop","pt-page-flipInBottom pt-page-delay500"],flipOutBottom_flipInTop:["pt-page-flipOutBottom","pt-page-flipInTop pt-page-delay500"],rotateFall_scaleUp:["pt-page-rotateFall pt-page-ontop","pt-page-scaleUp"],rotateOutNewspaper_rotateInNewspaper:["pt-page-rotateOutNewspaper","pt-page-rotateInNewspaper pt-page-delay500"],rotatePushLeft_moveFromRight:["pt-page-rotatePushLeft","pt-page-moveFromRight"],rotatePushRight_moveFromLeft:["pt-page-rotatePushRight","pt-page-moveFromLeft"],rotatePushTop_moveFromBottom:["pt-page-rotatePushTop","pt-page-moveFromBottom"],rotatePushBottom_moveFromTop:["pt-page-rotatePushBottom","pt-page-moveFromTop"],rotatePushLeft_rotatePullRight:["pt-page-rotatePushLeft","pt-page-rotatePullRight pt-page-delay180"],rotatePushRight_rotatePullLeft:["pt-page-rotatePushRight","pt-page-rotatePullLeft pt-page-delay180"],rotatePushTop_rotatePullBottom:["pt-page-rotatePushTop","pt-page-rotatePullBottom pt-page-delay180"],rotatePushBottom_page:["pt-page-rotatePushBottom","pt-page-rotatePullTop pt-page-delay180"],rotateFoldLeft_moveFromRightFade:["pt-page-rotateFoldLeft","pt-page-moveFromRightFade"],rotateFoldRight_moveFromLeftFade:["pt-page-rotateFoldRight","pt-page-moveFromLeftFade"],rotateFoldTop_moveFromBottomFade:["pt-page-rotateFoldTop","pt-page-moveFromBottomFade"],rotateFoldBottom_moveFromTopFade:["pt-page-rotateFoldBottom","pt-page-moveFromTopFade"],moveToRightFade_rotateUnfoldLeft:["pt-page-moveToRightFade","pt-page-rotateUnfoldLeft"],moveToLeftFade_rotateUnfoldRight:["pt-page-moveToLeftFade","pt-page-rotateUnfoldRight"],moveToBottomFade_rotateUnfoldTop:["pt-page-moveToBottomFade","pt-page-rotateUnfoldTop"],moveToTopFade_rotateUnfoldBottom:["pt-page-moveToTopFade","pt-page-rotateUnfoldBottom"],rotateRoomLeftOut_rotateRoomLeftIn:["pt-page-rotateRoomLeftOut pt-page-ontop","pt-page-rotateRoomLeftIn"],rotateRoomRightOut_rotateRoomRightIn:["pt-page-rotateRoomRightOut pt-page-ontop","pt-page-rotateRoomRightIn"],rotateRoomTopOut_rotateRoomTopIn:["pt-page-rotateRoomTopOut pt-page-ontop","pt-page-rotateRoomTopIn"],rotateRoomBottomOut_rotateRoomBottomIn:["pt-page-rotateRoomBottomOut pt-page-ontop","pt-page-rotateRoomBottomIn"],rotateCubeLeftOut_rotateCubeLeftIn:["pt-page-rotateCubeLeftOut pt-page-ontop","pt-page-rotateCubeLeftIn"],rotateCubeRightOut_rotateCubeRightIn:["pt-page-rotateCubeRightOut pt-page-ontop","pt-page-rotateCubeRightIn"],rotateCubeTopOut_rotateCubeTopIn:["pt-page-rotateCubeTopOut pt-page-ontop","pt-page-rotateCubeTopIn"],rotateCubeBottomOut_rotateCubeBottomIn:["pt-page-rotateCubeBottomOut pt-page-ontop","pt-page-rotateCubeBottomIn"],rotateCarouselLeftOut_rotateCarouselLeftIn:["pt-page-rotateCarouselLeftOut pt-page-ontop","pt-page-rotateCarouselLeftIn"],rotateCarouselRightOut_rotateCarouselRightIn:["pt-page-rotateCarouselRightOut pt-page-ontop","pt-page-rotateCarouselRightIn"],rotateCarouselTopOut_rotateCarouselTopIn:["pt-page-rotateCarouselTopOut pt-page-ontop","pt-page-rotateCarouselTopIn"],rotateCarouselBottomOut_rotateCarouselBottomIn:["pt-page-rotateCarouselBottomOut pt-page-ontop","pt-page-rotateCarouselBottomIn"],rotateSidesOut_rotateSidesInDelay:["pt-page-rotateSidesOut","pt-page-rotateSidesIn pt-page-delay200"],rotateSlideOut_rotateSlideIn:["pt-page-rotateSlideOut","pt-page-rotateSlideIn"]},g=function(a){var b=jQuery,c=[];return b.each(a,function(a,b){c.push(b)}),c}(f),h={moveToLeft_moveFromRight:"moveToRight_moveFromLeft",moveToRight_moveFromLeft:"moveToLeft_moveFromRight",moveToTop_moveFromBottom:"moveToBottom_moveFromTop",moveToBottom_moveFromTop:"moveToTop_moveFromBottom",fade_moveFromRight:"fade_moveFromLeft",fade_moveFromLeft:"fade_moveFromRight",fade_moveFromBottom:"fade_moveFromTop",fade_moveFromTop:"fade_moveFromBottom",moveToLeftFade_moveFromRightFade:"moveToRightFade_moveFromLeftFade",moveToRightFade_moveFromLeftFade:"moveToLeftFade_moveFromRightFade",moveToTopFade_moveFromBottomFade:"moveToBottomFade_moveFromTopFade",moveToBottomFade_moveFromTopFade:"moveToTopFade_moveFromBottomFade",moveToLeftEasing_moveFromRight:"moveToRightEasing_moveFromLeft",moveToRightEasing_moveFromLeft:"moveToLeftEasing_moveFromRight",moveToTopEasing_moveFromBottom:"moveToBottomEasing_moveFromTop",moveToBottomEasing_moveFromTop:"moveToTopEasing_moveFromBottom",scaleDown_moveFromRight:"scaleDown_moveFromLeft",scaleDown_moveFromLeft:"scaleDown_moveFromRight",scaleDown_moveFromBottom:"scaleDown_moveFromTop",scaleDown_moveFromTop:"scaleDown_moveFromBottom",scaleDown_scaleUpDown:"scaleDownUp_scaleUp",scaleDownUp_scaleUp:"scaleDown_scaleUpDown",moveToLeft_scaleUp:"moveToRight_scaleUp",moveToRight_scaleUp:"moveToLeft_scaleUp",moveToTop_scaleUp:"moveToBottom_scaleUp",moveToBottom_scaleUp:"moveToTop_scaleUp",scaleDownCenter_scaleUpCenter:"scaleDownCenter_scaleUpCenter",rotateRightSideFirst_moveFromRight:"rotateLeftSideFirst_moveFromLeft",rotateLeftSideFirst_moveFromLeft:"rotateRightSideFirst_moveFromRight",rotateTopSideFirst_moveFromTop:"rotateBottomSideFirst_moveFromBottom",rotateBottomSideFirst_moveFromBottom:"rotateTopSideFirst_moveFromTop",flipOutRight_flipInLeft:"flipOutLeft_flipInRight",flipOutLeft_flipInRight:"flipOutRight_flipInLeft",flipOutTop_flipInBottom:"flipOutBottom_flipInTop",flipOutBottom_flipInTop:"flipOutTop_flipInBottom",rotateFall_scaleUp:"rotateFall_scaleUp",rotateOutNewspaper_rotateInNewspaper:"rotateOutNewspaper_rotateInNewspaper",rotatePushLeft_moveFromRight:"rotatePushRight_moveFromLeft",rotatePushRight_moveFromLeft:"rotatePushLeft_moveFromRight",rotatePushTop_moveFromBottom:"rotatePushBottom_moveFromTop",rotatePushBottom_moveFromTop:"rotatePushTop_moveFromBottom",rotatePushLeft_rotatePullRight:"rotatePushRight_rotatePullLeft",rotatePushRight_rotatePullLeft:"rotatePushLeft_rotatePullRight",rotatePushTop_rotatePullBottom:"rotatePushTop_rotatePullBottom",rotatePushBottom_page:"rotatePushBottom_page",rotateFoldLeft_moveFromRightFade:"rotateFoldRight_moveFromLeftFade",rotateFoldRight_moveFromLeftFade:"rotateFoldLeft_moveFromRightFade",rotateFoldTop_moveFromBottomFade:"rotateFoldBottom_moveFromTopFade",rotateFoldBottom_moveFromTopFade:"rotateFoldTop_moveFromBottomFade",moveToRightFade_rotateUnfoldLeft:"moveToLeftFade_rotateUnfoldRight",moveToLeftFade_rotateUnfoldRight:"moveToRightFade_rotateUnfoldLeft",moveToBottomFade_rotateUnfoldTop:"moveToTopFade_rotateUnfoldBottom",moveToTopFade_rotateUnfoldBottom:"moveToBottomFade_rotateUnfoldTop",rotateRoomLeftOut_rotateRoomLeftIn:"rotateRoomRightOut_rotateRoomRightIn",rotateRoomRightOut_rotateRoomRightIn:"rotateRoomLeftOut_rotateRoomLeftIn",rotateRoomTopOut_rotateRoomTopIn:"rotateRoomBottomOut_rotateRoomBottomIn",rotateRoomBottomOut_rotateRoomBottomIn:"rotateRoomTopOut_rotateRoomTopIn",rotateCubeLeftOut_rotateCubeLeftIn:"rotateCubeRightOut_rotateCubeRightIn",rotateCubeRightOut_rotateCubeRightIn:"rotateCubeLeftOut_rotateCubeLeftIn",rotateCubeTopOut_rotateCubeTopIn:"rotateCubeBottomOut_rotateCubeBottomIn",rotateCubeBottomOut_rotateCubeBottomIn:"rotateCubeTopOut_rotateCubeTopIn",rotateCarouselLeftOut_rotateCarouselLeftIn:"rotateCarouselRightOut_rotateCarouselRightIn",rotateCarouselRightOut_rotateCarouselRightIn:"rotateCarouselLeftOut_rotateCarouselLeftIn",rotateCarouselTopOut_rotateCarouselTopIn:"rotateCarouselBottomOut_rotateCarouselBottomIn",rotateCarouselBottomOut_rotateCarouselBottomIn:"rotateCarouselTopOut_rotateCarouselTopIn",rotateSidesOut_rotateSidesInDelay:"rotateSidesOut_rotateSidesInDelay",rotateSlideOut_rotateSlideIn:"rotateSlideOut_rotateSlideIn"},i=function(){return this.length?this[0].outerHTML||function(a){var b=document.createElement("div");b.appendChild(a.cloneNode(!0));var c=b.innerHTML;return b=null,c}(this[0]):this},j=function(){var a=jQuery;return function(b){var c={show:!1,hide:!1,showLoader:!1,hideLoader:!1,showProgress:!1,hideProgress:!1,resetProgress:!1,fadeIn:!0,fadeOut:!0,fadeInLoader:!0,fadeOutLoader:!0,afterInit:function(){}};b=a.extend({},c,b),this.each(function(){var c,d,e,f,g=a(this),h=g.is(".overlayContainer:has(.overlay)"),i=function(){b.fadeIn?c.fadeIn(500):c.show()},j=function(){b.fadeOut?c.fadeOut(500):c.hide()},k=function(){b.fadeInLoader?d.not(":visible").fadeIn(500):d.not(":visible").show()},l=function(){b.fadeOutLoader?d.filter(":visible").fadeOut(500):d.filter(":visible").hide()};h||(g.addClass("overlayContainer"),g.append(''),b.afterInit()),c=g.children(".overlay"),d=g.find(".imageLoaderPositionAbsolute"),e=d.find(".progress-value"),f=d.find(".fa-spinner"),b.resetProgress&&e.html("0"),b.showProgress?(d.addClass("preloadAll"),e.show(),f.hide()):b.hideProgress&&(d.removeClass("preloadAll"),e.hide(),f.show()),c.stop(!1,!0),d.stop(!1,!0),b.show?i():b.hide&&j(),b.showLoader?k():b.hideLoader&&l()})}}(),k=function(a){var b=jQuery;return b.fn.overlay=a,function(a){a=b.extend({interval:1e3,skip:":not(*)",start:function(){b("body").overlay({fadeIn:!1,fadeOut:!1,show:!0,showLoader:!0}),b("body").show()},success:function(){b("body").overlay({hide:!0})},progress:function(){}},a),this.each(function(){function c(){var e,i=!0,j=0;g.each(function(){b(this)[0].complete&&b(this)[0].naturalWidth>0?j++:i=!1}),e=parseInt(100*j/h),a.progress({percent:e}),i?(clearTimeout(d),f.remove(),a.success()):d=setTimeout(c,a.interval)}var d,e=b(this),f=b(),g=b(),h=0;e.append(''),f=e.children(".jLoaderTmp:last-child"),b(e).add(e.find("*")).not(a.skip).each(function(){var a;"none"!==b(this).css("background-image")&&(a=b(this).css("background-image"),/url/.exec(a)&&(a=a.replace('"',"").replace("'","").replace(" ","").replace("url(","").replace(")",""),f.append('')))}),g=e.find("img:not("+a.skip+")"),e.is("img")&&(e.is(a.skip)||(g=g.add(e))),h=parseInt(g.length),a.start(),c()})}}(j),l=function(){var a=jQuery,b=a("title");return function(c){c=a.extend({},{stateObj:{},title:b.html(),path:""},c),window.history.pushState(c.stateObj,c.title,document.location.href.split("#")[0]+"#"+c.path)}}(),m=function(){var a=!1;if("Microsoft Internet Explorer"===navigator.appName){var b=navigator.userAgent,c=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");null!==c.exec(b)&&(a=!0)}return a},n=function(){var a=!1;if("Microsoft Internet Explorer"===navigator.appName){var b=navigator.userAgent,c=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");null!==c.exec(b)&&(a=parseFloat(RegExp.$1),a=9>a)}return a},o=function(){var a=jQuery,b=a("html");return function(){0===b.find(".jgallery").length?b.removeClass("has-jgallery"):b.addClass("has-jgallery"),0===b.find(".jgallery.hidden").length?b.removeClass("has-hidden-jgallery"):b.addClass("has-hidden-jgallery"),0===b.find(".jgallery:not(.hidden)").length?b.removeClass("has-visible-jgallery"):b.addClass("has-visible-jgallery")}},p=function(a){var b=jQuery,c=b("head"),d=0,e=function(a){a.is("[data-advanced-animation-id]")||(this.cols=1,this.rows=1,this.direction="forward",this.animation=!0,this.$element=a,this.$element.filter(":not([data-advanced-animation-id])").attr("data-advanced-animation-id",++d),this.$element.find(".pt-item").wrap('
'),this.$element.wrapInner('
'),this.generateHtml(),this._showParts(this.$element.find(".pt-part"),1))};return e.prototype={next:function(){var a=this.$element.find(".pt-part").eq("backward"===this.direction?-1:0).find(".pt-page-current:not(.pt-page-prev)").next();a.length?this.show(a):this.show(this.$element.find(".pt-part").eq("backward"===this.direction?-1:0).find(".pt-page").eq(0))},show:function(a,c){var d=a.prevAll().length+1;a.is(".pt-page-current:not(.pt-page-prev)")||(c=b.extend({},{animation:!0},c),this.animation=c.animation,this._waveJumpToEnd(),this.animation?this._runWave(d):this._showParts(this.$element.find(".pt-part"),d),this.intPrevPtPageNumber=d)},setQuantityParts:function(a,b){this.cols=a,this.rows=b,this.generateHtml()},setAnimationProperties:function(b){var d=this.$element.attr("data-advanced-animation-id"),e=c.find('style[data-advanced-animation-id="'+d+'"]');this.duration=b.duration,a()||(0===e.length&&(e=c.append(' "),this.isHorizontal()?this.jGallery.zoom.$container.find(".minimalize-thumbnails").addClass("fa-ellipsis-h").removeClass("fa-ellipsis-v"):this.jGallery.zoom.$container.find(".minimalize-thumbnails").addClass("fa-ellipsis-v").removeClass("fa-ellipsis-h"),this.isJgalleryInitialized||this.hide()},_showNextThumb:function(){var a=this,b=this.$a.parent(".active").children(".hidden").eq(0);setTimeout(function(){b.removeClass("hidden"),b.length&&a._showNextThumb()},70)},_horizontalCenter:function(a){var b=this;1===a.length&&this.$container.stop(!1,!0).animate({scrollLeft:a.position().left- -1*this.$container.scrollLeft()-a.outerWidth()/-2-this.$container.outerWidth()/2},function(){b.refreshNavigation()})},_verticalCenter:function(a){var b=this;1===a.length&&this.$container.stop(!1,!0).animate({scrollTop:a.position().top- -1*this.$container.scrollTop()-a.outerHeight()/-2-this.$container.outerHeight()/2},function(){b.refreshNavigation()})},canScrollToPrev:function(){return this.isVertical()||this.isFullScreen()?this.$container.scrollTop()>0:this.$container.scrollLeft()>0},canScrollToNext:function(){if(this.isVertical()||this.isFullScreen())return this.$container.find(".jgallery-container-inner").height()>this.$container.height()+this.$container.scrollTop();var a=this.getElement().find("div.active"),b="image"===this.jGallery.options.thumbType?this.$a.outerWidth(!0)*a.find("img").length:this.$a.outerWidth(!0)*a.find("a").length;return b>this.$container.width()+this.$container.scrollLeft()},_scrollToPrev:function(){var a=this;this.isVertical()||this.isFullScreen()?this.$container.stop(!1,!0).animate({scrollTop:"-="+.7*d.height()},function(){a.refreshNavigation()}):this.isHorizontal()&&this.$container.stop(!1,!0).animate({scrollLeft:"-="+.7*d.width()},function(){a.refreshNavigation()})},_scrollToNext:function(){var a=this;this.isVertical()||this.isFullScreen()?this.$container.stop(!1,!0).animate({scrollTop:"+="+.7*d.height()},function(){a.refreshNavigation()}):this.isHorizontal()&&this.$container.stop(!1,!0).animate({scrollLeft:"+="+.7*d.width()},function(){a.refreshNavigation()})}},e}(k),t=function(a,b){var c=jQuery;c.fn.outerHtml=a,c.fn.jLoader=b;var d=function(a,b){this.options=c.extend({},{thumbsHidden:!0},b),this.jGallery=a,this.isSlider=a.isSlider(),this.$element=a.$this,this.booIsAlbums=a.booIsAlbums,this.$tmp,this.intI=1,this.intJ=1,this.intNo,this.$thumbnailsContainerInner=this.jGallery.$jgallery.find(".jgallery-thumbnails .jgallery-container-inner"),this.start()};return d.prototype={start:function(){var a=this,b=this.jGallery.isSlider()?".album:has(img)":".album:has(a:has(img))";c("body").append('
'+this.$element.html()+"
"), this.$tmp=c("#jGalleryTmp"),this.$thumbnailsContainerInner.html(""),this.booIsAlbums?this.$tmp.find(b).each(function(){a.insertAlbum(c(this))}):this.insertImages(this.$tmp,this.$thumbnailsContainerInner),this.$tmp.remove(),this.refreshThumbsSize()},insertAlbum:function(a){var b=a.is("[data-jgallery-album-title]")?a.attr("data-jgallery-album-title"):"Album "+this.intJ,c=this.$thumbnailsContainerInner.append('
').children(":last-child");1===this.intJ&&c.addClass("active"),this.insertImages(a,c),this.intJ++},insertImages:function(a,b){var d=this,e=this.jGallery.isSlider()?"img":"a:has(img)";this.intNo=1,a.find(e).each(function(){d.insertImage(c(this),b)})},insertImage:function(a,b){var d,e=c();a.is("a")?e=b.append(''+this.generateImgTag(a.find("img").eq(0)).outerHtml()+"").children(":last-child"):a.is("img")&&(e=b.append(c(''+this.generateImgTag(a).outerHtml()+"")).children(":last-child"),d=a.parent(),this.isSlider&&d.is("a")&&(e.attr("link",d.attr("href")),d.is("[target]")&&e.attr("target",d.attr("target")))),e.jLoader({start:function(){e.overlay({fadeIn:!1,fadeOut:!1,show:!0,showLoader:!0})},success:function(){e.overlay({hide:!0})}}),b.children(":last-child").attr("data-jgallery-photo-id",this.intI++).attr("data-jgallery-number",this.intNo++)},generateImgTag:function(a){var b=c('');return a.is("[alt]")&&b.attr("alt",a.attr("alt")),a.is("[data-jgallery-bg-color]")&&b.attr("data-jgallery-bg-color",a.attr("data-jgallery-bg-color")),a.is("[data-jgallery-text-color]")&&b.attr("data-jgallery-text-color",a.attr("data-jgallery-text-color")),b},refreshThumbsSize:function(){var a=this.jGallery.options;this.$thumbnailsContainerInner.find("img").each(function(){var b=c(this),d=new Image;d.src=b.attr("src"),d.width/d.height .title"),this.$btnPrev=this.$container.children(".prev"),this.$btnNext=this.$container.children(".next"),this.thumbnails=a.thumbnails,this.$jGallery=a.$element,this.jGallery=a,this.$resize=this.$container.find(".resize"),this.$dragNav=this.$container.find(".drag-nav"),this.$dragNavCrop=i(),this.$dragNavCropImg=i(),this.$changeMode=this.$container.find(".fa.change-mode"),this.$random=this.$container.find(".random"),this.$slideshow=this.$container.find(".slideshow"),this.intJGalleryId=this.$jGallery.attr("data-jgallery-id"),this.booSlideshowPlayed=!1,this.booLoadingInProgress=!1,this.booLoadedAll=!1,this.$title.on("click",function(){i(this).toggleClass("expanded")}),this.update(),this.enableDrag(),this.jGallery.options.swipeEvents&&this.initSwipeEvents()};return k.prototype={update:function(){var a=d[this.jGallery.options.transition];this.$container.attr("data-size",this.jGallery.options.zoomSize),this.$element.find(".pt-page").removeClass(this.jGallery.options.hideEffect).removeClass(this.jGallery.options.showEffect),"undefined"!=typeof a&&(this.jGallery.options.hideEffect=a[0],this.jGallery.options.showEffect=a[1]),this.initAdvancedAnimation()},initSwipeEvents:function(){if(i.fn.swipe){var a,b=this.$element,c=this,d=function(a){b.css({"-webkit-transform":"translateX("+a+"px)",transform:"translateX("+a+"px)"})};b.swipe({swipeStatus:function(b,e,f,g){"start"===e&&(a=c.draggedHorizontal),a&&("move"!==e||"left"!==f&&"right"!==f?"cancel"===e?d(0):"end"===e&&("left"===f?(c.showNextPhoto(),d(0)):"right"===f&&(c.showPrevPhoto(),d(0))):"left"===f?d(-g):"right"===f&&d(g))}}).on("mouseleave",function(){d(0)})}},initAdvancedAnimation:function(){"undefined"==typeof this.advancedAnimation&&(this.advancedAnimation=new g(this.$element)),this.advancedAnimation.setAnimationProperties({duration:this.jGallery.options.transitionDuration,transitionTimingFunction:this.jGallery.options.transitionTimingFunction}),this.advancedAnimation.setDirection(this.jGallery.options.transitionWaveDirection),this.advancedAnimation.setQuantityParts(this.jGallery.options.transitionCols,this.jGallery.options.transitionRows),this.advancedAnimation.setHideEffect(this.jGallery.options.hideEffect),this.advancedAnimation.setShowEffect(this.jGallery.options.showEffect)},setThumbnails:function(a){this.thumbnails=a},showDragNav:function(){this.$dragNav.removeClass("hide").addClass("show")},hideDragNav:function(){this.$dragNav.removeClass("show").addClass("hide")},refreshDragNavVisibility:function(){var a=this.$element.find("img.active");a.width()<=this.$element.outerWidth()||a.height()<=this.$element.outerHeight()?this.hideDragNav():this.showDragNav()},refreshDragged:function(){var a=this.$element.find("img.active");a.width()<=this.$element.outerWidth()?this.draggedHorizontal=!0:this.draggedHorizontal=!1,a.height()<=this.$element.outerHeight()?this.draggedVertical=!0:this.draggedVertical=!1},enableDrag:function(){if(this.jGallery.options.draggableZoom){var a,b,c,d,e=this,f=function(c){var d=c.pageX,f=c.pageY,i=e.$element.find("img.active");a=i.css("margin-left"),b=i.css("margin-top"),e.$element.on({mousemove:function(a){h(a.pageX-d,a.pageY-f)},touchmove:function(a){a=a.originalEvent.touches[0],h(a.pageX-d,a.pageY-f)},mouseleave:function(){g()},touchend:function(){g()}}),"fill"===e.jGallery.options.zoomSize&&e.$dragNav.removeClass("hide").addClass("show"),h(0,0)},g=function(){e.$element.off("mousemove touchmove"),"fill"===e.jGallery.options.zoomSize&&e.$dragNav.removeClass("show").addClass("hide"),e.draggedHorizontal=c,e.draggedVertical=d},h=function(f,g){var h=parseFloat(parseFloat(a)+f),i=parseFloat(parseFloat(b)+g),j=e.$element.find("img.active"),k=j.eq(0),l=k.position(),m=l.left,n=l.top,o=j.eq(-1),p=o.position(),q=o.parent(),r=e.$dragNavCrop,s=r.position();0>m+h&&p.left+o.width()+h>q.outerWidth()?(j.css({"margin-left":h}),r.css({left:-(m+h)/j.width()*100+"%"}),c=!1):c=!0,0>n+i&&p.top+o.height()+i>q.outerHeight()?(j.css({"margin-top":i}),r.css({top:-(n+i)/j.height()*100+"%"}),d=!1):d=!0,e.$dragNavCropImg.css({"margin-left":-s.left,"margin-top":-s.top})};this.refreshDragNavCropSize(),this.$element.css("cursor","move").on({mousedown:function(a){a.preventDefault(),f(a),e.slideshowPause()},touchstart:function(a){a.preventDefault(),f(a.originalEvent.touches[0]),e.slideshowPause()},mouseup:function(){g()},touchend:function(){g()}})}},refreshContainerSize:function(){var a=this.jGallery.isSlider()?0:this.$container.find(".nav-bottom").outerHeight(),b=!this.jGallery.isSlider()&&!this.thumbnails.getElement().is(".hidden"),c=b?this.jGallery.options.thumbnailsPosition:"";this.$container.css({width:b&&this.thumbnails.isVertical()?this.$jGallery.width()-this.thumbnails.getElement().outerWidth(!0):"auto",height:b&&this.thumbnails.isHorizontal()?this.$jGallery.height()-this.thumbnails.getElement().outerHeight(!0)-a:this.$jGallery.height()-a,"margin-top":"top"===c?this.thumbnails.getElement().outerHeight(!0):0,"margin-left":"left"===c?this.thumbnails.getElement().outerWidth(!0):0,"margin-right":"right"===c?this.thumbnails.getElement().outerWidth(!0):0}),this.jGallery.options.draggableZoom&&this.refreshDragNavCropSize()},refreshSize:function(){this.thumbnails.isFullScreen()||(this.refreshContainerSize(),"original"===this.jGallery.options.zoomSize?this.original():"fill"===this.jGallery.options.zoomSize?this.fill():this.fit(),this.jGallery.options.draggableZoom&&(this.refreshDragNavCropSize(),this.refreshDragNavVisibility(),this.refreshDragged()),this.$element.addClass("visible"))},refreshDragNavCropSize:function(){var a,b,c=this.$element.find("img.active");this.$dragNavCrop.css({width:this.$element.width()/c.width()*100+"%",height:this.$element.height()/c.height()*100+"%"}),a=c.attr("data-width")a.width()&&a.attr("data-height")>a.height()?this.$resize.addClass("fa-search-plus").removeClass("fa-search-minus"):this.$resize.addClass("fa-search-minus").removeClass("fa-search-plus")},setImgSizeForOriginal:function(a){a.css({width:a.attr("data-width"),height:a.attr("data-height"),"min-width":0,"min-height":0,"max-width":"none","max-height":"none"}),a.css({"margin-top":-a.height()/2,"margin-left":-a.width()/2})},setImgSizeForFit:function(a){var b=this.jGallery.isSlider()?0:this.$container.find(".nav-bottom").outerHeight(),c=!this.jGallery.isSlider()&&!this.thumbnails.getElement().is(".hidden");a.css({width:"auto",height:"auto","min-width":0,"min-height":0,"max-width":c&&this.thumbnails.isVertical()?this.$jGallery.width()-this.thumbnails.getElement().outerWidth(!0):this.$jGallery.width(),"max-height":c&&this.thumbnails.isHorizontal()?this.$jGallery.height()-this.thumbnails.getElement().outerHeight(!0)-b:this.$jGallery.height()-b}),a.width()/a.height()/this.jGallery.getCanvasRatioWidthToHeight()<1?a.css({width:"auto",height:c&&this.thumbnails.isHorizontal()?this.$jGallery.height()-this.thumbnails.getElement().outerHeight(!0)-b:this.$jGallery.height()-b}):a.css({width:c&&this.thumbnails.isVertical()?this.$jGallery.width()-this.thumbnails.getElement().outerWidth(!0):this.$jGallery.width(),height:"auto"}),a.css({"margin-top":-a.height()/2,"margin-left":-a.width()/2})},setImgSizeForFill:function(a){var b=this.jGallery.isSlider()?0:this.$container.find(".nav-bottom").outerHeight(),c=!this.jGallery.isSlider()&&!this.thumbnails.getElement().is(".hidden");a.css({width:"auto",height:"auto","max-width":"none","max-height":"none","min-width":0,"min-height":0}),a.width()/a.height()/this.jGallery.getCanvasRatioWidthToHeight()>1?a.css({width:"auto",height:c&&this.thumbnails.isHorizontal()?this.$jGallery.height()-this.thumbnails.getElement().outerHeight(!0)-b:this.$jGallery.height()-b}):a.css({width:c&&this.thumbnails.isVertical()?this.$jGallery.width()-this.thumbnails.getElement().outerWidth(!0):this.$jGallery.width(),height:"auto"}),a.css({"min-width":c&&this.thumbnails.isVertical()?this.$jGallery.width()-this.thumbnails.getElement().outerWidth(!0):this.$jGallery.width(),"min-height":c&&this.thumbnails.isHorizontal()?this.$jGallery.height()-this.thumbnails.getElement().outerHeight(!0)-b:this.$jGallery.height()-b}),a.css({"margin-top":-a.height()/2,"margin-left":-a.width()/2})},isAddedToLoad:function(a){return this.$element.find("img").filter('[src="'+a.attr("href")+'"]').length>0},isLoaded:function(a){var b=this.$element.find("img").filter('[src="'+a.attr("href")+'"]').get(0);return b?this.imgIsLoaded(b):void 0},imgIsLoaded:function(a){return a.complete&&a.naturalWidth>0},refreshNav:function(){var a=this.thumbnails.getElement().find("div.active a.active");1===a.prev("a").length?this.$btnPrev.removeClass("hidden"):this.$btnPrev.addClass("hidden"),1===a.next("a").length?this.$btnNext.removeClass("hidden"):this.$btnNext.addClass("hidden")},slideshowStop:function(){this.slideshowPause(),this.jGallery.progress.clear()},slideshowPause:function(){this.jGallery.progress.pause(),this.$slideshow.removeClass("fa-pause").addClass("fa-play"),this.booSlideshowPlayed=!1,this.jGallery.options.slideshowCanRandom&&this.$random.hide()},slideshowPlay:function(){this.booLoadingInProgress||this.booSlideshowPlayed||(this.booSlideshowPlayed=!0,this.$slideshow.removeClass("fa-play").addClass("fa-pause"),this.slideshowSetTimeout(),this.jGallery.options.slideshowCanRandom&&this.$random.show())},slideshowPlayPause:function(){this.$slideshow.is(".fa-play")?this.slideshowPlay():this.slideshowPause()},slideshowSetTimeout:function(){var a=this;this.jGallery.progress.start(this.$container.width(),function(){a.jGallery.progress.clear(),a.jGallery.options.slideshowRandom?a.showRandomPhoto():a.showNextPhotoLoop()})},slideshowRandomToggle:function(){this.jGallery.options.slideshowRandom?(this.$random.removeClass("active"),this.jGallery.options.slideshowRandom=!1):(this.$random.addClass("active"),this.jGallery.options.slideshowRandom=!0)},showNextPhotoLoop:function(){var a=this.thumbnails.$a.filter(".active").next("a");0===a.length&&(a=this.thumbnails.$albums.filter(".active").find("a").eq(0)),this.showPhoto(a)},showRandomPhoto:function(){var a=this.thumbnails.$albums.filter(".active").find("a:not(.active)");this.showPhoto(a.eq(Math.floor(Math.random()*a.length)))},showPrevPhoto:function(){var a=this.thumbnails.$a.filter(".active").prev("a");1===a.length&&this.showPhoto(a)},showNextPhoto:function(){var a=this.thumbnails.$a.filter(".active").next("a");1===a.length&&this.showPhoto(a)},showPhotoInit:function(){this.jGallery.init()},showPhoto:function(a,b){var c,e,g,h,i=this,j=a.children("img"),k=a.next();k.length>0&&(i.isAddedToLoad(k)||this.appendPhoto(k));var l=a.prev();if(l.length>0&&(i.isAddedToLoad(l)||this.appendPhoto(l)),this.jGallery.initialized()||this.showPhotoInit(),!this.booLoadingInProgress){if(this.booLoadingInProgress=!0,h=this.jGallery.options[a.nextAll(".active").length>0?"transitionBackward":"transition"],"random"===h?this.setRandomTransition():"auto"===h?(g=d[f[this.jGallery.options.transition]],this.advancedAnimation.setHideEffect(g[0]),this.advancedAnimation.setShowEffect(g[1])):(g=d[h],this.advancedAnimation.setHideEffect(g[0]),this.advancedAnimation.setShowEffect(g[1])),this.$element.find(".pt-page.init").remove(),this.jGallery.options.showPhoto(a,j),this.jGallery.$element.is(":not(:visible)")&&this.jGallery.show(),this.thumbnails.changeViewToBar(),this.jGallery.booIsAlbums&&""===this.jGallery.iconChangeAlbum.getTitle()&&(e=a.parents(".album").eq(0).attr("data-jgallery-album-title"),this.jGallery.iconChangeAlbum.setTitle(e),this.jGallery.iconChangeAlbum.$element.find('[data-jgallery-album-title="'+e+'"]').addClass("active"),a.parents(".album").addClass("active").siblings(".album").removeClass("active")),this.thumbnails.setActiveAlbum(this.thumbnails.$albums.filter('[data-jgallery-album-title="'+a.parents("[data-jgallery-album-title]").attr("data-jgallery-album-title")+'"]')),this.thumbnails.setActiveThumb(a),this.$element.find("img.active").attr("src")===a.attr("href"))return this.booLoadingInProgress=!1,void this.setJGalleryColoursForActiveThumb();a.is("[link]")?(this.$element.addClass("is-link"),a.is('[target="_blank"]')?this.$element.attr("onclick",'window.open("'+a.attr("link")+'")'):this.$element.attr("onclick",'window.location="'+a.attr("link")+'"')):(this.$element.removeClass("is-link"),this.$element.removeAttr("onclick")),this.refreshNav(),this.jGallery.options.title&&this.$title.addClass("after fade"),c=i.isLoaded(a),c||(i.jGallery.options.preloadAll&&!i.booLoadedAll?this.appendAllPhotos():this.isAddedToLoad(a)||this.appendPhoto(a)),this.$element.find("img.active").addClass("prev-img"),i.$container.find("img.active").removeClass("active"),i.$container.find('[src="'+a.attr("href")+'"]').addClass("active"),i.jGallery.options.title&&j.is("[alt]")&&i.$title.removeClass("after").addClass("before"),!c||i.jGallery.options.preloadAll&&!i.booLoadedAll?(i.booLoadedAll=!0,i.$container.overlay({show:!0,showLoader:!0,showProgress:i.jGallery.options.preloadAll,resetProgress:i.jGallery.options.preloadAll}),i.jGallery.options.beforeLoadPhoto(a,j),i.loadPhoto(i.$element,a,b)):i.showPhotoSuccess(a,j,b)}},appendPhoto:function(a){this.$element.find(".pt-part").append('
')},appendAllPhotos:function(){var a=this;this.jGallery.options.preloadAll&&(this.thumbnails.$a.each(function(){var b=i(this);a.isAddedToLoad(b)||a.$element.find(".pt-part").append('
')}),this.appendInitPhoto(this.thumbnails.$a.eq(-1)))},appendInitPhoto:function(a){1===a.length&&this.$element.find(".pt-part").append(' ')},loadPhoto:function(a,b,c){var d=this,e=b.children("img"),f=0,g=a.find(".pt-part").eq(0),h=this.jGallery.options.preloadAll?g:g.find("img.active");h.jLoader({interval:500,skip:".loaded",start:function(){},success:function(){a.find("img").each(function(){var a=i(this);d.imgIsLoaded(a.get(0))&&a.addClass("loaded")}),d.$container.overlay({hide:!0,hideLoader:!0}),d.showPhotoSuccess(b,e,c)},progress:function(a){d.jGallery.options.preloadAll&&(f=a.percent,d.$container.find(".overlay .imageLoaderPositionAbsolute").find(".progress-value").html(f))}})},showPhotoSuccess:function(a,b,d){var e,f=this.$element.find("img.active");d=i.extend({},{historyPushState:!0},d),f.is(":not([data-width])")&&(e=new Image,e.src=f.attr("src"),f.attr("data-width",e.width),f.attr("data-height",e.height)),this.jGallery.options.title&&b.attr("alt")?(this.$title.html(b.attr("alt")).removeClass("before").removeClass("after"),this.jGallery.$element.addClass("has-title")):this.jGallery.$element.removeClass("has-title"),this.setJGalleryColoursForActiveThumb(),this.$element.find(".pt-page.init").css({visibility:"visible"}),this.$element.find("img.prev-img").removeClass("prev-img"),this.advancedAnimation.show(f.eq(0).parent().parent(),{animation:1===this.$element.find(".pt-part").eq(0).find(".pt-page-current:not(.pt-page-prev)").length}),this.refreshSize(),this.thumbnails.refreshNavigation(),this.booSlideshowPlayed&&this.slideshowSetTimeout(),this.jGallery.options.afterLoadPhoto(a,b),this.booLoadingInProgress=!1,this.jGallery.options.autostart&&this.jGallery.options.slideshowAutostart&&this.jGallery.options.slideshow&&(this.jGallery.options.slideshowAutostart=!1,this.slideshowPlay()),this.jGallery.options.draggableZoom&&(this.$dragNav.html('
'),this.$dragNavCrop=this.$dragNav.find(".crop"),this.$dragNavCropImg=this.$dragNavCrop.find("img"),this.refreshDragNavCropSize()),d.historyPushState&&this.jGallery.options.browserHistory&&c({path:f.attr("src")})},showPhotoByPath:function(a){var b=this.thumbnails.$albums.filter(".active").find('a[href="'+a+'"]');0===b.length&&(b=this.thumbnails.$a.filter('a[href="'+a+'"]').eq(0)),0!==b.length&&this.showPhoto(b,{historyPushState:!1})},setJGalleryColoursForActiveThumb:function(){var a=this.thumbnails.$a.filter(".active").find("img");this.jGallery.setColours({strBg:a.is("[data-jgallery-bg-color]")?a.attr("data-jgallery-bg-color"):this.jGallery.options.backgroundColor,strText:a.is("[data-jgallery-bg-color]")?a.attr("data-jgallery-text-color"):this.jGallery.options.textColor})},setTransition:function(a){this.jGallery.options.hideEffect=d[a][0],this.jGallery.options.showEffect=d[a][1],this.advancedAnimation.setHideEffect(this.jGallery.options.hideEffect),this.advancedAnimation.setShowEffect(this.jGallery.options.showEffect)},setRandomTransition:function(){var a;this.$element.find(".pt-page").removeClass(this.jGallery.options.hideEffect).removeClass(this.jGallery.options.showEffect),a=Math.floor(Math.random()*e.length),this.jGallery.options.hideEffect=e[a][0],this.jGallery.options.showEffect=e[a][1],this.advancedAnimation.setHideEffect(this.jGallery.options.hideEffect),this.advancedAnimation.setShowEffect(this.jGallery.options.showEffect)},unmarkActive:function(){this.$element.find("img.active").removeClass("active")},changeMode:function(){var a=this.jGallery.options.mode;"slider"!==a&&("standard"===a?this.goToFullScreenMode():"full-screen"===a&&this.goToStandardMode(),this.jGallery.iconChangeAlbum instanceof h&&this.jGallery.iconChangeAlbum.refreshMenuHeight())},goToFullScreenMode:function(){j.css({overflow:"hidden"}),this.jGallery.$this.show(),this.jGallery.$element.removeClass("jgallery-standard").addClass("jgallery-full-screen").css({width:"auto",height:"auto"}),this.$changeMode.removeClass("fa-expand").addClass("fa-compress"),this.jGallery.options.mode="full-screen",this.jGallery.refreshDimensions()},goToStandardMode:function(){j.css({overflow:"visible"}),this.jGallery.$this.hide(),this.jGallery.$element.removeClass("jgallery-full-screen").addClass("jgallery-standard").css({width:this.jGallery.options.width,height:this.jGallery.options.height}),this.$changeMode.removeClass("fa-compress").addClass("fa-expand"),this.jGallery.options.mode="standard",this.jGallery.refreshDimensions()}},k}(k,j,l,f,g,h,p,q),v=function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){var p=jQuery,q=p("html"),r=p("head"),s=p("body"),t=p(window);p.fn.outerHtml=a;var u=function(a,b,c){var f=this;b&&!a.is("[data-jgallery-id]")&&(this.$this=a,this.intId=b,this.$this.attr("data-jgallery-id",this.intId),this.overrideOptions(c),this.booIsAlbums=a.find(".album:has(a:has(img))").length>1,this.options.disabledOnIE8AndOlder&&d()||this.init({success:function(){f.options.browserHistory&&f.browserHistory(),f.options.autostart&&f.autostart(),e(),q.on({keydown:function(a){if(f.$element.is(":visible")){if(27===a.which){if(a.preventDefault(),f.thumbnails.getElement().is(".full-screen"))return f.thumbnails.changeViewToBar(),void f.zoom.refreshSize();f.hide()}37===a.which&&(a.preventDefault(),f.zoom.showPrevPhoto()),39===a.which&&(a.preventDefault(),f.zoom.showNextPhoto())}}})}}))};return u.prototype={template:{html:'',done:function(a){a(this.html)}},initialized:function(){return this.$this.is("[data-jgallery-id]")},update:function(a){var b=this;this.template.done(function(){b.overrideOptions(a),b.options.disabledOnIE8AndOlder&&d()||(b.booIsAlbums=b.$this.find(".album:has(a:has(img))").length>1,b.zoom.update(),b.thumbnails.init(),b.setUserOptions(),b.reloadThumbnails(),b.refreshDimensions())})},overrideOptions:function(a){var b="undefined"!=typeof a&&"undefined"!=typeof a.mode;this.options=p.extend({},f,this.options),b&&"full-screen"===a.mode?this.options=p.extend({},this.options,g,a,i):b&&"slider"===a.mode?this.options=p.extend({},this.options,h,a,j):this.options=p.extend({},this.options,a)},reloadThumbnails:function(){new n(this,{thumbsHidden:!1}),this.generateAlbumsDropdown(),this.thumbnails.reload()},setVariables:function(){this.$element=p(".jgallery").filter('[data-jgallery-id="'+this.intId+'"]'),this.progress=new l(this.$element.find(".zoom-container").children(".progress"),this),this.zoom=new o(this),this.thumbnails=new m(this),this.zoom.setThumbnails(this.thumbnails)},show:function(){this.$this.hide(),t.on("resize",{jGallery:this},this.windowOnResize),"full-screen"===this.options.mode&&(this.bodyOverflowBeforeShow=s.css("overflow"),s.css({overflow:"hidden"})),this.$element.not(":visible").removeClass("hidden").stop(!1,!0).fadeIn(500),this.zoom.refreshContainerSize(),this.zoom.$title.removeClass("hidden"),this.options.showGallery(),this.iconChangeAlbum instanceof k&&this.iconChangeAlbum.refreshMenuHeight(),e()},hide:function(a){var c=this;this.options.canClose&&(a=p.extend({},{historyPushState:!0},a),this.$element.filter(":visible").stop(!1,!0).addClass("hidden").fadeOut(500,function(){"full-screen"===c.options.mode&&s.css({overflow:c.bodyOverflowBeforeShow}),e()}),this.zoom.booLoadingInProgress=!1,clearTimeout(this.zoom.showPhotoTimeout),this.zoom.$title.addClass("hidden"),this.zoom.$btnPrev.addClass("hidden"),this.zoom.$btnNext.addClass("hidden"),this.zoom.slideshowPause(),this.zoom.advancedAnimation.hideActive(),this.zoom.unmarkActive(),t.off("resize",this.windowOnResize),this.$this.show(),a.historyPushState&&this.options.browserHistory&&b(),this.options.closeGallery())},autostart:function(){var a,b;this.$element.is(":visible")||(this.booIsAlbums?(a=this.thumbnails.getElement().find(".album").eq(this.options.autostartAtAlbum-1),0===a.length&&(a=this.thumbnails.getElement().find(".album").eq(0))):a=this.thumbnails.getElement(),b=a.find("a").eq(this.options.autostartAtImage-1),0===b.length&&(b=a.find("a").eq(0)),b.trigger("click"))},browserHistory:function(){function a(){var a;if(document.location.hash)switch(a=document.location.hash.replace("#","")){case"":b.hide({historyPushState:!1});break;default:b.zoom.showPhotoByPath(a)}}var b=this,c=window.onpopstate;window.onpopstate=function(){"function"==typeof c&&c(),a()},this.options.autostart&&a()},generateAlbumsDropdown:function(){var a=this;this.$element.find(".change-album").remove(),this.booIsAlbums&&(this.zoom.$container.find(".nav-bottom > .icons").append(' '),this.iconChangeAlbum=new k(a.zoom.$container.find(".change-album"),this),this.iconChangeAlbum.clearMenu(),this.thumbnails.$albums.each(function(){var b=p(this).attr("data-jgallery-album-title");a.iconChangeAlbum.appendToMenu(''+b+"")}),this.thumbnails.getElement().append(this.iconChangeAlbum.getElement().outerHtml()),this.iconChangeAlbum=new k(this.iconChangeAlbum.getElement().add(this.thumbnails.getElement().children(":last-child")),this),this.iconChangeAlbum.bindEvents(this))},init:function(a){var b=this;a=p.extend({success:function(){}},a),r.append(''),this.options.initGallery(),this.generateHtml({success:function(){new n(b),b.setVariables(),b.thumbnails.init(),b.thumbnails.getElement().append(''),b.generateAlbumsDropdown(),b.setUserOptions(),("fit"===b.options.zoomSize||"original"===b.options.zoomSize)&&b.zoom.$resize.addClass("fa-search-plus"),"fill"===b.options.zoomSize&&b.zoom.$resize.addClass("fa-search-minus"),c()||b.$element.addClass("text-shadow"),b.thumbnails.refreshNavigation(),b.zoom.refreshNav(),b.zoom.refreshSize(),b.$this.on("click","a:has(img)",function(a){var c=p(this);a.preventDefault(),b.zoom.showPhoto(c)}),b.thumbnails.$element.on("click","a",function(a){var c=p(this);a.preventDefault(),c.is(":not(.active)")?(b.zoom.slideshowStop(),b.zoom.showPhoto(c)):b.thumbnails.isFullScreen()&&(b.thumbnails.changeViewToBar(),b.zoom.refreshSize())}),b.zoom.$btnPrev.add(b.zoom.$container.find(".left")).on({click:function(){b.zoom.slideshowStop(),b.zoom.showPrevPhoto()}}),b.zoom.$btnNext.add(b.zoom.$container.find(".right")).on({click:function(){b.zoom.slideshowStop(),b.zoom.showNextPhoto()}}),b.zoom.$container.find(".jgallery-close").on({click:function(){b.hide()}}),b.zoom.$random.on({click:function(){b.zoom.slideshowRandomToggle()}}),b.zoom.$resize.on({click:function(){b.zoom.changeSize(),b.zoom.slideshowPause()}}),b.zoom.$changeMode.on({click:function(){b.zoom.changeMode()}}),b.zoom.$slideshow.on({click:function(){b.zoom.slideshowPlayPause()}}),b.zoom.$container.find(".minimalize-thumbnails").on({click:function(){b.thumbnails.toggle(),b.zoom.refreshSize()}}),b.thumbnails.bindEvents(),a.success(),b.options.hideThumbnailsOnInit&&b.zoom.$container.find(".minimalize-thumbnails").addClass("inactive")}}),this.refreshCssClassJGalleryMobile()},isSlider:function(){return"slider"===this.options.mode},windowOnResize:function(a){var b=a.data.jGallery;b.refreshThumbnailsVisibility(),b.refreshCssClassJGalleryMobile()},refreshCssClassJGalleryMobile:function(){this.isMobile()?this.$jgallery.addClass("jgallery-mobile"):this.$jgallery.removeClass("jgallery-mobile")},refreshDimensions:function(){ this.zoom.refreshSize(),this.iconChangeAlbum instanceof k&&this.iconChangeAlbum.refreshMenuHeight(),this.thumbnails.refreshNavigation()},getCanvasRatioWidthToHeight:function(){var a,b;return this.thumbnails.isHorizontal()?(a=this.$element.width(),b=this.$element.height()-this.thumbnails.getElement().outerHeight(!0)):this.thumbnails.isVertical()?(a=this.$element.width()-this.thumbnails.getElement().outerWidth(!0),b=this.$element.height()):(a=this.$element.width(),b=this.$element.height()),a/b},hideThumbnailsBar:function(){this.thumbnails.getElement().addClass("hidden"),this.zoom.$container.find(".minimalize-thumbnails").hide()},showThumbnailsBar:function(){this.thumbnails.getElement().removeClass("hidden"),this.options.canMinimalizeThumbnails&&this.options.thumbnails?this.zoom.$container.find(".minimalize-thumbnails").show():this.zoom.$container.find(".minimalize-thumbnails").hide()},refreshThumbnailsVisibility:function(){this.isMobile()?this.options.thumbnailsHideOnMobile&&this.hideThumbnailsBar():this.options.thumbnails?this.showThumbnailsBar():this.hideThumbnailsBar(),this.refreshDimensions()},isMobile:function(){return t.width()<=this.options.maxMobileWidth},setUserOptions:function(){var a=this.options,b=a.mode,c="full-screen"===b?"auto":a.width,d="full-screen"===b?"auto":a.height;this.refreshAttrClasses(),this.options.canZoom?this.zoom.$resize.show():this.zoom.$resize.hide(),this.options.canChangeMode?this.zoom.$changeMode.show():this.zoom.$changeMode.hide(),"standard"===this.options.mode?this.zoom.$changeMode.removeClass("fa-compress").addClass("fa-expand"):this.zoom.$changeMode.removeClass("fa-expand").addClass("fa-compress"),this.options.canClose?this.zoom.$container.find(".jgallery-close").show():this.zoom.$container.find(".jgallery-close").hide(),this.refreshThumbnailsVisibility(),this.zoom.refreshSize(),this.options.slideshow?this.zoom.$slideshow.show():this.zoom.$slideshow.hide(),this.options.slideshow&&this.options.slideshowCanRandom&&this.options.slideshowAutostart?this.zoom.$random.show():this.zoom.$random.hide(),this.options.slideshow&&this.options.slideshowCanRandom&&this.options.slideshowRandom?this.zoom.$random.addClass("active"):this.zoom.$random.removeClass("active"),this.options.thumbnailsFullScreen&&this.options.thumbnails?this.zoom.$container.find(".full-screen").show():this.zoom.$container.find(".full-screen").hide(),this.options.hideThumbnailsOnInit&&this.options.thumbnails?this.thumbnails.hide():this.thumbnails.show(),this.options.titleExpanded?this.zoom.$title.addClass("expanded"):this.zoom.$title.removeClass("expanded"),this.setColours({strBg:this.options.backgroundColor,strText:this.options.textColor}),this.options.tooltips?this.$jgallery.addClass("jgallery-tooltips"):this.$jgallery.removeClass("jgallery-tooltips"),this.$jgallery.css({width:c,height:d}),this.options.draggableZoomHideNavigationOnMobile?this.$jgallery.addClass("jgallery-hide-draggable-navigation-on-mobile"):this.$jgallery.removeClass("jgallery-hide-draggable-navigation-on-mobile")},refreshAttrClasses:function(){var a=this,b=["standard","full-screen","slider"];p.each(b,function(b,c){a.$jgallery.removeClass("jgallery-"+c)}),this.$jgallery.addClass("jgallery-"+this.options.mode)},setColours:function(a){r.find('style[data-jgallery-id="'+this.intId+'"].colours').html(this.getCssForColours(a))},generateHtml:function(a){var b=this;a=p.extend({},{success:function(){}},a),this.template.done(function(c){!function(){var a=b.options,d=a.mode;"full-screen"===d?b.$jgallery=b.$this.after(c).next():(a.autostart&&b.$this.hide(),b.$jgallery=b.$this.after(c).next()),b.$jgallery.addClass("jgallery-"+d).attr("data-jgallery-id",b.intId),b.$jgallery.find(".fa.slideshow").attr("tooltip",a.tooltipSlideshow),b.$jgallery.find(".fa.resize").attr("tooltip",a.tooltipZoom),b.$jgallery.find(".fa.change-mode").attr("tooltip",a.tooltipFullScreen),b.$jgallery.find(".fa.jgallery-close").attr("tooltip",a.tooltipClose),b.$jgallery.find(".fa.random").attr("tooltip",a.tooltipRandom),b.$jgallery.find(".fa.full-screen").attr("tooltip",a.tooltipSeeAllPhotos),b.$jgallery.find(".fa.minimalize-thumbnails").attr("tooltip",a.tooltipToggleThumbnails)}(),a.success()})},getCssForColours:function(a){a=p.extend({strBg:"rgb(0, 0, 0)",strText:"rgb(255, 255, 255)"},a);var b,c,d;return"function"==typeof tinycolor?(b=tinycolor(a.strText).toRgb(),c=tinycolor(a.strBg).toRgb(),c.r+c.g+c.b>375?(c=tinycolor.darken(a.strBg).toRgb(),d=tinycolor(a.strBg).toRgb()):(c=tinycolor(a.strBg).toRgb(),d=tinycolor.lighten(a.strBg).toRgb())):(c={r:230,g:230,b:230},d={r:255,g:255,b:255},b={r:0,g:0,b:0}),' .jgallery[data-jgallery-id="'+this.intId+'"] { background: rgb('+c.r+","+c.g+", "+c.b+'); } .jgallery[data-jgallery-id="'+this.intId+'"] [tooltip]:after { background: rgba('+b.r+","+b.g+", "+b.b+", .9); color: rgb("+c.r+","+c.g+", "+c.b+'); } .jgallery[data-jgallery-id="'+this.intId+'"] .jgallery-btn { color: rgb('+b.r+","+b.g+", "+b.b+"); text-shadow: 0 0 1px rgb("+c.r+","+c.g+", "+c.b+'); } .jgallery[data-jgallery-id="'+this.intId+'"] .jgallery-btn.active { color: rgb('+b.r+","+b.g+", "+b.b+'); } .jgallery[data-jgallery-id="'+this.intId+'"] .jgallery-btn:hover { text-shadow: none; text-shadow: 0 0 .15em rgba('+b.r+","+b.g+", "+b.b+",.75), 0 0 .45em rgba("+b.r+","+b.g+", "+b.b+',.5); } .jgallery[data-jgallery-id="'+this.intId+'"] .change-album .menu { background: rgb('+d.r+","+d.g+", "+d.b+'); } .jgallery[data-jgallery-id="'+this.intId+'"] .zoom-container .nav-bottom .change-album > .title { background: rgb('+d.r+","+d.g+", "+d.b+"); box-shadow: 4px 0 4px rgb("+d.r+","+d.g+", "+d.b+') } .jgallery[data-jgallery-id="'+this.intId+'"] .full-screen .change-album .menu { background: rgb('+c.r+","+c.g+", "+c.b+'); } .jgallery[data-jgallery-id="'+this.intId+'"] .change-album .menu .item { border-color: rgb('+c.r+","+c.g+", "+c.b+"); color: rgb("+b.r+","+b.g+", "+b.b+"); background: rgb("+d.r+","+d.g+", "+d.b+'); } .jgallery[data-jgallery-id="'+this.intId+'"] .full-screen .change-album .menu .item { border-color: rgb('+d.r+","+d.g+", "+d.b+"); background: rgb("+c.r+","+c.g+", "+c.b+'); } .jgallery[data-jgallery-id="'+this.intId+'"] .change-album .menu .item.active, .jgallery[data-jgallery-id="'+this.intId+'"] .change-album .menu .item:hover { background: rgb('+b.r+","+b.g+", "+b.b+"); color: rgb("+c.r+","+c.g+", "+c.b+'); } .jgallery[data-jgallery-id="'+this.intId+'"] .zoom-container:not([data-size="fill"]) .jgallery-container { background: rgb('+c.r+","+c.g+", "+c.b+'); } .jgallery[data-jgallery-id="'+this.intId+'"] .zoom-container .nav-bottom { background: rgb('+d.r+","+d.g+", "+d.b+"); -webkit-box-shadow: 0 -3px rgba("+d.r+","+d.g+", "+d.b+", .5); box-shadow: 0 -3px rgba("+d.r+","+d.g+", "+d.b+', .5); } .jgallery[data-jgallery-id="'+this.intId+'"] .zoom-container .nav-bottom .icons, .jgallery[data-jgallery-id="'+this.intId+'"] .zoom-container .nav-bottom .icons .fa { background: rgb('+d.r+","+d.g+", "+d.b+'); } .jgallery[data-jgallery-id="'+this.intId+'"] .zoom-container .nav-bottom > .title { color: rgb('+b.r+","+b.g+", "+b.b+'); } .jgallery[data-jgallery-id="'+this.intId+'"] .zoom-container .nav-bottom > .title.expanded { background: rgba('+c.r+","+c.g+", "+c.b+',.7); } .jgallery[data-jgallery-id="'+this.intId+'"] .zoom-container .drag-nav { background: rgb('+d.r+","+d.g+", "+d.b+"); -webkit-box-shadow: 0 0 0 3px rgba("+d.r+","+d.g+", "+d.b+", .5); box-shadow: 0 0 0 3px rgba("+d.r+","+d.g+", "+d.b+', .5); } .jgallery[data-jgallery-id="'+this.intId+'"] .zoom-container .drag-nav .crop { -webkit-box-shadow: 0 0 0 3px rgba('+b.r+","+b.g+", "+b.b+", .5); box-shadow: 0 0 0 3px rgba("+b.r+","+b.g+", "+b.b+', .5); } .jgallery[data-jgallery-id="'+this.intId+'"] .jgallery-thumbnails { background: rgb('+d.r+","+d.g+", "+d.b+'); } .jgallery[data-jgallery-id="'+this.intId+'"] .jgallery-thumbnails .ico { color: rgb('+b.r+","+b.g+", "+b.b+'); } .jgallery[data-jgallery-id="'+this.intId+'"] .jgallery-thumbnails .jgallery-container { -webkit-box-shadow: 0 0 0 3px rgba('+d.r+","+d.g+", "+d.b+", .5); box-shadow: 0 0 0 3px rgba("+d.r+","+d.g+", "+d.b+', .5); } .jgallery[data-jgallery-id="'+this.intId+'"] .jgallery-thumbnails.full-screen .prev:before { background-image: -webkit-gradient(linear,left 0%,left 100%,from(rgba('+d.r+","+d.g+", "+d.b+", 1)),to(rgba("+d.r+","+d.g+", "+d.b+", 0))); background-image: -webkit-linear-gradient(top,rgba("+d.r+","+d.g+", "+d.b+", 1),0%,rgba("+d.r+","+d.g+", "+d.b+", 0),100%); background-image: -moz-linear-gradient(top,rgba("+d.r+","+d.g+", "+d.b+", 1) 0%,rgba("+d.r+","+d.g+", "+d.b+", 0) 100%); background-image: linear-gradient(to bottom,rgba("+d.r+","+d.g+", "+d.b+", 1) 0%,rgba("+d.r+","+d.g+", "+d.b+', 0) 100%); background-repeat: repeat-x; } .jgallery[data-jgallery-id="'+this.intId+'"] .jgallery-thumbnails.full-screen .next:before { background-image: -webkit-gradient(linear,left 0%,left 100%,from(rgba('+d.r+","+d.g+", "+d.b+", 0)),to(rgba("+d.r+","+d.g+", "+d.b+", 1))); background-image: -webkit-linear-gradient(top,rgba("+d.r+","+d.g+", "+d.b+", 0),0%,rgba("+d.r+","+d.g+", "+d.b+", 1),100%); background-image: -moz-linear-gradient(top,rgba("+d.r+","+d.g+", "+d.b+", 0) 0%,rgba("+d.r+","+d.g+", "+d.b+", 1) 100%); background-image: linear-gradient(to bottom,rgba("+d.r+","+d.g+", "+d.b+", 0) 0%,rgba("+d.r+","+d.g+", "+d.b+', 1) 100%); background-repeat: repeat-x; } .jgallery[data-jgallery-id="'+this.intId+'"] .jgallery-thumbnails.images a:after { background: rgb('+d.r+","+d.g+", "+d.b+'); } .jgallery[data-jgallery-id="'+this.intId+'"] .jgallery-thumbnails.full-screen .prev, .jgallery[data-jgallery-id="'+this.intId+'"] .jgallery-thumbnails.full-screen .next { background: rgb('+d.r+","+d.g+", "+d.b+'); } .jgallery[data-jgallery-id="'+this.intId+'"] .jgallery-thumbnails.square:not(.full-screen) a { background: rgb('+b.r+","+b.g+", "+b.b+"); color: rgb("+c.r+","+c.g+", "+c.b+'); } .jgallery[data-jgallery-id="'+this.intId+'"] .overlayContainer .overlay { background: rgba('+c.r+","+c.g+", "+c.b+",.8); color: rgb("+b.r+","+b.g+", "+b.b+'); } .jgallery[data-jgallery-id="'+this.intId+'"] .overlayContainer .imageLoaderPositionAbsolute:after { border-color: rgba('+b.r+","+b.g+", "+b.b+', .5); } .jgallery[data-jgallery-id="'+this.intId+'"] .jgallery-thumbnails .overlayContainer .overlay { background: rgb('+d.r+","+d.g+", "+d.b+'); } .jgallery[data-jgallery-id="'+this.intId+'"] .jgallery-thumbnails-horizontal .prev { background: rgb('+d.r+","+d.g+", "+d.b+'); } .jgallery[data-jgallery-id="'+this.intId+'"] .jgallery-thumbnails-horizontal .prev:before { background-image: -webkit-gradient(linear,0% top,100% top,from(rgba('+d.r+","+d.g+", "+d.b+", 1)),to(rgba("+d.r+","+d.g+", "+d.b+", 0))); background-image: -webkit-linear-gradient(left,color-stop(rgba("+d.r+","+d.g+", "+d.b+", 1) 0%),color-stop(rgba("+d.r+","+d.g+", "+d.b+", 0) 100%)); background-image: -moz-linear-gradient(left,rgba("+d.r+","+d.g+", "+d.b+", 1) 0%,rgba("+d.r+","+d.g+", "+d.b+", 0) 100%); background-image: linear-gradient(to right,rgba("+d.r+","+d.g+", "+d.b+", 1) 0%,rgba("+d.r+","+d.g+", "+d.b+', 0) 100%); background-repeat: repeat-x; } .jgallery[data-jgallery-id="'+this.intId+'"] .jgallery-thumbnails-horizontal .next { background: rgb('+d.r+","+d.g+", "+d.b+'); } .jgallery[data-jgallery-id="'+this.intId+'"] .jgallery-thumbnails-horizontal .next:before { background-image: -webkit-gradient(linear,0% top,100% top,from(rgba('+d.r+","+d.g+", "+d.b+", 0)),to(rgba("+d.r+","+d.g+", "+d.b+", 1))); background-image: -webkit-linear-gradient(left,color-stop(rgba("+d.r+","+d.g+", "+d.b+", 0) 0%),color-stop(rgba("+d.r+","+d.g+", "+d.b+", 1) 100%)); background-image: -moz-linear-gradient(left,rgba("+d.r+","+d.g+", "+d.b+", 0) 0%,rgba("+d.r+","+d.g+", "+d.b+", 1) 100%); background-image: linear-gradient(to right,rgba("+d.r+","+d.g+", "+d.b+", 0) 0%,rgba("+d.r+","+d.g+", "+d.b+', 1) 100%); background-repeat: repeat-x; } .jgallery[data-jgallery-id="'+this.intId+'"] .jgallery-thumbnails-vertical .prev { background: rgb('+d.r+","+d.g+", "+d.b+'); } .jgallery[data-jgallery-id="'+this.intId+'"] .jgallery-thumbnails-vertical .prev:before { background-image: -webkit-gradient(linear,left 0%,left 100%,from(rgba('+d.r+","+d.g+", "+d.b+", 1)),to(rgba("+d.r+","+d.g+", "+d.b+", 0))); background-image: -webkit-linear-gradient(top,rgba("+d.r+","+d.g+", "+d.b+", 1),0%,rgba("+d.r+","+d.g+", "+d.b+", 0),100%); background-image: -moz-linear-gradient(top,rgba("+d.r+","+d.g+", "+d.b+", 1) 0%,rgba("+d.r+","+d.g+", "+d.b+", 0) 100%); background-image: linear-gradient(to bottom,rgba("+d.r+","+d.g+", "+d.b+", 1) 0%,rgba("+d.r+","+d.g+", "+d.b+', 0) 100%); background-repeat: repeat-x; } .jgallery[data-jgallery-id="'+this.intId+'"] .jgallery-thumbnails-vertical .next { background: rgb('+d.r+","+d.g+", "+d.b+'); } .jgallery[data-jgallery-id="'+this.intId+'"] .jgallery-thumbnails-vertical .next:before { background-image: -webkit-gradient(linear,left 0%,left 100%,from(rgba('+d.r+","+d.g+", "+d.b+", 0)),to(rgba("+d.r+","+d.g+", "+d.b+", 1))); background-image: -webkit-linear-gradient(top,rgba("+d.r+","+d.g+", "+d.b+", 0),0%,rgba("+d.r+","+d.g+", "+d.b+", 1),100%); background-image: -moz-linear-gradient(top,rgba("+d.r+","+d.g+", "+d.b+", 0) 0%,rgba("+d.r+","+d.g+", "+d.b+", 1) 100%); background-image: linear-gradient(to bottom,rgba("+d.r+","+d.g+", "+d.b+", 0) 0%,rgba("+d.r+","+d.g+", "+d.b+', 1) 100%); background-repeat: repeat-x; } .jgallery.jgallery-slider[data-jgallery-id="'+this.intId+'"] .zoom-container .nav-bottom, .jgallery.jgallery-slider[data-jgallery-id="'+this.intId+'"] .zoom-container .nav-bottom > .title.expanded { background: none; } .jgallery.has-title.jgallery-slider[data-jgallery-id="'+this.intId+'"] .zoom-container .nav-bottom, .jgallery.has-title.jgallery-slider[data-jgallery-id="'+this.intId+'"] .zoom-container .nav-bottom > .title.expanded { background: rgba('+c.r+","+c.g+", "+c.b+",.7); color: rgb("+b.r+","+b.g+", "+b.b+'); } .jgallery.jgallery-slider[data-jgallery-id="'+this.intId+'"] .zoom-container .nav-bottom .jgallery-btn { background: rgba('+c.r+","+c.g+", "+c.b+",.8); color: rgb("+b.r+","+b.g+", "+b.b+"); } "}},u}(i,l,m,n,o,a,b,c,d,e,q,r,s,t,u);!function(a,b,c,d){var e=[""],f=jQuery,g=f("html"),h=0;f.fn.jGallery=function(i){var j=this;return this.each(function(){var a=f(this);a.is("[data-jgallery-id]")?f.isPlainObject(i)&&e[a.attr("data-jgallery-id")].update(i):e[++h]=new d(a,h,i)}),f.extend(j,{getDefaults:function(){return b},getTransitions:function(){return c},restoreDefaults:function(){return j.each(function(){f(this).jGallery(b)})},getOptions:function(){return e[f(j).eq(0).attr("data-jgallery-id")].options},destroy:function(){return j.each(function(){var b=f(this),c=b.attr("data-jgallery-id");e[c]="",b.removeAttr("data-jgallery-id").show(),g.find('.jgallery[data-jgallery-id="'+c+'"]').remove(),a()})}}),this}}(o,a,f,v)}();