[jQuery] Treeview - collapsing sub-branches

[jQuery] Treeview - collapsing sub-branches

<html>
<body>
Hi folks,
I'm suffering from a no doubt self-inflicted problem with the brilliant
Treeview plugin - when I click a sub-branch to collapse it, it does
collapse, but then immediately expands.
The plugin's example page
(<a href="http://jquery.bassistance.de/treeview/treeviewDemo.html" eudora="autourl">
http://jquery.bassistance.de/treeview/treeviewDemo.html</a>) has it (the
plugin) working its magic on all ul tags in the body of the page. 
For my use, I wanted to contain this behaviour to a particular div on my
page (jqtree) so I altered the document ready code to read..
<tt>$(document).ready(function() {
<x-tab>        </x-tab>
$("#jqtree > ul:first").Treeview({ control:
"#treecontrol" });
<x-tab>        </x-tab>var
lastTree = $("#jqtree > ul:last").Treeview({ speed:
"fast", collapsed: false });
</tt><pre>});
</pre>Then within my page, I have used the following code...
<tt><div id="jqtree"><div
id="treecontrol"><a href="#">collapse
all</a> / <a href="#">expand all</a> / <a
href="#">toggle all</a></div>
[snip]..the tree..[snip]
</div>
</tt>The treecontrol links work fine - the whole tree collapses and
expands as expected.  It is just the collapsing/expanding of
sub-branches where my problem exists.  What mistake have I made
?
Thanks,
Bruce</body>
</html>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/