var task_status = 0;
var status_background_colors = new Array();
status_background_colors[0] = '#ECECEC';
status_background_colors[1] = '#ECECEC';
status_background_colors[2] = '#FFAAAA';


function toggleDisplay(arg_prefix, arg_id)
{
	$item_to_toggle = document.getElementById(arg_prefix + arg_id);
	if($item_to_toggle.style.display == 'none')
	{
		$item_to_toggle.style.display = 'block';
	}
	else
	{
		$item_to_toggle.style.display = 'none';
	}
}

function taskOver(arg_item, arg_status)
{
	task_status = arg_status;
	$item_to_highlight = arg_item;
	$item_to_highlight.style['backgroundColor'] = '#AAFFAA';
}

function taskOut(arg_item)
{
	$item_to_highlight = arg_item;
	$item_to_highlight.style['backgroundColor'] = status_background_colors[task_status];
}
