(function($){
	jQuery.fn.extend({
		AddRow: function() {
			$(this).click(function() {
				var obj = $(this).ParseClass(),
				cont = $(obj.container),
				items = cont.find(obj.item);
				
				items.not(":visible").filter(":first").show();
				if (items.length <= 1) {
					$(this).hide();
				}
			});
		}
	});
	$(function() {
		$("a.addRow").AddRow();
	});
})(jQuery);
