My intent is to be able to expand/collapse multiple tables individually, and all at once. My current implementation allows for the "individual", but not the "all at once" functionality, because the current code I'm using just toggles.

<script>
// The object of parameter 0 will be toggled
// other objects of the group will be hidden
// the object or object unique id name as parameter 0
// each object of a group must have the same string as parameter 1
// this string is used as an arrayy name to collect objeces in the group