Catsearcher = function() {}

Catsearcher.path = '/';
Catsearcher.link = 'http://www.horeca.ru/';
Catsearcher.ajax = [];
Catsearcher.progress = [];
Catsearcher.stop = [];
Catsearcher.params = [];
Catsearcher.params['azSrc'] = 'cat.';

Catsearcher.changeCity = function(item) {
	var city = item.value;
	Catsearcher.progress[0] = document.createElement('DIV');
	Catsearcher.progress[0].style.position = 'absolute';
	Catsearcher.progress[0].innerHTML = '<img src="' + Catsearcher.link + 'kernel/images/pics/progress.gif" />';

	dropmenuCities.disable();
	dropmenuSuppliers.zero();
	dropmenuSuppliers.disable();
	dropmenuHouses.zero();
	dropmenuHouses.disable();
	dropmenuOrgan.zero();
	dropmenuOrgan.disable();
	dropmenuMetro.zero();
	dropmenuMetro.disable();
	dropmenuTM.zero();
	dropmenuTM.disable();
	dropmenuLibrary.zero();
	dropmenuLibrary.disable();
	dropmenuExpo.zero();
	dropmenuExpo.disable();
	Catsearcher.abcDisable();
	
	Catsearcher.ajax[0] = new Ajax(Catsearcher.path + 'kernel/modules/xml/c.xml.drop.suppliers.php');
	Catsearcher.ajax[0].parameters = "?c=" + city + '&decode' + '&nocashe=' + Ajax.nocash();
	Catsearcher.ajax[0].finish = function() {
		var html = Catsearcher.ajax[0].object.responseText;
		dropmenuSuppliers.change(html);
		dropmenuSuppliers.enable();
		dropmenuCities.enable();
		dropmenuHouses.enable();
		dropmenuOrgan.enable();
		dropmenuTM.enable();
		dropmenuLibrary.enable();
		dropmenuExpo.enable();
		Catsearcher.progress[0] = null;
		Catsearcher.stop[0] = false;
	}

	Catsearcher.ajax[0].loading = function() {
		if (!Catsearcher.stop[0]) {
			dropmenuSuppliers.objects[4].appendChild(Catsearcher.progress[0]);
			Catsearcher.stop[0] = true;
		}
	}
	
	Catsearcher.progress[1] = Catsearcher.progress[0].cloneNode(true);
	
	Catsearcher.ajax[1] = new Ajax(Catsearcher.path + 'kernel/modules/xml/c.xml.drop.houses.php');
	Catsearcher.ajax[1].parameters = "?c=" + city + '&decode' + '&nocashe=' + Ajax.nocash();
	Catsearcher.ajax[1].finish = function() {
		var html = Catsearcher.ajax[1].object.responseText;
		dropmenuHouses.change(html);
		dropmenuSuppliers.enable();
		dropmenuCities.enable();
		dropmenuHouses.enable();
		dropmenuOrgan.enable();
		dropmenuTM.enable();
		dropmenuLibrary.enable();
		dropmenuExpo.enable();
		Catsearcher.progress[1] = null;
		Catsearcher.stop[1] = false;
	}

	Catsearcher.ajax[1].loading = function() {
		if (!Catsearcher.stop[1]) {
			dropmenuHouses.objects[4].appendChild(Catsearcher.progress[1]);
			Catsearcher.stop[1] = true;
		}
	}
	
	Catsearcher.progress[2] = Catsearcher.progress[0].cloneNode(true);
	
	Catsearcher.ajax[2] = new Ajax(Catsearcher.path + 'kernel/modules/xml/c.xml.drop.organ.php');
	Catsearcher.ajax[2].parameters = "?c=" + city + '&decode' + '&nocashe=' + Ajax.nocash();
	Catsearcher.ajax[2].finish = function() {
		var html = Catsearcher.ajax[2].object.responseText;
		dropmenuOrgan.change(html);
		dropmenuSuppliers.enable();
		dropmenuCities.enable();
		dropmenuHouses.enable();
		dropmenuOrgan.enable();
		dropmenuTM.enable();
		dropmenuLibrary.enable();
		dropmenuExpo.enable();
		Catsearcher.progress[2] = null;
		Catsearcher.stop[2] = false;
	}

	Catsearcher.ajax[2].loading = function() {
		if (!Catsearcher.stop[2]) {
			dropmenuOrgan.objects[4].appendChild(Catsearcher.progress[2]);
			Catsearcher.stop[2] = true;
		}
	}
	
	Catsearcher.ajax[0].onevent('Catsearcher.ajax[0]');
	Catsearcher.ajax[1].onevent('Catsearcher.ajax[1]');
	Catsearcher.ajax[2].onevent('Catsearcher.ajax[2]');
}


