// Social Bookmarks
// der HTML-Text befindet sich in /incUSER/socials/bookmarks.php5
// die Icons sind in /images/socialBM/ gelagert
// Die JS-Funktion 'socialBM(id);' ist in /scripts/socialBM.js definiert
// und wird, wenn notwendig und gewünscht, in /incDINL/generalHeader.php5 in den HEADbereich der Seite eingesetzt
function socialBM(id) {
	sBMurl=encodeURIComponent(location.href);
	sBMtitle=encodeURIComponent(document.title);
	// alert(id+' '+sBMurl+' '+sBMtitle);
	// alert(decodeURIComponent(sBMurl));
	switch(id) {
		case 'del':
			window.open('http://del.icio.us/post?url='+sBMurl+'&title='+sBMtitle);
			break;
		case 'mister-wong':
			window.open('http://www.mister-wong.de/index.php?action=addurl&bm_url='+sBMurl+'&bm_description='+sBMtitle);
			break;
		case 'blinkList':
			window.open('http://www.blinklist.com/index.php?Action=Blink/addblink.php&Description=&Url='+sBMurl+'&Title='+sBMtitle);
			break;
		case 'yahoo':
			window.open('http://myweb2.search.yahoo.com/myresults/bookmarklet?u='+sBMurl+'&t='+sBMtitle);
			break;
		case 'yigg':
			window.open('http://www.yigg.de/neu?exturl='+sBMurl+'&exttitle='+sBMtitle);
			break;
		case 'furl':
			window.open('http://www.furl.net/storeIt.jsp?u='+sBMurl+'&t='+sBMtitle);
			break;
		case 'oneview':
			window.open('http://beta.oneview.de:80/quickadd/neu/addBookmark.jsf?URL='+sBMurl+'&title='+sBMtitle);
			break;
		case 'folkd':
			window.open('http://www.folkd.com/submit/page/'+sBMurl);
			break;
		case 'linkarena':
			window.open('http://www.linkarena.com/bookmarks/addlink/?url='+sBMurl+'&title='+sBMtitle+'&desc=&tags=');
			break;
		case 'google':
			window.open('http://www.google.com/bookmarks/mark?op=add&hl=de&bkmk='+sBMurl+'&title='+sBMtitle);
			break;
		case 'webnews':
			window.open('http://www.webnews.de/einstellen?url='+sBMurl+'&title='+sBMtitle);
			break;
		case 'tausendreporter':
			window.open('http://tausendreporter.stern.de/submit.php?url='+sBMurl);
			break;
		case 'digg':
			window.open('http://digg.com/submit?url='+sBMurl+'&title='+sBMtitle+'&media=NEWS&topic=business_finance');
			break;
		case 'mix':
			window.open('http://www.mixx.com/submit?page_url='+sBMurl);
			break;
		case 'fark':
			window.open('http://cgi.fark.com/cgi/fark/farkit.pl?u='+sBMurl+'&h='+sBMtitle);
			break;
		case 'technorati':
			window.open('http://technorati.com/faves?add='+sBMurl);
			break;
		case 'newsvine':
			window.open('http://www.newsvine.com/_tools/seed?u='+sBMurl);
			break;
		case 'reddit':
			window.open('http://www.reddit.com/submit?url='+sBMurl+'&title='+sBMtitle);
			break;
		case 'facebook':
			window.open('http://www.facebook.com/share.php?u='+sBMurl+'&t='+sBMtitle);
			break;
	}
}

function socialBMover(txt){
	if (txt == '') {
		var text = '&nbsp;';
	} else {
		var text = '&nbsp;<strong>'+txt+'</strong>';
	}
	document.getElementById('socialBMover').innerHTML=text;
}
