	var hy_tormoz = null;  //Таймер
	var hy_tormoznoy_put = 10; // Количество итераций
	var hy_speed = 25; // Скорость в мс
	var hy_currentStep = 1; // Текущий шаг
	var hy_showhide = 'show'; // Показывать или прятать
	var hy_currentId = 'block_hy';
	
	//Принимает запрос и запускает таймер
	function goFullText(id)
	{
		if(hy_tormoz)
		{
			clearInterval(hy_tormoz);
		}
		hy_currentId = id;
		hy_tormoz = setInterval(hy_fullText,hy_speed);
		
	}
	
	function hy_fullText()
	{
		if(hy_currentStep < hy_tormoznoy_put)
		{
			
			if(hy_showhide == 'show')
			{
				if(hy_currentStep == 1)
				{
					document.getElementById(hy_currentId).style.height = '0px';
					//document.getElementById(currentId).style.display = 'block';
				}
				
				var hy_actStep = (hy_currentStep+1)*20;
			}
			else if(hy_showhide == 'hide')
			{
				if(hy_currentStep == 1)
				{	
					document.getElementById(hy_currentId).style.height = '100%';
				}
				
				var hy_actStep = (hy_tormoznoy_put-hy_currentStep)*20;
			}
			hy_currentStep ++;
			document.getElementById(hy_currentId).style.height = hy_actStep+'px';
		}
		else 
		{
			if(hy_showhide == 'show')
			{
				document.getElementById(hy_currentId).style.height = 'auto';
				//Переключаем в прятать
				hy_showhide = 'hide';
				document.getElementById(hy_currentId).focus();
				var canvasTop = document.getElementById(hy_currentId).offsetTop; 
				window.scrollTo(0, canvasTop); 
			}
			else
			{
				document.getElementById(hy_currentId).style.height = '1px';
				//Переключаем в показывать
				hy_showhide = 'show';
			}
			hy_currentStep = 1;
			clearInterval(hy_tormoz);
		}
	}
