$( function () {
			$('#slideshow .thumbnail img').each( function () { // horizontally center all of the (absolutely positioned) images								   
				var my_width = $(this).width();
				var parent_width = $(this).parent().width() - 10; // we'll knock 10px off the parent's width, since we want to visually
																	// center the image with the ragged-right content below
											
				var good_margin = (parent_width - my_width) / 2;
			
				$(this).css("left", (good_margin + "px")); // center the element in the containing div
				
														   
			});

			$('#slideshow').cycle({									// set up the slideshow
				fx: 'scrollHorz',
				timeout: 0,
				next: '#next_slide',
				prev: '#prev_slide',
				easing: 'easeInOutQuad'
			});
			
			$('#next_slide, #prev_slide').click( function () {
				$(this).blur(); // de-select the button that was just clicked.								  
			});
			
});