function fnOpenSub(p)
	{
	ptr=p;
	while(ptr.nodeName!='DD')
		ptr=ptr.nextSibling;
	
	if(ptr.style.display=='block')
		{
		ptr.style.display='none';
		p.className='';
		}
	else
		{
		ptr.style.display='block';
		p.className='act';
		}
	}

function fnOver(p)
	{
	if(p.className!="act")
		p.className="hover";
	}
	
function fnOut(p)
	{
	if(p.className!="act")
		p.className="";
	}

function fnInitTree(id)
	{
	arr=document.getElementById(id).getElementsByTagName('dt');
	for(i=0; i<arr.length; i++)
		{
		if(document.all && !window.opera)
			{
			arr[i].setAttribute('onclick', function(){fnOpenSub(this);});
			arr[i].setAttribute('onmouseover', function(){fnOver(this);});
			arr[i].setAttribute('onmouseout', function(){fnOut(this);});
			}
		else
			{
			arr[i].setAttribute('onclick', 'fnOpenSub(this);');
			arr[i].setAttribute('onmouseover', 'fnOver(this)');
			arr[i].setAttribute('onmouseout', 'fnOut(this)');
			}
			
		}
	}

window.onload=function()
	{
	fnInitTree('tree');
	}
