function share(D){
	var C="";
	var A=window.document.location.href;
	A = encodeURIComponent(A);
	if(A.charAt(A.length-1)=="#"){
		A=A.substring(0,A.length-1)
	}
	var B=encodeURIComponent(window.document.title);
	
	switch(D){
		case "meneame.net":
			C="http://meneame.net/submit.php?url="+A;
			break;
		case "del.icio.us":
			C="http://del.icio.us/post?title="+B+"&url="+A;
			break;
		case "digg.com":
			C="http://digg.com/submit?phase=2&url="+A+"&title="+B;
			break;
		case "facebook.com":
			C="http://www.facebook.com/sharer.php?u="+A + "&&t="+B;
			break;
		case "yahoo.es":
			C="http://myweb2.search.yahoo.com/myresults/bookmarklet?u="+A+"&t="+B;
			break;
		case "fresqui":
			C="http://fresqui.com/enviar?url="+encodeURIComponent(A)+"&titulo="+B;
			break;
		case "technorati":
			C="http://www.technorati.com/";
			break;
		case "myspace":
			C="http://www.myspace.com/Modules/PostTo/Pages/?u="+A;
			break;
		case "twitter":
			C="http://twitter.com/home?status="+A;
			break;
		case "tuenti":
			C="http://www.tuenti.com/share?url="+A;
			break;
	}
	
	if(C!=""){
		window.open(C)
	}
	return false
}
