function scaleItSaturation(v, originalWidth) {
  //var scalePhoto = $('theImage');
  v += originalWidth + 20;
  if(v>400) v=400;
  if(v<0) v=0;
  //$('resizeWidth').value = v;
 $('temp_saturation').value = Math.floor(v);
}

function saveSaturation() {
  var theWidth = $('temp_saturation').value;
  theWidth = theWidth;
  $('saturation').value = theWidth;
 
 xmlhttpPost('process.php?act=saturation','saturation');
}

function initSaturation() {
  new Control.Slider('resizeHandle_s','resizeTrack_s', { 
    axis:'horizontal', 
    range:$R(0,400), 
    sliderValue:200,
    onSlide: function(v) { scaleItSaturation(v, $('saturationWidth').value); },
    onChange: function(v) { saveSaturation(); }      
  });
}

//Event.observe(window, 'load', function() { initSlider() });
