Warning: Cannot modify header information - headers already sent by (output started at /kunden/435059_12205/webseiten/wp-includes/wp-db.php:1612) in /kunden/435059_12205/webseiten/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 383

Warning: Cannot modify header information - headers already sent by (output started at /kunden/435059_12205/webseiten/wp-includes/wp-db.php:1612) in /kunden/435059_12205/webseiten/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 383

Warning: Cannot modify header information - headers already sent by (output started at /kunden/435059_12205/webseiten/wp-includes/wp-db.php:1612) in /kunden/435059_12205/webseiten/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 383

Warning: Cannot modify header information - headers already sent by (output started at /kunden/435059_12205/webseiten/wp-includes/wp-db.php:1612) in /kunden/435059_12205/webseiten/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 383

Warning: Cannot modify header information - headers already sent by (output started at /kunden/435059_12205/webseiten/wp-includes/wp-db.php:1612) in /kunden/435059_12205/webseiten/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 383
window.addComment=function(a){function b(){c(),g()}function c(a){if(t&&(m=j(r.cancelReplyId),n=j(r.commentFormId),m)){m.addEventListener("touchstart",e),m.addEventListener("click",e);for(var b,c=d(a),g=0,h=c.length;g0){return true;}else{return false;}} $.fn.loaded=function(callback,jointCallback,ensureCallback){var len=this.length;if(len>0){return this.each(function(){var el=this,$el=$(el),blank="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";$el.on("load.dt",function(event){$(this).off("load.dt");if(typeof callback=="function"){callback.call(this);} if(--len<=0&&(typeof jointCallback=="function")){jointCallback.call(this);}});if(!el.complete||el.complete===undefined){el.src=el.src;}else{$el.trigger("load.dt")}});}else if(ensureCallback){if(typeof jointCallback=="function"){jointCallback.call(this);} return this;}};var $body=$("body"),$window=$(window),$mainSlider=$('#main-slideshow'),$3DSlider=$('.three-d-slider'),adminH=$('#wpadminbar').height(),header=$('.masthead:not(.side-header):not(.side-header-v-stroke)').height();if($body.hasClass("transparent")){var headerH=0;}else if($body.hasClass("overlap")){var headerH=($('.masthead:not(.side-header):not(.side-header-v-stroke)').height()+(parseInt($mainSlider.css("marginTop"))+parseInt($mainSlider.css("marginBottom"))));}else{var headerH=$('.masthead:not(.side-header):not(.side-header-v-stroke)').height();}'use strict';$.HoverDir=function(options,element){this.$el=$(element);this._init(options);};$.HoverDir.defaults={speed:300,easing:'ease',hoverDelay:0,inverse:false};$.HoverDir.prototype={_init:function(options){this.options=$.extend(true,{},$.HoverDir.defaults,options);this.transitionProp='all '+this.options.speed+'ms '+this.options.easing;this.support=Modernizr.csstransitions;this._loadEvents();},_loadEvents:function(){var self=this;this.$el.on('mouseenter.hoverdir, mouseleave.hoverdir',function(event){var $el=$(this),$hoverElem=$el.find('.rollover-content'),direction=self._getDir($el,{x:event.pageX,y:event.pageY}),styleCSS=self._getStyle(direction);if(event.type==='mouseenter'){$hoverElem.hide().css(styleCSS.from);clearTimeout(self.tmhover);self.tmhover=setTimeout(function(){$hoverElem.show(0,function(){var $el=$(this);if(self.support){$el.css('transition',self.transitionProp);} self._applyAnimation($el,styleCSS.to,self.options.speed);});},self.options.hoverDelay);} else{if(self.support){$hoverElem.css('transition',self.transitionProp);} clearTimeout(self.tmhover);self._applyAnimation($hoverElem,styleCSS.from,self.options.speed);}});},_getDir:function($el,coordinates){var w=$el.width(),h=$el.height(),x=(coordinates.x-$el.offset().left-(w/2))*(w>h?(h/w):1),y=(coordinates.y-$el.offset().top-(h/2))*(h>w?(w/h):1),direction=Math.round((((Math.atan2(y,x)*(180/Math.PI))+180)/90)+3)%4;return direction;},_getStyle:function(direction){var fromStyle,toStyle,slideFromTop={left:'0px',top:'-100%'},slideFromBottom={left:'0px',top:'100%'},slideFromLeft={left:'-100%',top:'0px'},slideFromRight={left:'100%',top:'0px'},slideTop={top:'0px'},slideLeft={left:'0px'};switch(direction){case 0:fromStyle=!this.options.inverse?slideFromTop:slideFromBottom;toStyle=slideTop;break;case 1:fromStyle=!this.options.inverse?slideFromRight:slideFromLeft;toStyle=slideLeft;break;case 2:fromStyle=!this.options.inverse?slideFromBottom:slideFromTop;toStyle=slideTop;break;case 3:fromStyle=!this.options.inverse?slideFromLeft:slideFromRight;toStyle=slideLeft;break;};return{from:fromStyle,to:toStyle};},_applyAnimation:function(el,styleCSS,speed){$.fn.applyStyle=this.support?$.fn.css:$.fn.animate;el.stop().applyStyle(styleCSS,$.extend(true,[],{duration:speed+'ms'}));},};var logError=function(message){if(window.console){window.console.error(message);}};$.fn.hoverdir=function(options){var instance=$.data(this,'hoverdir');if(typeof options==='string'){var args=Array.prototype.slice.call(arguments,1);this.each(function(){if(!instance){logError("cannot call methods on hoverdir prior to initialization; "+"attempted to call method '"+options+"'");return;} if(!$.isFunction(instance[options])||options.charAt(0)==="_"){logError("no such method '"+options+"' for hoverdir instance");return;} instance[options].apply(instance,args);});} else{this.each(function(){if(instance){instance._init();} else{instance=$.data(this,'hoverdir',new $.HoverDir(options,this));}});} return instance;}; /*!-Hover Direction aware init*/ $('.mobile-false .hover-grid .rollover-project').each(function(){$(this).hoverdir();});$('.mobile-false .hover-grid-reverse .rollover-project ').each(function(){$(this).hoverdir({inverse:true});}); /*!Append tag for portfolio round links button*/ $.fn.hoverLinks=function(){if($(".semitransparent-portfolio-icons").length>0||$(".accent-portfolio-icons").length>0){return this.each(function(){var $img=$(this);if($img.hasClass("height-ready")){return;} $("").appendTo($(this));$img.on({mouseenter:function(){if(0===$(this).children("span").length){var a=$("").appendTo($(this));setTimeout(function(){a.addClass("icon-hover")},20)}else $(this).children("span").addClass("icon-hover")},mouseleave:function(){$(this).children("span").removeClass("icon-hover")}});$img.addClass("height-ready");});}};$(".links-container a").hoverLinks(); /*!Trigger click (direct to post) */ $.fn.forwardToPost=function(){return this.each(function(){var $this=$(this);if($this.hasClass("this-ready")){return;};$this.on("click",function(){if($this.parents(".ts-wrap").hasClass("ts-interceptClicks"))return;window.location.href=$this.find("a").first().attr("href");return false;});$this.addClass("this-ready");});};$(".mobile-false .rollover-project.forward-post").forwardToPost();$.fn.touchforwardToPost=function(){return this.each(function(){var $this=$(this);if($this.hasClass("touch-hover-ready")){return;} $body.on("touchend",function(e){$(".mobile-true .rollover-content").removeClass("is-clicked");$(".mobile-true .rollover-project").removeClass("is-clicked");});var $this=$(this).find(".rollover-content");$this.on("touchstart",function(e){origY=e.originalEvent.touches[0].pageY;origX=e.originalEvent.touches[0].pageX;});$this.on("touchend",function(e){var touchEX=e.originalEvent.changedTouches[0].pageX,touchEY=e.originalEvent.changedTouches[0].pageY;if(origY==touchEY||origX==touchEX){if($this.hasClass("is-clicked")){window.location.href=$this.prev("a").first().attr("href");}else{e.preventDefault();$(".mobile-ture .rollover-content").removeClass("is-clicked");$(".mobile-true .rollover-project").removeClass("is-clicked");$this.addClass("is-clicked");$this.parent(".rollover-project").addClass("is-clicked");return false;};};});$this.addClass("touch-hover-ready");});};$(".mobile-true .rollover-project.forward-post").touchforwardToPost(); /*!Trigger click on portfolio hover buttons */ $.fn.followCurentLink=function(){return this.each(function(){var $this=$(this);if($this.hasClass("this-ready")){return;} var $thisSingleLink=$this.find(".links-container > a"),$thisCategory=$this.find(".portfolio-categories a");$this.on("click",function(){$thisSingleLink.each(function(){$thisTarget=$(this).attr("target")?$(this).attr("target"):"_self";});if($thisSingleLink.hasClass("project-details")||$thisSingleLink.hasClass("link")||$thisSingleLink.hasClass("project-link")){window.open($thisSingleLink.attr("href"),$thisTarget);return false;}else{$thisSingleLink.trigger("click");return false;}});$this.find($thisCategory).click(function(e){e.stopPropagation();window.location.href=$thisCategory.attr('href');});$this.addClass("this-ready");});};$(".mobile-false .rollover-project.rollover-active, .mobile-false .buttons-on-img.rollover-active").followCurentLink();$.fn.touchHoverImage=function(){return this.each(function(){var $img=$(this);if($img.hasClass("hover-ready")){return;} $body.on("touchend",function(e){$(".mobile-true .rollover-content").removeClass("is-clicked");});var $this=$(this).find(".rollover-content"),thisPar=$this.parents(".wf-cell");$this.on("touchstart",function(e){origY=e.originalEvent.touches[0].pageY;origX=e.originalEvent.touches[0].pageX;});$this.on("touchend",function(e){var touchEX=e.originalEvent.changedTouches[0].pageX,touchEY=e.originalEvent.changedTouches[0].pageY;if(origY==touchEY||origX==touchEX){if($this.hasClass("is-clicked")){}else{$('.links-container > a',$this).on('touchend',function(e){e.stopPropagation();$this.addClass("is-clicked");});e.preventDefault();$(".mobile-true .buttons-on-img .rollover-content").removeClass("is-clicked");$this.addClass("is-clicked");return false;};};});$img.addClass("hover-ready");});};$(".mobile-true .buttons-on-img").touchHoverImage();$.fn.touchScrollerImage=function(){return this.each(function(){var $img=$(this);if($img.hasClass("hover-ready")){return;} $body.on("touchend",function(e){$(".mobile-true .project-list-media").removeClass("is-clicked");});var $this=$(this),$thisSingleLink=$this.find("a.rollover-click-target").first(),$thisButtonLink=$this.find(".links-container");$this.on("touchstart",function(e){origY=e.originalEvent.touches[0].pageY;origX=e.originalEvent.touches[0].pageX;});$this.on("touchend",function(e){var touchEX=e.originalEvent.changedTouches[0].pageX,touchEY=e.originalEvent.changedTouches[0].pageY;if(origY==touchEY||origX==touchEX){if($this.hasClass("is-clicked")){}else{if($thisSingleLink.length>0){$thisSingleLink.on("click",function(event){event.stopPropagation();if($(this).hasClass('go-to')){window.location.href=$(this).attr('href');}});$thisSingleLink.trigger("click");};if($thisButtonLink.length>0){$thisButtonLink.find(" > a ").each(function(){$(this).on("touchend",function(event){event.stopPropagation();$(this).trigger("click");});});} e.preventDefault();$(".mobile-true .fs-entry").removeClass("is-clicked");$this.addClass("is-clicked");return false;};};});$img.addClass("hover-ready");});};$(".mobile-true .project-list-media").touchScrollerImage();$.fn.touchHoverLinks=function(){return this.each(function(){var $img=$(this);if($img.hasClass("hover-ready")){return;} var $this=$(this);$this.on("touchend",function(e){if($this.hasClass("is-clicked")){return;}else{if($this.hasClass("project-zoom")){$this.trigger("click");}else{window.location.href=$this.attr("href");return false;};$(".mobile-true .links-container > a").removeClass("is-clicked");$this.addClass("is-clicked");return false;};});$img.addClass("hover-ready");});};$(".mobile-true .fs-entry .links-container > a").touchHoverLinks(); /*!Trigger albums click */ $.fn.triggerAlbumsClick=function(){return this.each(function(){var $this=$(this);if($this.hasClass("this-ready")){return;} var $thisSingleLink=$this.find("a.rollover-click-target, .dt-mfp-item").first(),$thisCategory=$this.find(".portfolio-categories a");if($thisSingleLink.length>0){$thisSingleLink.on("click",function(event){event.stopPropagation();if($(this).hasClass('go-to')){window.location.href=$(this).attr('href');}});var alreadyTriggered=false;$this.on("click",function(){if($this.parents(".ts-wrap").hasClass("ts-interceptClicks"))return;if(!alreadyTriggered){alreadyTriggered=true;$thisSingleLink.trigger("click");alreadyTriggered=false;} return false;}) $this.find($thisCategory).click(function(e){e.stopPropagation();window.location.href=$thisCategory.attr('href');});} $this.addClass("this-ready");});};$(".dt-albums-template .rollover-project, .dt-albums-shortcode .rollover-project, .dt-albums-template .buttons-on-img, .dt-albums-shortcode .buttons-on-img, .archive .type-dt_gallery .buttons-on-img").triggerAlbumsClick(); /*!Trigger rollover click*/ $.fn.triggerHoverClick=function(){return this.each(function(){var $this=$(this);if($this.hasClass("click-ready")){return;} var $thisSingleLink=$this.prev("a:not(.dt-single-mfp-popup):not(.dt-mfp-item)").first(),$thisCategory=$this.find(".portfolio-categories a"),$thisLink=$this.find(".project-link"),$thisTarget=$thisLink.attr("target")?$thisLink.attr("target"):"_self",$targetClick;if($thisSingleLink.length>0){var alreadyTriggered=false;$this.on("click",function(e){if($this.parents(".ts-wrap").hasClass("ts-interceptClicks"))return;if($(".semitransparent-portfolio-icons").length>0||$(".accent-portfolio-icons").length>0){$targetClick=$(e.target).parent();}else{$targetClick=$(e.target);} if($targetClick.hasClass("project-zoom")){$(this).find("a.dt-gallery-mfp-popup, .dt-trigger-first-mfp, .dt-single-mfp-popup, .dt-mfp-item").first().trigger('click');}else{if(!alreadyTriggered){alreadyTriggered=true;$thisSingleLink.trigger("click");window.location.href=$thisSingleLink.attr('href');alreadyTriggered=false;}} return false;}) $this.find($thisLink).click(function(e){e.stopPropagation();e.preventDefault();window.open($thisLink.attr("href"),$thisTarget);});$this.find($thisCategory).click(function(e){e.stopPropagation();window.location.href=$thisCategory.attr('href');});} $this.addClass("click-ready");});};$(".mobile-false .rollover-project:not(.rollover-active) .rollover-content, .buttons-on-img:not(.rollover-active) .rollover-content").triggerHoverClick();$.fn.smartGrid=function(){return this.each(function(){var $this=$(this),colNum=parseInt($this.attr("data-columns")),colMinWidth=parseInt($this.attr("data-width")),contWidth=$this.width();for(;Math.floor(contWidth/colNum) .wf-cell",$this).css({width:(100/colNum).toFixed(6)+"%",display:"inline-block"});});};var $benLogColl=$(".benefits-grid, .logos-grid");$benLogColl.smartGrid();$window.on("debouncedresize",function(){$benLogColl.smartGrid();}); /*!Instagram style photos*/ var $photoScroller=$(".photo-scroller");if($photoScroller.length>0){$.fn.photoSlider=function(){var $el=$(this),slides={},thumbs="";$elParent=$el.parents(".photo-scroller");slides.$items=$el.children("figure");slides.count=slides.$items.length;slides.$items.each(function(i){var $this=$(this),$slide=$this.children().first().remove(),src=$slide.attr("href"),$thumbImg=$slide.children("img"),thumbSrc=$thumbImg.attr("src"),thumbDataSrc=$thumbImg.attr("data-src"),thumbDataSrcset=$thumbImg.attr("data-srcset"),thumbClass=$thumbImg.attr("class");if($thumbImg.hasClass("lazy-load")){var $layzrBg="layzr-bg";}else{var $layzrBg="";} $this.find("figcaption").addClass("caption-"+(i+1)+"");var $thisCaptionClone=$(this).find("figcaption").clone(true);$(".slide-caption").append($thisCaptionClone);if(parseInt($elParent.attr("data-thumb-width"))>0){var thisWidth=parseInt($elParent.attr("data-thumb-width")),thisHeight=parseInt($elParent.attr("data-thumb-height"));$elParent.removeClass("proportional-thumbs");} else{var thisWidth=parseInt($thumbImg.attr("width")),thisHeight=parseInt($thumbImg.attr("height"));$elParent.addClass("proportional-thumbs");};thumbs=thumbs+'
';$this.prepend('
');});$elParent.append('') $el.addClass("ts-cont");$el.wrap('
');var $slider=$el.parents(".ts-wrap"),windowW=$window.width(),$sliderPar=$elParent,$sliderAutoslide=($sliderPar.attr("data-autoslide")=="true")?true:false,$sliderAutoslideDelay=($sliderPar.attr("data-delay")&&parseInt($sliderPar.attr("data-delay"))>999)?parseInt($sliderPar.attr("data-delay")):5000,$sliderLoop=($sliderPar.attr("data-loop")==="true")?true:false,$thumbHeight=$sliderPar.attr("data-thumb-height")?parseInt($sliderPar.attr("data-thumb-height"))+10:80+10,$slideOpacity=$sliderPar.attr("data-transparency")?$sliderPar.attr("data-transparency"):0.5,$adminBarH=$("#wpadminbar").length>0?$("#wpadminbar").height():0;var dataLsMin=$sliderPar.attr("data-ls-min")?parseInt($sliderPar.attr("data-ls-min")):0,dataLsMax=$sliderPar.attr("data-ls-max")?parseInt($sliderPar.attr("data-ls-max")):100,dataLsFillDt=$sliderPar.attr("data-ls-fill-dt")?$sliderPar.attr("data-ls-fill-dt"):"fill",dataLsFillMob=$sliderPar.attr("data-ls-fill-mob")?$sliderPar.attr("data-ls-fill-mob"):"fit",dataPtMin=$sliderPar.attr("data-pt-min")?parseInt($sliderPar.attr("data-pt-min")):0,dataPtMax=$sliderPar.attr("data-pt-max")?parseInt($sliderPar.attr("data-pt-max")):100,dataPtFillDt=$sliderPar.attr("data-pt-fill-dt")?$sliderPar.attr("data-pt-fill-dt"):"fill",dataPtFillMob=$sliderPar.attr("data-pt-fill-mob")?$sliderPar.attr("data-pt-fill-mob"):"fit",dataSidePaddings=$sliderPar.attr("data-padding-side")?parseInt($sliderPar.attr("data-padding-side")):0;if(dataLsMax<=0)dataLsMax=100;if(dataPtMax<=0)dataPtMax=100;if(dataLsMax760)?$sliderPar.attr("data-padding-top"):0,$slideBottomPadding=($sliderPar.attr("data-padding-bottom")&&windowW>760)?$sliderPar.attr("data-padding-bottom"):0;var $sliderVP=$slider.find(".ts-viewport");$sliderVP.css({"margin-top":$slideTopPadding+"px","margin-bottom":$slideBottomPadding+"px"});$window.on("debouncedresize",function(){if($sliderPar.attr("data-padding-top")&&$window.width()>760){$slideTopPadding=$sliderPar.attr("data-padding-top");} else{$slideTopPadding=0;};if($sliderPar.attr("data-padding-bottom")&&$window.width()>760){$slideBottomPadding=$sliderPar.attr("data-padding-bottom");} else{$slideBottomPadding=0;};if($window.width()>760){$sliderVP.css({"margin-top":$slideTopPadding+"px","margin-bottom":$slideBottomPadding+"px"});} else{$sliderVP.css({"margin-top":0+"px","margin-bottom":0+"px"});};});var $sliderData=$slider.thePhotoSlider({mode:{type:"centered",lsMinW:dataLsMin,lsMaxW:dataLsMax,ptMinW:dataPtMin,ptMaxW:dataPtMax,},height:function(){var $windowH=$window.height(),$adminBarH=$("#wpadminbar").height();if($(".mixed-header").length>0){var $headerH=$(".mixed-header").height();}else{var $headerH=$(".masthead").height();} if($body.hasClass("transparent")||$slider.parents(".photo-scroller").hasClass("full-screen")){if(window.innerWidth0||$slider.parents(".photo-scroller").hasClass("full-screen")){if(window.innerWidth0){return($windowH-$slideTopPadding-$slideBottomPadding-$headerH-$adminBarH);}else{return($windowH-$slideTopPadding-$slideBottomPadding-$adminBarH);}};}else if($(".side-header").length>0||$slider.parents(".photo-scroller").hasClass("full-screen")){if(window.innerWidth
'+thumbs+'
');$slider.after($thumbsScroller);var $thumbsScrollerData=$thumbsScroller.thePhotoSlider({mode:{type:"scroller"},height:$thumbHeight}).data("thePhotoSlider");$(".prev",$this_par).click(function(){if(!$sliderData.noSlide)$sliderData.slidePrev();});$(".next",$this_par).click(function(){if(!$sliderData.noSlide)$sliderData.slideNext();});$sliderData.ev.on("updateNav sliderReady",function(){if($sliderData.lockRight){$(".next",$elParent).addClass("disabled");}else{$(".next",$elParent).removeClass("disabled");};if($sliderData.lockLeft){$(".prev",$elParent).addClass("disabled");}else{$(".prev",$elParent).removeClass("disabled");};});window.addEventListener("keydown",checkKeyPressed,false);function checkKeyPressed(e){if(e.keyCode=="37"){if(!$sliderData.noSlide)$sliderData.slidePrev();}else if(e.keyCode=="39"){if(!$sliderData.noSlide)$sliderData.slideNext();}} $sliderData.ev.on("sliderReady beforeTransition",function(){$sliderData.slides.$items.removeClass("act");$sliderData.slides.$items.eq($sliderData.currSlide).addClass("act");$thumbsScrollerData.slides.$items.removeClass("act");$thumbsScrollerData.slides.$items.eq($sliderData.currSlide).addClass("act");if($sliderData.slides.$items.eq($sliderData.currSlide).hasClass("ts-video")){$sliderData.slides.$items.parents(".ts-wrap ").addClass("hide-slider-overlay");}else if($sliderData.slides.$items.eq($sliderData.currSlide).find(".ps-link").length>0){$sliderData.slides.$items.parents(".ts-wrap ").addClass("hide-slider-overlay");}else{$sliderData.slides.$items.parents(".ts-wrap ").removeClass("hide-slider-overlay");};var actCaption=$sliderData.slides.$items.eq($sliderData.currSlide).find("figcaption").attr("class");$('.slide-caption > figcaption').removeClass("actCaption");$('.slide-caption > .'+actCaption).addClass("actCaption");});$sliderData.ev.on("afterTransition",function(){var viewportLeft=-($thumbsScrollerData._unifiedX()),viewportRight=viewportLeft+$thumbsScrollerData.wrap.width,targetLeft=-$thumbsScrollerData.slides.position[$sliderData.currSlide],targetRight=targetLeft+$thumbsScrollerData.slides.width[$sliderData.currSlide];targetLeft=targetLeft-50;targetRight=targetRight+50;if(targetLeft=0;i--){targetLeft=targetLeft+50;targetRight=targetRight-50;var tempViewportLeft=-$thumbsScrollerData.slides.position[i],tempViewportRight=tempViewportLeft+$thumbsScrollerData.wrap.width;if(targetRight>tempViewportRight){$thumbsScrollerData.slideTo(i+1);break;} else if(i===0){$thumbsScrollerData.slideTo(0);}}} else if(targetRight>viewportRight){$thumbsScrollerData.slideTo($sliderData.currSlide);};});$thumbsScroller.addClass("scroller-thumbnails");$thumbsScrollerData.slides.$items.each(function(i){$(this).on("click",function(event){var $this=$(this);if($this.parents(".ts-wrap").hasClass("ts-interceptClicks"))return;$sliderData.slideTo(i);});});$(".scroller-thumbnails").layzrInitialisation();$sliderData.slides.$items.each(function(i){$(this).on("click",function(event){var $this=$(this);if($this.parents(".ts-wrap").hasClass("ts-interceptClicks"))return;$sliderData.slideTo(i);});});var $this_par=$slider.parents(".photo-scroller");if($sliderData.st.autoPlay.enabled){$(".auto-play-btn",$this_par).addClass("paused");} $(".auto-play-btn",$this_par).on("click",function(e){e.preventDefault();var $this=$(this);if($this.hasClass("paused")){$this.removeClass("paused");if(!$sliderData.noSlide)$sliderData.pause();$sliderData.st.autoPlay.enabled=false;}else{$this.addClass("paused");if(!$sliderData.noSlide)$sliderData.play();$sliderData.st.autoPlay.enabled=true;}});};$(".photoSlider").photoSlider();$(".photoSlider").parents(".photo-scroller").css("visibility","visible");function launchFullscreen(element){if(element.requestFullscreen){element.requestFullscreen();}else if(element.mozRequestFullScreen){element.mozRequestFullScreen();}else if(element.webkitRequestFullscreen){element.webkitRequestFullscreen();}else if(element.msRequestFullscreen){element.msRequestFullscreen();}} function exitFullscreen(){if(document.exitFullscreen){document.exitFullscreen();}else if(document.mozCancelFullScreen){document.mozCancelFullScreen();}else if(document.webkitExitFullscreen){document.webkitExitFullscreen();}};if(!dtGlobals.isWindowsPhone){$(".full-screen-btn").each(function(){var $this=$(this),$thisParent=$this.parents(".photo-scroller");document.addEventListener("fullscreenchange",function(){if(!document.fullscreen){$this.removeClass("act");$thisParent.removeClass("full-screen");$("body, html").css("overflow","");}},false);document.addEventListener("mozfullscreenchange",function(){if(!document.mozFullScreen){$this.removeClass("act");$thisParent.removeClass("full-screen");$("body, html").css("overflow","");}},false);document.addEventListener("webkitfullscreenchange",function(){if(!document.webkitIsFullScreen){$this.removeClass("act");$thisParent.removeClass("full-screen");$("body, html").css("overflow","");var scroller=$frame.data("thePhotoSlider");if(typeof scroller!="undefined"){scroller.update();};}},false);}) $(".full-screen-btn").on("click",function(e){e.preventDefault();var $this=$(this),$thisParent=$this.parents(".photo-scroller"),$frame=$thisParent.find(".ts-wrap"),$thumbs=$thisParent.find(".scroller-thumbnails").data("thePhotoSlider"),$scroller=$frame.data("thePhotoSlider");$this.parents(".photo-scroller").find("figure").animate({"opacity":0},150);if($this.hasClass("act")){$this.removeClass("act");exitFullscreen();$thisParent.removeClass("full-screen");setTimeout(function(){$this.parents(".photo-scroller").find("figure").delay(600).animate({"opacity":1},300)},300);}else{$this.addClass("act");$thisParent.addClass("full-screen");launchFullscreen(document.documentElement);$("body, html").css("overflow","hidden");setTimeout(function(){$this.parents(".photo-scroller").find("figure").delay(600).animate({"opacity":1},300)},300)} var scroller=$frame.data("thePhotoSlider");if(typeof scroller!="undefined"){scroller.update();};});} $photoScroller.each(function(){var $this=$(this);$(".btn-cntr, .slide-caption",$this).css({"bottom":parseInt($this.attr("data-thumb-height"))+15});if($this.hasClass("hide-thumbs")){$this.find(".hide-thumb-btn").addClass("act");$(".scroller-thumbnails",$this).css({"bottom":-(parseInt($this.attr("data-thumb-height"))+20)});$(".btn-cntr, .slide-caption",$this).css({"bottom":5+"px"});}});$(".hide-thumb-btn").on("click",function(e){e.preventDefault();var $this=$(this),$thisParent=$this.parents(".photo-scroller");if($this.hasClass("act")){$this.removeClass("act");$thisParent.removeClass("hide-thumbs");$(".scroller-thumbnails",$thisParent).css({"bottom":0});$(".btn-cntr, .slide-caption",$thisParent).css({"bottom":parseInt($thisParent.attr("data-thumb-height"))+15});}else{$this.addClass("act");$thisParent.addClass("hide-thumbs");$(".scroller-thumbnails",$thisParent).css({"bottom":-(parseInt($thisParent.attr("data-thumb-height"))+20)});$(".btn-cntr, .slide-caption",$thisParent).css({"bottom":5+"px"});}});};if($(".rsHomePorthole").exists()){var portholeSlider={};portholeSlider.container=$("#main-slideshow");portholeSlider.hendheld=$window.width()<740&&dtGlobals.isMobile?true:false;$("#main-slideshow-content").appendTo(portholeSlider.container);$.fn.portholeScroller=function(){var $el=$(this),slides={},thumbs="";slides.$items=$el.children("li"),slides.count=slides.$items.length;slides.$items.each(function(i){var $this=$(this),$slide=$this,$thumbImg=$slide.children("img"),thumbSrc=$thumbImg.attr("data-rstmb"),thumbDataSrc=$thumbImg.attr("data-src"),thumbDataSrcset=$thumbImg.attr("data-srcset"),thumbClass=$thumbImg.attr("class");if($thumbImg.hasClass("lazy-load")){var $layzrBg="layzr-bg";}else{var $layzrBg="";} thumbs=thumbs+'
';});$el.addClass("ts-cont");$el.wrap('
');var $slider=$el.parents(".ts-wrap"),$this_par=$el.parents("#main-slideshow"),windowW=$window.width(),paddings=$this_par.attr("data-padding-side")?parseInt($this_par.attr("data-padding-side")):0,$sliderAutoslideEnable=('true'!=$this_par.attr("data-paused")&&typeof $this_par.attr("data-autoslide")!="undefined"&&!($window.width()<740&&dtGlobals.isMobile))?true:false,$sliderAutoslideDelay=$this_par.attr("data-autoslide")&&parseInt($this_par.attr("data-autoslide"))>999?parseInt($this_par.attr("data-autoslide")):5000,$sliderLoop=(typeof $this_par.attr("data-autoslide")!="undefined")?true:false,$sliderWidth=$this_par.attr("data-width")?parseInt($this_par.attr("data-width")):800,$sliderHight=$this_par.attr("data-height")?parseInt($this_par.attr("data-height")):400,imgMode=$this_par.attr("data-scale")?$this_par.attr("data-scale"):"none";var $sliderData=$slider.thePhotoSlider({mode:{type:"slider"},height:$sliderHight,width:$sliderWidth,resizeImg:true,imageScaleMode:imgMode,imageAlignCenter:true,autoPlay:{enabled:$sliderAutoslideEnable,delay:$sliderAutoslideDelay,loop:$sliderLoop}}).data("thePhotoSlider");var $thumbsScroller=$('
'+thumbs+'
');$slider.append($thumbsScroller);var $psThumb=$(".ps-thumb-img ");$psThumb.each(function(i){$(this).on("click",function(event){var $this=$(this);$sliderData.slideTo(i);});});$(".psThumbsContainer").after('
');$progressWrap=$(".psThumbsContainer").next();$progressHtml='
';if($sliderData.st.autoPlay.enabled){if($progressWrap.find(".progress-mask").length<1){$progressWrap.prepend($progressHtml);}} $sliderData.ev.on("autoPlayPlay",function(){if($progressWrap.find(".progress-mask").length<1){$progressWrap.prepend($progressHtml);} $progressWrap.removeClass("paused");});$sliderData.ev.on("autoPlayPause",function(){$progressWrap.find(".progress-mask").remove();if(!$sliderAutoslideEnable){$progressWrap.addClass("paused");}});$sliderData.ev.on("sliderReady beforeTransition",function(){var newPos=-$sliderData.currSlide*40;if(newPos==0){newPos=20;} $psThumb.removeClass("psNavSelected psNavPrev psNavNext psNavVis");$psThumb.eq($sliderData.currSlide).addClass("psNavSelected");$psThumb.eq($sliderData.currSlide).prev().addClass("psNavPrev");$psThumb.eq($sliderData.currSlide).next().addClass("psNavNext");$psThumb.eq($sliderData.currSlide).prev().prev().addClass("psNavVis");$psThumb.eq($sliderData.currSlide).next().next().addClass("psNavVis");$(".psThumbsContainer").css({transform:'translateY('+newPos+'px)'});}) $sliderData.ev.on("sliderReady beforeTransition",function(){$progressWrap.addClass("blurred");});$sliderData.ev.on("sliderReady afterTransition",function(){$progressWrap.removeClass("blurred");});var dtResizeTimeout;$window.on("resize",function(){clearTimeout(dtResizeTimeout);dtResizeTimeout=setTimeout(function(){$progressWrap.removeClass("blurred");},200);});$('
').insertAfter($el);$(".leftArrow",$slider).click(function(){if(!$sliderData.noSlide)$sliderData.slidePrev();});$(".rightArrow",$slider).click(function(){if(!$sliderData.noSlide)$sliderData.slideNext();});$sliderData.ev.on("updateNav sliderReady",function(){if($sliderData.lockRight){$(".rightArrow",$slider).addClass("disabled");}else{$(".rightArrow",$slider).removeClass("disabled");};if($sliderData.lockLeft){$(".leftArrow",$slider).addClass("disabled");}else{$(".leftArrow",$slider).removeClass("disabled");};if($sliderData.lockRight&&$sliderData.lockLeft){$this_par.addClass("hide-arrows");};});if('true'===$this_par.attr("data-paused")){$progressWrap.addClass("paused");};$progressWrap.on("click",function(e){e.preventDefault();var $this=$(this);if($this.hasClass("paused")){$this.removeClass("paused");if($progressWrap.find(".progress-mask").length<1){$progressWrap.prepend($progressHtml);} if(!$sliderData.noSlide)$sliderData.play();$sliderData.st.autoPlay.enabled=true;}else{$this.addClass("paused");if(!$sliderData.noSlide)$sliderData.pause();$sliderData.st.autoPlay.enabled=false;$progressWrap.find(".progress-mask").remove();}});};$(".rsHomePorthole").each(function(){$(this).portholeScroller();});};});(function($){ /*! * * jQuery collagePlus Plugin v0.3.2 * https://github.com/ed-lea/jquery-collagePlus * * Copyright 2012, Ed Lea twitter.com/ed_lea * * built for http://qiip.me * * Dual licensed under the MIT or GPL Version 2 licenses. * http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/GPL-2.0 * * * Heavily modified by Dream-Theme.com */ $.fn.collagePlus=function(options){var defaults={'targetHeight':400,'albumWidth':this.width(),'padding':parseFloat(this.css('padding-left')),'images':this.children(),'fadeSpeed':"fast",'display':"inline-block",'effect':'default','direction':'vertical','allowPartialLastRow':false};var settings=$.extend({},defaults,options);return this.each(function(){var row=0,elements=[],rownum=1;settings.images.each(function(index){var $this=$(this),$img=($this.is("img"))?$this:$(this).find("img").not(".blur-effect").first();if($img.attr("width")!='undefined'&&$img.attr("height")!='undefined'){var w=(typeof $img.data("width")!='undefined')?$img.data("width"):$img.attr("width"),h=(typeof $img.data("height")!='undefined')?$img.data("height"):$img.attr("height");} else{var w=(typeof $img.data("width")!='undefined')?$img.data("width"):$img.width(),h=(typeof $img.data("height")!='undefined')?$img.data("height"):$img.height();} var imgParams=getImgProperty($img);$img.data("width",w);$img.data("height",h);var nw=Math.ceil(w/h*settings.targetHeight),nh=Math.ceil(settings.targetHeight);elements.push([this,nw,nh,imgParams['w'],imgParams['h']]);row+=nw+imgParams['w']+settings.padding;if(row>settings.albumWidth&&elements.length!=0){resizeRow(elements,row,settings,rownum);delete row;delete elements;row=0;elements=[];rownum+=1;} if(settings.images.length-1==index&&elements.length!=0){resizeRow(elements,row,settings,rownum);delete row;delete elements;row=0;elements=[];rownum+=1;}});$(this).trigger("jgDone");});function resizeRow(obj,row,settings,rownum){var imageExtras=(settings.padding*obj.length)+(obj.length*obj[0][3]),albumWidthAdjusted=settings.albumWidth-imageExtras,overPercent=albumWidthAdjusted/(row-imageExtras),trackWidth=imageExtras,lastRow=(row"+' .content #jg-container-'+jgCounter+' .wf-cell'+'{padding:'+$jgItemsPadding+';}'+' .content #jg-container-'+jgCounter+'.wf-container'+'{'+'margin:'+'-'+$jgItemsPadding+';}'+' .content .full-width-wrap #jg-container-'+jgCounter+'.wf-container'+'{'+'margin-left:'+$jgItemsPadding+'; '+'margin-right:'+$jgItemsPadding+'; '+'margin-top:'+'-'+$jgItemsPadding+'; '+'margin-bottom:'+'-'+$jgItemsPadding+';}'+"").insertAfter($jgContainer);$jgContainer.on("jgDone",function(){var layzrJGrid=new Layzr({selector:'.jgrid-lazy-load',attr:'data-src',attrSrcSet:'data-srcset',retinaAttr:'data-src-retina',threshold:0,before:function(){this.setAttribute("sizes",this.width+"px");},callback:function(){this.classList.add("jgrid-layzr-loaded");var $this=$(this);$this.one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend',function(e){setTimeout(function(){$this.parent().removeClass("layzr-bg");},200)});}});});});$.fn.collage=function(args){return this.each(function(){var $this=$(this);var $jgContainer=$(this),$jgItemsPadding=$jgContainer.attr("data-padding"),$jgItems=$jgContainer.find(".wf-cell");var jgPadding=parseFloat($jgItems.first().css('padding-left'))+parseFloat($jgItems.first().css('padding-right')),jgTargetHeight=parseInt($jgContainer.attr("data-target-height")),jdPartRow=true;if($jgContainer.attr("data-part-row")=="false"){jdPartRow=false;};if($jgContainer.parent(".full-width-wrap").length){var jgAlbumWidth=$jgContainer.parents(".full-width-wrap").width()-parseInt($jgItemsPadding)*2;}else{var jgAlbumWidth=$jgContainer.parent().width()+parseInt($jgItemsPadding)*2;} var $jgCont={'albumWidth':jgAlbumWidth,'targetHeight':jgTargetHeight,'padding':jgPadding,'allowPartialLastRow':jdPartRow,'fadeSpeed':2000,'effect':'effect-1','direction':'vertical'};$.extend($jgCont,args);dtGlobals.jGrid=$jgCont;$jgContainer.collagePlus($jgCont);$jgContainer.css({'width':jgAlbumWidth});});};$(window).on("debouncedresize",function(){$(".jg-container").not('.jgrid-shortcode').collage();$(".jgrid-shortcode").each(function(){var $this=$(this);var $visibleItems=$this.data('visibleItems');if($visibleItems){$this.collage({'images':$visibleItems});}else{$this.collage();}});}).trigger("debouncedresize");})(jQuery); ;!function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document); ;function vc_js(){vc_toggleBehaviour(),vc_tabsBehaviour(),vc_accordionBehaviour(),vc_teaserGrid(),vc_carouselBehaviour(),vc_slidersBehaviour(),vc_prettyPhoto(),vc_googleplus(),vc_pinterest(),vc_progress_bar(),vc_plugin_flexslider(),vc_google_fonts(),vc_gridBehaviour(),vc_rowBehaviour(),vc_googleMapsPointer(),vc_ttaActivation(),jQuery(document).trigger("vc_js"),window.setTimeout(vc_waypoints,500)}function getSizeName(){var screen_w=jQuery(window).width();return screen_w>1170?"desktop_wide":screen_w>960&&1169>screen_w?"desktop":screen_w>768&&959>screen_w?"tablet":screen_w>300&&767>screen_w?"mobile":300>screen_w?"mobile_portrait":""}function loadScript(url,$obj,callback){var script=document.createElement("script");script.type="text/javascript",script.readyState&&(script.onreadystatechange=function(){("loaded"===script.readyState||"complete"===script.readyState)&&(script.onreadystatechange=null,callback())}),script.src=url,$obj.get(0).appendChild(script)}function vc_ttaActivation(){jQuery("[data-vc-accordion]").on("show.vc.accordion",function(e){var $=window.jQuery,ui={};ui.newPanel=$(this).data("vc.accordion").getTarget(),window.wpb_prepare_tab_content(e,ui)})}function vc_accordionActivate(event,ui){if(ui.newPanel.length&&ui.newHeader.length){var $pie_charts=ui.newPanel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=ui.newPanel.find(".vc_round-chart"),$line_charts=ui.newPanel.find(".vc_line-chart"),$carousel=ui.newPanel.find('[data-ride="vc_carousel"]');"undefined"!=typeof jQuery.fn.isotope&&ui.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),vc_carouselBehaviour(ui.newPanel),vc_plugin_flexslider(ui.newPanel),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),ui.newPanel.parents(".isotope").length&&ui.newPanel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}}function initVideoBackgrounds(){return window.console&&window.console.warn&&window.console.warn("this function is deprecated use vc_initVideoBackgrounds"),vc_initVideoBackgrounds()}function vc_initVideoBackgrounds(){jQuery(".vc_row").each(function(){var youtubeUrl,youtubeId,$row=jQuery(this);$row.data("vcVideoBg")?(youtubeUrl=$row.data("vcVideoBg"),youtubeId=vcExtractYoutubeId(youtubeUrl),youtubeId&&($row.find(".vc_video-bg").remove(),insertYoutubeVideoAsBackground($row,youtubeId)),jQuery(window).on("grid:items:added",function(event,$grid){$row.has($grid).length&&vcResizeVideoBackground($row)})):$row.find(".vc_video-bg").remove()})}function insertYoutubeVideoAsBackground($element,youtubeId,counter){if("undefined"==typeof YT.Player)return counter="undefined"==typeof counter?0:counter,counter>100?void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){insertYoutubeVideoAsBackground($element,youtubeId,counter++)},100);var $container=$element.prepend('
').find(".inner");new YT.Player($container[0],{width:"100%",height:"100%",videoId:youtubeId,playerVars:{playlist:youtubeId,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,wmode:"transparent"},events:{onReady:function(event){event.target.mute().setLoop(!0)}}}),vcResizeVideoBackground($element),jQuery(window).bind("resize",function(){vcResizeVideoBackground($element)})}function vcResizeVideoBackground($element){var iframeW,iframeH,marginLeft,marginTop,containerW=$element.innerWidth(),containerH=$element.innerHeight(),ratio1=16,ratio2=9;ratio1/ratio2>containerW/containerH?(iframeW=containerH*(ratio1/ratio2),iframeH=containerH,marginLeft=-Math.round((iframeW-containerW)/2)+"px",marginTop=-Math.round((iframeH-containerH)/2)+"px",iframeW+="px",iframeH+="px"):(iframeW=containerW,iframeH=containerW*(ratio2/ratio1),marginTop=-Math.round((iframeH-containerH)/2)+"px",marginLeft=-Math.round((iframeW-containerW)/2)+"px",iframeW+="px",iframeH+="px"),$element.find(".vc_video-bg iframe").css({maxWidth:"1000%",marginLeft:marginLeft,marginTop:marginTop,width:iframeW,height:iframeH})}function vcExtractYoutubeId(url){if("undefined"==typeof url)return!1;var id=url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/);return null!==id?id[1]:!1}function vc_googleMapsPointer(){var $=window.jQuery,$wpbGmapsWidget=$(".wpb_gmaps_widget");$wpbGmapsWidget.click(function(){$("iframe",this).css("pointer-events","auto")}),$wpbGmapsWidget.mouseleave(function(){$("iframe",this).css("pointer-events","none")}),$(".wpb_gmaps_widget iframe").css("pointer-events","none")}document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",function(){for(var prefix=["-webkit-","-moz-","-ms-","-o-",""],i=0;iparseInt(ver[1]);$call.each(function(index){var $tabs,interval=jQuery(this).attr("data-interval"),tabs_array=[];if($tabs=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({show:function(event,ui){wpb_prepare_tab_content(event,ui)},beforeActivate:function(event,ui){1!==ui.newPanel.index()&&ui.newPanel.find(".vc_pie_chart:not(.vc_ready)")},activate:function(event,ui){wpb_prepare_tab_content(event,ui)}}),interval&&interval>0)try{$tabs.tabs("rotate",1e3*interval)}catch(e){window.console&&window.console.log&&console.log(e)}jQuery(this).find(".wpb_tab").each(function(){tabs_array.push(this.id)}),jQuery(this).find(".wpb_tabs_nav li").click(function(e){return e.preventDefault(),old_version?$tabs.tabs("select",jQuery("a",this).attr("href")):$tabs.tabs("option","active",jQuery(this).index()),!1}),jQuery(this).find(".wpb_prev_slide a, .wpb_next_slide a").click(function(e){if(e.preventDefault(),old_version){var index=$tabs.tabs("option","selected");jQuery(this).parent().hasClass("wpb_next_slide")?index++:index--,0>index?index=$tabs.tabs("length")-1:index>=$tabs.tabs("length")&&(index=0),$tabs.tabs("select",index)}else{var index=$tabs.tabs("option","active"),length=$tabs.find(".wpb_tab").length;index=jQuery(this).parent().hasClass("wpb_next_slide")?index+1>=length?0:index+1:0>index-1?length-1:index-1,$tabs.tabs("option","active",index)}})})}}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(index){var $tabs,$this=jQuery(this),active_tab=($this.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0 div > h3",autoHeight:!1,heightStyle:"content",active:active_tab,collapsible:collapsible,navigation:!0,activate:vc_accordionActivate,change:function(event,ui){"undefined"!=typeof jQuery.fn.isotope&&ui.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(ui.newPanel)}}),!0===$this.data("vcDisableKeydown")&&($tabs.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var layout_modes={fitrows:"fitRows",masonry:"masonry"};jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var $container=jQuery(this),$thumbs=$container.find(".wpb_thumbnails"),layout_mode=$thumbs.attr("data-layout-mode");$thumbs.isotope({itemSelector:".isotope-item",layoutMode:"undefined"==typeof layout_modes[layout_mode]?"fitRows":layout_modes[layout_mode]}),$container.find(".categories_filter a").data("isotope",$thumbs).click(function(e){e.preventDefault();var $thumbs=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),$thumbs.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).bind("load resize",function(){$thumbs.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function($parent){var $carousel=$parent?$parent.find(".wpb_carousel"):jQuery(".wpb_carousel");$carousel.each(function(){var $this=jQuery(this);if(!0!==$this.data("carousel_enabled")&&$this.is(":visible")){$this.data("carousel_enabled",!0);var carousel_speed=(getColumnsCount(jQuery(this)),500);jQuery(this).hasClass("columns_count_1")&&(carousel_speed=900);var carousele_li=jQuery(this).find(".wpb_thumbnails-fluid li");carousele_li.css({"margin-right":carousele_li.css("margin-left"),"margin-left":0});var fluid_ul=jQuery(this).find("ul.wpb_thumbnails-fluid");fluid_ul.width(fluid_ul.width()+300),jQuery(window).resize(function(){var before_resize=screen_size;screen_size=getSizeName(),before_resize!=screen_size&&window.setTimeout("location.reload()",20)})}})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(index){var $imagesGrid,this_element=jQuery(this);if(this_element.hasClass("wpb_slider_nivo")){var sliderSpeed=800,sliderTimeout=1e3*this_element.attr("data-interval");0===sliderTimeout&&(sliderTimeout=9999999999),this_element.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:sliderSpeed,pauseTime:sliderTimeout,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"})}else this_element.hasClass("wpb_image_grid")&&(jQuery.fn.imagesLoaded?$imagesGrid=this_element.find(".wpb_image_grid_ul").imagesLoaded(function(){$imagesGrid.isotope({itemSelector:".isotope-item",layoutMode:"fitRows"})}):this_element.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows"}))})}),"function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:"normal",hook:"data-rel",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){var url=location.href,hashtag=url.indexOf("#!prettyPhoto")?!0:!1;hashtag&&(location.hash="")},social_tools:""})}catch(err){window.console&&window.console.log&&console.log(err)}}),"function"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){return!1}),window.vcParallaxSkroll=!1,"function"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){function fullWidthRow(){var $elements=$('[data-vc-full-width="true"]');$.each($elements,function(key,item){var $el=$(this);$el.addClass("vc_hidden");var $el_full=$el.next(".vc_row-full-width");if($el_full.length||($el_full=$el.parent().next(".vc_row-full-width")),$el_full.length){var el_margin_left=parseInt($el.css("margin-left"),10),el_margin_right=parseInt($el.css("margin-right"),10),offset=0-$el_full.offset().left-el_margin_left,width=$(window).width();if($el.css({position:"relative",left:offset,"box-sizing":"border-box",width:$(window).width()}),!$el.data("vcStretchContent")){var padding=-1*offset;0>padding&&(padding=0);var paddingRight=width-padding-$el_full.width()+el_margin_left+el_margin_right;0>paddingRight&&(paddingRight=0),$el.css({"padding-left":padding+"px","padding-right":paddingRight+"px"})}$el.attr("data-vc-full-width-init","true"),$el.removeClass("vc_hidden")}}),$(document).trigger("vc-full-width-row",$elements)}function parallaxRow(){var vcSkrollrOptions,callSkrollInit=!1;return window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),$(".vc_parallax-inner").remove(),$("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),$("[data-vc-parallax]").each(function(){var skrollrSpeed,skrollrSize,skrollrStart,skrollrEnd,$parallaxElement,parallaxImage,youtubeId;callSkrollInit=!0,"on"===$(this).data("vcParallaxOFade")&&$(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),skrollrSize=100*$(this).data("vcParallax"),$parallaxElement=$("
").addClass("vc_parallax-inner").appendTo($(this)),$parallaxElement.height(skrollrSize+"%"),parallaxImage=$(this).data("vcParallaxImage"),youtubeId=vcExtractYoutubeId(parallaxImage),youtubeId?insertYoutubeVideoAsBackground($parallaxElement,youtubeId):"undefined"!=typeof parallaxImage&&$parallaxElement.css("background-image","url("+parallaxImage+")"),skrollrSpeed=skrollrSize-100,skrollrStart=-skrollrSpeed,skrollrEnd=0,$parallaxElement.attr("data-bottom-top","top: "+skrollrStart+"%;").attr("data-top-bottom","top: "+skrollrEnd+"%;")}),callSkrollInit&&window.skrollr?(vcSkrollrOptions={forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}},window.vcParallaxSkroll=skrollr.init(vcSkrollrOptions),window.vcParallaxSkroll):!1}function fullHeightRow(){var $element=$(".vc_row-o-full-height:first");if($element.length){var $window,windowHeight,offsetTop,fullHeight;$window=$(window),windowHeight=$window.height(),offsetTop=$element.offset().top,windowHeight>offsetTop&&(fullHeight=100-offsetTop/(windowHeight/100),$element.css("min-height",fullHeight+"vh"))}$(document).trigger("vc-full-height-row",$element)}function fixIeFlexbox(){var ua=window.navigator.userAgent,msie=ua.indexOf("MSIE ");(msie>0||navigator.userAgent.match(/Trident.*rv\:11\./))&&$(".vc_row-o-full-height").each(function(){"flex"===$(this).css("display")&&$(this).wrap('
')})}var $=window.jQuery;$(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour",fullWidthRow).on("resize.vcRowBehaviour",fullHeightRow),fullWidthRow(),fullHeightRow(),fixIeFlexbox(),vc_initVideoBackgrounds(),parallaxRow()}),"function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()}),"function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(el){for(var find=!1,i=1;!1===find;){if(el.hasClass("columns_count_"+i))return find=!0,i;i++}});var screen_size=getSizeName();"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(event,ui){var $ui_panel,$google_maps,panel=ui.panel||ui.newPanel,$pie_charts=panel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=panel.find(".vc_round-chart"),$line_charts=panel.find(".vc_line-chart"),$carousel=panel.find('[data-ride="vc_carousel"]');if(vc_carouselBehaviour(),vc_plugin_flexslider(panel),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),panel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&panel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),$ui_panel=panel.find(".isotope, .wpb_image_grid_ul"),$google_maps=panel.find(".wpb_gmaps_widget"),0<$ui_panel.length&&$ui_panel.isotope("layout"),$google_maps.length&&!$google_maps.is(".map_ready")){var $frame=$google_maps.find("iframe");$frame.attr("src",$frame.attr("src")),$google_maps.addClass("map_ready")}panel.parents(".isotope").length&&panel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}),"function"!=typeof window.vc_googleMapsPointer,jQuery(document).ready(function($){window.vc_js()});