var inner_boxes = new Array('adresse_inhalt', 
		'special_pasta_inhalt',
		'special_pizza_inhalt',
		'special_salat_inhalt'
	);
	
var boxes = new Array('special_pasta',
		'special_pizza',
		'special_salat'
	);

function fixContentHeight()
{
	var offset = 62;
	
	if ($('col_left_content').getHeight() - offset < $('col_right').getHeight())
	{
		height = $('col_right').getHeight() - offset;
		
		$('col_left_content').setStyle({
			height: height + 'px'
		});
	}
}
	
function appearBox(id)
{
	current_opacity = $(id).getStyle('opacity');
	
	new Effect.Opacity(id, {
		from: current_opacity,
		to: 1.0,
		duration: 0.2
	});
}

function fadeBox(id)
{
	current_opacity = $(id).getStyle('opacity');
	
	new Effect.Opacity(id, {
		from: current_opacity,
		to: 0.5,
		duration: 0.2
	});
}

function fixBoxHeight()
{
	max_height = 0;
	
	for (i = 0; i < inner_boxes.length; i++)
	{
		if ($(inner_boxes[i]).getHeight() > max_height)
		{
			max_height = $(inner_boxes[i]).getHeight();
		}
	}
	
	for (i = 0; i < inner_boxes.length; i++)
	{
		$(inner_boxes[i]).setStyle({
			height: max_height + 'px'
		});
	}
}

function setOpacity()
{
	for (i = 0; i < boxes.length; i++)
	{
		new Effect.Opacity($(boxes[i]), {
			from: 1.0,
			to: 0.5,
			duration: 0.1
		});
	}
}