

function handleSliderChange(e, ui)
{
  var maxScroll = $("#article").attr("scrollHeight") - $("#article").height();
  $("#article").animate({scrollTop: ui.value * (maxScroll / 100) }, 1000);
}

function handleSliderSlide(e, ui)
{
  var maxScroll = $("#article").attr("scrollHeight") - $("#article").height();
  $("#article").attr({scrollTop: ui.value * (maxScroll / 100) });
}