jQuery(function(e){document.documentElement.className="js";navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/),e("#wpadminbar").height();var _=dsm_easy_tb_js.threshold,d=dsm_easy_tb_js.first_background_color,r=dsm_easy_tb_js.second_background_color;if(e(".et-l--header").length&&e(".dsm_fixed_header").length){if(e(".dsm_fixed_header_auto").length,e(".dsm_fixed_header_scroll").length&&e(window).scroll(function(){e(document).scrollTop()>_?(e(".dsm_fixed_header_scroll").addClass("dsm_fixed_header_scroll_active"),e(".dsm_fixed_header_scroll").addClass("dsm_fixed_header_scrolled"),""!==d&&e(".dsm_fixed_header_scroll .et-l--header .et_pb_section:nth(0)").attr("style","background-color:"+d+";"),""!==r&&e(".dsm_fixed_header_scroll .et-l--header .et_pb_section:nth(1)").attr("style","background-color:"+r+";")):(e(".dsm_fixed_header_scroll").removeClass("dsm_fixed_header_scroll_active"),""!==d&&e(".dsm_fixed_header_scroll .et-l--header .et_pb_section:nth(0)").css("background-color",""),""!==r&&e(".dsm_fixed_header_scroll .et-l--header .et_pb_section:nth(1)").css("background-color",""))}),e(".dsm_fixed_header_shrink").length){if(void 0!==e(".dsm_fixed_header_shrink .et-l--header .et_pb_menu__logo img")&&e(".dsm_fixed_header_shrink .et-l--header .et_pb_menu__logo img").length||void 0!==e(".dsm_fixed_header_shrink .et-l--header img")&&e(".dsm_fixed_header_shrink .et-l--header img").length){if(e(".dsm_fixed_header_shrink .et-l--header .et_pb_menu__logo img").length)var s=e(".dsm_fixed_header_shrink .et-l--header .et_pb_menu__logo img")[0].src;if(e(".dsm_fixed_header_shrink .et-l--header img").length)var i=e(".dsm_fixed_header_shrink .et-l--header img")[0].src;var a=void 0!==e(".dsm_fixed_header_shrink .et-l--header .et_pb_menu__logo img").src?s:i,h=e(".dsm_fixed_header_shrink .et-l--header .et_pb_menu__logo img").attr("srcset")}shrink_logo=dsm_easy_tb_js.shrink_logo,e(window).scroll(function(){e(document).scrollTop()>_?(e(".dsm_fixed_header_shrink").addClass("dsm_fixed_header_shrink_active"),e(".dsm_fixed_header_shrink").addClass("dsm_fixed_header_shrink_active_scrolled"),e(".dsm_fixed_header_shrink").hasClass("dsm_fixed_header_shrink_logo")&&(e(".dsm_fixed_header_shrink_logo .et-l--header .et_pb_menu__logo").length?(h&&e(".dsm_fixed_header_shrink_logo .et-l--header .et_pb_menu__logo img").attr("srcset",""),e(".dsm_fixed_header_shrink_logo .et-l--header .et_pb_menu__logo img").attr("src",shrink_logo)):(h&&e(".dsm_fixed_header_shrink_logo .et-l--header .et_pb_image img").attr("srcset",""),e(".dsm_fixed_header_shrink_logo .et-l--header .et_pb_image img").attr("src",shrink_logo)))):(e(".dsm_fixed_header_shrink").removeClass("dsm_fixed_header_shrink_active"),e(".dsm_fixed_header_shrink").hasClass("dsm_fixed_header_shrink_logo")&&(e(".dsm_fixed_header_shrink_logo .et-l--header .et_pb_menu__logo").length?(h&&e(".dsm_fixed_header_shrink_logo .et-l--header .et_pb_menu__logo img").attr("srcset",h),e(".dsm_fixed_header_shrink_logo .et-l--header .et_pb_menu__logo img").attr("src",a)):(h&&e(".dsm_fixed_header_shrink_logo .et-l--header .et_pb_image img").attr("srcset",h),e(".dsm_fixed_header_shrink_logo .et-l--header .et_pb_image img").attr("src",a))))})}e(window).resize(function(){!0===window.matchMedia("(max-width: 768px)").matches&&e("body").hasClass("admin-bar")&&e(".et-l--header").closest("body").attr("style","padding-top: 0;")})}});