I have the following script I was tinkering around with! And I cant seem to get figure out how to allow toggle of all menus collapsing at once or just one at a time! Am I making sence?

Code:
```<html>
<script language="Javascript">
{
d=(el.display=="block")?"none":"block";
{
case 1:
el.display=d;
case 2:
el.display=d;
case 3:
el.display=d;
case 4:
el.display=d;

}

}
</script>
<style>
</style>