!function(e){"use strict";e.fn.fusionSwitchTabOnLinkClick=function(i){var t,n;n="#_"===(t=i||("#_"===document.location.hash.substring(0,2)?document.location.hash.replace("#_","#"):document.location.hash)).substring(0,2)?t.split("#_")[1]:t.split("#")[1],t&&e(this).find('.nav-tabs li a[href="'+t+'"]').length&&(e(this).find(".nav-tabs li").removeClass("active"),e(this).find('.nav-tabs li a[href="'+t+'"]').parent().addClass("active"),e(this).find(".tab-content .tab-pane").removeClass("in").removeClass("active"),e(this).find('.tab-content .tab-pane[id="'+n+'"]').addClass("in").addClass("active")),t&&e(this).find('.nav-tabs li a[id="'+n+'"]').length&&(e(this).find(".nav-tabs li").removeClass("active"),e(this).find('.nav-tabs li a[id="'+n+'"]').parent().addClass("active"),e(this).find(".tab-content .tab-pane").removeClass("in").removeClass("active"),e(this).find('.tab-content .tab-pane[id="'+e(this).find('.nav-tabs li a[id="'+n+'"]').attr("href").split("#")[1]+'"]').addClass("in").addClass("active"))}}(jQuery),jQuery(document).on("ready fusion-element-render-fusion_tabs",function(i,t){var n=void 0!==t?jQuery('div[data-cid="'+t+'"]').find(".fusion-tabs"):jQuery(".fusion-tabs"),e=void 0!==t?jQuery('div[data-cid="'+t+'"]').find(".nav-tabs li"):jQuery(".nav-tabs li");n.each(function(){jQuery(this).fusionSwitchTabOnLinkClick()}),e.on("click",function(i){var t,n=jQuery(this),e=n.find(".tab-link").attr("href");n.parents(".fusion-tabs").find(".nav li").removeClass("active"),n.parents(".fusion-tabs").find(e).find(".fusion-woo-slider").length&&(t=0,n.parents(".fusion-tabs").hasClass("horizontal-tabs")&&(t=n.parents(".fusion-tabs").find(".nav").height()),n.parents(".fusion-tabs").height(n.parents(".fusion-tabs").find(".tab-content").outerHeight(!0)+t)),setTimeout(function(){"function"==typeof jQuery.fn.reinitializeGoogleMap&&n.parents(".fusion-tabs").find(e).find(".shortcode-map").each(function(){jQuery(this).reinitializeGoogleMap()}),n.parents(".fusion-tabs").find(e).find(".fusion-carousel").length&&"function"==typeof generateCarousel&&generateCarousel(),n.parents(".fusion-tabs").find(e).find(".fusion-portfolio").each(function(){var i=jQuery(this).find(".fusion-portfolio-wrapper"),t=i.attr("id");t&&(i=jQuery("#"+t)),i.isotope()}),n.parents(".fusion-tabs").find(e).find(".fusion-gallery").each(function(){jQuery(this).isotope()}),"function"==typeof jQuery.fn.fusionCalcFlipBoxesHeight&&n.parents(".fusion-tabs").find(e).find(".fusion-flip-boxes").not(".equal-heights").find(".flip-box-inner-wrapper").each(function(){jQuery(this).fusionCalcFlipBoxesHeight()}),"function"==typeof jQuery.fn.fusionCalcFlipBoxesEqualHeights&&n.parents(".fusion-tabs").find(e).find(".fusion-flip-boxes.equal-heights").each(function(){jQuery(this).fusionCalcFlipBoxesEqualHeights()}),"function"==typeof jQuery.fn.equalHeights&&n.parents(".fusion-tabs").find(e).find(".fusion-fullwidth.fusion-equal-height-columns").each(function(){jQuery(this).find(".fusion-layout-column .fusion-column-wrapper").equalHeights()}),n.parents(".fusion-tabs").find(e).find(".fusion-woo-slider").length&&n.parents(".fusion-tabs").css("height",""),n.parents(".fusion-tabs").find(e).find(".crossfade-images").each(function(){fusionResizeCrossfadeImagesContainer(jQuery(this)),fusionResizeCrossfadeImages(jQuery(this))}),n.parents(".fusion-tabs").find(e).find(".fusion-blog-shortcode").each(function(){jQuery(this).find(".fusion-blog-layout-grid").isotope()}),n.parents(".fusion-tabs").find(e).find(".fusion-testimonials .reviews").each(function(){jQuery(this).css("height",jQuery(this).children(".active-testimonial").height())}),"function"==typeof calcSelectArrowDimensions&&calcSelectArrowDimensions(),"function"==typeof wrapGravitySelects&&wrapGravitySelects(),jQuery(window).trigger("resize")},350),i.preventDefault()}),void 0!==t&&(e.first().trigger("click"),e.first().addClass("active")),Modernizr.mq("only screen and (max-width: "+fusionTabVars.content_break_point+"px)")&&jQuery(".tabs-vertical").addClass("tabs-horizontal").removeClass("tabs-vertical"),jQuery(window).on("resize",function(){Modernizr.mq("only screen and (max-width: "+fusionTabVars.content_break_point+"px)")?(jQuery(".tabs-vertical").addClass("tabs-original-vertical"),jQuery(".tabs-vertical").addClass("tabs-horizontal").removeClass("tabs-vertical")):jQuery(".tabs-original-vertical").removeClass("tabs-horizontal").addClass("tabs-vertical")})}),jQuery(window).load(function(){jQuery(".vertical-tabs").length&&jQuery(".vertical-tabs .tab-content .tab-pane").each(function(){var i;jQuery(this).parents(".vertical-tabs").hasClass("clean")?jQuery(this).css("min-height",jQuery(".vertical-tabs .nav-tabs").outerHeight()-10):jQuery(this).css("min-height",jQuery(".vertical-tabs .nav-tabs").outerHeight()),jQuery(this).find(".video-shortcode").length&&(i=parseInt(jQuery(this).find(".fusion-video").css("max-width").replace("px",""),10),jQuery(this).css({float:"none","max-width":i+60}))}),jQuery(window).on("resize",function(){jQuery(".vertical-tabs").length&&jQuery(".vertical-tabs .tab-content .tab-pane").css("min-height",jQuery(".vertical-tabs .nav-tabs").outerHeight())})});