Edit: This code updated April 2nd, 05' to work with latest version of the script (namely, the state symbols "+" and "-").
Sure. Firstly, add the below function to the code of Step 1:
Code:
function sweeptoggle(ec){
var thestate=(ec=="expand")? "block" : "none"
var inc=0
while (ccollect[inc]){
ccollect[inc].style.display=thestate
inc++
}
revivestatus()
}
With that done, add the below two links somewhere within your visible HTML, which will contract/ expand the entire switch content when clicked on, respectively:
Code:
<!--Optional Expand/ Contact All links. Remove if desired-->
<div><a href="javascript:sweeptoggle('contract')">Contract All</a> | <a href="javascript:sweeptoggle('expand')">Expand All</a></div>
Bookmarks