!function(e){"use strict";var t;e.fn.kt_imagesLoaded=(t=function(t,i,s){var a,o=!1,l=e(t).parent(),n=e("<img />"),d=e(t).attr("srcset"),r=e(t).attr("sizes")||"100vw",c=e(t).attr("src"),h=function(){n.off("load error",h),clearTimeout(a),i()};s&&(a=setTimeout(h,s)),n.on("load error",h),l.is("picture")&&((l=l.clone()).find("img").remove().end(),l.append(n),o=!0),d?(n.attr("sizes",r),n.attr("srcset",d),o||n.appendTo(document.createElement("div")),o=!0):c&&n.attr("src",c),o&&!window.HTMLPictureElement&&(window.respimage?window.respimage({elements:[n[0]]}):window.picturefill?window.picturefill({elements:[n[0]]}):c&&n.attr("src",c))},function(i){var s=0,a=e("img",this).add(this.filter("img")),o=function(){++s>=a.length&&i()};return a.length?(a.each(function(){t(this,o)}),this):i()})}(jQuery),jQuery(document).ready(function(e){function t(i){var s=i.data("slider-speed"),a=i.data("slider-fade"),o=i.data("slider-anim-speed"),l=i.data("slider-arrows"),n=i.data("slider-auto"),d=i.data("slider-type"),r=i.data("slider-center-mode"),c=!1;if(e("body.rtl").length>=1&&(c=!0),i.on("init",function(e,t){i.removeClass("loading")}),"carousel"==d){var h=i.data("slides-to-show");null==h&&(h=1),i.slick({slidesToScroll:1,slidesToShow:h,centerMode:r,variableWidth:!0,arrows:l,speed:o,autoplay:n,autoplaySpeed:s,fade:a,pauseOnHover:!1,rtl:c,dots:!0})}else if("content-carousel"==d){i.on("init",function(e,t){i.closest(".fadein-carousel").animate({opacity:1})});var f=i.data("slider-xxl"),u=i.data("slider-xl"),p=i.data("slider-md"),m=i.data("slider-sm"),v=i.data("slider-xs"),g=i.data("slider-ss"),w;if(1!==i.data("slider-scroll"))var S=f,y=u,T=p,k=m,b=v,x=g;else var S=1,y=1,T=1,k=1,b=1,x=1;i.slick({slidesToScroll:S,slidesToShow:f,arrows:l,speed:o,autoplay:n,autoplaySpeed:s,fade:a,pauseOnHover:!1,dots:!1,rtl:c,responsive:[{breakpoint:1499,settings:{slidesToShow:u,slidesToScroll:y}},{breakpoint:1199,settings:{slidesToShow:p,slidesToScroll:T}},{breakpoint:991,settings:{slidesToShow:m,slidesToScroll:k}},{breakpoint:767,settings:{slidesToShow:v,slidesToScroll:b}},{breakpoint:543,settings:{slidesToShow:g,slidesToScroll:x}}]}),i.on("beforeChange",function(s,a,o,l){i.find(".kt-slickslider:not(.slick-initialized)").each(function(){t(e(this))})})}else if("thumb"==d){var C=i.data("slider-thumbid"),L=i.data("slider-thumbs-showing"),H=i.attr("id");i.slick({slidesToScroll:1,slidesToShow:1,arrows:l,speed:o,autoplay:n,autoplaySpeed:s,fade:a,pauseOnHover:!1,adaptiveHeight:!0,dots:!1,rtl:c,asNavFor:C}),e(C).slick({slidesToShow:L,slidesToScroll:1,asNavFor:"#"+H,dots:!1,rtl:c,centerMode:!1,focusOnSelect:!0})}else i.slick({slidesToShow:1,slidesToScroll:1,arrows:l,speed:o,autoplay:n,autoplaySpeed:s,fade:a,pauseOnHover:!1,rtl:c,adaptiveHeight:!0,dots:!0})}e("[rel=tooltip]").tooltip(),e("[data-toggle=tooltip]").tooltip(),e("[rel=popover]").popover(),e("#authorTab a").click(function(t){t.preventDefault(),e(this).tab("show")}),e(".sc_tabs a").click(function(t){t.preventDefault(),e(this).tab("show")}),e(".videofit").fitVids(),e(".collapse-next").click(function(t){var i=e(this).siblings(".sf-dropdown-menu");i.hasClass("in")?(i.collapse("toggle"),e(this).removeClass("toggle-active")):(i.collapse("toggle"),e(this).addClass("toggle-active"))}),e("ul.sf-menu").superfish({delay:200,animation:{opacity:"show",height:"show"},speed:"fast"}),e(".kt-flexslider").each(function(){var t=e(this).data("flex-speed"),i=e(this).data("flex-animation"),s=e(this).data("flex-anim-speed"),a=e(this).data("flex-auto");e(this).flexslider({animation:i,animationSpeed:s,slideshow:a,slideshowSpeed:t,start:function(e){e.removeClass("loading")}})}),e(".kt-flexslider-thumb").each(function(){var t=e(this).data("flex-speed"),i=e(this).data("flex-animation"),s=e(this).data("flex-anim-speed"),a=e(this).data("flex-auto");e("#thumbnails").flexslider({animation:"slide",controlNav:!1,animationLoop:!1,slideshow:!1,itemWidth:180,itemMargin:5,asNavFor:"#flex"}),e("#flex").flexslider({animation:i,controlNav:!1,animationLoop:!1,animationSpeed:s,slideshow:a,slideshowSpeed:t,sync:"#thumbnails",before:function(e){e.removeClass("loading")}})}),e(".init-masonry").each(function(){var t=e(this),i=e(this).data("masonry-selector");if(e("body.rtl").length)var s=!1;else var s=!0;t.kt_imagesLoaded(function(){t.masonry({itemSelector:i,isOriginLeft:s})})}),e(".kt-masonry-init").each(function(){var t=e(this),i=e(this).data("masonry-selector");if(e("body.rtl").length)var s=!1;else var s=!0;t.kt_imagesLoaded(function(){t.masonry({itemSelector:i,isOriginLeft:s})})}),e(".kt-slickslider").each(function(){var i=e(this),s=i.data("slider-initdelay");null==s||"0"==s?t(i):setTimeout(function(){t(i)},s)}),e("html").removeClass("no-js"),e("html").addClass("js-running")});