See this blog entry for details. This page demonstrates an updated version of the original script which is compatible with Safari. The Javascript is available as easytoggle2.js.
This is <div id="one">
This is <div id="two">
This is <div id="three">
This is <div id="four">