var cid = 1;
			var cim = 1;
			
			var monter_loop_int = 0;
			var descendre_loop_int = 0;
					
			function monter_loop(up_px,num,uod)
				{
					
					monter_loop_int = 'monter_loop_int'+num;
					descendre_loop_int = 'descendre_loop_int'+num;
					if(cid == 0){clearInterval([window[descendre_loop_int]]);}
					cim = 0;
					window[monter_loop_int] = setInterval(function(){monter(up_px,num);},55);
					
				}
			function descendre_loop(down_px,num,uod) 
					{
					descendre_loop_int = 'descendre_loop_int'+num;
					monter_loop_int = 'monter_loop_int'+num;
					if(cim == 0){clearInterval([window[monter_loop_int]]);}
					cid = 0;
					window[descendre_loop_int] = setInterval(function(){descendre(down_px,num);},55);
					
					}
					
			function menu_height() 
					{
					if((parseInt(document.getElementById('menu-btn1').style.top)>130)&(parseInt(document.getElementById('menu-btn2').style.top)>130)&(parseInt(document.getElementById('menu-btn3').style.top)>130)&(parseInt(document.getElementById('menu-btn4').style.top)>130)&(parseInt(document.getElementById('menu-btn5').style.top)>130)&(parseInt(document.getElementById('menu-btn6').style.top)>130))
					{document.getElementById('menu').style.height = '58px'}
					}
			
			function monter(up_px,num)
				{
					document.getElementById('menu').style.height = '193px';
					top_btn = parseInt(document.getElementById('menu-btn'+num).style.top) ;
					if(top_btn > 0)
					{top_nbr = up_px;
					if(top_btn < top_nbr){top_nbr = 4; if(top_btn < top_nbr){top_nbr =1 ;}}
					
					top_btn -= top_nbr;
					document.getElementById('menu-btn'+num).style.top = top_btn+'px';
					}
					else{monter_loop_int = 'monter_loop_int'+num;clearInterval([window[monter_loop_int]]);cim=1;}
						
				}
			function descendre(down_px,num)
				{ 
					top_btn = parseInt(document.getElementById('menu-btn'+num).style.top) ;
					if(top_btn < 135)
					{top_nbr = down_px;
					if(135-top_btn < top_nbr){top_nbr = 4; if(135-top_btn < top_nbr){top_nbr =1 ;}}
					
					top_btn += top_nbr;
					document.getElementById('menu-btn'+num).style.top = top_btn+'px';
					}
					else{descendre_loop_int = 'descendre_loop_int'+num;clearInterval([window[descendre_loop_int]]);cid=1;}
						
				}
