var qry = new String(location.search);
if (!xIE4 && !xNN4 && qry.indexOf('edit') == -1)
{
  document.write("<"+"link rel='stylesheet' type='text/css' href='/uploads/images/202/xmenu4_dhtml.css'>");
  window.onload = xOnload;
}


function xOnload()
{
  var me = xGetElementById('grupy');
  if (!xDef(me.nodeName, me.firstChild, me.nextSibling)) {
    return;
  }
  
  var mo = new xMenu4(
    me,                       // id str or ele obj of outermost UL
    true,                     // outer UL position: true=absolute, false=static
    false,                    // main label positioning: true=horizontal, false=vertical
    0, 1,                  // box horizontal and vertical offsets
    [-3, -10, -6, -10],       // lbl focus clip array
    [-30, null, null, null],  // box focus clip array
    // css class names:
    'xmBarK', 'xmBoxK',
    'xmBarLblK', 'xmBarLblHvrK',
    'xmBarItmK', 'xmBarItmHvrK',
    'xmBoxLblK', 'xmBoxLblHvrK',
    'xmBoxItmK', 'xmBoxItmHvrK',
    'spr'
  );

  xMnuMgr.add(mo);


  xMnuMgr.load(); // calls the load method of all menus
  xmWinOnResize(); // initial positioning
  xAddEventListener(window, 'resize', xmWinOnResize, false);
}

////--- Window Resize Event Listener

function xmWinOnResize() // reposition the 2 menus on the page
{
	var mm = xGetElementById('mscNaMnu');
	xMoveTo('grupy', xPageX(mm), xPageY(mm));
	xMnuMgr.paint(); // calls the paint method of all menus
}

//
var zgr_akt = 'def';
function spr(r)
{
	xVisibility('artykuly', r);
	//xVisibility('flasz', r);
	if (r) zgr_show('def');
}
function zgr_show(n)
{
	if (zgr_akt != n)
	{
		xDisplay('zgr' + zgr_akt, 'none');
		xDisplay('zgr' + n, 'block');
	}
	zgr_akt = n;
}
