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 11377)
+++ /temp/branches/ec-cube-beta/html/test/kakinaka/js/treeview/treeview.js	(revision 11379)
@@ -23,5 +23,5 @@
  * @type int
  */
-YAHOO.widget.TreeView.nodeCount = 100;
+YAHOO.widget.TreeView.nodeCount = 0;
 
 YAHOO.widget.TreeView.prototype = {
@@ -741,11 +741,6 @@
         this.data       = oData;
         this.children   = [];
-        
-        if(typeof index == "number"){
-	        this.index      = index;
-        }else{
-	        this.index      = YAHOO.widget.TreeView.nodeCount;
-	        ++YAHOO.widget.TreeView.nodeCount;
-	    }
+        this.index      = YAHOO.widget.TreeView.nodeCount;
+        ++YAHOO.widget.TreeView.nodeCount;
         this.expanded   = expanded;
         
@@ -1496,9 +1491,9 @@
  * @param expanded {boolean} the initial expanded/collapsed state
  */
-YAHOO.widget.TextNode = function(oData, oParent, expanded, index) {
+YAHOO.widget.TextNode = function(oData, oParent, expanded) {
     // this.type = "TextNode";
 
     if (oData) { 
-        this.init(oData, oParent, expanded, index);
+        this.init(oData, oParent, expanded);
         this.setUpLabel(oData);
     }
