!function(t,e){"use strict";"function"!=typeof t.CustomEvent&&(t.CustomEvent=function(t,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var a=e.createEvent("CustomEvent");return a.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),a},t.CustomEvent.prototype=t.Event.prototype),e.addEventListener("touchstart",function(t){if("true"===t.target.getAttribute("data-swipe-ignore"))return;s=t.target,r=Date.now(),n=t.touches[0].clientX,a=t.touches[0].clientY,u=0,i=0},!1),e.addEventListener("touchmove",function(t){if(!n||!a)return;var e=t.touches[0].clientX,r=t.touches[0].clientY;u=n-e,i=a-r},!1),e.addEventListener("touchend",function(t){if(s!==t.target)return;var e=parseInt(l(s,"data-swipe-threshold","20"),10),o=parseInt(l(s,"data-swipe-timeout","500"),10),c=Date.now()-r,d="",p=t.changedTouches||t.touches||[];Math.abs(u)>Math.abs(i)?Math.abs(u)>e&&c0?"swiped-left":"swiped-right"):Math.abs(i)>e&&c0?"swiped-up":"swiped-down");if(""!==d){var b={dir:d.replace(/swiped-/,""),xStart:parseInt(n,10),xEnd:parseInt((p[0]||{}).clientX||-1,10),yStart:parseInt(a,10),yEnd:parseInt((p[0]||{}).clientY||-1,10)};s.dispatchEvent(new CustomEvent("swiped",{bubbles:!0,cancelable:!0,detail:b})),s.dispatchEvent(new CustomEvent(d,{bubbles:!0,cancelable:!0,detail:b}))}n=null,a=null,r=null},!1);var n=null,a=null,u=null,i=null,r=null,s=null;function l(t,n,a){for(;t&&t!==e.documentElement;){var u=t.getAttribute(n);if(u)return u;t=t.parentNode}return a}}(window,document); !function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexOf(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return n!=-1&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],o=0;o")[0],h=a.each; function g(t){return null==t?t+"":"object"==typeof t?n[e.call(t)]||"object":typeof t}function m(t,e,n){var r=p[e.type]||{};return null==t?n||!e.def?null:e.def:(t=r.floor?~~t:parseFloat(t),isNaN(t)?e.def:r.mod?(t+r.mod)%r.mod:Math.min(r.max,Math.max(0,t)))}function c(r){var o=l(),i=o._rgba=[];return r=r.toLowerCase(),h(t,function(t,e){var n=e.re.exec(r),n=n&&e.parse(n),e=e.space||"rgba";if(n)return n=o[e](n),o[d[e].cache]=n[d[e].cache],i=o._rgba=n._rgba,!1}),i.length?("0,0,0,0"===i.join()&&a.extend(i,M.transparent),o):M[r]}function o(t,e,n){return 6*(n=(n+1)%1)<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}r.style.cssText="background-color:rgba(1,1,1,.5)",s.rgba=-1i.mod/2?r+=i.mod:r-o>i.mod/2&&(r-=i.mod)),c[n]=m((o-r)*s+r,e)))}),this[e](c)},blend:function(t){if(1===this._rgba[3])return this;var e=this._rgba.slice(),n=e.pop(),r=l(t)._rgba;return l(a.map(e,function(t,e){return(1-n)*r[e]+n*t}))},toRgbaString:function(){var t="rgba(",e=a.map(this._rgba,function(t,e){return null!=t?t:2").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:n.width(),height:n.height()},o=document.activeElement;try{o.id}catch(t){o=document.body}return n.wrap(t),n[0]!==o&&!u.contains(n[0],o)||u(o).trigger("focus"),t=n.parent(),"static"===n.css("position")?(t.css({position:"relative"}),n.css({position:"relative"})):(u.extend(r,{position:n.css("position"),zIndex:n.css("z-index")}),u.each(["top","left","bottom","right"],function(t,e){r[e]=n.css(e),isNaN(parseInt(r[e],10))&&(r[e]="auto")}),n.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),n.css(e),t.css(r).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!u.contains(t[0],e)||u(e).trigger("focus")),t}}),u.extend(u.effects,{version:"1.13.0",define:function(t,e,n){return n||(n=e,e="effect"),u.effects.effect[t]=n,u.effects.effect[t].mode=e,n},scaledDimensions:function(t,e,n){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var r="horizontal"!==n?(e||100)/100:1,e="vertical"!==n?(e||100)/100:1;return{height:t.height()*e,width:t.width()*r,outerHeight:t.outerHeight()*e,outerWidth:t.outerWidth()*r}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,n){var r=t.queue();1").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(j+"placeholder",e)),t.css({position:n,left:r.left,top:r.top}),e},removePlaceholder:function(t){var e=j+"placeholder",n=t.data(e);n&&(n.remove(),t.removeData(e))},cleanUp:function(t){u.effects.restoreStyle(t),u.effects.removePlaceholder(t)},setTransition:function(r,t,o,i){return i=i||{},u.each(t,function(t,e){var n=r.cssUnit(e);0");c.appendTo("body").addClass(t.className).css({top:r.top-s,left:r.left-a,height:n.innerHeight(),width:n.innerWidth(),position:o?"fixed":"absolute"}).animate(i,t.duration,t.easing,function(){c.remove(),"function"==typeof e&&e()})}}),u.fx.step.clip=function(t){t.clipInit||(t.start=u(t.elem).cssClip(),"string"==typeof t.end&&(t.end=R(t.end,t.elem)),t.clipInit=!0),u(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},S={},u.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){S[t]=function(t){return Math.pow(t,e+2)}}),u.extend(S,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),u.each(S,function(t,e){u.easing["easeIn"+t]=e,u.easing["easeOut"+t]=function(t){return 1-e(1-t)},u.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}}),u.effects}); !function(t){var e={init:function(e){return this.each((function(){function i(){P.tick_count=S.find(".mtphr-dnt-tick").length,P.tick_count>0&&("scroll"===N.type?r():"rotate"===N.type&&m()),N.after_load.call(R,S),R.trigger("mtphr_dnt_after_load_single",[P,it]),t("body").trigger("mtphr_dnt_after_load",[R,P,it])}function n(){S.find(".mtphr-dnt-tick").each((function(){t(this).height()>et&&(et=t(this).height()),"up"!==N.scroll_direction&&"down"!==N.scroll_direction||t(this).css("height","auto")})),S.css("height",et+"px")}function r(){var e=S.find(".mtphr-dnt-tick:first");if(e.attr("style")){var i,r=e.attr("style").split("width:");rt=!(r.length>1)}it=[],S.find("img").length?S.imagesLoaded((function(){n(),S.find(".mtphr-dnt-tick").each((function(){t(this).show();var e=[{headline:t(this)}];it.push(e)})),g(),o()})):(n(),S.find(".mtphr-dnt-tick").each((function(){t(this).show();var e=[{headline:t(this)}];it.push(e)})),g(),o()),S.on({mouseenter:function(){N.scroll_pause&&s()},mouseleave:function(){N.scroll_pause&&!P.paused&&a()}}),S.find("a").on("click",(function(){N.scroll_pause&&!P.paused&&a()}))}function s(){clearTimeout(ct),cancelAnimationFrame(nt)}function a(){o()}function o(){function t(){for(var e=0;ett+N.offset?e=u(t):e>N.scroll_spacing&&d(t),e}function l(t){var e=parseFloat(it[t][0].position-N.scroll_speed*lt);return e<-(it[t][0].headline.height()+N.offset)?e=u(t):eet+N.offset?e=u(t):e>N.scroll_spacing&&d(t),e}function u(e){return P.tick_count>1&&(it[e][0].visible=!1),P.tick_count===e+1&&(R.trigger("mtphr_dnt_scroll_complete",[P,it]),t("body").trigger("mtphr_dnt_scroll_complete",[R,P,it])),"reset"}function f(t){!1===it[t][0].visible&&(P.previous_tick=parseInt(t-1),P.previous_tick<0&&(P.previous_tick=parseInt(P.tick_count-1)),P.current_tick=t,P.next_tick=parseInt(t+1),P.next_tick>=P.tick_count&&(P.next_tick=0))}function d(t){t===P.tick_count-1?N.scroll_loop&&(f(0),it[0][0].visible=!0):(f(parseInt(t+1)),it[t+1][0].visible=!0)}function h(){for(var t=0;t0&&(t-=it[i][0].width,e.css("transform","translateX("+t+"px)"),it[i][0].position=t,it[i][0].visible=!0,t-=N.scroll_spacing);break;case"up":t0&&(e.css("transform","translateY("+t+"px)"),e.stop(!0,!0).css("top",t+"px"),it[i][0].position=t,it[i][0].visible=!0,t-=N.scroll_spacing);break}}function k(){y()}function v(){clearInterval(st)}function m(){switch(S.find(".mtphr-dnt-tick").each((function(){it.push(t(this)),t(this).imagesLoaded((function(){F()}))})),F(),S.find(".mtphr-dnt-tick").show(),N.rotate_type){case"fade":T(S,it,parseInt(100*N.rotate_speed),N.rotate_ease);break;case"slide_left":Y(S,it,parseInt(100*N.rotate_speed),N.rotate_ease);break;case"slide_right":E(S,it,parseInt(100*N.rotate_speed),N.rotate_ease);break;case"slide_down":q(S,it,parseInt(100*N.rotate_speed),N.rotate_ease);break;case"slide_up":O(S,it,parseInt(100*N.rotate_speed),N.rotate_ease);break}w(0),N.auto_rotate&&k(),S.on({mouseenter:function(){N.auto_rotate&&N.rotate_pause&&!P.running&&v()},mouseleave:function(){N.auto_rotate&&N.rotate_pause&&!P.running&&!P.paused&&k()}}),S.find("a").on("click",(function(){N.auto_rotate&&N.rotate_pause&&!P.running&&!P.paused&&k()}))}function y(){v(),st=setInterval((function(){var t=parseInt(P.current_tick+1);t===P.tick_count&&(t=0),b(t)}),parseInt(1e3*N.rotate_delay))}function b(e){P.current_tick!==e&&(N.auto_rotate&&v(),P.next_tick=e,N.before_change.call(R,S),R.trigger("mtphr_dnt_before_change_single",[P,it]),t("body").trigger("mtphr_dnt_before_change",[R,P,it]),P.running=1,I(e),x(e),P.previous_tick=P.current_tick,P.current_tick=e,ot=setTimeout((function(){N.after_change.call(R,S),R.trigger("mtphr_dnt_after_change_single",[P,it]),t("body").trigger("mtphr_dnt_after_change",[R,P,it]),at=N.rotate_type,P.reverse=0,P.running=0,N.auto_rotate&&!P.paused&&y()}),parseInt(100*N.rotate_speed)))}function w(t){Z&&(Z.children("a").removeClass("active"),Z.children('a[href="'+t+'"]').addClass("active"))}function x(e){switch(w(e),at){case"fade":A(S,t(it[e]),t(it[P.current_tick]),parseInt(100*N.rotate_speed),N.rotate_ease);break;case"slide_left":C(S,t(it[e]),t(it[P.current_tick]),parseInt(100*N.rotate_speed),N.rotate_ease);break;case"slide_right":L(S,t(it[e]),t(it[P.current_tick]),parseInt(100*N.rotate_speed),N.rotate_ease);break;case"slide_down":z(S,t(it[e]),t(it[P.current_tick]),parseInt(100*N.rotate_speed),N.rotate_ease);break;case"slide_up":M(S,t(it[e]),t(it[P.current_tick]),parseInt(100*N.rotate_speed),N.rotate_ease);break}}function I(e){switch(at){case"fade":X(S,t(it[P.current_tick]),t(it[e]),parseInt(100*N.rotate_speed),N.rotate_ease);break;case"slide_left":D(S,t(it[P.current_tick]),t(it[e]),parseInt(100*N.rotate_speed),N.rotate_ease);break;case"slide_right":W(S,t(it[P.current_tick]),t(it[e]),parseInt(100*N.rotate_speed),N.rotate_ease);break;case"slide_down":j(S,t(it[P.current_tick]),t(it[e]),parseInt(100*N.rotate_speed),N.rotate_ease);break;case"slide_up":Q(S,t(it[P.current_tick]),t(it[e]),parseInt(100*N.rotate_speed),N.rotate_ease);break}}function F(){for(var e=0;e=0&&("scroll"===N.type?h():"rotate"===N.type&&F())})),R.on("mtphr_dnt_replace_ticks",(function(e,n,r){clearTimeout(ct),cancelAnimationFrame(nt),R.find(".mtphr-dnt-tick").remove(),n.each((function(){S.append(t(this))})),setTimeout((function(){i()}),r)})),0===R.width()){var _t=!0;setTimeout((function t(){R.width()>10&&(_t=!1,tt=S.outerWidth(!0),i()),_t&&setTimeout(t,100)}),100)}else i()}))}};t.fn.ditty_news_ticker=function(t){if(e[t])return e[t].apply(this,Array.prototype.slice.call(arguments,1));if("object"!=typeof t&&t)throw new Error("Method "+t+" does not exist in ditty_news_ticker");return e.init.apply(this,arguments)}}(jQuery); window.addComment=function(v){var I,C,h,E=v.document,b={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},e=v.MutationObserver||v.WebKitMutationObserver||v.MozMutationObserver,r="querySelector"in E&&"addEventListener"in v,n=!!E.documentElement.dataset;function t(){d(),e&&new e(o).observe(E.body,{childList:!0,subtree:!0})}function d(e){if(r&&(I=g(b.cancelReplyId),C=g(b.commentFormId),I)){I.addEventListener("touchstart",l),I.addEventListener("click",l);function t(e){if((e.metaKey||e.ctrlKey)&&13===e.keyCode)return C.removeEventListener("keydown",t),e.preventDefault(),C.submit.click(),!1}C&&C.addEventListener("keydown",t);for(var n,d=function(e){var t=b.commentReplyClass;e&&e.childNodes||(e=E);t=E.getElementsByClassName?e.getElementsByClassName(t):e.querySelectorAll("."+t);return t}(e),o=0,i=d.length;o a'})}else{t('body').avia_scrollspy('refresh')}};if(t.fn.avia_smoothscroll)t('a[href*="#"]',e).avia_smoothscroll(e);r(e);n(e);s(e);if(t.fn.avia_html5_activation&&t.fn.mediaelementplayer)t('.avia_video, .avia_audio',e).avia_html5_activation({ratio:'16:9'})};t.avia_utilities.log=function(t,e,i){if(typeof console=='undefined'){return};if(typeof e=='undefined'){e='log'};e='AVIA-'+e.toUpperCase();console.log('['+e+'] '+t);if(typeof i!='undefined')console.log(i)};function i(){var n=t(window),i=t('html').is('.html_header_sidebar')?'#main':'#header',a=t(i),s=a.parents('div:eq(0)'),r=t(i+' .container:first'),e='',o=function(){var i='',o=Math.round(r.width()),n=Math.round(a.width()),l=Math.round(s.width());i+=' #header .three.units{width:'+(o*0.25)+'px;}';i+=' #header .six.units{width:'+(o*0.50)+'px;}';i+=' #header .nine.units{width:'+(o*0.75)+'px;}';i+=' #header .twelve.units{width:'+(o)+'px;}';i+=' .av-framed-box .av-layout-tab-inner .container{width:'+(l)+'px;}';i+=' .html_header_sidebar .av-layout-tab-inner .container{width:'+(n)+'px;}';i+=' .boxed .av-layout-tab-inner .container{width:'+(n)+'px;}';i+=' .av-framed-box#top .av-submenu-container{width:'+(l)+'px;}';try{e.text(i)}catch(c){e.remove();e=t('').appendTo('head:first')}};if(t('.avia_mega_div').length>0||t('.av-layout-tab-inner').length>0||t('.av-submenu-container').length>0){e=t('').appendTo('head:first');n.on('debouncedresize',o);o()}};function a(){var e=t('.sidebar_shadow#top #main .sidebar'),i=t('.sidebar_shadow .content');if(e.height()>=i.height()){e.addClass('av-enable-shadow')}else{i.addClass('av-enable-shadow')}};function e(e,a){var i=this,s=t.proxy(i.process,i),o=t.proxy(i.refresh,i),r=t(e).is('body')?t(window):t(e),n;i.$body=t('body');i.$win=t(window);i.options=t.extend({},t.fn.avia_scrollspy.defaults,a);i.selector=(i.options.target||((n=t(e).attr('href'))&&n.replace(/.*(?=#[^\s]+$)/,''))||'');i.activation_true=!1;if(i.$body.find(i.selector+'[href*=\'#\']').length){i.$scrollElement=r.on('scroll.scroll-spy.data-api',s);i.$win.on('av-height-change',o);i.$body.on('av_resize_finished',o);i.activation_true=!0;i.checkFirst();setTimeout(function(){i.refresh();i.process()},100)}};e.prototype={constructor:e,checkFirst:function(){var t=window.location.href.split('#')[0],e=this.$body.find(this.selector+'[href=\''+t+'\']').attr('href',t+'#top')},refresh:function(){if(!this.activation_true)return;var e=this,i;this.offsets=t([]);this.targets=t([]);i=this.$body.find(this.selector).map(function(){var o=t(this),n=o.data('target')||o.attr('href'),i=this.hash,i=i.replace(/\//g,''),a=/^#\w/.test(i)&&t(i);return(a&&a.length&&[[a.position().top+(!t.isWindow(e.$scrollElement.get(0))&&e.$scrollElement.scrollTop()),n]])||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]);e.targets.push(this[1])})},process:function(){if(!this.offsets)return;if(isNaN(this.options.offset))this.options.offset=0;var i=this.$scrollElement.scrollTop()+this.options.offset,n=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,s=n-this.$scrollElement.height(),e=this.offsets,a=this.targets,o=this.activeTarget,t;if(i>=s){return o!=(t=a.last()[0])&&this.activate(t)};for(t=e.length;t--;){o!=a[t]&&i>=e[t]&&(!e[t+1]||i<=e[t+1])&&this.activate(a[t])}},activate:function(e){var i,a;this.activeTarget=e;t(this.selector).parent('.'+this.options.applyClass).removeClass(this.options.applyClass);a=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]';i=t(a).parent('li').addClass(this.options.applyClass);if(i.parent('.sub-menu').length){i=i.closest('li.dropdown_ul_available').addClass(this.options.applyClass)};i.trigger('activate')}};t.fn.avia_scrollspy=function(i){return this.each(function(){var o=t(this),a=o.data('scrollspy'),n=typeof i=='object'&&i;if(!a)o.data('scrollspy',(a=new e(this,n)));if(typeof i=='string')a[i]()})};t.fn.avia_scrollspy.Constructor=e;t.fn.avia_scrollspy.calc_offset=function(){var e=(parseInt(t('.html_header_sticky #main').data('scroll-offset'),10))||0,i=(t('.html_header_sticky:not(.html_top_nav_header) #header_main_alternate').outerHeight())||0,a=(t('.html_header_sticky.html_header_unstick_top_disabled #header_meta').outerHeight())||0,o=1,n=parseInt(t('html').css('margin-top'),10)||0,s=parseInt(t('.av-frame-top ').outerHeight(),10)||0;return e+i+a+o+n+s};t.fn.avia_scrollspy.defaults={offset:t.fn.avia_scrollspy.calc_offset(),applyClass:'current-menu-item'};function o(e){var i={},s=function(t){t=t.toLowerCase();var e=/(edge)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(chrome)[ \/]([\w.]+)/.exec(t)||/(iemobile)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf('trident')>=0&&/(rv)(?::|)([\w.]+)/.exec(t)||t.indexOf('compatible')<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:e[5]||e[3]||e[1]||'',version:e[2]||e[4]||'0',versionNumber:e[4]||e[2]||'0'}};var o=s(navigator.userAgent);if(o.browser){i.browser=o.browser;i[o.browser]=!0;i.version=o.version};if(i.chrome){i.webkit=!0} else if(i.webkit){i.safari=!0};if(typeof(i)!=='undefined'){var a='',n=i.version?parseInt(i.version):'';if(i.msie||i.rv||i.iemobile){a+='avia-msie'} else if(i.webkit){a+='avia-webkit'} else if(i.mozilla){a+='avia-mozilla'};if(i.version)a+=' '+a+'-'+n+' ';if(i.browser)a+=' avia-'+i.browser+' avia-'+i.browser+'-'+n+' '};if(e)t(e).addClass(a);return a};t.fn.avia_html5_activation=function(e){var i={ratio:'16:9'};var e=t.extend(i,e),a=t.avia_utilities.isMobile;this.each(function(){var e=t(this),a='#'+e.attr('id'),i=e.attr('poster');e.mediaelementplayer({defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,audioWidth:400,audioHeight:30,startVolume:0.8,loop:!1,enableAutosize:!1,features:['playpause','progress','current','duration','tracks','volume'],alwaysShowControls:!1,iPadUseNativeControls:!1,iPhoneUseNativeControls:!1,AndroidUseNativeControls:!1,alwaysShowHours:!1,showTimecodeFrameCount:!1,framesPerSecond:25,enableKeyboard:!0,pauseOtherPlayers:!1,poster:i,success:function(i,a,o){t.AviaVideoAPI.players[e.attr('id').replace(/_html5/,'')]=o;setTimeout(function(){if(i.pluginType=='flash'){i.addEventListener('canplay',function(){e.trigger('av-mediajs-loaded')},!1)}else{e.trigger('av-mediajs-loaded').addClass('av-mediajs-loaded')};i.addEventListener('ended',function(){e.trigger('av-mediajs-ended')},!1);var a=document.getElementById(t(i).attr('id')+'_html5');if(a&&a!==i){i.addEventListener('ended',function(){t(a).trigger('av-mediajs-ended')})}},10)},error:function(){},keyActions:[]})})};function n(e){if(t.avia_utilities.isMobile)return;if(t('body').hasClass('av-disable-avia-hover-effect')){return};var o='',a=t.avia_utilities.supports('transition');if(e=='body'){var i=t('#main a img').parents('a').not('.noLightbox, .noLightbox a, .avia-gallery-thumb a, .ls-wp-container a, .noHover, .noHover a, .av-logo-container .logo a').add('#main .avia-hover-fx')}else{var i=t('a img',e).parents('a').not('.noLightbox, .noLightbox a, .avia-gallery-thumb a, .ls-wp-container a, .noHover, .noHover a, .av-logo-container .logo a').add('.avia-hover-fx',e)};i.each(function(e){var o=t(this),r=o.find('img:first');if(r.hasClass('alignleft'))o.addClass('alignleft').css({float:'left',margin:0,padding:0});if(r.hasClass('alignright'))o.addClass('alignright').css({float:'right',margin:0,padding:0});if(r.hasClass('aligncenter'))o.addClass('aligncenter').css({float:'none','text-align':'center',margin:0,padding:0});if(r.hasClass('alignnone')){o.addClass('alignnone').css({margin:0,padding:0});if(!o.css('display')||o.css('display')=='inline'){o.css({display:'inline-block'})}};if(!o.css('position')||o.css('position')=='static'){o.css({position:'relative',overflow:'hidden'})};var l=o.attr('href'),n='overlay-type-video',h=o.data('opacity')||0.7,c=5,s=o.find('.image-overlay');if(l){if(l.match(/(jpg|gif|jpeg|png|tif)/))n='overlay-type-image';if(!l.match(/(jpg|gif|jpeg|png|\.tif|\.mov|\.swf|vimeo\.com|youtube\.com)/))n='overlay-type-extern'};if(!s.length){s=t('').appendTo(o)};o.on('mouseenter',function(e){var i=o.find('img:first'),r=i.get(0),l=i.outerHeight(),f=i.outerWidth(),d=i.position(),p=o.css('display'),s=o.find('.image-overlay');if(l>100){if(!s.length){s=t('').appendTo(o)};if(o.height()==0){o.addClass(r.className);r.className=''};if(!p||p=='inline'){o.css({display:'block'})};s.css({left:(d.left-c)+parseInt(i.css('margin-left'),10),top:d.top+parseInt(i.css('margin-top'),10)}).css({overflow:'hidden',display:'block','height':l,'width':(f+(2*c))});if(a===!1)s.stop().animate({opacity:h},400)}else{s.css({display:'none'})}}).on('mouseleave',i,function(){if(s.length){if(a===!1)s.stop().animate({opacity:0},400)}})})}(function(t){t.fn.avia_smoothscroll=function(e){if(!this.length)return;var o=t(window),p=t('#header'),f=t('.html_header_top.html_header_sticky #main').not('.page-template-template-blank-php #main'),u=t('.html_header_top.html_header_unstick_top_disabled #header_meta'),v=t('.html_header_top:not(.html_top_nav_header) #header_main_alternate'),m=t('.html_header_top.html_top_nav_header'),l=t('.html_header_top.html_header_shrinking').length,c=t('.av-frame-top'),i=0,h=t.avia_utilities.isMobile,a=t('.sticky_placeholder:first'),d=function(){if(p.css('position')=='fixed'){var e=parseInt(f.data('scroll-offset'),10)||0,a=parseInt(u.outerHeight(),10)||0,o=parseInt(v.outerHeight(),10)||0;if(e>0&&l){e=(e/2)+a+o}else{e=e+a+o};e+=parseInt(t('html').css('margin-top'),10);i=e}else{i=parseInt(t('html').css('margin-top'),10)};if(c.length){i+=c.height()};if(m.length){i=t('.html_header_sticky #header_main_alternate').height()+parseInt(t('html').css('margin-top'),10)};if(h){i=0}};if(h)l=!1;d();o.on('debouncedresize av-height-change',d);var n=window.location.hash.replace(/\//g,'');if(i>0&&n&&e=='body'&&n.charAt(1)!='!'&&n.indexOf('=')===-1){var s=t(n),r=0;if(s.length){o.on('scroll.avia_first_scroll',function(){setTimeout(function(){if(a.length&&s.offset().top>a.offset().top){r=a.outerHeight()-3};o.off('scroll.avia_first_scroll').scrollTop(s.offset().top-i-r)},10)})}};return this.each(function(){t(this).click(function(e){var n=this.hash.replace(/\//g,''),c=t(this),f=c.data();if(n!=''&&n!='#'&&n!='#prev'&&n!='#next'&&!c.is('.comment-reply-link, #cancel-comment-reply-link, .no-scroll')){var s='',p='';if('#next-section'==n){p=n;s=c.parents('.container_wrap:eq(0)').nextAll('.container_wrap:eq(0)');n='#'+s.attr('id')}else{s=t(this.hash.replace(/\//g,''))};if(s.length){var h=o.scrollTop(),d=s.offset().top,r=d-i,l=window.location.hash,l=l.replace(/\//g,''),u=window.location.href.replace(l,''),v=this,m=f.duration||1200,g=f.easing||'easeInOutQuint';if(a.length&&d>a.offset().top){r-=a.outerHeight()-3};if(u+n==v||p){if(h!=r){if(!(h==0&&r<=0)){o.trigger('avia_smooth_scroll_start');t('html:not(:animated),body:not(:animated)').animate({scrollTop:r},m,g,function(){if(window.history.replaceState)window.history.replaceState('','',n)})}};e.preventDefault()}}}})})}})(jQuery);function s(t){var e=jQuery('iframe[src*="youtube.com"]:not(.av_youtube_frame)',t),i=jQuery('iframe[src*="youtube.com"]:not(.av_youtube_frame) object, iframe[src*="youtube.com"]:not(.av_youtube_frame) embed',t).attr('wmode','opaque');e.each(function(){var e=jQuery(this),t=e.attr('src');if(t){if(t.indexOf('?')!==-1){t+='&wmode=opaque&rel=0'}else{t+='?wmode=opaque&rel=0'};e.attr('src',t)}})};function r(t){if(!t)t=document;var a=jQuery(window),e=jQuery('.avia-iframe-wrap iframe:not(.avia-slideshow iframe):not(iframe.no_resize):not(.avia-video iframe)',t),i=function(){e.each(function(){var e=jQuery(this),i=e.parent(),t=56.25;if(this.width&&this.height){t=(100/this.width)*this.height;i.css({'padding-bottom':t+'%'})}})};i()};function l(){var i=t(window),o=!1,e=t('#scroll-top-link'),a=function(){var t=i.scrollTop();if(t<500){e.removeClass('avia_pop_class')} else if(!e.is('.avia_pop_class')){e.addClass('avia_pop_class')}};i.on('scroll',function(){window.requestAnimationFrame(a)});a()};function c(){var u=t('#header'),c=t('#main .av-logo-container'),v=t('#avia-menu'),s=t('.av-burger-menu-main a'),n=t('html').eq(0),i=t('
'),m=t('
').appendTo(i),g=t('
').appendTo(m),k=t('
').appendTo(i),r=!1,h={},y=t('.av-logo-container .inner-container'),x=y.find('.main_menu'),d=n.is('.html_av-submenu-display-click.html_av-submenu-clone, .html_av-submenu-display-hover.html_av-submenu-clone'),w=!1,T=0;var f=t('#avia_alternate_menu');if(f.length>0){v=f};var p=function(){if(t.avia_utilities.isMobile){m.outerHeight(window.innerHeight)}},l=function(e,a){if(!e)return;var p,r,n,c,h,f,u,i,o;e.each(function(){n=t(this);c=n.find(' > .sub-menu > li');if(c.length==0){c=n.find(' > .children > li')};h=n.find('.avia_mega_div > .sub-menu > li.menu-item');var e=n.find('>a'),p=!0;if(e.length){if(e.get(0).hash=='#'||'undefined'==typeof e.attr('href')||e.attr('href')=='#'){if(c.length>0||h.length>0){p=!1}}};r=e.clone(p).attr('style','');if('undefined'==typeof e.attr('href')){r.attr('href','#')};i=t('
  • ').append(r);var s=[];if('undefined'!=typeof n.attr('class')){s=n.attr('class').split(/\s+/);t.each(s,function(t,e){if((e.indexOf('menu-item')!=0)&&(e.indexOf('page-item')<0)&&(e.indexOf('page_item')!=0)&&(e.indexOf('dropdown_ul')<0)){i.addClass(e)};return!0})};if('undefined'!=typeof n.attr('id')&&''!=n.attr('id')){i.addClass(n.attr('id'))}else{t.each(s,function(t,e){if(e.indexOf('page-item-')>=0){i.addClass(e);return!1}})};a.append(i);if(c.length){o=t('