Catsearcher.changeLibrary = function(item) {
	Catsearcher.progress[0] = document.createElement('DIV');
	Catsearcher.progress[0].style.position = 'absolute';
	Catsearcher.progress[0].innerHTML = '<img src="' + Catsearcher.link + 'kernel/images/pics/progress.gif" />';
	
	Catsearcher.abcDisable();
	dropmenuCities.disable();
	dropmenuLibrary.disable();
	dropmenuHouses.zero();
	dropmenuHouses.disable();
	dropmenuSuppliers.zero();
	dropmenuSuppliers.disable();
	dropmenuMetro.zero();
	dropmenuMetro.disable();
	dropmenuTM.zero();
	dropmenuTM.disable();
	dropmenuOrgan.zero();
	dropmenuOrgan.disable();
	dropmenuExpo.zero();
	dropmenuExpo.disable();
	
	Catsearcher.ajax[0] = new Ajax(Catsearcher.path + 'kernel/modules/xml/' + item.flag);
	Catsearcher.ajax[0].parameters = '?c=' + item.value + '&decode&nocashe=' + Ajax.nocash();
	Catsearcher.ajax[0].finish = function() {
		var html = Catsearcher.ajax[0].object.responseText;
		var abc = document.getElementById('abcCatalogSearch');
		var but = document.getElementById('abcCatalogButton');
		if (html && abc && but) {
			abc.innerHTML = html;
			letCatsrc.nothide = true; 
			letCatsrc.show();
			but.onclick = function() { letCatsrc.show(); }
			but.src = Catsearcher.link + 'kernel/images/pics/' + Catsearcher.params['azSrc'] + 'a-z.gif';
		}
		but.parentNode.removeChild(Catsearcher.progress[0]);
		dropmenuCities.enable();
		dropmenuLibrary.enable();
		dropmenuHouses.enable();
		dropmenuSuppliers.enable();
		dropmenuTM.enable();
		dropmenuOrgan.enable();
		dropmenuExpo.enable();
		Catsearcher.progress[0] = null;
		Catsearcher.stop[0] = false;
	}

	Catsearcher.ajax[0].loading = function() {
		if (!Catsearcher.stop[0]) {
			var but = document.getElementById('abcCatalogButton');
			if (but) but.parentNode.insertBefore(Catsearcher.progress[0], but.parentNode.firstChild);
			Catsearcher.stop[0] = true;
		}
	}

	Catsearcher.ajax[0].onevent('Catsearcher.ajax[0]');
}


