function appearMenu()
{
	var myAjax = new Ajax.Request( oe_ajax_url, 
		{ 
			method: "post",
			postBody: "action=menu_appearMenu"
		}
	);
}

function savePosition()
{
	account_menux = document.getElementById("oe_menu_win").style.left;
	account_menuy = document.getElementById("oe_menu_win").style.top;
	var myAjax = new Ajax.Request( oe_ajax_url, 
		{ 
			method: "post",
			postBody: "action=menu_saveMenu&menux=" + account_menux + "&menuy=" + account_menuy
		}
	);
}



function checkMenuPosition(str)
{
	sw = alertSize("w");
	sh = alertSize("h");
	mw = document.getElementById("oe_menu_win").style.left;
	mh = document.getElementById("oe_menu_win").style.top;
	if ((mw.length > 2) && (mh.length > 2))
	{
		mw = mw.substr(0, mw.length - 2);
		mh = mh.substr(0, mh.length - 2);
		if ((sw < mw) || (sh < mh))
		{
			if (confirm(str))
			{
				document.getElementById("oe_menu_win").style.top = topStarter + 28 + "px";
				document.getElementById("oe_menu_win").style.left = "7px";
				savePosition();
			}
		}
	}

}

function oe_showhidemenu()
{
	if (isoemenu == 0)
	{
		$("oe_menu_win").style.display = "block";
		isoemenu = 1;
	}
	else
	{
		$("oe_menu_win").style.display = "none";
		isoemenu = 0;
	}
}
