jQuery(document).ready(function(){if(jQuery("body.page-template-full-page").length){var a=jQuery("body.page-template-full-page .entry-content").children().attr("id");jQuery("#"+a).fullpage({sectionSelector:".fullpage-inner-wrapper",navigation:!0,hybrid:!0,scrollBar:!0,fitToSection:!1,afterLoad:function(a,b){b===jQuery(".fullpage-wrapper .fullpage-inner-wrapper").length?jQuery(".footer-full-page").addClass("footer-full-page--show"):jQuery(".footer-full-page").removeClass("footer-full-page--show")}})}if(jQuery(".main-navigation .menu-toggle").on("click",function(){jQuery(".main-navigation .menu").slideToggle("slow"),jQuery(this).find(".fa").toggleClass("fa-close fa-bars")}),jQuery(".main-navigation .menu-item-has-children").append(' '),jQuery(window).width()<=980&&jQuery(".main-navigation .sub-toggle").on("click",function(){var a=jQuery(this).children(".fa"),b=jQuery(this).parent("li"),c=b.siblings(".menu-item-has-children"),d=c.find(".fa");a.toggleClass("animate-icon"),d.hasClass("animate-icon")&&d.removeClass("animate-icon"),c.not(b).removeClass("mobile-menu--slided").children("ul").slideUp("1000"),b.toggleClass("mobile-menu--slided").children("ul").slideToggle("1000")}),jQuery(".search-wrap .search-icon").on("click",function(){jQuery(".search-wrap .search-box").toggleClass("active")}),"undefined"!=typeof jQuery.fn.counterUp&&jQuery(".counter").counterUp({delay:10,time:1e3}),"function"==typeof WOW&&(new WOW).init(),jQuery("#scroll-up").hide(),jQuery(function(){jQuery(window).scroll(function(){jQuery(this).scrollTop()>1e3?jQuery("#scroll-up").fadeIn():jQuery("#scroll-up").fadeOut()}),jQuery("a#scroll-up").click(function(){return jQuery("body,html").animate({scrollTop:0},800),!1})}),jQuery("a#footer-scroll-up").click(function(){return jQuery("body,html").animate({scrollTop:0},800),!1}),jQuery(window).load(function(){var a=jQuery("#masthead-sticky-wrapper").height()-1;jQuery("#site-navigation").onePageNav({currentClass:"current-flash-item",changeHash:!1,scrollSpeed:1500,scrollOffset:a,scrollThreshold:.5,filter:"",easing:"swing"})}),"undefined"!=typeof jQuery.fn.sticky&&!jQuery(".disable-mobile-sticky .menu-toggle").is(":visible")){var b=jQuery("#wpadminbar"),c=0;b.length&&(c=b.height()),jQuery("body").hasClass("header-top-bar-non-sticky")?jQuery(".header-sticky .header-bottom").sticky({topSpacing:c}):jQuery(".header-sticky .site-header").sticky({topSpacing:c})}jQuery(window).resize(function(){var a=jQuery(window).width(),b=jQuery("#site-navigation .menu-item-has-children, #site-navigation .page_item_has_children");a>980?b.hover(function(){jQuery(this).children("ul.sub-menu, ul.children").visible("","","horizontal")||jQuery(this).children("ul.sub-menu, ul.children").addClass("sub-menu--left")},function(){jQuery(this).children("ul.sub-menu, ul.children").removeClass("sub-menu--left")}):jQuery("ul.sub-menu, ul.children").removeClass("sub-menu--left")}).resize(),jQuery("#preloader-background").length>0&&setTimeout(function(){jQuery("#preloader-background").hide()},600);var d=jQuery(".site-header"),e=d.height(),f=jQuery(window).height(),g=jQuery(".tg-slider-widget.full-screen .swiper-container");if(jQuery("body").hasClass("transparent")?g.css({height:f}):g.css({height:f-e}),"undefined"!=typeof jQuery.ui&&jQuery(".tg-tabs").each(function(){jQuery("base").remove(),jQuery(this).tabs({activate:function(a,b){jQuery(this).tabs("option","active")}})}),"undefined"!=typeof jQuery.ui&&jQuery(".tg-wc-product-tab-container").each(function(){jQuery("base").remove(),jQuery(this).tabs({activate:function(a,b){jQuery(this).tabs("option","active")}})}),jQuery("#main a#scrolldown").length>0&&jQuery("#main a#scrolldown").click(function(a){a.preventDefault();var b=jQuery(this).closest("div.panel-grid"),c=b.next().attr("id"),d=jQuery("#"+c).offset().top-jQuery("#masthead").outerHeight();return jQuery("body,html").animate({scrollTop:d},800),!1}),jQuery("#top-sidebar a#scrolldown").length>0&&jQuery("#top-sidebar a#scrolldown").click(function(a){a.preventDefault();var b=jQuery("#content").offset().top;return jQuery("body,html").animate({scrollTop:b},800),!1}),jQuery(".ft-smooth-scroll").click(function(a){a.preventDefault();var b=jQuery(this).attr("href"),c=jQuery(b).offset().top-jQuery("#masthead").outerHeight();return jQuery("body,html").animate({scrollTop:c},800),!1}),jQuery(".wishlist-wrap").length>0){var h=function(){jQuery.ajax({data:{action:"update_wishlist_count"},success:function(a){jQuery(".wishlist-wrap .wishlist-count").html(a)},url:yith_wcwl_l10n.ajax_url})};jQuery("body").on("added_to_wishlist removed_from_wishlist",h)}if(jQuery(".background-video").each(function(){var a=jQuery(this).data("video-id");jQuery(this).YTPlayer({fitToBackground:!0,videoId:a,playerVars:{rel:0,origin:window.location.href}})}),jQuery(".background-video").each(function(){var a=jQuery(this),b=a.prev(".panel-grid").children().first();b.append(a)}),jQuery(".panel-row-style").each(function(){if(jQuery(this).data("overlay-color")){jQuery(this).find(".panel-grid-cell").css("position","relative"),jQuery(this).prepend('
');var a=jQuery(this).data("overlay-color");jQuery(this).find(".overlay-row").css("background-color",a);var b=jQuery(this).data("overlay-opactity");jQuery(this).find(".overlay-row").css("opacity","0."+b)}}),jQuery(".flash-row-separator").each(function(){function a(a,d){var e="";e="top"==d?b:"bottom"==d?c:"#ffffff";var f=' ',g=' ',h='',i=' ',j=' ',k=' ';switch(a){case"svg1":return f;case"svg2":return g;case"svg3":return h;case"svg4":return i;case"svg5":return j;case"svg6":return k}}var b=jQuery(this).data("svg-top-color"),c=jQuery(this).data("svg-bottom-color"),d="",e="";if(jQuery(this).hasClass("flash-top-row-separator")&&(jQuery(this).hasClass("top-svg-1")?d=a("svg1","top"):jQuery(this).hasClass("top-svg-2")?d=a("svg2","top"):jQuery(this).hasClass("top-svg-3")?d=a("svg3","top"):jQuery(this).hasClass("top-svg-4")?d=a("svg4","top"):jQuery(this).hasClass("top-svg-5")?d=a("svg5","top"):jQuery(this).hasClass("top-svg-5")?d=a("svg5","top"):jQuery(this).hasClass("top-svg-6")&&(d=a("svg6","top"))),jQuery(this).hasClass("flash-bottom-row-separator")&&(jQuery(this).hasClass("bottom-svg-1")?e=a("svg1","bottom"):jQuery(this).hasClass("bottom-svg-2")?e=a("svg2","bottom"):jQuery(this).hasClass("bottom-svg-3")?e=a("svg3","bottom"):jQuery(this).hasClass("bottom-svg-4")?e=a("svg4","bottom"):jQuery(this).hasClass("bottom-svg-5")?e=a("svg5","bottom"):jQuery(this).hasClass("bottom-svg-5")?e=a("svg5","bottom"):jQuery(this).hasClass("bottom-svg-6")&&(e=a("svg6","bottom"))),""!=d){var f='
'+d+"
";jQuery(this).prepend(f)}if(""!=e){var g='
'+e+"
";jQuery(this).append(g)}}),jQuery(".progress-bar-container").each(function(){jQuery(this).waypoint(function(){var a=jQuery(".progress-bar-rating");a.each(function(a){jQuery(this).animate({width:jQuery(this).data("valuenow")+"%"},1200)})},{offset:"50%"})}),"undefined"!=typeof jQuery.fn.countdown&&jQuery(".tg-countdown-container .countdown").length>0&&jQuery(".tg-countdown-container .countdown").each(function(){var a=jQuery(this).attr("data-datetime-format"),b=jQuery(this).attr("data-liftoffTime");jQuery(this).countdown({until:new Date(b.replace(/-/g,"/")),format:a})}),"undefined"!=typeof jQuery.fn.swipebox&&jQuery(".swipebox-video").length>0&&jQuery(".swipebox-video").swipebox({autoplayVideos:!0}),"undefined"!=typeof jQuery.fn.theiaStickySidebar&&"undefined"!=typeof ResizeSensor){var i=jQuery(".site-header").outerHeight();null===i&&(i=0),jQuery("#primary, #secondary").theiaStickySidebar({additionalMarginTop:40+i})}"undefined"!=typeof jQuery.fn.niceScroll&&jQuery("html").niceScroll({touchbehavior:!1,grabcursorenabled:!1,preservenativescrolling:!0,cursorwidth:"10px",cursorborderradius:"0",autohidemode:!1,zindex:99,background:"#f1f1f1",cursoropacitymax:1,cursorcolor:"#c1c1c1",scrollspeed:100,mousescrollstep:50})}),jQuery(window).load(function(){function a(a,b){var c,d,e,f,g,h,i,j,k,l,m;c=b.data("lat"),d=b.data("long"),e=b.data("tooltip"),f=b.data("zoom"),g=b.data("map_type"),h={lat:parseFloat(c),lng:parseFloat(d)},m={zoom:parseInt(f,10),center:h,mapTypeId:g},i=new google.maps.Map(a,m),j=e,k=new google.maps.InfoWindow({content:j}),l=new google.maps.Marker({position:h,map:i}),l.addListener("click",function(){k.open(i,l)})}if("function"==typeof Swiper&&(jQuery(".tg-slider-widget-container").each(function(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p="";m=jQuery(".swiper-slide[data-imageLink]"),m.on("click",function(a){a.target.closest(".btn-wrapper")||(window.location.href=jQuery(this).attr("data-imageLink"))}),c=jQuery(this).find(".swiper-container"),d=jQuery(this).find(".swiper-button-next"),e=jQuery(this).find(".swiper-button-prev"),f=jQuery(this).hasClass("loop"),jQuery(this).find(".tg-slider-pager").length>0&&(g=jQuery(this).find(".tg-slider-pager").attr("class").match(/\bpg-\S+/gi),p=g[0].substring(3)),h=c.attr("data-effect"),i=c.attr("data-speed"),j=parseInt(c.attr("data-pause_on_hover"),10),n=parseInt(c.attr("data-transition-autoplay"),10),o=parseInt(c.attr("data-autoplay"),10),l={pagination:{el:".slider-pager",clickable:!0},slidesPerView:1,navigation:{nextEl:d,prevEl:e},speed:parseInt(i,10),effect:String(h),loop:f},"dbullets"===p?l.pagination.dynamicBullets=!0:"progressbar"===p||"fraction"===p?l.pagination.type=p:"custom"===p&&(l.pagination.renderBullet=function(a,b){return''+(a+1)+""}),1===o&&(l.autoplay={delay:n}),k=new Swiper(c,l),1===j&&1===o&&jQuery(this).on({mouseenter:function(){k.autoplay.stop()},mouseleave:function(){k.autoplay.start()}})}),jQuery(".testimonial-container.swiper-container").each(function(a,b){var c,d,e,f,g,h,i=jQuery(this);d=i.attr("data-col"),e=i.attr("data-transition-autoplay"),f=parseInt(i.attr("data-autoplay"),10),g=i.attr("data-speed"),h=1===d?1:2,c={pagination:{el:".swiper-pagination",clickable:!0},direction:"horizontal",speed:parseInt(g,10),slidesPerView:parseInt(d,10),spaceBetween:30,breakpoints:{1024:{slidesPerView:h,spaceBetween:20},768:{slidesPerView:1,spaceBetween:10},640:{slidesPerView:1,spaceBetween:10},320:{slidesPerView:1,spaceBetween:10}}},1===f&&(c.autoplay={delay:parseInt(e,10)});new Swiper(this,c)}),jQuery(".tg-client-widget .swiper-container").each(function(a,b){var c,d,e,f,g,h=jQuery(this);c=h.attr("data-transition-autoplay"),d=parseInt(h.attr("data-autoplay"),10),e=h.attr("data-speed"),f=h.attr("data-spv"),g={slidesPerView:parseInt(f,10),speed:parseInt(e,10),direction:"horizontal"},1===d&&(g.autoplay={delay:parseInt(c,10)});new Swiper(this,g)}),jQuery("#flash-instagram-slider.swiper-container").each(function(a,b){var c,d,e,f,g=jQuery(this);c=g.attr("data-transition-autoplay"),d=g.attr("data-speed"),e=parseInt(g.attr("data-autoplay"),10),f={slidesPerView:6,speed:parseInt(d,10),direction:"horizontal"},1===e&&(f.autoplay={delay:parseInt(c,10)});new Swiper(this,f)}),jQuery(".post-slider-container.swiper-container").each(function(a,b){var c,d,e,f,g,h=jQuery(this);c=h.attr("data-transition-autoplay"),d=h.attr("data-speed"),e=h.attr("data-col"),f=parseInt(h.attr("data-autoplay"),10),g={slidesPerView:e,speed:parseInt(d,10),direction:"horizontal",breakpoints:{1100:{slidesPerView:2},768:{slidesPerView:1}}},1===f&&(g.autoplay={delay:parseInt(c,10)});new Swiper(this,g)}),jQuery(".wc-cat-slider .swiper-container").each(function(a,b){var c,d,e,f,g=jQuery(this);c=g.attr("data-transition-autoplay"),d=g.attr("data-speed"),e=parseInt(g.attr("data-autoplay"),10),f={slidesPerView:4,speed:parseInt(d,10),direction:"horizontal",breakpoints:{1024:{slidesPerView:4,spaceBetween:30},768:{slidesPerView:3,spaceBetween:10},640:{slidesPerView:1,spaceBetween:10},320:{slidesPerView:1,spaceBetween:10}}},1===e&&(f.autoplay={delay:parseInt(c,10)});new Swiper(this,f)})),"undefined"!=typeof jQuery.ui){var b={header:"fa fa-plus",activeHeader:"fa fa-minus"};jQuery(".tg-accordion").each(function(){jQuery(this).accordion({icons:b,active:jQuery(this).data("open"),collapsible:!0,heightStyle:"content"})})}if("function"==typeof jQuery.fn.isotope){var c=jQuery(".grid").isotope({itemSelector:".element-item",layoutMode:"fitRows"}),d={numberGreaterThan50:function(){var a=jQuery(this).find(".number").text();return parseInt(a,10)>50},ium:function(){var a=jQuery(this).find(".name").text();return a.match(/ium$/)}};jQuery(".filters-button-group").on("click","button",function(){var a=jQuery(this).attr("data-filter");a=d[a]||a,c.isotope({filter:a})}),jQuery(".button-group").each(function(a,b){var c=jQuery(b);c.on("click","button",function(){c.find(".is-checked").removeClass("is-checked"),jQuery(this).addClass("is-checked")})})}jQuery(".google-map").each(function(b,c){var d,e;d=jQuery(c).find("#gmap-localize"),e=d.data("height"),jQuery(this).css("height",e),a(c,d)})});