Experimental jQuery plugin to drag things.
$(".block").draggable({
container: $(".container"), // container element
stickiness: 10, // stickiness precision
vertical_guides: [300, 400], // vertical guides offsets
horizontal_guides: [200, 300] // horizontal guides offsets
});