
	(function($) {

		$.fn.deliciousLink = function(options) {
			
			var settings = $.extend({
				baseURL:'http://del.icio.us/post?v=2&amp;url=',
				link: encodeURIComponent(window.location.href),
				title: encodeURIComponent(document.title)
		    }, options);
			
			return this.each(function(index, el) {
				var url = settings.baseURL + settings.link + '&amp;title=' + settings.title;
				el.href = url;
			});
		}
		
		$.fn.diggLink = function(options) {
			
			var settings = $.extend({
				baseURL:'http://digg.com/submit?url=',
				link: encodeURIComponent(window.location.href),
				title: encodeURIComponent(document.title)
		    }, options);
			
			return this.each(function(index, el) {
				var url = settings.baseURL + settings.link + '&amp;title=' + settings.title;
				el.href = url;
			});
		}
		
		$.fn.emailLink = function(options) {

			var settings = $.extend({
				baseURL:'mailto:',
				link: encodeURIComponent(window.location.href),
				title: encodeURIComponent(document.title)
		    }, options);

			return this.each(function(index, el) {
				var url = settings.baseURL +'?subject=' + settings.title + '&body=' + 'Check out '+ settings.title + ' at ' + settings.link;
				el.href = url;
			});
		}

	

	})(jQuery);
	
