w2v-server: add auto focus as window/sort option
diff --git a/templates/index.html.ep b/templates/index.html.ep
index 26b8eac..1e57de8 100644
--- a/templates/index.html.ep
+++ b/templates/index.html.ep
@@ -26,7 +26,11 @@
 	     font-family: Arial, sans-serif;
 	     font-size: 11pt;
      }
-     
+
+     .mono {
+       font-family: "DejaVu Sans Mono", Inconsolata, SourceCodePro, Courier;
+     }
+
      .ui-tooltip-content {
 	     font-size: 9pt;
 	     color: #222222;
@@ -320,10 +324,11 @@
 		  max. iterations: <input type="text" name="N" size="4" value="<%= $no_iterations %>">
       SOM <input type="checkbox" name="som" value="1" <%= ($show_som ? "checked" : "") %>>
 		  % if($collocators) {
-        <span>  </span>sort collocators by
+        <span>  </span>window/sort
         <select name="sort">
-          <option value="0"  <%= ($sort!=1? "selected":"") %>>responsiveness</option>
-          <option value="1" <%= ($sort==1? "selected":"") %>>mean p</option>
+          <option value="0"  <%= ($sort!=1 && $sort!=2? "selected":"") %>>auto focus</option>
+          <option value="1"  <%= ($sort==1? "selected":"") %>>any single position</option>
+          <option value="2" <%= ($sort==2? "selected":"") %>>whole window</option>
         </select>
 		  % }
       <span>  </span><input type="submit" value="Show">
@@ -336,7 +341,7 @@
 			    <tr>
 				    <th align="right">#</th><th align="right">cos</th><th align="left">paradigmatic</th>
             % if($collocators) {
-				      <th title="Position in winodw around target word. Absolute value can be too low because of sub-sampling frequent words.">@</th><th align="right" title="&#34;Responsivenes&#34; of the collocator at the relative position @. Approximation of the probability that the combination of the target word and the collocator at the relative position @ come from the corpus.">resp.</th><th title="Probability of the collocator at window location @."align="right">p(c<sub><small>@</small></sub>)</th><th align="right">Σp(c<sub><small>@</small></sub>)/|w|</th><th align="left">syntagmatic</th>
+				      <th title="The window around the target word that is considered for summation. Absolute value can be too low because of sub-sampling frequent words.">w</th><th align="right" title="&#34;Responsivenes&#34; of the collocator at the relative position @. Approximation of the probability that the combination of the target word and the collocator at the relative position @ come from the corpus.">resp.</th><th title="Probability of the collocator at window location @."align="right">p(c<sub><small>@</small></sub>)</th><th align="right">Σp(c<sub><small>@</small></sub>)/|w|</th><th align="left">syntagmatic</th>
 				    % }
 			    </tr>
 			    % my $j=0; my @words; my @vecs; my @ranks; my @marked;
@@ -379,7 +384,7 @@
                 % }
                 % if($c) {
 				          <td align="right">
-                    <%= $c->{pos} %>:
+                    <span class="mono"><%= bitvec2window($c->{pos}) %></span>
 				          </td>
 				          <td align="right">
   				          <%= sprintf("%.3f", $c->{dist}) %>