﻿// jquery.actisens.js
// Author: Jérôme Quintard (actisens.com)
// Dependencies:
// jQuery 1.3.2 (jquery.com)

(function($) {

    // Affichage du copyright en fonction de la date courante
    $.fn.copyright = function(baseYear) {
        var _thisYear = new Date().getFullYear();
        $(this).html("&copy; " + ((baseYear != _thisYear) ? baseYear + ' - ' : '') + _thisYear);
    };

    // Cache l'adresse email donné en paramètre
    $.fn.mail = function(mail) {
        $(this).click(function() {
            window.location = 'mailto:' + mail;
            return false;
        });
    };

})(jQuery);
