// Client stub for the livesearch PHP Class
function livesearch(callback) {
	mode = 'sync';
	if (callback) { mode = 'async'; }
	this.className = 'livesearch';
	this.dispatcher = new HTML_AJAX_Dispatcher(this.className,mode,callback,'/shop/auto_server.php','JSON');
}
livesearch.prototype  = {
	Sync: function() { this.dispatcher.Sync(); }, 
	Async: function(callback) { this.dispatcher.Async(callback); },
	search: function() { return this.dispatcher.doCall('search',arguments); }
}

