function disableselect(e){return false;}
function reEnable(){return true;}document.onselectstart=new Function ("return false");/*if IE4+*/if (window.sidebar){document.onmousedown=disableselect;document.onclick=reEnable;}/*if NS6*/

function men()
{
	if (event.srcElement.className=="mnu1")
	{
		obj=event.srcElement;
		if (event.type=="mousedown"){obj.style.color=0xFF0000;}
		if (event.type=="mouseup")mnushow(obj,0x000000);
		if (event.type=="mouseover"){obj.style.backgroundColor=0xCFF9B7;obj.style.color=0x000000;}
		if (event.type=="mouseout"){obj.style.backgroundColor=0xC0C0C0;obj.style.color=0xFFFFFF;}
	}
	if (event.srcElement.className=="mnu2")
	{
		obj=event.srcElement;
		if (event.type=="mousedown"){obj.style.color=0xFF0000;}
		if (event.type=="mouseup")mnushow(obj,0x000000);
		if (event.type=="mouseover"){obj.style.backgroundColor=0xD5D5FD;obj.style.color=0x000000;}
		if (event.type=="mouseout"){obj.style.backgroundColor=0xFFFFDD;obj.style.color=0x808080;}
	}
}
function mnushow(obj, resetcolor)
{
	if(obj.id.charAt(1)=='p')
	{
		ntr=document.all.item('menu').children(0).children(0);
		while(ntr)
		{
			if (ntr.children(0).children(0).id==obj.id)
			{
				do
				{
					ntr=ntr.nextSibling;
					if(!ntr)break;
				}
				while(ntr.children(0).children(0).id.charAt(1)=='c')
			}
			if(!ntr)break;
			if(ntr.children(0).children(0).id.charAt(1)=='c')
			ntr.children(0).children(0).style.display='none';
			ntr=ntr.nextSibling;
		}
		ntr=obj.parentElement.parentElement.nextSibling;
		while(ntr)
		{
			if(ntr.children(0).children(0).id.charAt(1)=='c')
			{
				if(ntr.children(0).children(0).style.display=='')
					ntr.children(0).children(0).style.display='none';
				else 
					ntr.children(0).children(0).style.display='';
			}
			else
			{
				obj.style.color=resetcolor;
				return;
			}
			ntr=ntr.nextSibling;
		}
	}
	obj.style.color=resetcolor;
}
if (document.all)
{
	document.body.onmousedown=men;
	document.body.onmouseup=men;
	document.body.onmouseover=men;
	document.body.onmouseout=men;
	document.body.ondblclick=men;
}
