////No need to edit beyond here

var ie4=document.all; //&&navigator.userAgent.indexOf("Opera")==-1
var ns6=document.getElementById&&!document.all
var ns4=document.layers
var MAUS_ZEIGER = 'hand';
if (ns6) MAUS_ZEIGER='pointer';

var	MENUIDX = '';

function SubMenuHilite(athis)
{
	athis.style.border='1px solid white';
	// #A0A0A0';
	athis.style.backgroundColor='#C6D6DD';
	athis.style.cursor = MAUS_ZEIGER;
}

function SubMenuNormal(athis)
{
	athis.style.border='1px solid #E3EBF0';
	athis.style.backgroundColor='#E3EBF0';
	athis.style.cursor = 'default';
}

function showmenu(aevent, which, objectinfo)
{
//	if (MENUIDX != '')
//	document.getElementById("divmenu"+MENUIDX).style.backgroundColor='';
//	MENUIDX = which;
//	document.getElementById("divmenu"+which).style.backgroundColor='#C6D6DD';
//	document.getElementById("divmenu"+which).style.border = '1px solid #A0A0A0';

	if (!document.all&&!document.getElementById&&!document.layers) return


	if (window.menuobj) window.menuobj.style.visibility="hidden"
	clearhidemenu()	

	window.menuobj=ie4? document.all["popmenu"+which] : ns6? document.getElementById("popmenu"+which) : ns4? document.popmenu : ""
	window.menuobj.thestyle=(ie4||ns6)? window.menuobj.style : window.menuobj
	var o = objectinfo;
	oy = 0;
	ox = 0;
	while (o.offsetParent != null)
	{
		oy = oy + o.offsetTop;
		ox = ox + o.offsetLeft;
		o = o.offsetParent; 
	}

	window.menuobj.thestyle.top = oy + 21;
	window.menuobj.thestyle.left = ox;


	window.menuobj.thestyle.width = objectinfo.style.width
	window.menuobj.thestyle.visibility="visible"
	aevent.cancelBubble = true;
	return false
}

function hidemenu(IDX)
{
//	document.getElementById("divmenu"+IDX).style.backgroundColor='';
	if (window.menuobj)
	{
		window.menuobj=ie4? document.all["popmenu"+IDX] : ns6? document.getElementById("popmenu"+IDX) : ns4? document.popmenu : ""
		window.menuobj.style.visibility=(ie4||ns6)? "hidden" : "hide"
	}
}

function delayhidemenu(aevent, IDX)
{
	if (ie4||ns6||ns4)
	window.delayhide=setTimeout("hidemenu('"+IDX+"')",500)
	aevent.cancelBubble = true
}

function clearhidemenu()
{
	if (window.delayhide)
	clearTimeout(delayhide)
}


/* if (ie4||ns6)
document.onclick=hidemenu

*/
