(function($){$.fn.extend({firstnlast:function(){$(this).filter(':first-child:not(:last-child)').addClass('first').end().filter(':last-child').addClass('last');}});})(jQuery);
