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

	jQuery().ready(function(){
		// simple Accordion
		jQuery('#list1').Accordion()
		
		// highly customized Accordion
		jQuery('#list2').Accordion({
			event: "mouseover",
			active: 'dt.selected',
			selectedClass: "active",
			showSpeed: "fast",
			hideSpeed: "fast"
		}).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
		jQuery.Accordion.setDefaults({
			showSpeed: 1000,
			hideSpeed: 150,
			active: false,
			alwaysOpen: false,
			animated: false
		});
		
		// first simple Accordion with special markup
		jQuery('#list3').Accordion({
			header: 'div.title',
			active: false,
			alwaysOpen: false,
			animated: false
		});
		
		// second simple Accordion with special markup
		jQuery('#list4').Accordion({
			active: 'a.selected',
			header: 'a.head'
			
		});
		
		// bind to change event of select to control first and seconds accordion
		// similar to tab's plugin triggerTab(), without an extra method
		jQuery('#switch select').change(function() {
			jQuery('#list1, #list2').activate( this.selectedIndex-1 );
		});
	});
