var prefix = "mailto:";
var suffix = "@wamug.org.uk";
var names = new Array("terry", "chris", "michael", "lionel", "mick", "mark", "info");
var nodes = document.getElementById("contacts").getElementsByTagName("li");
var text, mdash, result;
for (var n = 0; n < nodes.length; n++) {
	text = nodes[n].firstChild.nodeValue;
	nodes[n].removeChild(nodes[n].firstChild);
	node = document.createElement("a");
	node.setAttribute("href", prefix + names[n] + suffix);
	mdash = text.indexOf("—");
	node.appendChild(document.createTextNode((mdash > -1) ? text.substr(0, mdash - 1) : text));
	nodes[n].appendChild(node);
	if (mdash > -1)
		nodes[n].appendChild(document.createTextNode(text.substr(mdash - 1)));
}