
function scaleIt(v) {
  var scalePhotos = document.getElementsByClassName("scale-image");

  // Remap the 0-1 scale to fit the desired range
  floorSize = .46;
  ceilingSize = 0.7;
  v = floorSize + (v * (ceilingSize - floorSize));

  for (i=0; i < scalePhotos.length; i++) {
    scalePhotos[i].style.width = (v*190)+"px";
  }
}
var demoSlider = new Control.Slider('handle','track', 
      {axis:'horizontal', minimum: 0, maximum:210, alignX: 1, increment: 1, sliderValue: 0});

demoSlider.options.onSlide = function(value){
  scaleIt(value);
}
demoSlider.options.onChange = function(value){
  scaleIt(value);
}



