anchor.diff:          var dataStep = (Math.abs(min) + Math.abs(max))/((nCols)*nRows);
           var value = min;
           for (var i = 0; i < nRows; i++) {
  -            data.addRows(1);
  +            data_legend.addRows(1);
               for (col = 0; col < nCols; col++) {
  -                data.setCell(i, col, value);
  +                data_legend.setCell(i, col, value);
                   value += dataStep;
               }
           }
   
  -        return data;
  -    }
  +        heatmap_legend.draw(data_legend, ${maxExpressionScore}, ${minExpressionScore}, {startColor: {r:0, g:0, b:255, a:1},
  +                                                                                        endColor: {r:255, g:255, b:0, a:1},
  +                                                                                        passThroughBlack: false,
  +                                                                                        numberOfColors: 256,
  +                                                                                        cellWidth: 2,
  +                                                                                        cellHeight: 15,
  +                                                                                        useRowLabels: false,
  +                                                                                        drawBorder: false });
     }
   </script>
   
  
positive.code: 
  <tiles:importAttribute />
  
  <script type="text/javascript">
  
    jQuery(document).ready(function() {
       if ('${expressionScoreDCCid}'=='') {
          jQuery('#heatmap_div').remove();
          jQuery('#expression_div').html('<i>Expression scores are not available</i>');
       } else {
           jQuery("#description").hide();
  
           jQuery("#description_div").click(function () {
                 if(jQuery("#description").is(":hidden")) {
                   jQuery("#co").attr("src", "images/disclosed.gif");
                 } else {
                   jQuery("#co").attr("src", "images/undisclosed.gif");
                 }
                 jQuery("#description").toggle("slow");
              });
       }
    });
  
  </script>
  <script type="text/javascript" src="http://www.google.com/jsapi"></script>
  <script type="text/javascript">
      google.load("visualization", "1", {});
  
negative.code:     }
  }
  --%>
  