//artists
$(function() {		
		   
		   $.ajaxSetup({
			'beforeSend' : function(xhr) {
				xhr.overrideMimeType('text/html; charset=iso-8859-1');
			},
		});

		   
		//artists
	function formatItem(row) {			
							return '<span style="font-size:9px;">' +row[3] + '</span>, ' + row[0] + '';
				}
				
	
	$("#artists-search").autocomplete("/events/auto_complete?past=0",{
					selectFirst: false,				
					matchContains: true,
					formatItem: formatItem,
					max:50
				});
				
				$("#artists-search").result(function(event, data, formatted) {
					document.location.href='/events/view/' + data[1];			
				});
		   });