jQuery.fn.extend({ slideRightShow: function () { return this.each(function () { $(this).show('slide', {direction: 'right'}, 500); }); }, slideLeftHide: function () { return this.each(function () { $(this).hide('slide', {direction: 'left'}, 500); }); }, slideRightHide: function () { return this.each(function () { $(this).hide('slide', {direction: 'right'}, 500); }); }, slideLeftShow: function () { return this.each(function () { $(this).show('slide', {direction: 'left'}, 500); }); } });