File: D:/HostingSpaces/BOversteegen/tandartsvriends.nl/wwwroot/wp-content/themes/dentalia/js/functions.js
"use strict";jQuery(function($){$("body").hasClass("home","one-page")&&($('.site-header .nav-container a[href*="#"]:not([href="#"]):not([href*="="])').length>1&&$('.nav-container a[href*="#"]:not([href="#"]):not([href*="="])').parent().removeClass("current_page_item"));var el,isMobile=!1,screenMedium=992;function dentalia_create_passepartout(){$("body").attr("data-passepartoutcolor")&&($(window).width()>screenMedium?function(){if(!$("body").hasClass("passepartout-propagated")){$("body").addClass("passepartout-propagated");var passepartoutHeight=$("body").data("passepartoutheight"),passepartoutWidth=$("body").data("passepartoutwidth"),passepartoutHex=$("body").data("passepartoutcolor");$("body").css({"margin-left":passepartoutWidth,"margin-right":passepartoutWidth,"margin-bottom":passepartoutHeight}),$(".passepartout-top").length||($("body").prepend('<div class="passepartout passepartout-top visible-md visible-lg"></div>'),$("body").append('<div class="passepartout passepartout-bottom visible-md visible-lg"></div>'),$("body").append('<div class="passepartout passepartout-left visible-md visible-lg"></div>'),$("body").append('<div class="passepartout passepartout-right visible-md visible-lg"></div>'),$("body > .passepartout-top").css({"background-color":passepartoutHex,height:passepartoutHeight}),$("body > .passepartout-bottom").css({"background-color":passepartoutHex,height:passepartoutHeight}),$("body > .passepartout-left").css({"background-color":passepartoutHex,width:passepartoutWidth}),$("body > .passepartout-right").css({"background-color":passepartoutHex,width:passepartoutWidth}))}}():($("body").css({"margin-left":"0","margin-right":"0"}),$("body").removeClass("passepartout-propagated")))}function toggleMobileNav(){var button=$(".hamburger-box"),nav_menu=$("header:not(.stickymenu) .nav-container");if($("header .mobile-cart.open").length&&toggleMobileCart(),nav_menu.hasClass("open")){nav_menu.removeClass("open"),button.removeClass("open"),$("html, body").stop().animate({scrollTop:0},"400","swing",function(){})}else{$(".header-widgets").length&&$(".header-widgets").children().length>0&&!$(".site-header .mobile-widgets").length&&($(".main-nav-wrap").append('<div class="mobile-widgets hidden-md hidden-lg"></div>'),$(".header-widgets").clone().appendTo(".main-nav-wrap .mobile-widgets")),nav_menu.addClass("open"),button.addClass("open");var $scrollValue=$(".hamburger-box").offset();$("html, body").stop().animate({scrollTop:$scrollValue.top-12},"700","swing",function(){})}}function stay_on_screen(){$(".site-navigation .sub-menu .sub-menu").parent().hover(function(){if(!$(this).hasClass("orion-megamenu-subitem")){var menu=$(this).find("ul"),menupos=$(menu).offset(),siteWidth=$(window).width();if($("body").hasClass("boxed")&&(siteWidth=$(".boxed-container").width()+$(".boxed-container").offset().left),menupos.left+menu.width()>siteWidth){var newpos=-$(menu).width();menu.css({left:newpos})}}})}if((/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))&&(isMobile=!0),dentalia_create_passepartout(),"undefined"!=$("body").attr("data-passepartoutcolor")&&$(window).resize(function(){dentalia_create_passepartout()}),$.fn.toggleparent=function(){var element=$(this).parent("li");element.hasClass("open")?(element.find(".togglecontainer").stop().slideUp("100"),element.find("ul").stop().slideUp("300"),element.removeClass("open"),element.find("li").removeClass("open")):(element.stop(),element.parent("ul").stop().css("height","auto"),element.children("ul").stop().css("height","auto"),element.children(".togglecontainer").css("display","none"),element.children(".togglecontainer").removeClass("hidden"),element.children("ul, .togglecontainer").stop().slideDown("300"),$(window).trigger("resize"),element.addClass("open"))},$(".main-nav-wrap .menu-item-has-children").each(function(){$("li > a",this).prepend('<span class="coll_btn desktoponly"><i class="orionicon orionicon-arrow_right"></i></span>'),$("> a, li > span",this).after('<span class="coll_btn notdesktop"><i class="orionicon orionicon-arrow_carrot-down"></i></span>'),$("> a, li > span",this).addClass("needs_coll_btn")}),$(".orion-mega-menu span.coll_btn, .orion-megamenu .megamenu-sidebar .widget-area span.coll_btn").remove(),$(".orion-mega-menu .menu-item-has-children").each(function(){$("> a",this).removeClass("needs_coll_btn")}),$(".megamenu-sidebar .needs_coll_btn").removeClass("needs_coll_btn"),$(".orion-mega-menu .menu-item-has-children .sub-menu").each(function(){$(this).addClass("sub-mega-menu"),$(this).removeClass("sub-menu")}),$(".orion-mega-menu .menu-item-has-children").each(function(){$(this).addClass("menu-item-has-children-mega"),$(this).removeClass("menu-item-has-children")}),$(".nav-menu > .orion-megamenu").append('<span class="mega-indicator-wrap"></span>'),$(".coll_btn").click(function(){$(window).width()<screenMedium&&$(this).toggleparent()}),$(".hamburger-box").click(function(){toggleMobileNav()}),$(".widget_nav_menu .menu-item-has-children, .product-categories .cat-parent").each(function(){$("> a",this).after('<span class="coll_btn"><i class="orionicon orionicon-arrow_carrot-down"></i></span>')}),$(".widget_nav_menu .coll_btn").click(function(){$(this).toggleparent()}),$(".widget_product_categories .coll_btn").on("click",function(){$(this).toggleparent()}),$(window).width()>screenMedium-15&&stay_on_screen(),$(".top-bar.collapsable").length&&($(".top-bar.collapsable").find(".top-bar-wrap.right").after('<div class="top-bar-toggle"> <span class="orionicon-icon_plus orionicon"></span> </div>'),$(".top-bar-toggle").on("click",function(){$(this).parents(".top-bar").toggleClass("on-screen")})),$(".search-toggle .search-box, .site-search .search-toggle").on("click",function(){$("search-opened").length||($(window).scrollTop(0),$(".site-search-input").focus()),$(".search-box").toggleClass("open"),$("body").toggleClass("search-opened")}),$.fn.getSize=function(){var $wrap=$("<div />").appendTo($("body"));$wrap.css({position:"absolute !important",visibility:"hidden !important",display:"block !important","max-height":"none"});$(this).clone().appendTo($wrap);$(window).trigger("resize");var sizes={width:this.width(),height:this.height()};return $wrap.remove(),sizes},$.fn.toggleWidgetContainer=function(){var el=$(this),elWidget=$(this),elBars=el.parents(".top-bar"),elTitle=el.find("> .widget-title"),elContainer=el.find(".togglecontainer"),elWrap=elContainer.find("div .panel-grid > div");elWidget.addClass("changeclass"),elBars.find('.so-widget-orion_mega_widget_topbar:not(".changeclass") > .widget-title').removeClass("active");var siblingsContainer=$('.so-widget-orion_mega_widget_topbar:not(".changeclass")> .togglecontainer.visible',elBars);if(siblingsContainer.length&&(siblingsContainer.addClass("fadeout"),setTimeout(function(){siblingsContainer.removeClass("visible"),siblingsContainer.removeClass("fadeout")},500)),elTitle.hasClass("active"))$(".closebar").addClass("evaporate"),elTitle.removeClass("active"),elWrap.css("max-height","0"),elContainer.addClass("remove-padding"),setTimeout(function(){elContainer.removeClass("visible"),elContainer.css("max-height","0"),elWrap.css("max-height","0"),$(".closebar").remove(),elContainer.removeClass("remove-padding")},300);else{elTitle.addClass("active"),elContainer.addClass("visible"),elWrap.css("max-height","none");var size=$("> div",elContainer).getSize();siblingsContainer.find($(".closebar")).addClass("evaporate");var height=size.height;elContainer.css("max-height","0"),elWrap.css("max-height","0"),setTimeout(function(){elWrap.css("visibility","visible"),elWrap.css("max-height",height),elContainer.css("max-height",height),$(window).trigger("resize")},100);elContainer.append('<div class="closebar x-box xtoarrows no-opacy"><div class="relative-wrap"><span class="first triangle"></span><span class="triangle last"></span></div></div>'),setTimeout(function(){elContainer.children($(".closebar")).removeClass("no-opacy"),$(".closebar.evaporate").remove()},100)}elWidget.removeClass("changeclass")},$(".orion-mega-menu.togglecontainer").parent(".menu-item").addClass("mega-menu-item"),$(el=".orion-mega-menu.togglecontainer").parent(".menu-item").on("mouseenter",function(){$(".togglecontainer",this).hasClass("hidden")&&$(window).width()>screenMedium&&($(".togglecontainer",this).removeClass("hidden"),$(this).addClass("mega-active"),$(window).trigger("resize"))}),$(el).parent(".menu-item").on("mouseleave",function(){!$(".togglecontainer",this).hasClass("hidden")&&$(window).width()>screenMedium&&$(".togglecontainer",this).addClass("hidden"),$(this).removeClass("mega-active")}),$(document).on("click",".closebar",function(){$(".closebar").parents(".so-widget-orion_mega_widget_topbar").toggleWidgetContainer(),$(this).addClass("evaporate")}),$(".so-widget-orion_mega_widget_topbar > .widget-title").on("click",function(){$(this).parents(".so-widget-orion_mega_widget_topbar").toggleWidgetContainer()}),$(".section").each(function(){$(this).css("background-color",$(this).attr("data-bgcolor"))}),$(window).width()<screenMedium&&$(".section[data-mobile-bgcolor]").each(function(){$(this).css("background-color",$(this).attr("data-mobile-bgcolor"))}),$("body").data("passepartoutwidth"))var passpartoutWidth=$("body").data("passepartoutwidth");else passpartoutWidth="0";if($("body").hasClass("admin-bar"))var AdminBarHeight=32;else AdminBarHeight=0;function stickyAdjustWidth(){if($(".stickymenu").length)if($(window).width()<screenMedium);else if($(".stickymenu").css("width","100%"),$("body").data("passepartoutwidth")){var adjustWidth="-="+2*passpartoutWidth+"px";$(".stickymenu").css({width:adjustWidth})}}function setPostLinkHeight(){if($("body").hasClass("single-post")){var navheight=0;$(".post-navigation > .wrapper a").each(function(){$(".post-navigation > .wrapper a").removeAttr("style"),$(this).height()>navheight&&(navheight=$(this).height())}),$(".post-navigation > .wrapper a").css("min-height",navheight+64)}}$(".stickymenu").css("top",AdminBarHeight),$(document).ready(function(){if($(".stickynav").length&&"function"==typeof Waypoint){var orionSticky=$(".stickynav"),stickyOffset=orionSticky.offset(),stickyHeight=orionSticky.height();new Waypoint({element:$("body"),handler:function(direction){if($(window).width()<screenMedium)return $(".stickymenu").addClass("hidesticky"),void $(".stickymenu").removeClass("stuck");"down"==direction&&($(".stickymenu").addClass("stuck"),$(".stickymenu").removeClass("hidesticky"),stickyAdjustWidth())},offset:-(stickyOffset.top-2*AdminBarHeight+stickyHeight)}),new Waypoint({element:$("body"),handler:function(direction){$(window).width()<screenMedium||"up"==direction&&($(".stickymenu").addClass("hidesticky"),$(".stickymenu").removeClass("stuck"),$(".stickymenu .togglecontainer").addClass("hidden"))},offset:-(stickyOffset.top-2*AdminBarHeight-30+stickyHeight/2)})}}),$(document).on("ready",setPostLinkHeight),$(window).on("ready resize",function(){$(".orion-equal-height").each(function(){var max_child_height=0,row=this;jQuery("> .panel-grid-cell .panel-widget-style, .equal-height-item",row).css("min-height",max_child_height),window.innerWidth>=screenMedium?($(row).css({"min-height":""}),jQuery("> .panel-grid-cell, .equal-height-item",row).each(function(){jQuery(this).css({"min-height":""}),jQuery("> .panel-cell-style",this).css({"min-height":""}),jQuery(this).outerHeight()>max_child_height&&(max_child_height=jQuery(this).outerHeight())}),jQuery("> .panel-grid-cell",row).each(function(){$(this).css({"min-height":max_child_height,"justify-content":"center",display:"flex","flex-direction":"column"})}),jQuery("> .panel-grid-cell > .panel-cell-style",row).each(function(){$(this).css({"min-height":max_child_height})}),jQuery("> .panel-grid-cell",row).has(".sow-google-map-canvas")&&$(".sow-google-map-canvas",this).css({height:max_child_height}),$(row).css({"min-height":max_child_height}),jQuery(".equal-height-item",row).each(function(){jQuery(this).css("min-height",max_child_height)})):($(row).css({"min-height":""}),jQuery("> .panel-grid-cell",row).css({"justify-content":""}),jQuery("> .panel-grid-cell, .equal-height-item",row).each(function(){jQuery(this).css({"min-height":""}),jQuery("> .panel-cell-style",this).css({"min-height":""})}))})}),$(window).on("ready resize",function(){var headerNotTransparentHeight=0,topBarheight=0,adminBarHeight=0;$(".full-screen-row").parent(".panel-grid").is(":first-child")&&($(".full-screen-row").parent(".panel-grid").addClass("panel-grid-first-child"),$(".site-header:not(.header-transparent)").height&&(headerNotTransparentHeight=$(".site-header:not(.header-transparent)").height()),$(".top-bar").height&&(topBarheight=$(".top-bar").height()),$("#wpadminbar").height&&(adminBarHeight=$("#wpadminbar").height()));var fullScreenRow=$(".panel-grid:not(.panel-grid-first-child) .full-screen-row"),fullScreenFirstRow=$(".panel-grid.panel-grid-first-child .full-screen-row");if($(window).width()>screenMedium){var windowHeight=$(window).height(),firstchildHeight=windowHeight-headerNotTransparentHeight-topBarheight-adminBarHeight;$(fullScreenFirstRow).stop().animate({"min-height":firstchildHeight}),$(fullScreenRow).stop().animate({"min-height":windowHeight})}else $(fullScreenRow).stop().css("min-height",""),$(fullScreenFirstRow).stop().css("min-height","")}),$(".widget_orion_features_w .feature-item-wrap:not(.no-toggle)").on("mouseenter",function(){$(".footer",this).stop().slideDown({duration:100,easing:"swing"}).addClass("visible")}),$(".widget_orion_features_w .feature-item-wrap:not(.no-toggle)").on("mouseleave",function(){$("body").width()>997&&$(".footer",this).stop().slideUp({duration:200,easing:"swing"}).removeClass("visible")}),$(document).ready(function(){jQuery.each($(".owl-carousel"),function(){var owl=$(this),childCount=$(".item",owl).length,number_items=1,number_items_desktop=4,owlAutoplay=!0,number_items_tablet=1,dots=!1,margin=0,owlAutoheight=!1;("1"==owl.attr("data-dots")&&(dots=!0),owl.attr("data-autoplay"))&&(1!=("true"==owl.attr("data-autoplay")||"1"==owl.attr("data-autoplay"))&&(owlAutoplay=!1));if(owl.attr("data-autoheight"))owlAutoheight="true"==owl.attr("data-autoheight")||"1"==owl.attr("data-autoheight");owl.attr("data-margin")&&(margin=parseInt(owl.attr("data-margin"))),owl.attr("data-col")&&(number_items_desktop=parseInt(owl.attr("data-col"))),(number_items=number_items_desktop>4?4:number_items_desktop)>1&&(number_items_tablet=2),owl.attr("data-tablet")&&(number_items_tablet=owl.attr("data-tablet"));var owlLoop="true";owl.attr("data-owlloop")&&(owlLoop=owl.attr("data-owlloop"));var owlTimeout,data_slideby=0,slideByDesktop=1,slideByItems=1,slideByTablet=1,autoplayTimeout=5e3;owl.attr("data-autoplaytimeout")&&(autoplayTimeout=parseInt(owl.attr("data-autoplaytimeout"))),owl.attr("data-slideby")&&(data_slideby=parseInt(owl.attr("data-slideby"))),slideByDesktop=number_items_desktop>childCount/2?1:0!=data_slideby&&data_slideby<=number_items_desktop?data_slideby:number_items_desktop,slideByItems=number_items>childCount/2?1:0!=data_slideby&&data_slideby<=number_items?data_slideby:number_items,slideByTablet=number_items_tablet>childCount/2?1:0!=data_slideby&&data_slideby<=number_items_tablet?data_slideby:number_items_tablet;var hashListner=!1;if(owl.attr("data-hashlisten"))hashListner=owl.attr("data-hashlisten");var isloop="true"==owlLoop;owl.owlCarousel({loop:isloop,URLhashListener:hashListner,startPosition:"URLHash",animateOut:"fadeOut",autoplay:owlAutoplay,autoplayHoverPause:!0,autoplaySpeed:500,autoplayTimeout:autoplayTimeout,responsiveClass:!0,autoHeight:owlAutoheight,dots:dots,margin:margin,responsive:{0:{items:1,nav:!1,slideBy:1},600:{items:number_items_tablet,nav:!1,slideBy:slideByTablet},992:{items:number_items,nav:!1,slideBy:slideByItems},1360:{items:number_items_desktop,nav:!1,slideBy:slideByDesktop}}}),owl.hasClass("owl-equal-height")&&($(".owl-item",owl).each(function(){var $this=$(this),$image=$this.find("img"),imageSource=$image.attr("src");$this.css("backgroundImage","url("+imageSource+")")}),function($carousel){var minratio=$carousel.data("minratio"),owlWidth=$carousel.innerWidth(),owlHeight=parseInt(owlWidth*minratio);$carousel.height(owlHeight),$(".owl-item",$carousel).height(owlHeight)}(owl)),owl.hasClass("owl-correct-height")&&function($carousel){setTimeout(function(){var slideHeight=$("> .owl-stage-outer > .owl-stage > .owl-item.active",$carousel).outerHeight();$("> .owl-stage-outer",$carousel).height(slideHeight)},1e3)}(owl),owl.on("changed.owl.carousel",function(event){var urlHash=window.location.hash;if(""!=urlHash){var dataSearchQuery=urlHash.replace("#",""),navTab=$(".carousel-navigation a[data-navid="+dataSearchQuery+"]").parent("li");navTab.addClass("active"),navTab.siblings().removeClass("active")}}),1==owlAutoplay&&$(owl).mouseleave(function(){owlTimeout=setTimeout(function(){owl.trigger("next.owl.carousel")},autoplayTimeout)}).mouseenter(function(){clearInterval(owlTimeout)}),owl.siblings().find(".owlnext").on("click",function(){owl.trigger("next.owl.carousel")}),owl.siblings().find(".owlprev").on("click",function(){owl.trigger("prev.owl.carousel")})})}),$(".so-widget-orion_advanced_carousel_w .widget_orion_accordion_w .panel-heading").on("click",function(){$(".so-widget-orion_advanced_carousel_w .owl-stage-outer").css("height","")});var updatePosition=function(){$(".orion-parallax").each(function(){var para_position=$(this).offset().top,el_height=$(this).outerHeight(),screen_height=$(window).height(),para_bg_percent=100/(el_height+screen_height)*(window.pageYOffset+screen_height-para_position);$(this).hasClass("vertical_down")?$(this).css("background-position","50% "+para_bg_percent+"%"):$(this).hasClass("vertical_up")?$(this).css("background-position","50% "+(100-para_bg_percent)+"%"):$(this).hasClass("horizontal_left")?$(this).css("background-position",para_bg_percent+"%"):$(this).hasClass("horizontal_right")&&$(this).css("background-position",100-para_bg_percent+"%")})};function roundedImages(){$(".orion_circle").each(function(){var el=$(this),parentWidth=$(this).parent().width();parentWidth=Math.round(parentWidth),el.css("width",parentWidth),el.css("height",parentWidth)})}if(updatePosition(),$(window).load(function(){if($(".orion-parallax").length>0)new Waypoint.Inview({element:$(".orion-parallax")[0],enter:function(direction){"down"==direction&&window.addEventListener("scroll",updatePosition,!1)},entered:function(direction){},exit:function(direction){},exited:function(direction){}})}),$(".orioninner").wrapAll("<div class='row' />"),$(".orion-separator").each(function(){var classList=$(this).attr("class").split(/\s+/),dataType=$(this).attr("data-stretch-type"),datatypeAttr="";void 0!=dataType&&("full"==dataType&&(dataType="full-stretched"),datatypeAttr='data-stretch-type="'+dataType+'"');var bgColorTop=$(this).data("svgTopColor"),bgColorBottom=$(this).data("svgBottomColor");function getSvg(svg,color){var svgBgColor="";void 0==(svgBgColor="topColor"==color?bgColorTop:bgColorBottom)&&(svgBgColor="#fff");var svgObj={};if(svgObj.svg1='<div class="svg-w"><svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 1440 36" ><polygon fill="'+svgBgColor+'" points="755,0 719.999,35 685,0 0,0 0,36 1440,36 1440,0 "/></svg></div>',svgObj.svg2='<div class="svg-w"><svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 1440 36"><path fill="'+svgBgColor+'" d="M720,0C457.834,0,211.975,12.936,0,35v1h1440v-1C1228.025,12.936,982.166,0,720,0z"/></svg></div>',svgObj.svg3='<div class="svg-w"><svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 1440 36"><path fill="'+svgBgColor+'" d="M0,0v36h1440V0c-211.975,22.064-457.834,35-720,35S211.975,22.064,0,0z"/></svg></div>',svgObj.svg4='<div class="svg-w"><svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 1440 19"><polygon fill="'+svgBgColor+'" points="1422,18 1404,0 1386,18 1368,0 1350,18 1332,0 1314,18 1296,0 1278,18 1260,0 1242,18 1224,0 1206,18 1188,0 1170,18 1152,0 1134,18 1116,0 1098,18 1080,0 1062,18 1044,0 1026,18 1008,0 990,18 972,0 954,18 936,0 918,18 900,0 882,18 864,0 846,18 828,0 810,18 792,0 774,18 756,0 738,18 720,0 702,18 684,0 666,18 648,0 630,18 612,0 594,18 576,0 558,18 540,0 522,18 504,0 486,18 468,0 450,18 432,0 414,18 396,0 378,18 360,0 342,18 324,0 306,18 288,0 270,18 252,0 234,18 216,0 198,18 180,0 162,18 144,0 126,18 108,0 90,18 72,0 54,18 36,0 18,18 0,0 0,19 1440,19 1440,0 "/></svg></div>',svgObj.svg5='<div class="svg-w"><svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 1440 19"><path fill="'+svgBgColor+'" d="M1404,18c-12.729,0-23.273-18-36-18c-12.729,0-23.273,18-36,18c-12.729,0-23.273-18-36-18c-12.729,0-23.273,18-36,18c-12.729,0-23.273-18-36-18c-12.729,0-23.273,18-36,18c-12.729,0-23.273-18-36-18c-12.729,0-23.273,18-36,18c-12.729,0-23.273-18-36-18c-12.729,0-23.273,18-36,18c-12.729,0-23.273-18-36-18c-12.729,0-23.273,18-36,18c-12.729,0-23.273-18-36-18c-12.729,0-23.273,18-36,18c-12.729,0-23.273-18-36-18c-12.729,0-23.273,18-36,18c-12.729,0-23.273-18-36-18c-12.729,0-23.273,18-36,18c-12.729,0-23.273-18-36-18c-12.729,0-23.273,18-36,18c-12.729,0-23.273-18-36-18c-12.729,0-23.273,18-36,18c-12.729,0-23.273-18-36-18c-12.729,0-23.273,18-36,18c-12.729,0-23.273-18-36-18c-12.729,0-23.273,18-36,18c-12.729,0-23.273-18-36-18c-12.729,0-23.273,18-36,18c-12.729,0-23.273-18-36-18c-12.729,0-23.273,18-36,18c-12.729,0-23.273-18-36-18c-12.729,0-23.273,18-36,18c-12.729,0-23.273-18-36-18c-12.729,0-23.273,18-36,18c-12.729,0-23.273-18-36-18c-12.729,0-23.273,18-36,18C95.272,18,84.727,0,72,0C59.272,0,48.727,18,36,18C23.272,18,12.727,0,0,0v19c277.735,0,565.325,0,720,0c154.676,0,442.265,0,720,0V0C1427.272,0,1416.727,18,1404,18z"/></svg></div>',svgObj.svg6='<div class="svg-w"><svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 1440 36"><polygon fill="'+svgBgColor+'" points="0,36 1440,36 1440,0 0,35.234" /></svg></div>',svgObj.svg7='<div class="svg-w"><svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 1440 36"><polygon fill="'+svgBgColor+'" points="720,34.752 0,0 0,36 710,36 730,36 1440,36 1440,0" /></svg></div>',svgObj.svg8='<div class="svg-w"><svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 1440 60"><path fill="'+svgBgColor+'" d="M1440,62.46C1426.956,36.684,1400.239,19,1369.375,19c-24.667,0-46.694,11.292-61.205,28.984c-4.415-2.22-9.392-3.484-14.67-3.484c-9.372,0-17.818,3.943-23.788,10.253c-11.829-10.606-27.45-17.065-44.589-17.065c-12.984,0-25.098,3.714-35.355,10.119c-9.238-14.117-25.18-23.452-43.312-23.452c-20.619,0-38.414,12.064-46.729,29.516c-6.338-2.697-13.309-4.192-20.631-4.192c-9.817,0-18.992,2.705-26.857,7.385c-18.469-8.357-38.973-13.011-60.563-13.011c-21.108,0-41.173,4.456-59.317,12.465c-12.013-15.052-30.506-24.703-51.26-24.703c-16.471,0-31.512,6.088-43.027,16.117c-2.826-0.804-5.805-1.243-8.889-1.243c-6.152,0-11.904,1.713-16.807,4.688c-9.742-12.292-24.791-20.187-41.695-20.187c-15.197,0-28.895,6.384-38.588,16.604C717.026,21.48,688.675,3.75,656.18,3.75c-31.958,0-59.906,17.152-75.153,42.75c-10.224-14.393-27.015-23.792-46.013-23.792c-4.791,0-9.441,0.602-13.883,1.727c-5.349-10.564-16.3-17.811-28.95-17.811c-17.915,0-32.438,14.523-32.438,32.438c0,0.006,0,0.012,0,0.018c-8.393-10.005-20.982-16.371-35.063-16.371c-17.053,0-31.922,9.333-39.791,23.165c-2.975-0.889-6.125-1.373-9.39-1.373c-9.903,0-18.772,4.401-24.778,11.348c-15.155-25.97-43.304-43.43-75.542-43.43c-32.362,0-60.616,17.587-75.729,43.724c-9.574-13.756-25.491-22.767-43.521-22.767c-5.303,0-10.42,0.788-15.25,2.238c-6.727-9.397-17.727-15.528-30.166-15.528c-16.579,0-30.612,10.881-35.359,25.889c-8.931-6.852-20.098-10.933-32.224-10.933C25.266,35.041,9.631,43.69,0,56.976v6.774h918.113h147.125h232.852H1440V62.46z"/></svg></div>',svgObj.hasOwnProperty(svg))return svgObj[svg]}var topSeparator="",bottomSeparator="";($(this).hasClass("top-svg-inside")||$(this).hasClass("top-svg-outside"))&&($(this).hasClass("top-svg-1")?topSeparator=getSvg("svg1","topColor"):$(this).hasClass("top-svg-2")?topSeparator=getSvg("svg2","topColor"):$(this).hasClass("top-svg-3")?topSeparator=getSvg("svg3","topColor"):$(this).hasClass("top-svg-4")?topSeparator=getSvg("svg4","topColor"):$(this).hasClass("top-svg-5")?topSeparator=getSvg("svg5","topColor"):$(this).hasClass("top-svg-6")?topSeparator=getSvg("svg6","topColor"):$(this).hasClass("top-svg-7")?topSeparator=getSvg("svg7","topColor"):$(this).hasClass("top-svg-8")&&(topSeparator=getSvg("svg8","topColor"))),($(this).hasClass("bottom-svg-inside")||$(this).hasClass("bottom-svg-outside"))&&($(this).hasClass("bottom-svg-1")?bottomSeparator=getSvg("svg1","bottomColor"):$(this).hasClass("bottom-svg-2")?bottomSeparator=getSvg("svg2","bottomColor"):$(this).hasClass("bottom-svg-3")?bottomSeparator=getSvg("svg3","bottomColor"):$(this).hasClass("bottom-svg-4")?bottomSeparator=getSvg("svg4","bottomColor"):$(this).hasClass("bottom-svg-5")?bottomSeparator=getSvg("svg5","bottomColor"):$(this).hasClass("bottom-svg-6")?bottomSeparator=getSvg("svg6","bottomColor"):$(this).hasClass("bottom-svg-7")?bottomSeparator=getSvg("svg7","bottomColor"):$(this).hasClass("bottom-svg-8")&&(bottomSeparator=getSvg("svg8","bottomColor")));var svgTop="";""!=topSeparator&&(svgTop='<div class="'+classList.filter(function(item){return 0!==item.indexOf("bottom-")}).filter(function(e){return"middle_align"!==e}).filter(function(e){return"bottom_align"!==e}).filter(function(e){return"orion-equal-height"!==e}).filter(function(e){return"full-screen-row"!==e}).join(" ")+' svg-wrap wrap-top"'+datatypeAttr+">"+topSeparator+"</div>");var svgBottom="";""!=bottomSeparator&&(svgBottom='<div class="'+classList.filter(function(item){return 0!==item.indexOf("top-")}).filter(function(e){return"middle_align"!==e}).filter(function(e){return"bottom_align"!==e}).filter(function(e){return"orion-equal-height"!==e}).filter(function(e){return"full-screen-row"!==e}).join(" ")+' svg-wrap wrap-bottom"'+datatypeAttr+">"+bottomSeparator+"</div>");""!=svgTop&&$(this).before(svgTop),""!=svgBottom&&$(this).after(svgBottom)}),$(window).load(function(){roundedImages()}),$(window).on("resize",function(){stickyAdjustWidth(),setPostLinkHeight(),$(window).width()>screenMedium&&stay_on_screen(),setTimeout(function(){roundedImages()},300)}),$(".so-widget-sow-google-map").length&&$(window).on("resize",function(){"function"==typeof soGoogleMapInitialize&&soGoogleMapInitialize()}),$(window).load(function(){$(window).trigger("resize")}),$(".tabs-wrap > ul").tabCollapse(),$(document).ready(function(){$("a[href]").filter(function(){return/(\.jpg|\.jpeg|\.gif|\.png)/i.test($(this).attr("href"))}).addClass("swipebox"),$("a.swipebox").filter(function(){if($(this).find("img").attr("title"))var title_img=$(this).find("img").attr("title");else title_img=$(this).find("img").attr("alt");$(this).not("[title]")&&$(this).attr("title",title_img)}),$(".swipebox").swipebox({useCSS:!0,useSVG:!0,initialIndexOnArray:0,removeBarsOnMobile:!0,hideCloseButtonOnMobile:!1,hideBarsDelay:0,videoMaxWidth:1170,beforeOpen:null,afterOpen:null,afterClose:null,nextSlide:null,prevSlide:null,loopAtEnd:!1,queryStringData:{},toggleClassOnLoad:"",autoplayVideos:!0})}),$(document).ready(function(){$("[data-imgsize]").each(function(){var el=$(this),imgSize=el.attr("data-imgsize")+"%";void 0!==(imgHoverSize=el.attr("data-imghoversize"))&&!1!==imgHoverSize?imgHoverSize+="%":imgHoverSize=imgSize;var imgHoverSize=el.attr("data-imghoversize")+"%";$("> img",el).css({"max-width":imgSize,"max-height":imgSize}),el.on("mouseenter",function(){$("> img",el).css({"max-width":imgHoverSize,"max-height":imgHoverSize})}),el.on("mouseleave",function(){$("> img",el).css({"max-width":imgSize,"max-height":imgSize})})})}),$(".back-to-top").on("click",function(){return $("html,body").animate({scrollTop:0},600),!1}),$(window).on("load scroll resize",function(){var button=$(".back-to-top");$(window).scrollTop()>800?button.removeClass("hideit"):button.addClass("hideit")}),window.onload=function(){if($(".fixed-footer").length&&$(window).width()>screenMedium){var footerSize=$(".site-footer").height();footerSize>0&&($(".site-footer").addClass("fixed"),$("body").css("margin-bottom",footerSize))}},$(".btn-download").on("click",function(){$(this).addClass("visited")}),$(".overlay-dark").prepend('<div class="overlay-dark-wrapper"></div>'),$(".overlay-light").prepend('<div class="overlay-light-wrapper"></div>'),$(".overlay-c1").prepend('<div class="overlay-c1-wrapper"></div>'),$(".overlay-c2").prepend('<div class="overlay-c2-wrapper"></div>'),$(".overlay-c3").prepend('<div class="overlay-c3-wrapper"></div>'),$(".overlay-c1-c2").prepend('<div class="overlay-c1-c2-wrapper"></div>'),$(".overlay-c2-c1").prepend('<div class="overlay-c2-c1-wrapper"></div>'),$(".overlay-c1-t").prepend('<div class="overlay-c1-t-wrapper"></div>'),$(".overlay-c2-t").prepend('<div class="overlay-c2-t-wrapper"></div>'),$(".overlay-c3-t").prepend('<div class="overlay-c3-t-wrapper"></div>'),$(".shadow-2").parent().addClass("relative no-bottom-margins"),$(".shadow-2").parent().prepend('<div class="shadow-2-left-wrap"></div>'),$(".shadow-2").parent().prepend('<div class="shadow-2-right-wrap"></div>'),$(".shadow-3").parent().addClass("relative no-bottom-margins"),$(".shadow-3").parent().prepend('<div class="shadow-3-left-wrap"></div>'),$(".shadow-3").parent().prepend('<div class="shadow-3-right-wrap"></div>'),$(".orion.absolute-bottom").each(function(){$(this).parents(".panel-row-style").css("z-index","2")}),$(document).on("focus",".wpcf7-not-valid",function(){$(this).siblings(".wpcf7-not-valid-tip").css("opacity",0)}),$(".cf7-form .date input[type=date]").on("focus",function(){var datewreap=$(this).closest(".date");$(datewreap).removeClass("date")}),$(".woocommerce-review-link").on("click",function(){$(window).width()>768?$('.nav-tabs a[area-controls="tab-reviews"]').tab("show"):$(".panel-group #tab-reviews-collapse").collapse("show")}),$(document).ready(function(){var scrollnow=function(e){if(e){if(!$(this).hasClass("owl-nav-link")&&!$(this).hasClass("comment-reply-link")){e.preventDefault();var target=this.hash}}else target=location.hash;var offset=0;$("#wpadminbar").length&&(offset-=$("#wpadminbar").height()),$(".stickymenu").length&&(offset-=$(".stickymenu").height()),$(target).hasClass("tab-pane")||$(target).hasClass("panel-collapse")||$(this).hasClass("owl-nav-link")||$(this).hasClass("comment-reply-link")||$.smoothScroll({offset:offset,scrollTarget:target,easing:"swing",speed:800})};location.hash&&($("html, body").scrollTop(0).show(),scrollnow()),$('a[href*="/"][href*=#]').each(function(){this.pathname.replace(/^\//,"")==location.pathname.replace(/^\//,"")&&this.hostname==location.hostname&&$(this).attr("href",this.hash)}),$("a[href^=#]:not([href=#])").click(scrollnow),location.hash&&setTimeout(scrollnow,800)}),$("body").hasClass("one-page")){var navLinkIDs="";if($('.nav-container a[href*="#"]:not([href="#"]):not([href*="="])').each(function(index){""!=navLinkIDs&&(navLinkIDs+=", ");var temp=$('.nav-container a[href*="#"]:not([href="#"]):not([href*="="])').eq(index).attr("href").split("#");navLinkIDs+="#"+temp[1]}),navLinkIDs){var offset=$(".stickymenu").height()+40;$(".wpadminbar").length&&(offset+=".wpadminbar".height()),$(navLinkIDs).waypoint(function(direction){var link_id=".nav-container .menu-item a[href*=#"+$(this.element).attr("id")+"]";"down"==direction&&($(".nav-container .menu-item a").parent().removeClass("one-page-current-item"),$(link_id).parent().addClass("one-page-current-item"),$(".one-page-current-anchester").removeClass("one-page-current-anchester"),$(link_id).parents(".menu-item").parents(".menu-item").addClass("one-page-current-anchester"))},{offset:offset}),$(navLinkIDs).waypoint(function(direction){var link_id=".nav-container a[href*=#"+$(this.element).attr("id")+"]";"up"==direction&&($(".nav-container a").parent().removeClass("one-page-current-item"),$(link_id).parent().addClass("one-page-current-item"),$(".one-page-current-anchester").removeClass("one-page-current-anchester"),$(link_id).parents(".menu-item").parents(".menu-item").addClass("one-page-current-anchester"))},{offset:function(){return-$(this.element).closest(".panel-grid").height()+offset}})}}function addQuantityButtons(){$("form .quantity").append('<button class="plus">+</button>'),$("form .quantity").append('<button class="minus">-</button>')}function toggleMobileCart(){var button=$(".to-x .woocart");$(".to-x .woocart").length&&$(".to-x .woocart .product_list_widget").children().length>0&&!$(".site-header .mobile-cart").length&&($(".mainheader .nav-container").after('<div class="mobile-cart hidden-md hidden-lg"></div>'),$(".to-x .woocart .orion-cart-wrapper").clone().appendTo(".mainheader .mobile-cart"));var mobile_cart=$(".mainheader .mobile-cart");if($("header .nav-container.open").length&&toggleMobileNav(),mobile_cart.hasClass("open")){mobile_cart.removeClass("open"),button.removeClass("open"),$("html, body").stop().animate({scrollTop:0},"400","swing",function(){})}else{mobile_cart.addClass("open"),button.addClass("open");var $scrollValue=$(".hamburger-box").offset();$("html, body").stop().animate({scrollTop:$scrollValue.top-12},"700","swing",function(){})}}$(".orion-megamenu > .sub-menu").addClass("row"),$(".orion-megamenu > .mega-light").addClass("nav-light").addClass("text-light"),$(".orion-megamenu > .mega-dark").addClass("nav-dark").addClass("text-dark"),$(".header-transparent").length&&$(".page-heading").length&&($(document).ready(function(){var headerHeight=$(".header-transparent").height();$(".page-heading").prepend('<div class="visible-md visible-lg header-space" style="height:'+headerHeight+'px"></div>')}),$(window).resize(function(){var headerHeight;headerHeight=$(".header-transparent").height(),$(".header-space").css("height",headerHeight)})),$(window).on("load",function(){$(".so-widget-orion_custom_menu_w .current-menu-ancestor").addClass("open"),$(".so-widget-orion_custom_menu_w .current-menu-ancestor > .sub-menu").css("display","block"),$(".so-widget-orion_custom_menu_w .current-menu-item.menu-item-has-children").addClass("open"),$(".so-widget-orion_custom_menu_w .current-menu-item.menu-item-has-children").children(".sub-menu").css("display","block")}),1==isMobile&&$(window).width()>screenMedium&&$(".menu-item-has-children > a").on("click",function(){if(!$(this).hasClass("tablet-mode"))return $(this).addClass("tablet-mode"),!1;$(this).removeClass("tablet-mode"),window.location=this.href}),"function"==typeof datepicker&&$('input[type="date"]').datepicker({dateFormat:"yy-mm-dd",minDate:new Date($(this).attr("min")),maxDate:new Date($(this).attr("max"))}).attr("type","text"),$(window).on("ready resize",function(){$(".row-divide").each(function(){if($(window).width()>screenMedium){var rowDivideHeight=$(this).outerHeight(),setMarginTop=-rowDivideHeight/2;$(this).stop().animate({marginTop:setMarginTop})}else $(".row-divide").css("marginTop","")}),$(".push-up-row").each(function(){if($(window).width()>screenMedium){var rowDivideHeight=$(this).outerHeight(),setMarginTop=-rowDivideHeight;$(this).stop().animate({marginTop:setMarginTop})}else $(".push-up-row").css("marginTop","")})}),addQuantityButtons(),$(document).on("updated_cart_totals",addQuantityButtons),$("body").on("click",".quantity button",function(e){e.preventDefault();var field=$(this).parent().find(".qty"),val=parseInt(field.val(),10),step=parseInt(field.attr("step"),10)||0,min=parseInt(field.attr("min"),10)||1,max=parseInt(field.attr("max"),10)||0;"+"===$(this).html()&&(val<max||!max)?field.val(val+step):"-"===$(this).html()&&val>min&&field.val(val-step),field.trigger("change")}),$(".widget_shopping_cart, .last-tab-wrap .woocart").on("mouseenter",function(){$(this).find(".orion-cart-wrapper").removeClass("minicart-hidden")}),$(".widget_shopping_cart, .last-tab-wrap .woocart").on("mouseleave",function(){$(this).find(".orion-cart-wrapper").addClass("minicart-hidden")}),$(".burger-container .woocart").on("click",function(){toggleMobileCart()}),$(window).on("load",function(){$(".orion-products .woo-content").each(function(){$(this).has(".star-rating").length&&($(this).width()<$(".price",this).width()+$(".star-rating",this).width()&&($(".star-rating",this).css({float:"left","margin-bottom":"8px"}),$(".price",this).css("clear","both")))}),$(".woocommerce-product-gallery__trigger").html("")}),1==isMobile&&$(window).width()>screenMedium&&$(".woocommerce .add_to_cart_btn").css("transform","translateY(0)"),$(".widget_layered_nav > select").wrap('<div class="selectwrapper"></div>'),$(".widget_sow-google-map").parent(".panel-grid-cell").css("overflow","hidden")});