Catsearcher.changeHouse = function(item) {
	Catsearcher.progress[0] = document.createElement('DIV');
	Catsearcher.progress[0].style.position = 'absolute';
	Catsearcher.progress[0].innerHTML = '<img src="' + Catsearcher.link + 'kernel/images/pics/progress.gif" />';
	
	Catsearcher.abcDisable();
	dropmenuCities.disable();
	dropmenuHouses.disable();
	dropmenuSuppliers.zero();
	dropmenuSuppliers.disable();
	dropmenuOrgan.zero();
	dropmenuOrgan.disable();
	dropmenuMetro.zero();
	dropmenuMetro.disable();
	dropmenuLibrary.zero();
	dropmenuLibrary.disable();
	dropmenuTM.zero();
	dropmenuTM.disable();
	dropmenuExpo.zero();
	dropmenuExpo.disable();
	
	delete Catsearcher.params['HotelClass'];
	delete Catsearcher.params['RestClass'];
	delete Catsearcher.params['RestKitchen'];
	
	Catsearcher.ajax[0] = new Ajax(Catsearcher.path + 'kernel/modules/xml/' + item.flag);
	Catsearcher.ajax[0].parameters = '?c=' + dropmenuCities.value + '&h=' + item.value + '&decode&nocashe=' + Ajax.nocash();
	Catsearcher.ajax[0].finish = function() {
		var html = Catsearcher.ajax[0].object.responseText;
		var abc = document.getElementById('abcCatalogSearch');
		var but = document.getElementById('abcCatalogButton');
		if (html && abc && but) {
			abc.innerHTML = html;
			letCatsrc.nothide = true; 
			letCatsrc.show();
			but.onclick = function() { letCatsrc.show(); }
			but.src = Catsearcher.link + 'kernel/images/pics/' + Catsearcher.params['azSrc'] + 'a-z.gif';
		}
		but.parentNode.removeChild(Catsearcher.progress[0]);
		dropmenuCities.enable();
		dropmenuSuppliers.enable();
		dropmenuHouses.enable();
		dropmenuLibrary.enable();
		dropmenuTM.enable();
		dropmenuOrgan.enable();
		dropmenuExpo.enable();
		Catsearcher.progress[0] = null;
		Catsearcher.stop[0] = false;
	}

	Catsearcher.ajax[0].loading = function() {
		if (!Catsearcher.stop[0]) {
			var but = document.getElementById('abcCatalogButton');
			if (but) but.parentNode.insertBefore(Catsearcher.progress[0], but.parentNode.firstChild);
			Catsearcher.stop[0] = true;
		}
	}
	
	if (dropmenuCities.value && (dropmenuCities.value > 0)) {
		Catsearcher.progress[1] = Catsearcher.progress[0].cloneNode(true);
		Catsearcher.ajax[1] = new Ajax(Catsearcher.path + 'kernel/modules/xml/c.xml.drop.metro.php');
		Catsearcher.ajax[1].parameters = '?c=' + dropmenuCities.value + '&h=' + item.value + '&decode&nocashe=' + Ajax.nocash();
		Catsearcher.ajax[1].finish = function() {
			var html = Catsearcher.ajax[1].object.responseText;
			if (html) {
				dropmenuMetro.change(html);
				dropmenuMetro.enable();
			}
//			if (Catsearcher.progress[1]) dropmenuMetro.objects[4].removeChild(Catsearcher.progress[1]);
			Catsearcher.progress[1] = null;
			Catsearcher.stop[1] = false;
		}
	
		Catsearcher.ajax[1].loading = function() {
			if (!Catsearcher.stop[1]) {
				dropmenuMetro.objects[4].appendChild(Catsearcher.progress[1]);
				Catsearcher.stop[1] = true;
			}
		}
		Catsearcher.ajax[1].onevent('Catsearcher.ajax[1]');
	}
	
	Catsearcher.ajax[0].onevent('Catsearcher.ajax[0]');
}

