var imagePath="http://autoverwerter.de/pics/bookmark/IMAGE_NAME"
//var imagePath="../pics/bookmark/IMAGE_NAME"
var sbImage= new Array();
var sbUrl= new Array();
var sbAlt= new Array();
sbImage[1]="delicious18.png";
sbImage[2]="misterwong18.gif";
sbImage[3]="google18.png";
sbImage[4]="yahoo18.png";
sbImage[5]="technorati18.png";
sbImage[6]="digg18.png";
sbImage[7]="icio18.gif";
sbImage[8]="folkd";
sbImage[9]="yigg18.gif";
sbImage[10]="linkarena18.gif";
sbImage[11]="simpy";
sbImage[12]="reddit18.png";
sbImage[13]="furl18.png";
sbImage[14]="spurl";
sbImage[15]="blinklist18.png";
sbImage[16]="blogmarks";
sbImage[17]="diigo";
sbImage[18]="newsvine";
sbImage[19]="blinkbits";
sbImage[20]="gnolia";
sbImage[21]="smarking";
sbImage[22]="netvouz";
sbImage[23]="webnews18.gif";

sbUrl[1]="http://del.icio.us/post?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
sbUrl[2]="http://www.mister-wong.de/index.php?action=addurl&bm_url="+encodeURIComponent(location.href)+"&bm_description="+encodeURIComponent(document.title)+"";
sbUrl[3]="http://www.google.com/bookmarks/mark?op=add&hl=de&bkmk="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
sbUrl[4]="http://myweb2.search.yahoo.com/myresults/bookmarklet?t="+encodeURIComponent(document.title)+"u="+encodeURIComponent(location.href)+"";
sbUrl[5]="http://technorati.com/faves/seoportal?add="+encodeURIComponent(location.href)+"";
sbUrl[6]="http://digg.com/submit?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
sbUrl[7]="http://www.icio.de/add.php?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
sbUrl[8]="http://www.folkd.com/submit/"+location.href+"";
sbUrl[9]="http://www.yigg.de/neu?exturl="+encodeURIComponent(location.href)+"";
sbUrl[10]="http://linkarena.com/bookmarks/addlink/?url="+encodeURIComponent(location.href)+"";
sbUrl[11]="http://www.simpy.com/simpy/LinkAdd.do?href="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
sbUrl[12]="http://reddit.com/submit?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
sbUrl[13]="http://www.furl.net/storeIt.jsp?u="+encodeURIComponent(location.href)+"&t="+encodeURIComponent(document.title)+"";
sbUrl[14]="http://www.spurl.net/spurl.php?v=3&title="+encodeURIComponent(document.title)+"&url="+encodeURIComponent(location.href)+"";
sbUrl[15]="http://de.blinklist.com/?Action=Blink/addblink.php&Name="+encodeURIComponent(document.title)+"&Url="+encodeURIComponent(location.href)+"";
sbUrl[16]="http://www.blogmarks.net/my/marks,new?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
sbUrl[17]="http://www.diigo.com/post?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
sbUrl[18]="http://www.newsvine.com/_wine/save?u="+encodeURIComponent(location.href)+"";
sbUrl[19]="http://www.blinkbits.com/bookmarklets/save.php?title="+encodeURIComponent(document.title)+"&source_url="+encodeURIComponent(location.href)+"";
sbUrl[20]="http://ma.gnolia.com/bookmarklet/add?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
sbUrl[21]="http://smarking.com/editbookmark/?url="+encodeURIComponent(location.href)+"";
sbUrl[22]="http://www.netvouz.com/action/submitBookmark?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
sbUrl[23]="http://www.webnews.de/einstellen?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
sbAlt[1]="del.icio.us";
sbAlt[2]="Mister Wong";
sbAlt[3]="Google";
sbAlt[4]="yahoo Bookmarks";
sbAlt[5]="technorati.com";
sbAlt[6]="Digg.com";
sbAlt[7]="Icio";
sbAlt[8]="folkd.com";
sbAlt[9]="Yigg.de";
sbAlt[10]="LinkArena.com";
sbAlt[11]="Simpy.com";
sbAlt[12]="Reddit.com";
sbAlt[13]="furl.net";
sbAlt[14]="spurl.net";
sbAlt[15]="BlinkList.com";
sbAlt[16]="Blogmarks.net";
sbAlt[17]="diigo.com";
sbAlt[18]="newsvine.com";
sbAlt[19]="blinkbits.com";
sbAlt[20]="ma.gnolia.com";
sbAlt[21]="smarking.com";
sbAlt[22]="netvouz.com";
sbAlt[23]="webnews.de";


  function social_bookmarks(ids)
  {
 //   var html = "<span class=\"socialbookmarks_header\">Social Bookmarking</span><div id=\"socialbookmarks\">";
	var html = "<div id=\"socialbookmarks\">";
	var sbIds = ids.split(',');

	for (var i=0; i < sbIds.length; i++)
	{
		var j = sbIds[i];
		var imgName = sbImage[j];
		var imgSrc = imagePath.replace(/IMAGE_NAME/, imgName);
		html += "<span class=\"socialbookmark\"><a rel=\"nofollow\" href=\""+ sbUrl[j] +"\" target=\"_blank\" title=\""+sbAlt[j]+"\" ><img  src=\""+ imgSrc + "\" alt=\""+sbAlt[j]+"\" border=\"0\"></a></span>";
	}
	html += "</div>"
	return html;
  }

  document.write(social_bookmarks('1,2,3,4,5,6,7,9,10,12,13,15,23'));

