/* MOP.PL Międzynarodowa Organizacja Pracy */

function mymen(el, att)
{
	var pos = el.nextSibling;

	while(pos.nodeName == "#text")
		pos = pos.nextSibling;

	el = pos;
	pos = pos.firstChild;

	while(pos)
	{
		if(pos.tagName == 'A')
		pos.style.display = att;

		pos = pos.nextSibling;
	}
	el.style.display = att;

	return false;
}

function mymen_show(el)
{
	var pos = el.nextSibling;

	while(pos.nodeName == "#text")
		pos = pos.nextSibling;

	if(pos.style.display == 'block')
		return mymen(el, 'none');

	mymen_hide();
	return mymen(el, 'block');
}

function mymen_hide()
{
	var lst = document.getElementById('myMenu').getElementsByTagName('div');

	for(var i=0; i < lst.length; i++)
		mymen(lst[i].previousSibling, 'none');

	return false;
}


