There is a simple way to do it without global variables of any kind. MouseWheel event has a property explicitly specifying scrolling direction. Here's how to use it:
$("#scroll_div").bind("mousewheel",function(ev) {
var curScrollLeft = $(this).scrollLeft();
$(this).scrollLeft(curScrollLeft + Math.round(ev.originalEvent.wheelDelta));
});