//// Показ и скрытие всплывающего объекта ////////////////////////////////

	// Объявляем "пустой" объект
	var obShowHideElement = false;

	// Включаем функцию определения координат курсора и реакцию
	$(document).ready(function(){
		$("body").mousemove(function(e){
				if(obShowHideElement["intVisibled"])
				{
					// Если координаты не объекта определены - определяем
					if(!obShowHideElement["obPosition"]) obShowHideElement["obPosition"] = GetElementPosition(obShowHideElement["id"]);
					// Если курсор вышел за границы объекта - скрываем объект
					if(e.pageX < obShowHideElement["obPosition"]["left"] || e.pageY < obShowHideElement["obPosition"]["top"] || e.pageX > (obShowHideElement["obPosition"]["left"]+obShowHideElement["obPosition"]["width"]) || e.pageY > (obShowHideElement["obPosition"]["top"]+obShowHideElement["obPosition"]["height"])) HideElement2(obShowHideElement["id"]);
				}
		});
	});

	// Поозиционирует объект
	function PlaceShowElement(id,timeout)
	{
		// Выставляем размер и позицию
		var intCurTop=(document.body.scrollTop)?document.body.scrollTop:document.documentElement.scrollTop;
		document.getElementById(id).style.top=intCurTop+40+'px';
		document.getElementById(id).style.left=(document.body.clientWidth/2)-(400/2)+'px';
//		document.getElementById(id).style.width='500px';
		ShowElement(id,timeout);
	}

	// Показывает объект
	function ShowElement(id,timeout)
	{
		// Если объект "пустой" - заполняем начальными значениями
		if(!obShowHideElement) obShowHideElement = {"intVisibled":0,"intProcessed":0,"obPosition":false,"id":id};
		if(!obShowHideElement["intProcessed"])
		{
			obShowHideElement["intProcessed"] = 1;
			document.getElementById(id).style.visibility = '';
			$("#"+id)
			  .animate({height: "hide"}, 0)
			  .animate({opacity: "show", height: "show"}, timeout);
				setTimeout("obShowHideElement['intVisibled'] = 1",timeout);
				setTimeout("obShowHideElement['intProcessed'] = 0",timeout);
		}//alert(id);return;
	}

	// Прячет объект
	function HideElement2(id)
	{
	}

	// Прячет объект
	function HideElement(id,timeout)
	{
		if(!obShowHideElement["intProcessed"])
		{
			obShowHideElement["intProcessed"] = 1;
			$("#"+id)
			  .animate({opacity: "hide", height: "hide"}, timeout);
				setTimeout("obShowHideElement['intVisibled'] = 0",timeout);
				setTimeout("obShowHideElement['intProcessed'] = 0",timeout);
				setTimeout("document.getElementById('"+id+"').style.visibility = 'hidden'",(timeout/100*95));
		}
	}

//// Показ и скрытие всплывающего объекта КОНЕЦ///////////////////////////

