I'm not the first to notice this, and I probably won't be the last, but it deserves repeating, "don't use Prototype."
Here's one reason: the Prototype JavaScript framework doesn't play nice with others; it breaks "for..in" globally, intentionally. What's ironic is their workaround for json.js.