var testMenu = new Hash;
testMenu.max_position = 0;
testMenu.current_position = 0;

function scrollTestMenu(direction){
	var scroll_from = $('top_test_block').scrollLeft;
	var scroll_to = $('top_test_block').scrollLeft;
	if (direction=='left'&&testMenu.current_position>0){
		scroll_to -= 116;
		testMenu.current_position--;
	}
	else if (direction=='right'&&testMenu.current_position<testMenu.max_position){
		scroll_to += 116;
		testMenu.current_position++;
	}
	new Effect.Tween('top_test_block', scroll_from, scroll_to, { duration: 0.5, transition: Effect.Transitions.spring }, 'scrollLeft');
}