	if (window.jQuery) {
		jQuery.fn.liensExternes = function(params){
				params = jQuery.extend({
					exclude : window.location.host
				}, params);
				
				return jQuery(this)
				.filter(function() {
					var $this = jQuery(this);
					if ($this.is('a[@href$=\.pdf]')) { return true; } // Fichiers PDF
					if ($this.is('a[@href^=http]') && !$this.attr('href').match(params.exclude)) { return true; } // Liens commencant par "http" mais non exclus
				})
				.addClass('externe')
				.attr('target', '_blank');
		}
		jQuery(function() {
			jQuery('a').liensExternes();
		});
	}