jQuery.fn.mailme = function() {
    var at = / apenstaartje /;
    var dot = / punt /g;
    this.each( function() {
        var addr = jQuery(this).text().replace(at,"@").replace(dot,".");
        var title = jQuery(this).attr('title')
        $(this)
            .after('<a href="mailto:'+addr+'" title="'+title+'">'+ addr +'</a>')
            .remove();
    });
};

jQuery.fn.switchClass = function(a, b) {
    elm = $(this);
    if ( elm.hasClass(a) ) {
        elm.removeClass(a).addClass(b);
    } else {
        elm.removeClass(b).addClass(a);
    }
};
