jQuery().ready(function(){
	
		// highly customized Accordion
		jQuery('#list2').Accordion({
			event: "click",
			active: 'dt.selected',
			selectedClass: "active",
			showSpeed: "slow",
			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
		});
		
		// 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 );
		});
		
		
		
		// hides the slickbox as soon as the DOM is ready
 // (a little sooner than page load)
  $('#slickbox').hide();
 
 // shows the slickbox on clicking the noted link 
  $('a#slick-show').click(function() {
    $('#slickbox').show('slow');
    return false;
  });
 
 // hides the slickbox on clicking the noted link 
  $('a#slick-hide').click(function() {
    $('#slickbox').hide('fast');
    return false;
  });
 
 // toggles the slickbox on clicking the noted link 
  $('a#slick-toggle').click(function() {
    $('#slickbox').toggle(400);
    return false;
  });
		
		
	});



//$(document).ready(function() {
 
 
//});