function LinkEntry (id, label, url)
{
	this.id = id
	this.label = label
	this.url = url
}


links = new Array
(
	new LinkEntry ("home", 		"Home",					"index.html"),
	new LinkEntry ("contacts",	"Contacts",				"Contacts.html"),
	new LinkEntry ("chedd",		"St. Giles Cheddington","StGilesBells/index.html"),
	new LinkEntry ("marsworth",	"All Saints Marsworth",	"Marsworth/index.html"),
	new LinkEntry ("diary", 	"Events Diary", 		"EventDiary.html"),
	new LinkEntry ("tutorial", 	"Tutorial", 		"Tutorial.html"),
	new LinkEntry ("gallery", 	"Gallery", 		"Gallery.html")
)


function makeLinks (links, selId, selCSS, readyCSS, urlAdjust)
{
	var widthPc = 100 / links.length
	var html = ""
	
	for (var i=0; i < links.length; i++)
	{
		html += "<td align=center width=" + widthPc + "% class="
		
		if (links[i].id == selId)
		{
			html += selCSS
		}
		else
		{
			html += readyCSS
		}
		html += "><a href=" + urlAdjust + links[i].url + " class="
		if (links[i].id == selId)
		{
			html += selCSS
		}
		else
		{
			html += readyCSS
		}
		html += ">" + links[i].label + "</a></td>\n"
	}
	document.writeln (html)
}

function title()
{
	var html = "<center><span class=title>"
    	html += "The Bell Ringers of Cheddington, Mentmore and Marsworth"
	html += "</span></center>"

	document.writeln (html)
}
