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(''),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("")}),e(".text-on-img .fs-entry-content").each(function(){var t=e(this);t.append('')}),e(".text-on-img .fs-entry-img").each(function(){var t=e(this);t.append('')});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("
"),e(".underline-hover > li > a > span").not(".underline-hover > li > a > span.mega-icon").append("");{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("
  • "+v+"
  • "),u.appendTo("#dl-menu").wrap("
    "),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 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('
    ').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:'The image #%curr% could not be loaded.',titleSrc:function(e){return this.st.dt.getItemTitle(e)}},iframe:{markup:'
    '},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:'',facebook:'',google:'',pinterest:''},this.st.dt.getShareButtons=function(t){for(var o=e.st.dt.shareButtonsList,a=-1,i=o.length,n="",s=0;s=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'
    '+n+"
    "},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+""+i+""+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?tt&&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++){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("").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(""),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); 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(""));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("