Catsearcher.changeSupplier = function(item) {
	Catsearcher.progress[0] = document.createElement('DIV');
	Catsearcher.progress[0].style.position = 'absolute';
	Catsearcher.progress[0].innerHTML = '<img src="' + Catsearcher.link + 'kernel/images/pics/progress.gif" />';
	
	Catsearcher.abcDisable();
	dropmenuCities.disable();
	dropmenuHouses.zero();
	dropmenuHouses.disable();
	dropmenuSuppliers.disable();
	dropmenuOrgan.zero();
	dropmenuOrgan.disable();
	dropmenuMetro.zero();
	dropmenuMetro.disable();
	dropmenuLibrary.zero();
	dropmenuLibrary.disable();
	dropmenuTM.zero();
	dropmenuTM.disable();
	dropmenuExpo.zero();
	dropmenuExpo.disable();
	delete Catsearcher.params['SuppClass'];
	
	Catsearcher.ajax[0] = new Ajax(Catsearcher.path + 'kernel/modules/xml/c.xml.abc.suppliers.php');
	Catsearcher.ajax[0].parameters = '?c=' + dropmenuCities.value + '&s=' + item.value + '&decode&nocashe=' + Ajax.nocash();
	Catsearcher.ajax[0].finish = function() {
		var html = Catsearcher.ajax[0].object.responseText;
		var abc = document.getElementById('abcCatalogSearch');
		var but = document.getElementById('abcCatalogButton');
		if (html && abc && but) {
			abc.innerHTML = html;
			letCatsrc.nothide = true; 
			letCatsrc.show();
			but.onclick = function() { letCatsrc.show(); }
			but.src = Catsearcher.link + 'kernel/images/pics/' + Catsearcher.params['azSrc'] + 'a-z.gif';
		}
		but.parentNode.removeChild(Catsearcher.progress[0]);
		dropmenuCities.enable();
		dropmenuHouses.enable();
		dropmenuSuppliers.enable();
		dropmenuTM.enable();
		dropmenuLibrary.enable();
		dropmenuOrgan.enable();
		dropmenuExpo.enable();
		Catsearcher.progress[0] = null;
		Catsearcher.stop[0] = false;
	}

	Catsearcher.ajax[0].loading = function() {
		if (!Catsearcher.stop[0]) {
			var but = document.getElementById('abcCatalogButton');
			if (but) but.parentNode.insertBefore(Catsearcher.progress[0], but.parentNode.firstChild);
			Catsearcher.stop[0] = true;
		}
	}
	
	if (dropmenuCities.value && (dropmenuCities.value > 0)) {
		Catsearcher.progress[1] = Catsearcher.progress[0].cloneNode(true);
		Catsearcher.ajax[1] = new Ajax(Catsearcher.path + 'kernel/modules/xml/c.xml.drop.metro.php');
		Catsearcher.ajax[1].parameters = '?c=' + dropmenuCities.value + '&s=' + item.value + '&decode&nocashe=' + Ajax.nocash();
		Catsearcher.ajax[1].finish = function() {
			var html = Catsearcher.ajax[1].object.responseText;
			if (html) {
				dropmenuMetro.change(html);
				dropmenuMetro.enable();
			}
//			dropmenuMetro.objects[4].removeChild(Catsearcher.progress[1]);
			Catsearcher.progress[1] = null;
			Catsearcher.stop[1] = false;
		}
	
		Catsearcher.ajax[1].loading = function() {
			if (!Catsearcher.stop[1]) {
				dropmenuMetro.objects[4].appendChild(Catsearcher.progress[1]);
				Catsearcher.stop[1] = true;
			}
		}
		Catsearcher.ajax[1].onevent('Catsearcher.ajax[1]');
	}
	Catsearcher.ajax[0].onevent('Catsearcher.ajax[0]');
}

