anchor.diff:      });
     }
   
  -  <%-- switch between handle colors --%>
  -  function updateSliderColor() {
  -    if (jQuery("div.slider-wrap input.value").val() < 0.625) {
  -      jQuery("#slider div.handle").addClass('green').removeClass('blue');
  -    } else {
  -      jQuery("#slider div.handle").addClass('blue').removeClass('green');
  -    }
  -  }
  -
     <%-- update the slider on input manual change --%>
     jQuery("div.slider-wrap input.value")
     .focusout(adjustSliderPosition)
  
positive.code:   });
  
    <%-- derive p-value from slider --%>
    jQuery("#slider div.handle").mousemove(function(event) {
      var handle = jQuery(this);
      jQuery("div.slider-wrap input.value").val(function() {
        var distance = handle.css('left').replace(/[^0-9.]/g, '');
  
negative.code:       // return new Number(value).toFixed(parseInt(2)); // rounded value to 2 decimal places
  
        // non linear
        var p = new Number((1/Math.pow(10, value * 10)).toPrecision(21)).toExponential(2);
        im.log("slider: " + value + ", p: " + p);
        return p;
      });
    });
  
    <%-- key points on the scale --%>
    jQuery("div.slider a").click(function() {
      jQuery("div.slider-wrap input.value").val(jQuery(this).attr('title'));
      adjustSliderPosition();
    });
  })();
  </script>