// We define a function that takes one parameter named $.
(function ($) {
// Store our function as a property of Drupal.behaviors
  Drupal.behaviors.imageSwap = {
    attach: function (context, settings) {
         $('.label_sm a img').hover(
         function () {
            src = $(this).attr('src');
            $(this).attr('src', src.replace('bw', 'color'));
         }, 
         function () {
            $(this).attr('src', src.replace('color', 'bw'));
         }
       );
    }
  }
}(jQuery));
;

