Scroll Handler

This is a jq function I made to easily set up callback function calls on scroll up or down "events". The purpose is for an infinite scrolling implementation.

$.scrollHandler(function(){alert('up');},function(){alert('down');});

I may turn this into actual events i.e. http://www.sitepoint.com/javascript-custom-events/
http://www.sitepoint.com/jquery-custom-events/