!function(a){"use strict";a.fn.fusion_footer_parallax=function(){var e,o,t=a(this),i=a("#main"),r=0,n=0,s={},d={};t.length&&setTimeout(function(){var h="fixed"===t.css("position")?a("#wrapper").outerHeight():a("#wrapper").outerHeight()-t.outerHeight();a("body").hasClass("layout-boxed-mode")&&!a("body").hasClass("fusion-top-header")&&(r=a("body").offset().top,n=a("body").outerHeight(!0)-a("body").outerHeight()-r),t.outerHeight()+n<a(window).height()&&h>a(window).height()&&("top"===avadaParallaxFooterVars.header_position||"top"!==avadaParallaxFooterVars.header_position&&a(window).height()>a(".side-header-wrapper").height())&&Modernizr.mq("only screen and (min-width:"+parseInt(avadaParallaxFooterVars.side_header_break_point,10)+"px)")&&!Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait)")&&!Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape)")?(s=a("body").hasClass("layout-boxed-mode")?{"margin-left":"auto","margin-right":"auto",padding:"","max-width":"var(--site_width)"}:{margin:"",padding:"","max-width":""},a("body").hasClass("layout-boxed-mode")&&!a("body").hasClass("fusion-top-header")&&(s.bottom=n),t.css(s),d["margin-bottom"]=t.outerHeight()+n,1<=a(".tfs-slider").length&&1==a(".tfs-slider").data("parallax")&&t.hasClass("fusion-footer-parallax")&&(e=a(".tfs-slider").closest("#sliders-container").outerHeight(),o=t.outerHeight(),e>o?d["min-height"]=e+10:o>e&&(d["min-height"]=o+10)),t.addClass("awb-footer-fixed"),i.css(d)):(t.css({margin:"0",padding:"0",bottom:0,"max-width":""}),i.css({"margin-bottom":"","min-height":""}),t.removeClass("awb-footer-fixed"))},200)}}(jQuery),jQuery(window).on("load",function(){jQuery(".fusion-footer-parallax").fusion_footer_parallax(),jQuery(window).on("fusion-resize-vertical fusion-parallax-footer-refresh",function(){jQuery(".fusion-footer-parallax").fusion_footer_parallax()})});