jQuery_1_6(document).ready(function(){

	jQuery_1_6('.accordion').accordion({
		autoHeight  : false,
		collapsible : true,
		active      : false // start compressed
	});

	jQuery_1_6('#slider3')
	.anythingSlider({
		navigationFormatter : function(i, panel){
			return [i - 1];
		}
	})
	.anythingSliderFx({
		'.caption-top'    : [ 'caption-Top', '50px' ],
		'.caption-right'  : [ 'caption-Right', '130px', '1000'],
		'.caption-left' : [ 'caption-Bottom', '50px' ]//,
		//'.caption-left'   : [ 'caption-Left', '130px', '1000']
	})
	/* use this code to have the caption slide in and out from the bottom with each panel */
	.anythingSliderFx({
		inFx: {
			'.caption-top'    : { top: 0, opacity: 0.8, duration: 400 },
			'.caption-right'  : { right: 0, opacity: 0.8, duration: 1000, easing: 'easeOutBounce' },
			'.caption-bottom' : { bottom: 0, opacity: 0.8, duration: 400 },
			'.caption-left'   : { top: 12, left: 222, opacity: 0.90, duration: 1000 }
		},
		outFx: {
			'.caption-top'    : { top: -50, opacity: 0, duration: 200 },
			'.caption-right'  : { right: -150, opacity: 0, duration: 500, easing: 'easeOutBounce' },
			'.caption-bottom' : { bottom: -50, opacity: 0, duration: 200 },
			'.caption-left'   : { top: 12, left: 222, opacity: 0, duration: 50 }
		}
	})

	// add a close button (x) to the caption
	.find('div[class*=caption]')
		.css({ position: 'absolute' })
		.prepend('<span class="close"></span>')
		.find('.close').click(function(){
			var cap = jQuery_1_6(this).parent(),
				ani = { bottom : -50 }; // bottom
			if (cap.is('.caption-top')) { ani = { top: -50 }; }
			if (cap.is('.caption-left')) { ani = { left: -150 }; }
			if (cap.is('.caption-right')) { ani = { right: -150 }; }
			cap.animate(ani, 400);
		});

	/* use this code if you only want the caption to appear when you hover over the panel
	.find('.panel')
		.find('div[class*=caption]').css({ position: 'absolute' }).end()
		.hover(function(){ showCaptions( jQuery_1_6(this) ) }, function(){ hideCaptions( jQuery_1_6(this) ); });

	showCaptions = function(el){
		var jQuery_1_6this = el;
		if (jQuery_1_6this.find('.caption-top').length) { jQuery_1_6this.find('.caption-top').show().animate({ top: 0, opacity: 1 }, 400); }
		if (jQuery_1_6this.find('.caption-right').length) { jQuery_1_6this.find('.caption-right').show().animate({ right: 0, opacity: 1 }, 400); }
		if (jQuery_1_6this.find('.caption-bottom').length) { jQuery_1_6this.find('.caption-bottom').show().animate({ bottom: 0, opacity: 1 }, 400); }
		if (jQuery_1_6this.find('.caption-left').length) { jQuery_1_6this.find('.caption-left').show().animate({ left: 0, opacity: 1 }, 400); }
	};
	hideCaptions = function(el){
		var jQuery_1_6this = el;
		if (jQuery_1_6this.find('.caption-top').length) { jQuery_1_6this.find('.caption-top').stop().animate({ top: -50, opacity: 0 }, 400); }
		if (jQuery_1_6this.find('.caption-right').length) { jQuery_1_6this.find('.caption-right').stop().animate({ right: -150, opacity: 0 }, 400); }
		if (jQuery_1_6this.find('.caption-bottom').length) { jQuery_1_6this.find('.caption-bottom').stop().animate({ bottom: -50, opacity: 0 }, 400); }
		if (jQuery_1_6this.find('.caption-left').length) { jQuery_1_6this.find('.caption-left').stop().animate({ left: -150, opacity: 0 }, 400); }
	};

	// hide all captions initially
	hideCaptions( jQuery_1_6('#slider3 .panel') );
*/

});
