var current_top = 0;
var scrolling = false;

function scrollUp(num)
{
	if(scrolling) return;
	var list = $("scrolling_list");
	var arChildren = list.immediateDescendants();

	if(arChildren.length - current_top < 5)
		return;

	arCurrPos = Position.positionedOffset(arChildren[current_top]);
	arNextPos = Position.positionedOffset(arChildren[current_top+1]);
	
	//var deltaY = arNextPos[1] - arCurrPos[1];
	var deltaY = 138;
	scrolling = true;
	new Effect.Move ($("scrolling_list"),
		{ x: 0, y: -deltaY, duration: 0.4, mode: 'relative', afterFinish: function(obj) {scrolling = false;}});

	current_top++;
}

function scrollDown(num)
{
	if(scrolling) return;
	var list = $("scrolling_list");
	var arChildren = list.immediateDescendants();

	if(current_top <= 0)
		return;

	arCurrPos = Position.positionedOffset(arChildren[current_top]);
	arNextPos = Position.positionedOffset(arChildren[current_top-1]);
	
	//var deltaY = arNextPos[1] - arCurrPos[1];
	var deltaY = -138;
	scrolling = true;
	new Effect.Move ($("scrolling_list"),	
		{ x: 0, y: -deltaY, duration: 0.4, mode: 'relative', afterFinish: function(obj) {scrolling = false;}});
	current_top--;
}

function makeBox(content)
{
	var width;
	var height;

	if(content == null)
	{
		width = 400;
		hieght = 400;
	}
	else
	{
		width = 400;
		hieght = 400;
	}

	
}

function hoverRating()
{
}
