// Copyright (c) 2006 by Sean Carlos, Antezeta. v 1.0 All rights reserved.  Unauthorized use prohibited.
// Contact us using form at www.antezeta.com to request permission conditions.
var mtgs = document.getElementsByTagName("meta");var docdsc = "";var dockw = "";var mtn ="";
for (i=0;i < mtgs.length;i++) {
  mtn = mtgs[i].getAttribute("name");
  if (mtn == "description" || mtn == "DESCRIPTION" ) {docdsc = mtgs[i].getAttribute("content");} 
  if (mtn == "keywords" || mtn == "KEYWORDS" ) {dockw = mtgs[i].getAttribute("content");}}
var sBm = new Array();
sBm[sBm.length] = {nm:"del.icio.us", im:"delicious", bs:"del.icio.us/post?", ad:"", ur:"url", tt:"title", ds:"notes",tg:"",rt:""};
sBm[sBm.length] = {nm:"Blogger", im:"blogger", bs:"www.blogger.com/blog-this.g?", ad:"ie=UTF-8&amp;oe=UTF-8", ur:"u", tt:"n", ds:"t",tg:"",rt:""};
sBm[sBm.length] = {nm:"Digg", im:"digg", bs:"digg.com/submit?", ad:"phase=2", ur:"url", tt:"title", ds:"bodytext",tg:"",rt:""};
sBm[sBm.length] = {nm:"Slashdot", im:"slashdot", bs:"slashdot.org/bookmark.pl?", ad:"", ur:"url", tt:"title", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Technorati", im:"technorati", bs:"technorati.com/faves/?", ad:"", ur:"add", tt:"", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"bloglines", im:"bloglines", bs:"www.bloglines.com/citations?", ad:"", ur:"url", tt:"", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Blogmarks", im:"blogmarks", bs:"blogmarks.net/my/new.php?", ad:"mini=1&amp;simple=1", ur:"url", tt:"title", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Y! MyWeb", im:"yahoomyweb", bs:"myweb2.search.yahoo.com/myresults/bookmarklet?", ad:"d=&amp;ei=UTF-8", ur:"u", tt:"t", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Google", im:"google", bs:"www.google.com/bookmarks/mark?", ad:"op=edit&amp;output=popup", ur:"bkmk", tt:"title", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Ask", im:"ask", bs:"mystuff.ask.com/mysearch/QuickWebSave?", ad:"v=1.2&amp;t=webpages", ur:"url", tt:"title", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Fark", im:"fark", bs:"cgi.fark.com/cgi/fark/edit.pl?", ad:"new_link_other=&amp;linktype=&amp;topic=", ur:"new_url", tt:"new_comment", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"StumbleUpon", im:"stumbleupon", bs:"www.stumbleupon.com/url.php?", ad:"", ur:"url", tt:"", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"ListMixer", im:"listmixer", bs:"listmixer.com/mix.php?", ad:"v=1&amp;c=Yl2F9co8gzQal0bmhUJecURUENm4z7FWa4srIEHJiXz72t2G", ur:"u", tt:"t", ds:"d",tg:"",rt:""};
sBm[sBm.length] = {nm:"Reddit", im:"reddit", bs:"reddit.com/submit?", ad:"", ur:"url", tt:"title", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Looksmart&#39;s Furl", im:"furl", bs:"www.furl.net/storeIt.jsp?", ad:"", ur:"u", tt:"t", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Newsvine", im:"newsvine", bs:"www.newsvine.com/_tools/seed&amp;save?", ad:"", ur:"u", tt:"h", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Shoutwire", im:"shoutwire", bs:"www.shoutwire.com/submit", ad:"", ur:"", tt:"", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Blinklist", im:"blinklist", bs:"www.blinklist.com/index.php?", ad:"Action=Blink/addblink.php", ur:"Url", tt:"Title", ds:"Description",tg:"",rt:""};
sBm[sBm.length] = {nm:"Rojo", im:"rojo", bs:"www.rojo.com/submit/?", ad:"", ur:"url", tt:"title", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Spurl", im:"spurl", bs:"www.spurl.net/spurl.php?", ad:"v=3", ur:"url", tt:"title", ds:"blocked",tg:"",rt:""};
sBm[sBm.length] = {nm:"Shadows", im:"shadows", bs:"www.shadows.com/features/tcr.htm?", ad:"", ur:"url", tt:"title", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Kuro5hin", im:"kuro5hin", bs:"www.kuro5hin.org/submit", ad:"", ur:"", tt:"", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Blogrolling", im:"blogrolling", bs:"www.blogrolling.com/add_links_pop.phtml?", ad:"", ur:"u", tt:"t", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Ma.gnolia", im:"magnolia", bs:"ma.gnolia.com/beta/bookmarklet/add?", ad:"", ur:"url", tt:"title", ds:"description",tg:"",rt:""};
sBm[sBm.length] = {nm:"Wists Social Shopping", im:"wists", bs:"wists.com/r.php?", ad:"", ur:"r", tt:"title", ds:"c",tg:"",rt:""};
sBm[sBm.length] = {nm:"Simpy", im:"simpy", bs:"www.simpy.com/simpy/LinkAdd.do?", ad:"v=6&amp;src=bookmarklet", ur:"href", tt:"title", ds:"note",tg:"",rt:"_doneURI"};
sBm[sBm.length] = {nm:"Kinja", im:"kinja", bs:"www.kinja.com/checksiteform.knj?", ad:"", ur:"add", tt:"", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"RawSugar", im:"rawsugar", bs:"www.rawsugar.com/tagger/?", ad:"editorInitialized=1", ur:"turl", tt:"tttl", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Wink", im:"wink", bs:"www.wink.com/_/tag?", ad:"", ur:"url", tt:"doctitle", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Netvouz", im:"netvouz", bs:"www.netvouz.com/action/submitBookmark?", ad:"", ur:"url", tt:"title", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"CiteULike", im:"CiteULike", bs:"www.citeulike.org/posturl?", ad:"", ur:"url", tt:"title", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Scuttle", im:"scuttle", bs:"scuttle.org/bookmarks.php/pass?", ad:"action=add", ur:"address", tt:"title", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"FeedMeLinks", im:"feedme", bs:"feedmelinks.com/categorize?", ad:"from=toolbar&amp;op=submit&amp;ref=&amp;version=0.7", ur:"url", tt:"name", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Buddymarks", im:"buddymarks", bs:"buddymarks.com/add_bookmark.php?", ad:"", ur:"bookmark_url", tt:"bookmark_title", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Maple.nu", im:"maple", bs:"www.maple.nu/bookmarks/bookmarklet?", ad:"", ur:"bookmark%5Burl%5D", tt:"bookmark%5Bdescription%5D", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Connotea", im:"connotea", bs:"www.connotea.org/addpopup?", ad:"continue=return", ur:"uri", tt:"title", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Segnalo", im:"segnalo", bs:"segnalo.alice.it/post.html.php?", ad:"", ur:"url", tt:"title", ds:"descr",tg:"",rt:""};
sBm[sBm.length] = {nm:"Backflip", im:"backflip", bs:"www.backflip.com/add_page_pop.ihtml?", ad:"", ur:"url", tt:"title", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"BlinkBits", im:"blinkbits", bs:"www.blinkbits.com/bookmarklets/save.php?", ad:"v=1", ur:"source_url", tt:"title", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Hyperlinkomatic", im:"hyperlinkomatic", bs:"www.hyperlinkomatic.com/lm2/add.html?", ad:"", ur:"LinkUrl", tt:"LinkTitle", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Onlywire", im:"onlywire", bs:"www.onlywire.com/b/?", ad:"", ur:"u", tt:"t", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Give a Link", im:"givealink", bs:"www.givealink.org/cgi-pub/bookmarklet/bookmarkletLogin.cgi?", ad:"", ur:"uri", tt:"title", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Gravee", im:"gravee", bs:"www.gravee.com/account/bookmarkpop?", ad:"", ur:"u", tt:"t", ds:"",tg:"",rt:""};
sBm[sBm.length] = {nm:"Socialdust",im:"socialdust",bs:"www.socialdust.com/linko/addbookmark.php?",ad:"",ur:"url",tt:"title",ds:"desc",tg:"stag",rt:""};
//sBm[sBm.length] = {nm:"Ask Italia", im:"ask", bs:"mioask.it.ask.com/mysearch/QuickWebSave?", ad:"v=1.2&amp;t=webpages", ur:"url", tt:"title", ds:"abstext",tg:"",rt:"returl"};
for (var i = 0; i < sBm.length; i++) {
    var output = '<a href="http://' + sBm[i].bs;
	if (sBm[i].ad.length > 0) {output += sBm[i].ad + '&amp;';}
	if (sBm[i].ur.length > 0) {output += sBm[i].ur + '=' + encodeURIComponent(document.URL);}
	if (sBm[i].tt.length > 0) {output += '&amp;' + sBm[i].tt + '=' + encodeURIComponent(document.title);}
	if (sBm[i].ds.length > 0) {output += '&amp;' + sBm[i].ds + '=' + encodeURIComponent(docdsc);}	
	if (sBm[i].tg.length > 0 && dockw.length > 0) {
           if (sBm[i].tg.substring(0,1) == "s") {var re = /\s/g; dockw = dockw.replace(re,"-"); re = /,/g; dockw = dockw.replace(re," ");}
	output += '&amp;' + sBm[i].tg.substring(1,sBm[i].tg.length) + '=' + encodeURIComponent(dockw);}
	if (sBm[i].rt.length > 0) {output += '&amp;' + sBm[i].rt + '=' + encodeURIComponent(document.URL);}	
	output += '" target="_blank" title="' + sBm[i].nm + '"><img src="/i/sbm/' + sBm[i].im + '.png" alt="Save to ' + sBm[i].nm + ': '+ document.title +'" /></a>';
	document.write(output);}
