var position = ""; if (DNDMode & dojo.widget.Tree.prototype.DNDModes.ONTO && DNDMode & dojo.widget.Tree.prototype.DNDModes.BETWEEN) { if (p<=0.3) { position = "before"; } else if (p<=0.7) { position = "onto"; } else { position = "after"; } } else if (DNDMode & dojo.widget.Tree.prototype.DNDModes.BETWEEN) { if (p<=0.5) { position = "before"; } else { position = "after"; } } else if (DNDMode & dojo.widget.Tree.prototype.DNDModes.ONTO) { position = "onto"; } 
var position = ""; if (DNDMode & dojo.widget.Tree.prototype.DNDModes.ONTO && DNDMode & dojo.widget.Tree.prototype.DNDModes.BETWEEN) { if (p<=0.3) { position = "before"; } else if (p<=0.7) { position = "onto"; } else { position = "after"; } } else if (DNDMode & dojo.widget.Tree.prototype.DNDModes.BETWEEN) { if (p<=0.5) { position = "before"; } else { position = "after"; } } else if (DNDMode & dojo.widget.Tree.prototype.DNDModes.ONTO) { position = "onto"; } 
	getPosition: function(e, DNDMode) {		var node = dojo.byId(this.treeNode.labelNode);		var mousey = e.pageY || e.clientY + dojo.body().scrollTop;		var nodey = dojo.html.getAbsolutePosition(node).y;		var height = dojo.html.getBorderBox(node).height;		var relY = mousey - nodey;		var p = relY / height;		var position = ""; // "" <=> forbidden		if (DNDMode & dojo.widget.Tree.prototype.DNDModes.ONTO		  && DNDMode & dojo.widget.Tree.prototype.DNDModes.BETWEEN) {			if (p<=0.3) {				position = "before";			} else if (p<=0.7) {				position = "onto";			} else {				position = "after";			}		} else if (DNDMode & dojo.widget.Tree.prototype.DNDModes.BETWEEN) {			if (p<=0.5) {				position = "before";			} else {				position = "after";			}		}		else if (DNDMode & dojo.widget.Tree.prototype.DNDModes.ONTO) {			position = "onto";		}		return position;	},
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/2f1d2cb699c9d9329e8b782b0463156e211cb0f6/struts_dojo.js.uncompressed.js/buggy/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js.uncompressed.js