It's done with Javascript:
onmouseover event.
It uses that to change the content shown in one area when the mouse is over another.
There is a simple example at the bottom of the page
here that you can play with to see how the code works. Notice how the text changes depending on which object in the image you are hovering your mouse over.