			nn = (document.layers)? true:false;
			ms = (document.all)? true:false;
			
			zmall = (ms)?('document.all.'):('document.');
			zmstyle = (ms)?('.style'):('');
			
			ostatnie = null;
			ostWar = null;
			ilWar = 5;

			BGcolor = new Array('#e5e5cc','#e5e5cc','#ccccb2','#e5e5cc');
			TXcolor = new Array('#333333','#ff9900','#333333','#333333');
			
			function getChild(element, childName)
			{
				if (!element) return null;
				var children = element.children;
				if ((!children) || (children.length==0)) return null;
				var i;
				var child;
				for (i=0; i<children.length; i++)
				{
					if (children[i].name == childName) return children[i];
					child = getChild(children[i],childName) ;
					if (child!=null) return child;
				}
				return null;	
			}
			
			function showMenu(element,what)
			{
				var menu = getChild(element,"menu");
				if (menu)
				{
					if (what)
						menu.style.visibility = "visible";
					else
						menu.style.visibility = "hidden";
				} 
			}
			
			function hover(styleRef,ColorNr)
			{
				showMenu(styleRef,(ColorNr==0) || (ColorNr==2))
				if (styleRef == 0) styleRef = ostatnie;
				if (styleRef)
				{
					styleRef.style.background = BGcolor[ColorNr];
					styleRef.style.color = TXcolor[ColorNr];
					ostatnie = styleRef;
				}
			}


