function expandBlock(blck) {
    $(blck).style.display = "block";
	$("plus1").style.disabled=true;
	$("minus1").style.disabled=false;
	return true;
}

function collapseBlock(blck) {
    $(blck).style.display = "none";
	$("plus1").style.disabled=false;
	$("minus1").style.disabled=true;
	return true;
}

/**
* Collapses an area. Used for collapsing and expanding areas, e.g. blue content frame
* @param expandableAreaContainer - jquery Object containing the area to be expanded and expanding image control
* @param collapseControlAction - function to process collapse control changes
*/
function collapse(expandableAreaContainer, collapseControlAction)
{
	$0('.expandable',expandableAreaContainer).toggle();
	if (typeof collapseControlAction == 'function')
	{
		collapseControlAction(expandableAreaContainer);
	}
}

function changeImageCollapseControl(expandableAreaContainer)
{
	var source = $0('img.expandControl', expandableAreaContainer).attr('src');
	$0('img.expandControl', expandableAreaContainer).attr('src', '/i/i/expander_'+( source.indexOf('less') != -1 ? 'more' : 'less')+'.gif');
}
