// scroll in div (overflow=hidden)
function moveTo(container, move) {

	var width = 283;
	if (move > 0)
		width = -width;

	// Current div put 1 to default
	if(!location.hash)
	{
		var div = 1;
	} 
	else
	{
		var div = location.hash;
		div = div.replace('#', '');
		div = parseInt(div);
	}

	var next	= 0;
	var proceed = true;
	var element = null;
	
	if (move > 0) {
		next = div + 3;
		if ($(container + '-' + next) === null)
			proceed = false;
	} else if (move < 0) {
		next = div - 1;
		if ($(container + '-' + next) === null)
			proceed = false;
	}

	if (proceed === true) {	
		div += move;
		location.hash = div;
		new Effect.Move ($('list-cases'),{ x: width, y: 0, mode: 'relative'});
	}	
}

function goTo() {
	if(location.hash)
	{
		var num = location.hash;
		num = num.replace('#', '') - 1;
		
		var space = num * -283;
		new Effect.Move ($('list-cases'),{ x: space, y: 0, mode: 'relative'});
		
	  	div = num;
	}
}
