<!-- MOVE_LAYER START--> 
	var x = 0; 
	var y = 0;
	drag = 0; 
	move = 0; 
	window.document.onmousemove = mouseMove;
	window.document.onmousedown = mouseDown; 
	window.document.onmouseup = mouseUp; 
	window.document.ondragstart = mouseStop; 

	function mouseUp() 
	{ 
		move = 0;
	} 

	function mouseDown() 
	{
		if (drag) 
		{ 
			clickleft = window.event.x - parseInt(dragObj.style.left); 
			clicktop = window.event.y - parseInt(dragObj.style.top); 
			dragObj.style.zIndex += 1; 
			move = 1;
		} 
	} 

	function mouseMove() 
	{ 
		if (move) 
		{ 
			dragObj.style.left = window.event.x - clickleft; 
			dragObj.style.top = window.event.y - clicktop; 
		} 
	} 

	function mouseStop() 
	{ 
		window.event.returnValue = false; 
	} 
<!-- MOVE_LAYER END --> 
