/* Social Bookmarking */
function social_mo(name) {
	if (name == '') { name = '...'; } else { name='&nbsp;<b>'+name+'</b>'; }
	document.getElementById('social_motext').innerHTML=name;
}

function social_click(name) {
	URL = encodeURIComponent(location.href);
	Title = encodeURIComponent(document.title);
	switch(name) {	
		case 'blinklist': 		window.open('http://www.blinklist.com/index.php?Action=Blink/addblink.php&Description=&Url='+URL+'&Title='+Title); break;
		case 'delicious': 		window.open('http://del.icio.us/post?url='+URL+'&title='+Title); break;
		case 'google': 			window.open('http://www.google.com/bookmarks/mark?op=add&hl=de&bkmk='+URL+'&title='+Title); break;
		case 'folkd': 			window.open('http://www.folkd.com/submit/page/'+URL); break;
		case 'furl': 			window.open('http://www.furl.net/storeIt.jsp?u='+URL+'&t='+Title); break;
		case 'linkarena':		window.open('http://linkarena.com/bookmarks/addlink/?url='+URL+'&title='+Title+'&desc=&tags=');	break;
		case 'oneview':			window.open('http://beta.oneview.de:80/quickadd/neu/addBookmark.jsf?URL='+URL+'&title='+Title);	break;
		case 'tausendreporter': window.open('http://tausendreporter.stern.de/submit.php?url='+URL); break;
		case 'technorati': 		window.open('http://technorati.com/faves?add='+URL); break;
		case 'webnews': 		window.open('http://www.webnews.de/einstellen?url='+URL+'&title='+Title); break;
		case 'wong': 			window.open('http://www.mister-wong.de/index.php?action=addurl&bm_url='+URL+'&bm_description='+Title); break;
		case 'yahoo':			window.open('http://myweb2.search.yahoo.com/myresults/bookmarklet?u='+URL+'&t='+Title);	break;
		case 'yigg': 			window.open('http://yigg.de/neu?exturl='+URL+'&exttitle='+Title); break;	
	}
}


function addEngine(name,cat){
if (window.external && ("AddSearchProvider" in window.external)) {

	if ((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function"))
  		{
    	window.sidebar.addSearchEngine(
      		"http://www.sparbote.de/download/suchef.xml",
			"",
      		name,
      		cat );
  		}
  else
  		{
    	errorMsg(name,cat);
  		}
    } else {
        alert("Das funktioniert mit deinem Browser leider nicht.");
    }  		
  		
}