(function($) {
	$.each([ "addClass", "removeClass" ], function(i, methodname) {
		var oldmethod = $.fn[methodname];
		$.fn[methodname] = function() {
			oldmethod.apply(this, arguments);
			this.trigger(methodname + "Change");
			return this;
		}
	});
})(jQuery);
