var MJ;
var mj = -134;
var int_open, int_close;
var velocita = 5;
function MJ_OpenMenu1()
{
	document.getElementById("MJ_MainMenu").style.top = document.body.scrollTop;
	MJ = window.setTimeout("MJ_OpenMenu1()", 1);
}

function MJ_StopMenu1()
{
	window.clearTimeout(MJ);
}
function MJ_OpenMenu()
{
       	window.clearInterval(int_close);
	int_open = window.setInterval("MJ_Open()", 15);
}
function MJ_CloseMenu()
{
	window.clearInterval(int_open);
	int_close = window.setInterval("MJ_Close()", 15);
}
function MJ_Open()
{
	if (mj < -12)
	{
		mj = mj + velocita;
		document.getElementById("MJ_MainMenu").style.left = mj;
	}
}
function MJ_Close()
{
	if (mj > -134)
	{
		mj = mj - velocita;
		document.getElementById("MJ_MainMenu").style.left = mj;
	}
}