(function($) {
	$.fn.itemreveal = function(options) {
	
		var defaults = {}
		var options = $.extend(defaults, options);

		function hide(obj) {
		
			obj.children("li").each(function() {
				if($(this).hasClass('extraInfo')) {
					$(this).slideUp("slow");
				}
			});
		}

		return this.each(function() {

			var obj = $(this);			

			obj.children("li").each(function() {
				var listItem = $(this);
				$(this).children("a").click(function(e) {
					hide(obj);
					e.preventDefault();
					if(listItem.next().css('display') == "none")
						listItem.next().show("fast");
				});				
			});
		});
	}
})(jQuery);