Seeking Magnetic menu help

I am try to make a menu that seems magnetic
I am sure I have seen this a number of times but now I can’t find any examples or tutes.

ex.

Home Portfolio Services Contact

Each of these is in a ball, that is attracted to the mouse on the X axis.

At the same time they are repulsive to each other.

So, if the mouse was over home and it was draged to portfolio home would follow. Then halfway to Portfolio, Portfolio would move towards home (not allowed to touch)

Then as the mouse was continued to be moved away home would go back to its starting point.

Any:
examples
tutes
code

Would be most apprecitated…

Update,

I found a tute on Ultrashock and I am now trying to change it to work for me. But I am still having trouble due to not having a solid grasp of the script.

I have attach the file…

any help or comments on a better way would be appreciated.


Update,
I have finished what I was trying to do, but it just doesn’t seem quite right.
Any ideas on how to improve it or how to improve the code ?