jQuery(document).ready(function(a){var b=a(".df-navibar-fixed-left-active, .df-navibar-fixed-right-active").length,c=a(".df-float-menu");c.attr("class","df-float-menu df-float-menu-hide"),windowWidth=a(window).width(),a("body").addClass("float_noactive"),0==b&&(windowWidth=a(window).width(),a("#content").each(function(){var d=a(this);d.waypoint(function(b){"down"===b?(a("body").removeClass("float_noactive"),a("#wpadminbar").length?c.attr("class","df-float-menu df-float-menu-show-admin"):c.attr("class","df-float-menu df-float-menu-show")):"up"===b&&(a("body").addClass("float_noactive"),c.attr("class","df-float-menu df-float-menu-hide"),a("#sb-site").on("touchend click",function(b){b.preventDefault(),a("body").hasClass("float_noactive")&&c.attr("class","df-float-menu df-float-menu-hide")}))},{offset:"-500px"})}))});