	jQuery().ready(function(){
		// simple Accordion
		if ($('#list1').length) 
				{
				jQuery('#list1').accordion();
				}
		
		if ($('#navigation').length && jQuery.isFunction('accordion')) 
			{
		// second simple Accordion with special markup
		jQuery('#navigation').accordion({
			active: false,
			header: '.head',
			navigation: true,
			event: 'mouseover',
			autoheight: true,
			animated: 'easeslide'
		});
		
			}
		
		// 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').activate( this.selectedIndex-1 );
		});
		jQuery('#close').click(function() {
			jQuery('#list1').activate(-1);
		});
		jQuery('#switch2').change(function() {
			jQuery('#list1').activate(this.value);
		});
		
	});
