(function($) {	$.fn.accordion = function(options) {		options = jQuery.extend({time:500}, options);		return this.each(function(){			var item = $(this);			var items = item.children('ul').children('li');			init();			closeAll();			items.children('div.content').hide();			function init () {				items.each(function(){					var more = $('<div><span class="arrow">→</span>Mehr erfahren</div>').appendTo($(this)).addClass('more');					more.css('cursor','pointer').click(function(){						closeAll();						$(this).parent().children('div.content').addClass('active').slideDown('fast');						$(this).hide();					});				});			};			function closeAll () {				items.children('div.content.active').removeClass('active').slideUp('fast');				items.children('div.more').show();			};		});	};})(jQuery);
