Dynamically tweening a dynamic gradient

[FONT=Arial][SIZE=2][FONT=Arial]I’m building a website. The background for each of the sections of the site is a different colored linear gradient. Does anyone have any ideas on how to build a class, prototype or series of functions that will dynamically change the background gradient from one colored gradient to another over a period of time? If anyone has any pre-built code and wouldn’t mind sharing I will greatly appreciate it![/FONT][/SIZE][/FONT]
[FONT=Arial][SIZE=2][FONT=Arial]Thanks[/FONT][/SIZE][/FONT]