var cid = 1;
			var cim = 1;
			
			var monter_loop_int = 0;
			var descendre_loop_int = 0;
					
			function monter_loop(up_px,num,top_max,contact)
				{
					
					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,top_max,contact);},55);
					
				}
			function descendre_loop(down_px,num,top_max,contact) 
					{
					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,top_max,contact);},55);
					
					}
					
			function menu_height() 
					{
										}
			
			function monter(up_px,num,top_max,contact)
				{
					
					top_btn = parseInt(document.getElementById('UoD'+num).style.top) ;
					if(top_btn > top_max)
					{top_nbr = up_px;
					if(Math.abs(Math.abs(top_max)-Math.abs(top_btn)) < top_nbr){top_nbr = 4; if(Math.abs(Math.abs(top_max)-Math.abs(top_btn)) < top_nbr){top_nbr = 1 ;}}
					
					top_btn -= top_nbr;
					document.getElementById('UoD'+num).style.top = top_btn+'px';
					if(contact=="contact"){document.getElementById('contener').style.top = parseInt(document.getElementById('contener').style.top)-top_nbr+'px';}
					}
					else{monter_loop_int = 'monter_loop_int'+num;clearInterval([window[monter_loop_int]]);cim=1;}
						
				}
			function descendre(down_px,num,top_max,contact)
				{ 
					top_btn = parseInt(document.getElementById('UoD'+num).style.top) ;
					if(top_btn < top_max)
					{top_nbr = down_px;
					if(top_max-top_btn < top_nbr){top_nbr = 4; if(top_max-top_btn < top_nbr){top_nbr =1 ;}}
					
					top_btn += top_nbr;
					document.getElementById('UoD'+num).style.top = top_btn+'px';
					if(contact=="contact"){document.getElementById('contener').style.top = parseInt(document.getElementById('contener').style.top)+top_nbr+'px';}
					}
					else{descendre_loop_int = 'descendre_loop_int'+num;clearInterval([window[descendre_loop_int]]);cid=1;}
						
				}
