// function to rotate section 1 content
function s1RotatorSwitch(id)
{
	for (i = 1; i <= 3; i++)
	{
		if (i != id)
		{
			$('sectionOneMenu-' + i).src = $('sectionOneMenu-' + i).src.replace('_on','_off');
			$('sectionOneContent-' + i).hide();
			$('sectionOne').removeClassName('sectionOne-' + i);
		}
	}
	$('sectionOneMenu-' + id).src = $('sectionOneMenu-' + id).src.replace('_off','_on');
	$('sectionOne').addClassName('sectionOne-' + id);
	$('sectionOneContent-' + id).show();
}
function s1RotatorStart(elCurrent, elStart, elStop)
{
	return (function()
	{
		elCurrent = (elCurrent == elStop) ? elStart : elCurrent + 1;
		for (i = 0; i <= elStop; i++)
		{
			if (i == elCurrent) s1RotatorSwitch(i);
		}
		s1Rotator = setTimeout(s1RotatorStart(elCurrent, elStart, elStop), s1RotaterDur);						 
	});
}
function s1RotatorStop()
{
	clearTimeout(s1Rotator);
}

// function to swap out the image and content for the 3-in-1 wheel
function swap3N1(id)
{
	for (i = 0; i <= 3; i++)
	{
		if (i != id) $('wheelContent-' + i).hide();
	}
	$('wheelContent-' + id).show();
}