There are a number of posts that went up ~2006ish about how to do domready for prototype.
at that time, prototype didn’t have built in support.
document.observe("dom:loaded", function() { // initially hide all containers for tab content $$('div.tabcontent').invoke('hide'); });