var nodeIn = []; var nodeOut = []; var nodeChildren = []; var max_depth = []; var span_count_in = []; var span_count_out = []; var current_depth = -1; function alignIn( sentence, word, depth ) { if (current_depth < depth) { current_depth = depth; } else { return; } var id = 0; for(var i=1;i"; for(var i=nodeOut[sentence][id].start;i<=nodeOut[sentence][id].end;i++) { for(var j=nodeOut[sentence][id].depth;j<=max_depth[sentence];j++) { var item = "out-" + sentence + "-" + i + "-" + j; //$("debug").innerHTML += item; if ($(item) != null) { $(item).setStyle({ backgroundColor: color, borderColor: 'red' }); } } } } function lowlightAllNodes( sentence ) { for(var i=0;i