function rotateImage()
{
	var imageCookie = "johnsterling.com-imagerotator";
	var options = { path: '/', expires: 100 /* cookie expires in 100 days */ };
	var currentIndex = $.cookie(imageCookie);	// Get the current image index
	var images = ["images/Tool-Room-vintage.jpg", "images/Tool-Room-group.jpg", "images/Workline.jpg", "images/Drafting.jpg", "images/Engineering-Room.jpg"];  // This holds the images that you want to cycle through
	// This next block figures out what the next picture should be
	if(currentIndex && isNaN(currentIndex) == false)
	{
		currentIndex++;
		if(currentIndex >= images.length)
		{
			currentIndex = 0;
		}
	}
	else
	{
		currentIndex = 0;
	}
	$(".rotateOnRefresh").attr("src", images[currentIndex]);	// Set the src of the rotating image to the next image
	$.cookie(imageCookie, currentIndex, options);	// Update the client cookie so that it keeps track of what image we last showed
}
