Heres a list of javascript libraries that can be very useful to streamline multi use code, I used to like mootools but now im a fan of jquery. Also a great way to learn some more advanced scripts.
The 1 rule is do not use javascript for FLUFF on your site, it is only to be used when it actually needed.
Javascript Libraries