panther786 0 Newbie Poster

Ok, so this is probably something simple, but I'm no javascript queen, so if someone could help me do this I would be so appreciative.

I'm using Javascript to rotate the 5 featured stories I choose via a Wordpress plugin. So right now it looks like this:

I've put the two code samples on pastebin also if that makes it easier for anyone to read (Javascript Visit through proxy | HTML Visit through proxy)

So, via this plugin I'm given several variables to use to display the image, the title, the tagline and url. I'm using a very simple (and probably really clunky) Javascript to rotate the big image (and it's attributes) every few seconds. What I want to do is have the border of the thumbnail change when the big images matches the thumbnail. So for when the "img5" story shows in the rotater I want the thumbnail of that image to have a border.