Dunno if this will help, its something we were all playing with about 2 years ago:
http://www.d-grafix.com?page=sourcecode
If you had your snaking river as a dip in a terrain then it should work.
http://www.d-grafix.com?page=sourcecode
If you had your snaking river as a dip in a terrain then it should work.