// since wp loads prototype, use jQuery with the explicit jQuery function instead of the $ shortcut method
function load_fx () {
  jQuery('a img').each(function(index) {
    jQuery(this).parent('a').addClass('img');
  });
}

jQuery(document).ready(function() {
  load_fx();
});

