The D7 version differs in some ways from the D6 version. Paths and links cannot be set manually. Paths are determined using $taxonomy_term_uri, and then converted to paths. Cookies are used to remember accordion states between page loads.