anchor.diff:        filterAndDrawChart();
       })();
   
  +    <%-- get the browser window size --%>
  +    function windowSize() {
  +        return jQuery(window).width();
  +    }
  +
       <%-- what is the current sort order --%>
       function getSortOrder() {
           return jQuery("#gene-expression-atlas div.settings ul.sort li.active").attr('title');
  
positive.code:         }
        });
      })();
    </script>
  
  <div style="clear:both;"></div>
  
negative.code:       });
      })();
  
      <%-- attache switcher for sort order --%>
      (function() {
        jQuery("#gene-expression-atlas div.settings ul.sort li").click(function() {
          jQuery("#gene-expression-atlas div.settings ul.sort li.active").removeClass('active');
          jQuery(this).addClass('active');
          updateCurrentFilter();
          filterAndDrawChart(true);
        });
      })();
  
      <%-- attache monitoring for regulation type checkbox change --%>
      (function() {
        jQuery("#gene-expression-atlas div.settings fieldset.regulation-type input").click(function() {
  