
jQuery().ready(function(){
        jQuery.noConflict();

		// second simple Accordion with special markup
		jQuery('#events').Accordion({
			active: false,
			header: '.head',
			showSpeed: 300,
			alwaysOpen: false,
			navigation: true
		});

		// 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('#events').activate( this.selectedIndex-1 );
		});
		jQuery('#close').click(function() {
			jQuery('#events').activate(-1);
		});
		jQuery('#switch2').change(function() {
			jQuery('#events').activate(this.value);
		});
});

