function menuScroll( position )
{
	var element = document.getElementById( 'scroll' );
	var current = element.style.left;
	
	if ( current )
	{
		current = parseInt( current.substring( 0, current.length - 2 ) );
	}
	else
	{
		current = 0;
	}
	
	var next	= position * -140;
	
	new com.ydso.transitions.Tween( element, 'x', com.ydso.easing.linear, current, next, 500 );
}

function setPosition( position )
{
	var element = document.getElementById( 'scroll' ).style.left = ( position * -140 ) + "px";
}
