Slider/fade with colour

Hey chaps, ive searched around, however im not too sure on the correct term, so i fell flat on my face…

Ive seen on the fox website home page (although this is flash), when the top programme image changes, so does the background colour values of their logo… can this be achieved in js?

From my perspective, i want a image gallery (fade/slider)(pulled from a database), then create some kind of array (maybe in the image db record) of a #colour that i can can add to other elements…

If someone could point me in the right direction…many thanks in advance

b

They way I would do it is to have the background info stored in classes corresponding to each slide and swapout classes as the animation progresses.