
function buildMenus() {

	index = 0;
	projects = document.navigation.projects.options;

	projects[index++] = new Option("Projects", "");
	projects[index++] = new Option("---------------------", "");
	projects[index++] = new Option("Interfascia", "projects/interfascia/");
	projects[index++] = new Option("Self-Organizing Desktop", "projects/thesis/");
	projects[index++] = new Option("Head Alignment", "projects/head-alignment/");
	projects[index++] = new Option("Squiggle Chandelier", "projects/chandelier/");
	//projects[index++] = new Option("Overview, Sort, and Filter", "projects/rfs/");
	projects[index] = new Option("Cesium", "projects/cesium/");
	
	index = 0;
	sketches = document.navigation.sketches.options;

	sketches[index++] = new Option("Sketches", "");
	sketches[index++] = new Option("---------------------", "");
	sketches[index++] = new Option("Kohonen Map Demo", "sketches/som/");
	sketches[index++] = new Option("Automat", "sketches/automat/");
	//sketches[index++] = new Option("Electric Candle", "sketches/candle/");
	sketches[index++] = new Option("Threespace", "sketches/threespace/");
	sketches[index] = new Option("Convert", "sketches/convert/");
	
	index = 0;
	exhibitions = document.navigation.exhibitions.options;

	exhibitions[index++] = new Option("Exhibitions", "");
	exhibitions[index++] = new Option("---------------------", "");
	exhibitions[index++] = new Option("Senior Thesis Exhibition", "exhibitions/seniorthesis/");
	exhibitions[index++] = new Option("Fisher Lobby Installation", "exhibitions/party/");
	exhibitions[index] = new Option("Moderation Show", "exhibitions/moderation/");
	
	document.navigation.style.display = '';
}

function loadPage(which) {
	n = which.selectedIndex;
	if (n == 1) {
		which.selectedIndex = 0;
	} else if (n != 0) {
		var url = "/" + which.options[n].value;
		which.selectedIndex = 0;
		location.href = url;
	}
}
