window.vcParallaxSkroll=!1,"function"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){var t=window.jQuery,o=function(){var o=t('[data-vc-full-width="true"]');t.each(o,function(){var o=t(this),a=o.next(".vc_row-full-width"),e=parseInt(o.css("margin-left"),10),i=parseInt(o.css("margin-right"),10),n=0-a.offset().left-e,l=t(window).width(),r=0;if(t("body").is(".rtl")?(r=Math.abs(n),o.css({position:"relative",left:r,"box-sizing":"border-box",width:t(window).width()})):o.css({position:"relative",left:n,"box-sizing":"border-box",width:t(window).width()}),!o.data("vcStretchContent")){var s=-1*n;0>s&&(s=0);var d=l-s-a.width()+e+i;0>d&&(d=0),o.css({"padding-left":s+"px","padding-right":d+"px"})}o.attr("data-vc-full-width-init","true")})},a=function(){var o,a=!1;return vcParallaxSkroll&&vcParallaxSkroll.destroy(),t(".vc_parallax-inner").remove(),t("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),t("[data-vc-parallax]").each(function(){var o,e,i,n,l,r;a=!0,"on"==t(this).data("vcParallaxOFade")&&t(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),e=100*t(this).data("vcParallax"),l=t("
").addClass("vc_parallax-inner").appendTo(t(this)),l.height(e+"%"),r=t(this).data("vcParallaxImage"),void 0!==r&&l.css("background-image","url("+r+")"),o=e-100,i=-o,n=0,l.attr("data-bottom-top","top: "+i+"%;").attr("data-top-bottom","top: "+n+"%;")}),a&&window.skrollr?(o={forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}},vcParallaxSkroll=skrollr.init(o),vcParallaxSkroll):!1};t(window).unbind("resize.vcRowBehaviour").bind("resize.vcRowBehaviour",o),o(),a()}),function(t){function o(a,e){this.holder=t(a),this.options=t.extend({},o.DEFAULTS,e),this.init()}o.DEFAULTS={isotope:""},o.prototype={init:function(){var o=this;o.loading=!1,o.support={animations:Modernizr.cssanimations},o.touch=Modernizr.touch,o.el=o.options.isotope,o.loadButton=t(".load-button",o.holder),o.loadButton.eventtype=o.touch?"touchstart":"click",o.loadButton.length&&o.ajaxLoad.call(o,o.loadButton);var a=o.el.attr("data-layout-type"),e={};"masonry"==a&&(a="masonry",e={columnWidth:10,qutter:0});var i={itemSelector:".portfolio-item",duration:750,easing:"linear",layoutMode:a,masonry:e};t("body").hasClass("rtl")&&(i.isOriginLeft=!1),o.el.imagesLoaded(function(){o.folio=o.el.addClass("loaded").isotope(i)})},loadMore:function(o){o.preventDefault();var a=this,e=t(o.target),i=e.data(),n=function(){e.animate({opacity:0},200,function(){t(this).animate({height:0},400)})};return a.loading?!1:(a.loading=!0,i.items_per_page||(i.items_per_page=3),i.offset||(i.offset=i.items_per_page),i.offset+=i.items_per_page,i.items=i.items_per_page,void t.ajax({url:global.ajaxurl,type:"POST",data:i,beforeSend:function(){setTimeout(function(){e.addClass("blockloader")},100)},success:function(o){if(-1!==o.indexOf("{mad-isotope-loaded}")){var o=o.split("{mad-isotope-loaded}"),i=t(o.pop()).filter(".portfolio-item");i.length>0?a.holder.imagesLoaded(function(){i.appendTo(a.folio).hide(),setTimeout(function(){a.folio.isotope("appended",i).isotope("layout")},150),t.jackBox.available(function(){t(".jackbox[data-group]").each(function(){t(this).jackBox("newItem")}),t(".jackbox[data-group]").jackBox("init")}),a.loading=!1}):n()}else n();setTimeout(function(){e.removeClass("blockloader")},100)},complete:function(){},error:function(){n()}}))},ajaxLoad:function(o){o.on(o.eventtype,t.proxy(function(t){this.loadMore(t)},this))}},t.fn.mad_grid_portfolio=function(a){return this.each(function(){var e=t(this),i=e.data("mad_grid_portfolio"),n="object"==typeof a&&a;i||e.data("mad_grid_portfolio",new o(this,n))})}}(jQuery),function(t){t.fn.mad_parallax_bg_image=function(o,a){var e,i;return this.each(function(n,l){var r=t(l);(arguments.length<1||null===o)&&(o="55%"),(arguments.length<2||null===a)&&(a=.6);var s={update:function(){e=r.offset().top,i=t(window).scrollTop(),r.css("backgroundPosition",o+" "+Math.round((e-i)*a)+"px")},init:function(){var o=this;o.update(),t(window).on("scroll",o.update)}};s.init()})},t(function(){Modernizr.touch||t(".bg-section-image").length&&t(".bg-section-image").mad_parallax_bg_image("center",.4),function(){var o=t(".product-brands");o.length&&o.each(function(){var o,a=t(this),e=a.closest(".no_sidebar").length,i=a.closest(".vc_col-sm-6").length;e?(o=[[1199,6],[992,5],[768,4],[480,3],[300,2]],i&&(o=[[1199,3],[992,2],[768,2],[480,2],[300,2]])):(o=[[1199,4],[992,4],[768,3],[480,2],[300,2]],i&&(o=[[1199,2],[992,2],[768,2],[480,2],[300,1]])),a.owlCarousel({itemsCustom:o,autoPlay:1==a.data("autoplay")?a.data("autoplaytimeout"):!1,stopOnHover:!0,slideSpeed:600,autoHeight:!0,navigation:!0,pagination:!1,theme:"owl-tm-theme"})})}(),function(){var o=t(".post-carousel"),a=o.data("items")||1,e={autoPlay:!1,stopOnHover:!0,slideSpeed:600,autoHeight:!0,navigation:!0,pagination:!1,theme:"owl-tm-theme"},i=[[1199,a],[992,a],[768,1],[480,1],[300,1]];1==a?e.singleItem=!0:e.itemsCustom=i,o.length&&o.each(function(){var o=t(this);o.owlCarousel(e)})}(),function(){var o=t(".tm-slider");o.length&&o.each(function(){var o=t(this);o.owlCarousel({singleItem:!0,autoPlay:1==o.data("autoplay")?o.data("autoplaytimeout"):!1,stopOnHover:!0,slideSpeed:1e3,autoHeight:!0,navigation:!0,pagination:!1,theme:"owl-tm-theme"})})}(),function(){var o=t(".portfolio-carousel");o.length&&o.each(function(){var o=t(this),a=o.data("columns"),e=o.closest(".no_sidebar").length,i=o.closest(".vc_col-sm-6").length;e?(items=[[1199,a],[992,3],[768,2],[480,1],[300,1]],i&&(items=[[1199,2],[992,2],[768,2],[480,1],[300,1]])):(items=[[1199,a],[992,2],[768,2],[480,1],[300,1]],i&&(items=[[1199,1],[992,1],[768,1],[480,1],[300,1]])),o.owlCarousel({itemsCustom:items,theme:"owl-tm-theme",autoPlay:!1,slideSpeed:1e3,autoHeight:!0,stopOnHover:!0,navigation:!0,rewindNav:!0,scrollPerPage:!1,pagination:!1,paginationNumbers:!1})})}(),function(){var o=t(".images-carousel");o.length&&o.each(function(){var o,a=t(this),e=a.closest(".no_sidebar").length,i=a.closest(".vc_col-sm-6").length;e?(o=[[1199,3],[992,3],[768,2],[480,1],[300,1]],i&&(o=[[1199,2],[992,2],[768,2],[480,1],[300,1]])):(o=[[1199,2],[992,2],[768,2],[480,1],[300,1]],i&&(o=[[1199,1],[992,1],[768,1],[480,1],[300,1]])),a.owlCarousel({itemsCustom:o,theme:"owl-tm-theme",autoPlay:1==a.data("autoplay")?a.data("autoplaytimeout"):!1,autoHeight:!0,stopOnHover:!0,navigation:!0,rewindNav:!0,scrollPerPage:!1,pagination:!1,paginationNumbers:!1})})}()}),t(function(){vc_rowBehaviour()}),t(window).load(function(){!function(){var o=t(".portfolio-holder");o.length&&o.each(function(){var o=t(this),a=t(".portfolio-isotope",o);a.length&&(t(".section-line .heapOptions a",a.parent()).on("click",function(){var o=t(this),e=o.attr("rel");a.isotope({filter:e})}),t(".section-line .portfolio-filter a",a.parent()).on("click",function(){var o=t(this),e=o.attr("data-filter");o.parent("li").addClass("active").siblings().removeClass("active"),a.isotope({filter:e})}),o.mad_grid_portfolio({isotope:a}))})}()})}(jQuery); (function($){ 'use strict'; if(typeof wpcf7==='undefined'||wpcf7===null){ return; } wpcf7=$.extend({ cached: 0, inputs: [] }, wpcf7); $(function(){ wpcf7.supportHtml5=(function(){ var features={}; var input=document.createElement('input'); features.placeholder='placeholder' in input; var inputTypes=[ 'email', 'url', 'tel', 'number', 'range', 'date' ]; $.each(inputTypes, function(index, value){ input.setAttribute('type', value); features[ value ]=input.type!=='text'; }); return features; })(); $('div.wpcf7 > form').each(function(){ var $form=$(this); wpcf7.initForm($form); if(wpcf7.cached){ wpcf7.refill($form); }}); }); wpcf7.getId=function(form){ return parseInt($('input[name="_wpcf7"]', form).val(), 10); }; wpcf7.initForm=function(form){ var $form=$(form); $form.submit(function(event){ if(! wpcf7.supportHtml5.placeholder){ $('[placeholder].placeheld', $form).each(function(i, n){ $(n).val('').removeClass('placeheld'); }); } if(typeof window.FormData==='function'){ wpcf7.submit($form); event.preventDefault(); }}); $('.wpcf7-submit', $form).after(''); wpcf7.toggleSubmit($form); $form.on('click', '.wpcf7-acceptance', function(){ wpcf7.toggleSubmit($form); }); $('.wpcf7-exclusive-checkbox', $form).on('click', 'input:checkbox', function(){ var name=$(this).attr('name'); $form.find('input:checkbox[name="' + name + '"]').not(this).prop('checked', false); }); $('.wpcf7-list-item.has-free-text', $form).each(function(){ var $freetext=$(':input.wpcf7-free-text', this); var $wrap=$(this).closest('.wpcf7-form-control'); if($(':checkbox, :radio', this).is(':checked')){ $freetext.prop('disabled', false); }else{ $freetext.prop('disabled', true); } $wrap.on('change', ':checkbox, :radio', function(){ var $cb=$('.has-free-text', $wrap).find(':checkbox, :radio'); if($cb.is(':checked')){ $freetext.prop('disabled', false).focus(); }else{ $freetext.prop('disabled', true); }}); }); if(! wpcf7.supportHtml5.placeholder){ $('[placeholder]', $form).each(function(){ $(this).val($(this).attr('placeholder')); $(this).addClass('placeheld'); $(this).focus(function(){ if($(this).hasClass('placeheld')){ $(this).val('').removeClass('placeheld'); }}); $(this).blur(function(){ if(''===$(this).val()){ $(this).val($(this).attr('placeholder')); $(this).addClass('placeheld'); }}); }); } if(wpcf7.jqueryUi&&! wpcf7.supportHtml5.date){ $form.find('input.wpcf7-date[type="date"]').each(function(){ $(this).datepicker({ dateFormat: 'yy-mm-dd', minDate: new Date($(this).attr('min')), maxDate: new Date($(this).attr('max')) }); }); } if(wpcf7.jqueryUi&&! wpcf7.supportHtml5.number){ $form.find('input.wpcf7-number[type="number"]').each(function(){ $(this).spinner({ min: $(this).attr('min'), max: $(this).attr('max'), step: $(this).attr('step') }); }); } $('.wpcf7-character-count', $form).each(function(){ var $count=$(this); var name=$count.attr('data-target-name'); var down=$count.hasClass('down'); var starting=parseInt($count.attr('data-starting-value'), 10); var maximum=parseInt($count.attr('data-maximum-value'), 10); var minimum=parseInt($count.attr('data-minimum-value'), 10); var updateCount=function(target){ var $target=$(target); var length=$target.val().length; var count=down ? starting - length:length; $count.attr('data-current-value', count); $count.text(count); if(maximum&&maximum < length){ $count.addClass('too-long'); }else{ $count.removeClass('too-long'); } if(minimum&&length < minimum){ $count.addClass('too-short'); }else{ $count.removeClass('too-short'); }}; $(':input[name="' + name + '"]', $form).each(function(){ updateCount(this); $(this).keyup(function(){ updateCount(this); }); }); }); $form.on('change', '.wpcf7-validates-as-url', function(){ var val=$.trim($(this).val()); if(val && ! val.match(/^[a-z][a-z0-9.+-]*:/i) && -1!==val.indexOf('.')){ val=val.replace(/^\/+/, ''); val='http://' + val; } $(this).val(val); }); }; wpcf7.submit=function(form){ if(typeof window.FormData!=='function'){ return; } var $form=$(form); $('.ajax-loader', $form).addClass('is-active'); wpcf7.clearResponse($form); var formData=new FormData($form.get(0)); var detail={ id: $form.closest('div.wpcf7').attr('id'), status: 'init', inputs: [], formData: formData }; $.each($form.serializeArray(), function(i, field){ if('_wpcf7'==field.name){ detail.contactFormId=field.value; }else if('_wpcf7_version'==field.name){ detail.pluginVersion=field.value; }else if('_wpcf7_locale'==field.name){ detail.contactFormLocale=field.value; }else if('_wpcf7_unit_tag'==field.name){ detail.unitTag=field.value; }else if('_wpcf7_container_post'==field.name){ detail.containerPostId=field.value; }else if(field.name.match(/^_wpcf7_\w+_free_text_/)){ var owner=field.name.replace(/^_wpcf7_\w+_free_text_/, ''); detail.inputs.push({ name: owner + '-free-text', value: field.value }); }else if(field.name.match(/^_/)){ }else{ detail.inputs.push(field); }}); wpcf7.triggerEvent($form.closest('div.wpcf7'), 'beforesubmit', detail); var ajaxSuccess=function(data, status, xhr, $form){ detail.id=$(data.into).attr('id'); detail.status=data.status; detail.apiResponse=data; var $message=$('.wpcf7-response-output', $form); switch(data.status){ case 'validation_failed': $.each(data.invalidFields, function(i, n){ $(n.into, $form).each(function(){ wpcf7.notValidTip(this, n.message); $('.wpcf7-form-control', this).addClass('wpcf7-not-valid'); $('[aria-invalid]', this).attr('aria-invalid', 'true'); }); }); $message.addClass('wpcf7-validation-errors'); $form.addClass('invalid'); wpcf7.triggerEvent(data.into, 'invalid', detail); break; case 'acceptance_missing': $message.addClass('wpcf7-acceptance-missing'); $form.addClass('unaccepted'); wpcf7.triggerEvent(data.into, 'unaccepted', detail); break; case 'spam': $message.addClass('wpcf7-spam-blocked'); $form.addClass('spam'); wpcf7.triggerEvent(data.into, 'spam', detail); break; case 'aborted': $message.addClass('wpcf7-aborted'); $form.addClass('aborted'); wpcf7.triggerEvent(data.into, 'aborted', detail); break; case 'mail_sent': $message.addClass('wpcf7-mail-sent-ok'); $form.addClass('sent'); wpcf7.triggerEvent(data.into, 'mailsent', detail); break; case 'mail_failed': $message.addClass('wpcf7-mail-sent-ng'); $form.addClass('failed'); wpcf7.triggerEvent(data.into, 'mailfailed', detail); break; default: var customStatusClass='custom-' + data.status.replace(/[^0-9a-z]+/i, '-'); $message.addClass('wpcf7-' + customStatusClass); $form.addClass(customStatusClass); } wpcf7.refill($form, data); wpcf7.triggerEvent(data.into, 'submit', detail); if('mail_sent'==data.status){ $form.each(function(){ this.reset(); }); wpcf7.toggleSubmit($form); } if(! wpcf7.supportHtml5.placeholder){ $form.find('[placeholder].placeheld').each(function(i, n){ $(n).val($(n).attr('placeholder')); }); } $message.html('').append(data.message).slideDown('fast'); $message.attr('role', 'alert'); $('.screen-reader-response', $form.closest('.wpcf7')).each(function(){ var $response=$(this); $response.html('').attr('role', '').append(data.message); if(data.invalidFields){ var $invalids=$(''); $.each(data.invalidFields, function(i, n){ if(n.idref){ var $li=$('
  • ').append($('').attr('href', '#' + n.idref).append(n.message)); }else{ var $li=$('
  • ').append(n.message); } $invalids.append($li); }); $response.append($invalids); } $response.attr('role', 'alert').focus(); }); }; $.ajax({ type: 'POST', url: wpcf7.apiSettings.getRoute('/contact-forms/' + wpcf7.getId($form) + '/feedback'), data: formData, dataType: 'json', processData: false, contentType: false }).done(function(data, status, xhr){ ajaxSuccess(data, status, xhr, $form); $('.ajax-loader', $form).removeClass('is-active'); }).fail(function(xhr, status, error){ var $e=$('
    ').text(error.message); $form.after($e); }); }; wpcf7.triggerEvent=function(target, name, detail){ var $target=$(target); var event=new CustomEvent('wpcf7' + name, { bubbles: true, detail: detail }); $target.get(0).dispatchEvent(event); $target.trigger('wpcf7:' + name, detail); $target.trigger(name + '.wpcf7', detail); }; wpcf7.toggleSubmit=function(form, state){ var $form=$(form); var $submit=$('input:submit', $form); if(typeof state!=='undefined'){ $submit.prop('disabled', ! state); return; } if($form.hasClass('wpcf7-acceptance-as-validation')){ return; } $submit.prop('disabled', false); $('.wpcf7-acceptance', $form).each(function(){ var $span=$(this); var $input=$('input:checkbox', $span); if(! $span.hasClass('optional')){ if($span.hasClass('invert')&&$input.is(':checked') || ! $span.hasClass('invert')&&! $input.is(':checked')){ $submit.prop('disabled', true); return false; }} }); }; wpcf7.notValidTip=function(target, message){ var $target=$(target); $('.wpcf7-not-valid-tip', $target).remove(); $('') .text(message).appendTo($target); if($target.is('.use-floating-validation-tip *')){ var fadeOut=function(target){ $(target).not(':hidden').animate({ opacity: 0 }, 'fast', function(){ $(this).css({ 'z-index': -100 }); }); }; $target.on('mouseover', '.wpcf7-not-valid-tip', function(){ fadeOut(this); }); $target.on('focus', ':input', function(){ fadeOut($('.wpcf7-not-valid-tip', $target)); }); }}; wpcf7.refill=function(form, data){ var $form=$(form); var refillCaptcha=function($form, items){ $.each(items, function(i, n){ $form.find(':input[name="' + i + '"]').val(''); $form.find('img.wpcf7-captcha-' + i).attr('src', n); var match=/([0-9]+)\.(png|gif|jpeg)$/.exec(n); $form.find('input:hidden[name="_wpcf7_captcha_challenge_' + i + '"]').attr('value', match[ 1 ]); }); }; var refillQuiz=function($form, items){ $.each(items, function(i, n){ $form.find(':input[name="' + i + '"]').val(''); $form.find(':input[name="' + i + '"]').siblings('span.wpcf7-quiz-label').text(n[ 0 ]); $form.find('input:hidden[name="_wpcf7_quiz_answer_' + i + '"]').attr('value', n[ 1 ]); }); }; if(typeof data==='undefined'){ $.ajax({ type: 'GET', url: wpcf7.apiSettings.getRoute('/contact-forms/' + wpcf7.getId($form) + '/refill'), beforeSend: function(xhr){ var nonce=$form.find(':input[name="_wpnonce"]').val(); if(nonce){ xhr.setRequestHeader('X-WP-Nonce', nonce); }}, dataType: 'json' }).done(function(data, status, xhr){ if(data.captcha){ refillCaptcha($form, data.captcha); } if(data.quiz){ refillQuiz($form, data.quiz); }}); }else{ if(data.captcha){ refillCaptcha($form, data.captcha); } if(data.quiz){ refillQuiz($form, data.quiz); }} }; wpcf7.clearResponse=function(form){ var $form=$(form); $form.removeClass('invalid spam sent failed'); $form.siblings('.screen-reader-response').html('').attr('role', ''); $('.wpcf7-not-valid-tip', $form).remove(); $('[aria-invalid]', $form).attr('aria-invalid', 'false'); $('.wpcf7-form-control', $form).removeClass('wpcf7-not-valid'); $('.wpcf7-response-output', $form) .hide().empty().removeAttr('role') .removeClass('wpcf7-mail-sent-ok wpcf7-mail-sent-ng wpcf7-validation-errors wpcf7-spam-blocked'); }; wpcf7.apiSettings.getRoute=function(path){ var url=wpcf7.apiSettings.root; url=url.replace(wpcf7.apiSettings.namespace, wpcf7.apiSettings.namespace + path); return url; };})(jQuery); (function (){ if(typeof window.CustomEvent==="function") return false; function CustomEvent(event, params){ params=params||{ bubbles: false, cancelable: false, detail: undefined }; var evt=document.createEvent('CustomEvent'); evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail); return evt; } CustomEvent.prototype=window.Event.prototype; window.CustomEvent=CustomEvent; })(); 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;g"+options.cwreadmore+""; } var html="

    " + options.cwmessage + "

    " + options.cwagree + "" + options.cwmoreinfo + "
    " + options.cwbubbletitle + "

    " + options.cwbubblemessage + "

    "; if(cwallowcookies){ cwsetCookie("cwallowcookies", true, 365); }else{ $(this).prepend(html); if(options.animate){ $(".cwcookielaw").slideDown('slow'); }else{ $(".cwcookielaw").show(); }} };})(jQuery); (function(){function j(){}function k(C,D){for(var E=C.length;E--;)if(C[E].listener===D)return E;return-1}function q(C){return function(){return this[C].apply(this,arguments)}}var z=j.prototype,A=this,B=A.EventEmitter;z.getListeners=function(C){var D,E,F=this._getEvents();if("object"==typeof C)for(E in D={},F)F.hasOwnProperty(E)&&C.test(E)&&(D[E]=F[E]);else D=F[C]||(F[C]=[]);return D},z.flattenListeners=function(C){var D,E=[];for(D=0;C.length>D;D+=1)E.push(C[D].listener);return E},z.getListenersAsObject=function(C){var D,E=this.getListeners(C);return E instanceof Array&&(D={},D[C]=E),D||E},z.addListener=function(C,D){var E,F=this.getListenersAsObject(C);for(E in F)F.hasOwnProperty(E)&&-1===k(F[E],D)&&F[E].push("object"==typeof D?D:{listener:D,once:!1});return this},z.on=q("addListener"),z.addOnceListener=function(C,D){return this.addListener(C,{listener:D,once:!0})},z.once=q("addOnceListener"),z.defineEvent=function(C){return this.getListeners(C),this},z.defineEvents=function(C){for(var D=0;C.length>D;D+=1)this.defineEvent(C[D]);return this},z.removeListener=function(C,D){var E,F,G=this.getListenersAsObject(C);for(F in G)G.hasOwnProperty(F)&&(E=k(G[F],D),-1!==E&&G[F].splice(E,1));return this},z.off=q("removeListener"),z.addListeners=function(C,D){return this.manipulateListeners(!1,C,D)},z.removeListeners=function(C,D){return this.manipulateListeners(!0,C,D)},z.manipulateListeners=function(C,D,E){var F,G,H=C?this.removeListener:this.addListener,I=C?this.removeListeners:this.addListeners;if("object"!=typeof D||D instanceof RegExp)for(F=E.length;F--;)H.call(this,D,E[F]);else for(F in D)D.hasOwnProperty(F)&&(G=D[F])&&("function"==typeof G?H.call(this,F,G):I.call(this,F,G));return this},z.removeEvent=function(C){var D,E=typeof C,F=this._getEvents();if("string"==E)delete F[C];else if("object"==E)for(D in F)F.hasOwnProperty(D)&&C.test(D)&&delete F[D];else delete this._events;return this},z.removeAllListeners=q("removeEvent"),z.emitEvent=function(C,D){var E,F,G,H,I=this.getListenersAsObject(C);for(G in I)if(I.hasOwnProperty(G))for(F=I[G].length;F--;)E=I[G][F],!0===E.once&&this.removeListener(C,E.listener),H=E.listener.apply(this,D||[]),H===this._getOnceReturnValue()&&this.removeListener(C,E.listener);return this},z.trigger=q("emitEvent"),z.emit=function(C){var D=Array.prototype.slice.call(arguments,1);return this.emitEvent(C,D)},z.setOnceReturnValue=function(C){return this._onceReturnValue=C,this},z._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},z._getEvents=function(){return this._events||(this._events={})},j.noConflict=function(){return A.EventEmitter=B,j},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return j}):"object"==typeof module&&module.exports?module.exports=j:this.EventEmitter=j}).call(this),function(j){function k(C){var D=j.event;return D.target=D.target||D.srcElement||C,D}var q=document.documentElement,z=function(){};q.addEventListener?z=function(C,D,E){C.addEventListener(D,E,!1)}:q.attachEvent&&(z=function(C,D,E){C[D+E]=E.handleEvent?function(){var F=k(C);E.handleEvent.call(E,F)}:function(){var F=k(C);E.call(C,F)},C.attachEvent("on"+D,C[D+E])});var A=function(){};q.removeEventListener?A=function(C,D,E){C.removeEventListener(D,E,!1)}:q.detachEvent&&(A=function(C,D,E){C.detachEvent("on"+D,C[D+E]);try{delete C[D+E]}catch(F){C[D+E]=void 0}});var B={bind:z,unbind:A};"function"==typeof define&&define.amd?define("eventie/eventie",B):j.eventie=B}(this),function(j,k){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(q,z){return k(j,q,z)}):"object"==typeof exports?module.exports=k(j,require("eventEmitter"),require("eventie")):j.imagesLoaded=k(j,j.EventEmitter,j.eventie)}(this,function(j,k,q){function z(K,L){for(var M in L)K[M]=L[M];return K}function A(K){return"[object Array]"===I.call(K)}function B(K){var L=[];if(A(K))L=K;else if("number"==typeof K.length)for(var M=0,N=K.length;N>M;M++)L.push(K[M]);else L.push(K);return L}function C(K,L,M){if(!(this instanceof C))return new C(K,L);"string"==typeof K&&(K=document.querySelectorAll(K)),this.elements=B(K),this.options=z({},this.options),"function"==typeof L?M=L:z(this.options,L),M&&this.on("always",M),this.getImages(),F&&(this.jqDeferred=new F.Deferred);var N=this;setTimeout(function(){N.check()})}function D(K){this.img=K}function E(K){this.src=K,J[K]=this}var F=j.jQuery,G=j.console,I=Object.prototype.toString;C.prototype=new k,C.prototype.options={},C.prototype.getImages=function(){this.images=[];for(var M,K=0,L=this.elements.length;L>K;K++){M=this.elements[K],"IMG"===M.nodeName&&this.addImage(M);var N=M.nodeType;if(N&&(1===N||9===N||11===N))for(var R,O=M.querySelectorAll("img"),P=0,Q=O.length;Q>P;P++)R=O[P],this.addImage(R)}},C.prototype.addImage=function(K){var L=new D(K);this.images.push(L)},C.prototype.check=function(){function K(Q,R){return L.options.debug&&void 0!==G&&G.log("confirm",Q,R),L.progress(Q),M++,M===N&&L.complete(),!0}var L=this,M=0,N=this.images.length;if(this.hasAnyBroken=!1,!N)return this.complete(),void 0;for(var P,O=0;N>O;O++)P=this.images[O],P.on("confirm",K),P.check()},C.prototype.progress=function(K){this.hasAnyBroken=this.hasAnyBroken||!K.isLoaded;var L=this;setTimeout(function(){L.emit("progress",L,K),L.jqDeferred&&L.jqDeferred.notify&&L.jqDeferred.notify(L,K)})},C.prototype.complete=function(){var K=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var L=this;setTimeout(function(){if(L.emit(K,L),L.emit("always",L),L.jqDeferred){var M=L.hasAnyBroken?"reject":"resolve";L.jqDeferred[M](L)}})},F&&(F.fn.imagesLoaded=function(K,L){var M=new C(this,K,L);return M.jqDeferred.promise(F(this))}),D.prototype=new k,D.prototype.check=function(){var K=J[this.img.src]||new E(this.img.src);if(K.isConfirmed)return this.confirm(K.isLoaded,"cached was confirmed"),void 0;if(this.img.complete&&void 0!==this.img.naturalWidth)return this.confirm(0!==this.img.naturalWidth,"naturalWidth"),void 0;var L=this;K.on("confirm",function(M,N){return L.confirm(M.isLoaded,N),!0}),K.check()},D.prototype.confirm=function(K,L){this.isLoaded=K,this.emit("confirm",this,L)};var J={};return E.prototype=new k,E.prototype.check=function(){if(!this.isChecked){var K=new Image;q.bind(K,"load",this),q.bind(K,"error",this),K.src=this.src,this.isChecked=!0}},E.prototype.handleEvent=function(K){var L="on"+K.type;this[L]&&this[L](K)},E.prototype.onload=function(K){this.confirm(!0,"onload"),this.unbindProxyEvents(K)},E.prototype.onerror=function(K){this.confirm(!1,"onerror"),this.unbindProxyEvents(K)},E.prototype.confirm=function(K,L){this.isConfirmed=!0,this.isLoaded=K,this.emit("confirm",this,L)},E.prototype.unbindProxyEvents=function(K){q.unbind(K.target,"load",this),q.unbind(K.target,"error",this)},C}),function(){var j=[].indexOf||function(q){for(var z=0,A=this.length;zU.oldScroll,V=W?U.forward:U.backward,q.each(S.waypoints[T],function(Y,Z){var _,aa;return U.oldScroll<(_=Z.offset)&&_<=U.newScroll?X.push(Z):U.newScroll<(aa=Z.offset)&&aa<=U.oldScroll?X.push(Z):void 0}),X.sort(function(Y,Z){return Y.offset-Z.offset}),W||X.reverse(),q.each(X,function(Y,Z){if(Z.options.continuous||Y===X.length-1)return Z.trigger([V])})}),this.oldScroll={x:R.horizontal.newScroll,y:R.vertical.newScroll}},Q.prototype.refresh=function(){var R,S,T,U=this;return T=q.isWindow(this.element),S=this.$element.offset(),this.doScroll(),R={horizontal:{contextOffset:T?0:S.left,contextScroll:T?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:T?0:S.top,contextScroll:T?0:this.oldScroll.y,contextDimension:T?q[P]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},q.each(R,function(V,W){return q.each(U.waypoints[V],function(X,Y){var Z,_,aa,ba,ca;if(Z=Y.options.offset,aa=Y.offset,_=q.isWindow(Y.element)?0:Y.$element.offset()[W.offsetProp],q.isFunction(Z)?Z=Z.apply(Y.element):"string"==typeof Z&&(Z=parseFloat(Z),-1(ca=W.oldScroll)&&ca>=Y.offset?Y.trigger([W.forward]):null===aa&&W.oldScroll>=Y.offset?Y.trigger([W.forward]):void 0})})},Q.prototype.checkEmpty=function(){if(q.isEmptyObject(this.waypoints.horizontal)&&q.isEmptyObject(this.waypoints.vertical))return this.$element.unbind([K,L].join(" ")),delete G[this.id]},Q}(),C=function(){function Q(R,S,T){var U,V;T=q.extend({},q.fn[O].defaults,T),"bottom-in-view"===T.offset&&(T.offset=function(){var W;return W=q[P]("viewportHeight"),q.isWindow(S.element)||(W=S.$element.height()),W-q(this).outerHeight()}),this.$element=R,this.element=R[0],this.axis=T.horizontal?"horizontal":"vertical",this.callback=T.handler,this.context=S,this.enabled=T.enabled,this.id="waypoints"+M++,this.offset=null,this.options=T,S.waypoints[this.axis][this.id]=this,D[this.axis][this.id]=this,U=null==(V=R.data(N))?[]:V,U.push(this.id),R.data(N,U)}return Q.prototype.trigger=function(R){if(this.enabled&&(null!=this.callback&&this.callback.apply(this.element,R),this.options.triggerOnce))return this.destroy()},Q.prototype.disable=function(){return this.enabled=!1},Q.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},Q.prototype.destroy=function(){return delete D[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},Q.getWaypointsByElement=function(R){var S,T;return(T=q(R).data(N),!T)?[]:(S=q.extend({},D.horizontal,D.vertical),q.map(T,function(U){return S[U]}))},Q}(),J={init:function(Q,R){var S;return null==R&&(R={}),null==(S=R.handler)&&(R.handler=Q),this.each(function(){var T,U,V,W;return T=q(this),V=null==(W=R.context)?q.fn[O].defaults.context:W,q.isWindow(V)||(V=T.closest(V)),V=q(V),U=G[V.data(F)],U||(U=new B(V)),new C(T,U,R)}),q[P]("refresh"),this},disable:function(){return J._invoke(this,"disable")},enable:function(){return J._invoke(this,"enable")},destroy:function(){return J._invoke(this,"destroy")},prev:function(Q,R){return J._traverse.call(this,Q,R,function(S,T,U){if(0R.oldScroll.y})},left:function(Q){return null==Q&&(Q=z),I._filter(Q,"horizontal",function(R,S){return S.offset<=R.oldScroll.x})},right:function(Q){return null==Q&&(Q=z),I._filter(Q,"horizontal",function(R,S){return S.offset>R.oldScroll.x})},enable:function(){return I._invoke("enable")},disable:function(){return I._invoke("disable")},destroy:function(){return I._invoke("destroy")},extendFn:function(Q,R){return J[Q]=R},_invoke:function(Q){var R;return R=q.extend({},D.vertical,D.horizontal),q.each(R,function(S,T){return T[Q](),!0})},_filter:function(Q,R,S){var T,U;return(T=G[q(Q).data(F)],!T)?[]:(U=[],q.each(T.waypoints[R],function(V,W){if(S(T,W))return U.push(W)}),U.sort(function(V,W){return V.offset-W.offset}),q.map(U,function(V){return V.element}))}},q[P]=function(){var Q,R;return R=arguments[0],Q=2<=arguments.length?k.call(arguments,1):[],I[R]?I[R].apply(null,Q):I.aggregate.call(null,R)},q[P].settings={resizeThrottle:100,scrollThrottle:30},A.load(function(){return q[P]("refresh")})})}.call(this),function(j){"use strict";j.mad_popup_prepare=function(k,q){this.el=k,this.options=j.extend({},j.mad_popup_prepare.DEFAULTS,q),this.init()},j.mad_popup_prepare.DEFAULTS={actionpopup:"",noncepopup:"",on_load:function(){}},j.mad_popup_prepare.openInstance=[],j.mad_popup_prepare.prototype={init:function(){j.mad_popup_prepare.openInstance.unshift(this);var k=this;k.scope=!1,k.doc=j(document),k.body=j("body"),k.instance=j.mad_popup_prepare.openInstance.length,k.namespace=".popup_modal_"+k.instance,k.support={touch:Modernizr.touch,animations:Modernizr.cssanimations},k.eventtype=k.support.touch?"touchstart":"click";k.animEndEventName={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd",animation:"animationend"}[Modernizr.prefixed("animation")],k.ajaxLoad()},ajaxLoad:function(){this.body.on(this.eventtype,this.el,j.proxy(function(k){this.scope||this.loadPopup(k),this.scope=!0},this))},loadPopup:function(k){k.preventDefault();var q=this,z=j(k.target),A=z.data();A.action=q.options.actionpopup,A._madnonce_ajax=q.options.noncepopup;void 0==A.action||j.ajax({type:"post",url:woocommerce_mod.ajaxurl.toString().replace("%%endpoint%%",A.action),data:A,beforeSend:function(){z.block({message:null,overlayCSS:{background:"#fff url("+global.ajax_loader_url+") no-repeat center",backgroundSize:"16px 16px",opacity:0.6}})},success:function(B){z.unblock(),B.match("exit")&&(B=B.replace("exit",""),q.modal=j("
    "),q.overlay=j("
    "),q.body.append(q.modal).append(q.overlay),q.modal.append(B),q.container=j(B).eq(0),q.onLoadCallback(),q.behavior())}})},closeModal:function(){var k=this;k.modal.removeClass("modal-show"),setTimeout(function(){k.modal.addClass("modal-hide")},25);var q=function(){k.modal.add(k.overlay).remove(),k.doc.off("keydown"+k.namespace)};k.support.animations?k.modal.on(k.animEndEventName,q):q(),k.scope=!1,j.mad_popup_prepare.openInstance.shift()},behavior:function(){var k=this;j(".popup-close",k.modal).add(k.overlay).on(k.eventtype,function(q){q.preventDefault(),k.closeModal()}),k.doc.on("keydown"+k.namespace,function(q){var z=q.keyCode;27===z?(setTimeout(function(){k.closeModal()},25),q.stopImmediatePropagation()):void 0})},onLoadCallback:function(){var k=this.options.on_load;"function"==typeof k&&k.call(this)}}}(jQuery),function(j){j.fn.fitVids=function(k){var q={customSelector:null};if(!document.getElementById("fit-vids-style")){var z=document.createElement("div"),A=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];z.className="fit-vids-style",z.id="fit-vids-style",z.style.display="none",z.innerHTML="­",A.parentNode.insertBefore(z,A)}return k&&j.extend(q,k),this.each(function(){var C=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","iframe[src*='w.soundcloud.com']","object","embed"];q.customSelector&&C.push(q.customSelector);var D=j(this).find(C.join(",")).not("iframe[src^='http://']");D=D.not("object object"),D.each(function(){var E=j(this);if(!("embed"===this.tagName.toLowerCase()&&E.parent("object").length||E.parent(".fluid-video-wrapper").length)){var F="object"===this.tagName.toLowerCase()||E.attr("height")&&!isNaN(parseInt(E.attr("height"),10))?parseInt(E.attr("height"),10):E.height(),G=isNaN(parseInt(E.attr("width"),10))?E.width():parseInt(E.attr("width"),10);if(!E.attr("id")){var I="fitvid"+Math.floor(999999*Math.random());E.attr("id",I)}E.wrap("
    ").parent(".fluid-video-wrapper").css("padding-top",100*(F/G)+"%"),E.removeAttr("height").removeAttr("width")}})})}}(jQuery),function(j){j.fn.customSelect=function(){return this.each(function(){var k=j(this),q=k.children("ul"),z=k.children("select"),A=k.children(".select-title"),B=z.children("option");({init:function(){var C=this;C.href=B.eq(0).data("href")!==void 0,C.process(),C.listeners()},process:function(){k.find("[data-filter]").length?j.each(B,function(C,D){q.append("
  • "+j(D).text()+"
  • ")}):j.each(B,function(C,D){j(D).data("href")===void 0?q.append("
  • "+j(D).text()+"
  • "):q.append("
  • "+j(D).text()+"
  • ")})},listeners:function(){A.on("click",function(){q.slideToggle(400),j(this).toggleClass("active")}),q.on("click","li",function(){var C=j(this).text();A.text(C),q.slideUp(400),z.val(C),A.toggleClass("active")})}}).init()})}}(jQuery),function(j,k){j.searchClick=function(q,z){this.el=j(q),this.init(z)},j.searchClick.DEFAULTS={key_esc:27},j.searchClick.prototype={init:function(q){var z=this;z.o=j.extend({},j.searchClick.DEFAULTS,q),z.key_esc=z.o.key_esc,z.searchWrap=j(".searchform-wrap",z.el),z.searchBtn=j(".search-button",z.el),z.searchClose=j(".close-search-form",z.el),z.searchField=j("#s",z.el),z.event=Modernizr.touch?"touchstart":"click",z.setUp(),z.bind()},setUp:function(){this.transEndEventName={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"}[Modernizr.prefixed("transition")],this.support={animations:Modernizr.csstransitions}},hide:function(){var q=this;q.searchWrap.removeClass("opened").addClass("closed");q.support.animations?q.searchWrap.on(q.transEndEventName,function(){q.searchWrap.removeClass("closed")}):onEndAnimationFn()},bind:function(){this.searchBtn.on(this.event,j.proxy(this.display_show,this)),this.searchClose.on(this.event,j.proxy(function(q){this.display_hide(q,this.key_esc)},this)),this.keyDownHandler(this.key_esc)},display_show:function(){this.searchWrap.hasClass("opened")||(this.searchWrap.addClass("opened"),this.searchField.focus())},display_hide:function(q,z){var A=this;A.searchWrap.hasClass("opened")&&(q.type==A.event||"keydown"==q.type&&q.keyCode===z)&&(q.preventDefault(),A.hide(),A.searchField.blur())},keyDownHandler:function(q){j(k).on("keydown",j.proxy(function(z){this.display_hide(z,q)},this))}},j.fn.extend({searchClick:function(q){return this.length?this.each(function(){var z=j(this),A=z.data("searchClick");A||z.data("searchClick",new j.searchClick(this,"object"==typeof q&&q))}):this}})}(jQuery,window),function(j){function k(q,z){var A,B=this,C=j.proxy(this.process,this);this.$element=j(q).is("body")?j(window):j(q),this.$body=j("body"),this.$scrollElement=this.$element.on("scroll.bs.mad-scroll-spy.data-api",C),this.options=j.extend({},k.DEFAULTS,z),this.selector=(this.options.target||(A=j(q).attr("href"))&&A.replace(/.*(?=#[^\s]+$)/,"")||"")+" li > a",this.offsets=j([]),this.targets=j([]),this.activeTarget=null,setTimeout(function(){B.refresh(),B.process()},50)}k.DEFAULTS={offset:j(".section-main").length?j(".section-main").offset().top:0,applyClass:"current-menu-item"},k.prototype.refresh=function(){var q=this.$element[0]==window?"offset":"position",z=this;this.$body.find(this.selector).map(function(){var A=j(this),B=A.data("target")||A.attr("href"),C=/^#\w/.test(B)&&j(B);return C&&C.length&&[[C[q]().top+(!j.isWindow(z.$scrollElement.get(0))&&z.$scrollElement.scrollTop()),B]]||null}).sort(function(A,B){return A[0]-B[0]}).each(function(){z.offsets.push(this[0]),z.targets.push(this[1])})},k.prototype.process=function(){var E,q=this.$scrollElement.scrollTop()+this.options.offset,z=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,A=z-this.$scrollElement.height(),B=this.offsets,C=this.targets,D=this.activeTarget;if(q>=A)return D!=(E=C.last()[0])&&this.activate(E);for(E=B.length;E--;)D!=C[E]&&q>=B[E]&&(!B[E+1]||q<=B[E+1])&&this.activate(C[E])},k.prototype.activate=function(q){this.activeTarget=q,j(this.selector).parent("."+this.options.applyClass).removeClass(this.options.applyClass);var z=this.selector+"[href=\""+q+"\"]",A=j(z).parent("li").addClass(this.options.applyClass);A.trigger("activate")},j.fn.mad_scrollspy=function(q){return this.each(function(){var z=j(this),A=z.data("bs.madscrollspy");A||z.data("bs.madscrollspy",A=new k(this,"object"==typeof q&&q)),"string"==typeof q&&A[q]()})},j.fn.mad_scrollspy.Constructor=k}(jQuery),function(j){j.madScroll=function(k,q){this.el=j(k),this.o=j.extend({},j.madScroll.DEFAULTS,q),this.selector="a[href*=\"#\"]:not([href=\"#\"])";this.el.find(this.selector).length&&this.init()},j.madScroll.DEFAULTS={body:"",duration:1200,easing:"easeInOutExpo"},j.madScroll.prototype={init:function(){this.touch=Modernizr.touch,this.eventtype=Modernizr.touch?"touchstart":"click",this.window=j(window),this.events()},events:function(){var k=this;k.o.body.mad_scrollspy(k.o.body.data());var q=window.location.hash.replace(/\//g,""),z=j(q);z.length&&k.window.on("scroll.hash_scroll",function(){setTimeout(function(){k.window.off("scroll.hash_scroll").scrollTop(z.offset().top)},10)}),k.el.on(k.eventtype,k.selector,function(A){var B=this.hash.replace(/\//g,"");if(""!=B&&"#"!=B){var C=j(B);C.length&&(k.sectionToAnimate(B,C),A.preventDefault())}})},sectionToAnimate:function(k,q){var z=this,A=q.offset().top;j("html, body").stop(!0,!0).animate({scrollTop:A},{duration:z.o.duration,easing:z.o.easing,complete:function(){window.history.replaceState&&window.history.replaceState("","",k)}})}},j.fn.madscroll=function(k){return this.each(function(){var q=j(this),z=q.data("mad.scroll");z||q.data("mad.scroll",z=new j.madScroll(this,"object"==typeof k&&k)),"string"==typeof k&&z[k]()})}}(jQuery),function(j,k){function q(z,A){this.el=j(z),this.init(A)}q.DEFAULTS={sticky:!0,animatedCSS:!0},q.prototype={init:function(z){var A=this;A.window=j(k),A.options=j.extend({},q.DEFAULTS,z),A.goTop=j("").appendTo(A.el),A.support={touch:Modernizr.touch,animations:Modernizr.csstransitions&&Modernizr.cssanimations},A.event=A.support.touch?"touchstart":"click",A.refresh(),A.navInit.init(this),A.search.init(A),A.options.sticky&&!A.support.touch&&(A.sticky.stickySet.call(A,A.window),A.window.on("scroll",function(B){A.sticky.stickyInit.call(A,B.currentTarget)})),j.fn.madscroll&&A.nav.madscroll({body:A.el,data:A.stickydata}),A.window.on("scroll",function(B){A.gotoTop.scrollHandler.call(A,B.currentTarget)}),A.support.animations&&(A.options.animatedCSS&&!A.support.touch?A.animateCSS.call(A):A.el.removeClass("animated")),A.loginWithAjax(),A.searchChosen(),A.gotoTop.clickHandler(A)},elements:{"body.logged-in.admin-bar":"logged",".menu_wrap":"menuWrap","#navigation":"nav","#theme-wrapper":"wrapper","#mobile-advanced":"navMobile","#header":"header",".header-in":"headerIn",".searchform-wrap":"searchform"},$:function(z){return j(z)},refresh:function(){for(var z in this.elements)this[this.elements[z]]=this.$(z)},loginWithAjax:function(){j(".lwa-modal").length&&(j(".js-lwa-open-register-form, .js-lwa-open-login-form").on("click",function(z){z.preventDefault(),j(".js-lwa-open-register-title, .js-lwa-open-login-title, .flatastic-modal-button, .js-lwa-login, .js-lwa-register").toggleClass("flatastic-form-visible")}),j(".js-lwa-open-remember-form").on("click",function(z){z.preventDefault(),j(".js-lwa-remember").addClass("flatastic-form-visible"),j(".js-lwa-open-login-form, .js-lwa-login, .js-lwa-register").removeClass("flatastic-form-visible"),j(".foot-modal-login").css({display:"none"})}),j(".js-lwa-close-remember-form").on("click",function(z){z.preventDefault(),j(".js-lwa-open-login-form, .js-lwa-remember").removeClass("flatastic-form-visible"),j(".js-lwa-open-register-form, .js-lwa-login").addClass("flatastic-form-visible"),j(".foot-modal-login").css({display:"block"})}))},navInit:{init:function(z){this.createResponsiveButtons.call(z),this.navProcess(z),z.support.touch&&(this.touchNavMobileNavigation(z),this.touchNavHeaderNavigation(z))},touchNavMobileNavigation:function(z){var A=this;z.navMobile.on(z.event,"a",function(B){var C=j(this).parent("li"),D=C.children("ul.sub-menu, ul.submenu, ul.children, .mega_dropdown");C.hasClass("li.menu-item-has-children, li.page_item_has_children")||D.length&&(B.preventDefault(),D.slideToggle(function(){A.applyHeight.call(z),C.toggleClass("open-menu")}))})},touchNavHeaderNavigation:function(z){var A=!1;j("#header li.menu-item-has-children > a, li.cat-parent > a, #header li.page_item_has_children > a").on(z.event,function(B){A!=this&&(B.preventDefault(),A=this)}),z.navMobile.find("a").off(z.event)},navProcess:function(z){z.navInit.touchNav(z,z.$window),j(k).resize(function(A){setTimeout(function(){z.navInit.touchNav(z,A.currentTarget)},50)})},applyHeight:function(){var z=this,A=j(k).height(),B;B=z.navMobile.children(".menu_holder").length?z.navMobile.children(".menu_holder").outerHeight(!0)+10:z.navMobile.children("ul").outerHeight(!0),A>B&&(B=A),z.wrapper.css({height:B}).addClass("active")},touchNav:function(z,A){var B=this;z.support.touch||993>j(A).width()?(!z.navMobile.children().length&&(z.nav.children("#mega_main_menu").length?z.navMobile.append(z.nav.children().html()):z.navMobile.append(z.nav.html())),z.navButton.on(z.event,function(C){C.preventDefault(),z.wrapper.is(".active")||B.applyHeight.call(z)}),z.navHide.on(z.event,function(C){C.preventDefault(),z.wrapper.is(".active")&&(j("html, body").animate({scrollTop:0},0),z.wrapper.css({height:"auto"}).removeClass("active"))})):z.navMobile.children().remove()},createResponsiveButtons:function(){this.navButton=j("",{id:"mobile-button","class":"mobile-button"}).insertBefore(this.nav),this.navHide=j("",{id:"advanced-menu-hide",href:"javascript:void(0)"}).insertBefore(this.navMobile)}},removeAttr:function(){959",{"class":"spacer"}).insertBefore(A);var C=A.outerHeight(!0);z.header.hasClass("type-5")&&(C=j(".h_top_part").outerHeight(!0));var D={offset:B,height:C};j.data(A,"data",D),z.stickydata=D}},stickyInit:function(z){var B,A=this,C=A.menuWrap;(A.header.hasClass("type-2")||A.header.hasClass("type-5"))&&(C=A.headerIn),C.length&&(B=j.data(C,"data"),A.sticky.stickyAction(B,z,A))},stickyAction:function(z,A,B){var C=j(A).scrollTop(),D=B.menuWrap;B.header.hasClass("type-2")&&(D=B.headerIn),B.header.hasClass("type-5")&&(D=B.header),C>z.offset?(B.spacer.css({height:z.height}),!D.hasClass("sticky")&&D.addClass("sticky")):(B.spacer.css({height:"auto"}),D.hasClass("sticky")&&D.removeClass("sticky"))}},searchChosen:function(){j(".search_category").length&&j(".search_category select").chosen({disable_search_threshold:10})},gotoTop:{scrollHandler:function(z){200 [class*=\"animate-\"]").length&&j(".product-filter > [class*=\"animate-\"]").waypointSynchronise({container:".product-filter",delay:200,offset:1e3}),j(".products [class*=\"animate-\"]").length&&j(".products [class*=\"animate-\"]").waypointSynchronise({container:".products",delay:200,offset:700}),j(".banner-area[class*=\"animate-\"]").length&&j(".banner-area[class*=\"animate-\"]").waypointSynchronise({container:".banner-area",delay:200,offset:800}),j(".product-brands [class*=\"animate-\"]").length&&j(".product-brands [class*=\"animate-\"]").waypointSynchronise({container:".product-brands",delay:200,offset:830}),j(".post-carousel [class*=\"animate-\"]").length&&j(".post-carousel [class*=\"animate-\"]").waypointSynchronise({container:".post-carousel",delay:200,offset:830}),j(".tm-item [class*=\"animate-\"]").length&&j(".tm-item [class*=\"animate-\"]").waypointSynchronise({container:".tm-item",delay:200,offset:830}),j(".product-carousel [class*=\"animate-\"]").length&&j(".product-carousel [class*=\"animate-\"]").waypointSynchronise({container:".product-carousel",delay:200,offset:700}),j(".portfolio-items [class*=\"animate-\"]").length&&j(".portfolio-items [class*=\"animate-\"]").waypointSynchronise({container:".portfolio-items",delay:200,offset:700}),j(".info-block[class*=\"animate-\"]").length&&j(".info-block[class*=\"animate-\"]").waypointSynchronise({container:".wpb_wrapper",delay:200,offset:"80%"}),j(".pricing-table[class*=\"animate-\"]").length&&j(".pricing-table[class*=\"animate-\"]").waypointSynchronise({container:".wpb_wrapper",delay:200,offset:700})}},j.fn.Temp=function(z){return this.each(function(){var A=j(this),B=A.data("Temp");B||A.data("Temp",new q(this,"object"==typeof z&&z))})}}(jQuery,window),function(j,k){j.extend({browserSelector:function(){var q=k.userAgent,z=q.toLowerCase(),A=function(H){return-1ha&&(fa.offsetHeight<=ha||ga.offsetHeight<=ha)){var ja=!1,ka=function(){ja||ga.scrollHeight==document.height||(ja=!0,setTimeout(function(){ga.style.height=document.height+"px",ja=!1},500))};ga.style.height="auto",setTimeout(ka,10);if(V=new ea(ka),V.observe(fa,{attributes:!0,childList:!0,characterData:!1}),T.offsetHeight<=ha){var ma=document.createElement("div");ma.style.clear="both",fa.appendChild(ma)}}if(-1