jQuery.fn.accordion = function(options) {
	var SPEED = "medium";
	return this.each(function() {
        $(this).find('dd:not(.stay-open)').hide();
        $(this).find('dd.open').show();
        $(this).find('dt').click(function() {
			if( !$(this).find('+dd').is(":visible") ) {
				$(this.parentNode).find('dd:not(.stay-open)').slideUp(SPEED);
				$(this).find('+dd').slideDown(SPEED);
			}
		});
	});
};