!function(i){"use strict";var t={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return t.Android()||t.BlackBerry()||t.iOS()||t.Opera()||t.Windows()}};i(function(){var a;i(".roll-counter").on("on-appear",function(){i(this).find(".numb-count").each(function(){var t=parseInt(i(this).attr("data-to"));i(this).countTo({to:t})})}),i(".progress-bar").on("on-appear",function(){i(this).each(function(){var t=i(this).data("percent");i(this).find(".progress-animate").animate({width:t+"%"},3e3),i(this).parent(".roll-progress").find(".perc").addClass("show").animate({width:t+"%"},3e3)})}),i('[data-waypoint-active="yes"]').waypoint(function(){i(this).trigger("on-appear")},{offset:"90%",triggerOnce:!0}),i(window).on("load",function(){setTimeout(function(){i.waypoints("refresh")},100)}),function(){function t(){if(i(".sydney-video.vid-lightbox .video-overlay").hasClass("popup-show")){var t=i(".sydney-video.vid-lightbox .video-overlay.popup-show");if(t.find("iframe").hasClass("yt-video"))var a=t.find("iframe").attr("src").replace("&autoplay=1","");else a=t.find("iframe").attr("src").replace("?autoplay=1","");t.find("iframe").attr("src",a),t.removeClass("popup-show")}}i(".toggle-popup").on("click",function(t){t.preventDefault(),i(this).siblings().addClass("popup-show");var a=i(this).siblings().find("iframe").attr("src");-1!==a.indexOf("youtube.com")?(i(this).siblings().find("iframe")[0].src+="&autoplay=1",i(this).siblings().find("iframe").addClass("yt-video")):-1!==a.indexOf("vimeo.com")&&(i(this).siblings().find("iframe")[0].src+="?autoplay=1",i(this).siblings().find("iframe").addClass("vimeo-video"))}),i(document).keyup(function(i){27==i.keyCode&&t()}),i(".sydney-video.vid-lightbox .video-overlay").on("click",function(){t()}),i(".sydney-video.vid-lightbox").parents(".panel-row-style").css({"z-index":"12",overflow:"visible"})}(),i(".orches-animation").each(function(){var t=i(this),a=t.data("animation"),o=t.data("animation-delay"),e=t.data("animation-offset");t.css({"-webkit-animation-delay":o,"-moz-animation-delay":o,"animation-delay":o}),t.waypoint(function(){t.addClass("animated").addClass(a)},{triggerOnce:!0,offset:e})}),i(".panel-row-style").each(function(){if(i(this).data("hascolor")&&i(this).find("h1,h2,h3,h4,h5,h6,a,.fa, div, span").css("color","inherit"),i(this).data("hasbg")&&i(this).data("overlay")){i(this).append('
');var t=i(this).data("overlay-color");i(this).find(".overlay").css("background-color",t)}}),i(".panel-grid .panel-widget-style").each(function(){var t=i(this).data("title-color"),a=i(this).data("headings-color");t&&i(this).find(".widget-title").css("color",t),a&&i(this).find("h1:not(.ignore),h2:not(.ignore),h3:not(.widget-title):not(.ignore),h4:not(.ignore),h5:not(.ignore),h6:not(.ignore),h3:not(.ignore) a").css("color",a)}),a=i(".project-wrap").data("portfolio-effect"),i(".project-item").children(".item-wrap").addClass("orches-animation"),i(".project-wrap").waypoint(function(t){i(".project-item").children(".item-wrap").each(function(t,o){setTimeout(function(){i(o).addClass("animated "+a)},150*t)})},{offset:"75%"}),i().owlCarouselFork&&i(".roll-team:not(.roll-team.no-carousel)").owlCarouselFork({navigation:!1,pagination:!0,responsive:!0,items:3,itemsDesktopSmall:[1400,3],itemsTablet:[970,2],itemsTabletSmall:[600,1],itemsMobile:[360,1],touchDrag:!0,mouseDrag:!0,autoHeight:!1,autoPlay:!1}),i(".widget_fp_social a").attr("target","_blank"),i().owlCarouselFork&&i(".roll-testimonials").owlCarouselFork({navigation:!1,pagination:!0,responsive:!0,items:1,itemsDesktop:[3e3,1],itemsDesktopSmall:[1400,1],itemsTablet:[970,1],itemsTabletSmall:[600,1],itemsMobile:[360,1],touchDrag:!0,mouseDrag:!0,autoHeight:!0,autoPlay:i(".roll-testimonials").data("autoplay")}),i(".project-wrap").length&&i(".project-wrap").each(function(){var t=i(this),a=t.find(".project-filter").find("a"),o=function(i){i.isotope({filter:"*",itemSelector:".project-item",percentPosition:!0,animationOptions:{duration:750,easing:"liniar",queue:!1}})};t.children().find(".isotope-container").imagesLoaded(function(){o(t.children().find(".isotope-container"))}),i(window).load(function(){o(t.children().find(".isotope-container"))}),a.click(function(){var o=i(this).attr("data-filter");return a.removeClass("active"),i(this).addClass("active"),t.find(".isotope-container").isotope({filter:o,animationOptions:{duration:750,easing:"liniar",queue:!1}}),!1})}),null==t.any()&&i(".panel-row-style").parallax("50%",.3)})}(jQuery);