var index = new Array(0,0,0);
var arr = new Array(0,1,3,5, 7, 9, 11, 13, 16, 19, 23, 27, 32, 37,43,49, 56);
var direction = new Array(1,1,1);

function ok(name,pos){

	if(name == "portfolio")
		who = 0;
	else if (name=="freestuff")
		who = 1;
	else if (name == "about")
		who = 2;
		
	if (arguments.length == 2)
		direction[who] = pos;

	var obj = document.getElementById(name);

	obj.style.top = arr[index[who]] + 'px';

	if (direction[who] == 1 && index[who]<16)
		index[who]++;
	else if (direction[who]==0 && index[who]>0)
		index[who]--;

	if (((index[who]>0)&&direction[who]==0) || ((direction[who]==1)&&(index[who]<17)))
			setTimeout("ok('" + name + "')",20);
	}
