function scrollToCurrentThumb()
	{
	var windowWidth			=	0;
	var thumbWidth			=	236;	// Remember to make this dynamic
	var numberOfThumbs		=	7;	// Remember to make this dynamic
	var thumbsContainerWidth	=	0;
	var currentThumbLeft		=	0;
	var currentThumbLeftLocation	=	0;
	windowWidth = window.innerWidth;		// Since most browsers support this, is default
	if (typeof(window.innerWidth) != 'number')	// If true, browser likely doesn't support innerWidth
		{
		if(document.documentElement.clientWidth > 0)
			{
			windowWidth = document.documentElement.clientWidth;
			} else if(document.body.clientWidth > 0)
				{
				windowWidth = document.body.clientWidth;
				}
		}	
	if (windowWidth >= 1800)
		{
		document.getElementById('thumbs-container').style.overflow='hidden';
		}	else	{
		document.getElementById('thumbs-container').style.overflow='auto';
		thumbsContainerWidth = thumbWidth * numberOfThumbs;
		thumbsContainerVisiblePct = (windowWidth * 0.98) / thumbsContainerWidth;
		thumbsContainerScrollPct = 1 - thumbsContainerVisiblePct;

		currentThumbLeft = document.getElementById('current-thumbnail').offsetLeft;


		if (currentThumbLeft > 490)	// Don't scroll if the current thumb is one of the first three
			{
			if (currentThumbLeft > 1435)
				{
				//Formula for when the current thumb is also the last thumb
				currentThumbLeftLocation = Math.ceil((thumbsContainerScrollPct * thumbsContainerWidth) + (windowWidth * 0.01) + 30)
				}	else if (currentThumbLeft > 1195)	{
				currentThumbLeftLocation = Math.ceil((thumbsContainerScrollPct * thumbsContainerWidth) + (windowWidth * 0.01) + 30)
				}	else if (currentThumbLeft > 960)	{
				currentThumbLeftLocation = Math.ceil((thumbsContainerScrollPct * thumbsContainerWidth) + (windowWidth * 0.01) + 30)
				}	else	{
				//Formula for when current thumb is the middle thumb
				currentThumbLeftLocation = Math.ceil((thumbsContainerScrollPct/2) * thumbsContainerWidth);
				}
			document.getElementById('thumbs-container').scrollLeft = currentThumbLeftLocation;
			}
		}
	}

// Scroll to the current thumb if the user resizes the window
window.onresize = scrollToCurrentThumb;270