$(document).ready(
		
	function()
	{
		var h1 = $('#center').height();
		var h11 = $('#center_tables').height();
		//alert(h1);
		//alert(h11);
		var h2 = $('.separateur').height();
		//alert(h2);
		var h3 = $('#menu_2').height();
		//alert(h3);
		
		var exp = new RegExp("[0-9]*");
	
		var nb1 = exp.exec(h1);
		var nb11 = exp.exec(h11);
		var nb = Math.max(nb1,nb11)
		//alert(nb);
		var nb2 = exp.exec(h2);
		//alert(nb2);
		var nb3 = exp.exec(h3);
		//alert(nb3);
		
		var res = nb-2*nb2-20-nb3;
		//alert(res);
		
		$('.ui-draggable').css("height", res);
		var zindex = 10;
		$('.drag_image').draggable({
			containment : 'parent',
			ghosting:	true,
			zIndex: zindex+100,
			stop: function(event, ui) { 
				$(this).css("z-index", zindex);
				zindex++;
			}

		});
		$('.drag_image').click(function() {
			$(this).css("z-index", zindex);
			zindex++;
		});
	}
);
