derekovecs: som: make special and reference corpus distictions visible
diff --git a/js/som.js b/js/som.js
index 7c5cca1..7786ae2 100644
--- a/js/som.js
+++ b/js/som.js
@@ -205,13 +205,16 @@
 		.append("text")
     .attr("text-anchor", "bottom")
     .attr("font-size", 12)
-    .attr("fill", function(d) {
-			if(data.target.indexOf(" "+d+" ") >= 0) {
-				return "blue";
-			} else {
-				return "#333"
-			}
-	  })
+    .attr("class", function(d, i) {
+      var c="somtext";
+      if(data.target.indexOf(" "+d+" ") >= 0) {
+        c += " target";
+      }
+      if(data.ranks[i] >= data.mergedEnd) {
+        c += " merged";
+      } 
+      return c;
+    })
     .text(function(d) { return d; });
   
     $('g.u a, g.tsnet a, td.paradigmator a').on('mousedown', function(e) {