(function(a){a.extend(a.fn,{slideLeftShow:function(a,b){return this.animate({width:"show"},a,b)},slideLeftHide:function(a,b){return this.animate({width:"hide"},a,b)},slideLeftToggle:function(a,b){return this.animate({width:"toggle"},a,b)},slideRightShow:function(b,c){return this.animate({width:"show"},{step:function(b,c){var d=Math.ceil(b);if(typeof c.origLeft=="undefined"){var e=a(this).css("position");if(e=="static"){a(this).css("position","relative")}c.origPos=e;c.origLeft=c.end+parseInt(a(this).css("left"))||0}a(this).css({left:c.origLeft-(c.start+d)});if(d==c.end)a(this).css("position",c.origPos)},duration:b,complete:c})},slideRightHide:function(b,c){return this.animate({width:"hide"},{step:function(b,c){var d=Math.ceil(b);if(typeof c.origLeft=="undefined"){var e=a(this).css("position");if(e=="static"){a(this).css("position","relative")}c.origPos=e;c.origLeft=parseInt(a(this).css("left"))||0}a(this).css({left:c.origLeft+(c.start-d)});if(d==0)a(this).css({left:c.origLeft,position:c.origPos})},duration:b,complete:c})},slideRightToggle:function(b,c){return this.animate({width:"toggle"},{step:function(b,c){var d=Math.ceil(b);if(typeof c.origLeft=="undefined"){var e=a(this).css("position");if(e=="static"){a(this).css("position","relative")}c.origPos=e;c.origLeft=c.end+parseInt(a(this).css("left"))||0}if(c.start==0){if(d==c.end)a(this).css("position",c.origPos);a(this).css({left:c.origLeft-(c.start+d)})}else{a(this).css({left:c.origLeft+(c.start-d)});if(d==0)a(this).css({left:c.origLeft,position:c.origPos})}},duration:b,complete:c})}})})(jQuery)

