function Menu() {
	this.items = $H({
						"Overview" : "index",
						"Downloads" : "download",
						"FAQ" : "faq",
						"API Reference" : "docs",
						"Donations" : "donate",
						"Screenshots" : "screenshots",
						"License" : "license",
						"Contact" : "mailto:support@ajaxamp.com"
				})
}

Menu.prototype.drawInto = function(c) {
	this.container = c;
	var tbl = document.createElement('TABLE');
	this.tbody = document.createElement('TBODY');
	tbl.appendChild(this.tbody);
	this.container.appendChild(tbl);
	this.items.each(this.drawItem.bind(this));
}

Menu.prototype.drawItem = function(item) {
	var tr = document.createElement('TR');
	tr.className = "menuItem";
	var td = document.createElement('TD');
	td.className = "menuItem";
	var a = document.createElement('A');
	if (this.selected == item.key)
		a.className = "menuItemSelected";
	else
		a.className = "menuItem";	
	a.href = item.value;
	var txt = document.createTextNode(item.key);
	a.appendChild(txt);
	td.appendChild(a);
	tr.appendChild(td);
	this.tbody.appendChild(tr);
}
