function Menu(nazwa)
{
	var nazwa_p = nazwa+"_p",
		nazwa_m = nazwa+"_m";
	if (!getObject(nazwa) || !getObject(nazwa_p) || !getObject(nazwa_m))
		return;
	var the_style = getStyleObject(nazwa),
		the_style_p = getStyleObject(nazwa_p),
		the_style_m = getStyleObject(nazwa_m);
	if(the_style != false && the_style_p != false && the_style_m != false)
		{
		if(the_style.display == "inline")  
			the_style.display = "none";
		else 
			the_style.display = "inline";
		if(the_style_p.display == "inline")  
			the_style_p.display = "none";
		else 
			the_style_p.display = "inline";
		if(the_style_m.display == "inline")  
			the_style_m.display = "none";
		else 
			the_style_m.display = "inline";
		return;
		}
	else
		return;
}

function Obraz(nazwa)
{
	var nazwa_d = nazwa+"_d",
		nazwa_m = nazwa+"_m";
	if (!getObject(nazwa_d) || !getObject(nazwa_m))
		return;
	var the_style_d = getStyleObject(nazwa_d);
	var	the_style_m = getStyleObject(nazwa_m);
	if(the_style_d != false && the_style_m != false)
		{
		if(the_style_d.display == "none")
			{
			the_style_m.display = "none";
			the_style_d.display = "block";
			return;
			}
		if(the_style_m.display == "none")
			{
			the_style_d.display = "none";
			the_style_m.display = "block";
			return;
			}
		}
	else
		return;
}
			
function getStyleObject(objectId)
{
	if (getObject(objectId))
		return getObject(objectId).style;
	else
		return false;
}
 
function getObject(objectId)
{
	if (document.getElementById)
		return document.getElementById(objectId)
	else
		if (document.all&&document.all(objectId))
			return document.all(objectId);
		else
			return false;
}	
