add: */ 
context: 		initTree : function()		{			JSTreeObj = this;			JSTreeObj.createDropIndicator();			document.documentElement.onselectstart = JSTreeObj.cancelSelectionEvent;			document.documentElement.ondragstart = JSTreeObj.cancelEvent;			var nodeId = 0;			var dhtmlgoodies_tree = document.getElementById(this.idOfTree);			var menuItems = dhtmlgoodies_tree.getElementsByTagName('LI');	// Get an array of all menu items			for(var no=0;no<menuItems.length;no++){				// No children var set ?				var noChildren = false;				var tmpVar = menuItems[no].getAttribute('noChildren');				if(!tmpVar)tmpVar = menuItems[no].noChildren;				if(tmpVar=='true')noChildren=true;				// No remove var set?				var noRemove = false;				var tmpVar = menuItems[no].getAttribute('noRemoving');				if(!tmpVar)tmpVar = menuItems[no].noRemoving;				if(tmpVar=='true')noRemoving=true;												// No drag var set ?				var noDrag = false;				var tmpVar = menuItems[no].getAttribute('noDrag');				if(!tmpVar)tmpVar = menuItems[no].noDrag;				if(tmpVar=='true')noDrag=true;						 				nodeId++;				var subItems = menuItems[no].getElementsByTagName('UL');				var img = document.createElement('IMG');				img.src = this.imageFolder + this.plusImage;				img.onclick = JSTreeObj.showHideNode;								if(subItems.length==0)img.style.visibility='hidden';else{					subItems[0].id = 'tree_ul_' + treeUlCounter;					treeUlCounter++;				}				var aTag = menuItems[no].getElementsByTagName('A')[0];//risky code							if(aTag.id)				numericId = aTag.id.replace(/[^0-9]/g,'');			else				numericId = (no+1);			//			aTag.id = 'dhtmlgoodies_treeNodeLink' + numericId;			aTag.id = menuItems[no].id + 'a';			var input = document.createElement('INPUT');			input.style.width = '40%';			input.style.display='none';						menuItems[no].insertBefore(input,aTag);			//			input.id = 'dhtmlgoodies_treeNodeInput' + numericId;			input.id = menuItems[no].id + 'input';			input.onblur = hideEdit;						input.onkeypress = withEnter;						//			menuItems[no].insertBefore(img,input);//			menuItems[no].id = 'dhtmlgoodies_treeNode' + numericId;//			aTag.onclick = okToNavigate;							aTag.ondblclick = initEditLabel;	//				menuItems[no].insertBefore(img, aTag);//risky code				//aTag.onclick = JSTreeObj.showHideNode;				if(!noDrag)aTag.onmousedown = JSTreeObj.initDrag;				if(!noChildren)aTag.onmousemove = JSTreeObj.moveDragableNodes;				//				menuItems[no].insertBefore(img,aTag);				menuItems[no].insertBefore(img,input);				//menuItems[no].id = 'dhtmlgoodies_treeNode' + nodeId;				var folderImg = document.createElement('IMG');				if(!noDrag)folderImg.onmousedown = JSTreeObj.initDrag;				if(!noChildren)folderImg.onmousemove = JSTreeObj.moveDragableNodes;				if(menuItems[no].className){					folderImg.src = this.imageFolder + menuItems[no].className;				}else{					folderImg.src = this.imageFolder + this.folderImage;				}//				menuItems[no].insertBefore(folderImg,aTag);				menuItems[no].insertBefore(folderImg,input);							}									initExpandedNodes = this.Get_Cookie('dhtmlgoodies_expandedNodes');			if(initExpandedNodes){				var nodes = initExpandedNodes.split(',');				for(var no=0;no<nodes.length;no++){					if(nodes[no])this.showHideNode(false,nodes[no]);					}						}									document.documentElement.onmousemove = JSTreeObj.moveDragableNodes;				document.documentElement.onmouseup = JSTreeObj.dropDragableNodes;		}		
meta: 7498	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7498/b45a4ec419acd43e5321aa3682b97b262e393aec/drag-drop-folder-tree.js/buggy/resources/javascript/drag-drop-folder-tree.js