The beforeShowDay callback
allows you to do this. It is a function that takes a Date as a parameter
and returns an array with  being true if the date is selectable,
false if not,  being a CSS class to apply to that date cell, 
being an optional popup tooltip for the date.