function hl(div)
{
	div.style.backgroundColor="#b6d1f8";
	div.style.color="#ffffff";
}

function dhl(div)
{
	div.style.backgroundColor="transparent";
	div.style.color="#385994";
}

function ol(location)
{
	document.location.href=location;
}

function normalize(node)
{
	d1height=document.getElementById('block1').offsetHeight;
	d2height=document.getElementById('block2').offsetHeight;
	if (255>d1height)
	{
		d1height=255;
		document.getElementById('block1_cnt').style.height=d1height+'px';
	}
	if (155>d2height)
	{
		d2height=155;
		document.getElementById('block2_cnt').style.height=d2height+'px';
	}
	height=document.getElementById('left').offsetHeight;
	cheight=document.getElementById('content').offsetHeight;
	if (height > cheight)
	{
		document.getElementById('content').style.height=height+'px';
	}
	else
	{
		height=cheight;
		document.getElementById('left').style.height=height+'px';
	}
	document.getElementById('middle').style.height=height+'px';
	document.getElementById('right').style.height=height+'px';
	document.getElementById('m_block1').style.height=d1height+'px';
	//testLinks(node)
}

function testLinks(node)
{
	links=document.getElementById('content').getElementsByTagName('a');
	matcher = new RegExp("\\&amp;nid=(\\d)*$");
	total=links.length;
	for (i=0; i< total; i++)
	{
		if (matcher.exec(links[i])==null)
		{
			links[i].href=links[i]+"&nid="+node;
		}
	}
}

function showLayer(divid){
if(divid!="")
{
	id=document.getElementById(divid);
	id.style.display="block";
}
}
function hideLayer(divid){
if (divid!="")
{
	id=document.getElementById(divid);
	id.style.display="none";
}
}

function highlightThis(div,act){
	if (act==true)
	{
		div.style.backgroundColor='#f9f9f9';
	}
	else
	{
		div.style.backgroundColor='#ffffff';
	}
}
