there is a jQuery plugin used to work with gradient. i have never used it but it looks simple
http://plugins.jquery.com/project/gradient
heres how to use it :
or you could use use Gradientz
http://jquerystyle.com/2009/08/06/gradientz
Gradientz looks even more complete and easy to use. Up to you good luck buddy.