(function(){
	$.fn.accordion=function(){
		if(this.next('.wrapper').is(":hidden"))
			this.toggleClass('down'); 
		$('.down').not(this).next('.wrapper').slideUp(1000);
		$('.down').not(this).removeClass('down');
		this.next('.wrapper').slideDown(1000);
	}
})(jQuery);