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