rem: var lis = ul.getElementsByTagName('LI'); 
add: var lis = ul.getElementsByTagName('LI'); 
context: 		dropDragableNodes:function()		{						var parent;			if(JSTreeObj.dragDropTimer<10){								JSTreeObj.dragDropTimer = -1;				return;			}			var showMessage = false;			if(JSTreeObj.dragNode_destination){	// Check depth																											var countUp = JSTreeObj.dragDropCountLevels(JSTreeObj.dragNode_destination,'up');				var countDown = JSTreeObj.dragDropCountLevels(JSTreeObj.dragNode_source,'down');				var countLevels = countUp/1 + countDown/1 + (JSTreeObj.insertAsSub?1:0);										if(countLevels>JSTreeObj.maximumDepth){					JSTreeObj.dragNode_destination = false;					showMessage = true; 	// Used later down in this function				}			}									if(JSTreeObj.dragNode_destination){				if(JSTreeObj.insertAsSub){					var uls = JSTreeObj.dragNode_destination.getElementsByTagName('UL');					if(uls.length>0){						ul = uls[0];						ul.style.display='block';												var lis = ul.getElementsByTagName('LI');						if (JSTreeObj.dragNode_source)							alert('JSTreeObj.dragNode_source = '+ JSTreeObj.dragNode_source);							var li = JSTreeObj.dragNode_source.getElementsByTagName('LI')[0];/*						alert('li = '+ li);if(li.noRemoving)	alert('noRemoving');	else	alert('removing');*/							if(lis.length>0){	// Sub elements exists - drop dragable node before the first one							ul.insertBefore(JSTreeObj.dragNode_source,lis[0]);							}else {	// No sub exists - use the appendChild method - This line should not be executed unless there's something wrong in the HTML, i.e empty <ul>							ul.appendChild(JSTreeObj.dragNode_source);							}					}else{						var ul = document.createElement('UL');						ul.style.display='block';						JSTreeObj.dragNode_destination.appendChild(ul);						ul.appendChild(JSTreeObj.dragNode_source);					}//					parent = ul.id;					var img = JSTreeObj.dragNode_destination.getElementsByTagName('IMG')[0];						img.style.visibility='visible';					img.src = img.src.replace(JSTreeObj.plusImage,JSTreeObj.minusImage);														}else{					if(JSTreeObj.dragNode_destination.nextSibling){						var nextSib = JSTreeObj.dragNode_destination.nextSibling;						nextSib.parentNode.insertBefore(JSTreeObj.dragNode_source,nextSib);											}else{						JSTreeObj.dragNode_destination.parentNode.appendChild(JSTreeObj.dragNode_source);					}//					parent = JSTreeObj.dragNode_destination.parentNode.id;				}					/* Clear parent object */				var tmpObj = JSTreeObj.dragNode_parent;				var lis = tmpObj.getElementsByTagName('LI');				if(lis.length==0){//					var img = tmpObj.parentNode.getElementsByTagName('IMG')[0];					var tmpSpan = tmpObj.parentNode;					var img = tmpSpan.parentNode.getElementsByTagName('IMG')[0];					img.style.visibility='hidden';	// Hide [+],[-] icon//					alert('trying to remove. noRemove='+noRemove);	//					if(noRemove==false){//						tmpObj.parentNode.removeChild(tmpObj);						//					}				}							}else{				// Putting the item back to it's original location								if(JSTreeObj.dragNode_sourceNextSib){					JSTreeObj.dragNode_parent.insertBefore(JSTreeObj.dragNode_source,JSTreeObj.dragNode_sourceNextSib);				}else{					JSTreeObj.dragNode_parent.appendChild(JSTreeObj.dragNode_source);				}											}			JSTreeObj.dropTargetIndicator.style.display='none';					JSTreeObj.dragDropTimer = -1;				if(showMessage && JSTreeObj.messageMaximumDepthReached)alert(JSTreeObj.messageMaximumDepthReached);//			JSTreeObj.getNewParent(null,null,JSTreeObj.dragNode_source.id,null);						//			saveMyTree(JSTreeObj.getNewParent(null,null,JSTreeObj.dragNode_source.id), JSTreeObj.dragNode_source.id);		//			saveMyTree(JSTreeObj.getNewParent(null,null,JSTreeObj.dragNode_source.id, null), JSTreeObj.dragNode_source.id);					saveMyTree(treeObj.getNewParent(null,null,JSTreeObj.dragNode_source.id, null), JSTreeObj.dragNode_source.id);				}
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