"),T=h.css("position"),S=h.css("position"),b=h.css("top"),l()&&g.$el.after(C),o(window).bind("resize.ScrollToFixed",O),o(window).bind("scroll.ScrollToFixed",y),"ontouchmove"in window&&o(window).bind("touchmove.ScrollToFixed",u),g.options.preFixed&&h.bind("preFixed.ScrollToFixed",g.options.preFixed),g.options.postFixed&&h.bind("postFixed.ScrollToFixed",g.options.postFixed),g.options.preUnfixed&&h.bind("preUnfixed.ScrollToFixed",g.options.preUnfixed),g.options.postUnfixed&&h.bind("postUnfixed.ScrollToFixed",g.options.postUnfixed),g.options.preAbsolute&&h.bind("preAbsolute.ScrollToFixed",g.options.preAbsolute),g.options.postAbsolute&&h.bind("postAbsolute.ScrollToFixed",g.options.postAbsolute),g.options.fixed&&h.bind("fixed.ScrollToFixed",g.options.fixed),g.options.unfixed&&h.bind("unfixed.ScrollToFixed",g.options.unfixed),g.options.spacerClass&&C.addClass(g.options.spacerClass),h.bind("resize.ScrollToFixed",function(){C.height(h.height())}),h.bind("scroll.ScrollToFixed",function(){h.trigger("preUnfixed.ScrollToFixed"),p(),h.trigger("unfixed.ScrollToFixed"),u()}),h.bind("detach.ScrollToFixed",function(i){W(i),h.trigger("preUnfixed.ScrollToFixed"),p(),h.trigger("unfixed.ScrollToFixed"),o(window).unbind("resize.ScrollToFixed",O),o(window).unbind("scroll.ScrollToFixed",y),h.unbind(".ScrollToFixed"),C.remove(),g.$el.removeData("ScrollToFixed")}),O()},g.init()},o.ScrollToFixed.defaultOptions={marginTop:0,limit:0,bottom:-1,zIndex:1e3,baseClassName:"scroll-to-fixed-fixed"},o.fn.scrollToFixed=function(i){return this.each(function(){new o.ScrollToFixed(this,i)})}}(jQuery)