main.js 65 KB

123456
  1. /**
  2. * Created by duhuan on 2017/9/14.
  3. */
  4. jQuery(document).ready(function(e){function t(){var t=e(".instagram-photos");return t.length<1?!1:void t.each(function(){var t=t?t:parseInt(e(this).find("> a").css("max-width")),o=(parseInt(e(this).find("> a").css("margin-left")),e(this)),a=o.width(),i=100/Math.ceil(a/t);o.find("a").css({width:i+"%"})})}function o(){if(e(".map-container.full").length){var t=e(".map-container.full").position().left;e(".map-container.full").css({width:e("#main").width(),marginLeft:-t})}var o=e(".slider-wrapper.full");o.length&&(o.each(function(){var t=e(this);if(t.parents(".wf-span-6, .wf-span-4, .wf-span-8, .wf-span-3, .wf-span-9 , .wf-span-2").length>0){var o=t.children(".fullwidth-slider"),a=o.data("theSlider");"undefined"!=typeof a&&a.update(),t.removeClass("full")}else{var i,o=t.children(".fullwidth-slider"),n=0;if(e(".boxed").length)i=(parseInt(e("#main").width())-parseInt(e(".content").width()))/2;else{var s=e(window).width()<=parseInt(e(".content").width())?parseInt(e(".content").width()):e(window).width();i=Math.ceil((s+n-parseInt(e(".content").width()))/2)}t.css({width:e("#main").width(),"margin-left":-i});var a=o.data("theSlider");"undefined"!=typeof a&&a.update()}}),e(".slider-wrapper.full .prev,.slider-wrapper.full .next").css({opacity:1}))}function a(){x&&e(".transparent #fancy-header > .wf-wrap").css({"padding-top":e("#header").height()})}function n(){e(".filter-categories").each(function(){var t=0;e(".filter-categories a").each(function(){var o=e(this);t+=o.innerWidth()}),t>e(this).width()?e(this).addClass("new-style"):e(this).removeClass("new-style")})}function s(){e(".full-width-wrap").length&&e(".full-width-wrap").each(function(){var t,o,a=e(this),i=(a.position().left,0);if(e(".boxed").length)t=(parseInt(e("#main").width())-parseInt(e(".content").width()))/2;else{var n=e(window).width()<=parseInt(e(".content").width())?parseInt(e(".content").width()):e(window).width();t=Math.ceil((n+i-parseInt(e(".content").width()))/2)}e(".sidebar-left").length||e(".sidebar-right").length?(o=e(".content").width(),t=0):o=e("#main").width(),a.css({width:o,"margin-left":-t})})}function r(){e(".responsive-off").length||e(window).width()<970&&(I.hasClass("act")?T.animate({"margin-top":-e("#top-bar").height()},200,function(){T.css({visibility:"visible",opacity:"1"})}):T.animate({"margin-top":0},200,function(){T.css({visibility:"visible",opacity:"1"})}))}function l(){dtGlobals.isMobile&&e(".skills").animateSkills(),e("html").hasClass("old-ie")&&e(".skills").animateSkills()}function c(){var t=e(".one-page-row div:in-viewport[data-anchor^='#']").attr("data-anchor");e(".one-page-row .menu-item a[href="+t+"]").length&&(e(".one-page-row .menu-item a").parent("li").removeClass("act"),e(".one-page-row .menu-item a[href="+t+"]").parent("li").addClass("act")),void 0==t&&e('.one-page-row .menu-item a[href="#"]').length&&e('.one-page-row .menu-item a[href="#"]').parent("li").addClass("act")}e(".ls-defaultskin .ls-loading-indicator").not(".loading-label").append('<svg class="fa-spinner" viewBox="0 0 48 48" ><path d="M23.98,0.04c-13.055,0-23.673,10.434-23.973,23.417C0.284,12.128,8.898,3.038,19.484,3.038c10.76,0,19.484,9.395,19.484,20.982c0,2.483,2.013,4.497,4.496,4.497c2.482,0,4.496-2.014,4.496-4.497C47.96,10.776,37.224,0.04,23.98,0.04z M23.98,48c13.055,0,23.673-10.434,23.972-23.417c-0.276,11.328-8.89,20.42-19.476,20.42 c-10.76,0-19.484-9.396-19.484-20.983c0-2.482-2.014-4.496-4.497-4.496C2.014,19.524,0,21.537,0,24.02C0,37.264,10.736,48,23.98,48z"/></svg>'),dtGlobals.isMobile&&!dtGlobals.isiPad&&(smartMenu=!1),e.browser.msie&&e("html").removeClass("csstransforms3d"),dtGlobals.isiPhone&&e("body").addClass("is-iphone"),dtGlobals.touches={},dtGlobals.touches.touching=!1,dtGlobals.touches.touch=!1,dtGlobals.touches.currX=0,dtGlobals.touches.currY=0,dtGlobals.touches.cachedX=0,dtGlobals.touches.cachedY=0,dtGlobals.touches.count=0,dtGlobals.resizeCounter=0,e(document).on("touchstart",function(t){1==t.originalEvent.touches.length&&(dtGlobals.touches.touch=t.originalEvent.touches[0],dtGlobals.touches.cachedX=dtGlobals.touches.touch.pageX,dtGlobals.touches.cachedY=dtGlobals.touches.touch.pageY,dtGlobals.touches.touching=!0,setTimeout(function(){dtGlobals.touches.currX=dtGlobals.touches.touch.pageX,dtGlobals.touches.currY=dtGlobals.touches.touch.pageY,dtGlobals.touches.cachedX!==dtGlobals.touches.currX||dtGlobals.touches.touching||dtGlobals.touches.cachedY!==dtGlobals.touches.currY||(dtGlobals.touches.count++,e(t.target).trigger("tap"))},200))}),e(document).on("touchend touchcancel",function(){dtGlobals.touches.touching=!1}),e(document).on("touchmove",function(e){dtGlobals.touches.touch=e.originalEvent.touches[0],dtGlobals.touches.touching}),e(document).on("tap",function(){e(".dt-hovered").trigger("mouseout")}),e(".shortcode-tabs").goTabs().css("visibility","visible"),e("img").on("dragstart",function(e){e.preventDefault()}),e(".fs-entry-img:not(.shortcode-instagram .fs-entry-img), .shortcode-instagram a").each(function(){var t=e(this);t.append("<i></i>")}),e(".text-on-img .fs-entry-content").each(function(){var t=e(this);t.append('<span class="close-link"></span>')}),e(".text-on-img .fs-entry-img").each(function(){var t=e(this);t.append('<span class="link show-content"></span>')});var d=e("#commentform");d.on("click","a.clear-form",function(e){return e.preventDefault(),d.find('input[type="text"], textarea').val(""),!1}),d.on("click"," a.dt-btn.dt-btn-m",function(e){return e.preventDefault(),d.find("#submit").trigger("click"),!1});var h=e('.paginator[role="navigation"]'),p=h.find("a.dots");p.on("click",function(){h.find("div:hidden").show().find("a").unwrap(),p.remove()}),e(".widget .searchform .submit").on("click",function(t){return t.preventDefault(),e(this).siblings("input.searchsubmit").click(),!1}),jQuery(".soc-ico a").css("visibility","visible"),e(".soc-ico a.share-button.pinterest").click(function(t){t.preventDefault(),e("#pinmarklet").remove();var o=document.createElement("script");o.setAttribute("type","text/javascript"),o.setAttribute("charset","UTF-8"),o.setAttribute("id","pinmarklet"),o.setAttribute("src","http://assets.pinterest.com/js/pinmarklet.js?r="+99999999*Math.random()),document.body.appendChild(o)}),!e.browser.webkit||dtGlobals.isMobile?e("body").addClass("not-webkit").removeClass("is-webkit"):(e("body").removeClass("not-webkit").addClass("is-webkit"),e(".overlap #content").find(">:first-child").css({position:"relative","z-index":"4"}),e(".overlap #content").find(">:first-child").height()<36&&e(".overlap #content").find("> :nth-child(2)").css({position:"relative","z-index":"4"})),createSocIcons(),e.fn.exists=function(){return e(this).length>0?!0:!1},e.fn.loaded=function(t,o,a){var i=this.length;return i>0?this.each(function(){var a=this,n=e(a);n.on("load.dt",function(){e(this).off("load.dt"),"function"==typeof t&&t.call(this),--i<=0&&"function"==typeof o&&o.call(this)}),a.complete&&void 0!==a.complete?n.trigger("load.dt"):a.src=a.src}):a?("function"==typeof o&&o.call(this),this):void 0},e("#mobile-menu").wrap("<div id='dl-menu' class='dl-menuwrapper wf-mobile-visible' />"),e(".underline-hover > li > a > span").not(".underline-hover > li > a > span.mega-icon").append("<i class='underline'></i>");{var f=e("#main-nav, .dl-menu, .mini-nav");e(".demo-panel").exists()}e(".act",f).parents("li").addClass("act");var u=f.clone(),v=(e(".mini-nav").clone(),e("#mobile-menu > .menu-back").html());u.attr("id","").attr("class","dl-menu").find(".sub-nav").addClass("dl-submenu").removeClass("sub-nav").prepend("<li class='dl-back'><a href='#'><span>"+v+"</a></li>"),u.appendTo("#dl-menu").wrap("<div class='dl-container' />"),e("html").hasClass("old-ie")||e("#dl-menu").dlmenu(),dtGlobals.isWindowsPhone&&e("body").addClass("windows-phone"),e(".mini-nav select").change(function(){window.location.href=e(this).val()}),dtGlobals.isHovering=!1,e(".sub-nav",f).parent().each(function(){var t=e(this);(dtGlobals.isMobile||dtGlobals.isWindowsPhone)&&t.find("> a").on("click tap",function(t){e(this).hasClass("dt-clicked")?t.stopPropagation():(t.preventDefault(),f.find(".dt-clicked").removeClass("dt-clicked"),e(this).addClass("dt-clicked"))});var o,a;t.hasClass("dt-mega-menu")?(t.on("mouseenter tap",function(t){"tap"==t.type&&t.stopPropagation();var i=e(this);i.addClass("dt-hovered"),dtGlobals.isHovering=!0;var n=e(this),s=i.height(),r=i.position().top;if(i.find("> .sub-nav").css({top:r+s}),i.hasClass("mega-auto-width")){var n=e(this),l=(n.find(" > .sub-nav > li"),e("#main .wf-wrap").width()/5,n.parent().width(),n.offset().left-i.parents("#header .wf-table, .ph-wrap-inner, .logo-center #navigation, .logo-classic #navigation, .logo-classic-centered #navigation").offset().left);n.find(" > .sub-nav").css({left:l,marginLeft:-(n.find(" > .sub-nav").width()/2-n.width()/2)})}i.is(":first-child")&&i.hasClass("mega-auto-width")?i.find(" > .sub-nav").css({left:n.offset().left-i.parents("#header .wf-table, .ph-wrap-inner, .logo-center #navigation, .logo-classic #navigation, .logo-classic-centered #navigation").offset().left,marginLeft:0}):i.is(":last-child")&&i.hasClass("mega-auto-width")&&i.find(" > .sub-nav").css({left:"auto",right:i.parents("#header .wf-table, .ph-wrap-inner, .logo-center #navigation, .logo-classic #navigation, .logo-classic-centered #navigation").width()-(i.position().left+i.width()),marginLeft:0}),e("#page").width()-(i.children("ul").offset().left-e("#page").offset().left)-i.children("ul").width()<0&&i.children("ul").addClass("right-overflow"),i.position().left<i.children("ul").width()/2&&i.children("ul").addClass("left-overflow"),clearTimeout(o),clearTimeout(a),o=setTimeout(function(){i.hasClass("dt-hovered")&&i.find("ul").stop().css("visibility","visible").animate({opacity:1},150)},100)}),t.on("mouseleave",function(){var t=e(this);t.removeClass("dt-hovered"),dtGlobals.isHovering=!1,clearTimeout(o),clearTimeout(a),a=setTimeout(function(){t.hasClass("dt-hovered")||(t.children("ul").stop().animate({opacity:0},150,function(){e(this).css("visibility","hidden"),e(this).find("ul").stop().css("visibility","hidden").animate({opacity:0},10)}),setTimeout(function(){t.hasClass("dt-hovered")||(t.children("ul").removeClass("right-overflow"),t.children("ul").removeClass("left-overflow"))},400))},150),t.find("> a").removeClass("dt-clicked")})):(t.on("mouseenter tap",function(t){"tap"==t.type&&t.stopPropagation();var i=e(this);i.addClass("dt-hovered"),e("#page").width()-(i.children("ul").offset().left-e("#page").offset().left)-240<0&&i.children("ul").addClass("right-overflow"),dtGlobals.isHovering=!0,clearTimeout(o),clearTimeout(a),o=setTimeout(function(){i.hasClass("dt-hovered")&&i.children("ul").stop().css("visibility","visible").animate({opacity:1},150)},100)}),t.on("mouseleave",function(){var t=e(this);t.removeClass("dt-hovered"),dtGlobals.isHovering=!1,clearTimeout(o),clearTimeout(a),a=setTimeout(function(){t.hasClass("dt-hovered")||(t.parents().hasClass("dt-mega-menu")||t.children("ul").stop().animate({opacity:0},150,function(){e(this).css("visibility","hidden")}),setTimeout(function(){t.hasClass("dt-hovered")||t.children("ul").removeClass("right-overflow")},400))},150),t.find("> a").removeClass("dt-clicked")}))});var m;e(".custom-nav > li > a").click(function(t){$menuItem=e(this).parent(),$menuItem.hasClass("has-children")&&t.preventDefault(),"active"!=e(this).attr("class")?(e(".custom-nav > li > ul").stop(!0,!0).slideUp(400),e(this).next().stop(!0,!0).slideDown(500),e(".custom-nav > li > a").removeClass("active"),e(this).addClass("active")):(e(this).next().stop(!0,!0).slideUp(500),e(this).removeClass("active")),$menuItem.siblings().removeClass("act"),$menuItem.addClass("act")}),e(".custom-nav > li > ul").each(function(){clearTimeout(m),$this=e(this),$thisChildren=$this.find("li"),$thisChildren.hasClass("act")&&($this.prev().addClass("active"),$this.parent().siblings().removeClass("act"),$this.parent().addClass("act"),e(this).slideDown(500))});var g;e(window).on("resize",function(){clearTimeout(g),g=setTimeout(function(){e(window).trigger("metroresize")},200)});var b;if(clearTimeout(b),b=setTimeout(function(){if(e(".swiper-container").length){var t=jQuery('<div id="loading-labe" class="loading-label"><svg class="fa-spinner" viewBox="0 0 48 48" ><path d="M23.98,0.04c-13.055,0-23.673,10.434-23.973,23.417C0.284,12.128,8.898,3.038,19.484,3.038c10.76,0,19.484,9.395,19.484,20.982c0,2.483,2.013,4.497,4.496,4.497c2.482,0,4.496-2.014,4.496-4.497C47.96,10.776,37.224,0.04,23.98,0.04z M23.98,48c13.055,0,23.673-10.434,23.972-23.417c-0.276,11.328-8.89,20.42-19.476,20.42 c-10.76,0-19.484-9.396-19.484-20.983c0-2.482-2.014-4.496-4.497-4.496C2.014,19.524,0,21.537,0,24.02C0,37.264,10.736,48,23.98,48z"/></svg></div>').css("position","fixed").hide().appendTo(".swiper-container:not(.swiper-container-horizontal)").first();t.fadeIn(250),jQuery(".swiper-wrapper").animate({opacity:1},500,function(){t.fadeOut(500)})}},300),e(".swiper-container > .swiper-wrapper > .swiper-slide .preload-me").loaded(null,function(){if(e(".swiper-container").length>0){var t=e(".swiper-container").not(".swiper-container-horizontal"),o=t.find(" > .swiper-wrapper > .swiper-slide").length,a=t.find(".arrow-right"),i=t.find(".arrow-left");swiperColH>=o&&(e(a).hide(),e(i).hide());var n=t.first().swiper({slidesPerSlide:swiperColH,onTouchMove:function(){var e=n.getTranslate("x");e>=0?(a.removeClass("disable"),i.addClass("disable")):e<=-(t.find(".swiper-wrapper").first().width()-t.first().width())?(a.addClass("disable"),i.removeClass("disable")):(i.removeClass("disable"),a.removeClass("disable"))},onSlideChangeEnd:function(){var e=n.getTranslate("x");e>=0?(a.removeClass("disable"),i.addClass("disable")):e<=-(t.find(".swiper-wrapper").first().width()-t.first().width())&&(a.addClass("disable"),i.removeClass("disable"))}}),s=n.slides.length;i.click(function(t){t.preventDefault(),n.swipePrev();var o=n.activeIndex;a.removeClass("disable"),0==o?e(this).addClass("disable"):e(this).removeClass("disable")}),a.click(function(t){t.preventDefault(),n.swipeNext();var o=n.activeIndex;i.removeClass("disable"),o+swiperColH>=s?e(this).addClass("disable"):e(this).removeClass("disable")});var r=[];e(".swiper-container.swiper-container-horizontal").each(function(){var t=e(this),o=t.find(".swiper-slide").length,a=t.find(".arrow-top"),i=t.find(".arrow-bottom");swiperCol>=o&&(e(a).hide(),e(i).hide());var n=t.first().swiper({slidesPerSlide:swiperCol,mode:"vertical",onTouchMove:function(){var o=n.getTranslate("y");o>=0?(i.removeClass("disable"),a.addClass("disable")):o<=-(t.find(".swiper-wrapper").first().height()-t.height())?(i.addClass("disable"),a.removeClass("disable")):(a.removeClass("disable"),e(".swiper-n2 .arrow-bottom").removeClass("disable"))},onSlideChangeEnd:function(){var e=n.getTranslate("y");e>=0?(i.removeClass("disable"),a.addClass("disable")):e<=-(t.find(".swiper-wrapper").first().height()-t.height())&&(i.addClass("disable"),a.removeClass("disable"))}});r.push(n);var s=n.slides.length;a.click(function(t){t.preventDefault(),n.swipePrev();var o=n.activeIndex;i.removeClass("disable"),0==o?e(this).addClass("disable"):e(this).removeClass("disable")}),i.click(function(t){t.preventDefault(),n.swipeNext();var o=n.activeIndex;a.removeClass("disable"),o+swiperCol>=s?e(this).addClass("disable"):e(this).removeClass("disable")})}),e(window).on("metroresize",function(){e(".swiper-container").css({height:""});var o=t.find("> .swiper-wrapper > .swiper-slide > img");if(o.length>0)var a=e.map(o,function(t){return e(t).height()}),i=Math.min.apply(Math,a);else i=980;if(e(".swiper-container").css({height:i}),n.reInit(),r.length>0)for(var s=r.length,l=0;s>l;l++)r[l].reInit()}).trigger("metroresize")}}),e(".fullwidth-slider li").not(".text-on-img .fullwidth-slider li").each(function(){var t=e(this),o=t.find("img").width();t.css({width:o+20}),e(".fs-entry-content",t).css("opacity","1"),e(t).css("opacity","1")}),e(".fullwidth-slider .preload-me").loaded(null,function(){e(".fullwidth-slider").each(function(){var t=e(this),o=e(this).parent(),a=t.find("img").attr("height"),i=t.position().top,n=t.theSlider({mode:"scroller"}).data("theSlider");e(".prev, .next",o).css({height:a}),e(".related-projects .prev, .related-projects .next").css({top:i+"px"}),e(".prev i",o).click(function(){n.noSlide||n.slidePrev()}),e(".next i",o).click(function(){n.noSlide||n.slideNext()}),n.ev.on("updateNav sliderReady",function(){n.lockRight?e(".next",o).addClass("disabled"):e(".next",o).removeClass("disabled"),n.lockLeft?e(".prev",o).addClass("disabled"):e(".prev",o).removeClass("disabled")})}),e(".slider-wrapper").css("visibility","visible")},!0),e(".rsHomePorthole").exists()){var w={};w.container=e("#main-slideshow"),w.width=w.container.attr("data-width")?parseInt(w.container.attr("data-width")):1280,w.height=w.container.attr("data-height")?parseInt(w.container.attr("data-height")):720,w.autoslide=w.container.attr("data-autoslide")&&parseInt(w.container.attr("data-autoslide"))>999?parseInt(w.container.attr("data-autoslide")):5e3,w.scale=w.container.attr("data-scale")?w.container.attr("data-scale"):"fill",w.paused=w.container.attr("data-paused")?w.container.attr("data-paused"):!0,w.hendheld=e(window).width()<740&&dtGlobals.isMobile?!0:!1,e("#main-slideshow-content").appendTo(w.container),w.api=e(".rsHomePorthole").royalSlider({autoScaleSlider:!0,autoScaleSliderWidth:w.width,autoScaleSliderHeight:w.height,autoPlay:{enabled:!w.hendheld,stopAtAction:!1,pauseOnHover:!1,delay:w.autoslide},imageScaleMode:w.scale,imageScalePadding:0,numImagesToPreload:999,slidesOrientation:"horizontal",disableResponsiveness:!1,loopRewind:!0,arrowsNav:!1,globalCaption:!0,controlNavigation:w.hendheld?"none":"porthole",thumbs:{orientation:"vertical",drag:!1,touch:!1,spacing:10,firstMargin:!1,appendSpan:!1},block:{fadeEffect:!0,moveEffect:"bottom",moveOffset:5}}).data("royalSlider");var y=w.container,C=y.find(".rsSlide").size();2>C&&(e(".rsThumbs",y).hide(),w.api._isMove=!1,y.find(".rsOverflow").css("cursor","auto")),"true"==w.paused&&e(".rsHomePorthole").royalSlider("stopAutoPlay")}e(".slider-post").each(function(){e(this).royalSlider({autoScaleSlider:!0,imageScaleMode:"fit",autoScaleSliderWidth:e(this).attr("data-width"),autoScaleSliderHeight:e(this).attr("data-height"),imageScalePadding:0,numImagesToPreload:6,slidesOrientation:"horizontal",disableResponsiveness:!1,globalCaption:!0})}),e(".slider-simple").each(function(){e(this).royalSlider({autoScaleSlider:!0,imageScaleMode:"fit",autoScaleSliderWidth:e(this).attr("data-width"),autoScaleSliderHeight:e(this).attr("data-height"),imageScalePadding:0,numImagesToPreload:6,slidesOrientation:"horizontal",disableResponsiveness:!1,globalCaption:!0})}),e(".slider-content .preload-me").loaded(null,function(){e(".slider-content").each(function(){var t=e(this),o=t.attr("data-autoslide")&&parseInt(t.attr("data-autoslide"))>999?parseInt(t.attr("data-autoslide")):5e3;hendheld=e(window).width()<740&&dtGlobals.isMobile||!t.attr("data-autoslide")?!1:!0,t.royalSlider({autoPlay:{enabled:hendheld,stopAtAction:!1,pauseOnHover:!1,delay:o},autoHeight:!0,controlsInside:!1,fadeinLoadedSlide:!1,controlNavigationSpacing:0,controlNavigation:"bullets",imageScaleMode:"none",imageAlignCenter:!1,loop:!1,loopRewind:!0,numImagesToPreload:6,keyboardNavEnabled:!0}).data("royalSlider")})},!0),e(".rev_slider_wrapper").length>0&&e("#main-slideshow").each(function(){var t=e(this);t.find("> .rev_slider_wrapper")&&t.addClass("fix rv-slider"),(e(".rev_slider_wrapper").hasClass("fullscreen-container")||e(".rev_slider_wrapper").hasClass("fullwidthbanner-container"))&&t.removeClass("fix")}),e(".filter-categories > a").on("click",function(t){var o=e(this);if("undefined"==typeof arguments.callee.dtPreventD){var a=o.parents(".filter").first();arguments.callee.dtPreventD=a.hasClass("without-isotope")?a.hasClass("with-ajax")?!0:!1:!0}t.preventDefault(),o.trigger("mouseleave"),o.hasClass("act")&&!o.hasClass("show-all")?(t.stopImmediatePropagation(),o.removeClass("act"),o.siblings("a.show-all").trigger("click")):(o.siblings().removeClass("act"),o.addClass("act"),arguments.callee.dtPreventD||(window.location.href=o.attr("href")))}),e(".filter-extras .filter-switch").each(function(){var t=e(this);t.prev(".act").length?t.addClass("left-act"):t.next(".act").length?t.addClass("right-act"):(t.removeClass("right-act"),t.removeClass("left-act"))}),e(".filter-extras a").on("click",function(t){var o=e(this);if("undefined"==typeof arguments.callee.dtPreventD){var a=o.parents(".filter").first();arguments.callee.dtPreventD=a.hasClass("without-isotope")?a.hasClass("with-ajax")?!0:!1:!0}arguments.callee.dtPreventD&&t.preventDefault(),o.siblings().removeClass("act"),o.addClass("act"),e(".filter-extras .filter-switch").each(function(){var t=e(this);t.prev(o).hasClass("act")?(t.addClass("left-act"),t.removeClass("right-act")):t.next(o).hasClass("act")?(t.addClass("right-act"),t.removeClass("left-act")):(t.removeClass("right-act"),t.removeClass("left-act"))})}),dtGlobals.magnificPopupBaseConfig={type:"image",tLoading:"Loading image ...",mainClass:"mfp-img-mobile",image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.',titleSrc:function(e){return this.st.dt.getItemTitle(e)}},iframe:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></div>'},callbacks:{markupParse:function(e,t,o){"iframe"==o.type&&e.find(".mfp-title").html(this.st.dt.getItemTitle(o)),this.ev.attr("data-pretty-share")||e.addClass("no-share-buttons")},beforeOpen:function(){var e=this;"undefined"==typeof this.st.dt&&(this.st.dt={}),this.st.dt.shareButtonsList=this.ev.attr("data-pretty-share")?this.ev.attr("data-pretty-share").split(","):new Array,this.st.dt.shareButtonsTemplates={twitter:'<a href="http://twitter.com/home?status={location_href}%20{share_title}" class="share-button twitter" target="_blank" title="twitter"><svg class="icon" viewBox="0 0 26 26"><path d="M19.537 8.12c-0.484 0.23-1.009 0.385-1.559 0.455c0.562-0.359 0.988-0.927 1.191-1.602 c-0.521 0.331-1.103 0.573-1.722 0.702c-0.491-0.562-1.196-0.915-1.976-0.915c-1.748 0-3.032 1.745-2.638 3.6 c-2.249-0.121-4.243-1.275-5.58-3.029c-0.707 1.303-0.367 3 0.8 3.869c-0.444-0.016-0.861-0.146-1.227-0.362 c-0.03 1.3 0.9 2.6 2.2 2.875c-0.38 0.111-0.799 0.138-1.224 0.054c0.347 1.1 1.3 2 2.5 2 c-1.139 0.955-2.572 1.384-4.009 1.199c1.198 0.8 2.6 1.3 4.2 1.306c5.029 0 7.866-4.546 7.697-8.621 C18.715 9.2 19.2 8.7 19.5 8.12z"/></svg></a>',facebook:'<a href="http://www.facebook.com/sharer.php?s=100&amp;p[url]={location_href}&amp;p[title]={share_title}&amp;p[images][0]={image_src}" class="share-button facebook" target="_blank" title="facebook"><svg class="icon" viewBox="0 0 26 26" ><path d="M10.716 10.066H9.451v2.109h1.263v6.199h2.436v-6.225h1.695l0.185-2.084h-1.88c0 0 0-0.778 0-1.187 c0-0.492 0.099-0.686 0.562-0.686c0.37 0 1.657-0.064 1.657-0.064V6.032c0 0-1.729 0-2.03 0c-1.809 0-2.626 0.813-2.626 2.4 C10.716 9.8 10.7 10.1 10.7 10.066z"/></svg></a>',google:'<a href="http:////plus.google.com/share?url={location_href}&amp;title={share_title}" class="share-button google" target="_blank" title="google+"><svg class="icon" viewBox="0 0 26 26" ><path d="M18.691 9.857h-1.793l0.017 1.797h-1.233l-0.019-1.778l-1.702-0.018l-0.021-1.154l1.74-0.007V6.845h1.233v1.833 l1.776 0.038L18.691 9.857L18.691 9.857z M13.195 15.173c0 1.167-1.064 2.591-3.746 2.591c-1.962 0-3.599-0.849-3.599-2.271 c0-1.1 0.696-2.52 3.945-2.52c-0.481-0.397-0.6-0.946-0.306-1.541c-1.902 0-2.876-1.12-2.876-2.54c0-1.39 1.034-2.653 3.141-2.653 c0.534 0 3.4 0 3.4 0L12.377 7.03H11.49c0.625 0.4 1 1.1 1 1.91c0 0.747-0.41 1.351-0.995 1.8 c-1.042 0.805-0.775 1.3 0.3 2.048C12.842 13.6 13.2 14.2 13.2 15.173z M10.899 8.9 c-0.145-0.888-0.861-1.615-1.698-1.636c-0.838-0.02-1.4 0.659-1.255 1.546c0.145 0.9 0.9 1.5 1.8 1.5 C10.561 10.4 11 9.8 10.9 8.91z M11.553 15.35c0-0.68-0.749-1.326-2.005-1.326c-1.131-0.012-2.093 0.592-2.093 1.3 c0 0.7 0.8 1.3 1.9 1.307C10.853 16.6 11.6 16.1 11.6 15.35z"/></svg></a>',pinterest:'<a href="//pinterest.com/pin/create/button/?url={location_href}&amp;description={share_title}&amp;media={image_src}" class="share-button pinterest" target="_blank" title="pin it"><svg class="icon" viewBox="0 0 26 26"><path d="M13.322 5.418c-3.738 0-5.622 2.631-5.622 4.824c0 1.3 0.5 2.5 1.6 3 c0.18 0.1 0.3 0 0.394-0.197c0.038-0.132 0.125-0.476 0.161-0.615c0.052-0.195 0.031-0.264-0.115-0.432 c-0.315-0.367-0.332-0.849-0.332-1.523c0-1.95 1.302-3.69 3.688-3.69c2.112 0 3.3 1.3 3.3 3 c0 2.228-1.006 4.105-2.494 4.105c-0.824 0-1.44-0.668-1.243-1.487c0.236-0.979 0.696-2.034 0.696-2.741 c0-0.631-0.346-1.158-1.062-1.158c-0.843 0-1.518 0.855-1.518 1.999c0 0.7 0.2 1.2 0.2 1.221s-1.063 3.676-1.213 4.3 c-0.301 1.3 0.2 2.7 0.2 2.844c0.015 0.1 0.1 0.1 0.2 0.046c0.077-0.103 1.08-1.316 1.42-2.527 c0.1-0.345 0.556-2.122 0.556-2.122c0.272 0.5 1.1 1 1.9 0.965c2.529 0 4.246-2.266 4.246-5.295 C18.305 7.6 16.3 5.4 13.3 5.418z" /></svg></a>'},this.st.dt.getShareButtons=function(t){for(var o=e.st.dt.shareButtonsList,a=-1,i=o.length,n="",s=0;s<o.length;s++)if("pinterest"==o[s]){a=s;break}if(0>=i)return"";for(var s=0;i>s;s++)if("iframe"!=t.type||a!=s){var r=t.title,l=t.src,c=t.location;"google"==o[s]&&(r=r.replace(" ","+")),n+=e.st.dt.shareButtonsTemplates[o[s]].replace("{location_href}",encodeURIComponent(c)).replace("{share_title}",r).replace("{image_src}",l)}return'<div class="entry-share"><div class="soc-ico">'+n+"<div></div>"},this.st.dt.getItemTitle=function(t){var o=t.el.attr("title")||"",a=t.el.attr("href"),i=t.el.attr("data-dt-img-description")||"",n=t.el.attr("data-dt-location")||location.href,s=e.st.dt.getShareButtons({title:o,src:a,type:t.type,location:n});return o+"<small>"+i+"</small>"+s}}}},e(".dt-gallery-mfp-popup").addClass("mfp-ready").on("click",function(){var t=e(this),o=t.parents("article.post");if(o.length>0){var a=o.find(".dt-gallery-container a.dt-mfp-item");a.length>0&&a.first().trigger("click")}return!1}),e(".dt-trigger-first-mfp").addClass("mfp-ready").on("click",function(){var t=e(this),o=t.parents("article.post");if(o.length>0){var a=o.find("a.dt-mfp-item");a.length>0&&a.first().trigger("click")}return!1}),e(".dt-single-image").addClass("mfp-ready").magnificPopup({type:"image"}),e(".dt-single-video").addClass("mfp-ready").magnificPopup({type:"iframe"}),e(".dt-single-mfp-popup").addClass("mfp-ready").magnificPopup(dtGlobals.magnificPopupBaseConfig),e(".dt-gallery-container").each(function(){e(this).addClass("mfp-ready").magnificPopup(e.extend({},dtGlobals.magnificPopupBaseConfig,{delegate:"a.dt-mfp-item",tLoading:"Loading image #%curr%...",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]}}))}),e.fn.fancyGrid=function(t){return this.each(function(){var o={setWidth:!0,setHeight:!1,setLineHeight:!1,cellsSelector:"",contentSelector:"",borderBoxSelector:"",maintainBorders:!1,maintainImages:!1,minColWidth:150,oneByOne:!0},a=e.extend({},o,t),n=e(this),s=a.cellsSelector?e(a.cellsSelector,n):n.children();if(s.length<1)return!1;var r=function(){var t,o=n.width(),i=e(s[0]),r=(i.width(),n.data("basicDenom")),l=n.data("basicCSS"),c=n.data("basicClass");r||(i.hasClass("wf-1-6")?(r=6,l="16.6667%",c="wf-1-6"):i.hasClass("wf-1-5")?(r=5,l="20%",c="wf-1-5"):i.hasClass("wf-1-4")?(r=4,l="25%",c="wf-1-4"):i.hasClass("wf-1-3")?(r=3,l="33.3333%",c="wf-1-3"):i.hasClass("wf-2-4")||i.hasClass("wf-1-2")?(r=2,l="50%",c="wf-1-2"):i.hasClass("wf-1")&&(r=1,l="100%",c="wf-1")),n.data("basicDenom",r),n.data("basicCSS",l),n.data("basicClass",c),t=o/r,a.oneByOne?t<a.minColWidth?s.css({width:100/Math.floor(o/a.minColWidth)+"%"}):s.css("width",l):150>t&&o/2>150?s.css("width","50%"):150>t&&150>=o/2?s.css("width","100%"):s.css("width",l)},l=function(){var t=0,o=-1.687,n=-1,r=[],l=[];for(s.each(function(){var t=e(this),i=a.contentSelector?e(a.contentSelector,t).outerHeight(!0):t.children().outerHeight(!0);topPostion=t.position().top,o!=topPostion?(n++,o=topPostion,l[n]=i,r.push([]),r[n].push(t)):(0>n&&(n=0,r.push([])),r[n].push(t),l[n]=l[n]<i?i:l[n])}),t=r.length,i=0;t>i;i++){var c=r[i].length;for(j=0;c>j;j++)a.borderBoxSelector?e(a.borderBoxSelector,r[i][j]).css("height",l[i]):r[i][j].css("height",l[i]),a.setLineHeight&&(a.borderBoxSelector?e(a.borderBoxSelector,r[i][j]).css("line-height",l[i]+"px"):r[i][j].css("line-height",l[i]+"px")),a.maintainBorders&&0==j?r[i][j].addClass("border-left-none"):r[i][j].removeClass("border-left-none"),a.maintainBorders&&i==t-1?r[i][j].addClass("border-bottom-none"):r[i][j].removeClass("border-bottom-none")}};a.setWidth&&r(),(a.setHeight||a.setLineHeight)&&l(),a.maintainImages?e("img",s).loaded(null,function(){n.addClass("grid-ready"),(a.setHeight||a.setLineHeight)&&l()},!0):n.addClass("grid-ready"),e(window).on("debouncedresize",function(){a.setWidth&&r(),(a.setHeight||a.setLineHeight)&&l()})})},e(".items-grid").fancyGrid({setWidth:!0,setHeight:!0,maintainBorders:!0,contentSelector:"article",borderBoxSelector:".borders",minColWidth:180}),e(".benefits-grid").fancyGrid({setWidth:!0,setHeight:!0,maintainBorders:!0,maintainImages:!0,contentSelector:".borders > div",borderBoxSelector:".borders",minColWidth:200,oneByOne:!1}),e(".logos-grid").fancyGrid({setWidth:!0,setHeight:!0,setLineHeight:!0,maintainBorders:!0,maintainImages:!0,contentSelector:".borders > a img",borderBoxSelector:".borders",minColWidth:130}),e.fn.jGridItemsLoad=function(){return this.each(function(){var t=e(this);t.hasClass("this-ready")||(t.find("img").first().loaded(function(){t.css({visibility:"visible"}).animate({opacity:1},200)},!1,!1),t.addClass("this-ready"))})};var k=0;e(".jg-container").each(function(){k++;{var t=e(this),o=t.attr("data-padding");t.find(".wf-cell")}t.attr("id","jg-container-"+k),e(".jg-container .wf-cell").jGridItemsLoad(),e("<style type='text/css'> .content #jg-container-"+k+" .wf-cell{padding:"+o+";} .content #jg-container-"+k+".wf-container{margin:-"+o+";} .content .full-width-wrap #jg-container-"+k+".wf-container{margin-left:"+o+"; margin-right:"+o+"; margin-top:-"+o+"; margin-bottom:-"+o+";}</style>").insertAfter(t),t.on("jgDone",function(){})}),e.fn.collage=function(){return this.each(function(){var t=(e(this),e(this)),o=t.attr("data-padding"),a=t.find(".wf-cell"),i=parseFloat(a.first().css("padding-left"))+parseFloat(a.first().css("padding-right")),n=parseInt(t.attr("data-target-height")),s=!0;if("false"==t.attr("data-part-row")&&(s=!1),t.parent(".full-width-wrap").length)var r=t.parents(".full-width-wrap").width()-2*parseInt(o);else var r=t.parent().width()+2*parseInt(o);var l={albumWidth:r,targetHeight:n,padding:i,allowPartialLastRow:s,fadeSpeed:2e3,effect:"effect-1",direction:"vertical"};dtGlobals.jGrid=l,t.collagePlus(l),t.css({width:r})})},e(window).on("debouncedresize",function(){e(".jg-container").collage()}),e("#parent-element a").live("touchstart",function(t){var o=e(this).attr("id");return e(this).parent().data("clicked")==o?(e(this).parent().data("clicked",null),!0):(e(this).trigger("mouseenter").siblings().trigger("mouseout"),t.preventDefault(),e(this).parent().data("clicked",o),void 0)}),e(".st-toggle").toggle(),e(".st-accordion").dtAccordion({open:0,oneOpenedItem:!0}),simple_tooltip(".shortcode-tooltip","shortcode-tooltip-content"),e(".filter-grayscale .slider-masonry").on("mouseenter tap",function(t){"tap"==t.type&&t.stopPropagation(),e(this).addClass("dt-hovered")}),e(".filter-grayscale .slider-masonry").on("mouseleave",function(){e(this).removeClass("dt-hovered")});var x=e(".transparent #fancy-header").exists();if(a(),e(".vc-item .vc-inner a.link_image").each(function(){e(this).addClass("rollover")}),e.fn.addRollover=function(){return this.each(function(){var t=e(this);t.hasClass("this-ready")||(t.append("<i></i>"),t.find(".rollover-thumbnails").length&&t.addClass("rollover-thumbnails-on"),t.addClass("this-ready"))})},e(".rollover, .rollover-video, .post-rollover, .swiper-slide .link, .rollover-project .show-content, .vc-item .vc-inner > a").addRollover(),e(".rollover, .post-rollover").not(".no-avatar").each(function(){var t=e(this);
  5. e("html").hasClass("old-ie")&&t.hover(function(){e("> i, .rollover-thumbnails",this).stop(!0).fadeIn()},function(){e(" > i, .rollover-thumbnails",this).stop(!0).fadeOut()})}),e(".fs-entry, .rollover-project .link, .swiper-slide").each(function(){var t=e(this);e("html").hasClass("old-ie")&&(e(".fs-entry .link, .rollover-project .link i, .swiper-slide .link").stop(!0).fadeOut(),t.hover(function(){e(" > .link, i",this).css("display","block")},function(){e(" > .link, i",this).css("display","none")}))}),e(".no-touch .hover-grid .rollover-project, .no-touch .hover-grid .fs-entry-slide ").each(function(){e(this).hoverdir()}),e(".entry-share a").each(function(){var t,o=e(this);o.find(".share-content").css({"margin-left":-o.find(".share-content").width()/2}),o.hover(function(){clearTimeout(t),t=setTimeout(function(){o.find(".share-content").stop(!0,!0).fadeIn(200)},200)},function(){clearTimeout(t),o.find(".share-content").fadeOut(200)})}),n(),e(".full-width-wrap").length&&!dtGlobals.isiPhone&&(dtGlobals.isMobile&&!dtGlobals.isWindowsPhone?e(window).bind("orientationchange",function(){s()}).trigger("orientationchange"):e(window).on("resize",function(){s()}).trigger("resize")),!e(".responsive-off").length){var T=e("#top-bar");T.append(e("<span class='act'></span>"));var I=e("> span",T)}e(".responsive-off").length||(e(" > span",T).on("click",function(){var t=e(this);t.hasClass("act")?(t.removeClass("act"),T.removeClass("top-bar-hide"),T.animate({"margin-top":0},200),e.cookie("top-hide","false",{expires:1,path:"/"})):(t.addClass("act"),T.addClass("top-bar-hide"),T.animate({"margin-top":-e("#top-bar").height()},200),e.cookie("top-hide","true",{expires:1,path:"/"}))}),I.hasClass("act")?T.addClass("top-bar-hide"):T.removeClass("top-bar-hide")),r(),e(".responsive-off").length||e(window).width()<970&&("false"==e.cookie("top-hide")&&(T.removeClass("top-bar-hide"),I.removeClass("act"),T.animate({"margin-top":0},200,function(){T.css({visibility:"visible",opacity:"1"})})),"true"==e.cookie("top-hide")&&T.animate({"margin-top":-e("#top-bar").height()},200,function(){T.css({visibility:"visible",opacity:"1"})}));e(".stripe-video-bg");e(window).on("debouncedresize",function(){dtGlobals.resizeCounter++,t(),o(),a(),n(),r(),e(".responsive-off").length||e(window).width()>=970&&(T.css("visibility","visible"),T.css({"margin-top":0})),e(".slider-wrapper").not(".full").each(function(){var t=e(this).children(".frame").data("theSlider");"undefined"!=typeof t&&t.update()}),e(".stripe-video-bg > video").each(function(){var t=e(this),o=t.height();t.css({marginTop:-o/2})}),e.browser.webkit&&e(".wf-cell .blur-this").each(function(){var t=e(this);if(e("canvas",t).length){var o=e(".blur-effect",t)[0].getContext("2d");o.beginPath(),o.moveTo(0,0),o.lineTo(0,0),o.lineTo(0,0),o.strokeStyle="red",o.stroke()}}),e(".stripe, .wpb_row").each(function(){var t=e(this),o=t.attr("data-min-height");t.css(e.isNumeric(o)?{minHeight:o+"px"}:o?o.search("%")>0?{minHeight:e(window).height()*(parseInt(o)/100)+"px"}:{minHeight:o}:{minHeight:0})})}).trigger("debouncedresize"),e("#header .mini-search .field").fadeOut(100,function(){e("#header .mini-search .field").css("visibility","visible")}),e("body").on("click",function(t){var o=e(t.target);o.is("#header .mini-search .field")||(e("#header .searchform .submit").removeClass("act"),e("#header .mini-search .field").fadeOut(100))}),e("#header .searchform .submit").on("click",function(t){t.preventDefault(),t.stopPropagation();var o=e(this);o.hasClass("act")?(o.removeClass("act"),o.siblings(".searchform-s").fadeOut(200)):(o.addClass("act"),o.siblings(".searchform-s").fadeIn(250))}),e(window).scroll(function(){e(this).scrollTop()>500?e(".scroll-top").removeClass("off").addClass("on"):e(".scroll-top").removeClass("on").addClass("off")}),e(".scroll-top").click(function(t){return t.preventDefault(),e("html, body").animate({scrollTop:0},"slow"),!1});var G,S;if(e(".shopping-cart").on("mouseenter tap",function(t){"tap"==t.type&&t.stopPropagation();var o=e(this);o.addClass("dt-hovered"),e("#page").width()-(o.children(".shopping-cart-inner").offset().left-e("#page").offset().left)-230<0&&o.children(".shopping-cart-inner").addClass("right-overflow"),clearTimeout(G),clearTimeout(S),G=setTimeout(function(){o.hasClass("dt-hovered")&&o.children(".shopping-cart-inner").stop().css("visibility","visible").animate({opacity:1},200)},350)}),e(".shopping-cart").on("mouseleave",function(){var t=e(this);t.removeClass("dt-hovered"),clearTimeout(G),clearTimeout(S),S=setTimeout(function(){t.hasClass("dt-hovered")||(t.children(".shopping-cart-inner").stop().animate({opacity:0},150,function(){e(this).css("visibility","hidden")}),setTimeout(function(){t.hasClass("dt-hovered")||t.children(".shopping-cart-inner").removeClass("right-overflow")},400))},200)}),e.fn.animateSkills=function(){e(".skill-value",this).each(function(){var t=e(this),o=t.data("width");t.css({width:o+"%"})})},l(),e("<select />").prependTo(".mini-nav .menu-select"),e("<option />",{selected:"selected",value:"",text:"鈥斺€斺€�"}).appendTo(".mini-nav .menu-select select"),e(".mini-nav").each(function(){var t=e(this),o=t.find("select");e("a",t).each(function(){var t=e(this);e("<option />",{value:t.attr("href"),text:t.text(),"data-level":t.attr("data-level")}).appendTo(o)})}),e(".mini-nav select").change(function(){window.location=e(this).find("option:selected").val()}),e(".mini-nav select option").each(function(){var t=e(this),o=window.location.href;t.attr("value")==o&&t.attr("selected","selected")}),e(".woocommerce-ordering-div select, #dropdown_product_cat, .mini-nav select").each(function(){e(this).customSelect()}),e(".menu-select select, .mini-nav .customSelect1, .vc_pie_chart .vc_pie_wrapper").css("visibility","visible"),e(".mini-nav option").each(function(){var t=e(this),o=t.text(),a="";switch(parseInt(t.attr("data-level"))){case 1:a="";break;case 2:a="鈥� ";break;case 3:a="鈥斺€� ";break;case 4:a="鈥斺€斺€� ";break;case 5:a="鈥斺€斺€斺€� "}t.text(a+o)}),jQuery(window).load(function(){if(jQuery("#load").length&&jQuery("#load").fadeOut().remove(),"block"==e("#phantom").css("display"))var t=e("#phantom").height();else var t=0;var o="#"+window.location.href.split("#")[1];if(e(".one-page-row").length&&e(".one-page-row div[data-anchor^='#']").length)"#undefined"!=o&&e("html, body").animate({scrollTop:e(".one-page-row div[data-anchor='"+o+"']").offset().top-t+1},600,function(){e("body").removeClass("is-scroll")});else if(e(o).length>0)return console.log(o),setTimeout(function(){e("html, body").animate({scrollTop:e(o).offset().top-t+1},1e3)},10),!1}),e(".anchor-link").each(function(){var t,o,a,i=e(this),n=i.attr("href"),s=600,r=s;if(e(n).length>0)var t=i.offset(),o=e(n).offset(),a=Math.abs(o.top-t.top),r=a*s/1e3;e(this).on("click",function(t){if(e("body").addClass("is-scroll"),"block"==e("#phantom").css("display"))var o=e("#phantom").height();else var o=0;var a=e(this),i=a.attr("href");return"#"==i?e("html, body").animate({scrollTop:0},r,function(){e("body").removeClass("is-scroll")}):e(".one-page-row").length&&e(".one-page-row div[data-anchor^='#']").length?e("html, body").animate({scrollTop:e(".one-page-row div[data-anchor='"+i+"']").offset().top-o+1},r,function(){e("body").removeClass("is-scroll")}):e(i).length>0&&e("html, body").animate({scrollTop:e(i).offset().top-o+1},r,function(){e("body").removeClass("is-scroll")}),!1})}),e(".one-page-row").length&&c(),e("#main-nav .menu-item a[href^='#'], .custom-menu .menu-item a[href^='#'], .custom-nav .menu-item a[href^='#'], .mini-nav .menu-item a[href^='#'], .dl-menu li a[href^='#']").not(".dl-menu li.dl-back a[href^='#']").each(function(){{var t=e(this);t.attr("href")}e(this).on("click",function(t){if(e("body").addClass("is-scroll"),"block"==e("#phantom").css("display"))var o=e("#phantom").height();else var o=0;var a=e(this),i=a.attr("href"),n=600,s=n;if(e(i).length>0)var r=a.offset(),l=e(i).offset(),c=Math.abs(l.top-r.top),s=c*n/1e3;return e(".one-page-row .menu-item a").parent("li").removeClass("act"),e(".one-page-row").length>0&&a.parent("li").addClass("act"),"#"==i&&e(".one-page-row").length>0?e("html, body").animate({scrollTop:0},s,function(){e("body").removeClass("is-scroll")}):e(".one-page-row").length&&e(".one-page-row div[data-anchor^='#']").length?e("html, body").animate({scrollTop:e(".one-page-row div[data-anchor='"+i+"']").offset().top-o+1},s,function(){e("body").removeClass("is-scroll")}):e(i).length>0&&e("html, body").animate({scrollTop:e(i).offset().top-o+1},s,function(){e("body").removeClass("is-scroll")}),!1})}),e(".logo-box a[href^='#'], #branding a[href^='#'], #branding-bottom a[href^='#']").on("click",function(t){if(e("body").addClass("is-scroll"),"block"==e("#phantom").css("display"))var o=e("#phantom").height();else var o=0;var a=e(this),i=a.attr("href"),n=600,s=n;if(e(i).length>0)var r=a.offset(),l=e(i).offset(),c=Math.abs(l.top-r.top),s=c*n/1e3;return"#"==i?e("html, body").animate({scrollTop:0},s,function(){e("body").removeClass("is-scroll")}):e(".one-page-row").length&&e(".one-page-row div[data-anchor^='#']").length?e("html, body").animate({scrollTop:e(".one-page-row div[data-anchor='"+i+"']").offset().top-o+1},s,function(){e("body").removeClass("is-scroll")}):e(i).length>0&&e("html, body").animate({scrollTop:e(i).offset().top-o+1},s,function(){e("body").removeClass("is-scroll")}),!1}),e(".one-page-row").length>0&&e(window).scroll(function(){var t=null;if("block"==e("#phantom").css("display"))var o=e("#phantom").height();else var o=0;e("body").hasClass("is-scroll")||(e('.one-page-row div[data-anchor^="#"]').each(function(){var a=(e(this),e(this).attr("data-anchor"));e(window).scrollTop()>=e(".one-page-row div[data-anchor='"+a+"']").offset().top-o&&(t=a)}),e(".menu-item a").parent("li").removeClass("act"),e('.menu-item a[href="'+t+'"]').parent("li").addClass("act"),e('.menu-item a[href="#"]').length&&null==t&&e('.menu-item a[href="#"]').parent("li").addClass("act"))}),smartMenu){var P=0,H=0,M=e("#main-nav"),B=e("#branding a").attr("href"),D=M.parent(),L=e('<div id="phantom"><div class="ph-wrap"><div class="ph-wrap-content"><div class="ph-wrap-inner"><div class="logo-box"></div><div class="menu-box"></div></div></div></div></div>').appendTo("body"),_=L.find(".menu-box"),z=M.height(),A=!1,O=e("#header").offset().top+e("#header").height();!e(".vc-editor").length>0&&e("#wpadminbar").exists()&&L.css("top","28px"),e("#page").hasClass("boxed")&&(L.find(".ph-wrap").addClass("boxed"),L.addClass("boxed")),dtGlobals.logoURL&&dtGlobals.logoEnabled&&(L.find(".ph-wrap").addClass("with-logo"),L.find(".logo-box").html(void 0==B?'<img src="'+dtGlobals.logoURL+'" height="'+dtGlobals.logoH+'" width="'+dtGlobals.logoW+'">':'<a href="'+B+'"><img src="'+dtGlobals.logoURL+'" height="'+dtGlobals.logoH+'" width="'+dtGlobals.logoW+'"></a>')),e(".one-page-row .logo-box a").on("click",function(t){if(e("body").addClass("is-scroll"),"block"==e("#phantom").css("display"))var o=e("#phantom").height();else var o=0;var a=e(this),i=a.attr("href"),n=600,s=n;if(e(i).length>0)var r=a.offset(),l=e(i).offset(),c=Math.abs(l.top-r.top),s=c*n/1e3;return"#"==i?e("html, body").animate({scrollTop:0},s,function(){e("body").removeClass("is-scroll")}):e(".one-page-row").length&&e(".one-page-row div[data-anchor^='#']").length?e("html, body").animate({scrollTop:e(".one-page-row div[data-anchor='"+i+"']").offset().top-o+1},s,function(){e("body").removeClass("is-scroll")}):e(i).length>0&&e("html, body").animate({scrollTop:e(i).offset().top-o+1},s,function(){e("body").removeClass("is-scroll")}),!1}),e(window).on("debouncedresize",function(){z=M.height()}),e(window).on("scroll",function(){var t=e(window).scrollTop();H=t-P,t>O&&A===!1?dtGlobals.isHovering||(L.css({opacity:1,visibility:"visible"}),M.appendTo(_),A=!0):O>=t&&A===!0&&(M.appendTo(D),e(".logo-classic-centered, .logo-center").length&&e(".mini-search").length&&M.insertBefore(".mini-search"),L.css({opacity:0,visibility:"hidden"}),A=!1),P=e(window).scrollTop()})}e(".swiper-slide").each(function(){var t=jQuery(this);t.find("> .link").on("mousedown tap",function(o){{var a=o.pageX;o.pageY}t.find("> .link").one("mouseup tap",function(t){{var o=t.pageX;t.pageY}if(Math.abs(a-o)<5){var i=e(this),n=jQuery(this).parents(".swiper-slide"),s=n.find("> .swiper-caption");e(".swiper-slide > .link").removeClass("act"),i.addClass("act"),e(".swiper-caption").not(s).fadeOut(200),s.delay(150).fadeIn(300)}})}),t.find(".close-link").on("mousedown tap",function(){var t=(e(this),jQuery(this).parents(".swiper-slide")),o=t.find("> .swiper-caption");o.delay(100).fadeOut(200,function(){t.find("> .link").removeClass("act")})})}),e.fn.touchDefaultHover=function(){return this.each(function(){var t=e(this);t.hasClass("this-ready")||(t.find(".link, > a").on("tap",function(t){t.preventDefault();var o=e(this),a=e(this).parents(".rollover-project"),i=a.find(".rollover-content");e(".rollover-project .link, .rollover-project > a").removeClass("act"),o.addClass("act"),e(".rollover-content").not(i).fadeOut(300),i.delay(150).fadeIn(200)}),t.find(".close-link").on("tap",function(){var t=(e(this),jQuery(this).parents(".rollover-project")),o=t.find(".rollover-content");o.delay(100).fadeOut(100,function(){t.find(".link, > a").removeClass("act")})}),t.addClass("this-ready"))})},e(".touch .rollover-project").not(".touch .albums .rollover-project, .touch .media .rollover-project, .touch .cs-style-1 .rollover-project, .touch .hover-grid .rollover-project, .touch .hover-style-two .rollover-project, .touch .hover-style-one .rollover-project, .touch .hover-style-three .rollover-project ").touchDefaultHover(),e(".touch .text-on-img .fs-entry-img").each(function(){{var t=e(this);e(this)}t.find("> .link").on("mousedown tap",function(o){var a=o.pageX;t.find("> .link").one("mouseup tap",function(t){{var o=t.pageX;t.pageY}if(Math.abs(a-o)<5){var i=e(this),n=jQuery(this).parents(".fs-entry"),s=n.find("> .fs-entry-slide .fs-entry-content");i.addClass("act"),n.siblings().find(".fs-entry-content").css({visibility:"hidden"}).animate({opacity:0},150,function(){e(".fs-entry .link").not(i).removeClass("act")}),s.stop().css("visibility","visible").animate({opacity:1},200),s.parents(".fs-entry:last-child").parents(".slider-wrapper").find(".next").hide()}})}),t.parents(".fs-entry").find(".close-link").on("tap",function(){var t=(e(this),jQuery(this).parents(".fs-entry")),o=t.find(".fs-entry-content");o.parents(".fs-entry:last-child").parents(".slider-wrapper").find(".next").show(),o.stop().css("visibility","hidden").animate({opacity:0},150,function(){setTimeout(function(){t.find(".link").removeClass("act")},200)})})}),e(".no-touch .shortcode-instagram .fs-entry").each(function(){var t=e(this);t.on("mousedown tap",function(o){if(3==o.which);else{{var a=o.pageX;o.pageY}t.on("mouseup tap",function(o){{var i=o.pageX;o.pageY}Math.abs(a-i)<5&&t.on("click.dtPhotos",function(){t.off("click.dtPhotos"),e("a.dt-mfp-item",this).trigger("click")})})}})}),e.fn.touchNewHover=function(){return this.each(function(){var t=e(this);if(!t.hasClass("this-ready")){if(e(".rollover-content",this).length>0){e("body").on("touchend",function(){e(".touch .rollover-content, .touch .rollover-project").removeClass("is-clicked")});{t.parents(".wf-cell")}t.find(".close-link").on("touchstart",function(){return t.removeClass("is-clicked"),t.find(".rollover-content").removeClass("is-clicked"),!1}),t.on("touchstart",function(e){origY=e.originalEvent.touches[0].pageY,origX=e.originalEvent.touches[0].pageX}),t.on("touchend",function(o){var a=o.originalEvent.changedTouches[0].pageX,i=o.originalEvent.changedTouches[0].pageY;if(origY==i||origX==a){if(!t.hasClass("is-clicked"))return o.preventDefault(),e(".touch .rollover-content, .touch .rollover-project").removeClass("is-clicked"),t.addClass("is-clicked"),t.find(".rollover-content").addClass("is-clicked"),!1;t.find(".rollover-content").on("click.dtAlbums",function(){t.find(".rollover-content").off("click.dtAlbums"),e(this).find(".rollover-content").siblings("a.dt-gallery-mfp-popup, .dt-single-mfp-popup, .dt-mfp-item").first().trigger("click")})}})}t.addClass("this-ready")}})},e(".touch .albums .rollover-project, .touch .media .rollover-project, .touch .cs-style-1 .rollover-project, .touch .hover-grid .rollover-project, .touch .hover-style-two .rollover-project, .touch .hover-style-one .rollover-project, .touch .hover-style-three .rollover-project").touchNewHover(),dtGlobals.isAndroid&&e(".touch .albums .rollover-project, .touch .media .rollover-project").each(function(){if(e(".rollover-content",this).length>0){e("body").on("touchend",function(){e(".touch .rollover-content").removeClass("is-clicked")});{var t=e(this).find(".rollover-content");t.parents(".wf-cell")}t.find(".close-link").on("touchstart",function(){return t.removeClass("is-clicked"),!1}),t.on("touchstart",function(e){origY=e.originalEvent.touches[0].pageY,origX=e.originalEvent.touches[0].pageX}),t.on("touchend",function(o){var a=o.originalEvent.changedTouches[0].pageX,i=o.originalEvent.changedTouches[0].pageY;if(origY==i||origX==a){if(!t.hasClass("is-clicked"))return o.preventDefault(),e(".touch .rollover-content").removeClass("is-clicked"),t.addClass("is-clicked"),!1;t.on("click.dtAlbums",function(){t.off("click.dtAlbums"),e(this).siblings("a.dt-gallery-mfp-popup, .dt-single-mfp-popup, .dt-mfp-item").first().trigger("click")})}})}}),e(".touch .shortcode-instagram a, .touch .rollover-project a.link.show-content, .hover-style-one .rollover-project > a, .hover-style-two .rollover-project > a, .hover-style-three .rollover-project > a").on("click",function(e){e.preventDefault()}),e(".no-touch .albums .rollover-content a:not(.portfolio-categories a), .no-touch .media .rollover-content").on("click",function(t){return e(t.target).is("a")?!0:void e(this).siblings("a.dt-single-mfp-popup, a.dt-gallery-mfp-popup, a.dt-mfp-item").first().click()}),e.fn.hoverImage=function(){return this.each(function(){var t=e(this);t.hasClass("hover-ready")||(t.hover(function(){var t=e(this);t.find(".links-container a").stop(!0,!0).animate({opacity:1,bottom:"0px"},400,"easeOutCirc",function(){e(this).addClass("animation-done")}),t.find(".rollover-content-container").not(".hover-style-one.always-show-info .rollover-content-container, .cs-style-3 .rollover-content-container").stop(!0).animate({opacity:1,bottom:"0px"},400,"easeOutCirc")},function(){e(".rollover-project .links-container > a, .text-on-img .links-container > a, .buttons-on-img .links-container > a").stop(!0).animate({opacity:0,bottom:"15px"},"fast",function(){e(".links-container > a").removeClass("animation-done")}),e(".rollover-content-container").not(".hover-style-one.always-show-info .rollover-content-container, .cs-style-3 .rollover-content-container").stop(!0).animate({opacity:0,bottom:"-15px"},400,"easeOutCirc",function(){})}),t.addClass("hover-ready"))})},e(".no-touch .hover-style-one .rollover-project, .no-touch .hover-style-two:not(.cs-style-1, .hover-grid) .rollover-project, .no-touch .hover-style-three:not(.cs-style-3) .rollover-project, .no-touch .buttons-on-img.rollover-project, .no-touch .hover-style-one .fs-entry, .no-touch .hover-style-two:not(.cs-style-1, .hover-grid) .fs-entry, .no-touch .hover-style-three:not(.cs-style-3) .fs-entry, .no-touch .buttons-on-img.fs-entry-content").hoverImage(),e.fn.touchHoverImage=function(){return this.each(function(){var t=e(this);if(!t.hasClass("hover-ready")){e("body").on("touchend",function(){e(".touch .rollover-content").removeClass("is-clicked")});{var o=e(this).find(".rollover-content");o.parents(".wf-cell")}o.on("touchstart",function(e){origY=e.originalEvent.touches[0].pageY,origX=e.originalEvent.touches[0].pageX}),o.on("touchend",function(t){var a=t.originalEvent.changedTouches[0].pageX,i=t.originalEvent.changedTouches[0].pageY;return origY!=i&&origX!=a||o.hasClass("is-clicked")?void 0:(t.preventDefault(),e(".touch .buttons-on-img .rollover-content").removeClass("is-clicked"),o.addClass("is-clicked"),!1)}),t.addClass("hover-ready")}})},e(".touch .rollover-project.buttons-on-img").touchHoverImage(),e.fn.hoverThumbs=function(){return this.each(function(){var t=e(this);t.hasClass("height-ready")||(t.hover(function(){var t=e(this);t.find(".rollover-thumbnails").length&&t.find(".rollover-thumbnails").stop(!0).animate({opacity:1,bottom:"0px"},400,"easeOutCirc"),t.find(".rollover-content-container").not(".hover-style-one.always-show-info .rollover-content-container, .cs-style-3 .rollover-content-container").stop(!0).animate({opacity:1,bottom:"0px"},400,"easeOutCirc")},function(){e(".rollover-project .rollover-thumbnails").stop(!0).animate({opacity:0,bottom:"15px"},"fast"),e(".rollover-content-container").not(".hover-style-one.always-show-info .rollover-content-container, .cs-style-3 .rollover-content-container").stop(!0).animate({opacity:0,bottom:"-15px"},400,"easeOutCirc",function(){})}),t.addClass("height-ready"))})},e(".no-touch .albums .hover-style-one .rollover-project, .no-touch .albums .hover-style-two:not(.cs-style-1, .hover-grid) .rollover-project, .no-touch .albums .hover-style-three:not(.cs-style-3) .rollover-project, .no-touch .media .hover-style-one .rollover-project, .no-touch .media .hover-style-two:not(.cs-style-1, .hover-grid) .rollover-project, .no-touch .media .hover-style-three:not(.cs-style-3) .rollover-project").hoverThumbs(),e.fn.hoverLinks=function(){return this.each(function(){var t=e(this);t.hasClass("height-ready")||(t.on({mouseenter:function(){if(0===e(this).children("span").length){var t=e("<span/>").appendTo(e(this));setTimeout(function(){t.addClass("icon-hover")},20)}else e(this).children("span").addClass("icon-hover")},mouseleave:function(){e(this).children("span").removeClass("icon-hover")}}),t.addClass("height-ready"))})},e(".hover-style-one .links-container a, .hover-style-two .links-container a,.hover-style-three .links-container a, .buttons-on-img .links-container a").hoverLinks(),e.fn.forwardToPost=function(){return this.each(function(){var t=e(this);t.hasClass("this-ready")||(t.on("click",function(){return window.location.href=t.find("a").first().attr("href"),!1}),t.addClass("this-ready"))})},e(".no-touch .rollover-project.forward-post").forwardToPost(),e(".fs-entry-slide.forward-post, .related-projects .fs-entry-img").each(function(){var t,o=e(this);t=o.hasClass("forward-post")?o.find("div").attr("data-dt-link"):o.attr("data-dt-link"),o.on("mousedown",function(e){var a=e.pageX;o.one("mouseup",function(e){{var i=e.pageX;e.pageY}Math.abs(a-i)<5&&o.on("click",function(){return window.location.href=t,!1})})})}),e.fn.followCurentLink=function(){return this.each(function(){var t=e(this);if(!t.hasClass("this-ready")){var o=t.find(".links-container > a");t.on("click",function(){return o.each(function(){$thisTarget=e(this).attr("target")?e(this).attr("target"):"_self"}),o.hasClass("project-details")||o.hasClass("link")||o.hasClass("details")||o.hasClass("project-link")?(window.open(o.attr("href"),$thisTarget),!1):(o.trigger("click"),!1)}),t.addClass("this-ready")}})},e(".no-touch .rollover-project.rollover-active").followCurentLink(),e(".no-touch .fs-entry-slide.rollover-active").each(function(){var t=e(this),o=t.find(".links-container > a");t.on("mousedown",function(a){var i=a.pageX;t.one("mouseup",function(a){{var n=a.pageX;a.pageY}Math.abs(i-n)<5&&t.on("click",function(){return o.each(function(){$thisTarget=e(this).attr("target")?e(this).attr("target"):"_self"}),o.hasClass("project-details")||o.hasClass("link")||o.hasClass("details")||o.hasClass("project-link")?(window.open(o.attr("href"),$thisTarget),!1):(o.trigger("click"),!1)})})})}),e.fn.triggerAlbumsClick=function(){return this.each(function(){var t=e(this);if(!t.hasClass("this-ready")){var o=t.find("a").first();t.on("click",function(){return o.trigger("click"),!1}),t.addClass("this-ready")}})},e(".albums .rollover-content").triggerAlbumsClick()}),jQuery(document).ready(function(e){var t=e("#content").find(".wf-usr-cell"),o=[],a=0;t.each(function(){var t=e(this);o[a]=t,t.next().hasClass("wf-usr-cell")?a++:(t.parent().hasClass("wf-container")||e(o).map(function(){return this.toArray()}).wrapAll('<div class="wf-container">'),o=[],a=0)}),e(window).load(function(){if(!dtGlobals.isMobile){e.fn.blurImage=function(){return this.each(function(){var t=e(this);if(!t.hasClass("blur-ready")){var o=t.find("> img");t.addClass("blur-this"),o.clone().addClass("blur-effect").css("opacity","").prependTo(this);var a=e(".blur-effect",this);a.each(function(e){1==o[e].complete?Pixastic.process(a[e],"blurfast",{amount:.3}):a.load(function(){Pixastic.process(a[e],"blurfast",{amount:.3})})}),t.addClass("blur-ready")}})};var t=e("body img").length,o=0;e("body").find("img").each(function(){var a=e(this).attr("src");e("<img/>").attr("src",a).css("display","none").load(function(){o++,o>=t&&e(".image-blur .fs-entry-img:not(.shortcode-instagram .fs-entry-img), .image-blur .shortcode-instagram a, .image-blur .rollover-project a:not(.hover-style-two .rollover-project a), .image-blur .rollover, .image-blur .rollover > div, .image-blur .post-rollover, .image-blur .rollover-video").blurImage()})})}})}),jQuery(function(e){function t(t){var o=t.find(".filter.with-ajax").first(),a=t.find(".wf-container.with-ajax").first(),i=o.find(".filter-categories a.act"),n=o.find(".filter-by a.act"),s=o.find(".filter-sorting a.act"),r=parseInt(a.attr("data-cur-page")),l=new Array,c=i.length>0?i.attr("data-filter").replace(".category-","").replace("*",""):"";return"0"==c&&(c="none"),a.hasClass("isotope")&&e(".isotope-item",a).each(function(){l.push(e(this).attr("data-post-id"))}),{visibleItems:l,postID:dtLocal.postID,paged:r,term:c,orderBy:n.length>0?n.attr("data-by"):"",order:s.length>0?s.attr("data-sort"):"",ajaxurl:dtLocal.ajaxurl,nonce:dtLocal.ajaxNonce,pageData:dtLocal.pageData,layout:dtLocal.pageData.layout,targetContainer:a,isPhone:dtGlobals.isPhone}}function o(){if(dtGlobals.loadMoreButton&&dtGlobals.loadMoreButton.exists()){var t=dtGlobals.loadMoreButton.offset();t&&e(window).scrollTop()>(t.top-e(window).height())/2&&!dtGlobals.loadMoreButton.hasClass("animate-load")&&dtGlobals.loadMoreButton.trigger("click")}}var a={xhr:!1,settings:!1,lunch:function(t){var o=this;t&&(this.settings=t),this.xhr&&this.xhr.abort();var a="presscore_template_ajax";this.xhr=e.post(t.ajaxurl,{action:a,postID:t.postID,paged:t.paged,targetPage:t.targetPage,term:t.term,orderby:t.orderBy,order:t.order,nonce:t.nonce,visibleItems:t.visibleItems,contentType:t.contentType,pageData:t.pageData,sender:t.sender},function(a){if(a.success){var i=jQuery(a.html),n=t.targetContainer,s=parseInt(n.attr("data-width")),r=parseInt(n.attr("data-padding"));if(isIsotope="grid"==t.layout||"masonry"==t.layout,itemsToDeleteLength=a.itemsToDelete.length,trashItems=new Array,sortBy=a.orderby.replace("title","name"),sortAscending="asc"==a.order.toLowerCase(),dtGlobals.isPhone&&(isIsotope=!1),a.newNonce&&(dtLocal.ajaxNonce=a.newNonce),isIsotope&&itemsToDeleteLength>0){for(var l=0;l<a.itemsToDelete.length;l++)trashItems.push('.wf-cell[data-post-id="'+a.itemsToDelete[l]+'"]');n.isotope("remove",n.find(trashItems.join(",")))}else isIsotope||"filter"!=t.sender&&"paginator"!=t.sender||n.find(".wf-cell").remove();i.length>0?(n.append(i),isIsotope?(e(".preload-me",n).heightHack(),e(".slider-masonry, .slider-simple",n).initSlider(),n.calculateColumns(s,r,"px"),n.isotope("addItems",i),n.isotope("reLayout"),n.isotope("media"!=t.contentType?{sortBy:sortBy,sortAscending:sortAscending}:{sortBy:"original-order"}),"masonry"==t.layout?e("> .iso-item",n).showItems():"grid"==t.layout&&e("> .wf-cell",n).showItems(),o.init()):(!dtGlobals.isPhone||"masonry"!=t.layout&&"grid"!=t.layout||(n.calculateColumns(s,r,n.hasClass("iso-container")?"px":"%"),n.find(".iso-item, .wf-cell:not(.iso-item)").css("opacity","1")),e(".slider-masonry, .slider-simple",n).initSlider(),"jgrid"==t.layout&&(e(".wf-cell",n).jGridItemsLoad(),n.collagePlus(dtGlobals.jGrid)),o.init()),"undefined"!=typeof t.afterSuccessInit&&t.afterSuccessInit(a)):isIsotope&&n.isotope({sortBy:sortBy,sortAscending:sortAscending})}"undefined"!=typeof t.afterResponce&&t.afterResponce(a)})},init:function(){switch(this.settings.contentType){case"portfolio":this.initPortfolio();break;case"albums":this.initAlbums();break;case"media":this.initMedia()}},initPortfolio:function(){this.basicInit()},initAlbums:function(){this.basicInit()},initMedia:function(){this.basicInit(),e(".no-touch .albums .rollover-content, .no-touch .media .rollover-content").on("click",function(t){return e(t.target).is("a")?!0:void e(this).siblings("a.dt-single-mfp-popup, a.dt-gallery-mfp-popup, a.dt-mfp-item").first().click()})},basicInit:function(){var t=this.settings.targetContainer;e(".dt-gallery-mfp-popup",t).not(".mfp-ready").on("click",function(){var t=e(this),o=t.parents("article.post");if(o.length>0){var a=o.find(".dt-gallery-container a.dt-mfp-item");a.length>0&&a.first().trigger("click")}return!1}).addClass("mfp-ready"),e(".dt-trigger-first-mfp",t).not(".mfp-ready").on("click",function(){var t=e(this),o=t.parents("article.post");if(o.length>0){var a=o.find("a.dt-mfp-item");a.length>0&&a.first().trigger("click")}return!1}).addClass("mfp-ready"),e(".dt-single-image",t).not(".mfp-ready").magnificPopup({type:"image"}).addClass("mfp-ready"),e(".dt-single-video",t).not(".mfp-ready").magnificPopup({type:"iframe"}).addClass("mfp-ready"),e(".dt-single-mfp-popup",t).not(".mfp-ready").magnificPopup(dtGlobals.magnificPopupBaseConfig).addClass("mfp-ready"),e(".dt-gallery-container",t).not(".mfp-ready").each(function(){e(this).addClass("mfp-ready").magnificPopup(e.extend({},dtGlobals.magnificPopupBaseConfig,{delegate:"a.dt-mfp-item",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]}}))}),e(".rollover, .rollover-video, .post-rollover, .swiper-slide .link, .rollover-project .show-content",t).addRollover(),e(".no-touch .hover-grid .rollover-project, .no-touch .hover-grid .fs-entry-slide ").each(function(){e(this).hoverdir()}),e(".touch .rollover-project").not(".touch .albums .rollover-project, .touch .media .rollover-project, .touch .cs-style-1 .rollover-project, .touch .hover-grid .rollover-project, .touch .hover-style-two .rollover-project, .touch .hover-style-one .rollover-project, .touch .hover-style-three .rollover-project ").touchDefaultHover(),e(".touch .albums .rollover-project, .touch .media .rollover-project, .touch .cs-style-1 .rollover-project, .touch .hover-grid .rollover-project, .touch .hover-style-two .rollover-project, .touch .hover-style-one .rollover-project, .touch .hover-style-three .rollover-project").touchNewHover(),e(".no-touch .hover-style-one .rollover-project, .no-touch .hover-style-two:not(.cs-style-1, .hover-grid) .rollover-project, .no-touch .hover-style-three:not(.cs-style-3) .rollover-project, .no-touch .buttons-on-img.rollover-project, .no-touch .hover-style-one .fs-entry, .no-touch .hover-style-two:not(.cs-style-1, .hover-grid) .fs-entry, .no-touch .hover-style-three:not(.cs-style-3) .fs-entry, .no-touch .buttons-on-img.fs-entry-content").hoverImage(),e(".no-touch .albums .hover-style-one .rollover-project, .no-touch .albums .hover-style-two:not(.cs-style-1, .hover-grid) .rollover-project, .no-touch .albums .hover-style-three:not(.cs-style-3) .rollover-project, .no-touch .media .hover-style-one .rollover-project, .no-touch .media .hover-style-two:not(.cs-style-1, .hover-grid) .rollover-project, .no-touch .media .hover-style-three:not(.cs-style-3) .rollover-project").hoverThumbs(),e(".hover-style-one .links-container a, .hover-style-two .links-container a,.hover-style-three .links-container a, .buttons-on-img .links-container a").hoverLinks(),e(".no-touch .rollover-project.forward-post").forwardToPost(),e(".no-touch .rollover-project.rollover-active").followCurentLink(),e(".albums .rollover-content").triggerAlbumsClick(),dtGlobals.isMobile||e(".image-blur .rollover-project a:not(.hover-style-two .rollover-project a), .image-blur .rollover, .image-blur .rollover > div, .image-blur .post-rollover, .image-blur .rollover-video").blurImage(),e(".iso-item",t).css("visibility","visible")
  6. }};e("#content").on("click",".paginator.with-ajax a",function(o){if(!e(o.target).hasClass(".dots")){o.preventDefault();var i=e(this),n=i.closest(".paginator"),s=n.parent(),r=s.find(".wf-container.with-ajax").first(),l=e(".button-load-more"),c=l.find(".button-caption").text(),d=n.hasClass("paginator-more-button")?"more":"paginator",h="more"==d,p=t(s),f=h?p.paged+1:i.attr("data-page-num"),u=dtGlobals.isoPreloader;if(l.addClass("animate-load").find(".button-caption").text(dtLocal.moreButtonText.loading),u&&!e(".paginator-more-button").length&&dtGlobals.isoPreloader.fadeIn(50),!h){var v=s.find(".filter.with-ajax").first();v.exists()||(v=r),e("html, body").animate({scrollTop:v.offset().top-e("#phantom").height()-40},400)}a.lunch(e.extend({},p,{contentType:p.pageData.template,targetPage:f,sender:d,visibleItems:h?new Array:p.visibleItems,afterResponce:function(t){n.length>0?(t.paginationHtml?n.html(e(t.paginationHtml).html()).show():n.html("").hide(),setTimeout(function(){e(".button-load-more").removeClass("animate-load").find(".button-caption").text(c)},200)):t.paginationHtml&&r.parent().append(e(t.paginationHtml)),n.find(".dots").on("click",function(){n.find("div:hidden").show().find("a").unwrap(),e(this).remove()}),r.attr("data-cur-page",t.currentPage),dtGlobals.isoPreloader.stop().fadeOut(300),dtGlobals.loadMoreButton=e(".button-load-more")}}))}}),e(".filter.with-ajax .filter-categories a, .filter.with-ajax .filter-extras a").on("click",function(o){o.preventDefault();var i=e(this),n=i.closest(".filter"),s=n.parent(),r=s.find(".wf-container.with-ajax").first(),l=s.find(".paginator").first(),c=t(s),d=dtGlobals.isoPreloader;d&&dtGlobals.isoPreloader.fadeIn(50),a.lunch(e.extend({},c,{contentType:c.pageData.template,targetPage:1,paged:1,sender:"filter",afterResponce:function(t){l.length>0?t.paginationHtml?l.html(e(t.paginationHtml).html()).show():l.html("").hide():t.paginationHtml&&r.parent().append(e(t.paginationHtml)),l.find(".dots").on("click",function(){l.find("div:hidden").show().find("a").unwrap(),e(this).remove()}),r.attr("data-cur-page",t.currentPage),dtGlobals.isoPreloader.stop().fadeOut(300),dtGlobals.loadMoreButton=e(".button-load-more")}}))}),"undefined"!=typeof dtLocal.themeSettings.lazyLoading&&dtLocal.themeSettings.lazyLoading&&(dtGlobals.loadMoreButton=e(".button-load-more"),e(window).on("scroll",function(){o()}),o()),e.browser.msie&&e(".no-touch #fancy-header .fancy-title, .no-touch #fancy-header .fancy-subtitle, .no-touch #fancy-header .breadcrumbs").css("opacity","1")});