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(
"Reception area",
"Reception Desk - Picking up badges",
"Before the dance - Phil Edwards, Fredy Marques(standing left),<br />Gerard Zytkow (on right facing)",
"Left to Right - Sue Heaton, Kathy Exsteen (Back to camera), Maggie & Roger Eveleigh, ?",
"Otto Masterton",
"General Photo of the Hall with Mark Trollip in the forground",
"Dance Hall",
"Beth Lloyd's table",
"Stephens table 2",
"Linda and Mike",
"",
"Photo 13!! - Ronel Harris, John (her husband) behind,<br />Dave Barrett(Blue Jumper), Mike Coughlan(green jumper)",
"Left to right - Judy Stephens, Maggie and Roger Eveleigh, Marina Lamb, Debbie Marques, Kathy Exsteen",
"",
"Front of table - Peter (Speedy) Morris, Gerard Zytkow, Dallas Sutton ",
"Linda and Mike in embarrassing mood",
"Band one - Graham Boyle on lead vocals",
"",
"",
"Graham Boyle",
"Band Two - The Trollips",
"",
"Mark Trollip",
"The head Table - Lynn Szeftel sitting centre<br />Mike Hayes, Grant Knowles and Otto Masterton (standing)",
"",
"",
"Beth Lloyd and Judy Stephens",
"Moira Fenwick dancing with Noel Daley, Kathy Exsteen with Dave Stephens",
"Dave and Kathy",
"Moira Fenwick and ?",
"",
"Beth Lloyd and Doug Grewar",
"Phil Edwards and Brian Townsend",
"Trevor Lake & Beth Lloyd",
"Anne & Stephen Grewar, Dougs mother and Son",
"Peter (Speedy) Morris",
"",
"Roger Eveleigh and Hartley Heaton - Golf Tournament Prize Giving",
"Richard Clark getting his prize for the longest drive",
"Otto Masterton getting the prize for winning the tournament",
"",
"Band Three - Noel Daley on Lead Vocals",
"Noel Daley",
"Alistair Coakley",
"Back to Band One - John Costopoulos on drums",
"Graham Boyle",
"Jilly Masterton (Aplin)",
"",
"",
"",
"",
"",
"The Band Members at the end of the evening",
"",
"Doug's Table",
"",
"One of the most important areas of the room - The Bar",
"Speedy",
"Doug, Beth and John Steers",
"Grant Knowles",
"Linda and Mike giving out the 'Room for the Night' won in the raffle",
"Doug's mum, Anne",
"Doug the 'Pink' flip flopper",
"",
"",
"Beth Lloyd",
"",
"",
"",
"Beth and Doug",
"Beth and Doug",
"Anne and Beth",
"",
"Klippies and Coke, Pot of pudding & Jozi Jol Wine",
"Trevor Lake & Phil Edwards",
"Speedy",
"Speedy and Linda",
"Gerard Zytkow and Kathy Exsteen",
"Jilly and Otto Masterton",
"Diana and Pierre Fabel",
"Jane and Graham Boyle",
"Howie Silk and Roger Costopoulos",
"Jan McGregor (drunk camera or photographer??)",
"Jilly's Rhinestone Shoes",
"John Costopoulos",
"Moira Fenwick stealing Mike Hayes",
"L to R Standing - Graham Hesom, Jilly, Graham Boyle, Alistair Coakley, John Costopoulos, Noel Daley and Linda<br />Taken by Jennie Daley"
);
the_text = all_text[nar_num];
return the_text;
}
