$(document).ready(function() {
	$('.slideshowContainer').cycle({
		fx:"fade",
		speed:2500,
		timeout:6000
	});
	$('#fpSlides').cycle({
		fx:"fade",
		speed:1500,
		timeout:0,
		next:"#fpNextButton",
		prev:"#fpPrevButton"
	});
	$('.mdSlideshowContainer').cycle({
		fx: 'fade',
		height: 299,
		width: 'auto',
		fit: 1,
		speed: 1400,
		timeout: 0,
		pager: '#thumbnails',
		pagerAnchorBuilder: function(idx, slide) {
			return '<li><a href="#"><img src="' + slide.src.replace("large","thumbnail") + '" /></a></li>';
		}
	});
	$('.mapSlideshowContainer').cycle({
		fx: 'fade',
		height: 115,
		width: 'auto',
		fit: 1,
		speed: 1400,
		timeout: 0,
		pager: '#mapThumbnails',
		pagerAnchorBuilder: function(idx, slide) {
			return '<li><a href="#"><img src="' + slide.src.replace("large","thumbnail") + '" /></a></li>';
		}
	});
});
