/*
 * stickyfloat - jQuery plugin for verticaly floating anything in a constrained area
 * $Version: 11.28.2011 r3
 * Copyright (c) 2009 Yair Even-Or
 * http://dropthebit.com/74/sticky-floating-box/
 */
(function(c){c.fn.stickyfloat=function(o){function i(){a.stop();j=d.scrollTop()>b.startOffset;k=a.offset().top>g;l=a.outerHeight()<c(window).height();if((j||k)&&l)e=d.scrollTop()-g+b.offsetY,e>f&&(e=f),d.scrollTop()<b.startOffset&&(e=h),a.delay(b.delay).animate({top:e},b.duration,b.easing)}var a=this,d=c(document),h=parseInt(a.parent().css("padding-top")),g=a.parent().offset().top,b,f,j,k,l,e,m,n=d.scrollTop();c.extend(c.fn.stickyfloat.opts,o,{startOffset:g,offsetY:h});b=c.fn.stickyfloat.opts;a.css({position:"absolute"}); c(window).bind("scroll.sticky",function(){b.lockBottom&&(f=a.parent().height()-a.outerHeight()+h,0>f&&(f=0));40<b.duration?(clearTimeout(m),m=setTimeout(function(){0<Math.abs(d.scrollTop()-n)&&(n=d.scrollTop(),i())},40)):i()})};c.fn.stickyfloat.opts={duration:200,lockBottom:!0,delay:0,easing:"linear"}})(jQuery);
