function simpleLog(message) {
		$('<div>' + message + '</div>').appendTo('#log');
	}

	$(function(){
		
		$('#list1').Accordion();
		// highly customized Accordion
		$('#list2').Accordion({
			active: 'dt.selected',
			selectedClass: "active",
			showSpeed: 250,
			hideSpeed: 550
		}).change(function(event, newHeader, oldHeader, newContent, oldContent) {
			simpleLog(oldHeader.text() + ' hidden');
			simpleLog(newHeader.text() + ' shown');
		});
		
		// set global defaults for all following Accordions, will be valid for #list1, #list2 and #list4, #list3 sets them for itself
		$.extend($.fn.Accordion.defaults, {
			showSpeed: 1000,
			hideSpeed: 150
		});
		
		// bind to change event of select to control first and seconds accordion
		// similar to tab's plugin triggerTab(), without an extra method
		$('#switch select').change(function() {
			$('#list1, #list2').activate( this.selectedIndex-1 );
		});
	});