anchor.diff:        });
       })();
   
  +    <%-- 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() {
  
positive.code:         <%-- modify the chart properties --%>
          var options = {
            isStacked:		true,
            width:			800,
            height:			(9 * n) + 50,
            chartArea:		{left: 400, top: 0, height: 9 * n},
            backgroundColor: 	["0", "CCCCCC", "0.2", "FFFFFF", "0.2"],
            colors: 			['#0000FF', '#59BB14'],
            fontName: 		"Lucida Grande,Verdana,Geneva,Lucida,Helvetica,Arial,sans-serif",
  
negative.code:       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');
  