function slidingBarHandling(){var i=jQuery(".fusion-sliding-bar-area"),n=i.children(".fusion-sliding-bar");i.hasClass("open")?(i.removeClass("open"),jQuery(".fusion-icon-sliding-bar").removeClass("fusion-main-menu-icon-active"),jQuery("body").removeClass("fusion-sliding-bar-active"),(i.hasClass("fusion-sliding-bar-position-top")||i.hasClass("fusion-sliding-bar-position-bottom"))&&n.slideUp(240,"easeOutQuad")):jQuery(this).hasClass("fusion-sb-close")||(i.addClass("open"),jQuery(".fusion-icon-sliding-bar").addClass("fusion-main-menu-icon-active"),jQuery("body").addClass("fusion-sliding-bar-active"),(i.hasClass("fusion-sliding-bar-position-top")||i.hasClass("fusion-sliding-bar-position-bottom"))&&n.slideDown(240,"easeOutQuad"),setTimeout(function(){"function"==typeof jQuery.fn.reinitializeGoogleMap&&n.find(".shortcode-map").each(function(){jQuery(this).reinitializeGoogleMap()}),n.find(".fusion-carousel").length&&"function"==typeof generateCarousel&&generateCarousel(),n.find(".fusion-portfolio").each(function(){var i=jQuery(this).find(".fusion-portfolio-wrapper"),n=i.attr("id");n&&(i=jQuery("#"+n)),i.isotope()}),n.find(".fusion-gallery").each(function(){jQuery(this).isotope()}),"function"==typeof jQuery.fn.fusionCalcFlipBoxesHeight&&n.find(".fusion-flip-boxes").not(".equal-heights").find(".flip-box-inner-wrapper").each(function(){jQuery(this).fusionCalcFlipBoxesHeight()}),"function"==typeof jQuery.fn.fusionCalcFlipBoxesEqualHeights&&n.find(".fusion-flip-boxes.equal-heights").each(function(){jQuery(this).fusionCalcFlipBoxesEqualHeights()}),"function"==typeof jQuery.fn.equalHeights&&n.find(".fusion-fullwidth.fusion-equal-height-columns").each(function(){jQuery(this).find(".fusion-layout-column .fusion-column-wrapper").equalHeights()}),n.find(".crossfade-images").each(function(){fusionResizeCrossfadeImagesContainer(jQuery(this)),fusionResizeCrossfadeImages(jQuery(this))}),n.find(".fusion-blog-shortcode").each(function(){jQuery(this).find(".fusion-blog-layout-grid").isotope()}),n.find(".fusion-testimonials .reviews").each(function(){jQuery(this).css("height",jQuery(this).children(".active-testimonial").height())}),"function"==typeof calcSelectArrowDimensions&&calcSelectArrowDimensions(),jQuery(window).trigger("resize")},350))}jQuery(document).ready(function(){jQuery(".fusion-sliding-bar-area.open-on-load").length&&(slidingBarHandling(),jQuery(".fusion-sliding-bar-area").removeClass("open-on-load")),(jQuery(".fusion-sliding-bar-area").hasClass("fusion-sliding-bar-position-right")||jQuery(".fusion-sliding-bar-area").hasClass("fusion-sliding-bar-position-left"))&&jQuery(".fusion-sliding-bar-content-wrapper").limitScrollToContainer(),"menu"!==jQuery(".fusion-sliding-bar-area").data("toggle")&&(Modernizr.mq("only screen and (max-width: "+jQuery(".fusion-sliding-bar-area").data("breakpoint")+"px)")?(jQuery(".fusion-sliding-bar-area").removeClass("fusion-sliding-bar-toggle-"+jQuery(".fusion-sliding-bar-area").data("toggle")),jQuery(".fusion-sliding-bar-area").addClass("fusion-sliding-bar-toggle-triangle")):(jQuery(".fusion-sliding-bar-area").removeClass("fusion-sliding-bar-toggle-triangle"),jQuery(".fusion-sliding-bar-area").addClass("fusion-sliding-bar-toggle-"+jQuery(".fusion-sliding-bar-area").data("toggle"))),jQuery(window).on("fusion-resize-horizontal",function(){Modernizr.mq("only screen and (max-width: "+jQuery(".fusion-sliding-bar-area").data("breakpoint")+"px)")?(jQuery(".fusion-sliding-bar-area").removeClass("fusion-sliding-bar-toggle-"+jQuery(".fusion-sliding-bar-area").data("toggle")),jQuery(".fusion-sliding-bar-area").addClass("fusion-sliding-bar-toggle-triangle")):(jQuery(".fusion-sliding-bar-area").removeClass("fusion-sliding-bar-toggle-triangle"),jQuery(".fusion-sliding-bar-area").addClass("fusion-sliding-bar-toggle-"+jQuery(".fusion-sliding-bar-area").data("toggle")))}))}),jQuery(window).on("load",function(){jQuery(document.body).on("click",".fusion-sb-toggle, .fusion-icon-sliding-bar, .fusion-sb-close",function(i){i.preventDefault(),slidingBarHandling()})}),jQuery(window).on("load",function(){jQuery(".fusion-modal").bind("show.bs.modal",function(){var i,n=jQuery(".fusion-sliding-bar");setTimeout(function(){n.find(".fusion-testimonials").length&&(i=n.find(".fusion-testimonials .reviews").children(".active-testimonial"),n.find(".fusion-testimonials .reviews").height(i.height()))},350)})});