function noCache(uri){return uri.concat(/\?/.test(uri)?"&":"?","noCache=",(new Date).getTime(),".",Math.random()*1234567)};

function navigation() {
	var url = '/artists.xml';
	
	new Ajax.Request(noCache(url), {
		method: 'get',
		onSuccess: function(transport) {
			var artists = transport.responseXML.getElementsByTagName("artist");
			
			var s = document.createElement("select");
			
			s.onchange = function() {
				if (this.options[this.selectedIndex].value != "#") {
					document.location = this.options[this.selectedIndex].value;
				}
			}
			
			$('navigation').appendChild(s);
			
			for (var i = 0; i < artists.length; i++) {
				var o = document.createElement("option");
				
				o.setAttribute("value", artists[i].getAttribute("url"));
				
				s.appendChild(o);
				
				var t = document.createTextNode(artists[i].getAttribute("name"));
				
				o.appendChild(t);
			}
		}
	});
}