How to get jquery switchClass working in Drupal 7
switchclass() isn't a library, it's a function that's part of UI Effects. So...

drupal_add_library('system', 'effects');


Should then let you use:

$('.foo').switchClass('foo', 'bar', 1000);