var current;
var active_tab;
var motion;

function move_to(to, el)
{
	if (!motion)
	{
		if (active_tab != el)
		{
			el.parentNode.parentNode.className += ' active-tab';
			active_tab.parentNode.parentNode.className = 'corner-left-top';
		}
		active_tab = el;    
		move = (current - to)*685;
		new Effect.Move($('tabber'), { x: move, beforeStart:function(){ motion = true;},afterFinish:function(){motion = false;}});
		current = to;
	}
}

