function navset(x,y)
{
	if (x)
		document.getElementById('nav_'+x).className='navhighlight';
	if (y)
		document.getElementById('sec_'+y).className='sechighlight';
}

function autoheight()
{
	return true;
	//var mainheight = document.getElementById('main').offsetHeight;
	//var backgroundheight = mainheight + 240;
	//document.getElementById('background').style.height = backgroundheight + 'px';
//	$('#background').animate({height: backgroundheight+240}, 'slow');	
}

function toggle(id,state)
{
	if(state == "on")
		document.getElementById(id).style.display='block';
	else if(state == "off")
		document.getElementById(id).style.display='none';	
	else
		document.getElementById(id).style.display=(document.getElementById(id).style.display=='block') ? 'none' : 'block';
}
