(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');$.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;})(); ;/* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built in easing capabilities added In jQuery 1.1 * to offer multiple easing options * * TERMS OF USE - jQuery Easing * * Open source under the BSD License. * * Copyright å© 2008 George McGinley Smith * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this list of * conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list * of conditions and the following disclaimer in the documentation and/or other materials * provided with the distribution. * * Neither the name of the author nor the names of contributors may be used to endorse * or promote products derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * */ jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(c,d){if(void 0===d||d===!1)return!0;if(e=c.split("_"),e.length>1){var f=b.find(p+"-"+e[0]);if(f.length>0){var g=e[1];"replaceWith"===g?f[0]!==d[0]&&f.replaceWith(d):"img"===g?f.is("img")?f.attr("src",d):f.replaceWith(a("").attr("src",d).attr("class",f.attr("class"))):f.attr(e[1],d)}}else b.find(p+"-"+c).html(d)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("
    ");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'
    ',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'
    ',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()});;(function(e){e.simplePlaceholder={placeholderClass:null,hidePlaceholder:function(){var t=e(this);if(t.val()==t.attr("placeholder")&&t.data(e.simplePlaceholder.placeholderData)){t.val("").removeClass(e.simplePlaceholder.placeholderClass).data(e.simplePlaceholder.placeholderData,false)}},showPlaceholder:function(){var t=e(this);if(t.val()==""){t.val(t.attr("placeholder")).addClass(e.simplePlaceholder.placeholderClass).data(e.simplePlaceholder.placeholderData,true)}},preventPlaceholderSubmit:function(){e(this).find(".simple-placeholder").each(function(t){var n=e(this);if(n.val()==n.attr("placeholder")&&n.data(e.simplePlaceholder.placeholderData)){n.val("")}});return true}};e.fn.simplePlaceholder=function(t){if(document.createElement("input").placeholder==undefined){var n={placeholderClass:"placeholding",placeholderData:"simplePlaceholder.placeholding"};if(t)e.extend(n,t);e.extend(e.simplePlaceholder,n);this.each(function(){var t=e(this);t.focus(e.simplePlaceholder.hidePlaceholder);t.blur(e.simplePlaceholder.showPlaceholder);t.data(e.simplePlaceholder.placeholderData,false);if(t.val()==""){t.val(t.attr("placeholder"));t.addClass(e.simplePlaceholder.placeholderClass);t.data(e.simplePlaceholder.placeholderData,true)}t.addClass("simple-placeholder");e(this.form).submit(e.simplePlaceholder.preventPlaceholderSubmit)})}return this}})(jQuery); /*! * imagesLoaded PACKAGED v3.1.4 * JavaScript is all like "You images are done yet or what?" * MIT License */ (function(){function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var i=e.prototype,r=this,o=r.EventEmitter;i.getListeners=function(e){var t,n,i=this._getEvents();if("object"==typeof e){t={};for(n in i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n])}else t=i[e]||(i[e]=[]);return t},i.flattenListeners=function(e){var t,n=[];for(t=0;e.length>t;t+=1)n.push(e[t].listener);return n},i.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},i.addListener=function(e,n){var i,r=this.getListenersAsObject(e),o="object"==typeof n;for(i in r)r.hasOwnProperty(i)&&-1===t(r[i],n)&&r[i].push(o?n:{listener:n,once:!1});return this},i.on=n("addListener"),i.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},i.once=n("addOnceListener"),i.defineEvent=function(e){return this.getListeners(e),this},i.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},i.removeListener=function(e,n){var i,r,o=this.getListenersAsObject(e);for(r in o)o.hasOwnProperty(r)&&(i=t(o[r],n),-1!==i&&o[r].splice(i,1));return this},i.off=n("removeListener"),i.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},i.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},i.manipulateListeners=function(e,t,n){var i,r,o=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)o.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(r=t[i])&&("function"==typeof r?o.call(this,i,r):s.call(this,i,r));return this},i.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if("string"===n)delete i[e];else if("object"===n)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},i.removeAllListeners=n("removeEvent"),i.emitEvent=function(e,t){var n,i,r,o,s=this.getListenersAsObject(e);for(r in s)if(s.hasOwnProperty(r))for(i=s[r].length;i--;)n=s[r][i],n.once===!0&&this.removeListener(e,n.listener),o=n.listener.apply(this,t||[]),o===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},i.trigger=n("emitEvent"),i.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},i.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},i._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},i._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return r.EventEmitter=o,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}).call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,i=function(){};n.addEventListener?i=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(i=function(e,n,i){e[n+i]=i.handleEvent?function(){var n=t(e);i.handleEvent.call(i,n)}:function(){var n=t(e);i.call(e,n)},e.attachEvent("on"+n,e[n+i])});var r=function(){};n.removeEventListener?r=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(r=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(i){e[t+n]=void 0}});var o={bind:i,unbind:r};"function"==typeof define&&define.amd?define("eventie/eventie",o):e.eventie=o}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,i){return t(e,n,i)}):"object"==typeof exports?module.exports=t(e,require("eventEmitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(this,function(e,t,n){function i(e,t){for(var n in t)e[n]=t[n];return e}function r(e){return"[object Array]"===d.call(e)}function o(e){var t=[];if(r(e))t=e;else if("number"==typeof e.length)for(var n=0,i=e.length;i>n;n++)t.push(e[n]);else t.push(e);return t}function s(e,t,n){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=i({},this.options),"function"==typeof t?n=t:i(this.options,t),n&&this.on("always",n),this.getImages(),a&&(this.jqDeferred=new a.Deferred);var r=this;setTimeout(function(){r.check()})}function c(e){this.img=e}function f(e){this.src=e,v[e]=this}var a=e.jQuery,u=e.console,h=u!==void 0,d=Object.prototype.toString;s.prototype=new t,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];"IMG"===n.nodeName&&this.addImage(n);for(var i=n.querySelectorAll("img"),r=0,o=i.length;o>r;r++){var s=i[r];this.addImage(s)}}},s.prototype.addImage=function(e){var t=new c(e);this.images.push(t)},s.prototype.check=function(){function e(e,r){return t.options.debug&&h&&u.log("confirm",e,r),t.progress(e),n++,n===i&&t.complete(),!0}var t=this,n=0,i=this.images.length;if(this.hasAnyBroken=!1,!i)return this.complete(),void 0;for(var r=0;i>r;r++){var o=this.images[r];o.on("confirm",e),o.check()}},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var n=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[n](t)}})},a&&(a.fn.imagesLoaded=function(e,t){var n=new s(this,e,t);return n.jqDeferred.promise(a(this))}),c.prototype=new t,c.prototype.check=function(){var e=v[this.img.src]||new f(this.img.src);if(e.isConfirmed)return this.confirm(e.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 t=this;e.on("confirm",function(e,n){return t.confirm(e.isLoaded,n),!0}),e.check()},c.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var v={};return f.prototype=new t,f.prototype.check=function(){if(!this.isChecked){var e=new Image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},f.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},f.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},f.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},f.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},f.prototype.unbindProxyEvents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s});;if(window.$us===undefined)window.$us={};jQuery.fn.usMod=function(mod,value){if(this.length==0)return this;if(value===false){this.get(0).className=this.get(0).className.replace(new RegExp('(^| )'+mod+'\_[a-z0-9]+( |$)'),'$2');return this;} var pcre=new RegExp('^.*?'+mod+'\_([a-z0-9]+).*?$'),arr;if(value===undefined){return(arr=pcre.exec(this.get(0).className))?arr[1]:false;} else{this.usMod(mod,false).get(0).className+=' '+mod+'_'+value;return this;}};Function.prototype.usBind=function(scope){var self=this;return function(){return self.apply(scope,arguments);};};jQuery.isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);jQuery('html').toggleClass('no-touch',!jQuery.isMobile);!function($){"use strict";function USCanvas(options){var defaults={disableEffectsWidth:900,disableStickyHeaderWidth:900,headerScrollBreakpoint:100,responsive:true};this.options=$.extend({},defaults,options||{});this.$window=$(window);this.$document=$(document);this.$container=$('.l-canvas');this.$html=$('html');this.$body=$('.l-body');this.$htmlBody=$('html, body');this.$header=this.$container.find('.l-header');this.$main=this.$container.find('.l-main');this.$titlebar=this.$container.find('.l-titlebar');this.$sections=this.$container.find('.l-section');this.$firstSection=this.$sections.first();this.$fullscreenSections=this.$sections.filter('.height_full');this.$topLink=$('.w-toplink');this.sidebar=this.$container.usMod('sidebar');this.type=this.$container.usMod('type');this._headerLayout=this.$header.usMod('layout');this.headerLayout=this._headerLayout;this._headerPos=this.$header.usMod('pos');this.headerPos=this._headerPos;this.headerBg=this.$header.usMod('bg');this.rtl=this.$body.hasClass('rtl');this.scrolledHeaderOccupiedHeight=0;if(this._headerLayout=='sided'){this.$topSubheader=$('
    ');this.$topSubheaderH=this.$topSubheader.children('.l-subheader-h');this.$middleSubheaderH=this.$header.find('.l-subheader.at_middle .l-subheader-h');this.$headerContacts=this.$header.find('.w-contacts');this.$headerLang=this.$header.find('.w-lang');this.$headerSocials=this.$header.find('.w-socials');this.$headerCart=this.$header.find('.w-cart');this.$headerSearch=this.$header.find('.w-search');this.$headerNav=this.$header.find('.w-nav');} this._events={scroll:this.scroll.usBind(this),resize:this.resize.usBind(this)};this.$window.on('scroll',this._events.scroll);this.$window.on('resize load',this._events.resize);setTimeout(this._events.resize,25);setTimeout(this._events.resize,75);this.$container.on('contentChange',function(){if(this.headerLayout=='sided'){this.docHeight=this.$document.height();}}.usBind(this));} USCanvas.prototype={switchHeaderLayout:function(to){if(this.headerLayout=='sided'&&to=='extended'){this.$topSubheader.prependTo(this.$header);this.$topSubheaderH.append(this.$headerContacts,this.$headerLang,this.$headerSocials);this.$header.resetInlineCSS('position','top','bottom');this.$middleSubheaderH.append(this.$headerCart,this.$headerSearch,this.$headerNav);this.$body.removeClass('header_aside');if($us.nav!=undefined)$us.nav.switchTo(null,'hor');} else if(this.headerLayout=='extended'&&to=='sided'){this.$middleSubheaderH.append(this.$headerNav,this.$headerSearch,this.$headerCart);this.$middleSubheaderH.append(this.$headerContacts,this.$headerSocials,this.$headerLang);this.$topSubheader.detach();this.$body.addClass('header_aside');if($us.nav!=undefined)$us.nav.switchTo(null,'ver');} this.$header.usMod('layout',to);this.headerLayout=to;},scroll:function(){var scrollTop=parseInt(this.$window.scrollTop());this.$topLink.toggleClass('active',(scrollTop>=this.winHeight));if(this.headerPos=='fixed'){if(this.headerLayout!='sided'){this.$header.toggleClass('sticky',scrollTop>=this.options.headerScrollBreakpoint);} else if(this.headerLayout=='sided'&&this.headerHeight>this.winHeight){var scrollRangeDiff=this.headerHeight-this.winHeight;if(this._sidedHeaderScrollRange===undefined){this._sidedHeaderScrollRange=[0,scrollRangeDiff];} if(scrollTop<=this._sidedHeaderScrollRange[0]){this._sidedHeaderScrollRange[0]=Math.max(0,scrollTop);this._sidedHeaderScrollRange[1]=this._sidedHeaderScrollRange[0]+scrollRangeDiff;this.$header.css({position:'fixed',top:0,bottom:'auto'});} else if(this._sidedHeaderScrollRange[0]this.options.disableStickyHeaderWidth)?'fixed':'static';if(this.headerLayout=='sided'){if($us.nav!=undefined&&this.winWidth<=$us.nav.options.mobileWidth){newHeaderPos='static';} if(newHeaderPos=='fixed'){this.docHeight=this.$document.height();this.htmlTopMargin=parseInt(this.$html.css('margin-top'));this.headerHeight=this.$middleSubheaderH.outerHeight();if(this.headerHeight<=this.winHeight){this.$header.resetInlineCSS('position','top','bottom');delete this._sidedHeaderScrollRange;}}} if(newHeaderPos!=this.headerPos){this.headerPos=newHeaderPos;this.$header.usMod('pos',newHeaderPos);if(newHeaderPos!='fixed'){this.$header.removeClass('sticky');}}} if(this.headerLayout=='sided'){this.scrolledHeaderOccupiedHeight=0;} else if(this.headerPos=='static'){this.scrolledHeaderOccupiedHeight=0;} else if(this.winWidth<=900&&(this.headerLayout=='advanced'||this.headerLayout=='centered')){this.scrolledHeaderOccupiedHeight=50;} else{var isSticky=this.$header.hasClass('sticky');this.$header.addClass('notransition');if(!isSticky){this.$header.addClass('sticky');} this.scrolledHeaderOccupiedHeight=this.$header.height();if(!isSticky){this.$header.removeClass('sticky');} setTimeout(function(){this.$header.removeClass('notransition');}.bind(this),50);} if(this.headerPos=='static'&&this.headerBg=='transparent'){this.$header.toggleClass('transparent',this.winWidth>900);} this.$body.toggleClass('disable_effects',(this.winWidth<=this.options.disableEffectsWidth));if(this.$fullscreenSections.length>0){this.$fullscreenSections.each(function(index,section){var $section=$(section),sectionHeight=this.winHeight,isFirstSection=(index==0&&this.$titlebar.length==0&&$section.is(this.$firstSection));if(isFirstSection){sectionHeight-=$section.offset().top;} else{sectionHeight-=this.scrolledHeaderOccupiedHeight;} $section.css('min-height',sectionHeight);if($section.hasClass('valign_center')){var $sectionH=$section.find('.l-section-h'),sectionTopPadding=parseInt($section.css('padding-top')),contentHeight=$sectionH.outerHeight(),topMargin;$sectionH.css('margin-top','');var sectionOverlapped=isFirstSection&&this.headerPos=='fixed'&&this.headerBg!='transparent'&&this.headerLayout!='sided';if(this.winWidth<=900&&this.headerLayout=='advanced'||this.headerLayout=='centered'){sectionOverlapped=false;} if(sectionOverlapped){topMargin=Math.max(0,(sectionHeight-sectionTopPadding-contentHeight)/2);}else{topMargin=Math.max(0,(sectionHeight-contentHeight)/2-sectionTopPadding);} $sectionH.css('margin-top',topMargin||'');} $section.find('.upb_row_bg').css('min-height',$section.height());}.usBind(this));this.$container.trigger('contentChange');} this.scroll();}};$us.canvas=new USCanvas($us.canvasOptions||{});}(jQuery);!function($){function USNav(options){var self=this;var defaults={mobileWidth:1000,togglable:false};this.options=$.extend({},defaults,options||{});this.$nav=$('.l-header .w-nav:first');this.$control=this.$nav.find('.w-nav-control');this.$items=this.$nav.find('.w-nav-item');this.$list=this.$nav.find('.w-nav-list.level_1');this.$subItems=this.$list.find('.w-nav-item.menu-item-has-children');this.$subAnchors=this.$list.find('.w-nav-item.menu-item-has-children > .w-nav-anchor');this.$subLists=this.$list.find('.w-nav-item.menu-item-has-children > .w-nav-list');this.$anchors=this.$nav.find('.w-nav-anchor');if(this.$nav.length==0)return;this.type=this.$nav.usMod('type');this._layout=this.$nav.usMod('layout');this.layout=this._layout;this.mobileOpened=false;this.animationType=this.$nav.usMod('animation');var showFn='fadeInCSS',hideFn='fadeOutCSS';if(this.animationType=='height'){showFn='slideDownCSS';hideFn='slideUpCSS';} else if(this.animationType=='mdesign'){showFn='showMD';hideFn='hideMD';} this.$control.on('click',function(){self.mobileOpened=!self.mobileOpened;if(self.mobileOpened){self.$items.filter('.opened').removeClass('opened');self.$subLists.css('height',0);self.$list.slideDownCSS();} else{self.$list.slideUpCSS();} if($us.canvas.headerPos=='fixed'&&self.layout=='hor')self.setFixedMobileMaxHeight();});this._events={toggle:function(e){if(self.type!='mobile')return;e.stopPropagation();e.preventDefault();var $item=$(this).closest('.w-nav-item'),$sublist=$item.children('.w-nav-list');if($item.hasClass('opened')){$item.removeClass('opened');$sublist.slideUpCSS();} else{$item.addClass('opened');$sublist.slideDownCSS();}},resize:this.resize.usBind(this)};if(this.options.togglable){this.$subAnchors.on('click',this._events.toggle);} else{this.$list.find('.w-nav-item.menu-item-has-children > .w-nav-anchor > .w-nav-arrow').on('click',this._events.toggle);} this.$subItems.each(function(){var $this=$(this),$parentItem=$this.parent().closest('.w-nav-item');if($parentItem.length==0||$parentItem.usMod('columns')===false)$this.addClass('togglable');});if(!$us.canvas.$html.hasClass('no-touch')){this.$list.find('.w-nav-item.menu-item-has-children.togglable > .w-nav-anchor').on('click',function(e){if(self.type=='mobile')return;e.preventDefault();var $this=$(this),$item=$this.parent(),$list=$item.children('.w-nav-list');if($item.hasClass('opened'))return location.assign($this.attr('href'));$list[showFn]();$item.addClass('opened');var outsideClickEvent=function(e){if(jQuery.contains($item[0],e.target))return;$item.removeClass('opened');$list[hideFn]();$us.canvas.$body.off('touchstart',outsideClickEvent);};$us.canvas.$body.on('touchstart',outsideClickEvent);});} else{self.$subItems.filter('.togglable').on('mouseenter',function(){if(self.type=='mobile')return;var $list=jQuery(this).children('.w-nav-list');$list[showFn]();}).on('mouseleave',function(){if(self.type=='mobile')return;var $list=jQuery(this).children('.w-nav-list');$list[hideFn]();});} this.$anchors.on('click',function(){if(self.type!='mobile'||self.layout!='hor')return;if(self.options.togglable&&jQuery(this).closest('.w-nav-item').hasClass('menu-item-has-children'))return;self.$list.slideUpCSS();self.mobileOpened=false;});$us.canvas.$window.on('resize',this._events.resize);setTimeout(this._events.resize,50);} USNav.prototype={switchTo:function(type,layout){type=type||this.type;layout=layout||this.layout;if(this.type=='desktop'){}else if(this.type=='mobile'){this.$list.css('height','auto').resetInlineCSS('max-height','display','opacity');} this.$items.removeClass('opened');if(type=='desktop'){this.$items.filter('.togglable').children('.w-nav-list').css('display','none');this.$subLists.css('height','auto');}else if(type=='mobile'){if(layout!='ver'){this.mobileOpened=false;this.$list.css('height',0);} this.$subLists.css('height',0);} if(layout=='ver'){this.$list.css('height','auto').resetInlineCSS('min-height','max-height');this.$list.css('display','block');} if(type!=this.type){this.$nav.usMod('type',this.type=type);} if(layout!=this.layout){this.$nav.usMod('layout',this.layout=layout);}},setFixedMobileMaxHeight:function(){if($us.canvas.winWidth>$us.canvas.options.disableStickyHeaderWidth){var navListOuterHeight=Math.min(this.$list.outerHeight(),$us.canvas.scrolledHeaderOccupiedHeight),menuOffset=$us.canvas.scrolledHeaderOccupiedHeight-navListOuterHeight;this.$list.css('max-height',$us.canvas.winHeight-menuOffset+'px');} else{this.$list.css('max-height','auto');}},resize:function(){var nextType=($us.canvas.winWidth<=this.options.mobileWidth)?'mobile':'desktop';if(nextType!=this.type){if(nextType=='mobile'){this.switchTo(nextType,'hor');}else{this.switchTo(nextType,null);}} if(this.layout=='hor'&&this.type=='mobile'&&$us.canvas.headerPos=='fixed'){this.setFixedMobileMaxHeight();} this.$list.removeClass('hidden');}};$us.nav=new USNav($us.navOptions||{});}(jQuery);!function($){"use strict";function USScroll(options){var defaults={attachOnInit:'.w-nav a[href*="#"], a.w-btn[href*="#"], .w-iconbox a[href*="#"], .w-image a[href*="#"], '+'.vc_icon_element a[href*="#"], .vc_custom_heading a[href*="#"], a.w-portfolio-item-anchor[href*="#"], .widget_nav_menu a[href*="#"], .w-toplink, '+'.w-blog-post-meta-comments a[href*="#"], .w-comments-title a[href*="#"], .w-comments-item-date, a.smooth-scroll[href*="#"]',buttonActiveClass:'active',menuItemActiveClass:'current-menu-item',menuItemAncestorActiveClass:'current-menu-ancestor',animationDuration:1200,animationEasing:'easeInOutQuint'};this.options=$.extend({},defaults,options||{});this.$window=$(window);this.$htmlBody=$('html, body');this.blocks={};this.isScrolling=false;this.waypoints=[];this._events={cancel:this.cancel.usBind(this),scroll:this.scroll.usBind(this),resize:this.resize.usBind(this)};this._canvasTopOffset=0;this.$window.on('resize load',this._events.resize);setTimeout(this._events.resize,75);this.$window.on('scroll',this._events.scroll);setTimeout(this._events.scroll,75);if(this.options.attachOnInit){this.attach(this.options.attachOnInit);} $us.canvas.$container.on('contentChange',this._countAllPositions.usBind(this));if(document.location.hash&&document.location.hash.indexOf('#!')==-1){var hash=document.location.hash,scrollPlace=(this.blocks[hash]!==undefined)?hash:undefined;if(scrollPlace===undefined){try{var $target=$(hash);if($target.length!=0){scrollPlace=$target;}}catch(error){}} if(scrollPlace!==undefined){var keepScrollPositionTimer=setInterval(function(){this.scrollTo(scrollPlace);}.usBind(this),100);var clearHashEvents=function(){setTimeout(function(){clearInterval(keepScrollPositionTimer);$us.canvas.resize();this._countAllPositions();this.scrollTo(scrollPlace);}.usBind(this),100);this.$window.off('load touchstart mousewheel DOMMouseScroll touchstart',clearHashEvents);}.usBind(this);this.$window.on('load touchstart mousewheel DOMMouseScroll touchstart',clearHashEvents);}}} USScroll.prototype={_countPosition:function(hash){this.blocks[hash].top=Math.ceil(this.blocks[hash].target.offset().top-$us.canvas.scrolledHeaderOccupiedHeight-this._canvasTopOffset);this.blocks[hash].bottom=this.blocks[hash].top+this.blocks[hash].target.outerHeight(false);},_countAllPositions:function(){this._canvasTopOffset=$us.canvas.$container.offset().top;for(var hash in this.blocks){if(!this.blocks.hasOwnProperty(hash))continue;this._countPosition(hash);} for(var i=0;i-1))return;if(hash!=''&&hash!='#'){if(this.blocks[hash]===undefined){var $target=$(hash);if($target.length==0)return;if($target.hasClass('g-cols')&&$target.parent().children().length==1){$target=$target.closest('.l-section');} this.blocks[hash]={target:$target};this._countPosition(hash);} if($anchor.hasClass('w-nav-anchor')){var $menuIndicator=$anchor.closest('.w-nav-item');this.blocks[hash].menuItems=(this.blocks[hash].menuItems||$()).add($menuIndicator);var $menuAncestors=$menuIndicator.parents('.menu-item-has-children');if($menuAncestors.length>0){this.blocks[hash].menuAncestors=(this.blocks[hash].menuAncestors||$()).add($menuAncestors);}} else{this.blocks[hash].buttons=(this.blocks[hash].buttons||$()).add($anchor);}} $anchor.on('click',function(event){event.preventDefault();this.scrollTo(hash,true);}.usBind(this));}.usBind(this));},scrollTo:function(place,animate){var placeType,newY;if(place==''||place=='#'){newY=0;placeType='top';} else if(this.blocks[place]!==undefined){newY=this.blocks[place].top;placeType='hash';} else if(place instanceof $){newY=Math.floor(place.offset().top-$us.canvas.scrolledHeaderOccupiedHeight-this._canvasTopOffset);placeType='element';} else{newY=Math.floor(place-$us.canvas.scrolledHeaderOccupiedHeight-this._canvasTopOffset);} var indicateActive=function(){if(placeType=='hash'){this._indicatePosition(place);} else{this.scroll();}}.usBind(this);if(animate){this.isScrolling=true;this.$htmlBody.stop(true,false).animate({scrollTop:newY+'px'},{duration:this.options.animationDuration,easing:this.options.animationEasing,always:function(){this.$window.off('keydown mousewheel DOMMouseScroll touchstart',this._events.cancel);this.isScrolling=false;indicateActive();}.usBind(this)});this.$window.on('keydown mousewheel DOMMouseScroll touchstart',this._events.cancel);} else{this.$htmlBody.stop(true,false).scrollTop(newY);indicateActive();}},cancel:function(){this.$htmlBody.stop(true,false);},addWaypoint:function($elm,offset,fn){$elm=($elm instanceof $)?$elm:$($elm);if($elm.length==0)return;if(typeof offset!='string'||offset.indexOf('%')==-1){offset=parseInt(offset);} var waypoint={$elm:$elm,offset:offset,fn:fn};this._countWaypoint(waypoint);this.waypoints.push(waypoint);},_countWaypoint:function(waypoint){var elmTop=waypoint.$elm.offset().top,winHeight=this.$window.height();if(typeof waypoint.offset=='number'){waypoint.scrollPos=elmTop-winHeight+waypoint.offset;}else{waypoint.scrollPos=elmTop-winHeight+winHeight*parseInt(waypoint.offset)/100;}},scroll:function(){var scrollTop=parseInt(this.$window.scrollTop());if(!this.isScrolling){var activeHash;for(var hash in this.blocks){if(!this.blocks.hasOwnProperty(hash))continue;if(scrollTop>=this.blocks[hash].top&&scrollTopvideoWidth/videoHeight)?parentWidth/videoWidth:parentHeight/videoHeight;$this.width(proportion*videoWidth);$this.height(proportion*videoHeight);poster.width(proportion*videoWidth);poster.height(proportion*videoHeight);centerX=(parentWidth .ult-item-wrap').each(function(index,elm){var $elm=jQuery(elm);$elm.replaceWith($elm.children());});jQuery('.overlay-show').click(function(){window.setTimeout(function(){$us.canvas.$container.trigger('contentChange');},1000);});});!function(){jQuery.fn.resetInlineCSS=function(){for(var index=0;index=2){this.resetInlineCSS('transition','-webkit-transition');prevTimers.map(clearTimeout);this.removeData('animation-timers');} return this;};jQuery.fn.performCSSTransition=function(css,duration,onFinish,easing,delay){duration=duration||250;delay=delay||25;easing=easing||'ease-in-out';var $this=this,transition=[];this.clearPreviousTransitions();for(var attr in css){if(!css.hasOwnProperty(attr))continue;transition.push(attr+' '+(duration/1000)+'s '+easing);} transition=transition.join(', ');$this.css({transition:transition,'-webkit-transition':transition});var timer1=setTimeout(function(){$this.css(css);},delay);var timer2=setTimeout(function(){if(typeof onFinish=='function')onFinish();$this.resetInlineCSS('transition','-webkit-transition');},duration+delay);this.data('animation-timers',timer1+','+timer2);};jQuery.fn.slideDownCSS=function(duration,onFinish,easing,delay){if(this.length==0)return;var $this=this;this.clearPreviousTransitions();this.resetInlineCSS('padding-top','padding-bottom');var timer1=setTimeout(function(){var paddingTop=parseInt($this.css('padding-top')),paddingBottom=parseInt($this.css('padding-bottom'));$this.css({visibility:'hidden',position:'absolute',height:'auto','padding-top':0,'padding-bottom':0,display:'block'});var height=$this.height();$this.css({overflow:'hidden',height:'0px',visibility:'',position:'',opacity:0});$this.performCSSTransition({height:height+paddingTop+paddingBottom,opacity:1,'padding-top':paddingTop,'padding-bottom':paddingBottom},duration,function(){$this.resetInlineCSS('overflow').css('height','auto');if(typeof onFinish=='function')onFinish();},easing,delay);},25);this.data('animation-timers',timer1+',null');};jQuery.fn.slideUpCSS=function(duration,onFinish,easing,delay){if(this.length==0)return;this.clearPreviousTransitions();this.css({height:this.outerHeight(),overflow:'hidden','padding-top':this.css('padding-top'),'padding-bottom':this.css('padding-bottom'),opacity:1});var $this=this;this.performCSSTransition({height:0,'padding-top':0,'padding-bottom':0,opacity:0},duration,function(){$this.resetInlineCSS('overflow','padding-top','padding-bottom').css({display:'none'});if(typeof onFinish=='function')onFinish();},easing,delay);};jQuery.fn.fadeInCSS=function(duration,onFinish,easing,delay){if(this.length==0)return;this.clearPreviousTransitions();this.css({opacity:0,display:'block'});this.performCSSTransition({opacity:1},duration,onFinish,easing,delay);};jQuery.fn.fadeOutCSS=function(duration,onFinish,easing,delay){if(this.length==0)return;var $this=this;this.performCSSTransition({opacity:0},duration,function(){$this.css('display','none');if(typeof onFinish=='function')onFinish();},easing,delay);};jQuery.fn.showMD=function(duration,onFinish,easing,delay){if(this.length==0)return;this.clearPreviousTransitions();this.resetInlineCSS('padding-top','padding-bottom');var paddingTop=parseInt(this.css('padding-top')),paddingBottom=parseInt(this.css('padding-bottom'));this.css({visibility:'hidden',position:'absolute',height:'auto','padding-top':0,'padding-bottom':0,'margin-top':-20,opacity:'',display:'block'});var height=this.height();this.css({overflow:'hidden',height:'0px'}).resetInlineCSS('visibility','position');var $this=this;this.performCSSTransition({height:height+paddingTop+paddingBottom,'margin-top':0,'padding-top':paddingTop,'padding-bottom':paddingBottom},duration||350,function(){$this.resetInlineCSS('overflow','margin-top','padding-top','padding-bottom').css('height','auto');if(typeof onFinish=='function')onFinish();},easing||'cubic-bezier(.23,1,.32,1)',delay||150);};jQuery.fn.hideMD=function(duration,onFinish,easing,delay){if(this.length==0)return;this.clearPreviousTransitions();var $this=this;this.resetInlineCSS('margin-top');this.performCSSTransition({opacity:0},duration||100,function(){$this.css({display:'none'}).resetInlineCSS('opacity');if(typeof onFinish=='function')onFinish();},easing,delay);};var slideIn=function($this,from){if($this.length==0)return;$this.clearPreviousTransitions();$this.css({width:'auto',height:'auto'});var width=$this.width(),height=$this.height();$this.css({width:width,height:height,position:'relative',left:(from=='right')?'100%':'-100%',opacity:0,display:'block'});$this.performCSSTransition({left:'0%',opacity:1},arguments[0]||250,function(){$this.resetInlineCSS('position','left','opacity','display').css({width:'auto',height:'auto'});});},slideOut=function($this,to){if($this.length==0)return;$this.clearPreviousTransitions();$this.css({position:'relative',left:0,opacity:1});$this.performCSSTransition({left:(to=='left')?'-100%':'100%',opacity:0},arguments[0]||250,function(){$this.css({display:'none'}).resetInlineCSS('position','left','opacity');});};jQuery.fn.slideOutLeft=function(){slideOut(this,'left');};jQuery.fn.slideOutRight=function(){slideOut(this,'right');};jQuery.fn.slideInLeft=function(){slideIn(this,'left');};jQuery.fn.slideInRight=function(){slideIn(this,'right');};}();;(function($){"use strict";$.fn.usMessage=function(){return this.each(function(){var $this=$(this),$closer=$this.find('.w-message-close');$closer.click(function(){$this.wrap('
    ');var $wrapper=$this.parent();$wrapper.css({overflow:'hidden',height:$this.outerHeight(true)});$wrapper.performCSSTransition({height:0},400,function(){$wrapper.remove();$us.canvas.$container.trigger('contentChange');},'cubic-bezier(.4,0,.2,1)');});});};$(function(){$('.w-message').usMessage();});})(jQuery);jQuery(function($){$(document).on('focus','.w-form-row-field input, .w-form-row-field textarea',function(){$(this).closest('.w-form-row').addClass('focused');});$(document).on('blur','.w-form-row-field input, .w-form-row-field textarea',function(){$(this).closest('.w-form-row').removeClass('focused');});});(function($){"use strict";$.fn.wLang=function(){return this.each(function(){var $this=$(this),langList=$this.find('.w-lang-list'),currentLang=$this.find('.w-lang-current');if($this.usMod('layout')=='dropdown'){var closeListEvent=function(e){if($this.has(e.target).length===0){langList.slideUp(200,function(){$this.removeClass('active');});$us.canvas.$window.off('mouseup touchstart mousewheel DOMMouseScroll touchstart',closeListEvent);}};langList.slideUp(0);currentLang.click(function(){$this.addClass('active');langList.slideDown(200);$us.canvas.$window.on('mouseup touchstart mousewheel DOMMouseScroll touchstart',closeListEvent);});}});};$(function(){$('.w-lang').wLang();});})(jQuery);(function($){"use strict";$us.WBlog=function(container,options){this.init(container,options);};$us.WBlog.prototype={init:function(container,options){this.$container=$(container);this.$filters=this.$container.find('.g-filters-item');this.$list=this.$container.find('.w-blog-list');this.$items=this.$container.find('.w-blog-post');this.$pagination=this.$container.find('.g-pagination');this.$loadmore=this.$container.find('.g-loadmore');this.$preloader=this.$container.find('.w-blog-preloader');this.curCategory='';this.paginationType=this.$pagination.length?'regular':(this.$loadmore.length?'ajax':'none');this.items=[];this.loading=false;if(this.paginationType!='none'){var $jsonContainer=this.$container.find('.w-blog-json');if($jsonContainer.length==0)return;this.ajaxData=$jsonContainer[0].onclick()||{};this.ajaxUrl=this.ajaxData.ajax_url||'';this.permalinkUrl=this.ajaxData.permalink_url||'';this.templateVars=this.ajaxData.template_vars||{};this.category=this.templateVars.query_args.category_name||'';this.curCategory=this.category;this.curPage=this.ajaxData.current_page||1;this.perpage=this.ajaxData.perpage||this.$items.length;this.infiniteScroll=this.ajaxData.infinite_scroll||0;$jsonContainer.remove();} if(this.paginationType=='ajax'){if(this.templateVars.query_args.orderby=='rand'){this.$items.each(function(index,item){this.items.push(parseInt(item.getAttribute('data-id')));}.usBind(this));} this.$loadmore.on('click',function(){if(this.curPage=this.ajaxData.max_num_pages){this.$loadmore.addClass('done');}else{this.$loadmore.removeClass('done');this.$loadmore.removeClass('loading');} if(this.infiniteScroll){$us.scroll.addWaypoint(this.$loadmore,'-70%',function(){this.$loadmore.click();}.usBind(this));}} this.$preloader.removeClass('active');}.usBind(this));this.loading=false;}.usBind(this),error:function(){this.$loadmore.removeClass('loading');}.usBind(this)});this.curPage=page;this.curCategory=category;},beforeAppendItems:function($items){},afterAppendItems:function($items){}};$.fn.wBlog=function(options){return this.each(function(){$(this).data('wBlog',new $us.WBlog(this,options));});};})(jQuery);!function($){"use strict";$us.WTabs=function(container,options){this.init(container,options);};$us.WTabs.prototype={init:function(container,options){var defaults={duration:300,easing:'cubic-bezier(.78,.13,.15,.86)'};this.options=$.extend({},defaults,options);this.isRtl=$('.l-body').hasClass('rtl');this.$container=$(container);this.$tabsList=this.$container.find('.w-tabs-list:first');this.$tabs=this.$tabsList.find('.w-tabs-item');this.$sectionsWrapper=this.$container.find('.w-tabs-sections:first');this.$sectionsHelper=this.$sectionsWrapper.children();this.$sections=this.$sectionsHelper.find('.w-tabs-section');this.$headers=this.$sections.children('.w-tabs-section-header');this.$contents=this.$sections.children('.w-tabs-section-content');this.width=0;this.tabWidths=[];this.isTogglable=(this.$container.usMod('type')=='togglable');this.basicLayout=this.$container.hasClass('accordion')?'accordion':(this.$container.usMod('layout')||'default');this.curLayout=this.basicLayout;this.responsive=$us.canvas.options.responsive;this.active=[];this.count=this.$tabs.length;this.minWidth=0;if(this.count==0)return;this.tabs=$.map(this.$tabs.toArray(),$);this.sections=$.map(this.$sections.toArray(),$);this.headers=$.map(this.$headers.toArray(),$);this.contents=$.map(this.$contents.toArray(),$);$.each(this.tabs,function(index){if(this.tabs[index].hasClass('active')){this.active.push(index);} this.tabs[index].add(this.headers[index]).on('click',function(){if(this.curLayout=='accordion'&&this.isTogglable){this.toggleSection(index);} else if(index!=this.active[0]){this.openSection(index);}}.usBind(this));}.usBind(this));this._events={resize:this.resize.usBind(this),contentChanged:function(){$us.canvas.$container.trigger('contentChange');}};this.switchLayout(this.curLayout);if(this.curLayout!='accordion'||!this.isTogglable){this.openSection(this.active[0]);} setTimeout(this._events.resize,50);$us.canvas.$window.on('resize load',this._events.resize);},switchLayout:function(to){this.cleanUpLayout(this.curLayout);this.prepareLayout(to);this.curLayout=to;},cleanUpLayout:function(from){if(from=='default'||from=='timeline'||from=='modern'||from=='trendy'){this.$sectionsWrapper.clearPreviousTransitions().resetInlineCSS('width','height');this.$sectionsHelper.clearPreviousTransitions().resetInlineCSS('position','width','left');this.$sections.resetInlineCSS('width');this.$container.removeClass('autoresize');} else if(from=='accordion'){this.$container.removeClass('accordion');this.$contents.resetInlineCSS('height','padding-top','padding-bottom','display','opacity');} else if(from=='ver'){this.$contents.resetInlineCSS('height','padding-top','padding-bottom','display','opacity');}},prepareLayout:function(to){if(to=='default'||to=='timeline'||to=='modern'||to=='trendy'){this.$container.addClass('autoresize');this.$sectionsHelper.css('position','absolute');} else if(to=='accordion'){this.$container.addClass('accordion');this.$contents.hide();for(var i=0;i'+'
    ';this.items[id]=$(itemHtml).appendTo(this.$list);$newItems.push(this.items[id][0]);loadIds.push(showIds[i]);}.usBind(this));if(loadIds.length>0){var $insertedItems=$();$.ajax({type:'post',url:this.ajaxUrl,data:{action:'us_ajax_portfolio',ids:loadIds.join(','),template_vars:this.templateVars},success:function(html){var $container=$('
    ',{html:html}),$items=$container.children(),isotope=this.$list.data('isotope');$items.each(function(index,item){var $item=$(item),itemID=parseInt($item.data('id'));$item.imagesLoaded(function(){this.items[itemID].attr('class',$item.attr('class')).attr('style',$item.attr('style'));this.itemLoaded(itemID,$item);this.items[itemID].html($item.html());$insertedItems=$insertedItems.add(this.items[itemID]);if($insertedItems.length>=loadIds.length){$container.remove();this.itemsLoaded($insertedItems);} if(isotope){if(this.itemWidth!=1){if(this.$container.find('.w-portfolio-item.size_1x1').length){this.itemWidth=1;this.isotopeOptions.masonry.columnWidth='.size_1x1';}else if(this.$container.find('.w-portfolio-item.size_1x2').length){this.itemWidth=1;this.isotopeOptions.masonry.columnWidth='.size_1x2';}else{this.itemWidth=2;this.isotopeOptions.masonry.columnWidth='.w-portfolio-item';} if(this.itemWidth==1){this.$list.isotope(this.isotopeOptions);}} this.$list.isotope('layout');}}.usBind(this));}.usBind(this));}.usBind(this)});} this.$list.isotope({filter:function(){return(showIds.indexOf(parseInt(this.getAttribute('data-id')))!=-1);}});if(loadIds.length>0){this.$list.isotope('insert',$newItems);} this.curPage=page;this.curCategory=category;this.renderPagination();},renderPagination:function(){if(this.paginationType=='ajax'){var maxPage=Math.ceil(this.order[this.curCategory].length/this.perpage);this.$loadmore[(this.curPage1){if(this.curPage>1){html+='';}else{html+='<';} for(var i=1;i<=maxPage;i++){if(i!=this.curPage){html+=''+i+'';}else{html+=''+i+'';}} if(this.curPage>';}else{html+='>';}} this.$navLinks.html(html);}},pageUrl:function(page){return(page==1)?this.location:(this.location+'page/'+page+'/');},itemLoaded:function($item){},itemsLoaded:function($items){}};$.fn.wPortfolio=function(options){return this.each(function(){$(this).data('wPortfolio',new $us.WPortfolio(this,options));});};if($.fn.magnificPopup){$('.w-portfolio-list').each(function(){$(this).magnificPopup({type:'image',delegate:'a[ref=magnificPopupPortfolio]:visible',gallery:{enabled:true,navigateByImgClick:true,preload:[0,1],tPrev:$us.langOptions.magnificPopup.tPrev,tNext:$us.langOptions.magnificPopup.tNext,tCounter:$us.langOptions.magnificPopup.tCounter},removalDelay:300,mainClass:'mfp-fade',fixedContentPos:false});});}}(jQuery);jQuery(function($){var $cart=$('.w-cart');if($cart.length==0)return;var $quantity=$cart.find('.w-cart-quantity');var updateCart=function(){var $quantities=$cart.find('.quantity'),total=0;$quantities.each(function(){var quantity,text=$(this).text()+'',matches=text.match(/\d+/g);if(matches){quantity=parseInt(matches[0],10);total+=quantity;}});if(total>0){$quantity.html(total);$cart.addClass('has_items');}else{$quantity.html('0');$cart.removeClass('has_items');}};updateCart();$(document.body).bind('wc_fragments_loaded',function(){updateCart();});$(document.body).bind('wc_fragments_refreshed',function(){updateCart();});var $notification=$cart.find('.w-cart-notification'),$productName=$notification.find('.product-name'),$cartLink=$cart.find('.w-cart-link'),$dropdown=$cart.find('.w-cart-dropdown'),$quantity=$cart.find('.w-cart-quantity'),productName=$productName.text(),animationType=(window.$us!==undefined&&window.$us.nav!==undefined)?$us.nav.animationType:'opacity',showFn='fadeInCSS',hideFn='fadeOutCSS',opened=false;if(animationType=='height'){showFn='slideDownCSS';hideFn='slideUpCSS';} else if(animationType=='mdesign'){showFn='showMD';hideFn='hideMD';} $notification.on('click',function(){$notification[hideFn]();});jQuery('body').bind('added_to_cart',function(event,fragments,cart_hash,$button){if(event===undefined)return;$quantity.html(parseInt($quantity.html(),10)+1);$cart.addClass('has_items');productName=$button.closest('.product').find('.product-meta h3:first').text();$productName.html(productName);$notification[showFn](undefined,function(){var newTimerId=setTimeout(function(){$notification[hideFn]();},3000);$notification.data('animation-timers',$notification.data('animation-timers')+','+newTimerId);});});if($.isMobile){var outsideClickEvent=function(e){if(jQuery.contains($cart[0],e.target))return;$dropdown[hideFn]();$us.canvas.$body.off('touchstart',outsideClickEvent);opened=false;};$cartLink.on('click',function(e){if(!opened){e.preventDefault();$dropdown[showFn]();$us.canvas.$body.on('touchstart',outsideClickEvent);}else{$dropdown[hideFn]();$us.canvas.$body.off('touchstart',outsideClickEvent);} opened=!opened;});}else{var hideTimer=null;$cartLink.on('hover',function(){if(opened)return;$dropdown[showFn]();opened=true;});$cart.hover(function(){clearTimeout(hideTimer);},function(){clearTimeout(hideTimer);hideTimer=setTimeout(function(){if(!opened)return;$dropdown[hideFn]();opened=false;},250);});}});!function($){"use strict";$us.wUsLogin=function(container,options){this.$container=$(container);this.$form=this.$container.find('.w-form');this.$profile=this.$container.find('.w-profile');var $jsonContainer=this.$container.find('.w-profile-json');this.jsonData=$jsonContainer[0].onclick()||{};$jsonContainer.remove();this.ajaxUrl=this.jsonData.ajax_url||'';this.logoutRedirect=this.jsonData.logout_redirect||'';$.ajax({type:'post',url:this.ajaxUrl,data:{action:'us_ajax_user_info',logout_redirect:this.logoutRedirect},success:function(result){if(result.success){var $avatar=this.$profile.find('.w-profile-avatar'),$name=this.$profile.find('.w-profile-name'),$logoutLink=this.$profile.find('.w-profile-link.for_logout') $avatar.html(result.data.avatar);$name.html(result.data.name);$logoutLink.attr('href',result.data.logout_url);this.$profile.removeClass('hidden');}else{this.$form.removeClass('hidden');}}.usBind(this)});};$.fn.wUsLogin=function(options){return this.each(function(){$(this).data('wUsLogin',new $us.wUsLogin(this,options));});};$(function(){$('.widget_us_login').wUsLogin();});}(jQuery);!function($){"use strict";$us.WMapsGeocodesCounter=0;$us.WMapsGeocodesRunning=false;$us.WMapsCurrentGeocode=0;$us.WMapsGeocodesMax=5;$us.WMapsGeocodesStack={};$us.WMapsRunGeoCode=function(){if($us.WMapsCurrentGeocode<=$us.WMapsGeocodesCounter){$us.WMapsGeocodesRunning=true;if($us.WMapsGeocodesStack[$us.WMapsCurrentGeocode]!=null) $us.WMapsGeocodesStack[$us.WMapsCurrentGeocode]();}else{$us.WMapsGeocodesRunning=false;}};$us.WMaps=function(container,options){this.$container=$(container);var $jsonContainer=this.$container.find('.w-map-json'),jsonOptions=$jsonContainer[0].onclick()||{},$jsonStyleContainer=this.$container.find('.w-map-style-json'),jsonStyleOptions,markerOptions,shouldRunGeoCode=false;$jsonContainer.remove();if($jsonStyleContainer.length){jsonStyleOptions=$jsonStyleContainer[0].onclick()||{};$jsonStyleContainer.remove();} var defaults={};this.options=$.extend({},defaults,jsonOptions,options);this._events={redraw:this.redraw.usBind(this)};var gmapsOptions={el:'#'+this.$container.attr('id'),lat:0,lng:0,zoom:this.options.zoom,type:this.options.type,height:this.options.height+'px',width:'100%',mapTypeId:google.maps.MapTypeId[this.options.maptype]};if(this.options.hideControls){gmapsOptions.disableDefaultUI=true;} if(this.options.disableZoom){gmapsOptions.scrollwheel=false;} if(this.options.disableDragging&&(!$us.canvas.$html.hasClass('no-touch'))){gmapsOptions.draggable=false;} if(this.options.mapBgColor){gmapsOptions.backgroundColor=this.options.mapBgColor;} this.GMapsObj=new GMaps(gmapsOptions);if(jsonStyleOptions!=null&&jsonStyleOptions!={}){this.GMapsObj.map.setOptions({styles:jsonStyleOptions});} var that=this;if(this.options.latitude!=null&&this.options.longitude!=null){this.GMapsObj.setCenter(this.options.latitude,this.options.longitude);}else{var mapGeoCode=function(geocodeNum){GMaps.geocode({address:that.options.address,callback:function(results,status){if(status=='OK'){var latlng=results[0].geometry.location;that.options.latitude=latlng.lat();that.options.longitude=latlng.lng();that.GMapsObj.setCenter(that.options.latitude,that.options.longitude);$us.WMapsCurrentGeocode++;$us.WMapsRunGeoCode();}else if(status=="OVER_QUERY_LIMIT"){setTimeout(function(){$us.WMapsRunGeoCode()},2000);}}});};shouldRunGeoCode=true;$us.WMapsGeocodesStack[$us.WMapsGeocodesCounter]=mapGeoCode;$us.WMapsGeocodesCounter++;} $.each(this.options.markers,function(i,val){markerOptions={};if(that.options.icon!=null){markerOptions.icon={url:that.options.icon.url,size:new google.maps.Size(that.options.icon.size[0],that.options.icon.size[1]),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(that.options.icon.anchor[0],that.options.icon.anchor[1])};} if(that.options.markers[i]!=null){if(that.options.markers[i].latitude!=null&&that.options.markers[i].longitude!=null){markerOptions.lat=that.options.markers[i].latitude;markerOptions.lng=that.options.markers[i].longitude;markerOptions.infoWindow={content:that.options.markers[i].html};var marker=that.GMapsObj.addMarker(markerOptions);if(that.options.markers[i].infowindow){marker.infoWindow.open(that.GMapsObj.map,marker);}}else{var markerGeoCode=function(geocodeNum){GMaps.geocode({address:that.options.markers[i].address,callback:function(results,status){if(status=='OK'){var latlng=results[0].geometry.location;markerOptions.lat=latlng.lat();markerOptions.lng=latlng.lng();markerOptions.infoWindow={content:that.options.markers[i].html};var marker=that.GMapsObj.addMarker(markerOptions);if(that.options.markers[i].infowindow){marker.infoWindow.open(that.GMapsObj.map,marker);} $us.WMapsCurrentGeocode++;$us.WMapsRunGeoCode();}else if(status=="OVER_QUERY_LIMIT"){setTimeout(function(){$us.WMapsRunGeoCode()},2000);}}});};shouldRunGeoCode=true;$us.WMapsGeocodesStack[$us.WMapsGeocodesCounter]=markerGeoCode;$us.WMapsGeocodesCounter++;}}});if(shouldRunGeoCode&&(!$us.WMapsGeocodesRunning)){$us.WMapsRunGeoCode();} $us.canvas.$container.on('contentChange',this._events.redraw);$us.canvas.$window.load(this._events.redraw);};$us.WMaps.prototype={redraw:function(){if(this.$container.is(':hidden'))return;this.GMapsObj.refresh();if(this.options.latitude!=null&&this.options.longitude!=null){this.GMapsObj.setCenter(this.options.latitude,this.options.longitude);}}};$.fn.wMaps=function(options){return this.each(function(){$(this).data('wMaps',new $us.WMaps(this,options));});};$(function(){$('.w-map').wMaps();});}(jQuery);!function($){"use strict";$('.w-sharing.type_fixed.align_left, .w-sharing.type_fixed.align_right').each(function(){var $this=$(this);$this.css('margin-top',-.5*$this.height());});$('.w-sharing.type_fixed.align_center').each(function(){var $this=$(this);$this.css('margin-left',-.5*$this.width());});$('.w-sharing-item').on('click',function(){var $this=$(this);var opt={url:window.location,text:document.title,lang:document.documentElement.lang,image:$('meta[name="og:image"]').attr('content')||''};if($this.hasClass('facebook')){window.open("http://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(opt.url)+"&t="+encodeURIComponent(opt.text)+"","","toolbar=0, status=0, width=900, height=500");}else if($this.hasClass('twitter')){window.open("https://twitter.com/intent/tweet?text="+encodeURIComponent(opt.text)+"&url="+encodeURIComponent(opt.url),"","toolbar=0, status=0, width=650, height=360");}else if($this.hasClass('linkedin')){window.open('https://www.linkedin.com/cws/share?url='+encodeURIComponent(opt.url)+'&token=&isFramed=true','linkedin','toolbar=no,width=550,height=550');}else if($this.hasClass('gplus')){window.open("https://plus.google.com/share?hl="+encodeURIComponent(opt.lang)+"&url="+encodeURIComponent(opt.url),"","toolbar=0, status=0, width=900, height=500");}else if($this.hasClass('pinterest')){window.open('http://pinterest.com/pin/create/button/?url='+encodeURIComponent(opt.url)+'&media='+encodeURIComponent(opt.image)+'&description='+encodeURIComponent(opt.text),'pinterest','toolbar=no,width=700,height=300');}});}(jQuery);!function($){"use strict";if($('.l-preloader').length){$('document').ready(function(){setTimeout(function(){$('.l-preloader').addClass('done');},500);setTimeout(function(){$('.l-preloader').addClass('hidden');},1000);});}}(jQuery);;!function($){"use strict";$.fn.wSearch=function(){return this.each(function(){var $container=$(this),$form=$container.find('.w-form'),$btnOpen=$container.find('.w-search-open'),$btnClose=$container.find('.w-search-close'),$input=$form.find('[name="s"]'),$overlay=$container.find('.w-search-background'),$window=$(window),searchOverlayInitRadius=25,showHideTimer=null,isFullScreen=$container.hasClass('layout_fullscreen'),searchHide=function(){$container.removeClass('active');$input.blur();if(isFullScreen){$form.css({'-webkit-transition':'opacity 0.4s',transition:'opacity 0.4s'});window.setTimeout(function(){$overlay.removeClass('overlay-on').addClass('overlay-out').css({'-webkit-transform':'scale(0.1)','transform':'scale(0.1)'});$form.css('opacity',0);clearTimeout(showHideTimer);showHideTimer=window.setTimeout(function(){$form.css('display','none');$overlay.css('display','none');},700);},25);}};if(jQuery.isMobile){$input.on('focus',function(){var originalColor=$overlay.css('background-color'),overlayOpacity=$overlay.css('opacity'),matches;if(matches=/^rgb\((\d+), (\d+), (\d+)\)$/.exec(originalColor)){$form.css('background-color',"rgba("+parseInt(matches[1])+","+parseInt(matches[2])+","+parseInt(matches[3])+", "+overlayOpacity+")");} else if(matches=/^#([\da-fA-F]{2})([\da-fA-F]{2})([\da-fA-F]{2})$/.exec(originalColor)){$form.css('background-color',"rgba("+parseInt(matches[1],16)+","+parseInt(matches[2],16)+","+parseInt(matches[3],16)+", "+overlayOpacity+")");} else{$form.css('background-color',originalColor);} $overlay.addClass('mobilefocus');}).on('blur',function(){$overlay.removeClass('mobilefocus');$form.css('background-color','transparent');});} $btnOpen.click(function(){$container.addClass('active');if(isFullScreen){var searchPos=$btnOpen.offset(),searchWidth=$btnOpen.width(),searchHeight=$btnOpen.height();searchPos.top-=$window.scrollTop();searchPos.left-=$window.scrollLeft();var overlayX=searchPos.left+searchWidth/2,overlayY=searchPos.top+searchHeight/2,winWidth=$us.canvas.winWidth,winHeight=$us.canvas.winHeight,overlayRadius=Math.sqrt(Math.pow(Math.max(winWidth-overlayX,overlayX),2)+Math.pow(Math.max(winHeight-overlayY,overlayY),2)),overlayScale=(overlayRadius+15)/searchOverlayInitRadius;$overlay.css({width:searchOverlayInitRadius*2,height:searchOverlayInitRadius*2,left:overlayX,top:overlayY,"margin-left":-searchOverlayInitRadius,"margin-top":-searchOverlayInitRadius});$overlay.removeClass('overlay-out').show();$form.css({opacity:0,display:'block','-webkit-transition':'opacity 0.4s 0.3s',transition:'opacity 0.4s 0.3s'});window.setTimeout(function(){$overlay.addClass('overlay-on').css({"-webkit-transform":"scale("+overlayScale+")","transform":"scale("+overlayScale+")"});$form.css('opacity',1);clearInterval(showHideTimer);showHideTimer=window.setTimeout(function(){$input.focus();},700);},25);}else{showHideTimer=window.setTimeout(function(){$input.focus();},700);}});$input.keyup(function(e){if(e.keyCode==27)searchHide();});$btnClose.on('click touchstart',searchHide);});};$(function(){jQuery('.l-header .w-search').wSearch();});}(jQuery);!function($){$us.WTabs.prototype._init=$us.WTabs.prototype.init;$us.WTabs.prototype.init=function(container,options){this.$tabsBar=$();this.curTabWidth=0;this.tabHeights=[];this.tabTops=[];this._init(container,options);};$us.WTabs.prototype._cleanUpLayout=$us.WTabs.prototype.cleanUpLayout;$us.WTabs.prototype.cleanUpLayout=function(from){this._cleanUpLayout(from);if(from=='default'||from=='ver'){this.$tabsBar.remove();}};$us.WTabs.prototype._prepareLayout=$us.WTabs.prototype.prepareLayout;$us.WTabs.prototype.prepareLayout=function(to){this._prepareLayout(to);if(to=='default'||to=='ver'){this.$tabsBar=$('
    ').appendTo(this.$tabsList);}};$us.WTabs.prototype._measure=$us.WTabs.prototype.measure;$us.WTabs.prototype.measure=function(){this._measure();if(this.basicLayout=='default'){this.minWidth=Math.max.apply(this,this.tabWidths)*this.count;this.curTabWidth=this.tabs[0].outerWidth(true);} else if(this.basicLayout=='ver'){this.tabHeights=[];for(var index=0;index .wpcf7-form-control-wrap > .wpcf7-form-control').each(function(){var $input=jQuery(this);if(($input.attr('type')||'').match(/^(text|email|url|tel|number|date|quiz|captcha)$/)||$input.is('textarea')){var wrapperClasses=$input.parent().get(0).className;$input.unwrap();$input.parent().get(0).className+=' '+wrapperClasses;}});$form.find('.w-form-row-field > .wpcf7-submit').each(function(){var $input=jQuery(this),classes=$input.attr('class').split(' '),value=$input.attr('value')||'';$input.siblings('p').remove();if(jQuery.inArray('w-btn',classes)==-1){classes.push('w-btn');} var buttonHtml='';$input.replaceWith(buttonHtml);});$form.find('.wpcf7-form-control-wrap > select').each(function(){var $select=jQuery(this);if(!$select.attr('multiple'))$select.parent().addClass('type_select');});jQuery('').appendTo($form.find('.wpcf7-form-control-wrap'));$form.on('mailsent.wpcf7',function(){$form.find('.w-form-row.not-empty').removeClass('not-empty');});});jQuery(function($){"use strict";var $body=document.body||document.documentElement,$bodyStyle=$body.style,isTransitionsSupported=$bodyStyle.transition!==undefined||$bodyStyle.WebkitTransition!==undefined;var removeRipple=function($ripple){$ripple.off();if(isTransitionsSupported){$ripple.addClass("ripple-out");}else{$ripple.animate({"opacity":0},100,function(){$ripple.trigger("transitionend");});} $ripple.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){$ripple.remove();});};$.fn.mdRipple=function(){return this.each(function(){var $element=$(this),$container,containerOffset,startTimer=null;if(!$element.find('.ripple-container').length){$element.append('');} $container=$element.find(".ripple-container");var lastTouch=null;if($.isMobile){$element.on('touchstart touchmove',function(e){e=e.originalEvent;if(e.touches.length===1){lastTouch=e.touches[0];}});} $element.on($.isMobile?'touchend':'mouseup',function(e){var offsetLeft,offsetTop,offsetRight,$ripple=$(''),rippleSize=Math.max($element.outerWidth(),$element.outerHeight())/Math.max(20,$ripple.outerWidth())*2.5;containerOffset=$container.offset();if(!$.isMobile){offsetLeft=e.pageX-containerOffset.left;offsetTop=e.pageY-containerOffset.top;}else if(lastTouch!==null){offsetLeft=lastTouch.pageX-containerOffset.left;offsetTop=lastTouch.pageY-containerOffset.top;lastTouch=null;}else{return;} if($('body').hasClass('rtl')){offsetRight=$container.width()-offsetLeft;$ripple.css({right:offsetRight,top:offsetTop});}else{$ripple.css({left:offsetLeft,top:offsetTop});} (function(){return window.getComputedStyle($ripple[0]).opacity;})();$container.append($ripple);startTimer=setTimeout(function(){$ripple.css({"-webkit-transform":"scale("+rippleSize+")","transform":"scale("+rippleSize+")"});$ripple.addClass('ripple-on');$ripple.data('animating','on');$ripple.data('mousedown','on');},25);setTimeout(function(){$ripple.data('animating','off');removeRipple($ripple);},700);});});};jQuery('.w-btn, .l-header .w-nav-anchor, .w-portfolio-item-anchor, .w-tabs-item, .w-gallery-item, .g-filters-item, a > .w-blog-post-preview, .w-person.layout_card .w-person-image a, .w-iconbox.style_circle a .w-iconbox-icon').mdRipple();$.fn.revealGridMD=function(onFinish){var items=$(this),shown=false,isRTL=$('.l-body').hasClass('rtl');if(items.length==0)return;var countSz=function(){var mx=isRTL?100000:0,my=0;var sz=items.map(function(){var $this=jQuery(this),pos=$this.position();pos.width=$this.width();pos.height=$this.height();pos.cx=pos.left+parseInt(pos.width/2);pos.cy=pos.top+parseInt(pos.height/2);mx=Math[isRTL?'min':'max'](mx,pos.cx);my=Math.max(my,pos.cy);return pos;});var wx=mx-sz[0].cx,wy=my-sz[0].cy,wlen=Math.abs(wx*wx+wy*wy);for(var i=0;i