Есть функция с таким кодом
function myf() {
	$.ajax({
		type: "POST",
		url: "config.php",
		data: {данные},
		success: function(html)	{
				$("#res").html(html);
				document.getElementById('res').style.display = 'block'; //по умолчанию #res скрыт
				setTimeout(function() {
					document.getElementById('res').style.display = 'none'; 
					clear('res');
					config('open_conf','.articleContent');
					$('#smiles').animate({height: 'show'}, 200); // эта часть не работает
				},1000);
			}
	});
return false;
}
Все функции работают, кроме метода .animate().
Но если перед ним поставить alert('text') , то после скрытия алерта пользователем метод .animate() выполняется.
Подскажите, в чём проблема?