(function($) {"use strict";$.fn.layer_slider_height_helper=function(options) {return this.each(function() {var container=$(this),first_div=container.find('>div').first(),timeout=false,counter=0,reset_size=function() {if(first_div.height()>0||counter>5) {container.height('auto');} else {timeout=setTimeout(reset_size,500);counter++;}};if(!first_div.length) {return;} timeout=setTimeout(reset_size,0);});};}(jQuery));;(function($) {"use strict";$.fn.avia_sc_tab_section=function() {var win=$(window),browserPrefix=$.avia_utilities.supports('transition'),cssActive=this.browserPrefix!==false?true:false,isMobile=$.avia_utilities.isMobile,isTouchDevice=$.avia_utilities.isTouchDevice,mobile_no_animation=$('body').hasClass('avia-mobile-no-animations'),transform3d=document.documentElement.className.indexOf('avia_transform3d')!==-1?true:false,transition={},animations=['avia_animate_when_visible','avia_animate_when_almost_visible','av-animated-generic','av-animated-when-visible','av-animated-when-almost-visible','av-animated-when-visible-95'];return this.each(function() {var container=$(this),tabs=container.find('.av-section-tab-title'),tab_outer=container.find('.av-tab-section-outer-container'),tab_wrap=container.find('.av-tab-section-tab-title-container'),tab_nav=container.find('.av_tab_navigation'),arrows_wrap=container.find('.av-tabsection-arrow'),arrows=arrows_wrap.find('.av-tab-section-slide'),slides_wrap=container.find('.av-slide-section-container-wrap'),slide_arrows_wrap=container.find('.av-tabsection-slides-arrow'),slide_arrows=slide_arrows_wrap.find('.av-tab-section-slide-content'),slide_dots_wrap=container.find('.av-tabsection-slides-dots'),slide_dots=slide_dots_wrap.find('.goto-slide'),content_wrap=container.find('.av-tab-section-inner-container'),single_tabs=container.find('.av-animation-delay-container'),layout_tab_wrap=container.find('.av-layout-tab'),inner_content=container.find('.av-layout-tab-inner'),flexible=container.is('.av-tab-content-auto'),minimumBrowserHeight=container.hasClass('av-minimum-height'),current_content=null,current_tab_id='1',current_iTab_id=1,min_width=0,transition_action='none',slideshowOptions={animation:'av-tab-slide-transition',autoplay:false,loop_autoplay:'once',interval:5,loop_manual:'manual-endless',autoplay_stopper:false,noNavigation:false},slideshowData=tab_outer.data('slideshow-data'),deepLinksToTabs={},timeoutIDAutoplay=null;if('undefined'!=typeof slideshowData) {slideshowOptions=$.extend({},slideshowOptions,slideshowData);} layout_tab_wrap.each(function() {var tab=$(this),link=tab.data('av-deeplink-tabs'),id=tab.data('av-tab-section-content');if(link) {deepLinksToTabs[link.toLowerCase()]=id;}});current_tab_id=container.find('.av-active-tab-title').data('av-tab-section-title');current_tab_id='undefined'!=typeof current_tab_id?current_tab_id:'1';current_iTab_id=parseInt(current_tab_id,10);current_content=container.find('[data-av-tab-section-content="'+current_tab_id+'"]');current_content.addClass('__av_init_open av-active-tab-content');if('av-tab-slide-transition'==slideshowOptions.animation) {transition_action='slide_sidewards';} else if('av-tab-slide-up-transition'==slideshowOptions.animation) {transition_action='slide_up';} else if('av-tab-fade-transition'==slideshowOptions.animation) {transition_action='fade';} if('slide_up'==transition_action) {$.each(animations,function(index,value) {inner_content.find('.'+value).addClass('avia_start_animation_when_active');});} var change_tab=function(e,prevent_hash) {e.preventDefault();if(container.hasClass('av-is-slideshow')&&e.originalEvent!==undefined) {return;} var current_tab=$(e.currentTarget),tab_nr=current_tab.data('av-tab-section-title'),iTab_nr=parseInt(tab_nr,10),prev_content=current_content;tabs.removeClass('av-active-tab-title');prev_content.removeClass('av-active-tab-content');current_tab.removeClass('no-scroll');current_content=container.find('[data-av-tab-section-content="'+tab_nr+'"]');current_tab_id=tab_nr;current_iTab_id=iTab_nr;current_tab.addClass('av-active-tab-title');current_content.addClass('av-active-tab-content');var new_pos=((iTab_nr-1)*-100);if($('body').hasClass('rtl')) {new_pos=((iTab_nr-1)*100);} set_slide_height();if(['none','slide_sidewards'].indexOf(transition_action)>=0) {if(cssActive) {new_pos=new_pos/tabs.length;transition['transform']=transform3d?"translate3d("+new_pos+"%, 0, 0)":"translate("+new_pos+"%,0)";transition['left']="0%";content_wrap.css(transition);} else {content_wrap.css('left',new_pos+"%");}} else if('slide_up'==transition_action) {layout_tab_wrap.css('opacity',1);if(cssActive) {var top=current_content.data('slide-top');if('undefined'==typeof top) {top=0;} transition['transform']=transform3d?"translate3d(0, -"+top+"px, 0)":"translate(0, -"+top+"px ,0)";transition['left']="0";content_wrap.css(transition);} else {content_wrap.css('top','-'+new_pos+'px');} layout_tab_wrap.filter(':not(.av-active-tab-content)').css('opacity',0);} set_tab_title_pos();set_slide_arrows_visibility(iTab_nr);set_slide_dots_visibility(iTab_nr);if(!(prevent_hash||slideshowOptions.autoplay)) {var newHash=current_tab.attr('href'),deepLink=current_content.data('av-deeplink-tabs');if('undefined'!=typeof(deepLink)&&''!=deepLink) {newHash=deepLink;} location.hash=newHash;} setTimeout(function() {current_content.trigger('avia_start_animation_if_current_slide_is_active');if(!isMobile||(isMobile&&!mobile_no_animation)) {single_tabs.not(current_content).trigger('avia_remove_animation');}},600);},set_min_width=function() {min_width=0;tabs.each(function() {min_width+=$(this).outerWidth();});tab_wrap.css('min-width',min_width);},set_slide_height=function() {var tab_wrap_height=container.hasClass('av-hide-tabs')?0:tab_wrap.height(),tab_wrap_add=tab_wrap_height?tab_wrap.outerHeight():0,min_el_height=0,cell_padding=0,same_slide_height=0,same_table_cell_height=0,calc_el_height=0;if(minimumBrowserHeight) {var css_height=container.hasClass('av-minimum-height-custom')?container.data('av_minimum_height_px'):container.css('min-height');css_height=parseInt(css_height,10);if(!isNaN(css_height)) {min_el_height=css_height;} if(!min_el_height) {minimumBrowserHeight=false;}} if(!flexible) {inner_content.css('height','');content_wrap.css('min-height','');var first=layout_tab_wrap.first();cell_padding=first.outerHeight()-first.height();layout_tab_wrap.each(function() {var content=$(this),inner=content.find('.av-layout-tab-inner');same_slide_height=Math.max(same_slide_height,inner.height());});same_table_cell_height=same_slide_height+cell_padding;calc_el_height=same_table_cell_height+tab_wrap_add;if(minimumBrowserHeight) {if(calc_el_height=0) {if(!current_content.length) {return;} if(flexible) {inner_content.height('auto');var content_height=current_content.find('.av-layout-tab-inner').height(),height=current_content.outerHeight(),outer_height=height+tab_wrap_height+100;tab_outer.css('max-height',outer_height);inner_content.height(content_height);inner_content.css('overflow','hidden');} setTimeout(function(){win.trigger('av-height-change');},600);return;} var top=0;layout_tab_wrap.each(function() {var content=$(this),inner=content.find('.av-layout-tab-inner'),layout_tab_nr=content.data('av-tab-section-content'),layout_iTab_nr=parseInt(layout_tab_nr,10),outerHeight=content.outerHeight();content.data('slide-top',top);top+=outerHeight;if(flexible&&layout_iTab_nr==current_iTab_id) {tab_outer.css('max-height',outerHeight+tab_wrap_add);inner.css('overflow','hidden');}});},set_tab_title_pos=function() {var current_tab=container.find('.av-active-tab-title'),viewport=container.width(),left_pos=(current_tab.position().left*-1)-(current_tab.outerWidth()/2)+(viewport/2);if(!$('body').hasClass('rtl')) {if(viewport>=min_width) {left_pos=0;} if(left_pos+min_width0) {left_pos=0;} tab_wrap.css('left',left_pos);var show_prev=left_pos!==0;var show_next=left_pos+min_width>viewport;set_arrows_visibility(show_prev,show_next);} else {var right_pos=0;if(viewportviewport) {if(left_pos>0) {left_pos=0;} right_pos=(left_pos+min_width-viewport)*-1;}} tab_wrap.css('left','auto');tab_wrap.css('right',right_pos);var show_prev=right_pos+min_width>viewport;var show_next=right_pos!==0;set_arrows_visibility(show_prev,show_next);}},set_arrows_visibility=function(show_prev,show_next) {if(show_prev) {arrows_wrap.addClass('av-visible-prev');} else {arrows_wrap.removeClass('av-visible-prev');} if(show_next) {arrows_wrap.addClass('av-visible-next');} else {arrows_wrap.removeClass('av-visible-next');}},set_slide_arrows_visibility=function(current_tab) {if(current_tab>1) {slide_arrows_wrap.addClass('av-visible-prev');} else {slide_arrows_wrap.removeClass('av-visible-prev');} if(current_tabtabs.length) {if('endless'!=slideshowOptions.loop_autoplay&&'manual-endless'!=slideshowOptions.loop_manual) {return;} pos=pos<=0?tabs.length:1;} clearTimeoutAutoplay();tabs.eq(pos-1).trigger('click');init_autoplay();},slide_dots_change_tab=function(e) {e.preventDefault();var clicked=$(e.currentTarget);if(clicked.hasClass('active')) {return;} var tab_nr=clicked.attr('href').replace('#',''),iTab_nr=parseInt(tab_nr,10);if(iTab_nr>tabs.length) {return;} clearTimeoutAutoplay();tabs.eq(iTab_nr-1).trigger('click');init_autoplay();},get_init_open=function() {var hash=window.location.hash?window.location.hash:'',deepHash=hash.toLowerCase().replace('#',''),open=null;if('undefined'!=typeof(deepLinksToTabs[deepHash])&&''!=deepLinksToTabs[deepHash]) {var hashID=deepLinksToTabs[deepHash];open=tabs.filter('[data-av-tab-section-title="'+hashID+'"]');} else {open=tabs.filter('[href="'+hash+'"]');} if(open.length) {if(!open.is('.active_tab')) {open.trigger('click');}} else {container.find('.av-active-tab-title').trigger('click',true);}},clearTimeoutAutoplay=function() {if(typeof timeoutIDAutoplay==='number') {clearTimeout(timeoutIDAutoplay);} timeoutIDAutoplay=null;},init_autoplay=function() {if(!container.hasClass('av-slideshow-section')) {return;} if(true!==slideshowOptions.autoplay) {tab_outer.removeClass('av-slideshow-autoplay').addClass('av-slideshow-manual');} if('undefined'==typeof slideshowOptions.loop_autoplay||'endless'!=slideshowOptions.loop_autoplay) {slideshowOptions.loop_autoplay='once';} if('undefined'==typeof slideshowOptions.interval) {slideshowOptions.interval=5;} if('undefined'==typeof slideshowOptions.autoplay||true!==slideshowOptions.autoplay) {slideshowOptions.autoplay=false;tab_outer.removeClass('av-slideshow-autoplay').addClass('av-slideshow-manual');return;} clearTimeoutAutoplay();timeoutIDAutoplay=setTimeout(function() {rotate_next_slide();},slideshowOptions.interval*1000);},rotate_next_slide=function() {var current_tab=container.find('.av-active-tab-title'),tab_nr=current_tab.data('av-tab-section-title'),iTab_nr=parseInt(tab_nr,10),stop=false,next=0;timeoutIDAutoplay=null;if('endless'==slideshowOptions.loop_autoplay) {if(!$('body').hasClass('rtl')) {next=iTab_nr1?iTab_nr-1:tabs.length;}} else {if(!$('body').hasClass('rtl')) {stop=iTab_nr==tabs.length;next=iTab_nr+1;} else {stop=iTab_nr==1;next=iTab_nr-1;} if(stop) {slideshowOptions.autoplay=false;slideshowOptions.loop_autoplay='manual';tab_outer.removeClass('av-slideshow-autoplay').addClass('av-slideshow-manual');tab_outer.removeClass('av-loop-endless').addClass('av-loop-once');return;}} tabs.eq(next-1).trigger('click');timeoutIDAutoplay=setTimeout(function() {rotate_next_slide();},slideshowOptions.interval*1000);};$.avia_utilities.preload({container:current_content,single_callback:function() {tabs.on('click',change_tab);arrows.on('click',switch_to_next_prev);slide_arrows.on('click',slide_arrows_next_prev);slide_dots.on('click',slide_dots_change_tab);if(isMobile||isTouchDevice) {tab_nav.on('click',swipe_to_next_prev);} win.on('debouncedresize',set_tab_title_pos);win.on('hashchange',get_init_open);win.on('debouncedresize av-content-el-height-changed',set_slide_height);set_min_width();set_slide_height();get_init_open();init_autoplay();}});if(isMobile||isTouchDevice) {if(!slideshowOptions.noNavigation) {content_wrap.avia_swipe_trigger({prev:'.av_prev_tab_section',next:'.av_next_tab_section'});}} set_slide_height();});};}(jQuery));;(function($) {"use strict";$.fn.avia_sc_tabs=function(options) {var defaults={heading:'.tab',content:'.tab_content',active:'active_tab',sidebar:false};var win=$(window),options=$.extend(defaults,options);return this.each(function() {var container=$(this),tab_titles=$('
').prependTo(container),tabs=$(options.heading,container),content=$(options.content,container),newtabs=false,oldtabs=false;newtabs=tabs.clone();oldtabs=tabs.addClass('fullsize-tab').attr('aria-hidden',true);tabs=newtabs;tabs.prependTo(tab_titles).each(function(i) {var tab=$(this),the_oldtab=false;if(newtabs) {the_oldtab=oldtabs.eq(i);} tab.addClass('tab_counter_'+i).on('click',function() {open_content(tab,i,the_oldtab);return false;});tab.on('keydown',function(objEvent) {if(objEvent.keyCode===13) {tab.trigger('click');}});if(newtabs) {the_oldtab.on('click',function() {open_content(the_oldtab,i,tab);return false;});the_oldtab.on('keydown',function(objEvent) {if(objEvent.keyCode===13) {the_oldtab.trigger('click');}});}});set_size();trigger_default_open(false);win.on("debouncedresize",set_size);$('a').on('click',function(){var hash=$(this).attr('href');if(typeof hash!="undefined"&&hash) {hash=hash.replace(/^.*?#/,'');trigger_default_open('#'+hash);}});function set_size() {if(!options.sidebar) {return;} content.css({'min-height':tab_titles.outerHeight()+1});} function open_content(tab,i,alternate_tab) {if(!tab.is('.'+options.active)) {$('.'+options.active,container).removeClass(options.active);$('.'+options.active+'_content',container).attr('aria-hidden',true).removeClass(options.active+'_content');tab.addClass(options.active);var new_loc=tab.data('fake-id');if(typeof new_loc=='string') {window.location.replace(new_loc);} if(alternate_tab) {alternate_tab.addClass(options.active);} var active_c=content.eq(i).addClass(options.active+'_content').attr('aria-hidden',false);if(typeof click_container!='undefined'&&click_container.length) {sidebar_shadow.height(active_c.outerHeight());} var el_offset=active_c.offset().top,scoll_target=el_offset-50-parseInt($('html').css('margin-top'),10);if(win.scrollTop()>el_offset) {$('html:not(:animated),body:not(:animated)').scrollTop(scoll_target);}} win.trigger('av-content-el-height-changed',tab);} function trigger_default_open(hash) {if(!hash&&window.location.hash) {hash=window.location.hash;} if(!hash) {return;} var open=tabs.filter('[data-fake-id="'+hash+'"]');if(open.length) {if(!open.is('.active_tab')) {open.trigger('click');} window.scrollTo(0,container.offset().top-70);}}});};}(jQuery));;(function($) {"use strict";$.fn.avia_sc_testimonial=function(options) {return this.each(function() {var container=$(this),elements=container.find('.avia-testimonial');container.on('avia_start_animation',function() {elements.each(function(i) {var element=$(this);setTimeout(function(){element.addClass('avia_start_animation');},(i*150));});});});};}(jQuery));;(function($) {"use strict";$(window).on('load',function(e) {if($.AviaSlider) {$('.avia-timeline-container').avia_sc_timeline();}});$.fn.avia_sc_timeline=function(options) {return this.each(function() {var container=this,timeline_id='#'+$(this).attr('id'),timeline=$(timeline_id),methods;methods={matchHeights:function() {this.setMinHeight($(timeline_id+' .av-milestone-placement-top .av-milestone-date'),true);this.setMinHeight($(timeline_id+' .av-milestone-placement-bottom .av-milestone-content-wrap'),true);this.setMinHeight($(timeline_id+' .av-milestone-placement-bottom.avia-timeline-boxshadow .av-milestone-contentbox'),false);this.setMinHeight($(timeline_id+' .av-milestone-placement-top.avia-timeline-boxshadow .av-milestone-contentbox'),false);this.setMinHeight($(timeline_id+' .avia-timeline-horizontal.av-milestone-placement-alternate li >:first-child'),true);},setMinHeight:function(els,setNav) {if(els.length<2) {return;} var elsHeights=new Array();els.css('min-height','0').each(function(i) {var current=$(this);var currentHeight=current.outerHeight(true);elsHeights.push(currentHeight);});var largest=Math.max.apply(null,elsHeights);els.css('min-height',largest);if(setNav) {var $firstElement=els.first(),$parent=$firstElement.closest('.avia-timeline-container'),$pos=$firstElement.height();$parent.find('.av-timeline-nav').css('top',$pos);}},createCarousel:function(e) {var self=this,slider=$(timeline_id+'.avia-slideshow-carousel'),slides_num=3,slides_num_small=1;if(timeline.attr('avia-data-slides')) {slides_num=parseInt(timeline.attr('avia-data-slides'));} if(slides_num>=2) {slides_num_small=2;} var sliderOptions={carousel:'yes',keep_padding:true,carouselSlidesToShow:slides_num,carouselSlidesToScroll:3,carouselResponsive:[{breakpoint:989,settings:{carouselSlidesToShow:slides_num_small,carouselSlidesToScroll:slides_num_small}},{breakpoint:767,settings:{carouselSlidesToShow:1,carouselSlidesToScroll:1}}]};slider.aviaSlider(sliderOptions);slider.on('_kickOff',function() {self.matchHeights();});$(window).on('resize',function() {self.matchHeights();});},layoutHelpers:function(e) {$(timeline_id+' .avia-timeline-vertical li').each(function(index,element) {var $length=$(this).parents('ul').find('li').length;var $icon_wrap=$(this).find('.av-milestone-icon-wrap');var $icon_wrap_height=$icon_wrap.outerHeight(true);var $icon_wrap_height_half=parseInt($icon_wrap_height/2);if(index===($length-1)) {$icon_wrap.css({'height':$icon_wrap_height_half});} else {$icon_wrap.css({'height':$icon_wrap_height});}});},fireAnimations:function(e) {if($(timeline_id+' > ul').hasClass('avia-timeline-vertical')) {var milestone=timeline.find('.av-milestone');timeline.on('avia_start_animation',function() {milestone.each(function(i) {var element=$(this);setTimeout(function(){element.addClass('avia_start_animation');},(i*350));});});}}};methods.createCarousel();methods.layoutHelpers();methods.fireAnimations();methods.matchHeights();});};})(jQuery);;(function($) {"use strict";$.fn.avia_sc_toggle=function(options) {var defaults={single:'.single_toggle',heading:'.toggler',content:'.toggle_wrap',sortContainer:'.taglist'};var win=$(window),options=$.extend(defaults,options);return this.each(function() {var container=$(this).addClass('enable_toggles'),toggles=$(options.single,container),heading=$(options.heading,container),allContent=$(options.content,container),sortLinks=$(options.sortContainer+" a",container),preview=$('#av-admin-preview');var activeStyle='',headingStyle='';heading.each(function(i) {var thisheading=$(this),content=thisheading.next(options.content,container);function scroll_to_viewport() {var el_offset=content.offset().top,scoll_target=el_offset-50-parseInt($('html').css('margin-top'),10);if(win.scrollTop()>el_offset) {$('html:not(:animated),body:not(:animated)').animate({scrollTop:scoll_target},200);}} if(content.css('visibility')!="hidden") {thisheading.addClass('activeTitle').attr('style',activeStyle);} thisheading.on('keydown',function(objEvent) {if(objEvent.keyCode===13) {thisheading.trigger('click');}});thisheading.on('click',function() {if(content.css('visibility')!="hidden") {content.slideUp(200,function() {content.removeClass('active_tc').attr({style:''});win.trigger('av-height-change');win.trigger('av-content-el-height-changed',this);if(preview.length==0) {location.replace(thisheading.data('fake-id')+"-closed");}});thisheading.removeClass('activeTitle').attr('style',headingStyle);} else {if(container.is('.toggle_close_all')) {allContent.not(content).slideUp(200,function() {$(this).removeClass('active_tc').attr({style:''});scroll_to_viewport();});heading.removeClass('activeTitle').attr('style',headingStyle);} content.addClass('active_tc');setTimeout(function() {content.slideDown(200,function() {if(!container.is('.toggle_close_all')) {scroll_to_viewport();} win.trigger('av-height-change');win.trigger('av-content-el-height-changed',this);});},1);thisheading.addClass('activeTitle').attr('style',activeStyle);if(preview.length==0) {location.replace(thisheading.data('fake-id'));}}});});sortLinks.on('click',function(e) {e.preventDefault();var show=toggles.filter('[data-tags~="'+$(this).data('tag')+'"]'),hide=toggles.not('[data-tags~="'+$(this).data('tag')+'"]');sortLinks.removeClass('activeFilter');$(this).addClass('activeFilter');heading.filter('.activeTitle').trigger('click');show.slideDown();hide.slideUp();});function trigger_default_open(hash) {if(!hash&&window.location.hash) {hash=window.location.hash;} if(!hash) {return;} var open=heading.filter('[data-fake-id="'+hash+'"]');if(open.length) {if(!open.is('.activeTitle')) {open.trigger('click');} window.scrollTo(0,container.offset().top-70);}} trigger_default_open(false);$('a').on('click',function() {var hash=$(this).attr('href');if(typeof hash!="undefined"&&hash) {hash=hash.replace(/^.*?#/,'');trigger_default_open('#'+hash);}});});};}(jQuery));;(function($) {"use strict";$('body').on('click','.av-lazyload-video-embed .av-click-to-play-overlay',function(e) {var clicked=$(this);var cookie_check=$('html').hasClass('av-cookies-needs-opt-in')||$('html').hasClass('av-cookies-can-opt-out');var allow_continue=true;var silent_accept_cookie=$('html').hasClass('av-cookies-user-silent-accept');if(cookie_check&&!silent_accept_cookie) {if(!document.cookie.match(/aviaCookieConsent/)||$('html').hasClass('av-cookies-session-refused')) {allow_continue=false;} else {if(!document.cookie.match(/aviaPrivacyRefuseCookiesHideBar/)) {allow_continue=false;} else if(!document.cookie.match(/aviaPrivacyEssentialCookiesEnabled/)) {allow_continue=false;} else if(document.cookie.match(/aviaPrivacyVideoEmbedsDisabled/)) {allow_continue=false;}}} var container=clicked.parents('.av-lazyload-video-embed');if(container.hasClass('avia-video-lightbox')&&container.hasClass('avia-video-standard-html')) {allow_continue=true;} if(!allow_continue) {if(typeof e.originalEvent=='undefined'){return;} var src_url=container.data('original_url');if(src_url)window.open(src_url,'_blank','noreferrer noopener');return;} var video=container.find('.av-video-tmpl').html();var link='';if(container.hasClass('avia-video-lightbox')) {link=container.find('a.lightbox-link');if(link.length==0) {container.append(video);setTimeout(function(){link=container.find('a.lightbox-link');if($('html').hasClass('av-default-lightbox')) {link.addClass('lightbox-added').magnificPopup($.avia_utilities.av_popup);link.trigger('click');} else {link.trigger('avia-open-video-in-lightbox');}},100);} else {link.trigger('click');}} else {container.html(video);}});$('.av-lazyload-immediate .av-click-to-play-overlay').trigger('click');}(jQuery));;(function($) {"use strict";$(function() {$.avia_utilities=$.avia_utilities||{};if('undefined'==typeof $.avia_utilities.isMobile) {if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&'ontouchstart'in document.documentElement) {$.avia_utilities.isMobile=true;} else {$.avia_utilities.isMobile=false;}} avia_hamburger_menu();$(window).trigger('resize');});$.avia_utilities=$.avia_utilities||{};function avia_hamburger_menu() {var header=$('#header'),header_main=$('#main .av-logo-container'),menu=$('#avia-menu'),burger_wrap=$('.av-burger-menu-main a'),htmlEL=$('html').eq(0),overlay=$('
'),overlay_scroll=$('
').appendTo(overlay),inner_overlay=$('
').appendTo(overlay_scroll),bgColor=$('
').appendTo(overlay),animating=false,first_level={},logo_container=$('.av-logo-container .inner-container'),menu_in_logo_container=logo_container.find('.main_menu'),cloneFirst=htmlEL.is('.html_av-submenu-display-click.html_av-submenu-clone, .html_av-submenu-display-hover.html_av-submenu-clone'),menu_generated=false,cloned_menu_cnt=0;if(!htmlEL.hasClass('html_av-submenu-hidden')) {htmlEL.addClass('html_av-submenu-visible');} var alternate=$('#avia_alternate_menu');if(alternate.length>0) {menu=alternate;} var set_list_container_height=function() {if($.avia_utilities.isMobile) {overlay_scroll.outerHeight(window.innerHeight);}},create_list=function(items,append_to) {if(!items) {return;} var list,link,current,subitems,megacolumns,sub_current,sub_current_list,new_li,new_ul;items.each(function() {current=$(this);subitems=current.find(' > .sub-menu > li');if(subitems.length==0) {subitems=current.find(' > .children > li');} megacolumns=current.find('.avia_mega_div > .sub-menu > li.menu-item');var cur_menu=current.find('>a');var clone_events=true;if(cur_menu.length) {if(cur_menu.get(0).hash=='#'||'undefined'==typeof cur_menu.attr('href')||cur_menu.attr('href')=='#') {if(subitems.length>0||megacolumns.length>0) {clone_events=false;}}} link=cur_menu.clone(clone_events).attr('style','');if('undefined'==typeof cur_menu.attr('href')) {link.attr('href','#');} new_li=$('
  • ').append(link);new_li.attr('role','menuitem');var cls=[];if('undefined'!=typeof current.attr('class')) {cls=current.attr('class').split(/\s+/);$.each(cls,function(index,value){if((value.indexOf('menu-item')!=0)&&(value.indexOf('page-item')<0)&&(value.indexOf('page_item')!=0)&&(value.indexOf('dropdown_ul')<0)) {new_li.addClass(value);} return true;});} if('undefined'!=typeof current.attr('id')&&''!=current.attr('id')) {new_li.addClass(current.attr('id'));} else {$.each(cls,function(index,value){if(value.indexOf('page-item-')>=0) {new_li.addClass(value);return false;}});} append_to.append(new_li);if(subitems.length) {new_ul=$('