function buildShare(node) {
	var sShareLocation = encodeURIComponent(window.location);
	var sShareTitle = encodeURIComponent(document.title);
	
	var shareForm = {
		nodeButton: null,
		nodeForm: null,
		id: node.id,
		links: [{
			title: 'AIM',
			id: 'shareAim',
			link: 'http://share.aim.com/share/?url='+sShareLocation+'&title='+sShareTitle
		},{
			title: 'BallHype',
			id: 'shareBallhype',
			link: 'http://ballhype.com/post/url/?url='+sShareLocation+'&title='+sShareTitle
		},{
			title: 'Yahoo Buzz',
			id: 'shareYahoobuzz',
			link: 'http://buzz.yahoo.com/buzz?targetUrl='+sShareLocation
		},{
			title: 'Google',
			id: 'shareGoogle',
			link: 'http://www.google.com/bookmarks/mark?op=add&bkmk='+sShareLocation+'&title='+sShareTitle
		},{
			title: 'myAOL',
			id: 'shareMyAOL',
			link: 'http://favorites.my.aol.com/ffclient/AddBookmark?url='+sShareLocation+'&title='+sShareTitle
		},{
			title: 'Bebo',
			id: 'shareBebo',
			link: 'http://bebo.com/c/share?Url='+sShareLocation+'&Title='+sShareTitle
		},{
			title: 'Delicious',
			id: 'shareDelicious',
			link: 'http://del.icio.us/post?url='+sShareLocation
		},{
			title: 'Facebook',
			id: 'shareFacebook',
			link: 'http://www.facebook.com/sharer.php?u='+sShareLocation+'&t='+sShareTitle
		},{
			title: 'Ask',
			id: 'shareAsk',
			link: 'http://myjeeves.ask.com/mysearch/BookmarkIt?v=1.2&t=webpages&url='+sShareLocation+'&title='+sShareTitle
		},{
			title: 'BlinkList',
			id: 'shareBlinkList',
			link: 'http://www.blinklist.com/blink?u='+sShareLocation+'&t='+sShareTitle+'&d='+sShareTitle
		},{
			title: 'Digg',
			id: 'shareDigg',
			link: 'http://digg.com/submit?phase=2&amp;url='+sShareLocation+'&title='+sShareTitle
		},{
			title: 'Ajouter aux favoris',
			id: 'shareFavoris',
			link: 'favoris'
		},{
			title: 'Backflip',
			id: 'shareBackflip',
			link: 'http://www.backflip.com/add_page_pop.ihtml?url='+sShareLocation+'&title='+sShareTitle
		},{
			title: 'Blogmarks',
			id: 'shareBlogmarks',
			link: 'http://blogmarks.net/my/new.php?mini=1&simple=1&url='+sShareLocation+'&title='+sShareTitle
		},{
			title: 'Diigo',
			id: 'shareDiigo',
			link: 'http://www.diigo.com/post?url='+sShareLocation+'&title='+sShareTitle
		},{
			title: 'Fark',
			id: 'shareFark',
			link: 'http://www.fark.com/cgi/farkit.pl?u='+sShareLocation+'&h='+sShareTitle
		}],
		timer : null,
		showForm : function(e){
			e.cancelBubble = true;
			clearTimeout(this.timer);
			dojo.addClass(this.nodeButton, "over");
			dojo.attr(this.nodeForm, 'style', {
                display: 'block'
            });
		},
		hideForm : function(e){
			e.cancelBubble = true;
			clearTimeout(this.timer);
			this.timer = setTimeout(dojo.hitch(this,"_hideForm"), 1000);
		},
		_hideForm: function(){
			dojo.attr(this.nodeForm, 'style', {
                display: 'none'
            });
			dojo.removeClass(this.nodeButton, "over");
		},
		init: function(){		
			this.nodeButton = dojo.query("#" + this.id + " .shareButton")[0];
			this.nodeForm = dojo.query("#" + this.id + " .shareForm")[0];
		
			dojo.connect(this.nodeButton, "onmouseover", dojo.hitch(this, "showForm", this.nodeButton));
			dojo.connect(this.nodeButton, "onmouseout", dojo.hitch(this, "hideForm", this.nodeButton));
			dojo.connect(this.nodeForm, "onmouseover", dojo.hitch(this, "showForm", this.nodeButton));
			dojo.connect(this.nodeForm, "onmouseout", dojo.hitch(this, "hideForm", this.nodeButton));
			
			var myInnerHTML = '<h3>Partager cet article :</h3>' +
			'<ul class="this.links">';

			var linksTaille= this.links.length;
			var currentLink = null;
			for(var cpt=0; cpt<linksTaille; cpt++) {
				currentLink = this.links[cpt];
				if(currentLink.link == "favoris")
					myInnerHTML += '<div class="favorisIcon"><a href="javascript:addFavorite();"><div class="'+currentLink.id+'"></div>'+currentLink.title+'</a></div>';
				else
					myInnerHTML += '<li class="shareIcone noppading shareFloatLeft"><a target="_blank" href="'+currentLink.link+'"><div class="'+currentLink.id+'"></div>'+currentLink.title+'</a></li>';
			}
			myInnerHTML += '</ul>';
			this.nodeForm.innerHTML = myInnerHTML;
		}
	};
	
//	var shareButtonList = dojo.query(".shareButton").forEach(function(node){
//		dojo.connect(node, "onmouseover", dojo.hitch(shareTimer, "showShare", node));
//		dojo.connect(node, "onmouseout", dojo.hitch(shareTimer, "hideShareSoon"));
//	});
	
	shareForm.init();
	
//	dojo.connect(shareButton, "onmouseover", dojo.hitch(shareTimer, "showShare"));
//	dojo.connect(shareButton, "onmouseout", dojo.hitch(shareTimer, "hideShareSoon"));
//	var shareForm = document.getElementById("shareForm");
//	dojo.connect(shareForm, "onmouseover", dojo.hitch(shareTimer, "showShare"));
//	dojo.connect(shareForm, "onmouseout", dojo.hitch(shareTimer, "hideShareSoon"));
}

function addFavorite(){
	if (window.sidebar) {
		window.sidebar.addPanel(document.title, window.location, "");
	}
	else {
		window.external.AddFavorite(window.location, document.title);
	}
}