function changeSlide()
{
	var list = document.getElementById('slidelist');
	document.mainSlide.src = list.options[list.selectedIndex].value;
}

function prevSlide()
{
	var list = document.getElementById('slidelist');
	if(list.selectedIndex == 0)
	{
		list.selectedIndex = list.options.length-1;
	}
	else
	{
		list.selectedIndex--;
	}
	changeSlide();
}

function nextSlide()
{
	var list = document.getElementById('slidelist');
	if(list.selectedIndex == list.options.length-1)
	{
		list.selectedIndex = 0;
	}
	else
	{
		list.selectedIndex++;
	}
	changeSlide();
}
