function ShowBImg(_ele_id, _id) {
		var div_id = document.getElementById(_ele_id);

		/*new Ajax.Request('/show_banner.php', {
			asynchronous: true,
			method: 'post',
			postBody: 'id=' + _id,
			onSuccess: function (r) {
				div_id.innerHTML = r.responseXML.getElementsByTagName('content')[0].firstChild.nodeValue;


				//current_banner[_id] = _id;
			}
		});*/

		$.ajax({
		   type: "POST",
		   url: '/show_banner.php',     // this is the path from above
		   data: 'id=' + _id,
		   success: function(s) {
		     div_id.innerHTML = s.getElementsByTagName('content')[0].firstChild.nodeValue;
		   }
		});
}

function SwitchBanner(_ele_id, _without_id, _location) {
		var div_id = document.getElementById(_ele_id);

		/*new Ajax.Request('/show_banner.php', {
			asynchronous: true,
			method: 'post',
			postBody: 'without=' + _without_id + '&location=' + _location,
			onSuccess: function (r) {
				div_id.innerHTML = r.responseXML.getElementsByTagName('content')[0].firstChild.nodeValue;

				setTimeout("SwitchBanner('" + _ele_id + "', '" + r.responseXML.getElementsByTagName('id')[0].firstChild.nodeValue + "', '" + _location + "')", delay);
			}
		});*/

		$.ajax({
		   type: "POST",
		   url: '/show_banner.php',     // this is the path from above
		   data: 'without=' + _without_id + '&location=' + _location,
		   success: function(s) {
		     div_id.innerHTML = s.getElementsByTagName('content')[0].firstChild.nodeValue;

				setTimeout("SwitchBanner('" + _ele_id + "', '" + s.getElementsByTagName('id')[0].firstChild.nodeValue + "', '" + _location + "')", delay);
		   }
		});
}

function hideSelector(_name) {
	$('#selector_layer_' + _name).slideUp('fast', 
		function() {
			$('#selector_link_' + _name).show();
		}
	);
}

function exhibitionEvent(ele, lang) {
	var selected_value = null;

	if (ele.selectedIndex != -1) {
		selected_value = ele.options[ele.selectedIndex].value;
	}
	
	if(selected_value != '' && selected_value != null) {
		if(lang == 'ru')
			window.location = '/participant/form/?exhibition=' + selected_value;
		else 
			window.location = '/Exhibitors/form/?exhibition=' + selected_value;
		/*window.location.reload('?exhibition=' + selected_value);*/
	}
}