function location_field() {
}
location_field.prototype.select = function(o, data) {
		var selected = [];
		while (o && !/\blocation\-field\b/.test(o.className)) {
			if (o.nodeName == 'LI') {
				selected[selected.length] = o;
			}
			o = o.parentNode;
		}
		o.style.display = 'none';
		setTimeout(function (o) {return function () {o.style.display ='';}}(o), 200);
		var a = o.getElementsByTagName('LI');
		for (var i =0; i < a.length; i++) {
			a[i].className = a[i].className.replace(/\bselected\b/,'').replace(/  +/,' ');
		}
		for (var i = 0; i < selected.length; i++) {
			selected[i].className = (selected[i].className != ''?selected[i].className+' ':'')+'selected';
		}
		if (this.callback) {
			this.callback(data);
		}
}

