$(document).ready(function(){
  $("#content-slider").slider({
    animate: true,
    change: handleSliderChange,
    slide: handleSliderSlide
  });
});

function handleSliderChange(e, ui)
{
  var maxScroll = $("#yeahbrah").attr("scrollWidth") - $("#yeahbrah").width();
  $("#yeahbrah").animate({scrollLeft: ui.value * (maxScroll / 100) }, 1000);
}

function handleSliderSlide(e, ui)
{
  var maxScroll = $("#yeahbrah").attr("scrollWidth") - $("#yeahbrah").width();
  $("#yeahbrah").attr({scrollLeft: ui.value * (maxScroll / 100) });
}