function showSocialBookmarks() {
	var elem = document.getElementById("articletoolbarbookmarks");
	
	if (elem.style.display == "block") {
		elem.style.display = "none";
	} else {
		elem.style.display = "block";
	}
}

function socialBookmark(kind) {
	var locUrl = encodeURIComponent(location.href);
	var title = encodeURIComponent(document.title);
	var serviceUrl = '';
	var serviceName = '';
	
	if (kind == 'deli') {
		serviceName = 'delicious';
		serviceUrl = 'http://del.icio.us/post?v=4&noui&jump=close&url='+locUrl+'&title='+title;
	} else if (kind == 'wong') {
		serviceName = 'Mister Wong';
		serviceUrl = 'http://www.mister-wong.de/add_url/?action=addurl&bm_url='+locUrl+'&bm_description='+title;
	} else if (kind == 'digg') {
		serviceName = 'Digg';
		serviceUrl = 'http://digg.com/submit?url='+locUrl+'&title='+title;
	} else if (kind == 'facebook') {
		serviceName = 'Facebook';
		serviceUrl = 'http://www.facebook.com/share.php?u='+locUrl;
	} else if (kind == 'webnews') {
		serviceName = 'Webnews';
		serviceUrl = 'http://www.webnews.de/einstellen?url='+locUrl+'&title='+title;
	} else if (kind == 'google') {
		serviceName = 'Googletoolbar';
		serviceUrl = 'http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+locUrl+"&title="+title;
	} else if (kind == 'yigg') {
		serviceName = 'Yigg';
		serviceUrl = 'http://yigg.de/neu?exturl='+locUrl+'&exttitle='+title;
	}
	
	window.open(serviceUrl, serviceName,'toolbar=no,width=700,height=400');
}

