try{!function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}(),function(){var e=function(e){return RegExp("(^| )"+e+"( |$)")},t=function(e,t,n){for(var i=0;i0?" "+e:e)},this)},remove:function(){t(arguments,function(t){this.element.className=this.element.className.replace(e(t),"")},this)},toggle:function(e){return this.contains(e)?(this.remove(e),!1):(this.add(e),!0)},contains:function(t){return e(t).test(this.element.className)},replace:function(e,t){this.remove(e),this.add(t)}},"classList"in Element.prototype||Object.defineProperty(Element.prototype,"classList",{get:function(){return new n(this)}}),window.DOMTokenList&&null==DOMTokenList.prototype.replace&&(DOMTokenList.prototype.replace=n.prototype.replace)}(),function(e,t,n){var i=new function(){this.cookiesAccepted=null,this.noticeContainer=null,this.setStatus=function(n){var i=this,o="",s="",c=new Date,a=new Date;cnArgs.onScroll&&e.removeEventListener("scroll",this.handleScroll),"accept"===n?(n="true",a.setTime(parseInt(c.getTime())+1e3*parseInt(cnArgs.cookieTime))):(n="false",a.setTime(parseInt(c.getTime())+1e3*parseInt(cnArgs.cookieTimeRejected))),cnArgs.globalCookie&&(o=this.getDomain(t.location.hostname)),"localhost"===t.location.hostname&&(s=t.location.pathname.split("/")[1]);var r="";"https:"===t.location.protocol&&(r=";secure"),t.cookie=cnArgs.cookieName+"="+n+";expires="+a.toUTCString()+";path=/"+s+";domain="+o+r,this.cookiesAccepted="true"===n;var d=new CustomEvent("setCookieNotice",{detail:{value:n,time:c,expires:a,data:cnArgs}});if(t.dispatchEvent(d),this.setBodyClass(["cookies-set","true"===n?"cookies-accepted":"cookies-refused"]),this.hideCookieNotice(),"automatic"===cnArgs.revokeCookiesOpt&&(this.noticeContainer.addEventListener("animationend",function e(){i.noticeContainer.removeEventListener("animationend",e),i.showRevokeNotice()}),this.noticeContainer.addEventListener("webkitAnimationEnd",function e(){i.noticeContainer.removeEventListener("webkitAnimationEnd",e),i.showRevokeNotice()})),cnArgs.redirection&&("true"===n&&null===this.cookiesAccepted||n!==this.cookiesAccepted&&null!==this.cookiesAccepted)){var l=e.location.protocol+"//",h=e.location.host+"/"+e.location.pathname;cnArgs.cache?(l=l+h.replace("//","/")+(""===e.location.search?"?":e.location.search+"&")+"cn-reloaded=1"+e.location.hash,e.location.href=l):(l=l+h.replace("//","/")+e.location.search+e.location.hash,e.location.reload(!0));return}},this.getDomain=function(e){RegExp(/https?:\/\//).test(e)||(e="http://"+e);var t=new URL(e).hostname.split(".");return t.slice(0).slice(-(4===t.length?3:2)).join(".")},this.getStatus=function(e){var n=("; "+t.cookie).split("; cookie_notice_accepted=");if(2!==n.length)return null;var i=n.pop().split(";").shift();return e?"true"===i:i},this.showCookieNotice=function(){var e=this,n=new CustomEvent("showCookieNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.remove("cookie-notice-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated")})},this.hideCookieNotice=function(){var e=this,n=new CustomEvent("hideCookieNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-notice-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-notice-hidden")})},this.showRevokeNotice=function(){var e=this,n=new CustomEvent("showRevokeNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.remove("cookie-revoke-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated")})},this.hideRevokeNotice=function(){var e=this,n=new CustomEvent("hideRevokeNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-revoke-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-revoke-hidden")})},this.setBodyClass=function(e){t.body.classList.remove("cookies-revoke"),t.body.classList.remove("cookies-accepted"),t.body.classList.remove("cookies-refused"),t.body.classList.remove("cookies-set"),t.body.classList.remove("cookies-not-set");for(var n=0;nparseInt(cnArgs.onScrollOffset)&&this.setStatus("accept")},this.getClosest=function(e,n){for(Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1});e&&e!==t;e=e.parentNode)if(e.matches(n))return e;return null},this.inIframe=function(){try{return e.self!==e.top}catch(t){return!0}},this.init=function(){var n=this;if(!0!==this.inIframe()&&(this.cookiesAccepted=this.getStatus(!0),this.noticeContainer=t.getElementById("cookie-notice"),this.noticeContainer)){var i=t.getElementsByClassName("cn-set-cookie"),o=t.getElementsByClassName("cn-revoke-cookie"),s=t.getElementById("cn-close-notice");this.noticeContainer.classList.add("cn-effect-"+cnArgs.hideEffect),null===this.cookiesAccepted?(cnArgs.onScroll&&e.addEventListener("scroll",function(e){n.handleScroll()}),cnArgs.onClick&&e.addEventListener("click",function(e){null===n.getClosest(e.target,"#cookie-notice")&&n.setStatus("accept")},!0),this.setBodyClass(["cookies-not-set"]),this.showCookieNotice()):(this.setBodyClass(["cookies-set",!0===this.cookiesAccepted?"cookies-accepted":"cookies-refused"]),cnArgs.revokeCookies&&"automatic"===cnArgs.revokeCookiesOpt&&this.showRevokeNotice());for(var c=0;c\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});}catch(e){} try{'use strict';(function(){var $;$=window.jQuery||window.Zepto||window.$;$.fn.fancySelect=function(opts){var isiOS,settings,clicked=false;if(opts==null){opts={};} settings=$.extend({forceiOS:false,includeBlank:false,optionTemplate:function(optionEl){return optionEl.text();},triggerTemplate:function(optionEl){return optionEl.text();}},opts);isiOS=!!navigator.userAgent.match(/iP(hone|od|ad)/i);return this.each(function(){var copyOptionsToList,disabled,options,sel,trigger,updateTriggerText,wrapper;sel=$(this);if(sel.hasClass('fancified')||sel[0].tagName!=='SELECT'){return;} sel.addClass('fancified');sel.css({width:1,height:1,display:'none',position:'absolute',top:0,left:0,opacity:0});sel.wrap('
');wrapper=sel.parent();if(sel.data('class')){wrapper.addClass(sel.data('class'));} wrapper.append('
');wrapper.append('
    ');trigger=wrapper.find('.trigger');options=wrapper.find('.options');disabled=sel.prop('disabled');if(disabled){wrapper.addClass('disabled');} updateTriggerText=function(){var triggerHtml;triggerHtml=settings.triggerTemplate(sel.find(':selected'));return trigger.html(triggerHtml);};sel.on('blur.fs',function(){if(trigger.hasClass('open')){return setTimeout(function(){return trigger.trigger('close.fs');},120);}});trigger.on('close.fs',function(){trigger.removeClass('open');return options.removeClass('open');});trigger.on('close',function(){var parent=sel.parent();if(!parent.is(':hover')||(parent.is(':hover')&&clicked)){clicked=false;trigger.removeClass('open');return options.removeClass('open');}});sel.parent().on('mouseout',function(){sel.trigger('focus');});trigger.on('click.fs',function(){var offParent,parent;if(!disabled){trigger.toggleClass('open');if(trigger.hasClass('open')){parent=trigger.parent();offParent=parent.offsetParent();if((parent.offset().top+parent.outerHeight()+options.outerHeight()+20)>$(window).height()+$(window).scrollTop()){options.addClass('overflowing');}else{options.removeClass('overflowing');}} options.toggleClass('open');if(!isiOS){return sel.focus();}}});sel.on('enable',function(){sel.prop('disabled',false);wrapper.removeClass('disabled');disabled=false;return copyOptionsToList();});sel.on('disable',function(){sel.prop('disabled',true);wrapper.addClass('disabled');return disabled=true;});sel.on('change.fs',function(e){if(e.originalEvent&&e.originalEvent.isTrusted){return e.stopPropagation();}else{return updateTriggerText();}});sel.on('keydown',function(e){var hovered,newHovered,w;w=e.which;hovered=options.find('.hover');hovered.removeClass('hover');if(!options.hasClass('open')){if(w===13||w===32||w===38||w===40){e.preventDefault();return trigger.trigger('click.fs');}}else{if(w===38){e.preventDefault();if(hovered.length&&hovered.index()>0){hovered.prev().addClass('hover');}else{options.find('li:last-child').addClass('hover');}}else if(w===40){e.preventDefault();if(hovered.length&&hovered.index()"+optHtml+"");}else{return options.append("
  • "+optHtml+"
  • ");}}});};sel.on('update.fs',function(){wrapper.find('.options').empty();return copyOptionsToList();});return copyOptionsToList();});};}).call(this);}catch(e){} try{'use strict';var bt_initHeader;(function($){var hasCentralMenu,verticalMenuEnabled,belowMenu,btStickyEnabled,responsiveMenuPosition,fullScreenMenuEnabled;function initial_header_setup(){var isTouchDevice=('ontouchstart'in window)||(navigator.MaxTouchPoints>0)||(navigator.msMaxTouchPoints>0);if(isTouchDevice){$('html').addClass('touch');$('html').removeClass('no-touch');}else{$('html').addClass('no-touch');$('html').removeClass('touch');} hasCentralMenu=$('body').hasClass('btMenuCenterEnabled');verticalMenuEnabled=$('body').hasClass('btMenuVerticalLeftEnabled')||$('body').hasClass('btMenuVerticalRightEnabled');fullScreenMenuEnabled=$('body').hasClass('btMenuFullScreenCenter');if($('body').hasClass('rtl')){responsiveMenuPosition='Right';}else{responsiveMenuPosition='Left';} belowMenu=$('body').hasClass('btBelowMenu');btStickyEnabled=$('body').hasClass('btStickyEnabled');if(typeof window.btStickyOffset=='undefined')window.btStickyOffset=300;if(typeof window.btStickyOpenTimeout=='undefined')window.btStickyOpenTimeout=50;if(typeof window.btStickyCloseTimeout=='undefined')window.btStickyCloseTimeout=200;if(typeof window.responsiveResolution=='undefined')window.responsiveResolution='1200';} function final_header_setup(){$('li.btMenuWideDropdown').addClass(function(){return'btMenuWideDropdownCols-'+$(this).children('ul').children('li').length;});$('li.btMenuWideDropdown').each(function(){var maxChildItems=0;$(this).find('> ul > li > ul').each(function(index){if($(this).children().length>maxChildItems){maxChildItems=$(this).children().length;}});$(this).find('> ul > li > ul').each(function(index){var bt_menu_base_length=$(this).children().length;if(bt_menu_base_length ');}}});});$('.btHorizontalMenuTrigger, .bt-horizontal-menu-trigger').on('click',function(){$('body').toggleClass('btShowMenu');return false;});$('.bt-fullscreen-menu-trigger').on('click',function(){$('body').toggleClass('bt-show-fullscreen-menu');return false;});$('.btVerticalMenuTrigger, .bt-vertical-menu-trigger').on('click',function(){$('body').toggleClass('btMenuVerticalOn');return false;});} if(typeof window.top_tools_search!=='function'){window.top_tools_search=function(){$('.mainHeader .btSearch').parent().addClass('btParentFromTopBox');$('.mainHeader .btSearchInner').prependTo('body').addClass('btFromTopBox');$('.mainHeader .widget_search').addClass('btIconWidget');$('.mainHeader .btSearch, .btFromTopBox .btSearchInnerClose').on('click',function(){$('body').toggleClass('btTopToolsSearchOpen');if($('body').hasClass('btTopToolsSearchOpen')){if($('.btSearchInnerContent form input:text:visible:first').length)boldthemes_requestTimeout(add_focus_to_serach,500);} return false;});}} function add_focus_to_serach(){$('.btSearchInnerContent form input:text:visible:first').focus();} function divide_menu(){if($('.btTextLogo').length){var logoWidth=$('.mainHeader .logo').width();}else{if($('.mainHeader .logo .btMainLogo').data('hw')){var logoWidth=$('.mainHeader .logo').height()*$('.mainHeader .logo .btMainLogo').data('hw');}else{var logoWidth=$('.mainHeader .logo').height()*3;}} $('.menuPort nav').addClass('leftNav');$('.menuPort').append('');var halfItems=Math.ceil($('.menuPort nav.leftNav ul>li:not(li li)').length*.5);$('.menuPort nav.rightNav > ul').append($('.menuPort nav.leftNav > ul > li').slice(halfItems));$('.menuPort nav.leftNav > ul > li').slice(halfItems).remove();$('.mainHeader .logo').css('transform','translateX('+Math.round(-logoWidth*.5)+'px)');$('.mainHeader .logo').css('width',logoWidth+'px');$('.menuPort nav.leftNav').attr('style','--margin:'+Math.round(logoWidth*.5)+'px;margin-right:'+Math.round(logoWidth*.5)+'px;');$('.menuPort nav.rightNav').attr('style','--margin:'+Math.round(logoWidth*.5)+'px;margin-left:'+Math.round(logoWidth*.5)+'px;');boldthemes_calculate_content_padding();} function boldthemes_activate_sticky(){var fromTop=$(window).scrollTop();if(fromTop>window.btStickyOffset&&!$('body').hasClass('btStickyHeaderActive')){$('body').addClass('btStickyHeaderActive');boldthemes_requestTimeout(boldthemes_activate_sticky_open,window.btStickyOpenTimeout);}else if(fromTop<=window.btStickyOffset&&$('body').hasClass('btStickyHeaderActive')&&!$('body').hasClass('btStickyHeaderClosed')){$('body').addClass('btStickyHeaderClosed');boldthemes_requestTimeout(boldthemes_activate_sticky_close,window.btStickyCloseTimeout);} if(fromTop<=100){$('body').removeClass('btStickyHeaderActive btStickyHeaderOpen btStickyHeaderClosed');}} function boldthemes_activate_sticky_open(){$('body').addClass('btStickyHeaderOpen');} function boldthemes_activate_sticky_close(){$('body').removeClass('btStickyHeaderActive btStickyHeaderOpen btStickyHeaderClosed');} window.boldthemes_requestTimeout=function(fn,delay){if(!window.requestAnimationFrame&&!window.webkitRequestAnimationFrame&&!(window.mozRequestAnimationFrame&&window.mozCancelRequestAnimationFrame)&&!window.oRequestAnimationFrame&&!window.msRequestAnimationFrame) return window.setTimeout(fn,delay);var start=new Date().getTime(),handle=new Object();function loop(){var current=new Date().getTime(),delta=current-start;delta>=delay?fn.call():handle.value=boldthemes_requestAnimFrame(loop);};handle.value=boldthemes_requestAnimFrame(loop);return handle;};window.boldthemes_requestAnimFrame=(function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback,element){window.setTimeout(callback,1000/60);};})();function responsive_menu_handler(){if(!fullScreenMenuEnabled){if(!verticalMenuEnabled){$(window).on("resize",function(event){if(window.innerWidth
');$('.menuPort ul li').on('mouseenter mouseleave',function(e){if($('body').hasClass('btMenuVertical')||$('body').hasClass('btMenuFullScreenCenter')||$('html').hasClass('touch')){return false;} e.preventDefault();$(this).siblings().removeClass('on');$(this).toggleClass('on');});$('.menuPort ul.menu').on('mouseenter mouseleave',function(e){if($('body').hasClass('btMenuVertical')||$('body').hasClass('btMenuFullScreenCenter')||$('html').hasClass('touch')){return false;} $(this).toggleClass('hover');});$('div.subToggler').on('click',function(e){var parent_item=$(this).parent();parent_item.siblings().removeClass('on');parent_item.siblings().find('li').removeClass('on');parent_item.siblings().find('ul').hide();parent_item.toggleClass('on');if(parent_item.parent().hasClass('menu'))parent_item.parent().toggleClass('hover');if($('body').hasClass('btMenuVertical')){parent_item.find('ul').first().slideToggle(200);} return false;});final_header_setup();} function boldthemes_calculate_content_padding(){if(!belowMenu){if($(window).width()subjectString.length){position=subjectString.length;} position-=searchString.length;var lastIndex=subjectString.indexOf(searchString,position);return lastIndex!==-1&&lastIndex===position;};}} function initPreloader(){$('body.bodyPreloader .mainHeader .menu').off('click').on('click','a',function(){var href=$(this).attr('href');if(href!==undefined&&!href.startsWith('#')&&!href.startsWith('mailto')&&!href.startsWith('callto')&&!$(this).hasClass('lightbox')&&!$(this).hasClass('add_to_cart_button')&&$(this).attr('target')!='_blank'){$('body').removeClass('btRemovePreloader');setTimeout(function(){window.location=href},750);return false;}});} function initRefreshCart(){$('.cart-contents').each(function(){bt_refresh_cart();});var cart_node=jQuery('.widget_shopping_cart')[0];if(cart_node!==undefined){var config={attributes:true,childList:true,subtree:true};var callback=function(mutationsList,observer){for(var index=0;index1){var maxHeight=Math.max.apply(null,$(this).find('li.product .btWooShopLoopItemInner').map(function(){return $(this).outerHeight();}).get());$(this).find('li.product .btWooShopLoopItemInner').css('min-height',maxHeight+'px');}});} function initTheme(){initFancySelect();initDateInput();initFooter();initModernizrAndDetectBrowser();initPreloader();initRefreshCart();loadInitActions();} $(window).on('load',function(){loadInitActions();});$(document).ready(function(){initRefreshCart();});$(window).on('resize',function(){if($('ul.products li.product .btWooShopLoopItemInner').length>1){$("ul.products li.product .btWooShopLoopItemInner").css('min-height','auto');shopEqualHeights();}});function boldthemes_onCatChange(){if(boldthemes_dropdown.options[boldthemes_dropdown.selectedIndex].value>0){var home_url=document.querySelector(".logo a").href;if(boldthemes_dropdown!==null)location.href=home_url+'?cat='+boldthemes_dropdown.options[boldthemes_dropdown.selectedIndex].value;}} var boldthemes_dropdown=document.querySelector(".widget_categories #cat");if(boldthemes_dropdown!==null){boldthemes_dropdown.onchange=boldthemes_onCatChange;} initFancySelect();initDateInputCheck();initFooter();initModernizrAndDetectBrowser();initPreloader();shopEqualHeights();bt_initTheme=initTheme;})(jQuery);}catch(e){}