Dear all,

I'm making a portfolio website on wordpress, with on the left side a list of titles of the works and on the right side a grid with their thumbnails.
What I want to achieve: when you hover over an image the title of the work is highlighted, and the reverse, when you hover the thumbnail of a work, you see its title.

You can see my code here:

I made a jquery script which works for one instance, but I cant make a function to make it work automatically for all the entries. I'm sure it may sound easy for some of you, but javascript is not my strong side. Any hint would be more than appreciated!

ps: I can add whatever marker I want to the links: title, class ...