var hh = 0;
var inter;
var obj;

function showBox(first)
{
	obj = document.getElementById('sp-results');
	
	if(first) { inter = setInterval('showBox(false)', 3); }
	
	if(hh >= 123)
	{
		clearInterval(inter);
		return;
	}
	
	obj.style.visibility = 'visible';
	
	hh+=3;
	
	obj.style.height = hh + 'px';
}

function hideBox(first)
{
	obj = document.getElementById('sp-results');
	
	if(first) { inter = setInterval('hideBox(false)', 3); }
	
	if(hh <= 2)
	{
		clearInterval(inter);
		obj.style.visibility = 'hidden';
		obj.style.height     = '0.1em'
		return;
	}
	
	hh -= 3;
	obj.style.height = hh + 'px';
}

function resetBox()
{
	clearInterval(inter);
}
