// JavaScript Document
var h=10;
var h2=10;
var h3=10;
var h4=10;
var intHide;
var intShow;
function showmenu1()
{
clearInterval(intHide);


intShow=setInterval("show1()",10);
}
function hidemenu1()
{
clearInterval(intShow);



intHide=setInterval("hide1()",10);
}
function show1()
{
document.getElementById('div1').style.height=h +'px';

document.getElementById('div1').style.display = 'block';

if (h<260)
	{
	h=h+10;
	
	}
	else{
	document.getElementById('div1').style.height=260 +'px';
;
	}
}
function hide1()
{document.getElementById('div1').style.height=h +'px';
document.getElementById('div1').style.display = 'none';
if (h!=0)
	{
	h=h-10;
	
	}
	else
	{
	document.getElementById('div1').style.height=0+'px';
;
	}
}
//second
function showmenu2()
{
clearInterval(intHide);


intShow=setInterval("show2()",10);
}
function hidemenu2()
{
clearInterval(intShow);



intHide=setInterval("hide2()",10);
}
function show2()
{
document.getElementById('div2').style.height=h2 +'px';

document.getElementById('div2').style.display = 'block';

if (h2<105)
	{
	h2=h2+10;
	
	}
	else{
	document.getElementById('div2').style.height=105 +'px';
;
	}
}
function hide2()
{document.getElementById('div2').style.height=h +'px';
document.getElementById('div2').style.display = 'none';
if (h2!=0)
	{
	h2=h2-10;
	
	}
	else
	{
	document.getElementById('div2').style.height=0+'px';
;
	}
}

//third
function showmenu3()
{
clearInterval(intHide);


intShow=setInterval("show3()",10);
}
function hidemenu3()
{
clearInterval(intShow);



intHide=setInterval("hide3()",10);
}
function show3()
{
document.getElementById('div3').style.height=h3 +'px';

document.getElementById('div3').style.display = 'block';

if (h3<230)
	{
	h3=h3+10;
	
	}
	else{
	document.getElementById('div3').style.height=230 +'px';
;
	}
}
function hide3()
{document.getElementById('div3').style.height=h3 +'px';
document.getElementById('div3').style.display = 'none';
if (h3!=0)
	{
	h3=h3-10;
	
	}
	else
	{
	document.getElementById('div3').style.height=0+'px';
;
	}
}
//forth
function showmenu4()
{
clearInterval(intHide);


intShow=setInterval("show4()",10);
}
function hidemenu4()
{
clearInterval(intShow);



intHide=setInterval("hide4()",10);
}
function show4()
{
document.getElementById('div4').style.height=h4 +'px';

document.getElementById('div4').style.display = 'block';

if (h4<70)
	{
	h4=h4+10;
	
	}
	else{
	document.getElementById('div4').style.height=70 +'px';
;
	}
}
function hide4()
{document.getElementById('div4').style.height=h4 +'px';
document.getElementById('div4').style.display = 'none';
if (h4!=0)
	{
	h4=h4-10;
	
	}
	else
	{
	document.getElementById('div4').style.height=0+'px';
;
	}
}