$().ready(function() {
	
	function formatItem(row) {
		return row[0] + " (<strong>id: " + row[1] + "</strong>)";
	}
	function formatResult(row) {
		return row[0].replace(/(<.+?>)/gi, '');
	}
	
	$("#s").autocomplete(cities, {
		minChars: 0,
		width: 310,
		max: 25,
		autoFill: true,
		mustMatch: false,
		matchContains: false
	});
});