if(toolbox_values.dtb_vb_enabled!=='1'||(toolbox_values.dtb_vb_enabled==='1'&&self==top)){ jQuery(document).ready(function ($){ function dtb_equalize_heights(selector){ var heights=new Array(); $(selector).each(function(){ $(this).css('min-height', '0'); $(this).css('max-height', 'none'); $(this).css('height', 'auto'); heights.push($(this).height()); }); var max=Math.max.apply(Math, heights); $(selector).each(function(){ $(this).css('height', max + 'px'); }); } function dtb_equalize_heights_min(selector){ var heights=new Array(); $(selector).each(function(){ $(this).css('min-height', '0'); $(this).css('max-height', 'none'); $(this).css('height', 'auto'); heights.push($(this).height()); }); var min=Math.min.apply(Math, heights); $(selector).each(function(){ $(this).css('height', min + 'px'); }); } function dtb_equalize(){ var iv=null; if(iv!==null){window.clearTimeout(iv);} iv=setTimeout(function(){ if(toolbox_values.dtb_equal_archive_boxed==1){ dtb_equalize_heights('.dtb_archives .et_pb_post .dtb-post-wrap, .dtb-blog.et_pb_module .et_pb_post .dtb-post-wrap'); } if(toolbox_values.dtb_equal_archive_img==1){ dtb_equalize_heights_min('.entry-featured-image-url'); }}, 120); } dtb_equalize(); $(window).resize(dtb_equalize); $(document).bind('ready ajaxComplete', function (){ $('.more-link').text(toolbox_values.dtb_readmore_text); $('#respond #reply-title>span').text(toolbox_values.dtb_comments_text); $('#dtb-before-footer').detach().insertBefore('#main-footer, .et-l--footer'); $('#dtb-after-footer').detach().insertAfter('#main-footer, .et-l--footer'); $('#dtb-before-header').detach().prependTo('#page-container'); $('#dtb-after-blog-content').detach().insertBefore('#comment-wrap'); }); if((toolbox_values.dtb_btt==1)&&(toolbox_values.dtb_btt_link==1)){ $('.et_pb_scroll_top').append(''); $('.et_pb_scroll_top').off('click'); $('.btt_link').attr('href', toolbox_values.dtb_btt_url); } if(toolbox_values.dtb_fixed_scroll==1){ $(window).scroll(function(){ if($(window).scrollTop() >=toolbox_values.dtb_fixed_scroll_offset){ $('body').addClass('scrolled-down'); }else{ $('body').removeClass('scrolled-down'); }}); } $('.dtb_archives .et_pb_post').contents().filter(function (){ return this.nodeType==3&&$.trim(this.nodeValue).length; }).wrap('

'); $('.dtb_archives .et_pb_post').each(function (){ if($('.dtb-post-wrap', this).length < 1){ $('>:not(.entry-featured-image-url)', this).wrapAll('

'); } if($('.more-link', this).length < 1){ if((toolbox_values.dtb_archive_button!='')&&(toolbox_values.dtb_archive_styles!='')){ link_target=$(this).find('a').attr('href'); $('.dtb-post-wrap', this).append("" + toolbox_values.dtb_readmore_text + ""); }} }); if(toolbox_values.dtb_sticky_footer==1){ function positionFooter(){ var mFoo=$("body:not(.et-fb) #main-footer, body:not(.et-fb) .et-l--footer"); var bFoo=$("body:not(.et-fb) #dtb-before-footer"); var aFoo=$("body:not(.et-fb) #dtb-after-footer"); if((($(document.body).height() + mFoo.outerHeight() + bFoo.outerHeight() + aFoo.outerHeight()) < $(window).height()&&mFoo.css("position")=="fixed")||($(document.body).height() < $(window).height()&&mFoo.css("position")!="fixed")){ if(aFoo.outerHeight() > 0){ mFoo.css({ position: "fixed", bottom: aFoo.outerHeight() + "px", right: "0", left: "0" }); }else{ mFoo.css({ position: "fixed", bottom: "0", right: "0", left: "0" }); } bFoo.css({ position: "fixed", bottom: mFoo.outerHeight() + aFoo.outerHeight() + "px", right: "0", left: "0" }); aFoo.css({ position: "fixed", bottom: "0", right: "0", left: "0" }); }else{ mFoo.css({ position: "", bottom: "", right: "", left: "" }); bFoo.css({ position: "", bottom: "", right: "", left: "" }); aFoo.css({ position: "", bottom: "", right: "", left: "" }); }} $(document).ready(function (){ positionFooter(); $(window).scroll(positionFooter); $(window).resize(positionFooter); }); } if(toolbox_values.dtb_enable_typing==1){ var count=0; $('.et_pb_text.dtb-typing .et_pb_text_inner').each(function (){ $(this).wrap("
"); $(this).after(""); count++; }); } if(toolbox_values.dtb_mobile_parallax==1){ $dtb_is_mobile=null!==navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/); if($dtb_is_mobile){ in_viewport=function(elem){ elementTop=elem.offset().top, elementBottom=elementTop + elem.outerHeight(), viewportTop=$(window).scrollTop(), viewportBottom=viewportTop + $(window).height(); return elementBottom > viewportTop&&elementTop < viewportBottom; }; $(window).scroll(function(){ $(".dtb-mobile-parallax .et_parallax_bg").each(function(){ var $dtb_parent=$(this).parent(); var $dtb_visible=in_viewport($dtb_parent); if($dtb_visible){ element_top=$dtb_parent.offset().top, parallaxHeight=$(this).parent(".et_pb_fullscreen").length&&$(window).height() > $dtb_parent.innerHeight() ? $(window).height():$dtb_parent.innerHeight(), bg_height=.2 * $(window).height() + parallaxHeight, main_position="translate(0, " + .2 * ($(window).scrollTop() + $(window).height() - element_top) + "px)"; $(this).css({height: bg_height,"-webkit-transform": main_position,"-moz-transform": main_position,"-ms-transform": main_position,transform: main_position}); }}); }); }} if(toolbox_values.dtb_enable_popup==1){ var popup_listener=false; $('#popup1, #popup2, #popup3, #popup4, #popup5').each(function(){ var dtb_popup_container=$(this); if(dtb_popup_container.children('#et-boc').length==0){ dtb_popup_container.children('div').wrap('
'); }}); $('.popup1').each(function (){ $(this).addClass('trigger-popup').attr('data-mfp-src', '#popup1'); }); $('.popup2').each(function (){ $(this).addClass('trigger-popup').attr('data-mfp-src', '#popup2'); }); $('.popup3').each(function (){ $(this).addClass('trigger-popup').attr('data-mfp-src', '#popup3'); }); $('.popup4').each(function (){ $(this).addClass('trigger-popup').attr('data-mfp-src', '#popup4'); }); $('.popup5').each(function (){ $(this).addClass('trigger-popup').attr('data-mfp-src', '#popup5'); }); if(toolbox_values.dtb_popup_number==1){ $('a[href="#popup1"]').addClass('trigger-popup'); } if(toolbox_values.dtb_popup_number==2){ $('a[href="#popup1"],a[href="#popup2"]').addClass('trigger-popup'); } if(toolbox_values.dtb_popup_number==3){ $('a[href="#popup1"],a[href="#popup2"],a[href="#popup3"]').addClass('trigger-popup'); } if(toolbox_values.dtb_popup_number==4){ $('a[href="#popup1"],a[href="#popup2"],a[href="#popup3"],a[href="#popup4"]').addClass('trigger-popup'); } if(toolbox_values.dtb_popup_number==5){ $('a[href="#popup1"],a[href="#popup2"],a[href="#popup3"],a[href="#popup4"],a[href="#popup5"]').addClass('trigger-popup'); } $('.trigger-popup').addClass('et_smooth_scroll_disabled'); $('.trigger-popup').magnificPopup({ type: 'inline', mainClass: 'toolbox', fixedContentPos: true, zoom: { enabled: true, duration: 2000, easing: 'ease-in-out' }, callbacks: { open: function (){ $('body').addClass('blurred'); }, close: function (){ $('body').removeClass('blurred'); }}, prependTo: '#page-container' }); $('.toolbox .mfp-content').addClass('container'); $('.mobile_menu_bar').click(function (){ if(!popup_listener){ popup_listener=true; $('.trigger-popup').magnificPopup({ type: 'inline', mainClass: 'toolbox', fixedContentPos: true, zoom: { enabled: true, duration: 2000, easing: 'ease-in-out' }, callbacks: { open: function (){ $('body').addClass('blurred'); }, close: function (){ $('body').removeClass('blurred'); }}, prependTo: '#page-container' }); }}) } if(toolbox_values.dtb_social_links==1){ if(toolbox_values.dtb_skype_url!=''){ $('.et-social-icons').append('
  • Skype
  • ') } if(toolbox_values.dtb_instagram_url!=''){ $('.et-social-icons').append('
  • Instagram
  • ') } if(toolbox_values.dtb_youtube_url!=''){ $('.et-social-icons').append('
  • YouTube
  • ') } if(toolbox_values.dtb_linkedin_url!=''){ $('.et-social-icons').append('
  • LinkedIn
  • ') } if(toolbox_values.dtb_pinterest_url!=''){ $('.et-social-icons').append('
  • Pinterest
  • ') } if(toolbox_values.dtb_tumblr_url!=''){ $('.et-social-icons').append('
  • Tumblr
  • ') } if(toolbox_values.dtb_flickr_url!=''){ $('.et-social-icons').append('
  • Flickr
  • ') } if(toolbox_values.dtb_dribble_url!=''){ $('.et-social-icons').append('
  • Dribble
  • ') } if(toolbox_values.dtb_vimeo_url!=''){ $('.et-social-icons').append('
  • Vimeo
  • ') }} if(toolbox_values.dtb_social_target==1){ $('.et-social-icon a').attr('target', '_blank'); } if((toolbox_values.dtb_social_move==1)&&(toolbox_values.dtb_social_enable==1)){ $('#top-header .et-social-icons').detach(); } if(toolbox_values.dtb_social_enable==1){ $('#top-header .et-social-icons a, #main-header .et-social-icons a').addClass(toolbox_values.social_head_hover); $('#footer-bottom .et-social-icons a').addClass(toolbox_values.social_foot_hover); } $('#footer-bottom .et-social-icons a').width($('#footer-bottom .et-social-icons a').height()); $(window).on('resize', function (){ $('#footer-bottom .et-social-icons a').width($('#footer-bottom .et-social-icons a').height()); }); if((toolbox_values.dtb_fixed_logo==1)&&(toolbox_values.dtb_fixed_logo_url!='')){ var oldURL=$('#logo').attr('src'); if($('#main-header').hasClass('et-fixed-header')){ $('#logo').attr('src', toolbox_values.dtb_fixed_logo_url); } $(window).on('scroll', function (){ if($('#main-header').hasClass('et-fixed-header')){ $('#logo').attr('src', toolbox_values.dtb_fixed_logo_url); }else{ $('#logo').attr('src', oldURL); }}); } if((toolbox_values.dtb_mobile_logo==1)&&(toolbox_values.dtb_mobile_logo_url!='')){ var desktopURL=$('#logo').attr('src'); function checkWidth(){ var windowsize=$(window).width(); if(windowsize < toolbox_values.dtb_mobile_breakpoint){ $('#logo').attr('src', toolbox_values.dtb_mobile_logo_url); }else{ $('#logo').attr('src', desktopURL); } $(window).on('scroll', function (){ var windowsize=$(window).width(); if(windowsize < toolbox_values.dtb_mobile_breakpoint){ $('#logo').attr('src', toolbox_values.dtb_mobile_logo_url); }}); } checkWidth(); $(window).resize(checkWidth); } if(toolbox_values.dtb_comments_styles=='1'){ $('#respond #submit, .comment-reply-link').addClass(toolbox_values.dtb_comments_btn_hover); } $('.et_pb_button').addClass(toolbox_values.dtb_buttons_hover); $('.' + toolbox_values.dtb_sec_btn_class).removeClass(toolbox_values.dtb_buttons_hover).addClass(toolbox_values.dtb_sec_btn_hover); function dtb_header_menu_split(){ var $logo_container=$('#main-header > .container > .logo_container'), $et_top_navigation=$('#et-top-navigation'), $logo_container_splitted=$('.centered-inline-logo-wrap > .logo_container'), et_top_navigation_li_size=$et_top_navigation.children('nav').children('ul').children('li').size(), et_top_navigation_li_break_index=Math.round(et_top_navigation_li_size / 2) - 1, window_width=window.innerWidth; if(window_width > toolbox_values.dtb_mobile_breakpoint&&$logo_container.length&&$('body').hasClass('et_header_style_split')){ $('
  • ').insertAfter($et_top_navigation.find('nav > ul >li:nth(' + et_top_navigation_li_break_index + ')')); $logo_container.appendTo($et_top_navigation.find('.centered-inline-logo-wrap')); } if(window_width <=toolbox_values.dtb_mobile_breakpoint&&$logo_container_splitted.length){ $logo_container_splitted.prependTo('#main-header > .container'); $('#main-header .centered-inline-logo-wrap').remove(); }} dtb_header_menu_split(); $(window).resize(function (){ dtb_header_menu_split(); }); var $slide_menu_container=$('.et_header_style_slide .et_slide_in_menu_container'); if($slide_menu_container.length&&!$('body').hasClass('et_pb_slide_menu_active')){ $slide_menu_container.css({ right: '-' + parseInt($slide_menu_container.innerWidth()) + 'px', 'display': 'none' }); } if(toolbox_values.dtb_post_author!=''){ $('.dtb-author-box').detach().insertAfter('.et_pb_post>.entry-content, .et_pb_module.et_pb_post_content'); } if(toolbox_values.dtb_post_prev_next!=''){ $('.dtb-single-post-nav').detach().insertAfter('.et_pb_post>.entry-content, .et_pb_module.et_pb_post_content');; } if(toolbox_values.dtb_post_related!=''){ $('.dtb-related-posts').detach().insertAfter('.et_pb_post>.entry-content, .et_pb_module.et_pb_post_content'); } if(toolbox_values.dtb_single_after_content_layout!=''){ $('.dtb-after-single-post').detach().insertAfter('.et_pb_post>.entry-content, .et_pb_module.et_pb_post_content'); } if(toolbox_values.dtb_hide_post_title!=''){ $('.single-post .et_post_meta_wrapper h1.entry-title').detach(); } if(toolbox_values.dtb_footer_reveal!=''){ function dtb_footer_height(){ if($("#main-footer").length){ var footer_height=$('#main-footer').height(); }else{ var footer_height=$('.et-l--footer').height(); } $('#page-container').css('margin-bottom', footer_height); } function dtb_remove_footer_height(){ $('#page-container').css('margin-bottom', '0'); } function dtb_footer_reveal_mobile_conditional(){ if($(window).width() > 980){ dtb_footer_height(); }else{ dtb_remove_footer_height(); }} if(toolbox_values.dtb_footer_reveal_mobile_off!=''){ dtb_footer_reveal_mobile_conditional() $(window).resize(function (){ dtb_footer_reveal_mobile_conditional() }); }else{ dtb_footer_height(); $(window).resize(function (){ dtb_footer_height(); }); }} if(toolbox_values.dtb_testimonial_photo!=''){ $('.et_pb_testimonial').each(function (){ $('.et_pb_testimonial_portrait', this).detach().insertBefore($(this).find('.et_pb_testimonial_author')); $('.et_pb_testimonial_portrait, .et_pb_testimonial_author, .et_pb_testimonial_meta', this).wrapAll('
    '); }); }}); jQuery(window).on("load", function($){ var mbwidth=parseInt(toolbox_values.dtb_mobile_breakpoint); if((jQuery(window).width() <=mbwidth)&&jQuery('body').hasClass('dtb_mobile_slide')){ jQuery('.mobile_menu_bar').click(function (){ jQuery('body').toggleClass('noscroll'); jQuery('#mobile_menu, .dtb-fixed-always .et_mobile_menu').css('min-height', (jQuery(window).height()) + 'px'); jQuery('#mobile_menu, .dtb-fixed-always .et_mobile_menu').css('max-height', '100vh'); }); }}); if(toolbox_values.dtb_follow_the_mouse==1){ !function (t){ t.fn.directionalHover=function (e){ var n=t.extend({}, t.fn.directionalHover.defaults, e), o=function (t, e, n, o, f, a, r, s){ var u=0; o - s <=a / 2&&(u ^=1), n - r >=f / 2&&(u ^=2), o - s > a / 2&&(u ^=4), n - r < f / 2&&(u ^=8), i(u, t, e, n - r, o - s, f / 2, a / 2) }, i=function (t, e, n, o, i, u, l){ f(t, 9) ? a(o, i, u, l) ? s(e, n, 0, 2 * -u):s(e, n, 2 * -l, 0):f(t, 3) ? r(o, i, u, l) ? s(e, n, 2 * -l, 0):s(e, n, 0, 2 * u):f(t, 12) ? r(o, i, u, l) ? s(e, n, 0, 2 * -u):s(e, n, 2 * l, 0):f(t, 6)&&(a(o, i, u, l) ? s(e, n, 2 * l, 0):s(e, n, 0, 2 * u)) }, f=function (t, e){ return (t & e)===e }, a=function (t, e, n, o){ return o * t - n * e < 0 }, r=function (t, e, n, o){ return n * (e - o) + o * t - n * o < 0 }, s=function (t, e, o, i){ "in"===e ? t.animate({ top: o, left: i }, 0, function (){ t.stop().animate({ top: 0, left: 0 }, n.speed, n.easing) }):"out"===e&&t.animate({ top: 0, left: 0 }, 0, function (){ t.stop().animate({ top: o, left: i }, n.speed, n.easing) }) }; return this.css({ position: "relative", overflow: "hidden" }), this.find(n.overlay).css({ position: "absolute", top: "-100%" }), this.each(function (){ var e=t(this); e.hover(function (t){ o(e.find(n.overlay), "in", t.pageX, t.pageY, e.width(), e.height(), Math.floor(e.offset().left), e.offset().top) }, function (t){ o(e.find(n.overlay), "out", t.pageX, t.pageY, e.width(), e.height(), Math.floor(e.offset().left), e.offset().top) }) }) }, t.fn.directionalHover.defaults={ overlay: ".et_overlay", easing: "swing", speed: 400 }}(jQuery); (function ($){ var triggerClassChange=$.fn.addClass; $.fn.addClass=function (){ $(this).trigger('classChanged'); return triggerClassChange.apply(this, arguments); }})(jQuery); jQuery(document).ready(function ($){ $('.et_pb_portfolio .et_pb_portfolio_item, .et_pb_fullwidth_portfolio .et_pb_portfolio_item, .et_pb_gallery .et_pb_gallery_item').directionalHover(); $('div.et_pb_portfolio').find('li.et_pb_portfolio_filter a').on('classChanged', function (){ setTimeout(function (){ $('.et_pb_portfolio .et_pb_portfolio_item').directionalHover(); }); }); $('div.et_pb_portfolio').on('classChanged', 'li.page a', function (){ setTimeout(function (){ $('.et_pb_portfolio .et_pb_portfolio_item').directionalHover(); }); }); }); } if(toolbox_values.dtb_mobile_nested==1){ (function ($){ function dtb_setup_submenus(){ $("").insertBefore(".et_mobile_menu .menu-item-has-children > a"); $(".et_mobile_menu .sub-menu-toggle").click(function (e){ e.preventDefault(); $(this).toggleClass("popped"); }); } $(document).ready(function (){ dtb_setup_submenus(); }); $(window).on("load", function(){ dtb_setup_submenus(); var parent_links=$(".et_mobile_menu .menu-item-has-children > a"); var toggles=$(".et_mobile_menu .sub-menu-toggle"); parent_links.off(); parent_links.each(function (i){ if($(this).attr("href")=='#'){ $(this).click(function (){ toggles[i].click(function (){ $(this).toggleClass('popped'); }); }); }}); }); })(jQuery); }} jQuery(document).ready(function ($){ $(document).bind('ready componentDidMount ajaxComplete', function (){ if((toolbox_values.dtb_blog_layout!='blog_default')&&(toolbox_values.dtb_blog_layout!='')){ $('.dtb-blog.et_pb_module .et_pb_post').each(function (){ if($('.dtb-post-wrap', this).length < 1){ $('>:not(.entry-featured-image-url)', this).wrapAll('
    '); }}); } if(toolbox_values.dtb_post_meta==1){ $(".dtb-blog.et_pb_module .post-meta, .archive #left-area .et_pb_post .post-meta, .blog #left-area .et_pb_post .post-meta").html(function (){ return $(this).html().replace(/\|/g, '').replace('by', '').replace('por', '').replace('...', '').replace(/,/g, ''); }); } if(toolbox_values.dtb_sidebar_search!=''){ $('.et_pb_widget_area #searchsubmit, #sidebar #searchsubmit, .dtb-sidebar #searchsubmit').before(''); } $('#top-menu-nav #top-menu li a, .dtb-menu ul.et-menu li a').each(function (){ if($('>span', this).length < 1){ $(this).wrapInner(''); }}); if($('.custom_hamburger_icon').length > 0){ var iconName='hamburger_menu_icon', toggledName=iconName + '-toggled'; $(".mobile_menu_bar").addClass(iconName).html('
    '); $('.' + iconName).on('click', function (e){ e.preventDefault(); $('.' + iconName).toggleClass(toggledName); }); } if(toolbox_values.dtb_cta_link==1){ if(toolbox_values.dtb_cta_link_type=='first_item'){ $('#top-menu>li:first-child, #mobile_menu>li:first-child, .dtb-menu .et-menu>li:first-child, .dtb-menu .et_mobile_menu>li:first-child').addClass('cta-item'); } if(toolbox_values.dtb_cta_link_type=='last_item'){ $('#top-menu>li:last-child, #mobile_menu>li:last-child, .dtb-menu .et-menu>li:last-child, .dtb-menu .et_mobile_menu>li:last-child').addClass('cta-item'); } if(toolbox_values.dtb_cta_link_type=='custom_class'){ $('#top-menu>li.cta-link, #mobile_menu>li.cta-link, .dtb-menu .et-menu>li.cta-link, .dtb-menu .et_mobile_menu>li.cta-link').addClass('cta-item'); } $('#top-menu>li.cta-item>a,.dtb-menu .et-menu>li.cta-item>a').addClass(toolbox_values.cta_hover_style); }}); }); jQuery(document).ready(function (){ jQuery(".inline_issue").prev("p").css("display", "inline"); jQuery('.ccw-an').hover(add, remove); function add(){ jQuery(this).addClass('animated infinite'); } function remove(){ jQuery(this).removeClass('animated infinite'); }}); var url=window.location.href; var google_analytics=ht_ccw_var.google_analytics; var fb_analytics=ht_ccw_var.fb_analytics; var title=ht_ccw_var.page_title; ht_ccw_clickevent(); function ht_ccw_clickevent(){ var ccw_plugin=document.querySelector('.ccw_plugin'); if(ccw_plugin){ ccw_plugin.addEventListener('click', ht_ccw_clicked); }} function ht_ccw_clicked(){ if('true'==google_analytics){ google_analytics_event(); } if('true'==fb_analytics){ fb_analytics_event(); }} function google_analytics_event(){ var ga_category=ht_ccw_var.ga_category.replace('{{url}}', url).replace('{{title}}', title); var ga_action=ht_ccw_var.ga_action.replace('{{url}}', url).replace('{{title}}', title); var ga_label=ht_ccw_var.ga_label.replace('{{url}}', url).replace('{{title}}', title); if("ga" in window){ tracker=ga.getAll()[0]; if(tracker) tracker.send("event", ga_category, ga_action, ga_label); }else if("gtag" in window){ gtag('event', ga_action, { 'event_category': ga_category, 'event_label': ga_label, }); }} function fb_analytics_event(){ var p1_value=ht_ccw_var.p1_value.replace('{{url}}', url).replace('{{title}}', title); var p2_value=ht_ccw_var.p2_value.replace('{{url}}', url).replace('{{title}}', title); var p3_value=ht_ccw_var.p3_value.replace('{{url}}', url).replace('{{title}}', title); logFb_analyticsEvent(p1_value, p2_value, p3_value) } function logFb_analyticsEvent(p1_value, p2_value, p3_value){ var p1_name=ht_ccw_var.p1_name; var p2_name=ht_ccw_var.p2_name; var p3_name=ht_ccw_var.p3_name; var fb_event_name=ht_ccw_var.fb_event_name; var params={}; params[p1_name]=p1_value; params[p2_name]=p2_value; params[p3_name]=p3_value; FB.AppEvents.logEvent(fb_event_name, null, params); }; !function(){"use strict";function e(e){function t(t,n){var s,h,k=t==window,y=n&&n.message!==undefined?n.message:undefined;if(!(n=e.extend({},e.blockUI.defaults,n||{})).ignoreIfBlocked||!e(t).data("blockUI.isBlocked")){if(n.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,n.overlayCSS||{}),s=e.extend({},e.blockUI.defaults.css,n.css||{}),n.onOverlayClick&&(n.overlayCSS.cursor="pointer"),h=e.extend({},e.blockUI.defaults.themedCSS,n.themedCSS||{}),y=y===undefined?n.message:y,k&&p&&o(window,{fadeOut:0}),y&&"string"!=typeof y&&(y.parentNode||y.jquery)){var m=y.jquery?y[0]:y,g={};e(t).data("blockUI.history",g),g.el=m,g.parent=m.parentNode,g.display=m.style.display,g.position=m.style.position,g.parent&&g.parent.removeChild(m)}e(t).data("blockUI.onUnblock",n.onUnblock);var v,I,w,U,x=n.baseZ;v=e(r||n.forceIframe?'':''),I=e(n.theme?'':''),n.theme&&k?(U='"):n.theme?(U='"):U=k?'':'',w=e(U),y&&(n.theme?(w.css(h),w.addClass("ui-widget-content")):w.css(s)),n.theme||I.css(n.overlayCSS),I.css("position",k?"fixed":"absolute"),(r||n.forceIframe)&&v.css("opacity",0);var C=[v,I,w],S=e(k?"body":t);e.each(C,function(){this.appendTo(S)}),n.theme&&n.draggable&&e.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var O=f&&(!e.support.boxModel||e("object,embed",k?null:t).length>0);if(u||O){if(k&&n.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(u||!e.support.boxModel)&&!k)var E=a(t,"borderTopWidth"),T=a(t,"borderLeftWidth"),M=E?"(0 - "+E+")":0,B=T?"(0 - "+T+")":0;e.each(C,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)k?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+n.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),k?o.setExpression("width",'jQuery.support.boxModel&&document.documentElement.clientWidth||document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),B&&o.setExpression("left",B),M&&o.setExpression("top",M);else if(n.centerY)k&&o.setExpression("top",'(document.documentElement.clientHeight||document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah=document.documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop) + "px"'),o.marginTop=0;else if(!n.centerY&&k){var i="((document.documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop) + "+(n.css&&n.css.top?parseInt(n.css.top,10):0)+') + "px"';o.setExpression("top",i)}})}if(y&&(n.theme?w.find(".ui-widget-content").append(y):w.append(y),(y.jquery||y.nodeType)&&e(y).show()),(r||n.forceIframe)&&n.showOverlay&&v.show(),n.fadeIn){var j=n.onBlock?n.onBlock:c,H=n.showOverlay&&!y?j:c,z=y?j:c;n.showOverlay&&I._fadeIn(n.fadeIn,H),y&&w._fadeIn(n.fadeIn,z)}else n.showOverlay&&I.show(),y&&w.show(),n.onBlock&&n.onBlock.bind(w)();if(i(1,t,n),k?(p=w[0],b=e(n.focusableElements,p),n.focusInput&&setTimeout(l,20)):d(w[0],n.centerX,n.centerY),n.timeout){var W=setTimeout(function(){k?e.unblockUI(n):e(t).unblock(n)},n.timeout);e(t).data("blockUI.timeout",W)}}}function o(t,o){var s,l=t==window,d=e(t),a=d.data("blockUI.history"),c=d.data("blockUI.timeout");c&&(clearTimeout(c),d.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),i(0,t,o),null===o.onUnblock&&(o.onUnblock=d.data("blockUI.onUnblock"),d.removeData("blockUI.onUnblock"));var r;r=l?e(document.body).children().filter(".blockUI").add("body > .blockUI"):d.find(">.blockUI"),o.cursorReset&&(r.length>1&&(r[1].style.cursor=o.cursorReset),r.length>2&&(r[2].style.cursor=o.cursorReset)),l&&(p=b=null),o.fadeOut?(s=r.length,r.stop().fadeOut(o.fadeOut,function(){0==--s&&n(r,a,o,t)})):n(r,a,o,t)}function n(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),d=l.width(),a=l[0].style.width;l.width(d-1).width(d),l[0].style.width=a}}function i(t,o,n){var i=o==window,l=e(o);if((t||(!i||p)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var d="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(d,n,s):e(document).unbind(d,s)}}function s(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&p&&t.data.constrainTabKey){var o=b,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){l(i)},10),!1}var s=t.data,d=e(t.target);return d.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),d.parents("div."+s.blockMsgClass).length>0||0===d.parents().children().filter("div.blockUI").length}function l(e){if(b){var t=b[!0===e?b.length-1:0];t&&t.focus()}}function d(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-a(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-a(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0"),o&&(i.top=l>0?l+"px":"0")}function a(t,o){return parseInt(e.css(t,o),10)||0}e.fn._fadeIn=e.fn.fadeIn;var c=e.noop||function(){},r=/MSIE/.test(navigator.userAgent),u=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),f=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){t(window,e)},e.unblockUI=function(e){o(window,e)},e.growlUI=function(t,o,n,i){var s=e('
    ');t&&s.append("

    "+t+"

    "),o&&s.append("

    "+o+"

    "),n===undefined&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.mouseover(function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).mouseout(function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(o){if(this[0]===window)return e.blockUI(o),this;var n=e.extend({},e.blockUI.defaults,o||{});return this.each(function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,t(this,o)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){o(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"

    Please wait...

    ",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var p=null,b=[]}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}(); jQuery(function(e){if("undefined"==typeof wc_add_to_cart_params)return!1;var t=function(){e(document.body).on("click",".add_to_cart_button",this.onAddToCart).on("click",".remove_from_cart_button",this.onRemoveFromCart).on("added_to_cart",this.updateButton).on("added_to_cart",this.updateCartPage).on("added_to_cart removed_from_cart",this.updateFragments)};t.prototype.onAddToCart=function(t){var a=e(this);if(a.is(".ajax_add_to_cart")){if(!a.attr("data-product_id"))return!0;t.preventDefault(),a.removeClass("added"),a.addClass("loading");var o={};e.each(a.data(),function(t,a){o[t]=a}),e(document.body).trigger("adding_to_cart",[a,o]),e.post(wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","add_to_cart"),o,function(t){t&&(t.error&&t.product_url?window.location=t.product_url:"yes"!==wc_add_to_cart_params.cart_redirect_after_add?e(document.body).trigger("added_to_cart",[t.fragments,t.cart_hash,a]):window.location=wc_add_to_cart_params.cart_url)})}},t.prototype.onRemoveFromCart=function(t){var a=e(this),o=a.closest(".woocommerce-mini-cart-item");t.preventDefault(),o.block({message:null,overlayCSS:{opacity:.6}}),e.post(wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","remove_from_cart"),{cart_item_key:a.data("cart_item_key")},function(t){t&&t.fragments?e(document.body).trigger("removed_from_cart",[t.fragments,t.cart_hash,a]):window.location=a.attr("href")}).fail(function(){window.location=a.attr("href")})},t.prototype.updateButton=function(t,a,o,r){(r=void 0!==r&&r)&&(r.removeClass("loading"),r.addClass("added"),wc_add_to_cart_params.is_cart||0!==r.parent().find(".added_to_cart").length||r.after(' '+wc_add_to_cart_params.i18n_view_cart+""),e(document.body).trigger("wc_cart_button_updated",[r]))},t.prototype.updateCartPage=function(){var t=window.location.toString().replace("add-to-cart","added-to-cart");e(".shop_table.cart").load(t+" .shop_table.cart:eq(0) > *",function(){e(".shop_table.cart").stop(!0).css("opacity","1").unblock(),e(document.body).trigger("cart_page_refreshed")}),e(".cart_totals").load(t+" .cart_totals:eq(0) > *",function(){e(".cart_totals").stop(!0).css("opacity","1").unblock(),e(document.body).trigger("cart_totals_refreshed")})},t.prototype.updateFragments=function(t,a){a&&(e.each(a,function(t){e(t).addClass("updating").fadeTo("400","0.6").block({message:null,overlayCSS:{opacity:.6}})}),e.each(a,function(t,a){e(t).replaceWith(a),e(t).stop(!0).css("opacity","1").unblock()}),e(document.body).trigger("wc_fragments_loaded"))},new t}); !function(e){var n=!1;if("function"==typeof define&&define.amd&&(define(e),n=!0),"object"==typeof exports&&(module.exports=e(),n=!0),!n){var o=window.Cookies,t=window.Cookies=e();t.noConflict=function(){return window.Cookies=o,t}}}(function(){function e(){for(var e=0,n={};e1){if("number"==typeof(i=e({path:"/"},t.defaults,i)).expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*i.expires),i.expires=a}i.expires=i.expires?i.expires.toUTCString():"";try{c=JSON.stringify(r),/^[\{\[]/.test(c)&&(r=c)}catch(m){}r=o.write?o.write(r,n):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=(n=(n=encodeURIComponent(String(n))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var f="";for(var s in i)i[s]&&(f+="; "+s,!0!==i[s]&&(f+="="+i[s]));return document.cookie=n+"="+r+f}n||(c={});for(var p=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,u=0;u=0?s:i,t=i,(e=document.body.classList.contains("et-fb"))&&I("keydown",x),n.keyboardSupport&&!e&&T("keydown",x),o=!0,top!=self)r=!0;else if(u>c&&(i.offsetHeight<=c||s.offsetHeight<=c)){var l=!1;if(s.style.height="auto",setTimeout((function(){l||s.scrollHeight==document.height||(l=!0,setTimeout((function(){s.style.height=document.height+"px",l=!1}),500))}),10),a.offsetHeight<=c){var d=document.createElement("div");d.style.clear="both",i.appendChild(d)}}n.fixedBackground||(i.style.backgroundAttachment="scroll",s.style.backgroundAttachment="scroll")}}var g=[],b=!1,w=+new Date;function y(t,e,r,o){var a,s;if(o||(o=1e3),a=(a=e)>0?1:-1,s=(s=r)>0?1:-1,(i.x!==a||i.y!==s)&&(i.x=a,i.y=s,g=[],w=0),1!=n.accelerationMax){var c=+new Date-w;if(c1&&(u=Math.min(u,n.accelerationMax),e*=u,r*=u)}w=+new Date}if(g.push({x:e,y:r,lastX:e<0?.99:-.99,lastY:r<0?.99:-.99,start:+new Date}),!b){var l=t===document.body;M((function i(a){for(var s=+new Date,c=0,u=0,d=0;d=n.animationTime,h=_?1:p/n.animationTime;n.pulseAlgorithm&&(h=z(h));var v=f.x*h-f.lastX>>0,m=f.y*h-f.lastY>>0;c+=v,u+=m,f.lastX+=v,f.lastY+=m,_&&(g.splice(d,1),d--)}l?window.scrollBy(c,u):(c&&(t.scrollLeft+=c),u&&(t.scrollTop+=u)),e||r||(g=[]),g.length?M(i,t,o/n.frameRate+1):b=!1}),t,0),b=!0}}function x(e){var r=e.target,i=e.ctrlKey||e.altKey||e.metaKey||e.shiftKey&&e.keyCode!==f;if(/input|textarea|select|embed/i.test(r.nodeName)||r.isContentEditable||e.defaultPrevented||i)return!0;if(A(r,"button")&&e.keyCode===f)return!0;var o=0,a=0,s=S(t),m=s.clientHeight;switch(s==document.body&&(m=window.innerHeight),e.keyCode){case u:a=-n.arrowScroll;break;case d:a=n.arrowScroll;break;case f:a=-(e.shiftKey?1:-1)*m*.9;break;case p:a=.9*-m;break;case _:a=.9*m;break;case v:a=-window.pageYOffset;break;case h:var g=s.scrollHeight-s.scrollTop-m;a=g>0?g+10:0;break;case c:o=-n.arrowScroll;break;case l:o=n.arrowScroll;break;default:return!0}y(s,o,a),e.preventDefault()}var C={};setInterval((function(){C={}}),1e4);var k,j=(k=0,function(t){return t.uniqueID||(t.uniqueID=k++)});function O(t,e){for(var n=t.length;n--;)C[j(t[n])]=e;return e}function S(t){var e=[],n=a.scrollHeight;do{var i=C[j(t)];if(i)return O(e,i);if(e.push(t),n===t.scrollHeight){if(!r||a.clientHeight+10=1?1:t<=0?0:(1==n.pulseNormalize&&(n.pulseNormalize/=P(1)),P(t))}var L=/chrome/i.test(window.navigator.userAgent),R=null;"onwheel"in document.createElement("div")?R="wheel":"onmousewheel"in document.createElement("div")&&(R="mousewheel");var W=document.body.className.split(" ").filter((function(t){return"et_smooth_scroll"===t})).length>0;R&&L&&W&&(window.addEventListener(R,(function(e){o||m();var r=e.target,i=S(r),a=document.documentElement.className.split(" ").filter((function(t){return"et-fb-preview--tablet"===t||"et-fb-preview--phone"===t||"et-fb-preview--zoom"===t})).length>0;if(!i||e.defaultPrevented||A(t,"embed")||A(r,"embed")&&/\.pdf/i.test(r.src)||a)return!0;var c=e.wheelDeltaX||0,u=e.wheelDeltaY||0;if(c||u||(u=e.wheelDelta||0),!n.touchpadSupport&&function(t){if(!t)return;return t=Math.abs(t),s.push(t),s.shift(),clearTimeout(void 0),!(E(s[0],120)&&E(s[1],120)&&E(s[2],120))}(u))return!0;Math.abs(c)>1.2&&(c*=n.stepSize/120),Math.abs(u)>1.2&&(u*=n.stepSize/120),y(i,-c,-u),e.preventDefault()}),{passive:!1}),T("mousedown",(function(e){t=e.target})),T("load",m)),window.ET_SmoothScroll={toggleKeydown:function(t){t?T("keydown",x):I("keydown",x)}}}()},function(t,e){var n;(n=jQuery).fn.et_shortcodes_switcher=function(t){return t=n.extend({slides:">div",activeClass:"active",linksNav:"",findParent:!0,lengthElement:"li",useArrows:!1,arrowLeft:"a#prev-arrow",arrowRight:"a#next-arrow",auto:!1,autoSpeed:5e3,slidePadding:"",pauseOnHover:!0,fx:"fade",sliderType:""},t),this.each((function(){var e,r,i,o=jQuery(this).parent().css("position","relative"),a=jQuery(this).css({overflow:"hidden",position:"relative"}),s=o.find(".et-tabs-content-wrapper"),c=s.parent(),u=a.find(".et-tabs-content-wrapper"+t.slides),l=u.length,d=1,f=c.width();if("slide"===t.fx&&(s.width(200*(l+2)+"%"),u.css({width:f,visibility:"visible"}),s.append(u.filter(":first").clone().removeClass().addClass("et_slidecontent_cloned")),s.prepend(u.filter(":last").clone().removeClass().addClass("et_slidecontent_cloned")),s.css("left",-f)),u.filter(":first").css({display:"block"}).addClass("et_shortcode_slide_active"),""!=t.slidePadding&&u.css("padding",t.slidePadding),""!=t.linksNav){var p=jQuery(t.linksNav),_="";(_=t.findParent?p.parent():p).filter(".active").length||_.filter(":first").addClass("active"),p.click((function(){var e;return g(e=(t.findParent?jQuery(this).parent():jQuery(this)).prevAll(t.lengthElement).length+1,e>d?1:-1),!1}))}if(t.useArrows){var h=jQuery(t.arrowRight),v=jQuery(t.arrowLeft);h.click((function(){return y(),!1})),v.click((function(){return x(),!1}))}function m(){""!=_&&(_.siblings().removeClass("active"),_.filter(":eq("+(d-1)+")").addClass("active"))}function g(n,o){if(!u.filter(":animated").length&&(e=u.parent().find(".et_slidecontent").filter(":eq("+(d-1)+")"),d!==n))return e.removeClass("et_shortcode_slide_active"),r=u.parent().find(".et_slidecontent").filter(":eq("+(n-1)+")").addClass("et_shortcode_slide_active"),(d>n||1===d)&&-1===o?("slide"===t.fx&&(a=r.prevAll(".et_slidecontent").length+1,f=!1,e.prev(".et_slidecontent_cloned").length&&(a=0,f=!0),s.animate({left:-c.width()*a},500,(function(){f&&s.css("left",-c.width()*l)}))),"fade"===t.fx&&w()):("slide"===t.fx&&function(t){var n=r.prevAll(".et_slidecontent").length+1,i=!1;e.next(".et_slidecontent_cloned").length&&(n=e.prevAll().length+1,i=!0),s.animate({left:-c.width()*n},500,(function(){i&&s.css("left",-c.width())}))}(),"fade"===t.fx&&w()),d=r.prevAll(".et_slidecontent").length+1,""!=t.linksNav&&m(),"images"!==t.sliderType&&"simple"!==t.sliderType||(i.find("li").removeClass("et_shortcodes_active_control"),i.find("li").eq(d-1).addClass("et_shortcodes_active_control")),!1;var a,f}if(t.auto){interval_shortcodes=setInterval((function(){b||(g(d===l?1:d+1,1),""!=t.linksNav&&m())}),t.autoSpeed);var b=!1}function w(t){e.css({display:"none",opacity:"0"}),r.css({opacity:"0",display:"block"}).animate({opacity:1},700)}function y(){d===l?g(1,1):g(d+1),""!=t.linksNav&&m()}function x(){g(1===d?l:d-1,-1),""!=t.linksNav&&m()}t.pauseOnHover&&o.hover((function(){b=!0}),(function(){b=!1})),"slide"===t.fx&&n(window).resize((function(){s.find(">div").css({width:c.width()}),s.css("left",-c.width()*d)})),function(){var e=o.find(".et_slidecontent").length,r="";if(e>1&&("images"===t.sliderType||"simple"===t.sliderType)){o.append('"),i=o.find(".et_shortcodes_controls");for(var a=0;a';i.prepend(r),i.find("li:first").addClass("et_shortcodes_active_control"),i.find("a").click((function(){var t=n(this).parent("li").prevAll().length+1;return t==d||g(t,t>d?1:-1),!1})),o.find(".et_shortcodes_controls_arrows").find("a").click((function(){var t,e=jQuery(this);return e.hasClass("et_sc_nav_next")&&y(),e.hasClass("et_sc_nav_prev")&&x(),i.find("li").removeClass("et_shortcodes_active_control"),t=d-1,i.find("li").eq(t).addClass("et_shortcodes_active_control"),!1}))}else"images"!==t.sliderType&&"simple"!==t.sliderType&&(o.prepend('"),o.find(".et_shortcodes_mobile_nav").find("a").click((function(){var t=jQuery(this);return t.hasClass("et_sc_nav_next")&&y(),t.hasClass("et_sc_nav_prev")&&x(),!1})))}()}))},window.et_shortcodes_init=function(t){var e=void 0!==t?t:n("body"),r=e.find(".pricing-table a.icon-button");$et_tooltip=e.find(".et-tooltip"),$et_tooltip.on("mouseover mouseout",(function(t){"mouseover"==t.type?n(this).find(".et-tooltip-box").stop(!0,!0).animate({opacity:"show",bottom:"25px"},300):n(this).find(".et-tooltip-box").delay(200).animate({opacity:"hide",bottom:"35px"},300)})),$et_learn_more=e.find(".et-learn-more .heading-more"),$et_learn_more.on("click",(function(){n(this).hasClass("open")?n(this).removeClass("open"):n(this).addClass("open"),n(this).parent(".et-learn-more").find(".learn-more-content").animate({opacity:"toggle",height:"toggle"},300)})),e.find(".et-learn-more").not(".et-open").find(".learn-more-content").css({visibility:"visible",display:"none"}),r.each((function(){var t=n(this),e=t.width(),r=t.innerWidth();t.css({width:e,marginLeft:"-"+r/2+"px",visibility:"visible"})})),e.find(".et-tabs-container, .tabs-left, .et-simple-slider, .et-image-slider").each((function(t){var e=n(this).attr("class"),r=/et_sliderauto_speed_(\d+)/g.exec(e),i=/et_sliderauto_(\w+)/g.exec(e),o=/et_slidertype_(\w+)/g.exec(e),a=/et_sliderfx_(\w+)/g.exec(e),s=".et-tabs-content",c={};c.linksNav=n(this).find(".et-tabs-control li a"),c.findParent=!0,c.fx=a[1],c.auto="false"!==i[1],c.autoSpeed=r[1],"simple"===o[1]?((c={}).fx=a[1],c.auto="false"!==i[1],c.autoSpeed=r[1],c.sliderType="simple",s=".et-simple-slides"):"images"===o[1]&&(c.sliderType="images",c.linksNav="#"+n(this).attr("id")+" .controllers a.switch",c.findParent=!1,c.lengthElement="#"+n(this).attr("id")+" a.switch",s=".et-image-slides"),n(this).find(s).et_shortcodes_switcher(c)}))},jQuery(document).ready((function(t){window.et_shortcodes_init()}))},function(t,e){!function(t){"use strict";t.fn.fitVids=function(e){var n={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("div");i.innerHTML='

    x

    ',r.appendChild(i.childNodes[1])}return e&&t.extend(n,e),this.each((function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];n.customSelector&&e.push(n.customSelector);var r=".fitvidsignore";n.ignore&&(r=r+", "+n.ignore);var i=t(this).find(e.join(","));(i=(i=i.not("object object")).not(r)).each((function(){var e=t(this);if(!(e.parents(r).length>0||"embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){e.css("height")||e.css("width")||!isNaN(e.attr("height"))&&!isNaN(e.attr("width"))||(e.attr("height",9),e.attr("width",16));var n=("object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height())/(isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10));if(!e.attr("name")){var i="fitvid"+t.fn.fitVids._count;e.attr("name",i),t.fn.fitVids._count++}e.wrap('
    ').parent(".fluid-width-video-wrapper").css("padding-top",100*n+"%"),e.removeAttr("height").removeAttr("width")}}))}))},t.fn.fitVids._count=0}(window.jQuery||window.Zepto)},function(t,e){ !function(){"use strict";function t(r){if(!r)throw new Error("No options passed to Waypoint constructor");if(!r.element)throw new Error("No element option passed to Waypoint constructor");if(!r.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,r),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=r.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),n[this.key]=this,e+=1}var e=0,n={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete n[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var r in n)e.push(n[r]);for(var i=0,o=e.length;o>i;i++)e[i][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.invokeAll("enable")},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=i.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+n,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,r[t.waypointContextKey]=this,n+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var n=0,r={},i=window.Waypoint,o=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off(".waypoints"),delete r[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",(function(){e.didResize||(e.didResize=!0,i.requestAnimationFrame(t))}))},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",(function(){(!e.didScroll||i.isTouch)&&(e.didScroll=!0,i.requestAnimationFrame(t))}))},e.prototype.handleResize=function(){i.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var n in e){var r=e[n],i=r.newScroll>r.oldScroll?r.forward:r.backward;for(var o in this.waypoints[n]){var a=this.waypoints[n][o],s=r.oldScroll=a.triggerPoint;(s&&c||!s&&!c)&&(a.queueTrigger(i),t[a.group.id]=a.group)}}for(var u in t)t[u].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?i.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?i.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var n in this.waypoints[e])t.push(this.waypoints[e][n]);for(var r=0,i=t.length;i>r;r++)t[r].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,n=e?void 0:this.adapter.offset(),r={};for(var o in this.handleScroll(),t={horizontal:{contextOffset:e?0:n.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:n.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var a=t[o];for(var s in this.waypoints[o]){var c,u,l,d,f=this.waypoints[o][s],p=f.options.offset,_=f.triggerPoint,h=0,v=null==_;f.element!==f.element.window&&(h=f.adapter.offset()[a.offsetProp]),"function"==typeof p?p=p.apply(f):"string"==typeof p&&(p=parseFloat(p),f.options.offset.indexOf("%")>-1&&(p=Math.ceil(a.contextDimension*p/100))),c=a.contextScroll-a.contextOffset,f.triggerPoint=h+c-p,u=_=a.oldScroll,d=!u&&!l,!v&&(u&&l)?(f.queueTrigger(a.backward),r[f.group.id]=f.group):(!v&&d||v&&a.oldScroll>=f.triggerPoint)&&(f.queueTrigger(a.forward),r[f.group.id]=f.group)}}return i.requestAnimationFrame((function(){for(var t in r)r[t].flushTriggers()})),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in r)r[t].refresh()},e.findByElement=function(t){return r[t.waypointContextKey]},window.onload=function(){o&&o(),e.refreshAll()},i.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},i.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function n(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),r[this.axis][this.name]=this}var r={vertical:{},horizontal:{}},i=window.Waypoint;n.prototype.add=function(t){this.waypoints.push(t)},n.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},n.prototype.flushTriggers=function(){for(var n in this.triggerQueues){var r=this.triggerQueues[n],i="up"===n||"left"===n;r.sort(i?e:t);for(var o=0,a=r.length;a>o;o+=1){var s=r[o];(s.options.continuous||o===r.length-1)&&s.trigger([n])}}this.clearTriggerQueues()},n.prototype.next=function(e){this.waypoints.sort(t);var n=i.Adapter.inArray(e,this.waypoints);return n===this.waypoints.length-1?null:this.waypoints[n+1]},n.prototype.previous=function(e){this.waypoints.sort(t);var n=i.Adapter.inArray(e,this.waypoints);return n?this.waypoints[n-1]:null},n.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},n.prototype.remove=function(t){var e=i.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},n.prototype.first=function(){return this.waypoints[0]},n.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},n.findOrCreate=function(t){return r[t.axis][t.name]||new n(t)},i.Group=n}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,n=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],(function(e,n){t.prototype[n]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[n].apply(this.$element,t)}})),e.each(["extend","inArray","isEmptyObject"],(function(n,r){t[r]=e[r]})),n.adapters.push({name:"jquery",Adapter:t}),n.Adapter=t}(),function(){"use strict";function t(t){return function(){var n=[],r=arguments[0];return t.isFunction(arguments[0])&&((r=t.extend({},arguments[1])).handler=arguments[0]),this.each((function(){var i=t.extend({},r,{element:this});"string"==typeof i.context&&(i.context=t(this).closest(i.context)[0]),n.push(new e(i))})),n}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}()},function(t,e,n){var r,i,o; i=[n(0)],void 0===(o="function"==typeof(r=function(t){var e,n,r,i,o,a,s="Close",c="BeforeClose",u="MarkupParse",l="Open",d="Change",f="mfp",p=".mfp",_="mfp-ready",h="mfp-removing",v="mfp-prevent-close",m=function(){},g=!!window.jQuery,b=t(window),w=function(t,n){e.ev.on(f+t+p,n)},y=function(e,n,r,i){var o=document.createElement("div");return o.className="mfp-"+e,r&&(o.innerHTML=r),i?n&&n.appendChild(o):(o=t(o),n&&o.appendTo(n)),o},x=function(n,r){e.ev.triggerHandler(f+n,r),e.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),e.st.callbacks[n]&&e.st.callbacks[n].apply(e,t.isArray(r)?r:[r]))},C=function(n){return n===a&&e.currTemplate.closeBtn||(e.currTemplate.closeBtn=t(e.st.closeMarkup.replace("%title%",e.st.tClose)),a=n),e.currTemplate.closeBtn},k=function(){t.magnificPopup.instance||((e=new m).init(),t.magnificPopup.instance=e)};m.prototype={constructor:m,init:function(){var n=navigator.appVersion;e.isIE7=-1!==n.indexOf("MSIE 7."),e.isIE8=-1!==n.indexOf("MSIE 8."),e.isLowIE=e.isIE7||e.isIE8,e.isAndroid=/android/gi.test(n),e.isIOS=/iphone|ipad|ipod/gi.test(n),e.supportsTransition=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(void 0!==t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1}(),e.probablyMobile=e.isAndroid||e.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),r=t(document),e.popupsCache={}},open:function(n){var i;if(!1===n.isObj){e.items=n.items.toArray(),e.index=0;var a,s=n.items;for(i=0;i(t||b.height())},_setFocus:function(){(e.st.focus?e.content.find(e.st.focus).eq(0):e.wrap).focus()},_onFocusIn:function(n){return n.target===e.wrap[0]||t.contains(e.wrap[0],n.target)?void 0:(e._setFocus(),!1)},_parseMarkup:function(e,n,r){var i;r.data&&(n=t.extend(r.data,n)),x(u,[e,n,r]),t.each(n,(function(t,n){if(void 0===n||!1===n)return!0;if((i=t.split("_")).length>1){var r=e.find(p+"-"+i[0]);if(r.length>0){var o=i[1];"replaceWith"===o?r[0]!==n[0]&&r.replaceWith(n):"img"===o?r.is("img")?r.attr("src",n):r.replaceWith(''):r.attr(i[1],n)}}else e.find(p+"-"+t).html(n)}))},_getScrollbarSize:function(){if(void 0===e.scrollbarSize){var t=document.createElement("div");t.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),e.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return e.scrollbarSize}},t.magnificPopup={instance:null,proto:m.prototype,modules:[],open:function(e,n){return k(),(e=e?t.extend(!0,{},e):{}).isObj=!0,e.index=n||0,this.instance.open(e)},close:function(){return t.magnificPopup.instance&&t.magnificPopup.instance.close()},registerModule:function(e,n){n.options&&(t.magnificPopup.defaults[e]=n.options),t.extend(this.proto,n.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},t.fn.magnificPopup=function(n){k();var r=t(this);if("string"==typeof n)if("open"===n){var i,o=g?r.data("magnificPopup"):r[0].magnificPopup,a=parseInt(arguments[1],10)||0;o.items?i=o.items[a]:(i=r,o.delegate&&(i=i.find(o.delegate)),i=i.eq(a)),e._openClick({mfpEl:i},r,o)}else e.isOpen&&e[n].apply(e,Array.prototype.slice.call(arguments,1));else n=t.extend(!0,{},n),g?r.data("magnificPopup",n):r[0].magnificPopup=n,e.addGroup(r,n);return r};var j,O,S,T="inline",I=function(){S&&(O.after(S.addClass(j)).detach(),S=null)};t.magnificPopup.registerModule(T,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){e.types.push(T),w(s+"."+T,(function(){I()}))},getInline:function(n,r){if(I(),n.src){var i=e.st.inline,o=t(n.src);if(o.length){var a=o[0].parentNode;a&&a.tagName&&(O||(j=i.hiddenClass,O=y(j),j="mfp-"+j),S=o.after(O).detach().removeClass(j)),e.updateStatus("ready")}else e.updateStatus("error",i.tNotFound),o=t("
    ");return n.inlineElement=o,o}return e.updateStatus("ready"),e._parseMarkup(r,{},n),r}}});var A,E="ajax",M=function(){A&&t(document.body).removeClass(A)},P=function(){M(),e.req&&e.req.abort()};t.magnificPopup.registerModule(E,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){e.types.push(E),A=e.st.ajax.cursor,w(s+"."+E,P),w("BeforeChange."+E,P)},getAjax:function(n){A&&t(document.body).addClass(A),e.updateStatus("loading");var r=t.extend({url:n.src,success:function(r,i,o){var a={data:r,xhr:o};x("ParseAjax",a),e.appendContent(t(a.data),E),n.finished=!0,M(),e._setFocus(),setTimeout((function(){e.wrap.addClass(_)}),16),e.updateStatus("ready"),x("AjaxContentAdded")},error:function(){M(),n.finished=n.loadError=!0,e.updateStatus("error",e.st.ajax.tError.replace("%url%",n.src))}},e.st.ajax.settings);return e.req=t.ajax(r),""}}});var z,L,R=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var r=e.st.image.titleSrc;if(r){if(t.isFunction(r))return r.call(e,n);if(n.el)return n.el.attr(r)||""}return""};t.magnificPopup.registerModule("image",{options:{markup:'
    ',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var n=e.st.image,r=".image";e.types.push("image"),w(l+r,(function(){"image"===e.currItem.type&&n.cursor&&t(document.body).addClass(n.cursor)})),w(s+r,(function(){n.cursor&&t(document.body).removeClass(n.cursor),b.off("resize"+p)})),w("Resize"+r,e.resizeImage),e.isLowIE&&w("AfterChange",e.resizeImage)},resizeImage:function(){var t=e.currItem;if(t&&t.img&&e.st.image.verticalFit){var n=0;e.isLowIE&&(n=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",e.wH-n)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,z&&clearInterval(z),t.isCheckingImgSize=!1,x("ImageHasSize",t),t.imgHidden&&(e.content&&e.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(t){var n=0,r=t.img[0],i=function(o){z&&clearInterval(z),z=setInterval((function(){return r.naturalWidth>0?void e._onImageHasSize(t):(n>200&&clearInterval(z),void(3==++n?i(10):40===n?i(50):100===n&&i(500)))}),o)};i(1)},getImage:function(n,r){var i=0,o=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===e.currItem&&(e._onImageHasSize(n),e.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,x("ImageLoadComplete")):200>++i?setTimeout(o,100):a())},a=function(){n&&(n.img.off(".mfploader"),n===e.currItem&&(e._onImageHasSize(n),e.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=e.st.image,c=r.find(".mfp-img");if(c.length){var u=document.createElement("img");u.className="mfp-img",n.el&&n.el.find("img").length&&(u.alt=n.el.find("img").attr("alt")),n.img=t(u).on("load.mfploader",o).on("error.mfploader",a),u.src=n.src,c.is("img")&&(n.img=n.img.clone()),(u=n.img[0]).naturalWidth>0?n.hasSize=!0:u.width||(n.hasSize=!1)}return e._parseMarkup(r,{title:R(n),img_replaceWith:n.img},n),e.resizeImage(),n.hasSize?(z&&clearInterval(z),n.loadError?(r.addClass("mfp-loading"),e.updateStatus("error",s.tError.replace("%url%",n.src))):(r.removeClass("mfp-loading"),e.updateStatus("ready")),r):(e.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,r.addClass("mfp-loading"),e.findImageSize(n)),r)}}}),t.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t,n=e.st.zoom,r=".zoom";if(n.enabled&&e.supportsTransition){var i,o,a=n.duration,u=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),r="all "+n.duration/1e3+"s "+n.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return i["-webkit-"+o]=i["-moz-"+o]=i["-o-"+o]=i[o]=r,e.css(i),e},l=function(){e.content.css("visibility","visible")};w("BuildControls"+r,(function(){if(e._allowZoom()){if(clearTimeout(i),e.content.css("visibility","hidden"),!(t=e._getItemToZoom()))return void l();(o=u(t)).css(e._getOffset()),e.wrap.append(o),i=setTimeout((function(){o.css(e._getOffset(!0)),i=setTimeout((function(){l(),setTimeout((function(){o.remove(),t=o=null,x("ZoomAnimationEnded")}),16)}),a)}),16)}})),w(c+r,(function(){if(e._allowZoom()){if(clearTimeout(i),e.st.removalDelay=a,!t){if(!(t=e._getItemToZoom()))return;o=u(t)}o.css(e._getOffset(!0)),e.wrap.append(o),e.content.css("visibility","hidden"),setTimeout((function(){o.css(e._getOffset())}),16)}})),w(s+r,(function(){e._allowZoom()&&(l(),o&&o.remove(),t=null)}))}},_allowZoom:function(){return"image"===e.currItem.type},_getItemToZoom:function(){return!!e.currItem.hasSize&&e.currItem.img},_getOffset:function(n){var r,i=(r=n?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem)).offset(),o=parseInt(r.css("padding-top"),10),a=parseInt(r.css("padding-bottom"),10);i.top-=t(window).scrollTop()-o;var s={width:r.width(),height:(g?r.innerHeight():r[0].offsetHeight)-a-o};return void 0===L&&(L=void 0!==document.createElement("p").style.MozTransform),L?s["-moz-transform"]=s.transform="translate("+i.left+"px,"+i.top+"px)":(s.left=i.left,s.top=i.top),s}}});var W="iframe",H=function(t){if(e.currTemplate[W]){var n=e.currTemplate[W].find("iframe");n.length&&(t||(n[0].src="//about:blank"),e.isIE8&&n.css("display",t?"block":"none"))}};t.magnificPopup.registerModule(W,{options:{markup:'
    ',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){e.types.push(W),w("BeforeChange",(function(t,e,n){e!==n&&(e===W?H():n===W&&H(!0))})),w(s+"."+W,(function(){H()}))},getIframe:function(n,r){var i=n.src,o=e.st.iframe;t.each(o.patterns,(function(){return i.indexOf(this.index)>-1?(this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1):void 0}));var a={};return o.srcAction&&(a[o.srcAction]=i),e._parseMarkup(r,a,n),e.updateStatus("ready"),r}}});var F=function(t){var n=e.items.length;return t>n-1?t-n:0>t?n+t:t},D=function(t,e,n){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,n)};t.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=e.st.gallery,i=".mfp-gallery",a=Boolean(t.fn.mfpFastClick);return e.direction=!0,!(!n||!n.enabled)&&(o+=" mfp-gallery",w(l+i,(function(){n.navigateByImgClick&&e.wrap.on("click"+i,".mfp-img",(function(){return e.items.length>1?(e.next(),!1):void 0})),r.on("keydown"+i,(function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()}))})),w("UpdateStatus"+i,(function(t,n){n.text&&(n.text=D(n.text,e.currItem.index,e.items.length))})),w(u+i,(function(t,r,i,o){var a=e.items.length;i.counter=a>1?D(n.tCounter,o.index,a):""})),w("BuildControls"+i,(function(){if(e.items.length>1&&n.arrows&&!e.arrowLeft){var r=n.arrowMarkup,i=e.arrowLeft=t(r.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(v),o=e.arrowRight=t(r.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(v),s=a?"mfpFastClick":"click";i[s]((function(){e.prev()})),o[s]((function(){e.next()})),e.isIE7&&(y("b",i[0],!1,!0),y("a",i[0],!1,!0),y("b",o[0],!1,!0),y("a",o[0],!1,!0)),e.container.append(i.add(o))}})),w(d+i,(function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout((function(){e.preloadNearbyImages(),e._preloadTimeout=null}),16)})),void w(s+i,(function(){r.off(i),e.wrap.off("click"+i),e.arrowLeft&&a&&e.arrowLeft.add(e.arrowRight).destroyMfpFastClick(),e.arrowRight=e.arrowLeft=null})))},next:function(){e.direction=!0,e.index=F(e.index+1),e.updateItemHTML()},prev:function(){e.direction=!1,e.index=F(e.index-1),e.updateItemHTML()},goTo:function(t){e.direction=t>=e.index,e.index=t,e.updateItemHTML()},preloadNearbyImages:function(){var t,n=e.st.gallery.preload,r=Math.min(n[0],e.items.length),i=Math.min(n[1],e.items.length);for(t=1;t<=(e.direction?i:r);t++)e._preloadItem(e.index+t);for(t=1;t<=(e.direction?r:i);t++)e._preloadItem(e.index-t)},_preloadItem:function(n){if(n=F(n),!e.items[n].preloaded){var r=e.items[n];r.parsed||(r=e.parseEl(n)),x("LazyLoad",r),"image"===r.type&&(r.img=t('').on("load.mfploader",(function(){r.hasSize=!0})).on("error.mfploader",(function(){r.hasSize=!0,r.loadError=!0,x("LazyLoadError",r)})).attr("src",r.src)),r.preloaded=!0}}}});var B="retina";t.magnificPopup.registerModule(B,{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,(function(t){return"@2x"+t}))},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var t=e.st.retina,n=t.ratio;(n=isNaN(n)?n():n)>1&&(w("ImageHasSize."+B,(function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/n,width:"100%"})})),w("ElementParse."+B,(function(e,r){r.src=t.replaceSrc(r,n)})))}}}}),function(){var e="ontouchstart"in window,n=function(){b.off("touchmove"+r+" touchend"+r)},r=".mfpFastClick";t.fn.mfpFastClick=function(i){return t(this).each((function(){var o,a,s,c,u,l,d,f=t(this);e&&f.on("touchstart"+r,(function(t){u=!1,d=1,l=t.originalEvent?t.originalEvent.touches[0]:t.touches[0],s=l.clientX,c=l.clientY,b.on("touchmove"+r,(function(t){l=t.originalEvent?t.originalEvent.touches:t.touches,d=l.length,l=l[0],(Math.abs(l.clientX-s)>10||Math.abs(l.clientY-c)>10)&&(u=!0,n())})).on("touchend"+r,(function(t){n(),u||d>1||(o=!0,t.preventDefault(),clearTimeout(a),a=setTimeout((function(){o=!1}),1e3),i())}))})),f.on("click"+r,(function(){o||i()}))}))},t.fn.destroyMfpFastClick=function(){t(this).off("touchstart"+r+" click"+r),e&&b.off("touchmove"+r+" touchend"+r)}}(),k()})?r.apply(e,i):r)||(t.exports=o)},function(t,e){ !function(t,e,n){var r,i=document,o=t.event.special,a=i.documentMode,s="onhashchange"in e&&(void 0===a||a>7);function c(t){return"#"+(t=t||location.href).replace(/^[^#]*#?(.*)$/,"$1")}t.fn.hashchange=function(t){return t?this.bind("hashchange",t):this.trigger("hashchange")},t.fn.hashchange.delay=50,o.hashchange=t.extend(o.hashchange,{setup:function(){if(s)return!1;t(r.start)},teardown:function(){if(s)return!1;t(r.stop)}}),r=function(){var n,r,o,a={},u=c(),l=function(t){return t},d=l,f=l;function p(){var r=c(),i=f(u);r!==u?(d(u=r,i),t(e).trigger("hashchange")):i!==u&&(location.href=location.href.replace(/#.*/,"")+i),n=setTimeout(p,t.fn.hashchange.delay)}return a.start=function(){n||p()},a.stop=function(){n&&clearTimeout(n),n=void 0},void 0!==t.browser&&t.browser.msie&&!s&&(a.start=function(){r||(o=(o=t.fn.hashchange.src)&&o+c(),r=t('