Index: /temp/branches/ec-cube-beta/html/test/kakinaka/js/treeview/treeview.js
===================================================================
--- /temp/branches/ec-cube-beta/html/test/kakinaka/js/treeview/treeview.js	(revision 11391)
+++ /temp/branches/ec-cube-beta/html/test/kakinaka/js/treeview/treeview.js	(revision 11392)
@@ -501,4 +501,6 @@
 YAHOO.widget.TreeView.getNode = function(treeId, nodeIndex) {
     var t = YAHOO.widget.TreeView.getTree(treeId);
+    
+    alert(t.getNodeByIndex(nodeIndex));
 
     return (t) ? t.getNodeByIndex(nodeIndex) : null;
@@ -1254,6 +1256,5 @@
     toggle: function() {
         if (!this.tree.locked && ( this.hasChildren(true) || this.isDynamic()) ) {
-			//if (this.expanded) { this.collapse(); } else { this.expand(); }
-			if (this.expanded) { } else { this.expand(); }
+			if (this.expanded) { this.collapse(); } else { this.expand(); }
         }
     },
