function Project(id, name, url, category, text) {
	this.id = id;
	this.name = name;
	this.url = url;
	this.category = category;
	this.text = text;
	this.write = ProjectWrite;
	this.select = ProjectSelect;
	this.deselect = ProjectDeselect;
}
function ProjectWrite() {
	var i;
	document.write('<a href="');
	for (i = 0; i < level; i++)
		document.write('../');
	document.write('../projects/' + this.category + '/' + this.url + '.asp"');
	document.write(' class="rollnav"');
	document.write(' onMouseOver="projects[' + this.id + '].select(); return true;"');
	document.write(' onMouseOut="projects[' + this.id + '].deselect(); return true;"');
	document.write('>' + this.name + '</a> ... ' + this.category + '<br>');
}

function ProjectSelect() {
	window.status = this.text;
	document['buzz' + this.id].src = reloadB.src;
}

function ProjectDeselect() {
	window.status = '';
	document['buzz' + this.id].src = reloadA.src;
}
var projects = new Array();
var i;
projects[1] = new Project(1, "1A Community Centre", "1A", "community", "1A Community Centre extension + refurbishment");
projects[2] = new Project(2, "Abbotsfield School for Boys Arts Centre", "abbotsfield", "education", "Abbotsfield School for Boys Arts Centre");
projects[3] = new Project(3, "Academy @ Peckham", "academyPeckham", "education", "Academy @ Peckham");
projects[4] = new Project(4, "Argyle Primary School PLSU", "argyle", "education", "Argyle Primary School PLSU");
projects[5] = new Project(5, "Bishop Gilpin CE Primary School", "bishopGilpin", "education", "Bishop Gilpin CE Primary School");
projects[6] = new Project(6, "Cardinal Hume Centre", "cardinalHume", "community", "Cardinal Hume Centre extension + refurbishment");
projects[7] = new Project(7, "Edith Neville Sure Start Nursery", "edithNeville", "education", "Edith Neville Nursery");
projects[8] = new Project(8, "Elmgrove Road Housing", "elmgrove", "housing", "Elmgrove Road Housing");
projects[9] = new Project(9, "Elm View Court", "elmView", "housing", "Elm View Court");
projects[10] = new Project(10, "Fitzjohn's Primary School", "fitzjohns", "education", "Fitzjohn\'s Primary School");
projects[11] = new Project(11, "Greig City Academy", "greig", "education", "Greig City Academy");
projects[12] = new Project(12, "Haberdashers' Aske's School Sports Centre", "haberdashersSports", "leisure", "Haberdashers\' Aske\'s School Sports Centre");
projects[13] = new Project(13, "Kentish Town CE Primary School", "kentishTown", "education", "Kentish Town CE Primary School");
projects[14] = new Project(14, "Lakeview Road", "lakeview", "housing", "Lakeview Road");
projects[15] = new Project(15, "Leconfield Road", "leconfieldRoad", "housing", "Leconfield Road");
projects[16] = new Project(16, "Middleton Circle Community Library", "middletonCirlce", "leisure", "Middleton Circle Community Library");
projects[17] = new Project(17, "New Providence Wharf", "newProvidenceWharf", "housing", "New Providence Wharf");
projects[18] = new Project(18, "Our Lady of Muswell Primary School", "ourLadyMuswell", "education", "Our Lady of Muswell Primary School");
projects[19] = new Project(19, "St Georges VA Church Primary School", "stGeorges", "education", "St Georges VA Church Primary School");
projects[20] = new Project(20, "St Mary Magdalen's RC Junior School", "stMaryMagdalen", "education", "St Mary Magdalen's RC Junior School");
projects[21] = new Project(21, "St Michael's RC High School", "stMichaels", "education", "St Michael\'s RC High School");
projects[22] = new Project(22, "St Wilfrid's RC Secondary School", "stWilfrids", "education", "St Wilfrid\'s RC Secondary School");
projects[23] = new Project(23, "Silvertown House", "silvertown", "housing", "Silvertown House");
projects[24] = new Project(24, "Sion Manning RC Girls' School extension", "sionManning", "education", "Sion Manning RC Girls\' School extension");
projects[25] = new Project(25, "Sutton Life Centre", "suttonLife", "community", "Sutton Life Centre");
projects[26] = new Project(26, "The Hub Community Centre", "theHub", "community", "The Hub Community Centre");

for (i = 1; i < projects.length; i++)
	projects[i].write();
