$(function(){
// Set starting slide to 1
var startSlide = 1;
// Get slide number if it exists
if (window.location.hash) {
	startSlide = window.location.hash.replace('#','');
}
// Initialize Slides
$('#slides').slides({
	preload: true,
	preloadImage: 'img/loading.gif',
	generatePagination: false,
	play: 3000,
	pause: 0,
	hoverPause: true,
	// Get the starting slide
	start: startSlide,
	animationComplete: function(current){
		// Set the slide number as a hash
		window.location.hash = '#' + current;
	}
});
// Initialize Slides
$('#slides2').slides({
	preload: true,
	preloadImage: 'img/loading.gif',
	generatePagination: false,
	play: 0,
	pause: 0,
	hoverPause: true,
	// Get the starting slide
	start: startSlide,
	animationComplete: function(current){
		// Set the slide number as a hash
		window.location.hash = '#' + current;
	}
});
// Initialize Slides
$('#slides3').slides({
	preload: true,
	preloadImage: 'img/loading.gif',
	generatePagination: false,
	play: 3000,
	pause: 0,
	hoverPause: true,
	// Get the starting slide
	start: startSlide,
	animationComplete: function(current){
		// Set the slide number as a hash
		window.location.hash = '#' + current;
	}
});
// Initialize Slides
$('#slides4').slides({
	preload: true,
	preloadImage: 'img/loading.gif',
	generatePagination: false,
	play: 0,
	pause: 0,
	hoverPause: true,
	// Get the starting slide
	start: startSlide,
	animationComplete: function(current){
		// Set the slide number as a hash
		window.location.hash = '#' + current;
	}
});
});
