function rozbal_menu_simple(idmenu)
{
	if (menu==0)
	{
		close_menu=idmenu;
		menu=1;
		document.getElementById(idmenu).style.display='block';
		document.getElementById(idmenu+"2").style.backgroundImage='url("/share/img/nahoru2'+postfix+'.gif")';
		document.getElementById('overlay').style.display='block';
		var arrayPageSize=getPageSize();
		document.getElementById('overlay').style.width=arrayPageSize[0] + 'px';
		document.getElementById('overlay').style.height=arrayPageSize[1] + 'px';
	}
	else
	{
		document.getElementById(idmenu+"2").style.backgroundImage='url("/share/img/dolu2'+postfix+'.gif")';
		document.getElementById(idmenu).style.display='none';
		document.getElementById('overlay').style.display='none';
		menu=0;
	}
}
function winH() {
	if (window.innerHeight) return window.innerHeight;
	else if (document.documentElement && document.documentElement.clientHeight)
		return document.documentElement.clientHeight;
	else if (document.body && document.body.clientHeight)
		return document.body.clientHeight;
	else return null;
}
function getPageSize() {

     var xScroll, yScroll;

	if (window.innerHeight && window.scrollMaxY) {
		xScroll = window.innerWidth + window.scrollMaxX;
		yScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}

	var windowWidth, windowHeight;

	if (self.innerHeight) {	// all except Explorer
		if(document.documentElement.clientWidth){
			windowWidth = document.documentElement.clientWidth;
		} else {
			windowWidth = self.innerWidth;
		}
		windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}

	// for small pages with total height less then height of the viewport
	if(yScroll < windowHeight){
		pageHeight = windowHeight;
	} else {
		pageHeight = yScroll;
	}

	// for small pages with total width less then width of the viewport
	if(xScroll < windowWidth){
		pageWidth = xScroll;
	} else {
		pageWidth = windowWidth;
	}

	return [pageWidth,pageHeight];
}
function menu_submit(id,idmenu,inner)
{
	if (idmenu == null){
		idmenu = "hidden_misto";
		idmenu2="JS_option";
	}
	else
	{
		idmenu2="id_"+idmenu;
	}
	document.getElementById(idmenu).value=id;
	try
	{
		document.getElementById(idmenu2).style.display='none';
		document.getElementById(idmenu2+"2").style.backgroundImage='url("/share/img/dolu2'+postfix+'.gif")';
		if(inner!=null)
		{
			document.getElementById(idmenu2+"2").innerHTML=inner;
		}
		document.getElementById('overlay').style.display='none';
		menu=0;
	}
	catch(err){}
	form_submit();
}