// JavaScript Document

var intHide;
var i=-90;
var speed=3;

function showmenu(aux)
{
clearInterval(intHide);
intShow=setInterval("show("+aux+")",10);

}
function hidemenu(aux)
{
clearInterval(intShow);
intHide=setInterval("hide("+aux+")",10);

}
function show(aux)
{
if (i<-12)
	{
	i=i+speed;
	document.getElementById('menu'+aux).style.backgroundPosition='0 '+i+'px';
	}
	else{document.getElementById("opcoes"+aux).style.visibility = "visible";}
}
function hide(aux)
{
if (i>-90)
	{
	i=i-speed;
	document.getElementById('menu'+aux).style.backgroundPosition='0 '+i+'px';
	document.getElementById("opcoes"+aux).style.visibility = 'hidden';
	}
}

var intHide2;
var i2=-90;
var speed2=3;

function showmenu2(aux)
{
clearInterval(intHide2);
intShow2=setInterval("show2("+aux+")",10);

}
function hidemenu2(aux)
{
clearInterval(intShow2);
intHide2=setInterval("hide2("+aux+")",10);

}
function show2(aux)
{
if (i2<-12)
	{
	i2=i2+speed2;
	document.getElementById('menu'+aux).style.backgroundPosition='0 '+i2+'px';
	}
	else{document.getElementById("opcoes"+aux).style.visibility = "visible";}
}
function hide2(aux)
{
if (i2>-90)
	{
	i2=i2-speed2;
	document.getElementById('menu'+aux).style.backgroundPosition='0 '+i2+'px';
	document.getElementById("opcoes"+aux).style.visibility = 'hidden';
	}
}


	
var intHide3;
var i3=-90;
var speed3=3;

function showmenu3(aux)
{
clearInterval(intHide3);
intShow3=setInterval("show3("+aux+")",10);

}
function hidemenu3(aux)
{
clearInterval(intShow3);
intHide3=setInterval("hide3("+aux+")",10);

}
function show3(aux)
{
if (i3<-12)
	{
	i3=i3+speed3;
	document.getElementById('menu'+aux).style.backgroundPosition='0 '+i3+'px';
	}
	else{document.getElementById("opcoes"+aux).style.visibility = "visible";}
}
function hide3(aux)
{
if (i3>-90)
	{
	i3=i3-speed3;
	document.getElementById('menu'+aux).style.backgroundPosition='0 '+i3+'px';
	document.getElementById("opcoes"+aux).style.visibility = 'hidden';
	}
}



var intHide4;
var i4=-90;
var speed4=3;

function showmenu4(aux)
{
clearInterval(intHide4);
intShow4=setInterval("show4("+aux+")",10);

}
function hidemenu4(aux)
{
clearInterval(intShow4);
intHide4=setInterval("hide4("+aux+")",10);

}
function show4(aux)
{
if (i4<-12)
	{
	i4=i4+speed4;
	document.getElementById('menu'+aux).style.backgroundPosition='0 '+i4+'px';
	}
	else{document.getElementById("opcoes"+aux).style.visibility = "visible";}
}
function hide4(aux)
{
if (i4>-90)
	{
	i4=i4-speed4;
	document.getElementById('menu'+aux).style.backgroundPosition='0 '+i4+'px';
	document.getElementById("opcoes"+aux).style.visibility = 'hidden';
	}
}



var intHide5;
var i5=-90;
var speed5=3;

function showmenu5(aux)
{
clearInterval(intHide5);
intShow5=setInterval("show5("+aux+")",10);

}
function hidemenu5(aux)
{
clearInterval(intShow5);
intHide5=setInterval("hide5("+aux+")",10);

}
function show5(aux)
{
if (i5<-12)
	{
	i5=i5+speed5;
	document.getElementById('menu'+aux).style.backgroundPosition='0 '+i5+'px';
	}
	else{document.getElementById("opcoes"+aux).style.visibility = "visible";}
}
function hide5(aux)
{
if (i5>-90)
	{
	i5=i5-speed5;
	document.getElementById('menu'+aux).style.backgroundPosition='0 '+i5+'px';
	document.getElementById("opcoes"+aux).style.visibility = 'hidden';
	}
}


