function setH ( id1, id2 )
{	var lt = $("#"+id1).height();
	var rt = $("#"+id2).height();

	if ( lt > rt )
	{	$("#"+id1).height(lt);
		$("#"+id2).height(lt);
	}
	else
	{	$("#"+id1).height(rt);
		$("#"+id2).height(rt);
	}
}

function setW ( tochange, tocompare, dawrapper )
{	var comwidth = document.getElementById(tocompare).offsetWidth; //$("#"+tocompare).width();
	var oldwidth = document.getElementById(dawrapper).offsetWidth; //$("#"+dawrapper).width();

	var newwidth = oldwidth - comwidth;
	document.getElementById(tochange).style.width = newwidth + 'px';
}

function loadHide ( classid, hasnot, notid )
{	$("ul."+classid).hide(0);/*fast*/
	if (hasnot)
	{	showHideChild ( 'cli'+notid, 'ali'+notid );
	}
}

function showHideChild ( childID, parenID )
{	if ( document.getElementById(childID).style.display == 'block' )
	{	document.getElementById(childID).style.display = 'none';
		document.getElementById(parenID).className = 'more';
	}
	else
	{	document.getElementById(childID).style.display = 'block';
		document.getElementById(parenID).className = 'less';
	}
}
