function itemsPreLoad(root)
{
	cr_off = new Image(); cr_off.src = root + 'images/crystal_off.gif';
	cr_on = new Image(); cr_on.src = root + 'images/crystal_on.gif';
}

function actRemark(id, show)
{
	if (document.images)
		if(show)
			document.images['star' + id].src = eval('cr_on.src');
		else
			document.images['star' + id].src = eval('cr_off.src');
}

function goTo(where) {
	document.location.replace(where);
	return false;
}

var currDiv = null;

function actBranch(divId, act)
{
	if(!document.layers)
	{
		var subDivId = 'sub' + divId;
		var subDiv = document.getElementById(subDivId);
		if(subDiv) subDiv.style.display = act;
		self.focus();
	}
}

function showBranch(divId)
{
	if(currDiv != divId)
	{
		if(currDiv != null) actBranch(currDiv, 'none');
		actBranch(divId, '');
		currDiv = divId;
	}
	return false;
}

function findParent(aticle)
{
	if(!document.layers)
	{
		var tbl = document.getElementById(aticle);
		if(tbl)
		{
			div = tbl.parentElement;
			divId = div.id;
			if(divId.length > 3)
			{
				divId = divId.substr(3);
				actBranch(divId, '');
				currDiv = divId;

			}
		}
		self.focus();
	}
	return false;
}


