<!--

var list = new Array(
	'<img src="/images/slideshow/pwll-du.gif" alt="Pwll Du Bay">');

function pick(q,n) {
	var selected = new Array(n);
	var found = 0;
	// check that the number to output is less than the actual number, and if not
	// then set it to the length of the list
	if (n > q.length) {
		n = q.length;
	}
	for (counter = 0; counter < n; counter++) {
		var index = Math.floor(Math.random() * (q.length));
		found = 0;
		for (sel_count = 0; sel_count < selected.length; sel_count++) {
			if (index == selected[sel_count]) {
				found = 1;
			}
		}
		if (!found) {
			document.writeln( unescape(q[index]) );
			selected[counter] = index;
		} else {
			counter--;
		}
	}
}

pick(list,1);

// -->
