(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); $form.submit(function(event){ if(typeof window.FormData!=='function'){ return; } 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)){ val=val.replace(/^\/+/, ''); val='http://' + val; } $(this).val(val); }); if(wpcf7.cached){ wpcf7.refill($form); }}); }); wpcf7.getId=function(form){ return parseInt($('input[name="_wpcf7"]', form).val(), 10); }; wpcf7.submit=function(form){ var $form=$(form); $('[placeholder].placeheld', $form).each(function(i, n){ $(n).val(''); }); wpcf7.clearResponse($form); $('.ajax-loader', $form).addClass('is-active'); if(typeof window.FormData!=='function'){ return; } var formData=new FormData($form.get(0)); var ajaxSuccess=function(data, status, xhr, $form){ var detail={ id: $(data.into).attr('id'), status: data.status, inputs: [] }; $.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(/^_/)){ }else{ detail.inputs.push(field); }}); 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 'spam': $message.addClass('wpcf7-spam-blocked'); $form.addClass('spam'); $('[name="g-recaptcha-response"]', $form).each(function(){ if(''===$(this).val()){ var $recaptcha=$(this).closest('.wpcf7-form-control-wrap'); wpcf7.notValidTip($recaptcha, wpcf7.recaptcha.messages.empty); }}); wpcf7.triggerEvent(data.into, 'spam', detail); break; case 'mail_sent': $message.addClass('wpcf7-mail-sent-ok'); $form.addClass('sent'); if(data.onSentOk){ $.each(data.onSentOk, function(i, n){ eval(n) }); } wpcf7.triggerEvent(data.into, 'mailsent', detail); break; case 'mail_failed': case 'acceptance_missing': default: $message.addClass('wpcf7-mail-sent-ng'); $form.addClass('failed'); wpcf7.triggerEvent(data.into, 'mailfailed', detail); } wpcf7.refill($form, data); if(data.onSubmit){ $.each(data.onSubmit, function(i, n){ eval(n) }); } wpcf7.triggerEvent(data.into, 'submit', detail); if('mail_sent'==data.status){ $form.each(function(){ this.reset(); }); } $form.find('[placeholder].placeheld').each(function(i, n){ $(n).val($(n).attr('placeholder')); }); $message.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.root + wpcf7.apiSettings.namespace + '/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); $('input:checkbox.wpcf7-acceptance', $form).each(function(){ var $a=$(this); if($a.hasClass('wpcf7-invert')&&$a.is(':checked') || ! $a.hasClass('wpcf7-invert')&&! $a.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.root + wpcf7.apiSettings.namespace + '/contact-forms/' + wpcf7.getId($form) + '/refill', 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'); };})(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.bsfmodernizr=function(e,t,n){function r(e){m.cssText=e}function i(e,t){return r(prefixes.join(e+";")+(t||""))}function s(e,t){return typeof e===t}function o(e,t){return!!~(""+e).indexOf(t)}function u(e,t){for(var r in e){var i=e[r];if(!o(i,"-")&&m[i]!==n)return t=="pfx"?i:!0}return!1}function a(e,t,r){for(var i in e){var o=t[e[i]];if(o!==n)return r===!1?e[i]:s(o,"function")?o.bind(r||t):o}return!1}function f(e,t,n){var r=e.charAt(0).toUpperCase()+e.slice(1),i=(e+" "+w.join(r+" ")+r).split(" ");return s(t,"string")||s(t,"undefined")?u(i,t):(i=(e+" "+E.join(r+" ")+r).split(" "),a(i,t,n))}var l="2.7.1",c={},h=!0,p=t.documentElement,d="bsfmodernizr",v=t.createElement(d),m=v.style,g,y={}.toString,b="Webkit Moz O ms",w=b.split(" "),E=b.toLowerCase().split(" "),S={},x={},T={},N=[],C=N.slice,k,L={}.hasOwnProperty,A;!s(L,"undefined")&&!s(L.call,"undefined")?A=function(e,t){return L.call(e,t)}:A=function(e,t){return t in e&&s(e.constructor.prototype[t],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if(typeof t!="function")throw new TypeError;var n=C.call(arguments,1),r=function(){if(this instanceof r){var i=function(){};i.prototype=t.prototype;var s=new i,o=t.apply(s,n.concat(C.call(arguments)));return Object(o)===o?o:s}return t.apply(e,n.concat(C.call(arguments)))};return r}),S.csstransitions=function(){return f("transition")};for(var O in S)A(S,O)&&(k=O.toLowerCase(),c[k]=S[O](),N.push((c[k]?"":"no-")+k));return c.addTest=function(e,t){if(typeof e=="object")for(var r in e)A(e,r)&&c.addTest(r,e[r]);else{e=e.toLowerCase();if(c[e]!==n)return c;t=typeof t=="function"?t():t,typeof h!="undefined"&&h&&(p.className+=" "+(t?"":"no-")+e),c[e]=t}return c},r(""),v=g=null,function(e,t){function n(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x",r.insertBefore(n.lastChild,r.firstChild)}function r(){var e=y.elements;return typeof e=="string"?e.split(" "):e}function i(e){var t=m[e[d]];return t||(t={},v++,e[d]=v,m[v]=t),t}function s(e,n,r){n||(n=t);if(g)return n.createElement(e);r||(r=i(n));var s;return r.cache[e]?s=r.cache[e].cloneNode():h.test(e)?s=(r.cache[e]=r.createElem(e)).cloneNode():s=r.createElem(e),s.canHaveChildren&&!c.test(e)&&!s.tagUrn?r.frag.appendChild(s):s}function o(e,n){e||(e=t);if(g)return e.createDocumentFragment();n=n||i(e);var s=n.frag.cloneNode(),o=0,u=r(),a=u.length;for(;o",p="hidden"in e,g=e.childNodes.length==1||function(){t.createElement("a");var e=t.createDocumentFragment();return typeof e.cloneNode=="undefined"||typeof e.createDocumentFragment=="undefined"||typeof e.createElement=="undefined"}()}catch(n){p=!0,g=!0}})();var y={elements:l.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:f,shivCSS:l.shivCSS!==!1,supportsUnknownElements:g,shivMethods:l.shivMethods!==!1,type:"default",shivDocument:a,createElement:s,createDocumentFragment:o};e.html5=y,a(t)}(this,t),c._version=l,c._domPrefixes=E,c._cssomPrefixes=w,c.testProp=function(e){return u([e])},c.testAllProps=f,c.prefixed=function(e,t,n){return t?f(e,t,n):f(e,"pfx")},p.className=p.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(h?" js "+N.join(" "):""),c}(this,this.document),function(e,t,n){function r(e){return"[object Function]"==d.call(e)}function i(e){return"string"==typeof e}function s(){}function o(e){return!e||"loaded"==e||"complete"==e||"uninitialized"==e}function u(){var e=v.shift();m=1,e?e.t?h(function(){("c"==e.t?k.injectCss:k.injectJs)(e.s,0,e.a,e.x,e.e,1)},0):(e(),u()):m=0}function a(e,n,r,i,s,a,f){function l(t){if(!d&&o(c.readyState)&&(w.r=d=1,!m&&u(),c.onload=c.onreadystatechange=null,t)){"img"!=e&&h(function(){b.removeChild(c)},50);for(var r in T[n])T[n].hasOwnProperty(r)&&T[n][r].onload()}}var f=f||k.errorTimeout,c=t.createElement(e),d=0,g=0,w={t:r,s:n,e:s,a:a,x:f};1===T[n]&&(g=1,T[n]=[]),"object"==e?c.data=n:(c.src=n,c.type=e),c.width=c.height="0",c.onerror=c.onload=c.onreadystatechange=function(){l.call(this,g)},v.splice(i,0,w),"img"!=e&&(g||2===T[n]?(b.insertBefore(c,y?null:p),h(l,f)):T[n].push(c))}function f(e,t,n,r,s){return m=0,t=t||"j",i(e)?a("c"==t?E:w,e,t,this.i++,n,r,s):(v.splice(this.i++,0,e),1==v.length&&u()),this}function l(){var e=k;return e.loader={load:f,i:0},e}var c=t.documentElement,h=e.setTimeout,p=t.getElementsByTagName("script")[0],d={}.toString,v=[],m=0,g="MozAppearance"in c.style,y=g&&!!t.createRange().compareNode,b=y?c:p.parentNode,c=e.opera&&"[object Opera]"==d.call(e.opera),c=!!t.attachEvent&&!c,w=g?"object":c?"script":"img",E=c?"script":w,S=Array.isArray||function(e){return"[object Array]"==d.call(e)},x=[],T={},N={timeout:function(e,t){return t.length&&(e.timeout=t[0]),e}},C,k;k=function(e){function t(e){var e=e.split("!"),t=x.length,n=e.pop(),r=e.length,n={url:n,origUrl:n,prefixes:e},i,s,o;for(s=0;s=t&&u<=t+c+f&&o+h+a>=e&&o<=e+p+a){if(!n.bsf_appeared)n.trigger("bsf_appear",r.data)}else{n.bsf_appeared=false}};var o=function(){n.bsf_appeared=true;if(r.one){i.unbind("scroll",s);var o=e.inArray(s,e.fn.bsf_appear.checks);if(o>=0)e.fn.bsf_appear.checks.splice(o,1)}t.apply(this,arguments)};if(r.one)n.one("bsf_appear",r.data,o);else n.bind("bsf_appear",r.data,o);i.scroll(s);e.fn.bsf_appear.checks.push(s);s()})};e.extend(e.fn.bsf_appear,{checks:[],timeout:null,checkAll:function(){var t=e.fn.bsf_appear.checks.length;if(t>0)while(t--)e.fn.bsf_appear.checks[t]()},run:function(){if(e.fn.bsf_appear.timeout)clearTimeout(e.fn.bsf_appear.timeout);e.fn.bsf_appear.timeout=setTimeout(e.fn.bsf_appear.checkAll,20)}});e.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(t,n){var r=e.fn[n];if(r){e.fn[n]=function(){var t=r.apply(this,arguments);e.fn.bsf_appear.run();return t}}})})(jQuery);(function(e,t,n){"use strict";var r=t.bsfmodernizr;jQuery.fn.reverse=[].reverse;e.SwatchBook=function(t,n){this.$el=e(n);this._init(t)};e.SwatchBook.defaults={center:6,angleInc:8,speed:700,easing:"ease",proximity:45,neighbor:4,onLoadAnim:true,initclosed:false,closeIdx:-1,openAt:-1};e.SwatchBook.prototype={_init:function(t){this.options=e.extend(true,{},e.SwatchBook.defaults,t);this.$items=this.$el.children("div");this.itemsCount=this.$items.length;this.current=-1;this.support=r.csstransitions;this.cache=[];if(this.options.onLoadAnim){this._setTransition()}if(!this.options.initclosed){this._center(this.options.center,this.options.onLoadAnim)}else{this.isClosed=true;if(!this.options.onLoadAnim){this._setTransition()}}if(this.options.openAt>=0&&this.options.openAt
    ',trigger:"hover focus",title:"",delay:0,html:false,container:false};t.prototype.init=function(t,n,r){this.enabled=true;this.type=t;this.$element=e(n);this.options=this.getOptions(r);var i=this.options.trigger.split(" ");for(var s=i.length;s--;){var o=i[s];if(o=="click"){this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this))}else if(o!="manual"){var u=o=="hover"?"mouseenter":"focusin";var a=o=="hover"?"mouseleave":"focusout";this.$element.on(u+"."+this.type,this.options.selector,e.proxy(this.enter,this));this.$element.on(a+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){t=e.extend({},this.getDefaults(),this.$element.data(),t);if(t.delay&&typeof t.delay=="number"){t.delay={show:t.delay,hide:t.delay}}return t};t.prototype.getDelegateOptions=function(){var t={};var n=this.getDefaults();this._options&&e.each(this._options,function(e,r){if(n[e]!=r)t[e]=r});return t};t.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);clearTimeout(n.timeout);n.hoverState="in";if(!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout(function(){if(n.hoverState=="in")n.show()},n.options.delay.show)};t.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);clearTimeout(n.timeout);n.hoverState="out";if(!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){if(n.hoverState=="out")n.hide()},n.options.delay.hide)};t.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);if(t.isDefaultPrevented())return;var n=this;var r=this.tip();this.setContent();if(this.options.animation)r.addClass("fade");var i=typeof this.options.placement=="function"?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement;var s=/\s?auto?\s?/i;var o=s.test(i);if(o)i=i.replace(s,"")||"top";r.detach().css({top:0,left:0,display:"block"}).addClass(i);this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);var u=this.getPosition();var a=r[0].offsetWidth;var f=r[0].offsetHeight;if(o){var l=this.$element.parent();var c=i;var h=document.documentElement.scrollTop||document.body.scrollTop;var p=this.options.container=="body"?window.innerWidth:l.outerWidth();var d=this.options.container=="body"?window.innerHeight:l.outerHeight();var v=this.options.container=="body"?0:l.offset().left;i=i=="bottom"&&u.top+u.height+f-h>d?"top":i=="top"&&u.top-h-f<0?"bottom":i=="right"&&u.right+a>p?"left":i=="left"&&u.left-aPrevious',nextArrow:'',autoplay:false,autoplaySpeed:3e3,centerMode:false,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return'"},dots:false,dotsClass:"slick-dots",draggable:true,easing:"linear",fade:false,focusOnSelect:false,infinite:true,lazyLoad:"ondemand",onBeforeChange:null,onAfterChange:null,onInit:null,onReInit:null,pauseOnHover:true,pauseOnDotsHover:false,responsive:null,rtl:false,slide:"div",slidesToShow:1,slidesToScroll:1,speed:300,swipe:true,touchMove:true,touchThreshold:5,useCSS:true,vertical:false,waitForAnimate:true};i.initials={animating:false,dragging:false,autoPlayTimer:null,currentSlide:0,currentLeft:null,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:false,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:false};e.extend(i,i.initials);i.activeBreakpoint=null;i.animType=null;i.animProp=null;i.breakpoints=[];i.breakpointSettings=[];i.cssTransitions=false;i.paused=false;i.positionProp=null;i.$slider=e(n);i.$slidesCache=null;i.transformType=null;i.transitionType=null;i.windowWidth=0;i.windowTimer=null;i.options=e.extend({},i.defaults,r);i.originalSettings=i.options;s=i.options.responsive||null;if(s&&s.length>-1){for(o in s){if(s.hasOwnProperty(o)){i.breakpoints.push(s[o].breakpoint);i.breakpointSettings[s[o].breakpoint]=s[o].settings}}i.breakpoints.sort(function(e,t){return t-e})}i.autoPlay=e.proxy(i.autoPlay,i);i.autoPlayClear=e.proxy(i.autoPlayClear,i);i.changeSlide=e.proxy(i.changeSlide,i);i.selectHandler=e.proxy(i.selectHandler,i);i.setPosition=e.proxy(i.setPosition,i);i.swipeHandler=e.proxy(i.swipeHandler,i);i.dragHandler=e.proxy(i.dragHandler,i);i.keyHandler=e.proxy(i.keyHandler,i);i.autoPlayIterator=e.proxy(i.autoPlayIterator,i);i.instanceUid=t++;i.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;i.init()}var t=0;var n;return r}();t.prototype.addSlide=function(t,n,r){var i=this;if(typeof n==="boolean"){r=n;n=null}else if(n<0||n>=i.slideCount){return false}i.unload();if(typeof n==="number"){if(n===0&&i.$slides.length===0){e(t).appendTo(i.$slideTrack)}else if(r){e(t).insertBefore(i.$slides.eq(n))}else{e(t).insertAfter(i.$slides.eq(n))}}else{if(r===true){e(t).prependTo(i.$slideTrack)}else{e(t).appendTo(i.$slideTrack)}}i.$slides=i.$slideTrack.children(this.options.slide);i.$slideTrack.children(this.options.slide).detach();i.$slideTrack.append(i.$slides);i.$slides.each(function(t,n){e(n).attr("index",t)});i.$slidesCache=i.$slides;i.reinit()};t.prototype.animateSlide=function(t,n){var r={},i=this;if(i.options.rtl===true&&i.options.vertical===false){t=-t}if(i.transformsEnabled===false){if(i.options.vertical===false){i.$slideTrack.animate({left:t},i.options.speed,i.options.easing,n)}else{i.$slideTrack.animate({top:t},i.options.speed,i.options.easing,n)}}else{if(i.cssTransitions===false){e({animStart:i.currentLeft}).animate({animStart:t},{duration:i.options.speed,easing:i.options.easing,step:function(e){if(i.options.vertical===false){r[i.animType]="translate("+e+"px, 0px)";i.$slideTrack.css(r)}else{r[i.animType]="translate(0px,"+e+"px)";i.$slideTrack.css(r)}},complete:function(){if(n){n.call()}}})}else{i.applyTransition();if(i.options.vertical===false){r[i.animType]="translate3d("+t+"px, 0px, 0px)"}else{r[i.animType]="translate3d(0px,"+t+"px, 0px)"}i.$slideTrack.css(r);if(n){setTimeout(function(){i.disableTransition();n.call()},i.options.speed)}}}};t.prototype.applyTransition=function(e){var t=this,n={};if(t.options.fade===false){n[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase}else{n[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase}if(t.options.fade===false){t.$slideTrack.css(n)}else{t.$slides.eq(e).css(n)}};t.prototype.autoPlay=function(){var e=this;if(e.$list.hasClass("swipe-start"))return false;if(e.autoPlayTimer){clearInterval(e.autoPlayTimer)}if(e.slideCount>e.options.slidesToShow&&e.paused!==true){e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed)}};t.prototype.autoPlayClear=function(){var e=this;if(e.autoPlayTimer){clearInterval(e.autoPlayTimer)}};t.prototype.autoPlayIterator=function(){var t=this;var n=t.options.asNavFor!=null?e(t.options.asNavFor).getSlick():null;if(t.options.infinite===false){if(t.direction===1){if(t.currentSlide+1===t.slideCount-1){t.direction=0}t.slideHandler(t.currentSlide+t.options.slidesToScroll);if(n!=null)n.slideHandler(n.currentSlide+n.options.slidesToScroll)}else{if(t.currentSlide-1===0){t.direction=1}t.slideHandler(t.currentSlide-t.options.slidesToScroll);if(n!=null)n.slideHandler(n.currentSlide-n.options.slidesToScroll)}}else{t.slideHandler(t.currentSlide+t.options.slidesToScroll);if(n!=null)n.slideHandler(n.currentSlide+n.options.slidesToScroll)}};t.prototype.buildArrows=function(){var t=this;if(t.options.arrows===true&&t.slideCount>t.options.slidesToShow){t.$prevArrow=e(t.options.prevArrow);t.$nextArrow=e(t.options.nextArrow);if(t.htmlExpr.test(t.options.prevArrow)){t.$prevArrow.appendTo(t.options.appendArrows)}if(t.htmlExpr.test(t.options.nextArrow)){t.$nextArrow.appendTo(t.options.appendArrows)}if(t.options.infinite!==true){t.$prevArrow.addClass("slick-disabled")}}};t.prototype.buildDots=function(){var t=this,n,r;if(t.options.dots===true&&t.slideCount>t.options.slidesToShow){r='
      ';for(n=0;n<=t.getDotCount();n+=1){r+="
    • "+t.options.customPaging.call(this,t,n)+"
    • "}r+="
    ";t.$dots=e(r).appendTo(t.$slider);t.$dots.find("li").first().addClass("slick-active")}};t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide");t.slideCount=t.$slides.length;t.$slides.each(function(t,n){e(n).attr("index",t)});t.$slidesCache=t.$slides;t.$slider.addClass("slick-slider");t.$slideTrack=t.slideCount===0?e('
    ').appendTo(t.$slider):t.$slides.wrapAll('
    ').parent();t.$list=t.$slideTrack.wrap('
    ').parent();t.$slideTrack.css("opacity",0);if(t.options.centerMode===true){t.options.slidesToScroll=1;if(t.options.slidesToShow%2===0){t.options.slidesToShow=3}}e("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading");t.setupInfinite();t.buildArrows();t.buildDots();t.updateDots();if(t.options.accessibility===true){t.$list.prop("tabIndex",0)}t.setSlideClasses(typeof this.currentSlide==="number"?this.currentSlide:0);if(t.options.draggable===true){t.$list.addClass("draggable")}};t.prototype.checkResponsive=function(){var t=this,n,r;if(t.originalSettings.responsive&&t.originalSettings.responsive.length>-1&&t.originalSettings.responsive!==null){r=null;for(n in t.breakpoints){if(t.breakpoints.hasOwnProperty(n)){if(e(window).width()n.options.slidesToShow){n.slideHandler(n.currentSlide-n.options.slidesToScroll);if(i!=null)i.slideHandler(i.currentSlide-i.options.slidesToScroll)}break;case"next":if(n.slideCount>n.options.slidesToShow){n.slideHandler(n.currentSlide+n.options.slidesToScroll);if(i!=null)i.slideHandler(i.currentSlide+i.options.slidesToScroll)}break;case"index":var s=e(t.target).parent().index()*n.options.slidesToScroll;n.slideHandler(s);if(i!=null)i.slideHandler(s);break;default:return false}};t.prototype.destroy=function(){var t=this;t.autoPlayClear();t.touchObject={};e(".slick-cloned",t.$slider).remove();if(t.$dots){t.$dots.remove()}if(t.$prevArrow){t.$prevArrow.remove();t.$nextArrow.remove()}if(t.$slides.parent().hasClass("slick-track")){t.$slides.unwrap().unwrap()}t.$slides.removeClass("slick-slide slick-active slick-visible").removeAttr("style");t.$slider.removeClass("slick-slider");t.$slider.removeClass("slick-initialized");t.$list.off(".slick");e(window).off(".slick-"+t.instanceUid);e(document).off(".slick-"+t.instanceUid)};t.prototype.disableTransition=function(e){var t=this,n={};n[t.transitionType]="";if(t.options.fade===false){t.$slideTrack.css(n)}else{t.$slides.eq(e).css(n)}};t.prototype.fadeSlide=function(e,t){var n=this;if(n.cssTransitions===false){n.$slides.eq(e).css({zIndex:1e3});n.$slides.eq(e).animate({opacity:1},n.options.speed,n.options.easing,t)}else{n.applyTransition(e);n.$slides.eq(e).css({opacity:1,zIndex:1e3});if(t){setTimeout(function(){n.disableTransition(e);t.call()},n.options.speed)}}};t.prototype.filterSlides=function(e){var t=this;if(e!==null){t.unload();t.$slideTrack.children(this.options.slide).detach();t.$slidesCache.filter(e).appendTo(t.$slideTrack);t.reinit()}};t.prototype.getCurrent=function(){var e=this;return e.currentSlide};t.prototype.getDotCount=function(){var e=this,t=0,n=0,r=0,i;i=e.options.infinite===true?e.slideCount+e.options.slidesToShow-e.options.slidesToScroll:e.slideCount;while(tt.options.slidesToShow){t.slideOffset=t.slideWidth*t.options.slidesToShow*-1;i=r*t.options.slidesToShow*-1}if(t.slideCount%t.options.slidesToScroll!==0){if(e+t.options.slidesToScroll>t.slideCount&&t.slideCount>t.options.slidesToShow){t.slideOffset=t.slideCount%t.options.slidesToShow*t.slideWidth*-1;i=t.slideCount%t.options.slidesToShow*r*-1}}}else{if(t.slideCount%t.options.slidesToShow!==0){if(e+t.options.slidesToScroll>t.slideCount&&t.slideCount>t.options.slidesToShow){t.slideOffset=t.options.slidesToShow*t.slideWidth-t.slideCount%t.options.slidesToShow*t.slideWidth;i=t.slideCount%t.options.slidesToShow*r}}}if(t.options.centerMode===true&&t.options.infinite===true){t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)-t.slideWidth}else if(t.options.centerMode===true){t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)}if(t.options.vertical===false){n=e*t.slideWidth*-1+t.slideOffset}else{n=e*r*-1+i}return n};t.prototype.init=function(){var t=this;if(!e(t.$slider).hasClass("slick-initialized")){e(t.$slider).addClass("slick-initialized");t.buildOut();t.setProps();t.startLoad();t.loadSlider();t.initializeEvents();t.checkResponsive()}if(t.options.onInit!==null){t.options.onInit.call(this,t)}};t.prototype.initArrowEvents=function(){var e=this;if(e.options.arrows===true&&e.slideCount>e.options.slidesToShow){e.$prevArrow.on("click.slick",{message:"previous"},e.changeSlide);e.$nextArrow.on("click.slick",{message:"next"},e.changeSlide)}};t.prototype.initDotEvents=function(){var t=this;if(t.options.dots===true&&t.slideCount>t.options.slidesToShow){e("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide)}if(t.options.dots===true&&t.options.pauseOnDotsHover===true&&t.options.autoplay===true){e("li",t.$dots).on("mouseenter.slick",t.autoPlayClear).on("mouseleave.slick",t.autoPlay)}};t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents();t.initDotEvents();t.$list.on("touchstart.slick mousedown.slick",{action:"start",xelement:t.$list},t.swipeHandler);jQuery(document).on("touchmove.slick mousemove.slick",{action:"move",xelement:t.$list},t.swipeHandler);jQuery(document).on("touchend.slick mouseup.slick",{action:"end",xelement:t.$list},t.swipeHandler);t.$list.on("touchcancel.slick mouseleave.slick",{action:"move",xelement:t.$list},t.swipeHandler);if(t.options.pauseOnHover===true&&t.options.autoplay===true){t.$list.on("mouseenter.slick",t.autoPlayClear);t.$list.on("mouseleave.slick",t.autoPlay)}if(t.options.accessibility===true){t.$list.on("keydown.slick",t.keyHandler)}if(t.options.focusOnSelect===true){e(t.options.slide,t.$slideTrack).on("click.slick",t.selectHandler)}e(window).on("orientationchange.slick.slick-"+t.instanceUid,function(){t.checkResponsive();t.setPosition()});e(window).on("resize.slick.slick-"+t.instanceUid,function(){if(e(window).width()!==t.windowWidth){clearTimeout(t.windowDelay);t.windowDelay=window.setTimeout(function(){t.windowWidth=e(window).width();t.checkResponsive();t.setPosition()},50)}});e(window).on("load.slick.slick-"+t.instanceUid,t.setPosition);e(document).on("ready.slick.slick-"+t.instanceUid,t.setPosition)};t.prototype.initUI=function(){var e=this;if(e.options.arrows===true&&e.slideCount>e.options.slidesToShow){e.$prevArrow.show();e.$nextArrow.show()}if(e.options.dots===true&&e.slideCount>e.options.slidesToShow){e.$dots.show()}if(e.options.autoplay===true){e.autoPlay()}};t.prototype.keyHandler=function(e){var t=this;if(e.keyCode===37){t.changeSlide({data:{message:"previous"}})}else if(e.keyCode===39){t.changeSlide({data:{message:"next"}})}};t.prototype.lazyLoad=function(){function o(t){e("img[data-lazy]",t).each(function(){var t=e(this),n=e(this).attr("data-lazy")+"?"+(new Date).getTime();t.load(function(){t.animate({opacity:1},200)}).css({opacity:0}).attr("src",n).removeAttr("data-lazy").removeClass("slick-loading")})}var t=this,n,r,i,s;if(t.options.centerMode===true){if(t.options.infinite===true){i=t.currentSlide+(t.options.slidesToShow/2+1);s=i+t.options.slidesToShow+2}else{i=Math.max(0,t.currentSlide-(t.options.slidesToShow/2+1));s=2+(t.options.slidesToShow/2+1)+t.currentSlide}}else{i=t.options.infinite?t.options.slidesToShow+t.currentSlide:t.currentSlide;s=i+t.options.slidesToShow;if(t.options.fade===true){if(i>0)i--;if(s<=t.slideCount)s++}}n=t.$slider.find(".slick-slide").slice(i,s);o(n);if(t.slideCount==1){r=t.$slider.find(".slick-slide");o(r)}else if(t.currentSlide>=t.slideCount-t.options.slidesToShow){r=t.$slider.find(".slick-cloned").slice(0,t.options.slidesToShow);o(r)}else if(t.currentSlide===0){r=t.$slider.find(".slick-cloned").slice(t.options.slidesToShow*-1);o(r)}};t.prototype.loadSlider=function(){var e=this;e.setPosition();e.$slideTrack.css({opacity:1});e.$slider.removeClass("slick-loading");e.initUI();if(e.options.lazyLoad==="progressive"){e.progressiveLazyLoad()}};t.prototype.postSlide=function(e){var t=this;if(t.options.onAfterChange!==null){t.options.onAfterChange.call(this,t,e)}t.animating=false;t.setPosition();t.swipeLeft=null;if(t.options.autoplay===true&&t.paused===false){t.autoPlay()}};t.prototype.progressiveLazyLoad=function(){var t=this,n,r;n=e("img[data-lazy]").length;if(n>0){r=e("img[data-lazy]",t.$slider).first();r.attr("src",r.attr("data-lazy")).removeClass("slick-loading").load(function(){r.removeAttr("data-lazy");t.progressiveLazyLoad()})}};t.prototype.refresh=function(){var t=this,n=t.currentSlide;t.destroy();e.extend(t,t.initials);t.currentSlide=n;t.init()};t.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide");t.slideCount=t.$slides.length;if(t.currentSlide>=t.slideCount&&t.currentSlide!==0){t.currentSlide=t.currentSlide-t.options.slidesToScroll}t.setProps();t.setupInfinite();t.buildArrows();t.updateArrows();t.initArrowEvents();t.buildDots();t.updateDots();t.initDotEvents();if(t.options.focusOnSelect===true){e(t.options.slide,t.$slideTrack).on("click.slick",t.selectHandler)}t.setSlideClasses(0);t.setPosition();if(t.options.onReInit!==null){t.options.onReInit.call(this,t)}};t.prototype.removeSlide=function(e,t){var n=this;if(typeof e==="boolean"){t=e;e=t===true?0:n.slideCount-1}else{e=t===true?--e:e}if(n.slideCount<1||e<0||e>n.slideCount-1){return false}n.unload();n.$slideTrack.children(this.options.slide).eq(e).remove();n.$slides=n.$slideTrack.children(this.options.slide);n.$slideTrack.children(this.options.slide).detach();n.$slideTrack.append(n.$slides);n.$slidesCache=n.$slides;n.reinit()};t.prototype.setCSS=function(e){var t=this,n={},r,i;if(t.options.rtl===true){e=-e}r=t.positionProp=="left"?e+"px":"0px";i=t.positionProp=="top"?e+"px":"0px";n[t.positionProp]=e;if(t.transformsEnabled===false){t.$slideTrack.css(n)}else{n={};if(t.cssTransitions===false){n[t.animType]="translate("+r+", "+i+")";t.$slideTrack.css(n)}else{n[t.animType]="translate3d("+r+", "+i+", 0px)";t.$slideTrack.css(n)}}};t.prototype.setDimensions=function(){var e=this;if(e.options.vertical===false){if(e.options.centerMode===true){e.$list.css({padding:"0px "+e.options.centerPadding})}}else{e.$list.height(e.$slides.first().outerHeight(true)*e.options.slidesToShow);if(e.options.centerMode===true){e.$list.css({padding:e.options.centerPadding+" 0px"})}}e.listWidth=e.$list.width();e.listHeight=e.$list.height();if(e.options.vertical===false){e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow);e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))}else{e.slideWidth=Math.ceil(e.listWidth);e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(true)*e.$slideTrack.children(".slick-slide").length))}var t=e.$slides.first().outerWidth(true)-e.$slides.first().width();e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)};t.prototype.setFade=function(){var t=this,n;t.$slides.each(function(r,i){n=t.slideWidth*r*-1;e(i).css({position:"relative",left:n,top:0,zIndex:800,opacity:0})});t.$slides.eq(t.currentSlide).css({zIndex:900,opacity:1})};t.prototype.setPosition=function(){var e=this;e.setDimensions();if(e.options.fade===false){e.setCSS(e.getLeft(e.currentSlide))}else{e.setFade()}};t.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=e.options.vertical===true?"top":"left";if(e.positionProp==="top"){e.$slider.addClass("slick-vertical")}else{e.$slider.removeClass("slick-vertical")}if(t.WebkitTransition!==undefined||t.MozTransition!==undefined||t.msTransition!==undefined){if(e.options.useCSS===true){e.cssTransitions=true}}if(t.OTransform!==undefined){e.animType="OTransform";e.transformType="-o-transform";e.transitionType="OTransition";if(t.perspectiveProperty===undefined&&t.webkitPerspective===undefined)e.animType=false}if(t.MozTransform!==undefined){e.animType="MozTransform";e.transformType="-moz-transform";e.transitionType="MozTransition";if(t.perspectiveProperty===undefined&&t.MozPerspective===undefined)e.animType=false}if(t.webkitTransform!==undefined){e.animType="webkitTransform";e.transformType="-webkit-transform";e.transitionType="webkitTransition";if(t.perspectiveProperty===undefined&&t.webkitPerspective===undefined)e.animType=false}if(t.msTransform!==undefined){e.animType="msTransform";e.transformType="-ms-transform";e.transitionType="msTransition";if(t.msTransform===undefined)e.animType=false}if(t.transform!==undefined&&e.animType!==false){e.animType="transform";e.transformType="transform";e.transitionType="transition"}e.transformsEnabled=e.animType!==null&&e.animType!==false};t.prototype.setSlideClasses=function(e){var t=this,n,r,i,s;var o=t.$slider.find(".slick-slide").data("animation");t.$slider.find(".slick-slide").removeClass(o);t.$slider.find(".slick-slide").removeClass("slick-active").removeClass("slick-center");r=t.$slider.find(".slick-slide");if(t.options.centerMode===true){n=Math.floor(t.options.slidesToShow/2);if(t.options.infinite===true){if(e>=n&&e<=t.slideCount-1-n){t.$slides.slice(e-n,e+n+1).addClass("slick-active")}else{i=t.options.slidesToShow+e;r.slice(i-n+1,i+n+2).addClass("slick-active")}if(e===0){r.eq(r.length-1-t.options.slidesToShow).addClass("slick-center")}else if(e===t.slideCount-1){r.eq(t.options.slidesToShow).addClass("slick-center")}}t.$slides.eq(e).addClass("slick-center")}else{if(e>=0&&e<=t.slideCount-t.options.slidesToShow){var o=t.$slides.slice(e,e+t.options.slidesToShow).data("animation");t.$slides.slice(e,e+t.options.slidesToShow).addClass(o);t.$slides.slice(e,e+t.options.slidesToShow).addClass("slick-active")}else if(r.length<=t.options.slidesToShow){var o=r.slice(i,i+t.options.slidesToShow).data("animation");r.slice(i,i+t.options.slidesToShow).addClass(o);r.addClass("slick-active")}else{s=t.slideCount%t.options.slidesToShow;i=t.options.infinite===true?t.options.slidesToShow+e:e;if(t.options.slidesToShow==t.options.slidesToScroll&&t.slideCount-et.options.slidesToShow){if(t.options.centerMode===true){i=t.options.slidesToShow+1}else{i=t.options.slidesToShow}for(n=t.slideCount;n>t.slideCount-i;n-=1){r=n-1;e(t.$slides[r]).clone(true).attr("id","").prependTo(t.$slideTrack).addClass("slick-cloned")}for(n=0;no.slideCount-o.options.slidesToShow+i)){if(o.options.fade===false){t=o.currentSlide;o.animateSlide(r,function(){o.postSlide(t)})}return false}else if(o.options.infinite===false&&o.options.centerMode===true&&(e<0||e>o.slideCount-o.options.slidesToScroll)){if(o.options.fade===false){t=o.currentSlide;o.animateSlide(r,function(){o.postSlide(t)})}return false}if(o.options.autoplay===true){clearInterval(o.autoPlayTimer)}if(t<0){if(o.slideCount%o.options.slidesToScroll!==0){n=o.slideCount-o.slideCount%o.options.slidesToScroll}else{n=o.slideCount-o.options.slidesToScroll}}else if(t>o.slideCount-1){n=0}else{n=t}o.animating=true;if(o.options.onBeforeChange!==null&&e!==o.currentSlide){o.options.onBeforeChange.call(this,o,o.currentSlide,n)}o.currentSlide=n;o.setSlideClasses(o.currentSlide);o.updateDots();o.updateArrows();if(o.options.fade===true){o.fadeSlide(n,function(){o.postSlide(n)});return false}o.animateSlide(s,function(){o.postSlide(n)})};t.prototype.startLoad=function(){var e=this;if(e.options.arrows===true&&e.slideCount>e.options.slidesToShow){e.$prevArrow.hide();e.$nextArrow.hide()}if(e.options.dots===true&&e.slideCount>e.options.slidesToShow){e.$dots.hide()}e.$slider.addClass("slick-loading")};t.prototype.swipeDirection=function(){var e,t,n,r,i=this;e=i.touchObject.startX-i.touchObject.curX;t=i.touchObject.startY-i.touchObject.curY;n=Math.atan2(t,e);r=Math.round(n*180/Math.PI);if(r<0){r=360-Math.abs(r)}if(r<=45&&r>=0){return"left"}if(r<=360&&r>=315){return"left"}if(r>=135&&r<=225){return"right"}return"vertical"};t.prototype.swipeEnd=function(t){var n=this;var r=n.options.asNavFor!=null?e(n.options.asNavFor).getSlick():null;n.dragging=false;if(n.touchObject.curX===undefined){return false}var i=t.data.xelement;var s=0;i.find(".slick-active").each(function(e,t){s+=jQuery(t).outerWidth()});var o=Math.round(n.touchObject.swipeLength/s);if(o==0)o=1;if(n.touchObject.swipeLength>s){if(n.options.slidesToScroll==1)o=o*n.options.slidesToShow;else if(n.options.slidesToScroll==n.options.slidesToShow)o=o;else o=o*n.options.slidesToScroll}if(n.touchObject.swipeLength>=n.touchObject.minSwipe){e(t.target).on("click.slick",function(t){t.stopImmediatePropagation();t.stopPropagation();t.preventDefault();e(t.target).off("click.slick")});switch(n.swipeDirection()){case"left":n.slideHandler(n.currentSlide+n.options.slidesToScroll*o);if(r!=null)r.slideHandler(r.currentSlide+r.options.slidesToScroll*o);n.touchObject={};break;case"right":n.slideHandler(n.currentSlide-n.options.slidesToScroll*o);if(r!=null)r.slideHandler(r.currentSlide-r.options.slidesToScroll*o);n.touchObject={};break}}else{if(n.touchObject.startX!==n.touchObject.curX){n.slideHandler(n.currentSlide);if(r!=null)r.slideHandler(r.currentSlide);n.touchObject={}}}};t.prototype.swipeHandler=function(e){var t=this;if(t.options.swipe===false||"ontouchend"in document&&t.options.swipe===false){return}else if(t.options.draggable===false||t.options.draggable===false&&!e.originalEvent.touches){return}if(e.data.action.toString()=="start")e.data.xelement.addClass("swipe-start");else if(e.data.action.toString()=="end")e.data.xelement.removeClass("swipe-start");t.touchObject.fingerCount=e.originalEvent&&e.originalEvent.touches!==undefined?e.originalEvent.touches.length:1;t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold;switch(e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e);break}};t.prototype.swipeMove=function(e){var t=this,n,r,i,s;s=e.originalEvent!==undefined?e.originalEvent.touches:null;n=t.getLeft(t.currentSlide);if(!t.dragging||s&&s.length!==1){return false}t.touchObject.curX=s!==undefined?s[0].pageX:e.clientX;t.touchObject.curY=s!==undefined?s[0].pageY:e.clientY;t.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(t.touchObject.curX-t.touchObject.startX,2)));r=t.swipeDirection();if(r==="vertical"){return}if(e.originalEvent!==undefined&&t.touchObject.swipeLength>4){e.preventDefault()}i=t.touchObject.curX>t.touchObject.startX?1:-1;if(t.options.vertical===false){t.swipeLeft=n+t.touchObject.swipeLength*i}else{t.swipeLeft=n+t.touchObject.swipeLength*(t.$list.height()/t.listWidth)*i}if(t.options.fade===true||t.options.touchMove===false){return false}if(t.animating===true){t.swipeLeft=null;return false}t.setCSS(t.swipeLeft)};t.prototype.swipeStart=function(e){var t=this,n;if(t.touchObject.fingerCount!==1||t.slideCount<=t.options.slidesToShow){t.touchObject={};return false}if(e.originalEvent!==undefined&&e.originalEvent.touches!==undefined){n=e.originalEvent.touches[0]}t.touchObject.startX=t.touchObject.curX=n!==undefined?n.pageX:e.clientX;t.touchObject.startY=t.touchObject.curY=n!==undefined?n.pageY:e.clientY;t.dragging=true};t.prototype.unfilterSlides=function(){var e=this;if(e.$slidesCache!==null){e.unload();e.$slideTrack.children(this.options.slide).detach();e.$slidesCache.appendTo(e.$slideTrack);e.reinit()}};t.prototype.unload=function(){var t=this;e(".slick-cloned",t.$slider).remove();if(t.$dots){t.$dots.remove()}if(t.$prevArrow){t.$prevArrow.remove();t.$nextArrow.remove()}t.$slides.removeClass("slick-slide slick-active slick-visible").removeAttr("style")};t.prototype.updateArrows=function(){var e=this;if(e.options.arrows===true&&e.options.infinite!==true&&e.slideCount>e.options.slidesToShow){e.$prevArrow.removeClass("slick-disabled");e.$nextArrow.removeClass("slick-disabled");if(e.currentSlide===0){e.$prevArrow.addClass("slick-disabled");e.$nextArrow.removeClass("slick-disabled")}else if(e.currentSlide>=e.slideCount-e.options.slidesToShow){e.$nextArrow.addClass("slick-disabled");e.$prevArrow.removeClass("slick-disabled")}}};t.prototype.updateDots=function(){var e=this;if(e.$dots!==null){e.$dots.find("li").removeClass("slick-active");e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active")}};e.fn.slick=function(e){var n=this;return n.each(function(n,r){r.slick=new t(r,e)})};e.fn.slickAdd=function(e,t,n){var r=this;return r.each(function(r,i){i.slick.addSlide(e,t,n)})};e.fn.slickCurrentSlide=function(){var e=this;return e.get(0).slick.getCurrent()};e.fn.slickFilter=function(e){var t=this;return t.each(function(t,n){n.slick.filterSlides(e)})};e.fn.slickGoTo=function(t){var n=this;return n.each(function(n,r){var i=r.slick.options.asNavFor!=null?e(r.slick.options.asNavFor):null;if(i!=null)i.slickGoTo(t);r.slick.slideHandler(t)})};e.fn.slickNext=function(){var e=this;return e.each(function(e,t){t.slick.changeSlide({data:{message:"next"}})})};e.fn.slickPause=function(){var e=this;return e.each(function(e,t){t.slick.autoPlayClear();t.slick.paused=true})};e.fn.slickPlay=function(){var e=this;return e.each(function(e,t){t.slick.paused=false;t.slick.autoPlay()})};e.fn.slickPrev=function(){var e=this;return e.each(function(e,t){t.slick.changeSlide({data:{message:"previous"}})})};e.fn.slickRemove=function(e,t){var n=this;return n.each(function(n,r){r.slick.removeSlide(e,t)})};e.fn.slickGetOption=function(e){var t=this;return t.get(0).slick.options[e]};e.fn.slickSetOption=function(e,t,n){var r=this;return r.each(function(r,i){i.slick.options[e]=t;if(n===true){i.slick.unload();i.slick.reinit()}})};e.fn.slickUnfilter=function(){var e=this;return e.each(function(e,t){t.slick.unfilterSlides()})};e.fn.unslick=function(){var e=this;return e.each(function(e,t){if(t.slick){t.slick.destroy()}})};e.fn.getSlick=function(){var e=null;var t=this;t.each(function(t,n){e=n.slick});return e}});(function(e){function t(){e(".ultb3-box").each(function(t,n){var r=e(n).outerHeight();var i=e(n).find(".ultb3-info").outerHeight();var s=(r-i)/2;e(n).find(".ultb3-info").css({top:s})})}e(document).ready(function(){t()});e(window).load(function(){t()});e(window).resize(function(){t()});jQuery(".ultb3-box .ultb3-info").each(function(){if(jQuery(this).attr("data-animation")){jQuery(this).css("opacity","0");var e=jQuery(this).attr("data-animation"),t="delay-"+jQuery(this).attr("data-animation-delay");jQuery(this).bsf_appear(function(){var n=jQuery(this);n.addClass("animated").addClass(e);n.addClass("animated").addClass(t);n.css("opacity","1")},{accY:-70})}})})(jQuery);(function(){var e=false;window.JQClass=function(){};JQClass.classes={};JQClass.extend=function t(n){function o(){if(!e&&this._init){this._init.apply(this,arguments)}}var r=this.prototype;e=true;var i=new this;e=false;for(var s in n){i[s]=typeof n[s]=="function"&&typeof r[s]=="function"?function(e,t){return function(){var n=this._super;this._super=function(t){return r[e].apply(this,t)};var i=t.apply(this,arguments);this._super=n;return i}}(s,n[s]):n[s]}o.prototype=i;o.prototype.constructor=o;o.extend=t;return o}})();(function($){"use strict";function camelCase(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}JQClass.classes.JQPlugin=JQClass.extend({name:"plugin",defaultOptions:{},regionalOptions:{},_getters:[],_getMarker:function(){return"is-"+this.name},_init:function(){$.extend(this.defaultOptions,this.regionalOptions&&this.regionalOptions[""]||{});var e=camelCase(this.name);$[e]=this;$.fn[e]=function(t){var n=Array.prototype.slice.call(arguments,1);if($[e]._isNotChained(t,n)){return $[e][t].apply($[e],[this[0]].concat(n))}return this.each(function(){if(typeof t==="string"){if(t[0]==="_"||!$[e][t]){throw"Unknown method: "+t}$[e][t].apply($[e],[this].concat(n))}else{$[e]._attach(this,t)}})}},setDefaults:function(e){$.extend(this.defaultOptions,e||{})},_isNotChained:function(e,t){if(e==="option"&&(t.length===0||t.length===1&&typeof t[0]==="string")){return true}return $.inArray(e,this._getters)>-1},_attach:function(e,t){e=$(e);if(e.hasClass(this._getMarker())){return}e.addClass(this._getMarker());t=$.extend({},this.defaultOptions,this._getMetadata(e),t||{});var n=$.extend({name:this.name,elem:e,options:t},this._instSettings(e,t));e.data(this.name,n);this._postAttach(e,n);this.option(e,t)},_instSettings:function(e,t){return{}},_postAttach:function(e,t){},_getMetadata:function(d){try{var f=d.data(this.name.toLowerCase())||"";f=f.replace(/'/g,'"');f=f.replace(/([a-zA-Z0-9]+):/g,function(e,t,n){var r=f.substring(0,n).match(/"/g);return!r||r.length%2===0?'"'+t+'":':t+":"});f=$.parseJSON("{"+f+"}");for(var g in f){var h=f[g];if(typeof h==="string"&&h.match(/^new Date\((.*)\)$/)){f[g]=eval(h)}}return f}catch(e){return{}}},_getInst:function(e){return $(e).data(this.name)||{}},option:function(e,t,n){e=$(e);var r=e.data(this.name);if(!t||typeof t==="string"&&n==null){var i=(r||{}).options;return i&&t?i[t]:i}if(!e.hasClass(this._getMarker())){return}var i=t||{};if(typeof t==="string"){i={};i[t]=n}this._optionsChanged(e,r,i);$.extend(r.options,i)},_optionsChanged:function(e,t,n){},destroy:function(e){e=$(e);if(!e.hasClass(this._getMarker())){return}this._preDestroy(e,this._getInst(e));e.removeData(this.name).removeClass(this._getMarker())},_preDestroy:function(e,t){}});$.JQPlugin={createPlugin:function(e,t){if(typeof e==="object"){t=e;e="JQPlugin"}e=camelCase(e);var n=camelCase(t.name);JQClass.classes[n]=JQClass.classes[e].extend(t);new JQClass.classes[n]}}})(jQuery);(function(e){var t="ult_countdown";var n=0;var r=1;var i=2;var s=3;var o=4;var u=5;var a=6;e.JQPlugin.createPlugin({name:t,defaultOptions:{until:null,since:null,timezone:null,serverSync:null,format:"dHMS",layout:"",compact:false,padZeroes:false,significant:0,description:"",expiryUrl:"",expiryText:"",alwaysExpire:false,onExpiry:null,onTick:null,tickInterval:1},regionalOptions:{"":{labels:["Years","Months","Weeks","Days","Hours","Minutes","Seconds"],labels1:["Year","Month","Week","Day","Hour","Minute","Second"],compactLabels:["y","m","w","d"],whichLabels:null,digits:["0","1","2","3","4","5","6","7","8","9"],timeSeparator:":",isRTL:false}},_getters:["getTimes"],_rtlClass:t+"-rtl",_sectionClass:t+"-section",_amountClass:t+"-amount",_periodClass:t+"-period",_rowClass:t+"-row",_holdingClass:t+"-holding",_showClass:t+"-show",_descrClass:t+"-descr",_timerElems:[],_init:function(){function i(e){var u=e<1e12?r?performance.now()+performance.timing.navigationStart:n():e||n();if(u-o>=1e3){t._updateElems();o=u}s(i)}var t=this;this._super();this._serverSyncs=[];var n=typeof Date.now=="function"?Date.now:function(){return(new Date).getTime()};var r=window.performance&&typeof window.performance.now=="function";var s=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||null;var o=0;if(!s||e.noRequestAnimationFrame){e.noRequestAnimationFrame=null;setInterval(function(){t._updateElems()},980)}else{o=window.animationStartTime||window.webkitAnimationStartTime||window.mozAnimationStartTime||window.oAnimationStartTime||window.msAnimationStartTime||n();s(i)}},UTCDate:function(e,t,n,r,i,s,o,u){if(typeof t=="object"&&t.constructor==Date){u=t.getMilliseconds();o=t.getSeconds();s=t.getMinutes();i=t.getHours();r=t.getDate();n=t.getMonth();t=t.getFullYear()}var a=new Date;a.setUTCFullYear(t);a.setUTCDate(1);a.setUTCMonth(n||0);a.setUTCDate(r||1);a.setUTCHours(i||0);a.setUTCMinutes((s||0)-(Math.abs(e)<30?e*60:e));a.setUTCSeconds(o||0);a.setUTCMilliseconds(u||0);return a},periodsToSeconds:function(e){return e[0]*31557600+e[1]*2629800+e[2]*604800+e[3]*86400+e[4]*3600+e[5]*60+e[6]},_instSettings:function(e,t){return{_periods:[0,0,0,0,0,0,0]}},_addElem:function(e){if(!this._hasElem(e)){this._timerElems.push(e)}},_hasElem:function(t){return e.inArray(t,this._timerElems)>-1},_removeElem:function(t){this._timerElems=e.map(this._timerElems,function(e){return e==t?null:e})},_updateElems:function(){for(var e=this._timerElems.length-1;e>=0;e--){this._updateCountdown(this._timerElems[e])}},_optionsChanged:function(t,n,r){if(r.layout){r.layout=r.layout.replace(/</g,"<").replace(/>/g,">")}this._resetExtraLabels(n.options,r);var i=n.options.timezone!=r.timezone;e.extend(n.options,r);this._adjustSettings(t,n,r.until!=null||r.since!=null||i);var s=new Date;if(n._since&&n._sinces){this._addElem(t[0])}this._updateCountdown(t,n)},_updateCountdown:function(t,n){t=t.jquery?t:e(t);n=n||t.data(this.name);if(!n){return}t.html(this._generateHTML(n)).toggleClass(this._rtlClass,n.options.isRTL);if(e.isFunction(n.options.onTick)){var r=n._hold!="lap"?n._periods:this._calculatePeriods(n,n._show,n.options.significant,new Date);if(n.options.tickInterval==1||this.periodsToSeconds(r)%n.options.tickInterval==0){n.options.onTick.apply(t[0],[r])}}var i=n._hold!="pause"&&(n._since?n._now.getTime()=n._until.getTime());if(i&&!n._expiring){n._expiring=true;if(this._hasElem(t[0])||n.options.alwaysExpire){this._removeElem(t[0]);if(e.isFunction(n.options.onExpiry)){n.options.onExpiry.apply(t[0],[])}if(n.options.expiryText){var s=n.options.layout;n.options.layout=n.options.expiryText;this._updateCountdown(t[0],n);n.options.layout=s}if(n.options.expiryUrl){window.location=n.options.expiryUrl}}n._expiring=false}else if(n._hold=="pause"){this._removeElem(t[0])}},_resetExtraLabels:function(e,t){var n=false;for(var r in t){if(r!="whichLabels"&&r.match(/[Ll]abels/)){n=true;break}}if(n){for(var r in e){if(r.match(/[Ll]abels[02-9]|compactLabels1/)){e[r]=null}}}},_adjustSettings:function(t,n,r){var i;var s=0;var o=null;for(var u=0;u0;p[d]=t._show[d]=="?"&&!l?null:t._show[d];c+=p[d]?1:0;h-=t._periods[d]>0?1:0}var v=[false,false,false,false,false,false,false];for(var d=a;d>=n;d--){if(t._show[d]){if(t._periods[d]){v[d]=true}else{v[d]=h>0;h--}}}var m=t.options.compact?t.options.compactLabels:t.options.labels;var g=t.options.whichLabels||this._normalLabels;var y=function(e){var n=t.options["compactLabels"+g(t._periods[e])];return p[e]?f._translateDigits(t,t._periods[e])+(n?n[e]:m[e])+" ":""};var b=t.options.padZeroes?2:1;var w=function(e){var n=t.options["labels"+g(t._periods[e])];return!t.options.significant&&p[e]||t.options.significant&&v[e]?''+''+''+f._minDigits(t,t._periods[e],b)+""+''+(n?n[e]:m[e])+"":""};return t.options.layout?this._buildLayout(t,p,t.options.layout,t.options.compact,t.options.significant,v):(t.options.compact?''+y(n)+y(r)+y(i)+y(s)+(p[o]?this._minDigits(t,t._periods[o],2):"")+(p[u]?(p[o]?t.options.timeSeparator:"")+this._minDigits(t,t._periods[u],2):"")+(p[a]?(p[o]||p[u]?t.options.timeSeparator:"")+this._minDigits(t,t._periods[a],2):""):''+w(n)+w(r)+w(i)+w(s)+w(o)+w(u)+w(a))+""+(t.options.description?''+t.options.description+"":"")},_buildLayout:function(t,f,l,c,h,p){var d=t.options[c?"compactLabels":"labels"];var v=t.options.whichLabels||this._normalLabels;var m=function(e){return(t.options[(c?"compactLabels":"labels")+v(t._periods[e])]||d)[e]};var g=function(e,n){return t.options.digits[Math.floor(e/n)%10]};var y={desc:t.options.description,sep:t.options.timeSeparator,yl:m(n),yn:this._minDigits(t,t._periods[n],1),ynn:this._minDigits(t,t._periods[n],2),ynnn:this._minDigits(t,t._periods[n],3),y1:g(t._periods[n],1),y10:g(t._periods[n],10),y100:g(t._periods[n],100),y1000:g(t._periods[n],1e3),ol:m(r),on:this._minDigits(t,t._periods[r],1),onn:this._minDigits(t,t._periods[r],2),onnn:this._minDigits(t,t._periods[r],3),o1:g(t._periods[r],1),o10:g(t._periods[r],10),o100:g(t._periods[r],100),o1000:g(t._periods[r],1e3),wl:m(i),wn:this._minDigits(t,t._periods[i],1),wnn:this._minDigits(t,t._periods[i],2),wnnn:this._minDigits(t,t._periods[i],3),w1:g(t._periods[i],1),w10:g(t._periods[i],10),w100:g(t._periods[i],100),w1000:g(t._periods[i],1e3),dl:m(s),dn:this._minDigits(t,t._periods[s],1),dnn:this._minDigits(t,t._periods[s],2),dnnn:this._minDigits(t,t._periods[s],3),d1:g(t._periods[s],1),d10:g(t._periods[s],10),d100:g(t._periods[s],100),d1000:g(t._periods[s],1e3),hl:m(o),hn:this._minDigits(t,t._periods[o],1),hnn:this._minDigits(t,t._periods[o],2),hnnn:this._minDigits(t,t._periods[o],3),h1:g(t._periods[o],1),h10:g(t._periods[o],10),h100:g(t._periods[o],100),h1000:g(t._periods[o],1e3),ml:m(u),mn:this._minDigits(t,t._periods[u],1),mnn:this._minDigits(t,t._periods[u],2),mnnn:this._minDigits(t,t._periods[u],3),m1:g(t._periods[u],1),m10:g(t._periods[u],10),m100:g(t._periods[u],100),m1000:g(t._periods[u],1e3),sl:m(a),sn:this._minDigits(t,t._periods[a],1),snn:this._minDigits(t,t._periods[a],2),snnn:this._minDigits(t,t._periods[a],3),s1:g(t._periods[a],1),s10:g(t._periods[a],10),s100:g(t._periods[a],100),s1000:g(t._periods[a],1e3)};var b=l;for(var w=n;w<=a;w++){var E="yowdhms".charAt(w);var x=new RegExp("\\{"+E+"<\\}([\\s\\S]*)\\{"+E+">\\}","g");b=b.replace(x,!h&&f[w]||h&&p[w]?"$1":"")}e.each(y,function(e,t){var n=new RegExp("\\{"+e+"\\}","g");b=b.replace(n,t)});return b},_minDigits:function(e,t,n){t=""+t;if(t.length>=n){return this._translateDigits(e,t)}t="0000000000"+t;return this._translateDigits(e,t.substr(t.length-n))},_translateDigits:function(e,t){return(""+t).replace(/[0-9]/g,function(t){return e.options.digits[t]})},_determineShow:function(e){var t=e.options.format;var f=[];f[n]=t.match("y")?"?":t.match("Y")?"!":null;f[r]=t.match("o")?"?":t.match("O")?"!":null;f[i]=t.match("w")?"?":t.match("W")?"!":null;f[s]=t.match("d")?"?":t.match("D")?"!":null;f[o]=t.match("h")?"?":t.match("H")?"!":null;f[u]=t.match("m")?"?":t.match("M")?"!":null;f[a]=t.match("s")?"?":t.match("S")?"!":null;return f},_calculatePeriods:function(e,t,f,l){e._now=l;e._now.setMilliseconds(0);var c=new Date(e._now.getTime());if(e._since){if(l.getTime()e._until.getTime()){e._now=l=c}}var h=[0,0,0,0,0,0,0];if(t[n]||t[r]){var p=this._getDaysInMonth(l.getFullYear(),l.getMonth());var d=this._getDaysInMonth(c.getFullYear(),c.getMonth());var v=c.getDate()==l.getDate()||c.getDate()>=Math.min(p,d)&&l.getDate()>=Math.min(p,d);var m=function(e){return(e.getHours()*60+e.getMinutes())*60+e.getSeconds()};var g=Math.max(0,(c.getFullYear()-l.getFullYear())*12+c.getMonth()-l.getMonth()+(c.getDate()b){l.setDate(b)}l.setFullYear(l.getFullYear()+h[n]);l.setMonth(l.getMonth()+h[r]);if(y){l.setDate(b)}}var w=Math.floor((c.getTime()-l.getTime())/1e3);var E=function(e,n){h[e]=t[e]?Math.floor(w/n):0;w-=h[e]*n};E(i,604800);E(s,86400);E(o,3600);E(u,60);E(a,1);if(w>0&&!e._since){var x=[1,12,4.3482,7,24,60,60];var T=a;var N=1;for(var C=a;C>=n;C--){if(t[C]){if(h[T]>=N){h[T]=0;w=1}if(w>0){h[C]++;w=0;T=C;N=1}}N*=x[C]}}if(f){for(var C=n;C<=a;C++){if(f&&h[C]){f--}else if(!f){h[C]=0}}}return h}})})(jQuery);(function(e){function t(){e(".ultimate-call-to-action").each(function(t,n){var r=e(n).data("override");if(r!=0){var i="true";if(e(n).parents(".vc-row-wrapper").length>0)var s=e(n).parents(".wpb_column");else if(e(n).parents(".wpb_column").length>0)var s=e(n).parents(".vc-row-wrapper");else var s=e(n).parent();var o=s;if(r=="full"){s=e("body");i="false"}if(r=="ex-full"){s=e("html");i="false"}if(!isNaN(r)){for(var t=1;tthis.endVal?true:false;this.startTime=null;this.timestamp=null;this.remaining=null;this.frameVal=this.startVal;this.rAF=null;this.decimals=Math.max(0,r||0);this.dec=Math.pow(10,this.decimals);this.duration=i*1e3||2e3;this.easeOutExpo=function(e,t,n,r){return n*(-Math.pow(2,-10*e/r)+1)*1024/1023+t};this.count=function(e){if(f.startTime===null)f.startTime=e;f.timestamp=e;var t=e-f.startTime;f.remaining=f.duration-t;if(f.options.useEasing){if(f.countDown){var n=f.easeOutExpo(t,0,f.startVal-f.endVal,f.duration);f.frameVal=f.startVal-n}else{f.frameVal=f.easeOutExpo(t,f.startVal,f.endVal-f.startVal,f.duration)}}else{if(f.countDown){var n=(f.startVal-f.endVal)*(t/f.duration);f.frameVal=f.startVal-n}else{f.frameVal=f.startVal+(f.endVal-f.startVal)*(t/f.duration)}}f.frameVal=Math.round(f.frameVal*f.dec)/f.dec;if(f.countDown){f.frameVal=f.frameValf.endVal?f.endVal:f.frameVal}f.d.innerHTML=f.formatNumber(f.frameVal.toFixed(f.decimals));if(t1?f.options.decimal+t[1]:"";i=/(\d+)(\d{3})/;if(f.options.useGrouping){while(i.test(n)){n=n.replace(i,"$1"+f.options.separator+"$2")}}return n+r};f.d.innerHTML=f.formatNumber(f.startVal.toFixed(f.decimals))};(function(){jQuery(document).ready(function(){jQuery(".ult-ih-list").each(function(){var e=jQuery(this).attr("data-shape");var t=jQuery(this).attr("data-height");var n=jQuery(this).attr("data-width");jQuery(this).find("li").each(function(){jQuery(this).find(".ult-ih-item").addClass("ult-ih-"+e);jQuery(this).css({height:t,width:n});jQuery(this).find(".ult-ih-item, .ult-ih-img").css({height:t,width:n})})})})})();function ultimate_headings_init(){var e=0;$jh(".uvc-heading").each(function(){var t,n,r;var i=$jh(this).outerWidth();var s=$jh(this).attr("data-hline_width");var o=$jh(this).attr("data-hicon_type");var u=$jh(this).attr("data-halign");var a=$jh(this).attr("data-hspacer");if(a=="line_with_icon"){var f=$jh(this).attr("id");e=parseInt($jh(this).attr("data-hfixer"));var l=i/2;$jh(this).find(".dynamic_ultimate_heading_css").remove();if(s=="auto"||s>i)r=i;else r=s;var c=r/2;if(o=="selector"){n=$jh(this).find(".aio-icon").outerWidth();t=$jh(this).find(".aio-icon").outerHeight()}else{n=$jh(this).find(".aio-icon-img").outerWidth();t=$jh(this).find(".aio-icon-img").outerHeight()}var h=n/2;var p=l-h+n+e;var d=c;$jh(this).find(".uvc-heading-spacer").height(t);if(u=="center"){$jh(this).find(".aio-icon-img").css({margin:"0 auto"});var v="#"+f+" .uvc-heading-spacer.line_with_icon:before{right:"+p+"px;}#"+f+" .uvc-heading-spacer.line_with_icon:after{left:"+p+"px;}"}else if(u=="left"){$jh(this).find(".aio-icon-img").css({"float":u});var v="";if(r!=""){v="#"+f+" .uvc-heading-spacer.line_with_icon:before{left:"+(n+e)+"px;right:auto;}#"+f+" .uvc-heading-spacer.line_with_icon:after{left:"+(d+n+e)+"px;right:auto;}"}else{v="#"+f+" .uvc-heading-spacer.line_with_icon:before{right:"+(p-n-e*2)+"px;}#"+f+" .uvc-heading-spacer.line_with_icon:after{left:"+(p-e)+"px;}"}}else if(u=="right"){$jh(this).find(".aio-icon-img").css({"float":u});var v="";if(r!=""){v="#"+f+" .uvc-heading-spacer.line_with_icon:before{right:"+(n+e)+"px;left:auto;}#"+f+" .uvc-heading-spacer.line_with_icon:after{right:"+(d+n+e)+"px;left:auto;}"}else{v="#"+f+" .uvc-heading-spacer.line_with_icon:before{right:"+(p-e)+"px;}#"+f+" .uvc-heading-spacer.line_with_icon:after{left:"+(p-n-e*2)+"px;}"}}var m=$jh(this).attr("data-hborder_style");var g=$jh(this).attr("data-hborder_color");var y=$jh(this).attr("data-hborder_height");if(s=="auto"){if(u=="center")d=Math.floor(d-n+e)}var b='
    ";$jh(this).prepend(b)}else if(a=="line_only"){if(u=="right"||u=="left"){$jh(this).find(".uvc-heading-spacer").find(".uvc-headings-line").css({"float":u})}else{$jh(this).find(".uvc-heading-spacer").find(".uvc-headings-line").css({margin:"0 auto"})}}})}$jh=jQuery.noConflict();$jh(document).ready(function(e){ultimate_headings_init()});$jh(window).load(function(e){ultimate_headings_init()});$jh(window).resize(function(e){ultimate_headings_init()});jQuery(document).ready(function(){jQuery(".ult-carousel-wrapper").each(function(){var d=jQuery(this);if(d.hasClass("ult_full_width")){var b=jQuery("html").outerWidth();var a=d.width();var c=(b-a)/2;d.css({position:"relative",left:"-"+c+"px",width:b+"px"})}});jQuery(".ult-carousel-wrapper").each(function(b,d){var c=jQuery(d).data("gutter");var e=jQuery(d).attr("id");if(c!=""){var a="";jQuery("head").append(a)}})});jQuery(window).resize(function(){jQuery(".ult-carousel-wrapper").each(function(){var d=jQuery(this);if(d.hasClass("ult_full_width")){d.removeAttr("style");var b=jQuery("html").outerWidth();var a=d.width();var c=(b-a)/2;d.css({position:"relative",left:"-"+c+"px",width:b+"px"})}})});!function(e){"use strict";var t=function(t,n){this.el=e(t);this.options=e.extend({},e.fn.typed.defaults,n);this.baseText=this.el.text()||this.el.attr("placeholder")||"";this.typeSpeed=this.options.typeSpeed;this.startDelay=this.options.startDelay;this.backSpeed=this.options.backSpeed;this.backDelay=this.options.backDelay;this.strings=this.options.strings;this.strPos=0;this.arrayPos=0;this.stopNum=0;this.loop=this.options.loop;this.loopCount=this.options.loopCount;this.curLoop=0;this.stop=false;this.showCursor=this.isInput?false:this.options.showCursor;this.cursorChar=this.options.cursorChar;this.isInput=this.el.is("input");this.attr=this.options.attr||(this.isInput?"placeholder":null);this.build()};t.prototype={constructor:t,init:function(){var e=this;e.timeout=setTimeout(function(){e.typewrite(e.strings[e.arrayPos],e.strPos)},e.startDelay)},build:function(){if(this.showCursor===true){this.cursor=e(''+this.cursorChar+"");if(this.el.parent().find(".typed-cursor").length==0)this.el.after(this.cursor)}this.init()},typewrite:function(e,t){if(this.stop===true)return;var n=Math.round(Math.random()*(100-30))+this.typeSpeed;var r=this;r.timeout=setTimeout(function(){var n=0;var i=e.substr(t);if(i.charAt(0)==="^"){var s=1;if(/^\^\d+/.test(i)){i=/\d+/.exec(i)[0];s+=i.length;n=parseInt(i)}e=e.substring(0,t)+e.substring(t+s)}r.timeout=setTimeout(function(){if(t===e.length){r.options.onStringTyped(r.arrayPos);if(r.arrayPos===r.strings.length-1){r.options.callback();r.curLoop++;if(r.loop===false||r.curLoop===r.loopCount)return}r.timeout=setTimeout(function(){r.backspace(e,t)},r.backDelay)}else{if(t===0)r.options.preStringTyped(r.arrayPos);var n=r.baseText+e.substr(0,t+1);if(r.attr){r.el.attr(r.attr,n)}else{r.el.text(n)}t++;r.typewrite(e,t)}},n)},n)},backspace:function(e,t){if(this.stop===true){return}var n=Math.round(Math.random()*(100-30))+this.backSpeed;var r=this;r.timeout=setTimeout(function(){var n=r.baseText+e.substr(0,t);if(r.attr){r.el.attr(r.attr,n)}else{r.el.text(n)}if(t>r.stopNum){t--;r.backspace(e,t)}else if(t<=r.stopNum){r.arrayPos++;if(r.arrayPos===r.strings.length){r.arrayPos=0;r.init()}else r.typewrite(r.strings[r.arrayPos],t)}},n)},reset:function(){var e=this;clearInterval(e.timeout);var t=this.el.attr("id");this.el.after('');this.el.remove();this.cursor.remove();e.options.resetCallback()}};e.fn.typed=function(n){return this.each(function(){var r=e(this),i=r.data("typed"),s=typeof n=="object"&&n;if(!i)r.data("typed",i=new t(this,s));if(typeof n=="string")i[n]()})};e.fn.typed.defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],typeSpeed:0,startDelay:0,backSpeed:0,backDelay:500,loop:false,loopCount:false,showCursor:true,cursorChar:"|",attr:null,callback:function(){},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}}}(window.jQuery);(function(e){e.fn.vTicker=function(t){var n={speed:700,pause:2e3,showItems:1,animation:"",mousePause:true,isPaused:false,direction:"down",height:0};var t=e.extend(n,t);moveUp=function(t,n,r){if(r.isPaused){return}var i=t.children("ul");var s=i.children("li:first").clone(true);if(r.height>0){n=i.children("li:first").height()}i.animate({top:"-="+n+"px"},r.speed,function(){e(this).children("li:first").remove();e(this).css("top","0px")});if(r.animation=="fade"){i.children("li:first").fadeOut(r.speed);if(r.height==0){i.children("li:eq("+r.showItems+")").hide().fadeIn(r.speed)}}s.appendTo(i)};moveDown=function(t,n,r){if(r.isPaused){return}var i=t.children("ul");var s=i.children("li:last").clone(true);if(r.height>0){n=i.children("li:first").height()}i.css("top","-"+n+"px").prepend(s);i.animate({top:0},r.speed,function(){e(this).children("li:last").remove()});if(r.animation=="fade"){if(r.height==0){i.children("li:eq("+r.showItems+")").fadeOut(r.speed)}i.children("li:first").hide().fadeIn(r.speed)}};return this.each(function(){var n=e(this);var r=0;n.css({overflow:"hidden",position:"relative"}).children("ul").css({position:"absolute",margin:0,padding:0}).children("li").css({margin:0,padding:0});if(t.height==0){n.children("ul").children("li").each(function(){if(e(this).height()>r){r=e(this).height()}});n.children("ul").children("li").each(function(){e(this).height(r)});n.height(r*t.showItems)}else{n.height(t.height)}var i=setInterval(function(){if(t.direction=="up"){moveUp(n,r,t)}else{moveDown(n,r,t)}},t.pause);if(t.mousePause){n.bind("mouseenter",function(){t.isPaused=true}).bind("mouseleave",function(){t.isPaused=false})}})}})(jQuery);function resize_uvc_map(e,t){var n=jQuery("#"+e).attr("data-map_override");var r="true";if(jQuery("#"+t).parents(".wpb_column").length>0)var i=jQuery("#"+t).parents(".wpb_column");else if(jQuery("#"+t).parents(".vc-row-wrapper").length>0)var i=jQuery("#"+t).parents(".vc-row-wrapper");else var i=jQuery("#"+t).parent();var s=i;if(n=="full"){i=jQuery("body");r="false"}if(n=="ex-full"){i=jQuery("html");r="false"}if(!isNaN(n)){for(var o=1;o0){e(".timeline-block").each(function(t,n){var r=e(this).find(".timeline-header-block");var i=e(this).find(".timeline-icon-block");i.css({position:"absolute"});var s=i.outerHeight();var o=i.outerWidth();var u=-(o/2);var a=parseInt(r.find(".timeline-header").css("padding-left").replace(/[^\d.]/g,""));if(e(this).hasClass("timeline-post-left")){i.css({left:u,right:"auto"});r.css({"padding-left":o/2+a+"px"})}else if(e(this).hasClass("timeline-post-right")){i.css({left:"auto",right:u});r.css({"padding-right":o/2+a+"px"})}var f=r.height();var l=f/2;var c=s/2;var h=l-c;i.css({top:h});var p=i.offset().left;var d=e(window).width();if(0>p||d=i){n.find(".ult-new-ib-content").hide()}else{n.find(".ult-new-ib-content").show()}}})}function s(){e(".ult-spacer").each(function(t,n){var scrollbarWidth=0;e(document).ready(function(){var div=document.createElement('div');div.style.overflowY='scroll';div.style.width='50px';div.style.height='50px';div.style.visibility='hidden';document.body.appendChild(div);scrollbarWidth=div.offsetWidth-div.clientWidth;document.body.removeChild(div);});var r=e(n).data("id");var i=e(window).width()+scrollbarWidth;var s=e(n).data("height-mobile");var o=e(n).data("height-tab");var u=e(n).data("height");if(i<=799){e(".spacer-"+r).height(s)}else if(i>=799&&i<=1024){e(".spacer-"+r).height(o)}else if(i>=1024){e(".spacer-"+r).height(u)}})}jQuery(document).ready(function(){s()});jQuery(window).resize(function(){s()});jQuery(window).scroll(function(){var e=jQuery(".ult-no-mobile").length;if(!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){n()}else{if(e>=1)jQuery(".ult-animation").css("opacity",1);else n()}jQuery(".vc-row-fade").vc_fade_row();jQuery(".vc-row-translate").vc_translate_row()});e.fn.vc_translate_row=function(){var e=jQuery(window).scrollTop();var t=jQuery(window).height();jQuery(this).each(function(n,r){var i=jQuery(r).attr("data-row-effect-mobile-disable");if(typeof i=="undefined")i="false";else i=i.toString();if(!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))var s="false";else var s="true";if(s=="true"&&i=="true")var o="true";else var o="false";if(o=="false"){var u=0;var a=jQuery(r).outerHeight();var f=jQuery(r).offset().top;var l=f-e;var c=l+a;var h=jQuery(r).attr("data-parallax-content-sense");var p=h/100;var d=0;var v=t-t*(u/100);if(c<=v&&l<=0){if(a>t){var d=(t-c)*p}else{var d=-(l*p)}if(d<0)d=0}else{d=0}var m=".upb_row_bg,.upb_video-wrapper,.ult-vc-seperator";jQuery(r).find(".vc-row-translate-wrapper").children().each(function(e,t){if(!jQuery(t).is(m)){jQuery(t).css({"-webkit-transform":"translateY("+d+"px)",transform:"translateY("+d+"px)","-ms-transform":"translateY("+d+"px)"})}})}})};e.fn.vc_fade_row=function(){var e=jQuery(window).scrollTop();var t=jQuery(window).height();jQuery(this).each(function(n,r){var i=jQuery(r).attr("data-row-effect-mobile-disable");if(typeof i=="undefined")i="false";else i=i.toString();if(!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))var s="false";else var s="true";if(s=="true"&&i=="true")var o="true";else var o="false";if(o=="false"){var u=0;var a=jQuery(r).data("fadeout-percentage");a=100-a;var f="";var l=jQuery(r).outerHeight();var c=jQuery(r).offset().top;var h=c-e;var p=h+l;var d=1;var v=t-t*(a/100);var m=(v-p)/v*(1-u);if(m>0)d=1-m;if(p<=v){if(d1)d=1;jQuery(r).children().each(function(e,t){var n=".upb_row_bg,.upb_video-wrapper,.ult-vc-seperator";if(!jQuery(t).is(n)){jQuery(t).css({opacity:d})}})}else{jQuery(r).children().each(function(e,t){jQuery(t).css({opacity:d})})}}})};jQuery(window).load(function(){jQuery(".banner-block-custom-height").each(function(e,t){var n=jQuery(this).find("img");var r=jQuery(this).width();var i=n.width();if(r>i)n.css({width:"100%",height:"auto"})});var n=0,r=0;var s=function(){jQuery(".ifb-jq-height").each(function(){jQuery(this).find(".ifb-back").css("height","auto");jQuery(this).find(".ifb-front").css("height","auto");var e=parseInt(jQuery(this).find(".ifb-front").outerHeight(true));var t=parseInt(jQuery(this).find(".ifb-back").outerHeight(true));var n=e>t?e:t;jQuery(this).find(".ifb-front").css("height",n+"px");jQuery(this).find(".ifb-back").css("height",n+"px");if(jQuery(this).hasClass("vertical_door_flip")){jQuery(this).find(".ifb-flip-box").css("height",n+"px")}else if(jQuery(this).hasClass("horizontal_door_flip")){jQuery(this).find(".ifb-flip-box").css("height",n+"px")}else if(jQuery(this).hasClass("style_9")){jQuery(this).find(".ifb-flip-box").css("height",n+"px")}});jQuery(".ifb-auto-height").each(function(){if(jQuery(this).hasClass("horizontal_door_flip")||jQuery(this).hasClass("vertical_door_flip")){var e=parseInt(jQuery(this).find(".ifb-front").outerHeight());var t=parseInt(jQuery(this).find(".ifb-back").outerHeight());var n=e>t?e:t;jQuery(this).find(".ifb-flip-box").css("height",n+"px")}})};if(navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")==-1){setTimeout(function(){s()},500)}else{s()}jQuery(window).resize(function(){n++;setTimeout(function(){r++;if(n==r){s()}},500)});var o=0;var u=0;jQuery(window).resize(function(){i();jQuery(".csstime.smile-icon-timeline-wrap").each(function(){t(jQuery(this))});e(".jstime .timeline-wrapper").each(function(){t(jQuery(this))});if(jQuery(".smile-icon-timeline-wrap.jstime .timeline-line").css("display")=="none"){if(u===0){e(".jstime .timeline-wrapper").masonry("destroy");u=1}}else{if(u==1){jQuery(".jstime .timeline-wrapper").masonry({itemSelector:".timeline-block"});setTimeout(function(){jQuery(".jstime .timeline-wrapper").masonry({itemSelector:".timeline-block"});jQuery(this).find(".timeline-block").each(function(){if(jQuery(this).css("left")=="0px"){jQuery(this).addClass("timeline-post-left")}else{jQuery(this).addClass("timeline-post-right")}});u=0},300)}}});e(".smile-icon-timeline-wrap").each(function(){var n=jQuery(this).data("timeline-cutom-width");if(n){jQuery(this).css("width",n*2+40+"px")}var r=parseInt(jQuery(this).width());var i=parseInt(jQuery(this).find(".timeline-block").width());var s=i/r*100;var o=r-i*2-40;o=o/r*100;e(".jstime .timeline-wrapper").each(function(){jQuery(this).masonry({itemSelector:".timeline-block"})});setTimeout(function(){e(".jstime .timeline-wrapper").each(function(){jQuery(this).find(".timeline-block").each(function(){if(jQuery(this).css("left")=="0px"){jQuery(this).addClass("timeline-post-left")}else{jQuery(this).addClass("timeline-post-right")}t(jQuery(this))});jQuery(".timeline-block").each(function(){var e=parseInt(jQuery(this).css("top"))-parseInt(jQuery(this).next().css("top"));if(e<14&&e>0||e==0){jQuery(this).next().addClass("time-clash-right")}else if(e>-14){jQuery(this).next().addClass("time-clash-left")}});jQuery(".smile-icon-timeline-wrap").each(function(){var e=jQuery(this).data("time_block_bg_color");jQuery(this).find(".timeline-block").css("background-color",e);jQuery(this).find(".timeline-post-left.timeline-block l").css("border-left-color",e);jQuery(this).find(".timeline-post-right.timeline-block l").css("border-right-color",e);jQuery(this).find(".feat-item").css("background-color",e);if(jQuery(this).find(".feat-item").find(".feat-top").length>0)jQuery(this).find(".feat-item l").css("border-top-color",e);else jQuery(this).find(".feat-item l").css("border-bottom-color",e)});jQuery(".jstime.timeline_preloader").remove();jQuery(".smile-icon-timeline-wrap.jstime").css("opacity","1")});jQuery(".timeline-post-right").each(function(){var e=jQuery(this).find(".timeline-icon-block").clone();jQuery(this).find(".timeline-icon-block").remove();jQuery(this).find(".timeline-header-block").after(e)})},1e3);jQuery(this).find(".timeline-wrapper").each(function(){if(jQuery(this).text().trim()===""){jQuery(this).remove()}});if(!jQuery(this).find(".timeline-line ").next().hasClass("timeline-separator-text")){jQuery(this).find(".timeline-line").prepend("")}var u=jQuery(this).data("time_sep_color");var a=jQuery(this).data("time_sep_bg_color");var f=jQuery(".smile-icon-timeline-wrap .timeline-line").css("border-right-color");jQuery(this).find(".timeline-dot").css("background-color",a);jQuery(this).find(".timeline-line z").css("background-color",a);jQuery(this).find(".timeline-line o").css("background-color",a);jQuery(this).find(".timeline-separator-text").css("color",u);jQuery(this).find(".timeline-separator-text .sep-text").css("background-color",a);jQuery(this).find(".ult-timeline-arrow s").css("border-color","rgba(255, 255, 255, 0) "+f);jQuery(this).find(".feat-item .ult-timeline-arrow s").css("border-color",f+" rgba(255, 255, 255, 0)");jQuery(this).find(".timeline-block").css("border-color",f);jQuery(this).find(".feat-item").css("border-color",f)});jQuery(".timeline-block").each(function(){var t=e(this).find(".link-box").attr("href");var n=e(this).find(".link-title").attr("href");if(t){jQuery(this).wrap("")}if(n){jQuery(this).find(".ult-timeline-title").wrap("")}});jQuery(".feat-item").each(function(){var t=e(this).find(".link-box").attr("href");if(t){jQuery(this).wrap("")}})});jQuery(window).load(function(){var e=jQuery(".ult-no-mobile").length;if(!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){n()}else{if(e>=1)jQuery(".ult-animation").css("opacity",1);else n()}i();jQuery(".ubtn").hover(function(){var e=jQuery(this);e.find(".ubtn-text").css("color",e.data("hover"));e.find(".ubtn-hover").css("background",e.data("hover-bg"));var t=e.attr("style");if(e.data("shadow-hover")!=""){var n=e.css("box-shadow");t+="box-shadow:"+e.data("shadow-hover")}e.attr("style",t);if(e.data("border-hover")!=""){e.css("border-color",e.data("border-hover"))}if(e.data("shadow-click")!="none"){var r=e.data("shd-shadow")-3;if(e.is(".shd-left")!="")e.css({right:r});else if(e.is(".shd-right")!="")e.css({left:r});else if(e.is(".shd-top")!="")e.css({bottom:r});else if(e.is(".shd-bottom")!="")e.css({top:r})}},function(){var e=jQuery(this);e.find(".ubtn-text").removeAttr("style");e.find(".ubtn-hover").removeAttr("style");var t=e.data("border-color");var n=e.attr("style");if(e.data("shadow-hover")!="")n+="box-shadow:"+e.data("shadow");e.attr("style",n);if(e.data("border-hover")!=""){e.css("border-color",t)}if(e.data("shadow-click")!="none"){e.removeClass("no-ubtn-shadow");if(e.is(".shd-left")!="")e.css({right:"auto"});else if(e.is(".shd-right")!="")e.css({left:"auto"});else if(e.is(".shd-top")!="")e.css({bottom:"auto"});else if(e.is(".shd-bottom")!="")e.css({top:"auto"})}});jQuery(".ult-new-ib").hover(function(){jQuery(this).find(".ult-new-ib-img").attr("style","opacity:"+jQuery(this).data("hover-opacity"))},function(){jQuery(this).find(".ult-new-ib-img").attr("style","opacity:"+jQuery(this).data("opacity"))});jQuery(".ubtn").on("focus blur mousedown mouseup",function(e){var t=jQuery(this);if(t.data("shadow-click")!="none"){setTimeout(function(){if(t.is(":focus")){t.addClass("no-ubtn-shadow");if(t.is(".shd-left")!="")t.css({right:t.data("shd-shadow")+"px"});else if(t.is(".shd-right")!="")t.css({left:t.data("shd-shadow")+"px"});else if(t.is(".shd-top")!="")t.css({bottom:t.data("shd-shadow")+"px"});else if(t.is(".shd-bottom")!="")t.css({top:t.data("shd-shadow")+"px"})}else{t.removeClass("no-ubtn-shadow");if(t.is(".shd-left")!="")t.css({right:"auto"});else if(t.is(".shd-right")!="")t.css({left:"auto"});else if(t.is(".shd-top")!="")t.css({bottom:"auto"});else if(t.is(".shd-bottom")!="")t.css({top:"auto"})}},0)}});jQuery(".ubtn").focusout(function(){var e=jQuery(this);e.removeClass("no-ubtn-shadow");if(e.is(".shd-left")!="")e.css({right:"auto"});else if(e.is(".shd-right")!="")e.css({left:"auto"});else if(e.is(".shd-top")!="")e.css({bottom:"auto"});else if(e.is(".shd-bottom")!="")e.css({top:"auto"})});jQuery(".smile-icon-timeline-wrap.jstime").css("opacity","0");jQuery(".jstime.timeline_preloader").css("opacity","1");jQuery(".smile-icon-timeline-wrap.csstime .timeline-wrapper").each(function(){jQuery(".csstime .timeline-block:even").addClass("timeline-post-left");jQuery(".csstime .timeline-block:odd").addClass("timeline-post-right")});jQuery(".csstime .timeline-post-right").each(function(){jQuery(this).css("float","right");jQuery("
    ").insertAfter(jQuery(this))});jQuery(".csstime.smile-icon-timeline-wrap").each(function(){var e=jQuery(this).data("time_block_bg_color");jQuery(this).find(".timeline-block").css("background-color",e);jQuery(this).find(".timeline-post-left.timeline-block l").css("border-left-color",e);jQuery(this).find(".timeline-post-right.timeline-block l").css("border-right-color",e);jQuery(this).find(".feat-item").css("background-color",e);if(jQuery(this).find(".feat-item").find(".feat-top").length>0)jQuery(this).find(".feat-item l").css("border-top-color",e);else jQuery(this).find(".feat-item l").css("border-bottom-color",e);t(jQuery(this))});jQuery("*").each(function(){if(jQuery(this).attr("data-animation")){var e=jQuery(this).attr("data-animation"),t="delay-"+jQuery(this).attr("data-animation-delay");jQuery(this).bsf_appear(function(){var n=jQuery(this);n.addClass("animated").addClass(e);n.addClass("animated").addClass(t)})}});jQuery(".stats-block").each(function(){jQuery(this).bsf_appear(function(){var e=parseFloat(jQuery(this).find(".stats-number").data("counter-value"));var t=jQuery(this).find(".stats-number").data("counter-value")+" ";var n=parseInt(jQuery(this).find(".stats-number").data("speed"));var r=jQuery(this).find(".stats-number").data("id");var i=jQuery(this).find(".stats-number").data("separator");var s=jQuery(this).find(".stats-number").data("decimal");var o=t.split(".");if(o[1]){o=o[1].length-1}else{o=0}var u=true;if(s=="none"){s=""}if(i=="none"){u=false}else{u=true}var a={useEasing:true,useGrouping:u,separator:i,decimal:s};var f=new countUp(r,0,e,o,n,a);setTimeout(function(){f.start()},500)})});if(!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))var r=false;else var r=true;jQuery("#page").click(function(){jQuery(".ifb-hover").removeClass("ifb-hover")});if(!r){jQuery(".ifb-flip-box").hover(function(e){e.stopPropagation();jQuery(this).addClass("ifb-hover")},function(e){e.stopPropagation();jQuery(this).removeClass("ifb-hover")})}jQuery(".ifb-flip-box").each(function(e,t){if(jQuery(this).parent().hasClass("style_9")){jQuery(this).hover(function(){jQuery(this).addClass("ifb-door-hover")},function(){jQuery(this).removeClass("ifb-door-hover")});jQuery(this).on("click",function(){jQuery(this).toggleClass("ifb-door-right-open");jQuery(this).removeClass("ifb-door-hover")})}});jQuery(".ifb-flip-box").click(function(e){e.stopPropagation();if(jQuery(this).hasClass("ifb-hover")){jQuery(this).removeClass("ifb-hover")}else{jQuery(".ifb-hover").removeClass("ifb-hover");jQuery(this).addClass("ifb-hover")}});jQuery(".vertical_door_flip .ifb-front").each(function(){jQuery(this).wrap('
    ');jQuery(this).parent().clone().removeClass("ifb-front-1").addClass("ifb-front-2").insertAfter(jQuery(this).parent())});jQuery(".reverse_vertical_door_flip .ifb-back").each(function(){jQuery(this).wrap('
    ');jQuery(this).parent().clone().removeClass("ifb-back-1").addClass("ifb-back-2").insertAfter(jQuery(this).parent())});jQuery(".horizontal_door_flip .ifb-front").each(function(){jQuery(this).wrap('
    ');jQuery(this).parent().clone().removeClass("ifb-front-1").addClass("ifb-front-2").insertAfter(jQuery(this).parent())});jQuery(".reverse_horizontal_door_flip .ifb-back").each(function(){jQuery(this).wrap('
    ');jQuery(this).parent().clone().removeClass("ifb-back-1").addClass("ifb-back-2").insertAfter(jQuery(this).parent())});jQuery(".style_9 .ifb-front").each(function(){jQuery(this).wrap('
    ');jQuery(this).parent().clone().removeClass("ifb-front-1").addClass("ifb-front-2").insertAfter(jQuery(this).parent())});jQuery(".style_9 .ifb-back").each(function(){jQuery(this).wrap('
    ');jQuery(this).parent().clone().removeClass("ifb-back-1").addClass("ifb-back-2").insertAfter(jQuery(this).parent())});var s=/^((?!chrome).)*safari/i.test(navigator.userAgent);if(s){jQuery(".vertical_door_flip").each(function(e,t){var n=jQuery(this).find(".flip_link").outerHeight();jQuery(this).find(".flip_link").css("top",-n/2+"px");jQuery(this).find(".ifb-multiple-front").css("width","50.2%")});jQuery(".horizontal_door_flip").each(function(e,t){var n=jQuery(this).find(".flip_link").outerHeight();jQuery(this).find(".flip_link").css("top",-n/2+"px");jQuery(this).find(".ifb-multiple-front").css("height","50.2%")});jQuery(".reverse_vertical_door_flip").each(function(e,t){var n=jQuery(this).find(".flip_link").outerHeight();jQuery(this).find(".flip_link").css("top",-n/2+"px")});jQuery(".reverse_horizontal_door_flip").each(function(e,t){var n=jQuery(this).find(".flip_link").outerHeight();jQuery(this).find(".flip_link").css("top",-n/2+"px");jQuery(this).find(".ifb-back").css("position","inherit")})}jQuery(".square_box-icon").each(function(e,t){var n=parseInt(jQuery(this).find(".aio-icon").outerHeight());var r=n/2;jQuery(this).css("padding-top",r+"px");jQuery(this).parent().css("margin-top",r+20+"px");jQuery(this).find(".aio-icon").css("top",-n+"px")})})})(jQuery); !function(e){function t(){e(".enable-on-viewport").each(function(){var t=e(this).isVdoOnScreen();e(this).hasClass("hosted-video")&&!e(this).hasClass("override-controls")&&(t?(e(this)[0].play(),e(this).parent().parent().parent().find(".video-controls").attr("data-action","play"),e(this).parent().parent().parent().find(".video-controls").html('')):(e(this)[0].pause(),e(this).parent().parent().parent().find(".video-controls").attr("data-action","pause"),e(this).parent().parent().parent().find(".video-controls").html('')))})}function a(t,a){var r=t.data("seperator"),o=t.data("seperator-type"),i=t.data("seperator-shape-size"),s=t.data("seperator-background-color"),l=t.data("seperator-border"),d=t.data("seperator-border-color"),n=t.data("seperator-border-width"),p=t.data("seperator-svg-height"),c=t.data("seperator-full-width"),v=t.data("seperator-position");("undefined"==typeof v||""==v)&&(v="bottom_seperator");var u=t.data("icon");u="undefined"==typeof u?"":'
    '+u+"
    ";var g=seperator_class=seperator_border_css=seperator_border_line_css=seperator_css="";if("undefined"!=typeof r&&"true"==r.toString()){var h=shape_css=svg=inner_html=seperator_css=shape_css="",f=!1,m=Math.floor(9999999999999*Math.random()),b="uvc-seperator-"+m;("undefined"==typeof i||""==i||"undefined"==i)&&(i=0),i=parseInt(i);var _=i/2,y=0;if("triangle_seperator"==o)seperator_class="ult-trinalge-seperator";else if("circle_seperator"==o)seperator_class="ult-circle-seperator";else if("diagonal_seperator"==o)seperator_class="ult-double-diagonal";else if("triangle_svg_seperator"==o)seperator_class="ult-svg-triangle",svg='',f=!0;else if("circle_svg_seperator"==o)seperator_class="ult-svg-circle",svg='',f=!0;else if("xlarge_triangle_seperator"==o)seperator_class="ult-xlarge-triangle",svg='',f=!0;else if("xlarge_triangle_left_seperator"==o)seperator_class="ult-xlarge-triangle-left",svg='',f=!0;else if("xlarge_triangle_right_seperator"==o)seperator_class="ult-xlarge-triangle-right",svg='',f=!0;else if("xlarge_circle_seperator"==o)seperator_class="ult-xlarge-circle",svg='',f=!0;else if("curve_up_seperator"==o)seperator_class="ult-curve-up-seperator",svg='',f=!0;else if("curve_down_seperator"==o)seperator_class="ult-curve-down-seperator",svg='',f=!0;else if("tilt_left_seperator"==o)seperator_class="ult-tilt-left-seperator",svg='',f=!0;else if("tilt_right_seperator"==o)seperator_class="ult-tilt-right-seperator",svg='',f=!0;else if("waves_seperator"==o)seperator_class="ult-wave-seperator",svg='',f=!0;else if("clouds_seperator"==o)seperator_class="ult-cloud-seperator",svg='',f=!0;else if("round_split_seperator"==o){var w=temp_border_before=temp_border_after=temp_border_line="";temp_padding=0,seperator_class="ult-rounded-split-seperator-wrapper";{e(t).outerHeight()}if(0!=i){var x=parseInt(e(t).css("padding-bottom"));e(t).css({"padding-bottom":i+"px"}),0==x&&(temp_padding=i)}if("top_seperator"==v)var z="top-split-seperator",j="0px",Q="auto",k="border-radius: 0 0 "+i+"px 0 !important;",C="border-radius: 0 0 0 "+i+"px !important;";else if("bottom_seperator"==v)var z="bottom-split-seperator",j="auto",Q="0px",k="border-radius: 0 "+i+"px 0 0 !important;",C="border-radius: "+i+"px 0 0 0 !important;";else var z="top-bottom-split-seperator",M="0px",E="auto",I="auto",P="0px",R="border-radius: 0 0 "+i+"px 0 !important;",B="border-radius: 0 0 0 "+i+"px !important;",S="border-radius: 0 "+i+"px 0 0 !important;",T="border-radius: "+i+"px 0 0 0 !important;";inner_html='
    ',"none"!=l&&(temp_border_line=n+"px "+l+" "+d,temp_border_before="border-top: "+temp_border_line+"; border-right: "+temp_border_line+";",temp_border_after="border-top: "+temp_border_line+"; border-left: "+temp_border_line+";"),"top_seperator"==v||"bottom_seperator"==v?(w="",e("head").append(w)):(w="",temp_css_bottom="",e("head").append(w+temp_css_bottom))}else seperator_class="ult-no-shape-seperator";if("undefined"!=typeof n&&""!=n&&0!=n&&(y=parseInt(n)),shape_css='content: "";width:'+i+"px; height:"+i+"px; bottom: -"+(_+y)+"px;",""!=s&&(shape_css+="background-color:"+s+";"),"none"!=l&&"ult-rounded-split-seperator-wrapper"!=seperator_class&&0==f&&(seperator_border_line_css=n+"px "+l+" "+d,shape_css+="border-bottom:"+seperator_border_line_css+"; border-right:"+seperator_border_line_css+";",seperator_css+="border-bottom:"+seperator_border_line_css+";",g="bottom:"+n+"px !important"),"ult-no-shape-seperator"!=seperator_class&&"ult-rounded-split-seperator-wrapper"!=seperator_class&&0==f){var h="";e("head").append(h)}if(1==f&&(inner_html=svg),"top_bottom_seperator"==v){var H='
    '+inner_html+"
    "+u+"
    ";H+='
    '+inner_html+"
    "+u+"
    "}else var H='
    '+inner_html+"
    "+u+"
    ";if(a.prepend(H),seperator_css="",""!=g&&(g="",seperator_css+=g),""!=u){var A=p/2;seperator_css+="top_seperator"==v?"":""}e("head").append(seperator_css)}}e(window).scroll(function(){t()}),e.fn.isVdoOnScreen=function(){var t=e(window),a={top:t.scrollTop(),left:t.scrollLeft()};a.right=a.left+t.width(),a.bottom=a.top+t.height()-200;var r=this.parent().offset();return r.right=r.left+this.parent().outerWidth(),r.bottom=r.top+this.parent().outerHeight()-300,!(a.rightr.right||a.bottomr.bottom)},e.fn.dfd_canvas_bg_effect=function(){return e(this).each(function(){var t=e(this),r=t.data("ultimate-bg"),o=t.data("bg-color"),i=t.data("ultimate-bg-style"),s=t.data("bg-img-repeat"),l=t.data("bg-img-size"),d=t.data("bg-img-position"),n=t.data("canvas-id"),p=t.data("canvas-style"),c=t.data("canvas-color"),v=t.data("canvas-size"),u=t.data("bg-override"),g=t.data("bg_img_attach"),h=t.data("upb-bg-animation"),f="",m=t.data("overlay"),f=t.data("overlay-color"),b=t.data("overlay-pattern"),_=t.data("overlay-pattern-opacity"),y=t.data("overlay-pattern-size"),w=t.data("fadeout"),x=t.data("fadeout-percentage"),z=t.data("bg-animation"),j=t.data("bg-animation-type"),Q=t.data("animation-repeat"),k=t.data("parallax-content"),C=t.data("parallax-content-sense"),M=t.data("row-effect-mobile-disable"),E=t.data("img-parallax-mobile-disable"),I=t.data("hide-row"),P=t.data("rtl"),R="",B=.6;t.data("multi-color-overlay")&&(R=t.data("multi-color-overlay"),B=t.data("multi-color-overlay-opacity")),""==c&&(c="#ffffff");var S=overlay_color_html=overlay_pattern_html=overlay_multi_color_html="";if("undefined"!=typeof m&&"true"===m.toString()&&(""!=b&&(""!=y&&(y="background-size:"+y+"px;"),overlay_pattern_html='
    '),""!=f&&(overlay_color_html='
    '),""!=R&&(overlay_multi_color_html='
    '),S=overlay_color_html+overlay_pattern_html+overlay_multi_color_html),t.prev().is("p"))var T=t.prev().prev();else var T=t.prev();if("browser_size"==u&&(T.wrapInner('
    '),T.addClass("full-browser-size")),""!=I&&(T.addClass("ult-vc-hide-row"),T.attr("data-hide-row",I)),T.attr("data-rtl",P),T.prepend('
    '+S+"
    "),t.remove(),a(t,T),t=T,t.attr("data-row-effect-mobile-disable",M),t.attr("data-img-parallax-mobile-disable",E),"fadeout_row_value"==w&&(t.addClass("vc-row-fade"),t.data("fadeout-percentage",x)),t.css("background-image",""),t=t.find(".upb_row_bg"),t.attr("data-upb_br_animation",h),"automatic"!=l?t.css({"background-size":l}):t.addClass("upb_bg_size_automatic"),t.css({"background-repeat":s,"background-position":d,"background-color":o}),t.css({"background-image":r,"background-attachment":g}),t.attr("data-bg-override",u),t.attr("data-bg-animation",z),t.attr("data-bg-animation-type",j),t.attr("data-animation-repeat",Q),"style_1"==p&&t.append(''),t.attr("id",n+"-bg"),"parallax_content_value"==k){t.addClass("vc-row-translate"),t.attr("data-parallax-content-sense",C),t.wrapInner('
    ');var H=t.css("padding-top"),A=t.css("padding-bottom");t.find(".vc-row-translate-wrapper").css({"padding-top":H,"padding-bottom":A}),t[0].style.setProperty("padding-top","0px","important"),t[0].style.setProperty("padding-bottom","0px","important")}var L,O,N,X,Y,W,q,D=!0,F="window"!=v?e("#"+n+"-bg").parents(".vc-row-wrapper"):e(window);"style_1"==p?!function(){function t(e){L=F.width(),O=F.height(),q={x:L/2,y:O/2},N=document.getElementById(e+"-bg"),N.style.height=O+"px",X=document.getElementById(e),X.width=L,X.height=O,Y=X.getContext("2d"),W=[];for(var t=0;L>t;t+=L/20)for(var a=0;O>a;a+=O/20){var r=t+Math.random()*L/20,o=a+Math.random()*O/20,i={x:r,originX:r,y:o,originY:o};W.push(i)}for(var s=0;sg;g++)u||void 0==l[g]&&(l[g]=v,u=!0);for(var g=0;5>g;g++)u||c(d,v)g;g++)i=new THREE.Sprite(v),i.position.x=2*Math.random()-1,i.position.y=2*Math.random()-1,i.position.z=2*Math.random()-1,i.position.normalize(),i.position.multiplyScalar(10*Math.random()+600),i.scale.x=i.scale.y=5,d.add(i),u.vertices.push(i.position);var h=new THREE.Line(u,new THREE.LineBasicMaterial({color:s,opacity:.2}));d.add(h),document.addEventListener("mousemove",a,!1),document.addEventListener("touchstart",r,!1),document.addEventListener("touchmove",o,!1),window.addEventListener("resize",t,!1)}function t(){u=F.width()/2,g=F.height()/2,l.aspect=F.width()/F.height(),l.updateProjectionMatrix(),p.setSize(F.width(),F.height())}function a(e){c=.05*(e.clientX-u),v=.2*(e.clientY-g)}function r(e){e.touches.length>1&&(e.preventDefault(),c=.7*(e.touches[0].pageX-u),v=.7*(e.touches[0].pageY-g))}function o(e){1==e.touches.length&&(e.preventDefault(),c=e.touches[0].pageX-u,v=e.touches[0].pageY-g)}function i(){requestAnimationFrame(i),s()}function s(){l.position.x+=.1*(c-l.position.x),l.position.y+=.05*(-v+200-l.position.y),l.lookAt(d.position),p.render(d,l)}var l,d,p,c=0,v=0,u=window.innerWidth/2,g=window.innerHeight/2;e(),i()}():"style_4"==p&&e("#"+n+"-bg").particlegroundOld({dotColor:c,lineColor:c}),t.addClass(i);var V=function(){var a,r,o,i,s;if(o=t.parent(),"full"==u&&(o=e("body"),i=0),"ex-full"==u&&(o=e("html"),i=0),!isNaN(u)){for(var l=0;u>l&&"HTML"!=o.prop("tagName");l++)o=o.parent();i=o.offset().left}r=t.parent().outerHeight(),a=o.outerWidth(),t.css({"min-height":r+"px","min-width":a+"px"}),s=t.offset().left,t.css({left:-Math.abs(i-s)+"px"}),"browser_size"==u&&t.parent().css("min-height",e(window).height()+"px")};V(),e(window).load(function(){V()}),e(window).resize(function(){V()})}),this},e.fn.ultimate_video_bg=function(r){return e(this).each(function(){var o=e(this),i=o.data("ultimate-video"),s=o.data("ultimate-video2"),l=o.data("ultimate-video-muted"),d=o.data("ultimate-video-loop"),n=o.data("ultimate-video-autoplay"),p=o.data("ultimate-video-poster"),c=o.data("bg-override"),v=o.data("start-time"),u=o.data("stop-time"),g=o.data("upb-bg-animation"),h=o.data("overlay"),f=o.data("overlay-color"),m=o.data("overlay-pattern"),b=o.data("overlay-pattern-opacity"),_=o.data("overlay-pattern-size"),y=o.data("viewport-video"),w=o.data("controls"),x=o.data("controls-color"),z=o.data("fadeout"),j=o.data("fadeout-percentage"),Q=o.data("parallax-content"),k=o.data("parallax-content-sense"),C=o.data("row-effect-mobile-disable"),M=o.data("hide-row"),E=o.data("rtl"),I=o.data("video_fixer"),P="",R="";o.data("multi-color-overlay")&&(P=o.data("multi-color-overlay"),R=o.data("multi-color-overlay-opacity"));var B=overlay_color_html=overlay_pattern_html=overlay_multi_color_html="";if("undefined"!=typeof h&&"true"===h.toString()&&(""!=m&&(""!=_&&(_="background-size:"+_+"px;"),overlay_pattern_html='
    '),""!=f&&(overlay_color_html='
    '),""!=P&&(overlay_multi_color_html='
    '),B=overlay_color_html+overlay_pattern_html+overlay_multi_color_html),u=0!=u?u:"",o.prev().is("p"))var S=o.prev().prev();else var S=o.prev();var T=o;o=S,""!=M&&(o.addClass("ult-vc-hide-row"),o.attr("data-hide-row",M)),o.attr("data-rtl",E);var H=o.html();o.addClass("upb_video_class"),o.attr("data-row-effect-mobile-disable",C),"fadeout_row_value"==z&&(o.addClass("vc-row-fade"),o.data("fadeout-percentage",j)),o.attr("data-upb_br_animation",g),i&&(-1!=i.indexOf("youtube.com")?r="youtube":-1!=i.indexOf("vimeo.com")&&(r="vimeo"));var A="";if("display_control"==w&&(A=''),"browser_size"==c&&(o.wrapInner('
    '),o.find(".upb_video-text").html(H)),"parallax_content_value"==Q){o.addClass("vc-row-translate"),o.attr("data-parallax-content-sense",k),o.wrapInner('
    ');var L=o.css("padding-top"),O=o.css("padding-bottom");o.find(".vc-row-translate-wrapper").css({"padding-top":L,"padding-bottom":O}),o[0].style.setProperty("padding-top","0px","important"),o[0].style.setProperty("padding-bottom","0px","important")}var N="";if("true"==I.toString()&&(N="uvc-video-fixer"),o.prepend("youtube"==r||"vimeo"==r?'
    '+B+"
    ":'
    '+A+B+"
    "),a(T,o),T.remove(),"youtube"==r){i=i.substring(i.indexOf("watch?v=")+8,i.indexOf("watch?v=")+19);var X=o.find(".upb_video-bg");"loop"==d&&(d=!0),"muted"==l&&(l=!0),X.attr("data-vdo",i),X.attr("data-loop",d),X.attr("data-poster",p),X.attr("data-muted",l),X.attr("data-start",v),X.attr("data-stop",u),y===!0&&(X.addClass("enable-on-viewport"),X.addClass("youtube-video"),t())}else if("vimeo"==r){i=i.substring(i.indexOf("vimeo.com/")+10,i.indexOf("vimeo.com/")+18);var X=o.find(".upb_video-bg");X.html('')}else{var X=o.find(".upb_video-src");if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))""!=p&&X.parent().css({"background-image":"url("+p+")"}),X.remove();else{if(e("",{type:"video/mp4",src:i}).appendTo(X),""!=s){var Y="";s.match(/.ogg/i)?Y="video/ogg":s.match(/.webm/i)&&(Y="video/webm"),""!=Y&&e("",{type:Y,src:s}).appendTo(X)}"muted"==l&&X.attr({muted:l}),"loop"==d&&X.attr({loop:d}),p&&X.attr({poster:p}),X.attr({preload:"auto"}),y===!0?(X.addClass("enable-on-viewport"),X.addClass("hosted-video"),t()):"autoplay"==n&&X.attr({autoplay:n})}}var W=function(){var t,a,r,i="",s="";if(r=o,o=o.find(".upb_video-bg"),"full"==c&&(r=e("body")),"ex-full"==c&&(r=e("html")),!isNaN(c))for(var l=0;c>l&&"HTML"!=r.prop("tagName");l++)r=r.parent();a=o.parents("upb_video_class").outerHeight(),t=r.outerWidth(),"browser_size"==c&&(a=e(window).height(),t=e(window).width(),r.css("min-height",a+"px")),o.css({"min-height":a+"px","min-width":t+"px"}),r.offset()&&(i=r.offset().left,o.offset()&&(s=o.offset().left));var d,n,p=t,v=a,u=o.find(".upb_vimeo_iframe");youvideoplayer=o.find(".upb_utube_iframe"),embeddedvideoplayer=o.find(".upb_video-src");var g=16/9;u&&(v>p/g?(d=Math.ceil(v*g),u.width(d).height(v).css({left:(p-d)/2,top:0})):(n=Math.ceil(p/g),u.width(p).height(n).css({left:0,top:(v-n)/2}))),embeddedvideoplayer&&(v>p/(16/9)?(d=Math.ceil(v*(16/9)),embeddedvideoplayer.width(d).height(v).css({left:(p-d)/2,top:0})):(n=Math.ceil(p/(16/9)),embeddedvideoplayer.width(p).height(n).css({left:0,top:0})))};W(),e(window).load(function(){W()}),e(window).resize(function(){W()})}),this},e.fn.ultimate_bg_shift=function(){return e(this).each(function(){var t=e(this),r=t.data("ultimate-bg"),o=t.data("ultimate-bg-style"),i=t.prev().css("background-color"),s=t.data("bg-img-repeat"),l=t.data("bg-img-size"),d=t.data("bg-img-position"),n=t.data("parallx_sense"),p=t.data("parallax_offset"),c=t.data("bg-override"),v=t.data("bg_img_attach"),u=t.data("upb-bg-animation"),g="",h=t.data("overlay"),g=t.data("overlay-color"),f=t.data("overlay-pattern"),m=t.data("overlay-pattern-opacity"),b=t.data("overlay-pattern-size"),_=t.data("fadeout"),y=t.data("fadeout-percentage"),w=t.data("parallax-content"),x=t.data("parallax-content-sense"),z=t.data("bg-animation"),j=t.data("bg-animation-type"),Q=t.data("animation-repeat"),k=t.data("row-effect-mobile-disable"),C=t.data("img-parallax-mobile-disable"),M=t.data("hide-row"),E=t.data("rtl"),I="",P=.6;t.data("multi-color-overlay")&&(I=t.data("multi-color-overlay"),P=t.data("multi-color-overlay-opacity"));var R=overlay_color_html=overlay_pattern_html=overlay_multi_color_html="";if("undefined"!=typeof h&&"true"===h.toString()&&(""!=f&&(""!=b&&(b="background-size:"+b+"px;"),overlay_pattern_html='
    '),""!=g&&(overlay_color_html='
    '),""!=I&&(overlay_multi_color_html='
    '),R=overlay_color_html+overlay_pattern_html+overlay_multi_color_html),t.prev().is("p"))var B=t.prev().prev();else var B=t.prev();if("browser_size"==c&&(B.wrapInner('
    '),B.addClass("full-browser-size")),"parallax_content_value"==w){B.addClass("vc-row-translate"),B.attr("data-parallax-content-sense",x),B.wrapInner('
    ');var S=B.css("padding-top"),T=B.css("padding-bottom");B.find(".vc-row-translate-wrapper").css({"padding-top":S,"padding-bottom":T}),B[0].style.setProperty("padding-top","0px","important"),B[0].style.setProperty("padding-bottom","0px","important")}""!=M&&(B.addClass("ult-vc-hide-row"),B.attr("data-hide-row",M)),B.attr("data-rtl",E),B.prepend('
    '+R+"
    "),t.remove(),a(t,B),t=B,t.attr("data-row-effect-mobile-disable",k),t.attr("data-img-parallax-mobile-disable",C),"fadeout_row_value"==_&&(t.addClass("vc-row-fade"),t.data("fadeout-percentage",y)),t.css("background-image",""),t=t.find(".upb_row_bg"),t.attr("data-upb_br_animation",u),"automatic"!=l?t.css({"background-size":l}):t.addClass("upb_bg_size_automatic"),t.css({"background-repeat":s,"background-position":d,"background-color":i}),"vcpb-fs-jquery"==o||"vcpb-mlvp-jquery"==o?t.attr("data-img-array",r):t.css({"background-image":r,"background-attachment":v}),t.attr("data-parallax_sense",n),t.attr("data-parallax_offset",p),t.attr("data-bg-override",c),t.attr("data-bg-animation",z),t.attr("data-bg-animation-type",j),t.attr("data-animation-repeat",Q),t.addClass(o);var H=function(){var a,r,o,i,s;if(o=t.parent(),"full"==c&&(o=e("body"),i=0),"ex-full"==c&&(o=e("html"),i=0),!isNaN(c)){for(var l=0;c>l&&"HTML"!=o.prop("tagName");l++)o=o.parent();i=o.offset().left}r=t.parent().outerHeight(),a=o.outerWidth(),t.css({"min-height":r+"px","min-width":a+"px"}),s=t.offset().left,t.css({left:-Math.abs(i-s)+"px"}),"browser_size"==c&&t.parent().css("min-height",e(window).height()+"px")};H(),e(window).load(function(){H()}),e(window).resize(function(){H()})}),this},e.fn.ultimate_grad_shift=function(){return e(this).each(function(){var t=e(this),r=t.data("grad"),o=(t.data("grad-type"),t.data("grad-custom-degree"),e(this).data("bg-override")),i=t.data("overlay"),s=t.data("overlay-color"),l=t.data("overlay-pattern"),d=t.data("overlay-pattern-opacity"),n=t.data("overlay-pattern-size"),p=t.data("upb-bg-animation"),c=t.data("fadeout"),v=t.data("fadeout-percentage"),u=t.data("parallax-content"),g=t.data("parallax-content-sense"),h=t.data("row-effect-mobile-disable"),f=t.data("hide-row"),m=t.data("rtl"),b="",_="";if(t.data("multi-color-overlay")&&(b=t.data("multi-color-overlay"),_=t.data("multi-color-overlay-opacity")),t.prev().is("p"))var y=t.prev().prev();else var y=t.prev();var w=overlay_color_html=overlay_pattern_html=overlay_multi_color_html="";if("undefined"!=typeof i&&"true"===i.toString()&&(""!=l&&(""!=n&&(n="background-size:"+n+"px;"),overlay_pattern_html='
    '),""!=s&&(overlay_color_html='
    '),""!=b&&(overlay_multi_color_html='
    '),w=overlay_color_html+overlay_pattern_html+overlay_multi_color_html),"browser_size"==o&&(y.wrapInner('
    '),y.addClass("full-browser-size")),"parallax_content_value"==u){y.addClass("vc-row-translate"),y.attr("data-parallax-content-sense",g),y.wrapInner('
    ');var x=y.css("padding-top"),z=y.css("padding-bottom");y.find(".vc-row-translate-wrapper").css({"padding-top":x,"padding-bottom":z}),y[0].style.setProperty("padding-top","0px","important"),y[0].style.setProperty("padding-bottom","0px","important")}""!=f&&(y.addClass("ult-vc-hide-row"),y.attr("data-hide-row",f)),y.attr("data-rtl",m),y.prepend('
    '+w+"
    "),a(t,y),t=y,t.attr("data-row-effect-mobile-disable",h),"fadeout_row_value"==c&&(t.addClass("vc-row-fade"),t.data("fadeout-percentage",v)),t.css("background-image",""),t=t.find(".upb_row_bg"),t.attr("data-upb_br_animation",p),r=r.replace("url(data:image/svg+xml;base64,","");var j=r.indexOf(";");r=r.substring(j+1),t.attr("style",r),t.attr("data-bg-override",o),"browser_size"==o&&t.parent().find(".upb-background-text-wrapper").addClass("full-browser-size")}),this},e.fn.ultimate_bg_color_shift=function(){return e(this).each(function(){var t=e(this),r=e(this).data("bg-override"),o=e(this).data("bg-color"),i=t.data("fadeout"),s=t.data("fadeout-percentage"),l=t.data("parallax-content"),d=t.data("parallax-content-sense"),n=t.data("row-effect-mobile-disable"),p=t.data("overlay"),c=t.data("overlay-color"),v=t.data("overlay-pattern"),u=t.data("overlay-pattern-opacity"),g=t.data("overlay-pattern-size"),h=t.data("hide-row"),f=t.data("rtl"),m="",b="";if(t.data("multi-color-overlay")&&(m=t.data("multi-color-overlay"),b=t.data("multi-color-overlay-opacity")),t.prev().is("p"))var _=t.prev().prev();else var _=t.prev();var y=overlay_color_html=overlay_pattern_html=overlay_multi_color_html="";if("undefined"!=typeof p&&"true"===p.toString()&&(""!=v&&(""!=g&&(g="background-size:"+g+"px;"),overlay_pattern_html='
    '),""!=c&&(overlay_color_html='
    '),""!=m&&(overlay_multi_color_html='
    '),y=overlay_color_html+overlay_pattern_html+overlay_multi_color_html),"browser_size"==r)_.wrapInner('
    ');else;if(""!=h&&(_.addClass("ult-vc-hide-row"),_.attr("data-hide-row",h)),_.attr("data-rtl",f),"parallax_content_value"==l){_.addClass("vc-row-translate"),_.wrapInner('
    '),_.attr("data-parallax-content-sense",d);var w=_.css("padding-top"),x=_.css("padding-bottom");_.find(".vc-row-translate-wrapper").css({"padding-top":w,"padding-bottom":x}),_[0].style.setProperty("padding-top","0px","important"),_[0].style.setProperty("padding-bottom","0px","important")}_.prepend('
    '+y+"
    "),a(t,_),t.remove(),t=_,t.attr("data-row-effect-mobile-disable",n),"fadeout_row_value"==i&&(t.addClass("vc-row-fade"),t.data("fadeout-percentage",s)),t.css("background-image",""),t=t.find(".upb_row_bg"),t.css({background:o}),t.attr("data-bg-override",r),"browser_size"==r&&t.parent().find(".upb-background-text-wrapper").addClass("full-browser-size")}),this},e.fn.ultimate_parallax_animation=function(t){function a(){var a,l=e(window).scrollTop();i.each(function(){if("upb_fade_animation"==e(this).data("upb_br_animation")){a=e(this).offset().top;var i=e(this),d=i.offset().top,n=o(i);if(l>d+n||d>l+r-100)return;var p=s-l;if(l>d+n-r){var c=p/r;if("parent"==t){var v=parseInt(e(this).css("opacity"));v+=c/2.3,e(this).parents(".vc-row-wrapper").css({opacity:v})}if("self"==t){var v=parseInt(e(this).css("opacity"));v+=c/2.3,e(this).css({opacity:v})}}s=l}})}var r=e(window).height(),o=function(e){return e.height()},i=e(this),s=e(window).scrollTop();e(window).bind("scroll",a).resize(a),a()}}(jQuery),jQuery(document).ready(function(){function e(){jQuery(".ult-vc-hide-row").each(function(e,t){var a=jQuery(t).data("hide-row");""!=a&&jQuery(t).addClass(a)})}function t(){jQuery(".ult-vc-seperator").each(function(){var e=jQuery(this).data("full-width"),t=jQuery(this).data("rtl");"undefined"==typeof t&&(t="false");var a=jQuery(this).parent().find(".upb_row_bg").data("bg-override");if("undefined"==typeof a)var a=jQuery(this).parent().find(".upb_video-bg").data("bg-override");if(("ex-full"==a||"full"==a||"browser_size"==a)&&1==e){var r=jQuery("html").width();if(jQuery(this).hasClass("ult-rounded-split-seperator-wrapper")){var o=jQuery(this).data("border"),i=jQuery(this).data("border-width");"undefined"!=typeof o&&"none"!=o&&"undefined"!=o&&(r-=i)}var s=jQuery(this).offset().left;jQuery(this).find(".ult-main-seperator-inner").width(r),jQuery(this).find(".ult-main-seperator-inner").css("true"==t.toString()?{"margin-right":-s+"px"}:{"margin-left":-s+"px"})}})}var a=0;jQuery(".upb_content_video, .upb_content_iframe").prev().is("p")?jQuery(".upb_content_video, .upb_content_iframe").prev().prev().css("background-image","").css("background-repeat",""):jQuery(".upb_content_video, .upb_content_iframe").prev().css("background-image","").css("background-repeat",""),jQuery(".upb_content_video").ultimate_video_bg(),jQuery(".upb_bg_img").ultimate_bg_shift(),jQuery(".dfd_bg_canvas").dfd_canvas_bg_effect(),jQuery(".upb_content_iframe").ultimate_video_bg(),jQuery(".upb_grad").ultimate_grad_shift(),jQuery(".upb_color").ultimate_bg_color_shift(),jQuery(".upb_no_bg").each(function(e,t){var a=jQuery(t).attr("data-fadeout"),r=jQuery(t).data("fadeout-percentage"),o=jQuery(t).data("parallax-content"),i=jQuery(t).data("parallax-content-sense"),s=jQuery(t).data("row-effect-mobile-disable");if(jQuery(t).prev().is("p"))var l=jQuery(t).prev().prev();else var l=jQuery(t).prev();if(l.attr("row-effect-mobile-disable",s),"fadeout_row_value"==a&&(l.addClass("vc-row-fade"),l.data("fadeout-percentage",r)),"parallax_content_value"==o){l.addClass("vc-row-translate"),l.attr("data-parallax-content-sense",i),l.wrapInner('
    ');var d=l.css("padding-top"),n=l.css("padding-bottom");l.find(".vc-row-translate-wrapper").css({"padding-top":d,"padding-bottom":n}),l[0].style.setProperty("padding-top","0px","important"),l[0].style.setProperty("padding-bottom","0px","important")}}),jQuery(".upb_no_bg").remove();var r=function(){jQuery(".upb_row_bg").each(function(){var e,t,a=jQuery(this).data("bg-override");if(t=jQuery(this).parent(),"browser_size"==a&&(e=jQuery("html")),"ex-full"==a)e=jQuery("html");else if("full"==a)e=jQuery("body");else if(!isNaN(a)){e=t;for(var r=0;a>r&&!e.is("html");r++)e=e.parent()}var o=parseInt(e.css("paddingLeft")),i=parseInt(e.css("paddingRight")),s=o+i+e.width(),l=-(t.offset().left-e.offset().left);if(l>0&&(left=0),jQuery(this).css({width:s,left:l}),"browser_size"==a){t.css("min-height",jQuery(window).height()+"px");{jQuery(this)}t.find(".upb-background-text-wrapper").length>0&&t.find(".upb-background-text-wrapper").css("min-height",jQuery(window).height()+"px")}}),jQuery(window).load(function(){jQuery(".upb_video-bg").each(function(e){var t,r,o=jQuery(this).data("bg-override");if(r=jQuery(this).parents(".vc-row-wrapper"),"browser_size"==o&&(t=jQuery("html"),jQuery(this).parents(".upb_video_class").css("overflow","visible")),"ex-full"==o)t=jQuery("html"),jQuery(this).parents(".upb_video_class").css("overflow","visible");else if("full"==o)t=jQuery("body"),jQuery(this).parents(".upb_video_class").css("overflow","visible");else if(!isNaN(o)){t=r;for(var i=1;o>i&&!t.is("html");i++)t=t.parent()}var s=(parseInt(t.css("paddingLeft")),parseInt(t.css("paddingRight")),parseInt(t.css("marginLeft")),t.outerWidth()),l=jQuery(this).offset().left,d=jQuery(this).position().left,n=t.offset().left,p=n-l;0>d&&(p=d+p),0==e&&(a=d),a>0&&(p=a),jQuery(this).css({width:s,"min-width":s,left:p});var c=16/9;pHeight=Math.ceil(s/c),children=jQuery(this).children(),children.css({width:s,"min-width":s});var v=jQuery(this).css("background-image");/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?("undefined"==typeof v||"none"==v)&&(children.css({"max-height":"auto",height:"auto"}),r.css("min-height","auto")):(children.css({height:pHeight}),"browser_size"==o&&(r.addClass("video-browser-size"),r.css("min-height",jQuery(window).height()+"px"),r.find(".upb_video-text-wrapper").length>0&&(r.find(".upb_video-text-wrapper").addClass("full-browser-size"),r.find(".upb_video-text-wrapper").css("min-height",jQuery(window).height()+"px"))))})})};r(),jQuery(window).load(function(){r(),t()}),jQuery(window).resize(function(){r(),t()}),jQuery(".video-controls").click(function(){var e=jQuery(this).attr("data-action"),t=jQuery(this).parent().find(".upb_video-src");"pause"==e?(jQuery(this).attr("data-action","play"),t[0].play(),jQuery(this).html('')):(jQuery(this).attr("data-action","pause"),t[0].pause(),jQuery(this).html('')),t.hasClass("enable-on-viewport")&&t.addClass("override-controls")}),e(),t(),jQuery(".vcpb-animated").each(function(e,t){var a=jQuery(t).data("animation-repeat");jQuery(this).css({"background-repeat":a});var r=jQuery(t).parent().attr("data-img-parallax-mobile-disable");if(r="undefined"==typeof r?"false":r.toString(),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))var o="true";else var o="false";if("true"==o&&"true"==r)var i="true";else var i="false";if("false"==i){var s=10;""!=jQuery(this).attr("data-parallax_sense")&&(s=jQuery(this).attr("data-parallax_sense")),s=100-s;var l=jQuery(this).attr("data-bg-animation-type"),d=jQuery(this).attr("data-bg-animation"),n=0,p=l;setInterval(function(){"right-animation"==d||"bottom-animation"==d?n-=1:n+=1,jQuery(t).css("backgroundPosition","h"==p?n+"px 0":"0 "+n+"px")},s)}})}); ;window.Modernizr=function(a,b,c){function B(a){j.cssText=a}function C(a,b){return B(n.join(a+";")+(b||""))}function D(a,b){return typeof a===b}function E(a,b){return!!~(""+a).indexOf(b)}function F(a,b){for(var d in a){var e=a[d];if(!E(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function G(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:D(f,"function")?f.bind(d||b):f}return!1}function H(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+p.join(d+" ")+d).split(" ");return D(b,"string")||D(b,"undefined")?F(e,b):(e=(a+" "+q.join(d+" ")+d).split(" "),G(e,b,c))}var d="2.7.1",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l=":)",m={}.toString,n=" -webkit- -moz- -o- -ms- ".split(" "),o="Webkit Moz O ms",p=o.split(" "),q=o.toLowerCase().split(" "),r={svg:"http://www.w3.org/2000/svg"},s={},t={},u={},v=[],w=v.slice,x,y=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},z={}.hasOwnProperty,A;!D(z,"undefined")&&!D(z.call,"undefined")?A=function(a,b){return z.call(a,b)}:A=function(a,b){return b in a&&D(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=w.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(w.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(w.call(arguments)))};return e}),s.flexbox=function(){return H("flexWrap")},s.flexboxlegacy=function(){return H("boxDirection")},s.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:y(["@media (",n.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},s.rgba=function(){return B("background-color:rgba(150,255,150,.5)"),E(j.backgroundColor,"rgba")},s.hsla=function(){return B("background-color:hsla(120,40%,100%,.5)"),E(j.backgroundColor,"rgba")||E(j.backgroundColor,"hsla")},s.multiplebgs=function(){return B("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(j.background)},s.backgroundsize=function(){return H("backgroundSize")},s.borderimage=function(){return H("borderImage")},s.borderradius=function(){return H("borderRadius")},s.boxshadow=function(){return H("boxShadow")},s.textshadow=function(){return b.createElement("div").style.textShadow===""},s.opacity=function(){return C("opacity:.55"),/^0.55$/.test(j.opacity)},s.cssanimations=function(){return H("animationName")},s.csscolumns=function(){return H("columnCount")},s.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return B((a+"-webkit- ".split(" ").join(b+a)+n.join(c+a)).slice(0,-a.length)),E(j.backgroundImage,"gradient")},s.cssreflections=function(){return H("boxReflect")},s.csstransforms=function(){return!!H("transform")},s.csstransforms3d=function(){var a=!!H("perspective");return a&&"webkitPerspective"in g.style&&y("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=b.offsetLeft===9&&b.offsetHeight===3}),a},s.csstransitions=function(){return H("transition")},s.fontface=function(){var a;return y('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&g.indexOf(d.split(" ")[0])===0}),a},s.generatedcontent=function(){var a;return y(["#",h,"{font:0/0 a}#",h,':after{content:"',l,'";visibility:hidden;font:3px/1 a}'].join(""),function(b){a=b.offsetHeight>=3}),a},s.svg=function(){return!!b.createElementNS&&!!b.createElementNS(r.svg,"svg").createSVGRect},s.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="",(a.firstChild&&a.firstChild.namespaceURI)==r.svg},s.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(m.call(b.createElementNS(r.svg,"clipPath")))};for(var I in s)A(s,I)&&(x=I.toLowerCase(),e[x]=s[I](),v.push((e[x]?"":"no-")+x));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)A(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},B(""),i=k=null,function(a,b){function l(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function m(){var a=s.elements;return typeof a=="string"?a.split(" "):a}function n(a){var b=j[a[h]];return b||(b={},i++,a[h]=i,j[i]=b),b}function o(a,c,d){c||(c=b);if(k)return c.createElement(a);d||(d=n(c));var g;return d.cache[a]?g=d.cache[a].cloneNode():f.test(a)?g=(d.cache[a]=d.createElem(a)).cloneNode():g=d.createElem(a),g.canHaveChildren&&!e.test(a)&&!g.tagUrn?d.frag.appendChild(g):g}function p(a,c){a||(a=b);if(k)return a.createDocumentFragment();c=c||n(a);var d=c.frag.cloneNode(),e=0,f=m(),g=f.length;for(;e",g="hidden"in a,k=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){g=!0,k=!0}})();var s={elements:d.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:c,shivCSS:d.shivCSS!==!1,supportsUnknownElements:k,shivMethods:d.shivMethods!==!1,type:"default",shivDocument:r,createElement:o,createDocumentFragment:p};a.html5=s,r(b)}(this,b),e._version=d,e._prefixes=n,e._domPrefixes=q,e._cssomPrefixes=p,e.testProp=function(a){return F([a])},e.testAllProps=H,e.testStyles=y,e.prefixed=function(a,b,c){return b?H(a,b,c):H(a,"pfx")},g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+v.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f
    ').insertAfter(r)),s.toggleClass("checked",r.is(":checked")),s.toggleClass("disabled",r.is(":disabled"))}function s(r,i){var s=t(),o=e(i),u=o.next("div.custom.dropdown"),a=u.find("ul"),f=u.find(".current"),l=u.find(".selector"),c=o.find("option"),h=c.filter(":selected"),p=0,d="",v,m=!1;if(o.hasClass(n.disable_class))return;if(u.length===0){var g=o.hasClass("small")?"small":o.hasClass("medium")?"medium":o.hasClass("large")?"large":o.hasClass("expand")?"expand":"";u=e('
      '),l=u.find(".selector"),a=u.find("ul"),d=c.map(function(){return"
    • "+e(this).html()+"
    • "}).get().join(""),a.append(d),m=u.prepend(''+h.html()+"").find(".current"),o.after(u).hide()}else d=c.map(function(){return"
    • "+e(this).html()+"
    • "}).get().join(""),a.html("").append(d);u.toggleClass("disabled",o.is(":disabled")),v=a.find("li"),c.each(function(t){this.selected&&(v.eq(t).addClass("selected"),m&&m.html(e(this).html()))}),a.css("width","auto"),u.css("width","auto"),u.is(".small, .medium, .large, .expand")||(u.addClass("open"),s.adjust(a),p=v.outerWidth()>p?v.outerWidth():p,s.reset(),u.removeClass("open"),u.width(p+18),a.width(p+16))}var r={disable_class:"no-custom"};n=e.extend(r,n),e("form.custom input:radio[data-customforms!=disabled]").each(i),e("form.custom input:checkbox[data-customforms!=disabled]").each(i),e("form.custom select[data-customforms!=disabled]").each(s)};var n=function(t){var n=0,r=t.next();$options=t.find("option"),r.find("ul").html(""),$options.each(function(){$li=e("
    • "+e(this).html()+"
    • "),r.find("ul").append($li)}),$options.each(function(t){this.selected&&(r.find("li").eq(t).addClass("selected"),r.find(".current").html(e(this).html()))}),r.removeAttr("style").find("ul").removeAttr("style"),r.find("li").each(function(){r.addClass("open"),e(this).outerWidth()>n&&(n=e(this).outerWidth()),r.removeClass("open")}),r.css("width",n+18+"px"),r.find("ul").css("width",n+16+"px")},r=function(e){var t=e.prev(),n=t[0];!1===t.is(":disabled")&&(n.checked=n.checked?!1:!0,e.toggleClass("checked"),t.trigger("change"))},i=function(e){var t=e.prev(),n=t.closest("form.custom"),r=t[0];!1===t.is(":disabled")&&(n.find('input:radio[name="'+t.attr("name")+'"]').next().not(e).removeClass("checked"),e.hasClass("checked")||e.toggleClass("checked"),r.checked=e.hasClass("checked"),t.trigger("change"))};e(document).on("click","form.custom span.custom.checkbox",function(t){t.preventDefault(),t.stopPropagation(),r(e(this))}),e(document).on("click","form.custom span.custom.radio",function(t){t.preventDefault(),t.stopPropagation(),i(e(this))}),e(document).on("change","form.custom select[data-customforms!=disabled]",function(t){n(e(this))}),e(document).on("click","form.custom label",function(t){var n=e("#"+e(this).attr("for")+"[data-customforms!=disabled]"),s,o;n.length!==0&&(n.attr("type")==="checkbox"?(t.preventDefault(),s=e(this).find("span.custom.checkbox"),s.length==0&&(s=e(this).next("span.custom.checkbox")),s.length==0&&(s=e(this).prev("span.custom.checkbox")),r(s)):n.attr("type")==="radio"&&(t.preventDefault(),o=e(this).find("span.custom.radio"),o.length==0&&(o=e(this).next("span.custom.radio")),o.length==0&&(o=e(this).prev("span.custom.radio")),i(o)))}),e(document).on("click","form.custom div.custom.dropdown a.current, form.custom div.custom.dropdown a.selector",function(t){var n=e(this),r=n.closest("div.custom.dropdown"),i=r.prev();t.preventDefault(),e("div.dropdown").removeClass("open");if(!1===i.is(":disabled"))return r.toggleClass("open"),r.hasClass("open")?e(document).bind("click.customdropdown",function(t){r.removeClass("open"),e(document).unbind(".customdropdown")}):e(document).unbind(".customdropdown"),!1}),e(document).on("click","form.custom div.custom.dropdown li",function(t){var n=e(this),r=n.closest("div.custom.dropdown"),i=r.prev(),s=0;t.preventDefault(),t.stopPropagation(),e("div.dropdown").removeClass("open"),n.closest("ul").find("li").removeClass("selected"),n.addClass("selected"),r.removeClass("open").find("a.current").html(n.html()),n.closest("ul").find("li").each(function(e){n[0]==this&&(s=e)}),i[0].selectedIndex=s,i.trigger("change")}),e.fn.foundationCustomForms=e.foundation.customForms.appendCustomMarkup})(jQuery);(function(e){typeof define=="function"&&define.amd?define(["jquery"],e):e(jQuery)})(function(e,t){function l(e){function i(e){n?(t(),o(i),r=!0,n=!1):r=!1}var t=e,n=!1,r=!1;this.kick=function(e){n=!0,r||i()},this.end=function(e){var i=t;if(!e)return;r?(t=n?function(){i(),e()}:e,n=!0):e()}}function c(){return!0}function h(){return!1}function p(e){e.preventDefault()}function d(e){if(u[e.target.tagName.toLowerCase()])return;e.preventDefault()}function v(e){return e.which===1&&!e.ctrlKey&&!e.altKey}function m(e,t){var n,r;if(e.identifiedTouch)return e.identifiedTouch(t);n=-1,r=e.length;while(++ne.distY){if(e.distX>-e.distY){if(e.distX/t>s.threshold||e.velocityX*e.distX/t*s.sensitivity>1)r.type="swiperight",i(e.currentTarget,r)}else if(-e.distY/n>s.threshold||e.velocityY*e.distY/t*s.sensitivity>1)r.type="swipeup",i(e.currentTarget,r)}else if(e.distX>-e.distY){if(e.distY/n>s.threshold||e.velocityY*e.distY/t*s.sensitivity>1)r.type="swipedown",i(e.currentTarget,r)}else if(-e.distX/t>s.threshold||e.velocityX*e.distX/t*s.sensitivity>1)r.type="swipeleft",i(e.currentTarget,r)}function u(t){var n=e.data(t,"event_swipe");return n||(n={count:0},e.data(t,"event_swipe",n)),n}var n=e.event.add,r=e.event.remove,i=function(t,n,r){e.event.trigger(n,r,t)},s={threshold:.4,sensitivity:6};e.event.special.swipe=e.event.special.swipeleft=e.event.special.swiperight=e.event.special.swipeup=e.event.special.swipedown={setup:function(e,t,r){var e=u(this);if(e.count++>0)return;return n(this,"moveend",o),!0},teardown:function(){var e=u(this);if(--e.count>0)return;return r(this,"moveend",o),!0},settings:s}});(function(e){"use strict";var t=!1;e(document).on("click","a[data-reveal-id]",function(t){t.preventDefault();var n=e(this).attr("data-reveal-id");e("#"+n).reveal(e(this).data())}),e.fn.reveal=function(n){var r=e(document),i={animation:"fadeAndPop",animationSpeed:300,closeOnBackgroundClick:!0,dismissModalClass:"close-reveal-modal",open:e.noop,opened:e.noop,close:e.noop,closed:e.noop};return n=e.extend({},i,n),this.not(".reveal-modal.open").each(function(){function c(){u=!1}function h(){u=!0}function p(){var n=e(".reveal-modal.open");n.length===1&&(t=!0,n.trigger("reveal:close"))}function d(){u||(h(),p(),i.addClass("open"),n.animation==="fadeAndPop"&&(f.open.top=r.scrollTop()-o,f.open.opacity=0,i.css(f.open),a.fadeIn(n.animationSpeed/2),i.delay(n.animationSpeed/2).animate({top:r.scrollTop()+s+"px",opacity:1},n.animationSpeed,function(){i.trigger("reveal:opened")})),n.animation==="fade"&&(f.open.top=r.scrollTop()+s,f.open.opacity=0,i.css(f.open),a.fadeIn(n.animationSpeed/2),i.delay(n.animationSpeed/2).animate({opacity:1},n.animationSpeed,function(){i.trigger("reveal:opened")})),n.animation==="none"&&(f.open.top=r.scrollTop()+s,f.open.opacity=1,i.css(f.open),a.css({display:"block"}),i.trigger("reveal:opened")))}function v(){var e=i.find(".flex-video"),t=e.find("iframe");t.length>0&&(t.attr("src",t.data("src")),e.fadeIn(100))}function m(){u||(h(),i.removeClass("open"),n.animation==="fadeAndPop"&&(i.animate({top:r.scrollTop()-o+"px",opacity:0},n.animationSpeed/2,function(){i.css(f.close)}),t?i.trigger("reveal:closed"):a.delay(n.animationSpeed).fadeOut(n.animationSpeed,function(){i.trigger("reveal:closed")})),n.animation==="fade"&&(i.animate({opacity:0},n.animationSpeed,function(){i.css(f.close)}),t?i.trigger("reveal:closed"):a.delay(n.animationSpeed).fadeOut(n.animationSpeed,function(){i.trigger("reveal:closed")})),n.animation==="none"&&(i.css(f.close),t||a.css({display:"none"}),i.trigger("reveal:closed")),t=!1)}function g(){i.unbind(".reveal"),a.unbind(".reveal"),l.unbind(".reveal"),e("body").unbind(".reveal")}function y(){var e=i.find(".flex-video"),t=e.find("iframe");t.length>0&&(t.data("src",t.attr("src")),t.attr("src",""),e.fadeOut(100))}var i=e(this),s=parseInt(i.css("top"),10),o=i.height()+s,u=!1,a=e(".reveal-modal-bg"),f={open:{top:0,opacity:0,visibility:"visible",display:"block"},close:{top:s,opacity:1,visibility:"hidden",display:"none"}},l;a.length===0&&(a=e("
      ",{"class":"reveal-modal-bg"}).insertAfter(i),a.fadeTo("fast",.8)),i.bind("reveal:open.reveal",d),i.bind("reveal:open.reveal",v),i.bind("reveal:close.reveal",m),i.bind("reveal:closed.reveal",y),i.bind("reveal:opened.reveal reveal:closed.reveal",c),i.bind("reveal:closed.reveal",g),i.bind("reveal:open.reveal",n.open),i.bind("reveal:opened.reveal",n.opened),i.bind("reveal:close.reveal",n.close),i.bind("reveal:closed.reveal",n.closed),i.trigger("reveal:open"),l=e("."+n.dismissModalClass).bind("click.reveal",function(){i.trigger("reveal:close")}),n.closeOnBackgroundClick&&(a.css({cursor:"pointer"}),a.bind("click.reveal",function(){i.trigger("reveal:close")})),e("body").bind("keyup.reveal",function(e){e.which===27&&i.trigger("reveal:close")})})}})(jQuery);(function(e){"use strict";e.fn.findFirstImage=function(){return this.first().find("img").andSelf().filter("img").first()};var t={defaults:{animation:"horizontal-push",animationSpeed:600,timer:!0,advanceSpeed:4e3,pauseOnHover:!1,startClockOnMouseOut:!1,startClockOnMouseOutAfter:1e3,directionalNav:!0,directionalNavRightText:"Right",directionalNavLeftText:"Left",captions:!0,captionAnimation:"fade",captionAnimationSpeed:600,resetTimerOnClick:!1,bullets:!1,bulletThumbs:!1,bulletThumbLocation:"",bulletThumbsHideOnSmall:!0,afterSlideChange:e.noop,afterLoadComplete:e.noop,fluid:!0,centerBullets:!0,singleCycle:!1,slideNumber:!1,stackOnSmall:!1},activeSlide:0,numberSlides:0,orbitWidth:null,orbitHeight:null,locked:null,timerRunning:null,degrees:0,wrapperHTML:'
      ',timerHTML:'
      ',captionHTML:'
      ',directionalNavHTML:'
      ',bulletHTML:'
        ',slideNumberHTML:'',init:function(t,n){var r,i=0,s=this;this.clickTimer=e.proxy(this.clickTimer,this),this.addBullet=e.proxy(this.addBullet,this),this.resetAndUnlock=e.proxy(this.resetAndUnlock,this),this.stopClock=e.proxy(this.stopClock,this),this.startTimerAfterMouseLeave=e.proxy(this.startTimerAfterMouseLeave,this),this.clearClockMouseLeaveTimer=e.proxy(this.clearClockMouseLeaveTimer,this),this.rotateTimer=e.proxy(this.rotateTimer,this),this.options=e.extend({},this.defaults,n),this.options.timer==="false"&&(this.options.timer=!1),this.options.captions==="false"&&(this.options.captions=!1),this.options.directionalNav==="false"&&(this.options.directionalNav=!1),this.$element=e(t),this.$wrapper=this.$element.wrap(this.wrapperHTML).parent(),this.$slides=this.$element.children("img, a, div, figure, li"),this.$element.on("movestart",function(e){(e.distX>e.distY&&e.distX<-e.distY||e.distX-e.distY)&&e.preventDefault()}),this.$element.bind("orbit.next",function(){s.shift("next")}),this.$element.bind("orbit.prev",function(){s.shift("prev")}),this.$element.bind("swipeleft",function(){e(this).trigger("orbit.next")}),this.$element.bind("swiperight",function(){e(this).trigger("orbit.prev")}),this.$element.bind("orbit.goto",function(e,t){s.shift(t)}),this.$element.bind("orbit.start",function(e,t){s.startClock()}),this.$element.bind("orbit.stop",function(e,t){s.stopClock()}),r=this.$slides.filter("img"),r.length===0?this.loaded():r.bind("imageready",function(){i+=1,i===r.length&&s.loaded()})},loaded:function(){this.$element.addClass("orbit").css({width:"1px",height:"1px"}),this.options.stackOnSmall&&this.$element.addClass("orbit-stack-on-small"),this.$slides.addClass("orbit-slide").css({opacity:0}),this.setDimentionsFromLargestSlide(),this.updateOptionsIfOnlyOneSlide(),this.setupFirstSlide(),this.notifySlideChange(),this.options.timer&&(this.setupTimer(),this.startClock()),this.options.captions&&this.setupCaptions(),this.options.directionalNav&&this.setupDirectionalNav(),this.options.bullets&&(this.setupBulletNav(),this.setActiveBullet()),this.options.afterLoadComplete.call(this),Holder.run()},currentSlide:function(){return this.$slides.eq(this.activeSlide)},notifySlideChange:function(){if(this.options.slideNumber){var t=this.activeSlide+1+" of "+this.$slides.length;this.$element.trigger("orbit.change",{slideIndex:this.activeSlide,slideCount:this.$slides.length});if(this.$counter===undefined){var n=e(this.slideNumberHTML).html(t);this.$counter=n,this.$wrapper.append(this.$counter)}else this.$counter.html(t)}},setDimentionsFromLargestSlide:function(){var t=this,n;t.$element.add(t.$wrapper).width(this.$slides.first().outerWidth()),t.$element.add(t.$wrapper).height(this.$slides.first().height()),t.orbitWidth=this.$slides.first().outerWidth(),t.orbitHeight=this.$slides.first().height(),n=this.$slides.first().findFirstImage().clone(),this.$slides.each(function(){var r=e(this),i=r.outerWidth(),s=r.height();i>t.$element.outerWidth()&&(t.$element.add(t.$wrapper).width(i),t.orbitWidth=t.$element.outerWidth()),s>t.$element.height()&&(t.$element.add(t.$wrapper).height(s),t.orbitHeight=t.$element.height(),n=e(this).findFirstImage().clone()),t.numberSlides+=1}),this.options.fluid&&(typeof this.options.fluid=="string"&&(n=e("").attr("data-src","holder.js/"+this.options.fluid)),t.$element.prepend(n),n.addClass("fluid-placeholder"),t.$element.add(t.$wrapper).css({width:"inherit"}),t.$element.add(t.$wrapper).css({height:"inherit"}),e(window).bind("resize",function(){t.orbitWidth=t.$element.outerWidth(),t.orbitHeight=t.$element.height()}))},lock:function(){this.locked=!0},unlock:function(){this.locked=!1},updateOptionsIfOnlyOneSlide:function(){this.$slides.length===1&&(this.options.directionalNav=!1,this.options.timer=!1,this.options.bullets=!1)},setupFirstSlide:function(){var e=this;this.$slides.first().css({"z-index":3,opacity:1}).fadeIn(function(){e.$slides.css({display:"block"})})},startClock:function(){var e=this;if(!this.options.timer)return!1;this.$timer.is(":hidden")?this.clock=setInterval(function(){e.$element.trigger("orbit.next")},this.options.advanceSpeed):(this.timerRunning=!0,this.$pause.removeClass("active"),this.clock=setInterval(this.rotateTimer,this.options.advanceSpeed/180,!1))},rotateTimer:function(e){var t="rotate("+this.degrees+"deg)";this.degrees+=2,this.$rotator.css({"-webkit-transform":t,"-moz-transform":t,"-o-transform":t,"-ms-transform":t}),e&&(this.degrees=0,this.$rotator.removeClass("move"),this.$mask.removeClass("move")),this.degrees>180&&(this.$rotator.addClass("move"),this.$mask.addClass("move")),this.degrees>360&&(this.$rotator.removeClass("move"),this.$mask.removeClass("move"),this.degrees=0,this.$element.trigger("orbit.next"))},stopClock:function(){if(!this.options.timer)return!1;this.timerRunning=!1,clearInterval(this.clock),this.$pause.addClass("active")},setupTimer:function(){this.$timer=e(this.timerHTML),this.$wrapper.append(this.$timer),this.$rotator=this.$timer.find(".rotator"),this.$mask=this.$timer.find(".mask"),this.$pause=this.$timer.find(".pause"),this.$timer.click(this.clickTimer),this.options.startClockOnMouseOut&&(this.$wrapper.mouseleave(this.startTimerAfterMouseLeave),this.$wrapper.mouseenter(this.clearClockMouseLeaveTimer)),this.options.pauseOnHover&&this.$wrapper.mouseenter(this.stopClock)},startTimerAfterMouseLeave:function(){var e=this;this.outTimer=setTimeout(function(){e.timerRunning||e.startClock()},this.options.startClockOnMouseOutAfter)},clearClockMouseLeaveTimer:function(){clearTimeout(this.outTimer)},clickTimer:function(){this.timerRunning?this.stopClock():this.startClock()},setupCaptions:function(){this.$caption=e(this.captionHTML),this.$wrapper.append(this.$caption),this.setCaption()},setCaption:function(){var t=this.currentSlide().attr("data-caption"),n;if(!this.options.captions)return!1;if(t){if(e.trim(e(t).text()).length<1)return!1;t.charAt(0)=="#"&&(t=t.substring(1,t.length)),n=e("#"+t).html(),this.$caption.attr("id",t).html(n);switch(this.options.captionAnimation){case"none":this.$caption.show();break;case"fade":this.$caption.fadeIn(this.options.captionAnimationSpeed);break;case"slideOpen":this.$caption.slideDown(this.options.captionAnimationSpeed)}}else switch(this.options.captionAnimation){case"none":this.$caption.hide();break;case"fade":this.$caption.fadeOut(this.options.captionAnimationSpeed);break;case"slideOpen":this.$caption.slideUp(this.options.captionAnimationSpeed)}},setupDirectionalNav:function(){var t=this,n=e(this.directionalNavHTML);n.find(".right").html(this.options.directionalNavRightText),n.find(".left").html(this.options.directionalNavLeftText),this.$wrapper.append(n),this.$wrapper.find(".left").click(function(){t.stopClock(),t.options.resetTimerOnClick&&(t.rotateTimer(!0),t.startClock()),t.$element.trigger("orbit.prev")}),this.$wrapper.find(".right").click(function(){t.stopClock(),t.options.resetTimerOnClick&&(t.rotateTimer(!0),t.startClock()),t.$element.trigger("orbit.next")})},setupBulletNav:function(){this.$bullets=e(this.bulletHTML),this.$wrapper.append(this.$bullets),this.$slides.each(this.addBullet),this.$element.addClass("with-bullets"),this.options.centerBullets&&this.$bullets.css("margin-left",-this.$bullets.outerWidth()/2),this.options.bulletThumbsHideOnSmall&&this.$bullets.addClass("hide-for-small")},addBullet:function(t,n){var r=t+1,i=e("
      • "+r+"
      • "),s,o=this;this.options.bulletThumbs&&(s=e(n).attr("data-thumb"),s&&i.addClass("has-thumb").css({background:"url("+this.options.bulletThumbLocation+s+") no-repeat"})),this.$bullets.append(i),i.data("index",t),i.click(function(){o.stopClock(),o.options.resetTimerOnClick&&(o.rotateTimer(!0),o.startClock()),o.$element.trigger("orbit.goto",[i.data("index")])})},setActiveBullet:function(){if(!this.options.bullets)return!1;this.$bullets.find("li").removeClass("active").eq(this.activeSlide).addClass("active")},resetAndUnlock:function(){this.$slides.eq(this.prevActiveSlide).css({"z-index":1}),this.unlock(),this.options.afterSlideChange.call(this,this.$slides.eq(this.prevActiveSlide),this.$slides.eq(this.activeSlide))},shift:function(t){var n=t;this.prevActiveSlide=this.activeSlide;if(this.prevActiveSlide==n)return!1;if(this.$slides.length=="1")return!1;this.locked||(this.lock(),t=="next"?(this.activeSlide++,this.activeSlide==this.numberSlides&&(this.activeSlide=0)):t=="prev"?(this.activeSlide--,this.activeSlide<0&&(this.activeSlide=this.numberSlides-1)):(this.activeSlide=t,this.prevActiveSlidethis.activeSlide&&(n="prev")),this.setActiveBullet(),this.notifySlideChange(),this.$slides.eq(this.prevActiveSlide).css({"z-index":2}),this.options.animation=="fade"&&(this.$slides.eq(this.activeSlide).css({opacity:0,"z-index":3}).animate({opacity:1},this.options.animationSpeed,this.resetAndUnlock),this.$slides.eq(this.prevActiveSlide).animate({opacity:0},this.options.animationSpeed)),this.options.animation=="horizontal-slide"&&(n=="next"&&this.$slides.eq(this.activeSlide).css({left:this.orbitWidth,"z-index":3}).css("opacity",1).animate({left:0},this.options.animationSpeed,this.resetAndUnlock),n=="prev"&&this.$slides.eq(this.activeSlide).css({left:-this.orbitWidth,"z-index":3}).css("opacity",1).animate({left:0},this.options.animationSpeed,this.resetAndUnlock),this.$slides.eq(this.prevActiveSlide).css("opacity",0)),this.options.animation=="vertical-slide"&&(n=="prev"&&(this.$slides.eq(this.activeSlide).css({top:this.orbitHeight,"z-index":3}).css("opacity",1).animate({top:0},this.options.animationSpeed,this.resetAndUnlock),this.$slides.eq(this.prevActiveSlide).css("opacity",0)),n=="next"&&this.$slides.eq(this.activeSlide).css({top:-this.orbitHeight,"z-index":3}).css("opacity",1).animate({top:0},this.options.animationSpeed,this.resetAndUnlock),this.$slides.eq(this.prevActiveSlide).css("opacity",0)),this.options.animation=="horizontal-push"&&(n=="next"&&(this.$slides.eq(this.activeSlide).css({left:this.orbitWidth,"z-index":3}).animate({left:0,opacity:1},this.options.animationSpeed,this.resetAndUnlock),this.$slides.eq(this.prevActiveSlide).animate({left:-this.orbitWidth},this.options.animationSpeed,"",function(){e(this).css({opacity:0})})),n=="prev"&&(this.$slides.eq(this.activeSlide).css({left:-this.orbitWidth,"z-index":3}).animate({left:0,opacity:1},this.options.animationSpeed,this.resetAndUnlock),this.$slides.eq(this.prevActiveSlide).animate({left:this.orbitWidth},this.options.animationSpeed,"",function(){e(this).css({opacity:0})}))),this.options.animation=="vertical-push"&&(n=="next"&&(this.$slides.eq(this.activeSlide).css({top:-this.orbitHeight,"z-index":3}).css("opacity",1).animate({top:0,opacity:1},this.options.animationSpeed,this.resetAndUnlock),this.$slides.eq(this.prevActiveSlide).css("opacity",0).animate({top:this.orbitHeight},this.options.animationSpeed,"")),n=="prev"&&(this.$slides.eq(this.activeSlide).css({top:this.orbitHeight,"z-index":3}).css("opacity",1).animate({top:0},this.options.animationSpeed,this.resetAndUnlock),this.$slides.eq(this.prevActiveSlide).css("opacity",0).animate({top:-this.orbitHeight},this.options.animationSpeed))),this.setCaption()),this.activeSlide===this.$slides.length-1&&this.options.singleCycle&&this.stopClock()}};e.fn.orbit=function(n){return this.each(function(){var r=e.extend({},t);r.init(this,n)})}})(jQuery),function(e){function n(t,n){var r=e(t);r.bind("load.imageready",function(){n.apply(t,arguments),r.unbind("load.imageready")})}var t={};e.event.special.imageready={setup:function(e,n,r){t=e||t},add:function(r){var i=e(this),s;this.nodeType===1&&this.tagName.toLowerCase()==="img"&&this.src!==""&&(t.forceLoad?(s=i.attr("src"),i.attr("src",""),n(this,r.handler),i.attr("src",s)):this.complete||this.readyState===4?r.handler.apply(this,arguments):n(this,r.handler))},teardown:function(t){e(this).unbind(".imageready")}}}(jQuery);var Holder=Holder||{};(function(e,t){function s(e,t){var n="complete",r="readystatechange",i=!1,s=i,o=!0,u=e.document,a=u.documentElement,f=u.addEventListener?"addEventListener":"attachEvent",l=u.addEventListener?"removeEventListener":"detachEvent",c=u.addEventListener?"":"on",h=function(o){(o.type!=r||u.readyState==n)&&((o.type=="load"?e:u)[l](c+o.type,h,i),!s&&(s=!0)&&t.call(e,null))},p=function(){try{a.doScroll("left")}catch(e){setTimeout(p,50);return}h("poll")};if(u.readyState==n)t.call(e,"lazy");else{if(u.createEventObject&&a.doScroll){try{o=!e.frameElement}catch(d){}o&&p()}u[f](c+"DOMContentLoaded",h,i),u[f](c+r,h,i),e[f](c+"load",h,i)}}function o(e){e=e.match(/^(\W)?(.*)/);var t=document["getElement"+(e[1]?e[1]=="#"?"ById":"sByClassName":"sByTagName")](e[2]),n=[];return t!=null&&(t.length?n=t:t.length==0?n=t:n=[t]),n}function u(e,t){var n={};for(var r in e)n[r]=e[r];for(var i in t)n[i]=t[i];return n}function a(e,t,n){var r=[t.height,t.width].sort(),s=Math.round(r[1]/16),o=Math.round(r[0]/16),u=Math.max(n.size,s);i.width=t.width,i.height=t.height,e.textAlign="center",e.textBaseline="middle",e.fillStyle=n.background,e.fillRect(0,0,t.width,t.height),e.fillStyle=n.foreground,e.font="bold "+u+"px sans-serif";var a=n.text?n.text:t.width+"x"+t.height;return Math.round(e.measureText(a).width)/t.width>1&&(u=Math.max(o,n.size)),e.font="bold "+u+"px sans-serif",e.fillText(a,t.width/2,t.height/2,t.width),i.toDataURL("image/png")}var n=!1,r=!1,i=document.createElement("canvas");if(!i.getContext)r=!0;else if(i.toDataURL("image/png").indexOf("data:image/png")<0)r=!0;else var f=i.getContext("2d");var l={domain:"holder.js",images:"img",themes:{gray:{background:"#eee",foreground:"#aaa",size:12},social:{background:"#3a5a97",foreground:"#fff",size:12},industrial:{background:"#434A52",foreground:"#C2F200",size:12}}};e.flags={dimensions:{regex:/([0-9]+)x([0-9]+)/,output:function(e){var t=this.regex.exec(e);return{width:+t[1],height:+t[2]}}},colors:{regex:/#([0-9a-f]{3,})\:#([0-9a-f]{3,})/i,output:function(e){var t=this.regex.exec(e);return{size:l.themes.gray.size,foreground:"#"+t[2],background:"#"+t[1]}}},text:{regex:/text\:(.*)/,output:function(e){return this.regex.exec(e)[1]}}};for(var c in e.flags)e.flags[c].match=function(e){return e.match(this.regex)};e.add_theme=function(t,n){return t!=null&&n!=null&&(l.themes[t]=n),e},e.add_image=function(t,n){var r=o(n);if(r.length)for(var i=0,s=r.length;ili.has-flyout",this).addClass("is-touch")):e(".nav-bar>li.has-flyout",this).on("mouseenter mouseleave",function(t){t.type=="mouseenter"&&(e(".nav-bar").find(".flyout").hide(),e(this).children(".flyout").show());if(t.type=="mouseleave"){var n=e(this).children(".flyout"),r=n.find("input"),i=function(t){var n;return t.length>0?(t.each(function(){e(this).is(":focus")&&(n=!0)}),n):!1};i(r)||e(this).children(".flyout").hide()}})}})(jQuery,this);(function(e,t,n){"use strict";e.fn.foundationButtons=function(t){var r=e(document),i=e.extend({dropdownAsToggle:!1,activeClass:"active"},t),s=function(t){e(".button.dropdown").find("ul").not(t).removeClass("show-dropdown")},o=function(t){var n=e(".button.dropdown").not(t);n.add(e("> span."+i.activeClass,n)).removeClass(i.activeClass)};r.on("click.fndtn",".button.disabled",function(e){e.preventDefault()}),e(".button.dropdown > ul",this).addClass("no-hover"),r.on("click.fndtn",".button.dropdown:not(.split), .button.dropdown.split span",function(t){var n=e(this),r=n.closest(".button.dropdown"),u=e("> ul",r);e.inArray(t.target.nodeName,["A","BUTTON"])&&t.preventDefault(),setTimeout(function(){s(i.dropdownAsToggle?"":u),u.toggleClass("show-dropdown"),i.dropdownAsToggle&&(o(r),n.toggleClass(i.activeClass))},0)}),r.on("click.fndtn","body, html",function(t){if(n==t.originalEvent)return;e(t.originalEvent.target).is(".button.dropdown:not(.split), .button.dropdown.split span")||(s(),i.dropdownAsToggle&&o())});var u=e(".button.dropdown:not(.large):not(.small):not(.tiny):visible",this).outerHeight()-1,a=e(".button.large.dropdown:visible",this).outerHeight()-1,f=e(".button.small.dropdown:visible",this).outerHeight()-1,l=e(".button.tiny.dropdown:visible",this).outerHeight()-1;e(".button.dropdown:not(.large):not(.small):not(.tiny) > ul",this).css("top",u),e(".button.dropdown.large > ul",this).css("top",a),e(".button.dropdown.small > ul",this).css("top",f),e(".button.dropdown.tiny > ul",this).css("top",l),e(".button.dropdown.up:not(.large):not(.small):not(.tiny) > ul",this).css("top","auto").css("bottom",u-2),e(".button.dropdown.up.large > ul",this).css("top","auto").css("bottom",a-2),e(".button.dropdown.up.small > ul",this).css("top","auto").css("bottom",f-2),e(".button.dropdown.up.tiny > ul",this).css("top","auto").css("bottom",l-2)}})(jQuery,this);(function(e,t,n,r){"use strict";var i={callback:e.noop,deep_linking:!0,init:!1},s={init:function(t){return i=e.extend({},i,t),this.each(function(){i.init||s.events(),i.deep_linking&&s.from_hash()})},events:function(){e(n).on("click.fndtn",".tabs a",function(t){s.set_tab(e(this).parent("dd, li"),t)}),i.init=!0},set_tab:function(t,n){var r=t.closest("dl, ul").find(".active"),s=t.children("a").attr("href"),o=/^#/.test(s),u=e(s+"Tab");o&&u.length>0&&(n&&!i.deep_linking&&n.preventDefault(),u.closest(".tabs-content").children("li").removeClass("active").hide(),u.css("display","block").addClass("active")),r.removeClass("active"),t.addClass("active"),i.callback()},from_hash:function(){var n=t.location.hash,r=e('a[href="'+n+'"]');r.trigger("click.fndtn")}};e.fn.foundationTabs=function(t){if(s[t])return s[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t=="object"||!t)return s.init.apply(this,arguments);e.error("Method "+t+" does not exist on jQuery.foundationTabs")}})(jQuery,this,this.document);(function(e,t,n){"use strict";var r={bodyHeight:0,selector:".has-tip",additionalInheritableClasses:[],tooltipClass:".tooltip",tipTemplate:function(e,t){return''+t+''}},i={init:function(t){return r=e.extend(r,t),r.selector=r.targetClass?r.targetClass:r.selector,this.each(function(){var t=e("body");Modernizr.touch?(t.on("click.tooltip touchstart.tooltip touchend.tooltip",r.selector,function(t){t.preventDefault(),e(r.tooltipClass).hide(),i.showOrCreateTip(e(this))}),t.on("click.tooltip touchstart.tooltip touchend.tooltip",r.tooltipClass,function(t){t.preventDefault(),e(this).fadeOut(150)})):t.on("mouseenter.tooltip mouseleave.tooltip",r.selector,function(t){var n=e(this);t.type==="mouseenter"?i.showOrCreateTip(n):t.type==="mouseleave"&&i.hide(n)}),e(this).data("tooltips",!0)})},showOrCreateTip:function(e,t){var n=i.getTip(e);n&&n.length>0?i.show(e):i.create(e,t)},getTip:function(t){var n=i.selector(t),s=null;return n&&(s=e("span[data-selector="+n+"]"+r.tooltipClass)),s.length>0?s:!1},selector:function(e){var t=e.attr("id"),r=e.data("selector");return t===n&&r===n&&(r="tooltip"+Math.random().toString(36).substring(7),e.attr("data-selector",r)),t?t:r},create:function(t,n){var s=e(r.tipTemplate(i.selector(t),e("
        ").html(n?n:t.attr("title")).html())),o=i.inheritable_classes(t);s.addClass(o).appendTo("body"),Modernizr.touch&&s.append('tap to close '),t.removeAttr("title"),i.show(t)},reposition:function(n,r,i){var s,o,u,a,f,l;r.css("visibility","hidden").show(),s=n.data("width"),o=r.children(".nub"),u=o.outerHeight(),a=o.outerWidth(),l=function(e,t,n,r,i,s){return e.css({top:t,bottom:r,left:i,right:n,"max-width":s?s:"auto"}).end()},l(r,n.offset().top+n.outerHeight()+10,"auto","auto",n.offset().left,s),l(o,-u,"auto","auto",10);if(e(t).width()<767){if(n.data("mobile-width"))r.width(n.data("mobile-width")).css("left",15).addClass("tip-override");else{f=n.closest(".columns"),f.length<0&&(f=e("body"));if(f.outerWidth())r.width(f.outerWidth()-25).css("left",15).addClass("tip-override");else{var c=Math.ceil(e(t).width()*.9);r.width(c).css("left",15).addClass("tip-override")}}l(o,-u,"auto","auto",n.offset().left)}else i&&i.indexOf("tip-top")>-1?(l(r,n.offset().top-r.outerHeight()-u,"auto","auto",n.offset().left,s).removeClass("tip-override"),l(o,"auto","auto",-u,"auto")):i&&i.indexOf("tip-left")>-1?(l(r,n.offset().top+n.outerHeight()/2-u,"auto","auto",n.offset().left-r.outerWidth()-10,s).removeClass("tip-override"),l(o,r.outerHeight()/2-u/2,-u,"auto","auto")):i&&i.indexOf("tip-right")>-1?(l(r,n.offset().top+n.outerHeight()/2-u,"auto","auto",n.offset().left+n.outerWidth()+10,s).removeClass("tip-override"),l(o,r.outerHeight()/2-u/2,"auto","auto",-u)):i&&i.indexOf("tip-centered-top")>-1?(l(r,n.offset().top-r.outerHeight()-u,"auto","auto",n.offset().left+(n.outerWidth()-r.outerWidth())/2,s).removeClass("tip-override"),l(o,"auto",r.outerWidth()/2-u/2,-u,"auto")):i&&i.indexOf("tip-centered-bottom")>-1&&(l(r,n.offset().top+n.outerHeight()+10,"auto","auto",n.offset().left+(n.outerWidth()-r.outerWidth())/2,s).removeClass("tip-override"),l(o,-u,r.outerWidth()/2-u/2,"auto","auto"));r.css("visibility","visible").hide()},inheritable_classes:function(t){var n=["tip-top","tip-left","tip-bottom","tip-right","tip-centered-top","tip-centered-bottom","noradius"].concat(r.additionalInheritableClasses),i=t.attr("class"),s=i?e.map(i.split(" "),function(t,r){if(e.inArray(t,n)!==-1)return t}).join(" "):"";return e.trim(s)},show:function(e){var t=i.getTip(e);i.reposition(e,t,e.attr("class")),t.fadeIn(150)},hide:function(e){var t=i.getTip(e);t.fadeOut(150)},reload:function(){var t=e(this);return t.data("tooltips")?t.foundationTooltips("destroy").foundationTooltips("init"):t.foundationTooltips("init")},destroy:function(){return this.each(function(){e(t).off(".tooltip"),e(r.selector).off(".tooltip"),e(r.tooltipClass).each(function(t){e(e(r.selector).get(t)).attr("title",e(this).text())}).remove()})}};e.fn.foundationTooltips=function(t){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t=="object"||!t)return i.init.apply(this,arguments);e.error("Method "+t+" does not exist on jQuery.foundationTooltips")}})(jQuery,this);(function(e,t,n){"use strict";e.fn.foundationAccordion=function(t){var n=function(e){return e.hasClass("hover")&&!Modernizr.touch};e(document).on("mouseenter",".accordion li",function(){var t=e(this).parent();if(n(t)){var r=e(this).children(".content").first();e(".content",t).not(r).slideUp(300).parent("li"),r.slideToggle(300,function(){r.parent("li").addClass("active");})}}),e(document).on("click.fndtn",".accordion li .title",function(){var t=e(this).closest("li"),r=t.parent();if(!n(r)){var i=t.children(".content").first();t.hasClass("active")?r.find("li").removeClass("active").end().find(".content").slideUp(300):(e(".content",r).not(i).slideUp(300).parent("li").removeClass("active"),i.slideDown(300,function(){i.parent("li").addClass("active");}))}})};})(jQuery,this);(function(e,t,n){function f(e){var t={},r=/^jQuery\d+$/;return n.each(e.attributes,function(e,n){n.specified&&!r.test(n.name)&&(t[n.name]=n.value)}),t}function l(e,r){var i=this,s=n(i);if(i.value==s.attr("placeholder")&&s.hasClass("placeholder"))if(s.data("placeholder-password")){s=s.hide().next().show().attr("id",s.removeAttr("id").data("placeholder-id"));if(e===!0)return s[0].value=r;s.focus()}else i.value="",s.removeClass("placeholder"),i==t.activeElement&&i.select()}function c(){var e,t=this,r=n(t),i=r,s=this.id;if(t.value==""){if(t.type=="password"){if(!r.data("placeholder-textinput")){try{e=r.clone().attr({type:"text"})}catch(o){e=n("").attr(n.extend(f(this),{type:"text"}))}e.removeAttr("name").data({"placeholder-password":!0,"placeholder-id":s}).bind("focus.placeholder",l),r.data({"placeholder-textinput":e,"placeholder-id":s}).before(e)}r=r.removeAttr("id").hide().prev().attr("id",s).show()}r.addClass("placeholder"),r[0].value=r.attr("placeholder")}else r.removeClass("placeholder")}var r="placeholder"in t.createElement("input"),i="placeholder"in t.createElement("textarea"),s=n.fn,o=n.valHooks,u,a;r&&i?(a=s.placeholder=function(){return this},a.input=a.textarea=!0):(a=s.placeholder=function(){var e=this;return e.filter((r?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":l,"blur.placeholder":c}).data("placeholder-enabled",!0).trigger("blur.placeholder"),e},a.input=r,a.textarea=i,u={get:function(e){var t=n(e);return t.data("placeholder-enabled")&&t.hasClass("placeholder")?"":e.value},set:function(e,r){var i=n(e);return i.data("placeholder-enabled")?(r==""?(e.value=r,e!=t.activeElement&&c.call(e)):i.hasClass("placeholder")?l.call(e,!0,r)||(e.value=r):e.value=r,i):e.value=r}},r||(o.input=u),i||(o.textarea=u),n(function(){n(t).delegate("form","submit.placeholder",function(){var e=n(".placeholder",this).each(l);setTimeout(function(){e.each(c)},10)})}),n(e).bind("beforeunload.placeholder",function(){n(".placeholder").each(function(){this.value=""})}))})(this,document,jQuery);(function(e,t,n){"use strict";e.fn.foundationAlerts=function(t){var n=e.extend({callback:e.noop},t);e(document).on("click",".alert-box a.close",function(t){t.preventDefault(),e(this).closest(".alert-box").fadeOut(function(){e(this).remove(),n.callback()})})}})(jQuery,this);(function(e,t,n){"use strict";var r={index:0,initialized:!1},i={init:function(n){return this.each(function(){r=e.extend(r,n),r.$w=e(t),r.$topbar=e("nav.top-bar"),r.$section=r.$topbar.find("section"),r.$titlebar=r.$topbar.children("ul:first");var s=e("
        ").appendTo("body");r.breakPoint=s.width(),s.remove(),r.initialized||(i.assemble(),r.initialized=!0),r.height||i.largestUL(),r.$topbar.parent().hasClass("fixed")&&e("body").css("padding-top",r.$topbar.outerHeight()),e(".top-bar .toggle-topbar").off("click.fndtn").on("click.fndtn",function(e){e.preventDefault(),i.breakpoint()&&(r.$topbar.toggleClass("expanded"),r.$topbar.css("min-height","")),r.$topbar.hasClass("expanded")||(r.$section.css({left:"0%"}),r.$section.find(">.name").css({left:"100%"}),r.$section.find("li.moved").removeClass("moved"),r.index=0)}),e(".top-bar .has-dropdown>a").off("click.fndtn").on("click.fndtn",function(t){(Modernizr.touch||i.breakpoint())&&t.preventDefault();if(i.breakpoint()){var n=e(this),s=n.closest("li");r.index+=1,s.addClass("moved"),r.$section.css({left:-(100*r.index)+"%"}),r.$section.find(">.name").css({left:100*r.index+"%"}),n.siblings("ul").height(r.height+r.$titlebar.outerHeight(!0)),r.$topbar.css("min-height",r.height+r.$titlebar.outerHeight(!0)*2)}}),e(t).on("resize.fndtn.topbar",function(){i.breakpoint()||r.$topbar.css("min-height","")}),e(".top-bar .has-dropdown .back").off("click.fndtn").on("click.fndtn",function(t){t.preventDefault();var n=e(this),i=n.closest("li.moved"),s=i.parent();r.index-=1,r.$section.css({left:-(100*r.index)+"%"}),r.$section.find(">.name").css({left:100*r.index+"%"}),r.index===0&&r.$topbar.css("min-height",0),setTimeout(function(){i.removeClass("moved")},300)})})},breakpoint:function(){return r.$w.width()a").each(function(){var t=e(this),n=t.siblings(".dropdown"),r=e('
      • ');r.find("h5>a").html(t.html()),n.prepend(r)}),r.$section.appendTo(r.$topbar)},largestUL:function(){var t=r.$topbar.find("section ul ul"),n=t.first(),i=0;t.each(function(){e(this).children("li").length>n.children("li").length&&(n=e(this))}),n.children("li").each(function(){i+=e(this).outerHeight(!0)}),r.height=i}};e.fn.foundationTopBar=function(t){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t=="object"||!t)return i.init.apply(this,arguments);e.error("Method "+t+" does not exist on jQuery.foundationTopBar")};if(e(".sticky").length>0){var s=e(".sticky").length?e(".sticky").offset().top:0,o=e(t);o.scroll(function(){o.scrollTop()>=s?e(".sticky").addClass("fixed"):o.scrollTop()X',timer:'
        ',tip:'
        ',wrapper:'
        ',button:''}},i=i||!1,s={},o={init:function(n){return this.each(function(){if(e.isEmptyObject(s)){s=e.extend(!0,r,n),s.document=t.document,s.$document=e(s.document),s.$window=e(t),s.$content_el=e(this),s.body_offset=e(s.tipContainer).position(),s.$tip_content=e("> li",s.$content_el),s.paused=!1,s.attempts=0,s.tipLocationPatterns={top:["bottom"],bottom:[],left:["right","top","bottom"],right:["left","top","bottom"]},o.jquery_check(),e.isFunction(e.cookie)||(s.cookieMonster=!1);if(!s.cookieMonster||!e.cookie(s.cookieName))s.$tip_content.each(function(t){o.create({$li:e(this),index:t})}),!s.startTimerOnClick&&s.timer>0?(o.show("init"),o.startTimer()):o.show("init");s.$document.on("click.joyride",".joyride-next-tip, .joyride-modal-bg",function(e){e.preventDefault(),s.$li.next().length<1?o.end():s.timer>0?(clearTimeout(s.automate),o.hide(),o.show(),o.startTimer()):(o.hide(),o.show())}),s.$document.on("click.joyride",".joyride-close-tip",function(e){e.preventDefault(),o.end()}),s.$window.bind("resize.joyride",function(e){o.is_phone()?o.pos_phone():o.pos_default()})}else o.restart()})},resume:function(){o.set_li(),o.show()},tip_template:function(t){var n,r;return t.tip_class=t.tip_class||"",n=e(s.template.tip).addClass(t.tip_class),r=e.trim(e(t.li).html())+o.button_text(t.button_text)+s.template.link+o.timer_instance(t.index),n.append(e(s.template.wrapper)),n.first().attr("data-index",t.index),e(".joyride-content-wrapper",n).append(r),n[0]},timer_instance:function(t){var n;return t===0&&s.startTimerOnClick&&s.timer>0||s.timer===0?n="":n=o.outerHTML(e(s.template.timer)[0]),n},button_text:function(t){return s.nextButton?(t=e.trim(t)||"Next",t=o.outerHTML(e(s.template.button).append(t)[0])):t="",t},create:function(t){var n=t.$li.attr("data-button")||t.$li.attr("data-text"),r=t.$li.attr("class"),i=e(o.tip_template({tip_class:r,index:t.index,button_text:n,li:t.$li}));e(s.tipContainer).append(i)},show:function(t){var r={},i,u=[],a=0,f,l=null;if(s.$li===n||e.inArray(s.$li.index(),s.pauseAfter)===-1){s.paused?s.paused=!1:o.set_li(t),s.attempts=0;if(s.$li.length&&s.$target.length>0){u=(s.$li.data("options")||":").split(";"),a=u.length;for(i=a-1;i>=0;i--)f=u[i].split(":"),f.length===2&&(r[e.trim(f[0])]=e.trim(f[1]));s.tipSettings=e.extend({},s,r),s.tipSettings.tipLocationPattern=s.tipLocationPatterns[s.tipSettings.tipLocation],/body/i.test(s.$target.selector)||o.scroll_to(),o.is_phone()?o.pos_phone(!0):o.pos_default(!0),l=e(".joyride-timer-indicator",s.$next_tip),/pop/i.test(s.tipAnimation)?(l.outerWidth(0),s.timer>0?(s.$next_tip.show(),l.animate({width:e(".joyride-timer-indicator-wrap",s.$next_tip).outerWidth()},s.timer)):s.$next_tip.show()):/fade/i.test(s.tipAnimation)&&(l.outerWidth(0),s.timer>0?(s.$next_tip.fadeIn(s.tipAnimationFadeSpeed),s.$next_tip.show(),l.animate({width:e(".joyride-timer-indicator-wrap",s.$next_tip).outerWidth()},s.timer)):s.$next_tip.fadeIn(s.tipAnimationFadeSpeed)),s.$current_tip=s.$next_tip}else s.$li&&s.$target.length<1?o.show():o.end()}else s.paused=!0},is_phone:function(){return i?i.mq("only screen and (max-width: 767px)"):s.$window.width()<767?!0:!1},hide:function(){s.postStepCallback(s.$li.index(),s.$current_tip),e(".joyride-modal-bg").hide(),s.$current_tip.hide()},set_li:function(e){e?(s.$li=s.$tip_content.eq(s.startOffset),o.set_next_tip(),s.$current_tip=s.$next_tip):(s.$li=s.$li.next(),o.set_next_tip()),o.set_target()},set_next_tip:function(){s.$next_tip=e(".joyride-tip-guide[data-index="+s.$li.index()+"]")},set_target:function(){var t=s.$li.attr("data-class"),n=s.$li.attr("data-id"),r=function(){return n?e(s.document.getElementById(n)):t?e("."+t).first():e("body")};s.$target=r()},scroll_to:function(){var t,n;t=s.$window.height()/2,n=Math.ceil(s.$target.offset().top-t+s.$next_tip.outerHeight()),e("html, body").stop().animate({scrollTop:n},s.scrollSpeed)},paused:function(){return e.inArray(s.$li.index()+1,s.pauseAfter)===-1?!0:!1},destroy:function(){s.$document.off(".joyride"),e(t).off(".joyride"),e(".joyride-close-tip, .joyride-next-tip, .joyride-modal-bg").off(".joyride"),e(".joyride-tip-guide, .joyride-modal-bg").remove(),clearTimeout(s.automate),s={}},restart:function(){o.hide(),s.$li=n,o.show("init")},pos_default:function(t){var n=Math.ceil(s.$window.height()/2),r=s.$next_tip.offset(),i=e(".joyride-nub",s.$next_tip),u=Math.ceil(i.outerHeight()/2),a=t||!1;a&&(s.$next_tip.css("visibility","hidden"),s.$next_tip.show()),/body/i.test(s.$target.selector)?s.$li.length&&o.pos_modal(i):(o.bottom()?(s.$next_tip.css({top:s.$target.offset().top+u+s.$target.outerHeight(),left:s.$target.offset().left}),o.nub_position(i,s.tipSettings.nubPosition,"top")):o.top()?(s.$next_tip.css({top:s.$target.offset().top-s.$next_tip.outerHeight()-u,left:s.$target.offset().left}),o.nub_position(i,s.tipSettings.nubPosition,"bottom")):o.right()?(s.$next_tip.css({top:s.$target.offset().top,left:s.$target.outerWidth()+s.$target.offset().left}),o.nub_position(i,s.tipSettings.nubPosition,"left")):o.left()&&(s.$next_tip.css({top:s.$target.offset().top,left:s.$target.offset().left-s.$next_tip.outerWidth()-u}),o.nub_position(i,s.tipSettings.nubPosition,"right")),!o.visible(o.corners(s.$next_tip))&&s.attempts').show(),/pop/i.test(s.tipAnimation)?e(".joyride-modal-bg").show():e(".joyride-modal-bg").fadeIn(s.tipAnimationFadeSpeed)},center:function(){var e=s.$window;return s.$next_tip.css({top:(e.height()-s.$next_tip.outerHeight())/2+e.scrollTop(),left:(e.width()-s.$next_tip.outerWidth())/2+e.scrollLeft()}),!0},bottom:function(){return/bottom/i.test(s.tipSettings.tipLocation)},top:function(){return/top/i.test(s.tipSettings.tipLocation)},right:function(){return/right/i.test(s.tipSettings.tipLocation)},left:function(){return/left/i.test(s.tipSettings.tipLocation)},corners:function(e){var t=s.$window,n=t.width()+t.scrollLeft(),r=t.width()+t.scrollTop();return[e.offset().top<=t.scrollTop(),n<=e.offset().left+e.outerWidth(),r<=e.offset().top+e.outerHeight(),t.scrollLeft()>=e.offset().left]},visible:function(e){var t=e.length;while(t--)if(e[t])return!1;return!0},nub_position:function(e,t,n){t==="auto"?e.addClass(n):e.addClass(t)},startTimer:function(){s.$li.length?s.automate=setTimeout(function(){o.hide(),o.show(),o.startTimer()},s.timer):clearTimeout(s.automate)},end:function(){s.cookieMonster&&e.cookie(s.cookieName,"ridden",{expires:365,domain:s.cookieDomain}),s.timer>0&&clearTimeout(s.automate),e(".joyride-modal-bg").hide(),s.$current_tip.hide(),s.postStepCallback(s.$li.index(),s.$current_tip),s.postRideCallback(s.$li.index(),s.$current_tip)},jquery_check:function(){return e.isFunction(e.fn.on)?!0:(e.fn.on=function(e,t,n){return this.delegate(t,e,n)},e.fn.off=function(e,t,n){return this.undelegate(t,e,n)},!1)},outerHTML:function(e){return e.outerHTML||(new XMLSerializer).serializeToString(e)},version:function(){return s.version}};e.fn.joyride=function(t){if(o[t])return o[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t=="object"||!t)return o.init.apply(this,arguments);e.error("Method "+t+" does not exist on jQuery.joyride")}})(jQuery,this);(function(e,t,n,r){"use strict";var i={templates:{viewing:'×'},close_selectors:"a.clearing-close",initialized:!1,locked:!1},s={init:function(t,r){return this.find("ul[data-clearing]").each(function(){var t=e(n),r=e(this),o=o||{},u=u||{},a=r.data("fndtn.clearing.settings");a||(o.$parent=r.parent(),r.data("fndtn.clearing.settings",e.extend({},i,o)),s.assemble(r.find("li")),i.initialized||(s.events(r),Modernizr.touch&&s.swipe_events()))})},events:function(r){var o=r.data("fndtn.clearing.settings");e(n).on("click.fndtn.clearing","ul[data-clearing] li",function(t,n,r){var n=n||e(this),r=r||n,i=n.parent().data("fndtn.clearing.settings");t.preventDefault(),i||n.parent().foundationClearing(),s.open(e(t.target),n,r),s.update_paddles(r)}).on("click.fndtn.clearing",".clearing-main-right",function(e){s.nav(e,"next")}).on("click.fndtn.clearing",".clearing-main-left",function(e){s.nav(e,"prev")}).on("click.fndtn.clearing",o.close_selectors,this.close).on("keydown.fndtn.clearing",this.keydown),e(t).on("resize.fndtn.clearing",this.resize),i.initialized=!0},swipe_events:function(){e(n).bind("swipeleft","ul[data-clearing]",function(e){s.nav(e,"next")}).bind("swiperight","ul[data-clearing]",function(e){s.nav(e,"prev")}).bind("movestart","ul[data-clearing]",function(e){(e.distX>e.distY&&e.distX<-e.distY||e.distX-e.distY)&&e.preventDefault()})},assemble:function(e){var t=e.parent(),n=t.data("fndtn.clearing.settings"),r=t.detach(),i={grid:'",viewing:n.templates.viewing},s='
        '+i.viewing+i.grid+"
        ";return n.$parent.append(s)},open:function(e,t,n){var r=n.closest(".clearing-assembled"),i=r.find("div:first"),o=i.find(".visible-img"),u=o.find("img").not(e);s.locked()||(u.attr("src",this.load(e)),u.loaded(function(){r.addClass("clearing-blackout"),i.addClass("clearing-container"),this.caption(o.find(".clearing-caption"),e),o.show(),this.fix_height(n),this.center(u),this.shift(t,n,function(){n.siblings().removeClass("visible"),n.addClass("visible")})}.bind(this)))},close:function(t){t.preventDefault();var n=function(e){return/blackout/.test(e.selector)?e:e.closest(".clearing-blackout")}(e(this)),r,s;return this===t.target&&n&&(r=n.find("div:first"),s=r.find(".visible-img"),i.prev_index=0,n.find("ul[data-clearing]").attr("style",""),n.removeClass("clearing-blackout"),r.removeClass("clearing-container"),s.hide()),!1},keydown:function(t){var n=e(".clearing-blackout").find("ul[data-clearing]");t.which===39&&s.go(n,"next"),t.which===37&&s.go(n,"prev"),t.which===27&&e("a.clearing-close").trigger("click")},nav:function(t,n){var r=e(".clearing-blackout").find("ul[data-clearing]");t.preventDefault(),this.go(r,n)},resize:function(){var t=e(".clearing-blackout .visible-img").find("img");t.length>0&&s.center(t)},fix_height:function(t){var n=t.siblings();n.each(function(){var t=e(this),n=t.find("img");t.height()>n.outerHeight()&&t.addClass("fix-height")}).closest("ul").width(n.length*100+"%")},update_paddles:function(e){var t=e.closest(".carousel").siblings(".visible-img");e.next().length>0?t.find(".clearing-main-right").removeClass("disabled"):t.find(".clearing-main-right").addClass("disabled"),e.prev().length>0?t.find(".clearing-main-left").removeClass("disabled"):t.find(".clearing-main-left").addClass("disabled")},load:function(e){var t=e.parent().attr("href");return this.preload(e),t?t:e.attr("src")},preload:function(e){this.img(e.closest("li").next()),this.img(e.closest("li").prev())},img:function(e){if(e.length>0){var t=new Image,n=e.find("a");n.length>0?t.src=n.attr("href"):t.src=e.find("img").attr("src")}},caption:function(e,t){var n=t.data("caption");n?e.text(n).show():e.text("").hide()},go:function(e,t){var n=e.find(".visible"),r=n[t]();r.length>0&&r.find("img").trigger("click",[n,r])},shift:function(e,t,n){var r=t.parent(),s=i.prev_index,o=this.direction(r,e,t),u=parseInt(r.css("left"),10),a=t.outerWidth(),f;t.index()!==s&&!/skip/.test(o)?/left/.test(o)?(this.lock(),r.animate({left:u+a},300,this.unlock)):/right/.test(o)&&(this.lock(),r.animate({left:u-a},300,this.unlock)):/skip/.test(o)&&(f=t.index()-i.up_count,this.lock(),f>0?r.animate({left:-(f*a)},300,this.unlock):r.animate({left:0},300,this.unlock)),n()},lock:function(){i.locked=!0},unlock:function(){i.locked=!1},locked:function(){return i.locked},direction:function(t,n,r){var s=t.find("li"),o=s.outerWidth()+s.outerWidth()/4,u=Math.floor(e(".clearing-container").outerWidth()/o)-1,a=s.index(r),f;return i.up_count=u,this.adjacent(i.prev_index,a)?a>u&&a>i.prev_index?f="right":a>u-1&&a<=i.prev_index?f="left":f=!1:f="skip",i.prev_index=a,f},adjacent:function(e,t){for(var n=t+1;n>=t-1;n--)if(n===e)return!0;return!1},center:function(e){e.css({marginLeft:-(e.outerWidth()/2),marginTop:-(e.outerHeight()/2)})},outerHTML:function(e){return e.outerHTML||(new XMLSerializer).serializeToString(e)}};e.fn.foundationClearing=function(t){if(s[t])return s[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t=="object"||!t)return s.init.apply(this,arguments);e.error("Method "+t+" does not exist on jQuery.foundationClearing")},function(e){e.fn.loaded=function(t,n){function o(){s-=1,!s&&t()}function u(){this.one("load",o);if(e.browser.msie){var t=this.attr("src"),n=t.match(/\?/)?"&":"?";n+=r.cachePrefix+"="+(new Date).getTime(),this.attr("src",t+n)}}var r=e.extend({},e.fn.loaded.defaults,n),i=this.find("img").add(this.filter("img")),s=i.length;return i.each(function(){var t=e(this);if(!t.attr("src")){o();return}this.complete||this.readyState===4?o():u.call(t)})},e.fn.loaded.defaults={cachePrefix:"random"}}(jQuery)})(jQuery,this,this.document);(function(e,t,n){"use strict";e.fn.foundationMagellan=function(n){var r=e(t),i=e(document),s=e("[data-magellan-expedition=fixed]"),o={threshold:s.length?s.outerHeight(!0):0,activeClass:"active"},n=e.extend({},o,n);i.on("magellan.arrival","[data-magellan-arrival]",function(t){var r=e(this),i=r.closest("[data-magellan-expedition]"),s=i.attr("data-magellan-active-class")||n.activeClass;r.closest("[data-magellan-expedition]").find("[data-magellan-arrival]").not(this).removeClass(s),r.addClass(s)});var u=e("[data-magellan-expedition]");u.find("[data-magellan-arrival]:first").addClass(u.attr("data-magellan-active-class")||n.activeClass),s.on("magellan.update-position",function(){var t=e(this);t.data("magellan-fixed-position",""),t.data("magellan-top-offset","")}).trigger("magellan.update-position"),r.on("resize.magellan",function(){s.trigger("magellan.update-position")}),r.on("scroll.magellan",function(){var t=r.scrollTop();s.each(function(){var r=e(this);r.data("magellan-top-offset")===""&&r.data("magellan-top-offset",r.offset().top);var i=t+n.threshold>r.data("magellan-top-offset");r.data("magellan-fixed-position")!=i&&(r.data("magellan-fixed-position",i),i?r.css({position:"fixed",top:0}):r.css({position:"",top:""}))})});var a=e("[data-magellan-destination]:last");a.length>0&&r.on("scroll.magellan",function(t){var s=r.scrollTop(),o=s+r.outerHeight(!0),u=Math.ceil(a.offset().top);e("[data-magellan-destination]").each(function(){var t=e(this),r=t.attr("data-magellan-destination"),a=t.offset().top-s;a<=n.threshold&&e("[data-magellan-arrival="+r+"]").trigger("magellan.arrival"),o>=i.outerHeight(!0)&&u>s&&ua,c=a+this.getViewportHeight()>this.getScrollerHeight();return b||c},toleranceExceeded:function(a,b){return Math.abs(a-this.lastKnownScrollY)>=this.tolerance[b]},shouldUnpin:function(a,b){var c=a>this.lastKnownScrollY,d=a>=this.offset;return c&&d&&b},shouldPin:function(a,b){var c=athis.lastKnownScrollY?"down":"up",c=this.toleranceExceeded(a,b);this.isOutOfBounds(a)||(a<=this.offset?this.top():this.notTop(),this.shouldUnpin(a,c)?this.unpin():this.shouldPin(a,c)&&this.pin(),this.lastKnownScrollY=a)}},g.options={tolerance:{up:0,down:0},offset:0,scroller:a,classes:{pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",initial:"headroom"}},g.cutsTheMustard="undefined"!=typeof h&&h.rAF&&h.bind&&h.classList,a.Headroom=g}(window,document); !function(a,b){"use strict";function c(){d.READY||(s.determineEventTypes(),o.each(d.gestures,function(a){u.register(a)}),s.onTouch(d.DOCUMENT,m,u.detect),s.onTouch(d.DOCUMENT,n,u.detect),d.READY=!0)}var d=function(a,b){return new d.Instance(a,b||{})};d.defaults={stop_browser_behavior:{userSelect:"none",touchAction:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},d.HAS_POINTEREVENTS=a.navigator.pointerEnabled||a.navigator.msPointerEnabled,d.HAS_TOUCHEVENTS="ontouchstart"in a,d.MOBILE_REGEX=/mobile|tablet|ip(ad|hone|od)|android|silk/i,d.NO_MOUSEEVENTS=d.HAS_TOUCHEVENTS&&a.navigator.userAgent.match(d.MOBILE_REGEX),d.EVENT_TYPES={},d.UPDATE_VELOCITY_INTERVAL=16,d.DOCUMENT=a.document;var e=d.DIRECTION_DOWN="down",f=d.DIRECTION_LEFT="left",g=d.DIRECTION_UP="up",h=d.DIRECTION_RIGHT="right",i=d.POINTER_MOUSE="mouse",j=d.POINTER_TOUCH="touch",k=d.POINTER_PEN="pen",l=d.EVENT_START="start",m=d.EVENT_MOVE="move",n=d.EVENT_END="end";d.plugins=d.plugins||{},d.gestures=d.gestures||{},d.READY=!1;var o=d.utils={extend:function(a,c,d){for(var e in c)a[e]!==b&&d||(a[e]=c[e]);return a},each:function(a,c,d){var e,f;if("forEach"in a)a.forEach(c,d);else if(a.length!==b){for(e=-1;f=a[++e];)if(c.call(d,f,e,a)===!1)return}else for(e in a)if(a.hasOwnProperty(e)&&c.call(d,a[e],e,a)===!1)return},hasParent:function(a,b){for(;a;){if(a==b)return!0;a=a.parentNode}return!1},getCenter:function(a){var b=[],c=[];return o.each(a,function(a){b.push("undefined"!=typeof a.clientX?a.clientX:a.pageX),c.push("undefined"!=typeof a.clientY?a.clientY:a.pageY)}),{pageX:(Math.min.apply(Math,b)+Math.max.apply(Math,b))/2,pageY:(Math.min.apply(Math,c)+Math.max.apply(Math,c))/2}},getVelocity:function(a,b,c){return{x:Math.abs(b/a)||0,y:Math.abs(c/a)||0}},getAngle:function(a,b){var c=b.pageY-a.pageY,d=b.pageX-a.pageX;return 180*Math.atan2(c,d)/Math.PI},getDirection:function(a,b){var c=Math.abs(a.pageX-b.pageX),d=Math.abs(a.pageY-b.pageY);return c>=d?a.pageX-b.pageX>0?f:h:a.pageY-b.pageY>0?g:e},getDistance:function(a,b){var c=b.pageX-a.pageX,d=b.pageY-a.pageY;return Math.sqrt(c*c+d*d)},getScale:function(a,b){return a.length>=2&&b.length>=2?this.getDistance(b[0],b[1])/this.getDistance(a[0],a[1]):1},getRotation:function(a,b){return a.length>=2&&b.length>=2?this.getAngle(b[1],b[0])-this.getAngle(a[1],a[0]):0},isVertical:function(a){return a==g||a==e},toggleDefaultBehavior:function(a,b,c){if(b&&a&&a.style){o.each(["webkit","moz","Moz","ms","o",""],function(d){o.each(b,function(b,e){d&&(e=d+e.substring(0,1).toUpperCase()+e.substring(1)),e in a.style&&(a.style[e]=!c&&b)})});var d=function(){return!1};"none"==b.userSelect&&(a.onselectstart=!c&&d),"none"==b.userDrag&&(a.ondragstart=!c&&d)}}};d.Instance=function(a,b){var e=this;return c(),this.element=a,this.enabled=!0,this.options=o.extend(o.extend({},d.defaults),b||{}),this.options.stop_browser_behavior&&o.toggleDefaultBehavior(this.element,this.options.stop_browser_behavior,!1),this.eventStartHandler=s.onTouch(a,l,function(a){e.enabled&&u.startDetect(e,a)}),this.eventHandlers=[],this},d.Instance.prototype={on:function(a,b){var c=a.split(" ");return o.each(c,function(a){this.element.addEventListener(a,b,!1),this.eventHandlers.push({gesture:a,handler:b})},this),this},off:function(a,b){var c,d,e=a.split(" ");return o.each(e,function(a){for(this.element.removeEventListener(a,b,!1),c=-1;d=this.eventHandlers[++c];)d.gesture===a&&d.handler===b&&this.eventHandlers.splice(c,1)},this),this},trigger:function(a,b){b||(b={});var c=d.DOCUMENT.createEvent("Event");c.initEvent(a,!0,!0),c.gesture=b;var e=this.element;return o.hasParent(b.target,e)&&(e=b.target),e.dispatchEvent(c),this},enable:function(a){return this.enabled=a,this},dispose:function(){var a,b;for(this.options.stop_browser_behavior&&o.toggleDefaultBehavior(this.element,this.options.stop_browser_behavior,!0),a=-1;b=this.eventHandlers[++a];)this.element.removeEventListener(b.gesture,b.handler,!1);return this.eventHandlers=[],s.unbindDom(this.element,d.EVENT_TYPES[l],this.eventStartHandler),null}};var p=null,q=!1,r=!1,s=d.event={bindDom:function(a,b,c){var d=b.split(" ");o.each(d,function(b){a.addEventListener(b,c,!1)})},unbindDom:function(a,b,c){var d=b.split(" ");o.each(d,function(b){a.removeEventListener(b,c,!1)})},onTouch:function(a,b,c){var e=this,f=function(f){var g=f.type.toLowerCase();if(!g.match(/mouse/)||!r){g.match(/touch/)||g.match(/pointerdown/)||g.match(/mouse/)&&1===f.which?q=!0:g.match(/mouse/)&&!f.which&&(q=!1),g.match(/touch|pointer/)&&(r=!0);var h=0;q&&(d.HAS_POINTEREVENTS&&b!=n?h=t.updatePointer(b,f):g.match(/touch/)?h=f.touches.length:r||(h=g.match(/up/)?0:1),h>0&&b==n?b=m:h||(b=n),(h||null===p)&&(p=f),c.call(u,e.collectEventData(a,b,e.getTouchList(p,b),f)),d.HAS_POINTEREVENTS&&b==n&&(h=t.updatePointer(b,f))),h||(p=null,q=!1,r=!1,t.reset())}};return this.bindDom(a,d.EVENT_TYPES[b],f),f},determineEventTypes:function(){var a;a=d.HAS_POINTEREVENTS?t.getEvents():d.NO_MOUSEEVENTS?["touchstart","touchmove","touchend touchcancel"]:["touchstart mousedown","touchmove mousemove","touchend touchcancel mouseup"],d.EVENT_TYPES[l]=a[0],d.EVENT_TYPES[m]=a[1],d.EVENT_TYPES[n]=a[2]},getTouchList:function(a){return d.HAS_POINTEREVENTS?t.getTouchList():a.touches?a.touches:(a.identifier=1,[a])},collectEventData:function(a,b,c,d){var e=j;return(d.type.match(/mouse/)||t.matchType(i,d))&&(e=i),{center:o.getCenter(c),timeStamp:(new Date).getTime(),target:d.target,touches:c,eventType:b,pointerType:e,srcEvent:d,preventDefault:function(){this.srcEvent.preventManipulation&&this.srcEvent.preventManipulation(),this.srcEvent.preventDefault&&this.srcEvent.preventDefault()},stopPropagation:function(){this.srcEvent.stopPropagation()},stopDetect:function(){return u.stopDetect()}}}},t=d.PointerEvent={pointers:{},getTouchList:function(){var a=[];return o.each(this.pointers,function(b){a.push(b)}),a},updatePointer:function(a,b){return a==n?delete this.pointers[b.pointerId]:(b.identifier=b.pointerId,this.pointers[b.pointerId]=b),Object.keys(this.pointers).length},matchType:function(a,b){if(!b.pointerType)return!1;var c=b.pointerType,d={};return d[i]=c===i,d[j]=c===j,d[k]=c===k,d[a]},getEvents:function(){return["pointerdown MSPointerDown","pointermove MSPointerMove","pointerup pointercancel MSPointerUp MSPointerCancel"]},reset:function(){this.pointers={}}},u=d.detection={gestures:[],current:null,previous:null,stopped:!1,startDetect:function(a,b){this.current||(this.stopped=!1,this.current={inst:a,startEvent:o.extend({},b),lastEvent:!1,lastVelocityEvent:!1,velocity:!1,name:""},this.detect(b))},detect:function(a){if(this.current&&!this.stopped){a=this.extendEventData(a);var b=this.current.inst.options;return o.each(this.gestures,function(c){return this.stopped||b[c.name]===!1||c.handler.call(c,a,this.current.inst)!==!1?void 0:(this.stopDetect(),!1)},this),this.current&&(this.current.lastEvent=a),a.eventType==n&&!a.touches.length-1&&this.stopDetect(),a}},stopDetect:function(){this.previous=o.extend({},this.current),this.current=null,this.stopped=!0},extendEventData:function(a){var b=this.current,c=b.startEvent;(a.touches.length!=c.touches.length||a.touches===c.touches)&&(c.touches=[],o.each(a.touches,function(a){c.touches.push(o.extend({},a))}));var e,f,g=a.timeStamp-c.timeStamp,h=a.center.pageX-c.center.pageX,i=a.center.pageY-c.center.pageY,j=b.lastVelocityEvent,k=b.velocity;return j&&a.timeStamp-j.timeStamp>d.UPDATE_VELOCITY_INTERVAL?(k=o.getVelocity(a.timeStamp-j.timeStamp,a.center.pageX-j.center.pageX,a.center.pageY-j.center.pageY),b.lastVelocityEvent=a,b.velocity=k):b.velocity||(k=o.getVelocity(g,h,i),b.lastVelocityEvent=a,b.velocity=k),a.eventType==n?(e=b.lastEvent&&b.lastEvent.interimAngle,f=b.lastEvent&&b.lastEvent.interimDirection):(e=b.lastEvent&&o.getAngle(b.lastEvent.center,a.center),f=b.lastEvent&&o.getDirection(b.lastEvent.center,a.center)),o.extend(a,{deltaTime:g,deltaX:h,deltaY:i,velocityX:k.x,velocityY:k.y,distance:o.getDistance(c.center,a.center),angle:o.getAngle(c.center,a.center),interimAngle:e,direction:o.getDirection(c.center,a.center),interimDirection:f,scale:o.getScale(c.touches,a.touches),rotation:o.getRotation(c.touches,a.touches),startEvent:c}),a},register:function(a){var c=a.defaults||{};return c[a.name]===b&&(c[a.name]=!0),o.extend(d.defaults,c,!0),a.index=a.index||1e3,this.gestures.push(a),this.gestures.sort(function(a,b){return a.indexb.index?1:0}),this.gestures}};d.gestures.Drag={name:"drag",index:50,defaults:{drag_min_distance:10,correct_for_drag_min_distance:!0,drag_max_touches:1,drag_block_horizontal:!1,drag_block_vertical:!1,drag_lock_to_axis:!1,drag_lock_min_distance:25},triggered:!1,handler:function(a,b){if(u.current.name!=this.name&&this.triggered)return b.trigger(this.name+"end",a),void(this.triggered=!1);if(!(b.options.drag_max_touches>0&&a.touches.length>b.options.drag_max_touches))switch(a.eventType){case l:this.triggered=!1;break;case m:if(a.distance0)){var c=Math.abs(b.options.drag_min_distance/a.distance);u.current.startEvent.center.pageX+=a.deltaX*c,u.current.startEvent.center.pageY+=a.deltaY*c,a=u.extendEventData(a)}(u.current.lastEvent.drag_locked_to_axis||b.options.drag_lock_to_axis&&b.options.drag_lock_min_distance<=a.distance)&&(a.drag_locked_to_axis=!0);var d=u.current.lastEvent.direction;a.drag_locked_to_axis&&d!==a.direction&&(a.direction=o.isVertical(d)?a.deltaY<0?g:e:a.deltaX<0?f:h),this.triggered||(b.trigger(this.name+"start",a),this.triggered=!0),b.trigger(this.name,a),b.trigger(this.name+a.direction,a);var i=o.isVertical(a.direction);(b.options.drag_block_vertical&&i||b.options.drag_block_horizontal&&!i)&&a.preventDefault();break;case n:this.triggered&&b.trigger(this.name+"end",a),this.triggered=!1}}},d.gestures.Hold={name:"hold",index:10,defaults:{hold_timeout:500,hold_threshold:1},timer:null,handler:function(a,b){switch(a.eventType){case l:clearTimeout(this.timer),u.current.name=this.name,this.timer=setTimeout(function(){"hold"==u.current.name&&b.trigger("hold",a)},b.options.hold_timeout);break;case m:a.distance>b.options.hold_threshold&&clearTimeout(this.timer);break;case n:clearTimeout(this.timer)}}},d.gestures.Release={name:"release",index:1/0,handler:function(a,b){a.eventType==n&&b.trigger(this.name,a)}},d.gestures.Swipe={name:"swipe",index:40,defaults:{swipe_min_touches:1,swipe_max_touches:1,swipe_velocity:.7},handler:function(a,b){if(a.eventType==n){if(a.touches.lengthb.options.swipe_max_touches)return;(a.velocityX>b.options.swipe_velocity||a.velocityY>b.options.swipe_velocity)&&(b.trigger(this.name,a),b.trigger(this.name+a.direction,a))}}},d.gestures.Tap={name:"tap",index:100,defaults:{tap_max_touchtime:250,tap_max_distance:10,tap_always:!0,doubletap_distance:20,doubletap_interval:300},has_moved:!1,handler:function(a,b){var c,d,e;a.eventType==l?this.has_moved=!1:a.eventType!=m||this.moved?a.eventType==n&&"touchcancel"!=a.srcEvent.type&&a.deltaTimeb.options.tap_max_distance}},d.gestures.Touch={name:"touch",index:-1/0,defaults:{prevent_default:!1,prevent_mouseevents:!1},handler:function(a,b){return b.options.prevent_mouseevents&&a.pointerType==i?void a.stopDetect():(b.options.prevent_default&&a.preventDefault(),void(a.eventType==l&&b.trigger(this.name,a)))}},d.gestures.Transform={name:"transform",index:45,defaults:{transform_min_scale:.01,transform_min_rotation:1,transform_always_block:!1,transform_within_instance:!1},triggered:!1,handler:function(a,b){if(u.current.name!=this.name&&this.triggered)return b.trigger(this.name+"end",a),void(this.triggered=!1);if(!(a.touches.length<2)){if(b.options.transform_always_block&&a.preventDefault(),b.options.transform_within_instance)for(var c=-1;a.touches[++c];)if(!o.hasParent(a.touches[c].target,b.element))return;switch(a.eventType){case l:this.triggered=!1;break;case m:var d=Math.abs(1-a.scale),e=Math.abs(a.rotation);if(db.options.transform_min_rotation&&b.trigger("rotate",a),d>b.options.transform_min_scale&&(b.trigger("pinch",a),b.trigger("pinch"+(a.scale<1?"in":"out"),a));break;case n:this.triggered&&b.trigger(this.name+"end",a),this.triggered=!1}}}},"function"==typeof define&&define.amd?define(function(){return d}):"object"==typeof module&&module.exports?module.exports=d:a.Hammer=d}(window); (function($){"use strict";$=jQuery;var $createKeyframeStyleTag,animationPlayState,playStateRunning,vendorPrefix;$createKeyframeStyleTag=function(params){return $("",t.appendChild(e.childNodes[1])};return e.apply=function(){for(var t=document.querySelectorAll(e.selector),i=0;i','','{{ label }}',"",'
        ','
          ',"
        ","
        ","
        "].join(""),c='
      • {{ text }}
      • ',h={startSpeed:400,theme:!1,changes:!1,syncReverse:!0,nativeMobile:!0},p=null,d=null,v=function(e,t,n){var r,i,s,o;r=e.attr("data-dk-dropdown-value");i=e.text();s=t.data("dropkick");o=s.$select;o.val(r).trigger("change");t.find(".dk_label").text(i);n=n||!1;s.settings.change&&!n&&!s.settings.syncReverse&&s.settings.change.call(o,r,i)},m=function(e){e.removeClass("dk_open");p=null},g=function(n){var r=n.find(".dk_toggle"),i=n.find(".dk_options").outerHeight(),s=e(t).height()-r.outerHeight()-r.offset().top+e(t).scrollTop(),o=r.offset().top-e(t).scrollTop();return io)&&r.scrollTop(i)},b=function(e,t){var n=g(e);e.find(".dk_options").css({top:n?e.find(".dk_toggle").outerHeight()-1:"",bottom:n?"":e.find(".dk_toggle").outerHeight()-1});p=e.toggleClass("dk_open");y(e,e.find(".dk_option_current"),t)},w=function(e,t,n){t.find(".dk_option_current").removeClass("dk_option_current");e.addClass("dk_option_current");y(t,e,n)},E=function(t,n){var r=t.keyCode,i=n.data("dropkick"),s=String.fromCharCode(r),o=n.find(".dk_options"),u=n.hasClass("dk_open"),a=o.find("li"),l=n.find(".dk_option_current"),c=a.first(),h=a.last(),p,d,g,y,E,S,x;switch(r){case f.enter:if(u){if(!l.hasClass("disabled")){v(l.find("a"),n);m(n)}}else b(n,t);t.preventDefault();break;case f.tab:if(u){v(l.find("a"),n);m(n)}break;case f.up:d=l.prev("li");u?d.length?w(d,n,t):w(h,n,t):b(n,t);t.preventDefault();break;case f.down:if(u){p=l.next("li").first();p.length?w(p,n,t):w(c,n,t)}else b(n,t);t.preventDefault();break;default:}if(r>=f.zero&&r<=f.z){g=(new Date).getTime();if(i.finder===null){i.finder=s.toUpperCase();i.timer=g}else if(g>parseInt(i.timer,10)+1e3){i.finder=s.toUpperCase();i.timer=g}else{i.finder=i.finder+s.toUpperCase();i.timer=g}y=a.find("a");for(E=0,S=y.length;E0?t:!1},x=function(t,n){var r=t.replace("{{ id }}",n.id).replace("{{ label }}",n.label).replace("{{ tabindex }}",n.tabindex),i=[],s,o,u,a,f;if(n.options&&n.options.length)for(o=0,u=n.options.length;o")};u.refresh=function(){return this.each(function(){var t=e(this).data("dropkick"),n=t.$select,r=t.$dk;t.settings.startSpeed=0;n.removeData("dropkick").insertAfter(r);r.remove();n.dropkick(t.settings)})};e.fn.dropkick=function(e){if(!s){if(u[e])return u[e].apply(this,Array.prototype.slice.call(arguments,1));if(typeof e=="object"||!e)return u.init.apply(this,arguments)}};e(function(){e(n).on(i?"mousedown":"click",".dk_options a",function(){var t=e(this),n=t.parents(".dk_container").first();if(!t.parent().hasClass("disabled")){v(t,n);w(t.parent(),n);m(n)}return!1});e(n).bind("keydown.dk_nav",function(e){var t=null;p?t=p:d&&!p&&(t=d);t&&E(e,t)});e(n).on("click",null,function(t){if(p&&e(t.target).closest(".dk_container").length===0)m(p);else if(e(t.target).is(".dk_toggle, .dk_label")){var n=e(t.target).parents(".dk_container").first();if(n.hasClass("dk_open"))m(n);else{p&&m(p);b(n,t)}return!1}});var r="onwheel"in t?"wheel":"onmousewheel"in n?"mousewheel":"MouseScrollEvent"in t?"DOMMouseScroll MozMousePixelScroll":!1;r&&e(n).on(r,".dk_options_inner",function(e){var t=e.originalEvent.wheelDelta||-e.originalEvent.deltaY||-e.originalEvent.detail;if(i){this.scrollTop-=Math.round(t/10);return!1}return t>0&&this.scrollTop<=0||t<0&&this.scrollTop>=this.scrollHeight-this.offsetHeight?!1:!0})})})(jQuery,window,document); (function(e){function t(){var e=location.href;hashtag=e.indexOf("#prettyPhoto")!==-1?decodeURI(e.substring(e.indexOf("#prettyPhoto")+1,e.length)):false;return hashtag}function n(){if(typeof theRel=="undefined")return;location.hash=theRel+"/"+rel_index+"/"}function r(){if(location.href.indexOf("#prettyPhoto")!==-1)location.hash="prettyPhoto"}function i(e,t){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n="[\\?&]"+e+"=([^&#]*)";var r=new RegExp(n);var i=r.exec(t);return i==null?"":i[1]}e.prettyPhoto={version:"3.1.5"};e.fn.prettyPhoto=function(s){function g(){e(".pp_loaderIcon").hide();projectedTop=scroll_pos["scrollTop"]+(d/2-a["containerHeight"]/2);if(projectedTop<0)projectedTop=0;$ppt.fadeTo(settings.animation_speed,1);$pp_pic_holder.find(".pp_content").animate({height:a["contentHeight"],width:a["contentWidth"]},settings.animation_speed);$pp_pic_holder.animate({top:projectedTop,left:v/2-a["containerWidth"]/2<0?0:v/2-a["containerWidth"]/2,width:a["containerWidth"]},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(a["height"]).width(a["width"]);$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed);if(isSet&&S(pp_images[set_position])=="image"){$pp_pic_holder.find(".pp_hoverContainer").show()}else{$pp_pic_holder.find(".pp_hoverContainer").hide()}if(settings.allow_expand){if(a["resized"]){e("a.pp_expand,a.pp_contract").show()}else{e("a.pp_expand").hide()}}if(settings.autoplay_slideshow&&!m&&!f)e.prettyPhoto.startSlideshow();settings.changepicturecallback();f=true});C();s.ajaxcallback()}function y(t){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden");$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){e(".pp_loaderIcon").show();t()})}function b(t){t>1?e(".pp_nav").show():e(".pp_nav").hide()}function w(e,t){resized=false;E(e,t);imageWidth=e,imageHeight=t;if((p>v||h>d)&&doresize&&settings.allow_resize&&!u){resized=true,fitting=false;while(!fitting){if(p>v){imageWidth=v-200;imageHeight=t/e*imageWidth}else if(h>d){imageHeight=d-200;imageWidth=e/t*imageHeight}else{fitting=true}h=imageHeight,p=imageWidth}if(p>v||h>d){w(p,h)}E(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(h),containerWidth:Math.floor(p)+settings.horizontal_padding*2,contentHeight:Math.floor(l),contentWidth:Math.floor(c),resized:resized}}function E(t,n){t=parseFloat(t);n=parseFloat(n);$pp_details=$pp_pic_holder.find(".pp_details");$pp_details.width(t);detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom"));$pp_details=$pp_details.clone().addClass(settings.theme).width(t).appendTo(e("body")).css({position:"absolute",top:-1e4});detailsHeight+=$pp_details.height();detailsHeight=detailsHeight<=34?36:detailsHeight;$pp_details.remove();$pp_title=$pp_pic_holder.find(".ppt");$pp_title.width(t);titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom"));$pp_title=$pp_title.clone().appendTo(e("body")).css({position:"absolute",top:-1e4});titleHeight+=$pp_title.height();$pp_title.remove();l=n+detailsHeight;c=t;h=l+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height();p=t}function S(e){if(e.match(/youtube\.com\/watch/i)||e.match(/youtu\.be/i)){return"youtube"}else if(e.match(/vimeo\.com/i)){return"vimeo"}else if(e.match(/\b.mov\b/i)){return"quicktime"}else if(e.match(/\b.swf\b/i)){return"flash"}else if(e.match(/\biframe=true\b/i)){return"iframe"}else if(e.match(/\bajax=true\b/i)){return"ajax"}else if(e.match(/\bcustom=true\b/i)){return"custom"}else if(e.substr(0,1)=="#"){return"inline"}else{return"image"}}function x(){if(doresize&&typeof $pp_pic_holder!="undefined"){scroll_pos=T();contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width();projectedTop=d/2+scroll_pos["scrollTop"]-contentHeight/2;if(projectedTop<0)projectedTop=0;if(contentHeight>d)return;$pp_pic_holder.css({top:projectedTop,left:v/2+scroll_pos["scrollLeft"]-contentwidth/2})}}function T(){if(self.pageYOffset){return{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}}else if(document.documentElement&&document.documentElement.scrollTop){return{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}}else if(document.body){return{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}}}function N(){d=e(window).height(),v=e(window).width();if(typeof $pp_overlay!="undefined")$pp_overlay.height(e(document).height()).width(v)}function C(){if(isSet&&settings.overlay_gallery&&S(pp_images[set_position])=="image"){itemWidth=52+5;navWidth=settings.theme=="facebook"||settings.theme=="pp_default"?50:30;itemsPerPage=Math.floor((a["containerWidth"]-100-navWidth)/itemWidth);itemsPerPage=itemsPerPage"}toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find("#pp_full_res").after(toInject);$pp_gallery=e(".pp_pic_holder .pp_gallery"),$pp_gallery_li=$pp_gallery.find("li");$pp_gallery.find(".pp_arrow_next").click(function(){e.prettyPhoto.changeGalleryPage("next");e.prettyPhoto.stopSlideshow();return false});$pp_gallery.find(".pp_arrow_previous").click(function(){e.prettyPhoto.changeGalleryPage("previous");e.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()});itemWidth=52+5;$pp_gallery_li.each(function(t){e(this).find("a").click(function(){e.prettyPhoto.changePage(t);e.prettyPhoto.stopSlideshow();return false})})}if(settings.slideshow){$pp_pic_holder.find(".pp_nav").prepend('Play');$pp_pic_holder.find(".pp_nav .pp_play").click(function(){e.prettyPhoto.startSlideshow();return false})}$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme);$pp_overlay.css({opacity:0,height:e(document).height(),width:e(window).width()}).bind("click",function(){if(!settings.modal)e.prettyPhoto.close()});e("a.pp_close").bind("click",function(){e.prettyPhoto.close();return false});if(settings.allow_expand){e("a.pp_expand").bind("click",function(t){if(e(this).hasClass("pp_expand")){e(this).removeClass("pp_expand").addClass("pp_contract");doresize=false}else{e(this).removeClass("pp_contract").addClass("pp_expand");doresize=true}y(function(){e.prettyPhoto.open()});return false})}$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){e.prettyPhoto.changePage("previous");e.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){e.prettyPhoto.changePage("next");e.prettyPhoto.stopSlideshow();return false});x()}s=jQuery.extend({hook:"rel",animation_speed:"fast",ajaxcallback:function(){},slideshow:5e3,autoplay_slideshow:false,opacity:.8,show_title:true,allow_resize:true,allow_expand:true,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:false,wmode:"opaque",autoplay:true,modal:false,deeplinking:true,overlay_gallery:true,overlay_gallery_max:30,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},ie6_fallback:true,markup:'
         
        ',gallery_markup:'',image_markup:'',flash_markup:'',quicktime_markup:'',iframe_markup:'',inline_markup:'
        {content}
        ',custom_markup:"",social_tools:''},s);var o=this,u=false,a,f,l,c,h,p,d=e(window).height(),v=e(window).width(),m;doresize=true,scroll_pos=T();e(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){x();N()});if(s.keyboard_shortcuts){e(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(t){if(typeof $pp_pic_holder!="undefined"){if($pp_pic_holder.is(":visible")){switch(t.keyCode){case 37:e.prettyPhoto.changePage("previous");t.preventDefault();break;case 39:e.prettyPhoto.changePage("next");t.preventDefault();break;case 27:if(!settings.modal)e.prettyPhoto.close();t.preventDefault();break}}}})}e.prettyPhoto.initialize=function(){settings=s;if(settings.theme=="pp_default")settings.horizontal_padding=16;theRel=e(this).attr(settings.hook);galleryRegExp=/\[(?:.*)\]/;isSet=galleryRegExp.exec(theRel)?true:false;pp_images=isSet?jQuery.map(o,function(t,n){if(e(t).attr(settings.hook).indexOf(theRel)!=-1)return e(t).attr("href")}):e.makeArray(e(this).attr("href"));pp_titles=isSet?jQuery.map(o,function(t,n){if(e(t).attr(settings.hook).indexOf(theRel)!=-1)return e(t).find("img").attr("alt")?e(t).find("img").attr("alt"):""}):e.makeArray(e(this).find("img").attr("alt"));pp_descriptions=isSet?jQuery.map(o,function(t,n){if(e(t).attr(settings.hook).indexOf(theRel)!=-1)return e(t).attr("title")?e(t).attr("title"):""}):e.makeArray(e(this).attr("title"));if(pp_images.length>settings.overlay_gallery_max)settings.overlay_gallery=false;set_position=jQuery.inArray(e(this).attr("href"),pp_images);rel_index=isSet?set_position:e("a["+settings.hook+"^='"+theRel+"']").index(e(this));k(this);if(settings.allow_resize)e(window).bind("scroll.prettyphoto",function(){x()});e.prettyPhoto.open();return false};e.prettyPhoto.open=function(t){if(typeof settings=="undefined"){settings=s;pp_images=e.makeArray(arguments[0]);pp_titles=arguments[1]?e.makeArray(arguments[1]):e.makeArray("");pp_descriptions=arguments[2]?e.makeArray(arguments[2]):e.makeArray("");isSet=pp_images.length>1?true:false;set_position=arguments[3]?arguments[3]:0;k(t.target)}if(settings.hideflash)e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden");b(e(pp_images).size());e(".pp_loaderIcon").show();if(settings.deeplinking)n();if(settings.social_tools){facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href));$pp_pic_holder.find(".pp_social").html(facebook_like_link)}if($ppt.is(":hidden"))$ppt.css("opacity",0).show();$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity);$pp_pic_holder.find(".currentTextHolder").text(set_position+1+settings.counter_separator_label+e(pp_images).size());if(typeof pp_descriptions[set_position]!="undefined"&&pp_descriptions[set_position]!=""){$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position]))}else{$pp_pic_holder.find(".pp_description").hide()}movie_width=parseFloat(i("width",pp_images[set_position]))?i("width",pp_images[set_position]):settings.default_width.toString();movie_height=parseFloat(i("height",pp_images[set_position]))?i("height",pp_images[set_position]):settings.default_height.toString();u=false;if(movie_height.indexOf("%")!=-1){movie_height=parseFloat(e(window).height()*parseFloat(movie_height)/100-150);u=true}if(movie_width.indexOf("%")!=-1){movie_width=parseFloat(e(window).width()*parseFloat(movie_width)/100-150);u=true}$pp_pic_holder.fadeIn(function(){settings.show_title&&pp_titles[set_position]!=""&&typeof pp_titles[set_position]!="undefined"?$ppt.html(unescape(pp_titles[set_position])):$ppt.html(" ");imgPreloader="";skipInjection=false;switch(S(pp_images[set_position])){case"image":imgPreloader=new Image;nextImage=new Image;if(isSet&&set_position0)movie_id=movie_id.substr(0,movie_id.indexOf("?"));if(movie_id.indexOf("&")>0)movie_id=movie_id.substr(0,movie_id.indexOf("&"))}movie="http://www.youtube.com/embed/"+movie_id;i("rel",pp_images[set_position])?movie+="?rel="+i("rel",pp_images[set_position]):movie+="?rel=1";if(settings.autoplay)movie+="&autoplay=1";toInject=settings.iframe_markup.replace(/{width}/g,a["width"]).replace(/{height}/g,a["height"]).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":a=w(movie_width,movie_height);movie_id=pp_images[set_position];var t=/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/;var n=movie_id.match(t);movie="http://player.vimeo.com/video/"+n[3]+"?title=0&byline=0&portrait=0";if(settings.autoplay)movie+="&autoplay=1;";vimeo_width=a["width"]+"/embed/?moog_width="+a["width"];toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,a["height"]).replace(/{path}/g,movie);break;case"quicktime":a=w(movie_width,movie_height);a["height"]+=15;a["contentHeight"]+=15;a["containerHeight"]+=15;toInject=settings.quicktime_markup.replace(/{width}/g,a["width"]).replace(/{height}/g,a["height"]).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":a=w(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length);filename=pp_images[set_position];filename=filename.substring(0,filename.indexOf("?"));toInject=settings.flash_markup.replace(/{width}/g,a["width"]).replace(/{height}/g,a["height"]).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":a=w(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1);toInject=settings.iframe_markup.replace(/{width}/g,a["width"]).replace(/{height}/g,a["height"]).replace(/{path}/g,frame_url);break;case"ajax":doresize=false;a=w(movie_width,movie_height);doresize=true;skipInjection=true;e.get(pp_images[set_position],function(e){toInject=settings.inline_markup.replace(/{content}/g,e);$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject;g()});break;case"custom":a=w(movie_width,movie_height);toInject=settings.custom_markup;break;case"inline":myClone=e(pp_images[set_position]).clone().append('
        ').css({width:settings.default_width}).wrapInner('
        ').appendTo(e("body")).show();doresize=false;a=w(e(myClone).width(),e(myClone).height());doresize=true;e(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,e(pp_images[set_position]).html());break}if(!imgPreloader&&!skipInjection){$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject;g()}});return false};e.prettyPhoto.changePage=function(t){currentGalleryPage=0;if(t=="previous"){set_position--;if(set_position<0)set_position=e(pp_images).size()-1}else if(t=="next"){set_position++;if(set_position>e(pp_images).size()-1)set_position=0}else{set_position=t}rel_index=set_position;if(!doresize)doresize=true;if(settings.allow_expand){e(".pp_contract").removeClass("pp_contract").addClass("pp_expand")}y(function(){e.prettyPhoto.open()})};e.prettyPhoto.changeGalleryPage=function(e){if(e=="next"){currentGalleryPage++;if(currentGalleryPage>totalPage)currentGalleryPage=0}else if(e=="previous"){currentGalleryPage--;if(currentGalleryPage<0)currentGalleryPage=totalPage}else{currentGalleryPage=e}slide_speed=e=="next"||e=="previous"?settings.animation_speed:0;slide_to=currentGalleryPage*itemsPerPage*itemWidth;$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)};e.prettyPhoto.startSlideshow=function(){if(typeof m=="undefined"){$pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){e.prettyPhoto.stopSlideshow();return false});m=setInterval(e.prettyPhoto.startSlideshow,settings.slideshow)}else{e.prettyPhoto.changePage("next")}};e.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){e.prettyPhoto.startSlideshow();return false});clearInterval(m);m=undefined};e.prettyPhoto.close=function(){if($pp_overlay.is(":animated"))return;e.prettyPhoto.stopSlideshow();$pp_pic_holder.stop().find("object,embed").css("visibility","hidden");e("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){e(this).remove()});$pp_overlay.fadeOut(settings.animation_speed,function(){if(settings.hideflash)e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible");e(this).remove();e(window).unbind("scroll.prettyphoto");r();settings.callback();doresize=true;f=false;delete settings})};if(!pp_alreadyInitialized&&t()){pp_alreadyInitialized=true;hashIndex=t();hashRel=hashIndex;hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1);hashRel=hashRel.substring(0,hashRel.indexOf("/"));setTimeout(function(){e("a["+s.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50)}return this.unbind("click.prettyphoto").bind("click.prettyphoto",e.prettyPhoto.initialize)};})(jQuery);var pp_alreadyInitialized=false; (function(e){var t=!1,i=!1,n={isUrl:function(e){var t=RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i");return t.test(e)?!0:!1},loadContent:function(e,t){e.html(t)},addPrefix:function(e){var t=e.attr("id"),i=e.attr("class");"string"==typeof t&&""!==t&&e.attr("id",t.replace(/([A-Za-z0-9_.\-]+)/g,"sidr-id-$1")),"string"==typeof i&&""!==i&&"sidr-inner"!==i&&e.attr("class",i.replace(/([A-Za-z0-9_.\-]+)/g,"sidr-class-$1")),e.removeAttr("style")},execute:function(n,s,a){"function"==typeof s?(a=s,s="sidr"):s||(s="sidr");var r,d,l,c=e("#"+s),u=e(c.data("body")),f=e("html"),p=c.outerWidth(!0),g=c.data("speed"),h=c.data("side"),m=c.data("displace"),v=c.data("onOpen"),y=c.data("onClose"),x="sidr"===s?"sidr-open":"sidr-open "+s+"-open";if("open"===n||"toggle"===n&&!c.is(":visible")){if(c.is(":visible")||t)return;if(i!==!1)return o.close(i,function(){o.open(s)}),void 0;t=!0,"left"===h?(r={left:p+"px"},d={left:"0px"}):(r={right:p+"px"},d={right:"0px"}),u.is("body")&&(l=f.scrollTop(),f.css("overflow-x","hidden").scrollTop(l)),m?u.addClass("sidr-animating").css({width:u.width(),position:"absolute"}).animate(r,g,function(){e(this).addClass(x)}):setTimeout(function(){e(this).addClass(x)},g),c.css("display","block").animate(d,g,function(){t=!1,i=s,"function"==typeof a&&a(s),u.removeClass("sidr-animating")}),v()}else{if(!c.is(":visible")||t)return;t=!0,"left"===h?(r={left:0},d={left:"-"+p+"px"}):(r={right:0},d={right:"-"+p+"px"}),u.is("body")&&(l=f.scrollTop(),f.removeAttr("style").scrollTop(l)),u.addClass("sidr-animating").animate(r,g).removeClass(x),c.animate(d,g,function(){c.removeAttr("style").hide(),u.removeAttr("style"),e("html").removeAttr("style"),t=!1,i=!1,"function"==typeof a&&a(s),u.removeClass("sidr-animating")}),y()}}},o={open:function(e,t){n.execute("open",e,t)},close:function(e,t){n.execute("close",e,t)},toggle:function(e,t){n.execute("toggle",e,t)},toogle:function(e,t){n.execute("toggle",e,t)}};e.sidr=function(t){return o[t]?o[t].apply(this,Array.prototype.slice.call(arguments,1)):"function"!=typeof t&&"string"!=typeof t&&t?(e.error("Method "+t+" does not exist on jQuery.sidr"),void 0):o.toggle.apply(this,arguments)},e.fn.sidr=function(t){var i=e.extend({name:"sidr",speed:200,side:"left",source:null,renaming:!0,body:"body",displace:!0,onOpen:function(){},onClose:function(){}},t),s=i.name,a=e("#"+s);if(0===a.length&&(a=e("
        ").attr("id",s).appendTo(e("body"))),a.addClass("sidr").addClass(i.side).data({speed:i.speed,side:i.side,body:i.body,displace:i.displace,onOpen:i.onOpen,onClose:i.onClose}),"function"==typeof i.source){var r=i.source(s);n.loadContent(a,r)}else if("string"==typeof i.source&&n.isUrl(i.source))e.get(i.source,function(e){n.loadContent(a,e)});else if("string"==typeof i.source){var d="",l=i.source.split(",");if(e.each(l,function(t,i){d+='
        '+e(i).html()+"
        "}),i.renaming){var c=e("
        ").html(d);c.find("*").each(function(t,i){var o=e(i);n.addPrefix(o)}),d=c.html()}n.loadContent(a,d)}else null!==i.source&&e.error("Invalid Sidr Source");return this.each(function(){var t=e(this),i=t.data("sidr");i||(t.data("sidr",s),"ontouchstart"in document.documentElement?(t.bind("touchstart",function(e){e.originalEvent.touches[0],this.touched=e.timeStamp}),t.bind("touchend",function(e){var t=Math.abs(e.timeStamp-this.touched);200>t&&(e.preventDefault(),o.toggle(s))})):t.click(function(e){e.preventDefault(),o.toggle(s)}))})}})(jQuery); ;(function($,window,undefined){'use strict';$.HoverDir=function(options,element){this.$el=$(element);this._init(options);};$.HoverDir.defaults={speed:300,easing:'ease',hoverDelay:0,inverse:false};$.HoverDir.prototype={_init:function(options){this.options=$.extend(true,{},$.HoverDir.defaults,options);this.transitionProp='all '+this.options.speed+'ms '+this.options.easing;this.support=Modernizr.csstransitions;this._loadEvents();},_loadEvents:function(){var self=this;this.$el.on('mouseenter.hoverdir, mouseleave.hoverdir',function(event){var $el=$(this),$hoverElem=$el.find('div.portfolio-entry-hover'),direction=self._getDir($el,{x:event.pageX,y:event.pageY}),styleCSS=self._getStyle(direction);if(event.type==='mouseenter'){$hoverElem.hide().css(styleCSS.from);clearTimeout(self.tmhover);self.tmhover=setTimeout(function(){$hoverElem.show(0,function(){var $el=$(this);if(self.support){$el.css('transition',self.transitionProp);}self._applyAnimation($el,styleCSS.to,self.options.speed);});},self.options.hoverDelay);}else{if(self.support){$hoverElem.css('transition',self.transitionProp);}clearTimeout(self.tmhover);self._applyAnimation($hoverElem,styleCSS.from,self.options.speed);}});},_getDir:function($el,coordinates){var w=$el.width(),h=$el.height(),x=(coordinates.x-$el.offset().left-(w/2))*(w>h?(h/w):1),y=(coordinates.y-$el.offset().top-(h/2))*(h>w?(w/h):1),direction=Math.round((((Math.atan2(y,x)*(180/Math.PI))+180)/90)+3)%4;return direction;},_getStyle:function(direction){var fromStyle,toStyle,slideFromTop={left:'0px',top:'-100%'},slideFromBottom={left:'0px',top:'100%'},slideFromLeft={left:'-100%',top:'0px'},slideFromRight={left:'100%',top:'0px'},slideTop={top:'0px'},slideLeft={left:'0px'};switch(direction){case 0:fromStyle=!this.options.inverse?slideFromTop:slideFromBottom;toStyle=slideTop;break;case 1:fromStyle=!this.options.inverse?slideFromRight:slideFromLeft;toStyle=slideLeft;break;case 2:fromStyle=!this.options.inverse?slideFromBottom:slideFromTop;toStyle=slideTop;break;case 3:fromStyle=!this.options.inverse?slideFromLeft:slideFromRight;toStyle=slideLeft;break;};return{from:fromStyle,to:toStyle};},_applyAnimation:function(el,styleCSS,speed){$.fn.applyStyle=this.support?$.fn.css:$.fn.animate;el.stop().applyStyle(styleCSS,$.extend(true,[],{duration:speed+'ms'}));},};var logError=function(message){if(window.console){window.console.error(message);}};$.fn.hoverdir=function(options){var instance=$.data(this,'hoverdir');if(typeof options==='string'){var args=Array.prototype.slice.call(arguments,1);this.each(function(){if(!instance){logError("cannot call methods on hoverdir prior to initialization; "+"attempted to call method '"+options+"'");return;}if(!$.isFunction(instance[options])||options.charAt(0)==="_"){logError("no such method '"+options+"' for hoverdir instance");return;}instance[options].apply(instance,args);});}else{this.each(function(){if(instance){instance._init();}else{instance=$.data(this,'hoverdir',new $.HoverDir(options,this));}});}return instance;};})(jQuery,window); (function($){$(window).load(function(){$('.project.portfolio-hover-style-1 .entry-thumb').each(function(){ $(this).hoverdir({});});});})(jQuery); (function($){var namespace="chaffle";var methods={init:function(options){options=$.extend({speed:20,time:140},options);return this.each(function(){var _this=this;var $this=$(this);var data=$this.data(namespace);if(!data){options=$.extend({},options);$this.data(namespace,{options:options})}var $text=$this.text();var substitution;var shuffle_timer;var shuffle_timer_delay;var shuffle=function(){$this.text(substitution);if($text.length-substitution.length>0){for(i=0;i<$text.length-substitution.length;i++){var shuffleStr=random_text.call();$this.append(shuffleStr)}}else{clearInterval(shuffle_timer)}};var shuffle_delay=function(){if(substitution.length<$text.length){substitution=$text.substr(0,substitution.length+1)}else{clearInterval(shuffle_timer_delay)}};var random_text=function(){var str;var lang=$this.data("lang");switch(lang){case"en":str=String.fromCharCode(33+Math.round(Math.random()*99));break;case"ja":str=String.fromCharCode(19968+Math.round(Math.random()*80));break;case"ja-hiragana":str=String.fromCharCode(12352+Math.round(Math.random()*50));break;case"ja-katakana":str=String.fromCharCode(12448+Math.round(Math.random()*84));break}return str};var start=function(){substitution="";clearInterval(shuffle_timer);clearInterval(shuffle_timer_delay);shuffle_timer=setInterval(function(){shuffle.call(_this)},options.speed);shuffle_timer_delay=setInterval(function(){shuffle_delay.call(this)},options.time)};$this.unbind("mouseover."+namespace).bind("mouseover."+namespace,function(){start.call(_this)})})},destroy:function(){return this.each(function(){var $this=$(this);$(window).unbind("."+namespace);$this.removeData(namespace)})}};$.fn.chaffle=function(method){if(methods[method]){return methods[method].apply(this,Array.prototype.slice.call(arguments,1))}else if(typeof method==="object"||!method){return methods.init.apply(this,arguments)}else{$.error("Method "+method+" does not exist on jQuery."+namespace)}}})(jQuery); jQuery(document).ready(function(){jQuery(".post-like a").click(function(){var heart=jQuery(this);var post_id=heart.data("post_id");jQuery.ajax({type:"post",url:ajax_var.url,data:"action=post-like&nonce="+ajax_var.nonce+"&post_like=&post_id="+post_id,success:function(count){if(count!="already"){heart.addClass("voted");heart.siblings(".count").text(count);}}});return false;});jQuery("a.post-like, a.post-like-mini").click(function(){var $heart=jQuery(this);var post_id=$heart.data("post_id");jQuery.ajax({type:"post",url:ajax_var.url,data:"action=post-like&nonce="+ajax_var.nonce+"&post_like=&post_id="+post_id,success:function(count){if(count!="already"){$heart.addClass("voted");jQuery('.count',$heart).text(count);}}});return false;});}); !function(d,l){"use strict";var e=!1,n=!1;if(l.querySelector)if(d.addEventListener)e=!0;if(d.wp=d.wp||{},!d.wp.receiveEmbedMessage)if(d.wp.receiveEmbedMessage=function(e){var t=e.data;if(t.secret||t.message||t.value)if(!/[^a-zA-Z0-9]/.test(t.secret)){for(var r,a,i,s=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),n=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),o=new RegExp("^https?:$","i"),c=0;c0)){if((event.type==='mouseout'||event.type==='focusout')&&topli.has(document.activeElement).length>0){return;}topli.find('[aria-expanded]').attr('aria-expanded','false').removeClass(settings.openClass).filter('.'+settings.panelClass).attr('aria-hidden','true');if((event.type==='keydown'&&event.keyCode===Keyboard.ESCAPE)||event.type==='DOMAttrModified'){newfocus=topli.find(':tabbable:first');setTimeout(function(){menu.find('[aria-expanded].'+that.settings.panelClass).off('DOMAttrModified.accessible-megamenu');newfocus.focus();that.justFocused=false;},99);}}else if(topli.length===0){menu.find('[aria-expanded=true]').attr('aria-expanded','false').removeClass(settings.openClass).filter('.'+settings.panelClass).attr('aria-hidden','true');}}else{clearTimeout(that.focusTimeoutID);topli.siblings().find('[aria-expanded]').attr('aria-expanded','false').removeClass(settings.openClass).filter('.'+settings.panelClass).attr('aria-hidden','true');topli.find('[aria-expanded]').attr('aria-expanded','true').addClass(settings.openClass).filter('.'+settings.panelClass).attr('aria-hidden','false');jQuery(this.element).trigger('megamenu:open',topli.find('[aria-expanded]'));if(event.type==='mouseover'&&target.is(':tabbable')&&topli.length===1&&panel.length===0&&menu.has(document.activeElement).length>0){target.focus();that.justFocused=false;}_toggleExpandedEventHandlers.call(that);}};_clickHandler=function(event){var target=$(event.target),topli=target.closest('.'+this.settings.topNavItemClass),panel=target.closest('.'+this.settings.panelClass);if(topli.length===1&&panel.length===0&&topli.find('.'+this.settings.panelClass).length===1){if(!target.hasClass(this.settings.openClass)){event.preventDefault();event.stopPropagation();_togglePanel.call(this,event);}else{if(this.justFocused){event.preventDefault();event.stopPropagation();this.justFocused=false;}else if(isTouch){event.preventDefault();event.stopPropagation();_togglePanel.call(this,event,target.hasClass(this.settings.openClass));}}}};_clickOutsideHandler=function(event){if(this.menu.has($(event.target)).length===0){event.preventDefault();event.stopPropagation();_togglePanel.call(this,event,true);}};_DOMAttrModifiedHandler=function(event){if(event.originalEvent.attrName==='aria-expanded'&&event.originalEvent.newValue==='false'&&$(event.target).hasClass(this.settings.openClass)){event.preventDefault();event.stopPropagation();_togglePanel.call(this,event,true);}};_focusInHandler=function(event){clearTimeout(this.focusTimeoutID);$(event.target).addClass(this.settings.focusClass).on('click.accessible-megamenu',$.proxy(_clickHandler,this));this.justFocused=true;if(this.panels.filter('.'+this.settings.openClass).length){_togglePanel.call(this,event);}};_focusOutHandler=function(event){this.justFocused=false;var that=this,target=$(event.target),topli=target.closest('.'+this.settings.topNavItemClass),keepOpen=false;target.removeClass(this.settings.focusClass).off('click.accessible-megamenu',_clickHandler);if(window.cvox){that.focusTimeoutID=setTimeout(function(){window.cvox.Api.getCurrentNode(function(node){if(topli.has(node).length){clearTimeout(that.focusTimeoutID);}else{that.focusTimeoutID=setTimeout(function(scope,event,hide){_togglePanel.call(scope,event,hide);},275,that,event,true);}});},25);}else{that.focusTimeoutID=setTimeout(function(){_togglePanel.call(that,event,true);},300);}};_keyDownHandler=function(event){var target=$($(this).is('.hover:tabbable')?this:event.target),that=target.is(event.target)?this:_getPlugin(target),settings=that.settings,menu=that.menu,topnavitems=that.topnavitems,topli=target.closest('.'+settings.topNavItemClass),tabbables=menu.find(':tabbable'),panel=target.hasClass(settings.panelClass)?target:target.closest('.'+settings.panelClass),panelGroups=panel.find('.'+settings.panelGroupClass),currentPanelGroup=target.closest('.'+settings.panelGroupClass),next,keycode=event.keyCode||event.which,start,i,o,label,found=false,newString=Keyboard.keyMap[event.keyCode]||'',regex,isTopNavItem=(topli.length===1&&panel.length===0);if(target.is('.hover:tabbable')){$('html').off('keydown.accessible-megamenu');}switch(keycode){case Keyboard.ESCAPE:_togglePanel.call(that,event,true);break;case Keyboard.DOWN:event.preventDefault();if(isTopNavItem){_togglePanel.call(that,event);found=(topli.find('.'+settings.panelClass+' :tabbable:first').focus().length===1);}else{found=(tabbables.filter(':gt('+tabbables.index(target)+'):first').focus().length===1);}if(!found&&window.opera&&opera.toString()==="[object Opera]"&&(event.ctrlKey||event.metaKey)){tabbables=$(':tabbable');i=tabbables.index(target);found=($(':tabbable:gt('+$(':tabbable').index(target)+'):first').focus().length===1);}break;case Keyboard.UP:event.preventDefault();if(isTopNavItem&&target.hasClass(settings.openClass)){_togglePanel.call(that,event,true);next=topnavitems.filter(':lt('+topnavitems.index(topli)+'):last');if(next.children('.'+settings.panelClass).length){found=(next.children().attr('aria-expanded','true').addClass(settings.openClass).filter('.'+settings.panelClass).attr('aria-hidden','false').find(':tabbable:last').focus()===1);jQuery(this.element).trigger('megamenu: open',next.children());}}else if(!isTopNavItem){found=(tabbables.filter(':lt('+tabbables.index(target)+'):last').focus().length===1);}if(!found&&window.opera&&opera.toString()==="[object Opera]"&&(event.ctrlKey||event.metaKey)){tabbables=$(':tabbable');i=tabbables.index(target);found=($(':tabbable:lt('+$(':tabbable').index(target)+'):first').focus().length===1);}break;case Keyboard.RIGHT:event.preventDefault();if(isTopNavItem){found=(topnavitems.filter(':gt('+topnavitems.index(topli)+'):first').find(':tabbable:first').focus().length===1);}else{if(panelGroups.length&¤tPanelGroup.length){found=(panelGroups.filter(':gt('+panelGroups.index(currentPanelGroup)+'):first').find(':tabbable:first').focus().length===1);}if(!found){found=(topli.find(':tabbable:first').focus().length===1);}}break;case Keyboard.LEFT:event.preventDefault();if(isTopNavItem){found=(topnavitems.filter(':lt('+topnavitems.index(topli)+'):last').find(':tabbable:first').focus().length===1);}else{if(panelGroups.length&¤tPanelGroup.length){found=(panelGroups.filter(':lt('+panelGroups.index(currentPanelGroup)+'):last').find(':tabbable:first').focus().length===1);}if(!found){found=(topli.find(':tabbable:first').focus().length===1);}}break;case Keyboard.TAB:i=tabbables.index(target);if(event.shiftKey&&isTopNavItem&&target.hasClass(settings.openClass)){_togglePanel(event,true);next=topnavitems.filter(':lt('+topnavitems.index(topli)+'):last');if(next.children('.'+settings.panelClass).length){found=next.children().attr('aria-expanded','true').addClass(settings.openClass).filter('.'+settings.panelClass).attr('aria-hidden','false').find(':tabbable:last').focus();jQuery(this.element).trigger('megamenu: open',next.children());}}else if(event.shiftKey&&i>0){found=(tabbables.filter(':lt('+i+'):last').focus().length===1);}else if(!event.shiftKey&&i :tabbable');}else{tabbables=topli.find(':tabbable');}if(event.shiftKey){tabbables=$(tabbables.get().reverse());}for(i=0;i=0)&&focusable(element,!isTabIndexNaN);}});}(jQuery,window,document)); !function(e){"use strict";var n=e(window);e.runMegaMenu=function(){e("nav.mega-menu").accessibleMegaMenu({uuidPrefix:"accessible-megamenu",menuClass:"nav-menu",topNavItemClass:"nav-item",panelClass:"sub-nav",panelGroupClass:"sub-nav-group",hoverClass:"hover",focusClass:"focus",openClass:"open"}).on("megamenu:open",function(s,i){if(n.width()<=screen_medium)return!1;var a,t=(e(this),e(i));if(t.is(".main-menu-link.open")&&t.siblings("div.sub-nav").length>0)a=t.siblings("div.sub-nav");else{if(!t.is("div.sub-nav"))return!0;a=t,t=a.siblings(".main-menu-link")}if(a.removeAttr("style").removeClass("sub-nav-onecol"),a.parents("#header-container").hasClass("header-style-1")||a.parents("#header-container").hasClass("header-style-2")||a.parents("#header-container").hasClass("header-style-3")||a.parents("#header-container").hasClass("header-style-4")){a.find("ul.sub-menu-wide").each(function(){var n=e(this),s=1;n.children().each(function(){s+=e(this).outerWidth()}),n.innerWidth(s)});var l=n.width(),u=a.width(),r=0;a.css({"max-width":l}),u>l&&(a.addClass("sub-nav-onecol"),u=a.width());var o=t.outerWidth(),h=t.offset().left,d=l-t.offset().left-o;0>h&&(r=-(h-u/2+o/2)),u-o>d&&(r=-(u-o-d)),a.css("margin-left",r)}})};var s=function(n){var s=n.find("> ul"),i=e(".carousel-nav.next",n),a=e(".carousel-nav.prev",n),t=n.innerWidth(),l=0;e(".menu-item-depth-0",n).each(function(){var n=e(this);l+=n.outerWidth(!0),l>t?n.hide():n.show()}),l>t?(n.addClass("menu-with-slider"),n.find(".carousel-nav").css("display","block"),i.unbind("click").on("click touchend",function(){var e=s.find(".menu-item-depth-0:visible:first"),n=s.find(".menu-item-depth-0:visible:last").next(".menu-item-depth-0");n.length>0&&(e.hide("fast"),n.show("fast"))}),a.unbind("click").on("click touchend",function(){var e=s.find(".menu-item-depth-0:visible:last"),n=s.find(".menu-item-depth-0:visible:first").prev(".menu-item-depth-0");n.length>0&&(e.hide("fast"),n.show("fast"))})):(n.removeClass("menu-with-slider"),n.find(".carousel-nav").css("display","none"))};n.on("load resize scroll",function(){e("#header-container .onclick-menu-wrap .onclick-menu-cover").css("height",.7*n.height()),e("#header-container").hasClass("header-style-5")||e("#header-container").hasClass("header-style-7")||e("#header-container").hasClass("header-style-8")||setTimeout(function(){s(e("#main_mega_menu")),s(e("#top_left_mega_menu")),s(e("#top_right_mega_menu"))},500)}),e("document").ready(function(){var n=function(n){n.click(function(n){n.preventDefault();var s=e(this),i=s.siblings("div.sub-nav");0===i.length&&(i=s.siblings("ul")),i.slideToggle(),s.toggleClass("open")})};n(e("#header .onclick-nav-menu li.has-submenu > a")),n(e(".widget.widget_nav_menu li.has-submenu > a"))})}(jQuery); document.documentElement.className +=' js_active '; document.documentElement.className +='ontouchstart' in document.documentElement ? ' vc_mobile ':' vc_desktop '; (function (){ var prefix=[ '-webkit-', '-moz-', '-ms-', '-o-', '' ]; for(var i=0; i < prefix.length; i ++){ if(prefix[ i ] + 'transform' in document.documentElement.style){ document.documentElement.className +=" vc_transform "; }} })(); jQuery(window).load(function (){ }); function vc_js(){ vc_twitterBehaviour(); vc_toggleBehaviour(); vc_tabsBehaviour(); vc_accordionBehaviour(); vc_teaserGrid(); vc_carouselBehaviour(); vc_slidersBehaviour(); vc_prettyPhoto(); vc_googleplus(); vc_pinterest(); vc_progress_bar(); vc_plugin_flexslider(); vc_google_fonts(); vc_gridBehaviour(); vc_rowBehaviour(); vc_ttaActivation(); jQuery(document).trigger('vc_js'); window.setTimeout(vc_waypoints, 500); } jQuery(document).ready(function($){ window.vc_js(); }); if('function'!==typeof(window[ 'vc_plugin_flexslider' ])){ window.vc_plugin_flexslider=function($parent){ var $slider=$parent ? $parent.find('.wpb_flexslider'):jQuery('.wpb_flexslider'); $slider.each(function (){ var this_element=jQuery(this); var sliderSpeed=800, sliderTimeout=parseInt(this_element.attr('data-interval')) * 1000, sliderFx=this_element.attr('data-flex_fx'), slideshow=true; if(0===sliderTimeout){ slideshow=false; } this_element.is(':visible')&&this_element.flexslider({ animation: sliderFx, slideshow: slideshow, slideshowSpeed: sliderTimeout, sliderSpeed: sliderSpeed, smoothHeight: true }); }); };} if('function'!==typeof(window[ 'vc_twitterBehaviour' ])){ window.vc_twitterBehaviour=function (){ jQuery('.wpb_twitter_widget .tweets').each(function(index){ var this_element=jQuery(this), tw_name=this_element.attr('data-tw_name'), tw_count=this_element.attr('data-tw_count'); this_element.tweet({ username: tw_name, join_text: "auto", avatar_size: 0, count: tw_count, template: "{avatar}{join}{text}{time}", auto_join_text_default: "", auto_join_text_ed: "", auto_join_text_ing: "", auto_join_text_reply: "", auto_join_text_url: "", loading_text: 'loading tweets...' }); }); };} if('function'!==typeof(window[ 'vc_googleplus' ])){ window.vc_googleplus=function (){ if(0 < jQuery('.wpb_googleplus').length){ (function (){ var po=document.createElement('script'); po.type='text/javascript'; po.async=true; po.src='https://apis.google.com/js/plusone.js'; var s=document.getElementsByTagName('script')[ 0 ]; s.parentNode.insertBefore(po, s); })(); }} } if('function'!==typeof(window[ 'vc_pinterest' ])){ window.vc_pinterest=function (){ if(0 < jQuery('.wpb_pinterest').length){ (function (){ var po=document.createElement('script'); po.type='text/javascript'; po.async=true; po.src='http://assets.pinterest.com/js/pinit.js'; var s=document.getElementsByTagName('script')[ 0 ]; s.parentNode.insertBefore(po, s); })(); }} } if('function'!==typeof(window[ 'vc_progress_bar' ])){ window.vc_progress_bar=function (){ if('undefined'!==typeof(jQuery.fn.waypoint)){ jQuery('.vc_progress_bar').waypoint(function (){ jQuery(this).find('.vc_single_bar').each(function(index){ var $this=jQuery(this), bar=$this.find('.vc_bar'), val=bar.data('percentage-value'); setTimeout(function (){ bar.css({ "width": val + '%' }); }, index * 200); }); }, { offset: '85%' }); }} } if('function'!==typeof(window[ 'vc_waypoints' ])){ window.vc_waypoints=function (){ if('undefined'!==typeof(jQuery.fn.waypoint)){ jQuery('.wpb_animate_when_almost_visible:not(.wpb_start_animation)').waypoint(function (){ jQuery(this).addClass('wpb_start_animation'); }, { offset: '85%' }); }} } if('function'!==typeof(window[ 'vc_toggleBehaviour' ])){ window.vc_toggleBehaviour=function($el){ function event(e){ e&&e.preventDefault&&e.preventDefault(); var title=jQuery(this); var element=title.closest('.vc_toggle'); var content=element.find('.vc_toggle_content'); if(element.hasClass('vc_toggle_active')){ content.slideUp({ duration: 300, complete: function (){ element.removeClass('vc_toggle_active'); }}); }else{ content.slideDown({ duration: 300, complete: function (){ element.addClass('vc_toggle_active'); }}); }} if($el){ if($el.hasClass('vc_toggle_title')){ $el.unbind('click').click(event); }else{ $el.find(".vc_toggle_title").unbind('click').click(event); }}else{ jQuery(".vc_toggle_title").unbind('click').on('click', event); }} } if('function'!==typeof(window[ 'vc_tabsBehaviour' ])){ window.vc_tabsBehaviour=function($tab){ if(jQuery.ui){ var $call=$tab||jQuery('.wpb_tabs, .wpb_tour'), ver=jQuery.ui&&jQuery.ui.version ? jQuery.ui.version.split('.'):'1.10', old_version=1===parseInt(ver[ 0 ])&&9 > parseInt(ver[ 1 ]); $call.each(function(index){ var $tabs, interval=jQuery(this).attr("data-interval"), tabs_array=[]; $tabs=jQuery(this).find('.wpb_tour_tabs_wrapper').tabs({ show: function(event, ui){ wpb_prepare_tab_content(event, ui); }, beforeActivate: function(event, ui){ 1!==ui.newPanel.index()&&ui.newPanel.find('.vc_pie_chart:not(.vc_ready)'); }, activate: function(event, ui){ wpb_prepare_tab_content(event, ui); }}); if(interval&&0 < interval){ try { $tabs.tabs('rotate', interval * 1000); } catch(e){ window.console&&window.console.log&&console.log(e); }} jQuery(this).find('.wpb_tab').each(function (){ tabs_array.push(this.id); }); jQuery(this).find('.wpb_tabs_nav li').click(function(e){ e.preventDefault(); if(old_version){ $tabs.tabs("select", jQuery('a', this).attr('href')); }else{ $tabs.tabs("option", "active", jQuery(this).index()); } return false; }); jQuery(this).find('.wpb_prev_slide a, .wpb_next_slide a').click(function(e){ e.preventDefault(); if(old_version){ var index=$tabs.tabs('option', 'selected'); if(jQuery(this).parent().hasClass('wpb_next_slide')){ index ++; }else{ index --; } if(0 > index){ index=$tabs.tabs("length") - 1; } else if(index >=$tabs.tabs("length")){ index=0; } $tabs.tabs("select", index); }else{ var index=$tabs.tabs("option", "active"), length=$tabs.find('.wpb_tab').length; if(jQuery(this).parent().hasClass('wpb_next_slide')){ index=(index + 1) >=length ? 0:index + 1; }else{ index=0 > index - 1 ? length - 1:index - 1; } $tabs.tabs("option", "active", index); }}); }); }} } if('function'!==typeof(window[ 'vc_accordionBehaviour' ])){ window.vc_accordionBehaviour=function (){ jQuery('.wpb_accordion').each(function(index){ var $this=jQuery(this); var $tabs, interval=$this.attr("data-interval"), active_tab = ! isNaN(jQuery(this).data('active-tab'))&&0 < parseInt($this.data('active-tab')) ? parseInt($this.data('active-tab')) - 1:false, collapsible=false===active_tab||'yes'===$this.data('collapsible'); $tabs=$this.find('.wpb_accordion_wrapper').accordion({ header: "> div > h3", autoHeight: false, heightStyle: "content", active: active_tab, collapsible: collapsible, navigation: true, activate: vc_accordionActivate, change: function(event, ui){ if('undefined'!==typeof(jQuery.fn.isotope)){ ui.newContent.find('.isotope').isotope("layout"); } vc_carouselBehaviour(ui.newPanel); }}); if(true===$this.data('vcDisableKeydown')){ $tabs.data('uiAccordion')._keydown=function (){ };}}); }} if('function'!==typeof(window[ 'vc_teaserGrid' ])){ window.vc_teaserGrid=function (){ var layout_modes={ fitrows: 'fitRows', masonry: 'masonry' }; jQuery('.wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)').each(function (){ var $container=jQuery(this); var $thumbs=$container.find('.wpb_thumbnails'); var layout_mode=$thumbs.attr('data-layout-mode'); $thumbs.isotope({ itemSelector: '.isotope-item', layoutMode: ('undefined'===typeof(layout_modes[ layout_mode ]) ? 'fitRows':layout_modes[ layout_mode ]) }); $container.find('.categories_filter a').data('isotope', $thumbs).click(function(e){ e.preventDefault(); var $thumbs=jQuery(this).data('isotope'); jQuery(this).parent().parent().find('.active').removeClass('active'); jQuery(this).parent().addClass('active'); $thumbs.isotope({ filter: jQuery(this).attr('data-filter') }); }); jQuery(window).bind('load resize', function (){ $thumbs.isotope("layout"); }); }); }} if('function'!==typeof(window[ 'vc_carouselBehaviour' ])){ window.vc_carouselBehaviour=function($parent){ var $carousel=$parent ? $parent.find(".wpb_carousel"):jQuery(".wpb_carousel"); $carousel.each(function (){ var $this=jQuery(this); if(true!==$this.data('carousel_enabled')&&$this.is(':visible')){ $this.data('carousel_enabled', true); var visible_count=getColumnsCount(jQuery(this)), carousel_speed=500; if(jQuery(this).hasClass('columns_count_1')){ carousel_speed=900; } var carousele_li=jQuery(this).find('.wpb_thumbnails-fluid li'); carousele_li.css({ "margin-right": carousele_li.css("margin-left"), "margin-left": 0 }); jQuery(this).find('.wpb_wrapper:eq(0)').jCarouselLite({ btnNext: jQuery(this).find('.next'), btnPrev: jQuery(this).find('.prev'), visible: visible_count, speed: carousel_speed }) .width('100%'); var fluid_ul=jQuery(this).find('ul.wpb_thumbnails-fluid'); fluid_ul.width(fluid_ul.width() + 300); jQuery(window).resize(function (){ var before_resize=screen_size; screen_size=getSizeName(); if(before_resize!=screen_size){ window.setTimeout('location.reload()', 20); }}); }}); }} if('function'!==typeof(window[ 'vc_slidersBehaviour' ])){ window.vc_slidersBehaviour=function (){ jQuery('.wpb_gallery_slides').each(function(index){ var this_element=jQuery(this); var $imagesGrid; if(this_element.hasClass('wpb_slider_nivo')){ var sliderSpeed=800, sliderTimeout=this_element.attr('data-interval') * 1000; if(0===sliderTimeout){ sliderTimeout=9999999999; } this_element.find('.nivoSlider').nivoSlider({ effect: 'boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse', slices: 15, boxCols: 8, boxRows: 4, animSpeed: sliderSpeed, pauseTime: sliderTimeout, startSlide: 0, directionNav: true, directionNavHide: true, controlNav: true, keyboardNav: false, pauseOnHover: true, manualAdvance: false, prevText: 'Prev', nextText: 'Next' }); } else if(this_element.hasClass('wpb_image_grid')){ if(jQuery.fn.imagesLoaded){ $imagesGrid=this_element.find('.wpb_image_grid_ul').imagesLoaded(function (){ $imagesGrid.isotope({ itemSelector: '.isotope-item', layoutMode: 'fitRows' }); }); }else{ this_element.find('.wpb_image_grid_ul').isotope({ itemSelector: '.isotope-item', layoutMode: 'fitRows' }); }} }); }} if('function'!==typeof(window[ 'vc_prettyPhoto' ])){ window.vc_prettyPhoto=function (){ try { if(jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto){ jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({ animationSpeed: 'normal', padding: 15, opacity: 0.7, showTitle: true, allowresize: true, counter_separator_label: '/', hideflash: false, deeplinking: false, modal: false, callback: function (){ var url=location.href; var hashtag=(url.indexOf('#!prettyPhoto')) ? true:false; if(hashtag){ location.hash="!"; }} , social_tools: '' }); }} catch(err){ window.console&&window.console.log&&console.log(err); }} } if('function'!==typeof(window[ 'vc_google_fonts' ])){ window.vc_google_fonts=function (){ return false; }} window.vcParallaxSkroll=false; if('function'!==typeof(window[ 'vc_rowBehaviour' ])){ window.vc_rowBehaviour=function (){ var $=window.jQuery; function localFunction(){ var $elements=$('[data-vc-full-width="true"]'); $.each($elements, function(key, item){ var $el=$(this); $el.addClass('vc_hidden'); var $el_full=$el.next('.vc_row-full-width'); var el_margin_left=parseInt($el.css('margin-left'), 10); var el_margin_right=parseInt($el.css('margin-right'), 10); var offset=0 - $el_full.offset().left - el_margin_left; var width=$(window).width(); $el.css({ 'position': 'relative', 'left': offset, 'box-sizing': 'border-box', 'width': $(window).width() }); if(! $el.data('vcStretchContent')){ var padding=(- 1 * offset); if(0 > padding){ padding=0; } var paddingRight=width - padding - $el_full.width() + el_margin_left + el_margin_right; if(0 > paddingRight){ paddingRight=0; } $el.css({ 'padding-left': padding + 'px', 'padding-right': paddingRight + 'px' }); } $el.attr("data-vc-full-width-init", "true"); $el.removeClass('vc_hidden'); }); } function parallaxRow(){ var vcSkrollrOptions, vcParallaxSkroll, callSkrollInit=false; if(vcParallaxSkroll){ vcParallaxSkroll.destroy(); } $('.vc_parallax-inner').remove(); $('[data-5p-top-bottom]').removeAttr('data-5p-top-bottom data-30p-top-bottom'); $('[data-vc-parallax]').each(function (){ var skrollrSpeed, skrollrSize, skrollrStart, skrollrEnd, $parallaxElement, parallaxImage, youtubeId; callSkrollInit=true; if('on'===$(this).data('vcParallaxOFade')){ $(this).children().attr('data-5p-top-bottom', 'opacity:0;').attr('data-30p-top-bottom', 'opacity:1;'); } skrollrSize=$(this).data('vcParallax') * 100; $parallaxElement=$('
        ').addClass('vc_parallax-inner').appendTo($(this)); $parallaxElement.height(skrollrSize + '%'); parallaxImage=$(this).data('vcParallaxImage'); youtubeId=vcExtractYoutubeId(parallaxImage); if(youtubeId){ insertYoutubeVideoAsBackground($parallaxElement, youtubeId); }else if('undefined'!==typeof(parallaxImage)){ $parallaxElement.css('background-image', 'url(' + parallaxImage + ')'); } skrollrSpeed=skrollrSize - 100; skrollrStart=- skrollrSpeed; skrollrEnd=0; $parallaxElement.attr('data-bottom-top', 'top: ' + skrollrStart + '%;').attr('data-top-bottom', 'top: ' + skrollrEnd + '%;'); }); if(callSkrollInit&&window.skrollr){ vcSkrollrOptions={ forceHeight: false, smoothScrolling: false, mobileCheck: function (){ return false; }}; vcParallaxSkroll=skrollr.init(vcSkrollrOptions); return vcParallaxSkroll; } return false; } function fullHeightRow(){ $('.vc_row-o-full-height:first').each(function (){ var $window, windowHeight, offsetTop, fullHeight; $window=$(window); windowHeight=$window.height(); offsetTop=$(this).offset().top; if(offsetTop < windowHeight){ fullHeight=100 - offsetTop / (windowHeight / 100); $(this).css('min-height', fullHeight + 'vh'); }}); $('.vc_row-o-full-height.vc_row-o-content-middle').each(function (){ var elHeight=$(this).height(); $('
        ') .addClass('vc_row-full-height-fixer') .height(elHeight) .prependTo($(this)); }); } $(window).unbind('resize.vcRowBehaviour').bind('resize.vcRowBehaviour', localFunction); $(window).bind('resize.vcRowBehaviour', fullHeightRow); localFunction(); fullHeightRow(); initVideoBackgrounds(); parallaxRow(); }} if('function'!==typeof(window[ 'vc_gridBehaviour' ])){ window.vc_gridBehaviour=function (){ jQuery.fn.vcGrid&&jQuery('[data-vc-grid]').vcGrid(); }} if('function'!==typeof(window[ 'getColumnsCount' ])){ window.getColumnsCount=function(el){ var find=false, i=1; while(false===find){ if(el.hasClass('columns_count_' + i)){ find=true; return i; } i ++; }} } var screen_size=getSizeName(); function getSizeName(){ var screen_w=jQuery(window).width(); if(1170 < screen_w){ return 'desktop_wide'; } if(960 < screen_w&&1169 > screen_w){ return 'desktop'; } if(768 < screen_w&&959 > screen_w){ return 'tablet'; } if(300 < screen_w&&767 > screen_w){ return 'mobile'; } if(300 > screen_w){ return 'mobile_portrait'; } return ''; } function loadScript(url, $obj, callback){ var script=document.createElement("script"); script.type="text/javascript"; if(script.readyState){ script.onreadystatechange=function (){ if("loaded"===script.readyState || "complete"===script.readyState){ script.onreadystatechange=null; callback(); }};}else{ } script.src=url; $obj.get(0).appendChild(script); } if('function'!==typeof(window[ 'wpb_prepare_tab_content' ])){ window.wpb_prepare_tab_content=function(event, ui){ var panel=ui.panel||ui.newPanel, $pie_charts=panel.find('.vc_pie_chart:not(.vc_ready)'), $round_charts=panel.find('.vc_round-chart'), $line_charts=panel.find('.vc_line-chart'), $carousel=panel.find('[data-ride="vc_carousel"]'), $ui_panel, $google_maps; vc_carouselBehaviour(); vc_plugin_flexslider(panel); if(ui.newPanel.find('.vc_masonry_media_grid, .vc_masonry_grid').length){ ui.newPanel.find('.vc_masonry_media_grid, .vc_masonry_grid').each(function (){ var grid=jQuery(this).data('vcGrid'); grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry(); }); } if(panel.find('.vc_masonry_media_grid, .vc_masonry_grid').length){ panel.find('.vc_masonry_media_grid, .vc_masonry_grid').each(function (){ var grid=jQuery(this).data('vcGrid'); grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry(); }); } $pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(); $round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({ reload: false }); $line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({ reload: false }); $carousel.length&&jQuery.fn.carousel&&$carousel.carousel('resizeAction'); $ui_panel=panel.find('.isotope, .wpb_image_grid_ul'); $google_maps=panel.find('.wpb_gmaps_widget'); if(0 < $ui_panel.length){ $ui_panel.isotope("layout"); } if($google_maps.length&&! $google_maps.is('.map_ready')){ var $frame=$google_maps.find('iframe'); $frame.attr('src', $frame.attr('src')); $google_maps.addClass('map_ready'); } if(panel.parents('.isotope').length){ panel.parents('.isotope').each(function (){ jQuery(this).isotope("layout"); }); }} } function vc_ttaActivation(){ jQuery('[data-vc-accordion]').on('show.vc.accordion', function(e){ var $=window.jQuery, ui={}; ui.newPanel=$(this).data('vc.accordion').getTarget(); window.wpb_prepare_tab_content(e, ui); }); } function vc_accordionActivate(event, ui){ if(ui.newPanel.length&&ui.newHeader.length){ var $pie_charts=ui.newPanel.find('.vc_pie_chart:not(.vc_ready)'), $round_charts=ui.newPanel.find('.vc_round-chart'), $line_charts=ui.newPanel.find('.vc_line-chart'), $carousel=ui.newPanel.find('[data-ride="vc_carousel"]'); if('undefined'!==typeof(jQuery.fn.isotope)){ ui.newPanel.find('.isotope, .wpb_image_grid_ul').isotope("layout"); } if(ui.newPanel.find('.vc_masonry_media_grid, .vc_masonry_grid').length){ ui.newPanel.find('.vc_masonry_media_grid, .vc_masonry_grid').each(function (){ var grid=jQuery(this).data('vcGrid'); grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry(); }); } vc_carouselBehaviour(ui.newPanel); vc_plugin_flexslider(ui.newPanel); $pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(); $round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({ reload: false }); $line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({ reload: false }); $carousel.length&&jQuery.fn.carousel&&$carousel.carousel('resizeAction'); if(ui.newPanel.parents('.isotope').length){ ui.newPanel.parents('.isotope').each(function (){ jQuery(this).isotope("layout"); }); }} } function initVideoBackgrounds(){ jQuery('.vc_row').each(function (){ var $row=jQuery(this), youtubeUrl, youtubeId; if($row.data('vcVideoBg')){ youtubeUrl=$row.data('vcVideoBg'); youtubeId=vcExtractYoutubeId(youtubeUrl); if(youtubeId){ $row.find('.vc_video-bg').remove(); insertYoutubeVideoAsBackground($row, youtubeId); } jQuery(window).on('grid:items:added', function(event, $grid){ if(! $row.has($grid).length){ return; } vcResizeVideoBackground($row); }); }else{ $row.find('.vc_video-bg').remove(); }}); } function insertYoutubeVideoAsBackground($element, youtubeId, counter){ if('undefined'===typeof(YT.Player)){ counter='undefined'===typeof(counter) ? 0:counter; if(100 < counter){ console.warn('Too many attempts to load YouTube api'); return; } setTimeout(function (){ insertYoutubeVideoAsBackground($element, youtubeId, counter ++); }, 100); return; } var $container=$element.prepend('
        ').find('.inner'); new YT.Player($container[ 0 ], { width: '100%', height: '100%', videoId: youtubeId, playerVars: { playlist: youtubeId, iv_load_policy: 3, enablejsapi: 1, disablekb: 1, autoplay: 1, controls: 0, showinfo: 0, rel: 0, loop: 1 }, events: { onReady: function(event){ event.target.mute().setLoop(true); }} }); vcResizeVideoBackground($element); jQuery(window).bind('resize', function (){ vcResizeVideoBackground($element); }); } function vcResizeVideoBackground($element){ var iframeW, iframeH, marginLeft, marginTop, containerW=$element.innerWidth(), containerH=$element.innerHeight(), ratio1=16, ratio2=9; if(( containerW / containerH) <(ratio1 / ratio2)){ iframeW=containerH * (ratio1 / ratio2); iframeH=containerH; marginLeft=- Math.round(( iframeW - containerW) / 2) + 'px'; marginTop=- Math.round(( iframeH - containerH) / 2) + 'px'; iframeW +='px'; iframeH +='px'; }else{ iframeW=containerW; iframeH=containerW * (ratio2 / ratio1); marginTop=- Math.round(( iframeH - containerH) / 2) + 'px'; marginLeft=- Math.round(( iframeW - containerW) / 2) + 'px'; iframeW +='px'; iframeH +='px'; } $element.find('.vc_video-bg iframe').css({ maxWidth: '1000%', marginLeft: marginLeft, marginTop: marginTop, width: iframeW, height: iframeH }); } function vcExtractYoutubeId(url){ if('undefined'===typeof(url)){ return false; } var id=url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/); if(null!==id){ return id[ 1 ]; } return false; }; (function(t,e){"use strict";var i=t.GreenSockGlobals=t.GreenSockGlobals||t;if(!i.TweenLite){var s,n,r,a,o,l=function(t){var e,s=t.split("."),n=i;for(e=0;s.length>e;e++)n[s[e]]=n=n[s[e]]||{};return n},h=l("com.greensock"),_=1e-10,u=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},f=function(){},m=function(){var t=Object.prototype.toString,e=t.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),p={},c=function(s,n,r,a){this.sc=p[s]?p[s].sc:[],p[s]=this,this.gsClass=null,this.func=r;var o=[];this.check=function(h){for(var _,u,f,m,d=n.length,v=d;--d>-1;)(_=p[n[d]]||new c(n[d],[])).gsClass?(o[d]=_.gsClass,v--):h&&_.sc.push(this);if(0===v&&r)for(u=("com.greensock."+s).split("."),f=u.pop(),m=l(u.join("."))[f]=this.gsClass=r.apply(r,o),a&&(i[f]=m,"function"==typeof define&&define.amd?define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+s.split(".").pop(),[],function(){return m}):s===e&&"undefined"!=typeof module&&module.exports&&(module.exports=m)),d=0;this.sc.length>d;d++)this.sc[d].check()},this.check(!0)},d=t._gsDefine=function(t,e,i,s){return new c(t,e,i,s)},v=h._class=function(t,e,i){return e=e||function(){},d(t,[],function(){return e},i),e};d.globals=i;var g=[0,0,1,1],T=[],y=v("easing.Ease",function(t,e,i,s){this._func=t,this._type=i||0,this._power=s||0,this._params=e?g.concat(e):g},!0),w=y.map={},P=y.register=function(t,e,i,s){for(var n,r,a,o,l=e.split(","),_=l.length,u=(i||"easeIn,easeOut,easeInOut").split(",");--_>-1;)for(r=l[_],n=s?v("easing."+r,null,!0):h.easing[r]||{},a=u.length;--a>-1;)o=u[a],w[r+"."+o]=w[o+r]=n[o]=t.getRatio?t:t[o]||new t};for(r=y.prototype,r._calcEnd=!1,r.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,s=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?s*=s:2===i?s*=s*s:3===i?s*=s*s*s:4===i&&(s*=s*s*s*s),1===e?1-s:2===e?s:.5>t?s/2:1-s/2},s=["Linear","Quad","Cubic","Quart","Quint,Strong"],n=s.length;--n>-1;)r=s[n]+",Power"+n,P(new y(null,null,1,n),r,"easeOut",!0),P(new y(null,null,2,n),r,"easeIn"+(0===n?",easeNone":"")),P(new y(null,null,3,n),r,"easeInOut");w.linear=h.easing.Linear.easeIn,w.swing=h.easing.Quad.easeInOut;var b=v("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});r=b.prototype,r.addEventListener=function(t,e,i,s,n){n=n||0;var r,l,h=this._listeners[t],_=0;for(null==h&&(this._listeners[t]=h=[]),l=h.length;--l>-1;)r=h[l],r.c===e&&r.s===i?h.splice(l,1):0===_&&n>r.pr&&(_=l+1);h.splice(_,0,{c:e,s:i,up:s,pr:n}),this!==a||o||a.wake()},r.removeEventListener=function(t,e){var i,s=this._listeners[t];if(s)for(i=s.length;--i>-1;)if(s[i].c===e)return s.splice(i,1),void 0},r.dispatchEvent=function(t){var e,i,s,n=this._listeners[t];if(n)for(e=n.length,i=this._eventTarget;--e>-1;)s=n[e],s.up?s.c.call(s.s||i,{type:t,target:i}):s.c.call(s.s||i)};var k=t.requestAnimationFrame,A=t.cancelAnimationFrame,S=Date.now||function(){return(new Date).getTime()},x=S();for(s=["ms","moz","webkit","o"],n=s.length;--n>-1&&!k;)k=t[s[n]+"RequestAnimationFrame"],A=t[s[n]+"CancelAnimationFrame"]||t[s[n]+"CancelRequestAnimationFrame"];v("Ticker",function(t,e){var i,s,n,r,l,h=this,u=S(),m=e!==!1&&k,p=500,c=33,d=function(t){var e,a,o=S()-x;o>p&&(u+=o-c),x+=o,h.time=(x-u)/1e3,e=h.time-l,(!i||e>0||t===!0)&&(h.frame++,l+=e+(e>=r?.004:r-e),a=!0),t!==!0&&(n=s(d)),a&&h.dispatchEvent("tick")};b.call(h),h.time=h.frame=0,h.tick=function(){d(!0)},h.lagSmoothing=function(t,e){p=t||1/_,c=Math.min(e,p,0)},h.sleep=function(){null!=n&&(m&&A?A(n):clearTimeout(n),s=f,n=null,h===a&&(o=!1))},h.wake=function(){null!==n?h.sleep():h.frame>10&&(x=S()-p+5),s=0===i?f:m&&k?k:function(t){return setTimeout(t,0|1e3*(l-h.time)+1)},h===a&&(o=!0),d(2)},h.fps=function(t){return arguments.length?(i=t,r=1/(i||60),l=this.time+r,h.wake(),void 0):i},h.useRAF=function(t){return arguments.length?(h.sleep(),m=t,h.fps(i),void 0):m},h.fps(t),setTimeout(function(){m&&(!n||5>h.frame)&&h.useRAF(!1)},1500)}),r=h.Ticker.prototype=new h.events.EventDispatcher,r.constructor=h.Ticker;var C=v("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=e.immediateRender===!0,this.data=e.data,this._reversed=e.reversed===!0,B){o||a.wake();var i=this.vars.useFrames?q:B;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});a=C.ticker=new h.Ticker,r=C.prototype,r._dirty=r._gc=r._initted=r._paused=!1,r._totalTime=r._time=0,r._rawPrevTime=-1,r._next=r._last=r._onUpdate=r._timeline=r.timeline=null,r._paused=!1;var R=function(){o&&S()-x>2e3&&a.wake(),setTimeout(R,2e3)};R(),r.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},r.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},r.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},r.seek=function(t,e){return this.totalTime(Number(t),e!==!1)},r.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,e!==!1,!0)},r.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},r.render=function(){},r.invalidate=function(){return this},r.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime())>=i&&i+this.totalDuration()/this._timeScale>t},r._enabled=function(t,e){return o||a.wake(),this._gc=!t,this._active=this.isActive(),e!==!0&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},r._kill=function(){return this._enabled(!1,!1)},r.kill=function(t,e){return this._kill(t,e),this},r._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},r._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},r.eventCallback=function(t,e,i,s){if("on"===(t||"").substr(0,2)){var n=this.vars;if(1===arguments.length)return n[t];null==e?delete n[t]:(n[t]=e,n[t+"Params"]=m(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,n[t+"Scope"]=s),"onUpdate"===t&&(this._onUpdate=e)}return this},r.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},r.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._timethis._duration?this._duration:t,e)):this._time},r.totalTime=function(t,e,i){if(o||a.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>t&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var s=this._totalDuration,n=this._timeline;if(t>s&&!i&&(t=s),this._startTime=(this._paused?this._pauseTime:n._time)-(this._reversed?s-t:t)/this._timeScale,n._dirty||this._uncache(!1),n._timeline)for(;n._timeline;)n._timeline._time!==(n._startTime+n._totalTime)/n._timeScale&&n.totalTime(n._totalTime,!0),n=n._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==t||0===this._duration)&&(this.render(t,e,!1),O.length&&M())}return this},r.progress=r.totalProgress=function(t,e){return arguments.length?this.totalTime(this.duration()*t,e):this._time/this.duration()},r.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},r.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||_,this._timeline&&this._timeline.smoothChildTiming){var e=this._pauseTime,i=e||0===e?e:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/t}return this._timeScale=t,this._uncache(!1)},r.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},r.paused=function(t){if(!arguments.length)return this._paused;if(t!=this._paused&&this._timeline){o||t||a.wake();var e=this._timeline,i=e.rawTime(),s=i-this._pauseTime;!t&&e.smoothChildTiming&&(this._startTime+=s,this._uncache(!1)),this._pauseTime=t?i:null,this._paused=t,this._active=this.isActive(),!t&&0!==s&&this._initted&&this.duration()&&this.render(e.smoothChildTiming?this._totalTime:(i-this._startTime)/this._timeScale,!0,!0)}return this._gc&&!t&&this._enabled(!0,!1),this};var D=v("core.SimpleTimeline",function(t){C.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});r=D.prototype=new C,r.constructor=D,r.kill()._gc=!1,r._first=r._last=null,r._sortChildren=!1,r.add=r.insert=function(t,e){var i,s;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),i=this._last,this._sortChildren)for(s=t._startTime;i&&i._startTime>s;)i=i._prev;return i?(t._next=i._next,i._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=i,this._timeline&&this._uncache(!0),this},r._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,this._timeline&&this._uncache(!0)),this},r.render=function(t,e,i){var s,n=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;n;)s=n._next,(n._active||t>=n._startTime&&!n._paused)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=s},r.rawTime=function(){return o||a.wake(),this._totalTime};var I=v("TweenLite",function(e,i,s){if(C.call(this,i,s),this.render=I.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:I.selector(e)||e;var n,r,a,o=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?Q[I.defaultOverwrite]:"number"==typeof l?l>>0:Q[l],(o||e instanceof Array||e.push&&m(e))&&"number"!=typeof e[0])for(this._targets=a=u(e),this._propLookup=[],this._siblings=[],n=0;a.length>n;n++)r=a[n],r?"string"!=typeof r?r.length&&r!==t&&r[0]&&(r[0]===t||r[0].nodeType&&r[0].style&&!r.nodeType)?(a.splice(n--,1),this._targets=a=a.concat(u(r))):(this._siblings[n]=$(r,this,!1),1===l&&this._siblings[n].length>1&&K(r,this,null,1,this._siblings[n])):(r=a[n--]=I.selector(r),"string"==typeof r&&a.splice(n+1,1)):a.splice(n--,1);else this._propLookup={},this._siblings=$(e,this,!1),1===l&&this._siblings.length>1&&K(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-_,this.render(-this._delay))},!0),E=function(e){return e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)},z=function(t,e){var i,s={};for(i in t)G[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!U[i]||U[i]&&U[i]._autoCSS)||(s[i]=t[i],delete t[i]);t.css=s};r=I.prototype=new C,r.constructor=I,r.kill()._gc=!1,r.ratio=0,r._firstPT=r._targets=r._overwrittenProps=r._startAt=null,r._notifyPluginsOfEnabled=r._lazy=!1,I.version="1.13.1",I.defaultEase=r._ease=new y(null,null,1,1),I.defaultOverwrite="auto",I.ticker=a,I.autoSleep=!0,I.lagSmoothing=function(t,e){a.lagSmoothing(t,e)},I.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(I.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)};var O=[],L={},N=I._internals={isArray:m,isSelector:E,lazyTweens:O},U=I._plugins={},F=N.tweenLookup={},j=0,G=N.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1},Q={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},q=C._rootFramesTimeline=new D,B=C._rootTimeline=new D,M=N.lazyRender=function(){var t=O.length;for(L={};--t>-1;)s=O[t],s&&s._lazy!==!1&&(s.render(s._lazy,!1,!0),s._lazy=!1);O.length=0};B._startTime=a.time,q._startTime=a.frame,B._active=q._active=!0,setTimeout(M,1),C._updateRoot=I.render=function(){var t,e,i;if(O.length&&M(),B.render((a.time-B._startTime)*B._timeScale,!1,!1),q.render((a.frame-q._startTime)*q._timeScale,!1,!1),O.length&&M(),!(a.frame%120)){for(i in F){for(e=F[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete F[i]}if(i=B._first,(!i||i._paused)&&I.autoSleep&&!q._first&&1===a._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||a.sleep()}}},a.addEventListener("tick",C._updateRoot);var $=function(t,e,i){var s,n,r=t._gsTweenID;if(F[r||(t._gsTweenID=r="t"+j++)]||(F[r]={target:t,tweens:[]}),e&&(s=F[r].tweens,s[n=s.length]=e,i))for(;--n>-1;)s[n]===e&&s.splice(n,1);return F[r].tweens},K=function(t,e,i,s,n){var r,a,o,l;if(1===s||s>=4){for(l=n.length,r=0;l>r;r++)if((o=n[r])!==e)o._gc||o._enabled(!1,!1)&&(a=!0);else if(5===s)break;return a}var h,u=e._startTime+_,f=[],m=0,p=0===e._duration;for(r=n.length;--r>-1;)(o=n[r])===e||o._gc||o._paused||(o._timeline!==e._timeline?(h=h||H(e,0,p),0===H(o,h,p)&&(f[m++]=o)):u>=o._startTime&&o._startTime+o.totalDuration()/o._timeScale>u&&((p||!o._initted)&&2e-10>=u-o._startTime||(f[m++]=o)));for(r=m;--r>-1;)o=f[r],2===s&&o._kill(i,t)&&(a=!0),(2!==s||!o._firstPT&&o._initted)&&o._enabled(!1,!1)&&(a=!0);return a},H=function(t,e,i){for(var s=t._timeline,n=s._timeScale,r=t._startTime;s._timeline;){if(r+=s._startTime,n*=s._timeScale,s._paused)return-100;s=s._timeline}return r/=n,r>e?r-e:i&&r===e||!t._initted&&2*_>r-e?_:(r+=t.totalDuration()/t._timeScale/n)>e+_?0:r-e-_};r._init=function(){var t,e,i,s,n,r=this.vars,a=this._overwrittenProps,o=this._duration,l=!!r.immediateRender,h=r.ease;if(r.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),n={};for(s in r.startAt)n[s]=r.startAt[s];if(n.overwrite=!1,n.immediateRender=!0,n.lazy=l&&r.lazy!==!1,n.startAt=n.delay=null,this._startAt=I.to(this.target,0,n),l)if(this._time>0)this._startAt=null;else if(0!==o)return}else if(r.runBackwards&&0!==o)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{i={};for(s in r)G[s]&&"autoCSS"!==s||(i[s]=r[s]);if(i.overwrite=0,i.data="isFromStart",i.lazy=l&&r.lazy!==!1,i.immediateRender=l,this._startAt=I.to(this.target,0,i),l){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1)}if(this._ease=h=h?h instanceof y?h:"function"==typeof h?new y(h,r.easeParams):w[h]||I.defaultEase:I.defaultEase,r.easeParams instanceof Array&&h.config&&(this._ease=h.config.apply(h,r.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(t=this._targets.length;--t>-1;)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],a?a[t]:null)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,a);if(e&&I._onPluginEvent("_onInitAllProps",this),a&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),r.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=r.onUpdate,this._initted=!0},r._initProps=function(e,i,s,n){var r,a,o,l,h,_;if(null==e)return!1;L[e._gsTweenID]&&M(),this.vars.css||e.style&&e!==t&&e.nodeType&&U.css&&this.vars.autoCSS!==!1&&z(this.vars,e);for(r in this.vars){if(_=this.vars[r],G[r])_&&(_ instanceof Array||_.push&&m(_))&&-1!==_.join("").indexOf("{self}")&&(this.vars[r]=_=this._swapSelfInParams(_,this));else if(U[r]&&(l=new U[r])._onInitTween(e,this.vars[r],this)){for(this._firstPT=h={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:!0,n:r,pg:!0,pr:l._priority},a=l._overwriteProps.length;--a>-1;)i[l._overwriteProps[a]]=this._firstPT;(l._priority||l._onInitAllProps)&&(o=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0)}else this._firstPT=i[r]=h={_next:this._firstPT,t:e,p:r,f:"function"==typeof e[r],n:r,pg:!1,pr:0},h.s=h.f?e[r.indexOf("set")||"function"!=typeof e["get"+r.substr(3)]?r:"get"+r.substr(3)]():parseFloat(e[r]),h.c="string"==typeof _&&"="===_.charAt(1)?parseInt(_.charAt(0)+"1",10)*Number(_.substr(2)):Number(_)-h.s||0;h&&h._next&&(h._next._prev=h)}return n&&this._kill(n,e)?this._initProps(e,i,s,n):this._overwrite>1&&this._firstPT&&s.length>1&&K(e,this,i,this._overwrite,s)?(this._kill(i,e),this._initProps(e,i,s,n)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(L[e._gsTweenID]=!0),o)},r.render=function(t,e,i){var s,n,r,a,o=this._time,l=this._duration,h=this._rawPrevTime;if(t>=l)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(s=!0,n="onComplete"),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0===t||0>h||h===_)&&h!==t&&(i=!0,h>_&&(n="onReverseComplete")),this._rawPrevTime=a=!e||t||h===t?t:_);else if(1e-7>t)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==o||0===l&&h>0&&h!==_)&&(n="onReverseComplete",s=this._reversed),0>t?(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(h>=0&&(i=!0),this._rawPrevTime=a=!e||t||h===t?t:_)):this._initted||(i=!0);else if(this._totalTime=this._time=t,this._easeType){var u=t/l,f=this._easeType,m=this._easePower;(1===f||3===f&&u>=.5)&&(u=1-u),3===f&&(u*=2),1===m?u*=u:2===m?u*=u*u:3===m?u*=u*u*u:4===m&&(u*=u*u*u*u),this.ratio=1===f?1-u:2===f?u:.5>t/l?u/2:1-u/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==o||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=o,this._rawPrevTime=h,O.push(this),this._lazy=t,void 0;this._time&&!s?this.ratio=this._ease.getRatio(this._time/l):s&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==o&&t>=0&&(this._active=!0),0===o&&(this._startAt&&(t>=0?this._startAt.render(t,e,i):n||(n="_dummyGS")),this.vars.onStart&&(0!==this._time||0===l)&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||T))),r=this._firstPT;r;)r.f?r.t[r.p](r.c*this.ratio+r.s):r.t[r.p]=r.c*this.ratio+r.s,r=r._next;this._onUpdate&&(0>t&&this._startAt&&this._startTime&&this._startAt.render(t,e,i),e||(this._time!==o||s)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||T)),n&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,e,i),s&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[n]&&this.vars[n].apply(this.vars[n+"Scope"]||this,this.vars[n+"Params"]||T),0===l&&this._rawPrevTime===_&&a!==_&&(this._rawPrevTime=0))}},r._kill=function(t,e){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:I.selector(e)||e;var i,s,n,r,a,o,l,h;if((m(e)||E(e))&&"number"!=typeof e[0])for(i=e.length;--i>-1;)this._kill(t,e[i])&&(o=!0);else{if(this._targets){for(i=this._targets.length;--i>-1;)if(e===this._targets[i]){a=this._propLookup[i]||{},this._overwrittenProps=this._overwrittenProps||[],s=this._overwrittenProps[i]=t?this._overwrittenProps[i]||{}:"all";break}}else{if(e!==this.target)return!1;a=this._propLookup,s=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(a){l=t||a,h=t!==s&&"all"!==s&&t!==a&&("object"!=typeof t||!t._tempKill);for(n in l)(r=a[n])&&(r.pg&&r.t._kill(l)&&(o=!0),r.pg&&0!==r.t._overwriteProps.length||(r._prev?r._prev._next=r._next:r===this._firstPT&&(this._firstPT=r._next),r._next&&(r._next._prev=r._prev),r._next=r._prev=null),delete a[n]),h&&(s[n]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return o},r.invalidate=function(){return this._notifyPluginsOfEnabled&&I._onPluginEvent("_onDisable",this),this._firstPT=null,this._overwrittenProps=null,this._onUpdate=null,this._startAt=null,this._initted=this._active=this._notifyPluginsOfEnabled=this._lazy=!1,this._propLookup=this._targets?{}:[],this},r._enabled=function(t,e){if(o||a.wake(),t&&this._gc){var i,s=this._targets;if(s)for(i=s.length;--i>-1;)this._siblings[i]=$(s[i],this,!0);else this._siblings=$(this.target,this,!0)}return C.prototype._enabled.call(this,t,e),this._notifyPluginsOfEnabled&&this._firstPT?I._onPluginEvent(t?"_onEnable":"_onDisable",this):!1},I.to=function(t,e,i){return new I(t,e,i)},I.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new I(t,e,i)},I.fromTo=function(t,e,i,s){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,new I(t,e,s)},I.delayedCall=function(t,e,i,s,n){return new I(e,0,{delay:t,onComplete:e,onCompleteParams:i,onCompleteScope:s,onReverseComplete:e,onReverseCompleteParams:i,onReverseCompleteScope:s,immediateRender:!1,useFrames:n,overwrite:0})},I.set=function(t,e){return new I(t,0,e)},I.getTweensOf=function(t,e){if(null==t)return[];t="string"!=typeof t?t:I.selector(t)||t;var i,s,n,r;if((m(t)||E(t))&&"number"!=typeof t[0]){for(i=t.length,s=[];--i>-1;)s=s.concat(I.getTweensOf(t[i],e));for(i=s.length;--i>-1;)for(r=s[i],n=i;--n>-1;)r===s[n]&&s.splice(i,1)}else for(s=$(t).concat(),i=s.length;--i>-1;)(s[i]._gc||e&&!s[i].isActive())&&s.splice(i,1);return s},I.killTweensOf=I.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var s=I.getTweensOf(t,e),n=s.length;--n>-1;)s[n]._kill(i,t)};var J=v("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=J.prototype},!0);if(r=J.prototype,J.version="1.10.1",J.API=2,r._firstPT=null,r._addTween=function(t,e,i,s,n,r){var a,o;return null!=s&&(a="number"==typeof s||"="!==s.charAt(1)?Number(s)-i:parseInt(s.charAt(0)+"1",10)*Number(s.substr(2)))?(this._firstPT=o={_next:this._firstPT,t:t,p:e,s:i,c:a,f:"function"==typeof t[e],n:n||e,r:r},o._next&&(o._next._prev=o),o):void 0},r.setRatio=function(t){for(var e,i=this._firstPT,s=1e-6;i;)e=i.c*t+i.s,i.r?e=Math.round(e):s>e&&e>-s&&(e=0),i.f?i.t[i.p](e):i.t[i.p]=e,i=i._next},r._kill=function(t){var e,i=this._overwriteProps,s=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;s;)null!=t[s.n]&&(s._next&&(s._next._prev=s._prev),s._prev?(s._prev._next=s._next,s._prev=null):this._firstPT===s&&(this._firstPT=s._next)),s=s._next;return!1},r._roundProps=function(t,e){for(var i=this._firstPT;i;)(t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&(i.r=e),i=i._next},I._onPluginEvent=function(t,e){var i,s,n,r,a,o=e._firstPT;if("_onInitAllProps"===t){for(;o;){for(a=o._next,s=n;s&&s.pr>o.pr;)s=s._next;(o._prev=s?s._prev:r)?o._prev._next=o:n=o,(o._next=s)?s._prev=o:r=o,o=a}o=e._firstPT=n}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},J.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===J.API&&(U[(new t[e])._propName]=t[e]);return!0},d.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,s=t.priority||0,n=t.overwriteProps,r={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},a=v("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){J.call(this,i,s),this._overwriteProps=n||[]},t.global===!0),o=a.prototype=new J(i);o.constructor=a,a.API=t.API;for(e in r)"function"==typeof t[e]&&(o[r[e]]=t[e]);return a.version=t.version,J.activate([a]),a},s=t._gsQueue){for(n=0;s.length>n;n++)s[n]();for(r in p)p[r].func||t.console.log("GSAP encountered missing dependency: com.greensock."+r)}o=!1}})("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenLite"); var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("easing.Back",["easing.Ease"],function(t){var e,i,s,r=_gsScope.GreenSockGlobals||_gsScope,n=r.com.greensock,a=2*Math.PI,o=Math.PI/2,h=n._class,l=function(e,i){var s=h("easing."+e,function(){},!0),r=s.prototype=new t;return r.constructor=s,r.getRatio=i,s},_=t.register||function(){},u=function(t,e,i,s){var r=h("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new s},!0);return _(r,t),r},c=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},p=function(e,i){var s=h("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),r=s.prototype=new t;return r.constructor=s,r.getRatio=i,r.config=function(t){return new s(t)},s},f=u("Back",p("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),p("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),p("BackInOut",function(t){return 1>(t*=2)?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),m=h("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=i===!0},!0),d=m.prototype=new t;return d.constructor=m,d.getRatio=function(t){var e=t+(.5-t)*this._p;return this._p1>t?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},m.ease=new m(.7,.7),d.config=m.config=function(t,e,i){return new m(t,e,i)},e=h("easing.SteppedEase",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0),d=e.prototype=new t,d.constructor=e,d.getRatio=function(t){return 0>t?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},d.config=e.config=function(t){return new e(t)},i=h("easing.RoughEase",function(e){e=e||{};for(var i,s,r,n,a,o,h=e.taper||"none",l=[],_=0,u=0|(e.points||20),p=u,f=e.randomize!==!1,m=e.clamp===!0,d=e.template instanceof t?e.template:null,g="number"==typeof e.strength?.4*e.strength:.4;--p>-1;)i=f?Math.random():1/u*p,s=d?d.getRatio(i):i,"none"===h?r=g:"out"===h?(n=1-i,r=n*n*g):"in"===h?r=i*i*g:.5>i?(n=2*i,r=.5*n*n*g):(n=2*(1-i),r=.5*n*n*g),f?s+=Math.random()*r-.5*r:p%2?s+=.5*r:s-=.5*r,m&&(s>1?s=1:0>s&&(s=0)),l[_++]={x:i,y:s};for(l.sort(function(t,e){return t.x-e.x}),o=new c(1,1,null),p=u;--p>-1;)a=l[p],o=new c(a.x,a.y,o);this._prev=new c(0,0,0!==o.t?o:o.next)},!0),d=i.prototype=new t,d.constructor=i,d.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&e.t>=t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},d.config=function(t){return new i(t)},i.ease=new i,u("Bounce",l("BounceOut",function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),l("BounceIn",function(t){return 1/2.75>(t=1-t)?1-7.5625*t*t:2/2.75>t?1-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),l("BounceInOut",function(t){var e=.5>t;return t=e?1-2*t:2*t-1,t=1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),u("Circ",l("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),l("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),l("CircInOut",function(t){return 1>(t*=2)?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),s=function(e,i,s){var r=h("easing."+e,function(t,e){this._p1=t||1,this._p2=e||s,this._p3=this._p2/a*(Math.asin(1/this._p1)||0)},!0),n=r.prototype=new t;return n.constructor=r,n.getRatio=i,n.config=function(t,e){return new r(t,e)},r},u("Elastic",s("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*a/this._p2)+1},.3),s("ElasticIn",function(t){return-(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*a/this._p2))},.3),s("ElasticInOut",function(t){return 1>(t*=2)?-.5*this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*a/this._p2):.5*this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*a/this._p2)+1},.45)),u("Expo",l("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),l("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),l("ExpoInOut",function(t){return 1>(t*=2)?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),u("Sine",l("SineOut",function(t){return Math.sin(t*o)}),l("SineIn",function(t){return-Math.cos(t*o)+1}),l("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),h("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),_(r.SlowMo,"SlowMo","ease,"),_(i,"RoughEase","ease,"),_(e,"SteppedEase","ease,"),f},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(); !function(){for(var n=0,i=["ms","moz","webkit","o"],e=0;e