	function SetFavorites(){
		window.external.AddFavorite('http://www.lenexpo.ru', 'Международная специализированная выставка (Зоосфера).');
	}

	function ShowPhoto(url) {
		window.open(url, '_blank', 'width=0, height=0, menubar=no, scrollbars=no, status=no, top=0, left=0');
	}
	
	function GetObject(objId) {
		if (navigator.appName.substring(0,2) !="Mi")
			return document.getElementById(objId);
		else
			return document.all[objId];
	}
	
	function ShowTable(id_table) {
		var obj = GetObject(id_table);
		obj.style.display = ( obj.style.display == 'none') ? '' : 'none';	
	}
	
	
	var id_menu = '';
	
	function ShowImage(id){
		//alert ("dddd");
		//alert(id);
		var cur_obj;
		if(id_menu != ''){
			GetObject("image"+id_menu).style.display = "none";	
			GetObject("text"+id_menu).style.display = "none";				
		}
		
		if(cur_id != ''){
			GetObject("image"+cur_id).style.display = "none";	
			GetObject("text"+cur_id).style.display = "none";				
		}
		
		cur_obj = GetObject("image"+id);
		cur_obj.style.top = (id-1)*19;
		
		GetObject("image"+id).style.display = "Block";	
		GetObject("text"+id).style.display = "Block";	
		
		id_menu = id;
	}
	
	function HideImage(){
		if(id_menu != ''){
			GetObject("image"+id_menu).style.display = "none";	
			GetObject("text"+id_menu).style.display = "none";	
		}
		if(cur_id != ''){
			GetObject("image"+cur_id).style.display = "Block";	
			GetObject("text"+cur_id).style.display = "Block";				
		}
		
	}
	
	function ShowPlan() {
		var h = screen.height;
		var w = screen.width;				
		h = (h >> 1) - 300;
		w = (w >> 1) - 385;				
		window.open('plan.phtml', '_blank', "width=0, height=0, menubar=no, scrollbars=yes,  status=no, top="+h+", left="+w+"");
	}