Catsearcher.chooseTM = function(item) {
	Catsearcher.progress[0] = document.createElement('DIV');
	Catsearcher.progress[0].style.position = 'absolute';
	Catsearcher.progress[0].innerHTML = '<img src="' + Catsearcher.link + 'kernel/images/pics/progress.gif" />';
	Catsearcher.progress[1] = Catsearcher.progress[0].cloneNode(true);
	
	Catsearcher.abcDisable();
	dropmenuTM.disable();
	dropmenuCities.disable();
	dropmenuHouses.zero();
	dropmenuHouses.disable();
	dropmenuSuppliers.zero();
	dropmenuSuppliers.disable();
	dropmenuLibrary.zero();
	dropmenuLibrary.disable();
	dropmenuMetro.zero();
	dropmenuMetro.disable();
	dropmenuOrgan.zero();
	dropmenuOrgan.disable();
	dropmenuExpo.zero();
	dropmenuExpo.disable();
	
	Catsearcher.ajax[0] = new Ajax(Catsearcher.path + 'kernel/modules/xml/c.xml.abc.tm.php');
	Catsearcher.ajax[0].parameters = '?c=' + item.value + '&decode&nocashe=' + Ajax.nocash();
	Catsearcher.ajax[0].finish = function() {
		var html = Catsearcher.ajax[0].object.responseText;
		var abc = document.getElementById('abcCatalogSearch');
		var but = document.getElementById('abcCatalogButton');
		if (html && abc && but) {
			abc.innerHTML = html;
			letCatsrc.nothide = true;
			letCatsrc.show();
			but.onclick = function() { letCatsrc.show(); }
			but.src = Catsearcher.link + 'kernel/images/pics/' + Catsearcher.params['azSrc'] + 'a-z.gif';
			but.parentNode.removeChild(Catsearcher.progress[0]);
		}
		dropmenuCities.enable();
		dropmenuHouses.enable();
		dropmenuTM.enable();
		dropmenuSuppliers.enable();
		dropmenuLibrary.enable();
		dropmenuOrgan.enable();
		dropmenuExpo.enable();
		Catsearcher.progress[0] = null;
		Catsearcher.stop[0] = false;
	}

	Catsearcher.ajax[0].loading = function() {
		if (!Catsearcher.stop[0]) {
			var but = document.getElementById('abcCatalogButton');
			if (but) but.parentNode.insertBefore(Catsearcher.progress[0], but.parentNode.firstChild);
			Catsearcher.stop[0] = true;
		}
	}
	Catsearcher.ajax[0].onevent('Catsearcher.ajax[0]');
}


Catsearcher.changeOrgan = function(item) {
	Catsearcher.progress[0] = document.createElement('DIV');
	Catsearcher.progress[0].style.position = 'absolute';
	Catsearcher.progress[0].innerHTML = '<img src="' + Catsearcher.link + 'kernel/images/pics/progress.gif" />';
	
	Catsearcher.abcDisable();
	dropmenuOrgan.disable();
	dropmenuCities.disable();
	dropmenuHouses.zero();
	dropmenuHouses.disable();
	dropmenuSuppliers.zero();
	dropmenuSuppliers.disable();
	dropmenuMetro.zero();
	dropmenuMetro.disable();
	dropmenuLibrary.zero();
	dropmenuLibrary.disable();
	dropmenuTM.zero();
	dropmenuTM.disable();
	dropmenuExpo.zero();
	dropmenuExpo.disable();
	
	Catsearcher.ajax[0] = new Ajax(Catsearcher.path + 'kernel/modules/xml/c.xml.abc.organ.php');
	Catsearcher.ajax[0].parameters = '?c=' + dropmenuCities.value + '&o=' + item.value + '&decode&nocashe=' + Ajax.nocash();
	Catsearcher.ajax[0].finish = function() {
		var html = Catsearcher.ajax[0].object.responseText;
		var abc = document.getElementById('abcCatalogSearch');
		var but = document.getElementById('abcCatalogButton');
		if (html && abc && but) {
			abc.innerHTML = html;
			letCatsrc.nothide = true; 
			letCatsrc.show();
			but.onclick = function() { letCatsrc.show(); }
			but.src = Catsearcher.link + 'kernel/images/pics/' + Catsearcher.params['azSrc'] + 'a-z.gif';
		}
		but.parentNode.removeChild(Catsearcher.progress[0]);
		dropmenuCities.enable();
		dropmenuSuppliers.enable();
		dropmenuOrgan.enable();
		dropmenuHouses.enable();
		dropmenuLibrary.enable();
		dropmenuTM.enable();
		dropmenuExpo.enable();
		Catsearcher.progress[0] = null;
		Catsearcher.stop[0] = false;
	}

	Catsearcher.ajax[0].loading = function() {
		if (!Catsearcher.stop[0]) {
			var but = document.getElementById('abcCatalogButton');
			if (but) but.parentNode.insertBefore(Catsearcher.progress[0], but.parentNode.firstChild);
			Catsearcher.stop[0] = true;
		}
	}
	

	if (dropmenuCities.value && (dropmenuCities.value > 0)) {
		Catsearcher.progress[1] = Catsearcher.progress[0].cloneNode(true);
		Catsearcher.ajax[1] = new Ajax(Catsearcher.path + 'kernel/modules/xml/c.xml.drop.metro.php');
		Catsearcher.ajax[1].parameters = '?c=' + dropmenuCities.value + '&o=' + item.value + '&decode&nocashe=' + Ajax.nocash();
		Catsearcher.ajax[1].finish = function() {
			var html = Catsearcher.ajax[1].object.responseText;
			if (html) {
				dropmenuMetro.change(html);
				dropmenuMetro.enable();
			}
			Catsearcher.progress[1] = null;
			Catsearcher.stop[1] = false;
		}
	
		Catsearcher.ajax[1].loading = function() {
			if (!Catsearcher.stop[1]) {
				dropmenuMetro.objects[4].appendChild(Catsearcher.progress[1]);
				Catsearcher.stop[1] = true;
			}
		}
		Catsearcher.ajax[1].onevent('Catsearcher.ajax[1]');
	}
	
	Catsearcher.ajax[0].onevent('Catsearcher.ajax[0]');
}

