
jQuery().ready(function(){
		$('#list1b').accordion({
			autoheight: false
		});
		
		$('#l_navigation').accordion({
			active: false,
			header: '.head',
			navigation: true,
			event: 'mousemove',
			fillSpace: false,
			animated: "easeslide"
		});
		
		$('#list2').accordion({
			event: 'mouseover',
			active: '.selected',
			selectedClass: 'active',
			animated: "bounceslide",
			header: "dt"
		}).bind("change.ui-accordion", function(event, ui) {
			jQuery('<div>' + ui.oldHeader.text() + ' hidden, ' + ui.newHeader.text() + ' shown</div>').appendTo('#log');
		});
		
		var wizard = $("#wizard").accordion({
			header: '.title',
			event: false
		});
		var accordions = jQuery('#list1b, #list2, #l_navigation, #wizard');
		
		$('#switch select').change(function() {
			accordions.accordion("activate", this.selectedIndex-1 );
		});
		$('#close').click(function() {
			accordions.accordion("activate", -1);
		});
		$('#switch2').change(function() {
			accordions.accordion("activate", this.value);
		});
		$('#enable').click(function() {
			accordions.accordion("enable");
		});
		$('#disable').click(function() {
			accordions.accordion("disable");
		});
		$('#remove').click(function() {
			accordions.accordion("destroy");
			wizardButtons.unbind("click");
		});
	});
