Turned it into an object literal and added the images to demo2, for a question at the forums.
I threw this together very quickly in response to a question at the forums. It is very simple and makes some assumptions but it is a good example of quickly utilizing xEnableDrag. Drag the left or right sides to resize the elements.