var i1=-135;
var intHide1;
var i2=-135;
var intHide2;
var i3=-135;
var intHide3;
var i4=-135;
var intHide4;

var speed=3;

function showmenu1()
{
clearInterval(intHide1);
intShow1=setInterval("show1()",10);
}

function hidemenu1()
{
clearInterval(intShow1);
intHide1=setInterval("hide1()",10);
}

function show1()
{
if (i1<-1)
	{
	i1=i1+speed;
	document.getElementById('myMenu1').style.left=i1;
	}
}

function hide1()
{
if (i1>-135)
	{
	i1=i1-speed;
	document.getElementById('myMenu1').style.left=i1;
        }
}

function showmenu2()
{
clearInterval(intHide2);
intShow2=setInterval("show2()",10);
}

function hidemenu2()
{
clearInterval(intShow2);
intHide2=setInterval("hide2()",10);
}

function show2()
{
if (i2<-1)
	{
	i2=i2+speed;
	document.getElementById('myMenu2').style.left=i2;
	}
}

function hide2()
{
if (i2>-135)
	{
	i2=i2-speed;
	document.getElementById('myMenu2').style.left=i2;
        }
}

function showmenu3()
{
clearInterval(intHide3);
intShow3=setInterval("show3()",10);
}

function hidemenu3()
{
clearInterval(intShow3);
intHide3=setInterval("hide3()",10);
}

function show3()
{
if (i3<-1)
	{
	i3=i3+speed;
	document.getElementById('myMenu3').style.left=i3;
	}
}

function hide3()
{
if (i3>-135)
	{
	i3=i3-speed;
	document.getElementById('myMenu3').style.left=i3;
        }
}

function showmenu4()
{
clearInterval(intHide4);
intShow4=setInterval("show4()",10);
}

function hidemenu4()
{
clearInterval(intShow4);
intHide4=setInterval("hide4()",10);
}

function show4()
{
if (i4<-1)
	{
	i4=i4+speed;
	document.getElementById('myMenu4').style.left=i4;
	}
}

function hide4()
{
if (i4>-135)
	{
	i4=i4-speed;
	document.getElementById('myMenu4').style.left=i4;
        }
}
