function changeImage()
{
	var list = document.getElementById('optionlist');
	document.mainimage.src = list.options[list.selectedIndex].value;
	changeText();
}

function prevImage()
{
	var list = document.getElementById('optionlist');
	if(list.selectedIndex == 0)
	{
		list.selectedIndex = list.options.length-1;
	}
	else
	{
		list.selectedIndex--;
	}
	changeImage();
}

function nextImage()
{
	var list = document.getElementById('optionlist');
	if(list.selectedIndex == list.options.length-1)
	{
		list.selectedIndex = 0;
	}
	else
	{
		list.selectedIndex++;
	}
	changeImage();
}

function select_image()
{
	changeImage();
}

function changeText()
{
var list = document.getElementById('optionlist');
var the_text;

	the_text = get_text(list.selectedIndex);
	document.getElementById('text_cell').innerHTML = the_text;
}

function get_text(nar_num)
{
	var the_text;
	var all_text = new Array(
"Doug explaining how to tell someone to go away without saying a word",
"Erica Fyall and Phil Edwards",
"Tony Brockwell, Ian Fyall, Erica Fyall, Phil Edwards",
"Juliet Goron, Ian Fyall, Tony Brockwell, Brian Townsend",
"Tony Brockwell, Brian Townsend(with beer), Erica Fyall",
"Left to right - ?, Brian Townsend, Dave Stephens, Hartley Heaton and Mick Carle",
"Gerard Zytkow & Kathy Exsteen",
"Phil Edwards",
"Jilly Masterton (Aplin) - Note the door graphic"
);
the_text = all_text[nar_num];
return the_text;
}
