I would like to create a plugin similar to the alsoResize plugin
except that the with of the second object is reduced when the width of
the first object is increased. Specifically, if both objects start out
at 500px in width I want to restrict the total width of both objects
to 1000px. If one is dragged to 600px the other would shrink to 400px.
If one is dragged to 300px the other would increase to 700px.
how to modify the code in alsoResize to do what I want. Any
suggestions as to how to do this would be greatly appreciated.