Adding to gallery

Hi all,

I have a gallery thast is working which has a slideshow added. I want to be able to make the buttons change colour when the user seklects the slideshow. I have had a good example of the button I want given to me but cannot get it included in my gallery. I have attached both files if someone would be kind enough to have a look and make any suggestions.

OThanks
?R