Catsearcher.changeExpo = function(item) {
	Catsearcher.progress[0] = document.createElement('DIV');
	Catsearcher.progress[0].style.position = 'absolute';
	Catsearcher.progress[0].innerHTML = '<img src="' + Catsearcher.link + 'kernel/images/pics/progress.gif" />';
	
	Catsearcher.abcDisable();
	dropmenuOrgan.zero();
	dropmenuOrgan.disable();
	dropmenuCities.disable();
	dropmenuHouses.zero();
	dropmenuHouses.disable();
	dropmenuSuppliers.zero();
	dropmenuSuppliers.disable();
	dropmenuMetro.zero();
	dropmenuMetro.disable();
	dropmenuLibrary.zero();
	dropmenuLibrary.disable();
	dropmenuTM.zero();
	dropmenuTM.disable();
	dropmenuExpo.disable();
	
	Catsearcher.ajax[0] = new Ajax(Catsearcher.path + 'kernel/modules/xml/c.xml.abc.expo.php');
	Catsearcher.ajax[0].parameters = '?t=' + item.value + '&decode&nocashe=' + Ajax.nocash();
	Catsearcher.ajax[0].finish = function() {
		var html = Catsearcher.ajax[0].object.responseText;
		var abc = document.getElementById('abcCatalogSearch');
		var but = document.getElementById('abcCatalogButton');
		if (html && abc && but) {
			abc.innerHTML = html;
			
			var script = Ajax.explodeXML(html, 'xmlSrc');
			if (script) { var f = new Function(script); f() }
			
			letCatsrc.nothide = true; 
			letCatsrc.show();
			but.onclick = function() { letCatsrc.show(); }
			but.src = Catsearcher.link + 'kernel/images/pics/' + Catsearcher.params['azSrc'] + 'a-z.gif';
		}
		but.parentNode.removeChild(Catsearcher.progress[0]);
		dropmenuCities.enable();
		dropmenuOrgan.enable();
		dropmenuHouses.enable();
		dropmenuSuppliers.enable();
		dropmenuTM.enable();
		dropmenuLibrary.enable();
		dropmenuExpo.enable();
		Catsearcher.progress[0] = null;
		Catsearcher.stop[0] = false;
	}

	Catsearcher.ajax[0].loading = function() {
		if (!Catsearcher.stop[0]) {
			var but = document.getElementById('abcCatalogButton');
			if (but) but.parentNode.insertBefore(Catsearcher.progress[0], but.parentNode.firstChild);
			Catsearcher.stop[0] = true;
		}
	}
	
	Catsearcher.ajax[0].onevent('Catsearcher.ajax[0]');
}


