function scrollto(nr,cat)
{
	z = nr;
	c = cat;
	y = document.getElementById(c).style.top;
	y = y.replace('px','');
	x = Number(y);
	xbun = (1-nr)*450;
	if(x>xbun)
	{
		if(x<(xbun+65))
		{
			x=x-1;
		}
		else if(x>(xbun+450))
		{
			x=x-75;
		}
		else
		{
			x=x-25;
		}
		document.getElementById(c).style.top=x+"px";
		t=setTimeout("scrollto(z,c)",1);
	}
	if(x<xbun)
	{
		if(x>(xbun-65))
		{
			x=x+1;
		}
		else if(x<(xbun-450))
		{
			x=x+75;
		}
		else
		{
			x=x+25;
		}
		document.getElementById(c).style.top=x+"px";
		t=setTimeout("scrollto(z,c)",1);
	}
	
}
