$(document).ready(function() {
	$('.slideshowContainer').cycle({
		fx:"fade",
		speed:2000,
		timeout:5000,
		next:"#next",
		prev:"#prev"
	});
	$('.mdSlideshowContainer').cycle({
		fx: 'fade',
		fit: 1,
		width: 'auto',
		height: 340,
		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>';
		}
	});
	$('.photoGallerySlideshowContainer').cycle({
		fx: 'toss',
		fit: 1,
		width: 'auto',
		height: 445,
		speed: 900,
		timeout: 0,
		pager: '#thumbnails',
		pagerAnchorBuilder: function(idx, slide) {
			return '<li><a href="#"><img src="' + slide.src.replace("large","thumbnail") + '" /></a></li>';
		}
	});
});
