// DOM Ready
			$(document).ready(function(){
				$('#slider')
					.anythingSlider({
						width        : 540,
						height       : 300,
						startStopped : true,
						navigationFormatter : function(i, panel){
						return ['Top', 'Right', 'Bottom', 'Left'][i - 1];
					}
				})
				.anythingSliderFx({
				   // '.selector' : [ 'caption', 'distance/size', 'time', 'easing' ]
				   // 'distance/size', 'time' and 'easing' are optional parameters
				   '.caption-top'    : [ 'caption-Top', '50px' ],
				   '.caption-right'  : [ 'caption-Right', '130px', '1000', 'easeOutBounce' ],
				   '.caption-bottom' : [ 'caption-Bottom', '50px' ],
				   '.caption-left'   : [ 'caption-Left', '130px', '1000', 'easeOutBounce' ]
				})
				/* add a close button (x) to the caption */
				.find('div[class*=caption]')
				.css({ position: 'absolute' })
				.append('<span class="close">x</span>')
				.find('.close').click(function(){
					var cap = $(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, function(){ cap.hide(); } );
					});
			});