Catsearcher.chooseMetro = function(item) {
	switch(item.flag) {
		case 'supplier' :
			var file = 'c.xml.abc.suppliers.php';
			var param = '&s=' + dropmenuSuppliers.value;
			if (Catsearcher.params['SuppClass']) param += '&l=' + Catsearcher.params['SuppClass'];
			dropmenuHouses.zero();
		break;
		case 'hotel' :
			var file = 'c.xml.abc.hotels.php';
			var param = '&h=' + dropmenuHouses.value;
			if (Catsearcher.params['HotelClass']) param += '&l=' + Catsearcher.params['HotelClass'];
			dropmenuSuppliers.zero();
		break;
		case 'restaurant' :
			var file = 'c.xml.abc.rest.php';
			var param = '&h=' + dropmenuHouses.value;
			if (Catsearcher.params['RestClass']) param += '&l=' + Catsearcher.params['RestClass'];
			if (Catsearcher.params['RestKitchen']) param += '&k=' + Catsearcher.params['RestKitchen'];
			dropmenuSuppliers.zero();
		break;
		case 'catering' :
			var file = 'c.xml.abc.catering.php';
			var param = '&h=' + dropmenuHouses.value;
			dropmenuSuppliers.zero();
		break;
		case 'organization' :
			var file = 'c.xml.abc.organ.php';
			var param = '&o=' + dropmenuOrgan.value;
			dropmenuSuppliers.zero();
		break;
		
		default: return false;
	}
	
	Catsearcher.progress[0] = document.createElement('DIV');
	Catsearcher.progress[0].style.position = 'absolute';
	Catsearcher.progress[0].innerHTML = '<img src="' + Catsearcher.link + 'kernel/images/pics/progress.gif" />';
	
	Catsearcher.abcDisable();
	dropmenuCities.disable();
	
	dropmenuHouses.disable();
	dropmenuSuppliers.disable();
	dropmenuOrgan.disable();
	dropmenuMetro.disable();
	dropmenuTM.zero();
	dropmenuTM.disable();
	dropmenuLibrary.zero();
	dropmenuLibrary.disable();
	dropmenuExpo.zero();
	dropmenuExpo.disable();
	
	Catsearcher.ajax[0] = new Ajax(Catsearcher.path + 'kernel/modules/xml/' + file);
	Catsearcher.ajax[0].parameters = '?c=' + dropmenuCities.value + param + '&m=' + item.value + '&decode&nocashe=' + Ajax.nocash();
	Catsearcher.ajax[0].finish = function() {
		var html = Catsearcher.ajax[0].object.responseText;
		var abc = document.getElementById('abcCatalogSearch');
		var but = document.getElementById('abcCatalogButton');
		if (html && abc && but) {
			abc.innerHTML = html;
			letCatsrc.nothide = true; 
			letCatsrc.show();
			but.onclick = function() { letCatsrc.show(); }
			but.src = Catsearcher.link + 'kernel/images/pics/' + Catsearcher.params['azSrc'] + 'a-z.gif';
		}
		but.parentNode.removeChild(Catsearcher.progress[0]);
		dropmenuCities.enable();
		dropmenuHouses.enable();
		dropmenuSuppliers.enable();
		dropmenuMetro.enable();
		dropmenuTM.enable();
		dropmenuLibrary.enable();
		dropmenuOrgan.enable();
		dropmenuExpo.enable();
		Catsearcher.progress[0] = null;
		Catsearcher.stop[0] = false;
	}

	Catsearcher.ajax[0].loading = function() {
		if (!Catsearcher.stop[0]) {
			var but = document.getElementById('abcCatalogButton');
			if (but) but.parentNode.insertBefore(Catsearcher.progress[0], but.parentNode.firstChild);
			Catsearcher.stop[0] = true;
		}
	}
	
	Catsearcher.ajax[0].onevent('Catsearcher.ajax[0]');
}

Catsearcher.abcDisable = function() {
	var abc = document.getElementById('abcCatalogSearch');
	var but = document.getElementById('abcCatalogButton');
	if (abc && but) {
		letCatsrc.close();
		abc.innerHTML = '';
		but.onclick = function() {}
		but.src = Catsearcher.link + 'kernel/images/pics/gray.a-z.gif';
	}
}