var urls = new Array(8);
urls [0] = "http://www.google.com/bookmarks/mark?op=add&bkmk=__URL__&title=__TITLE__";
urls [1] = "http://www.linkedin.com/cws/share?url=__URL__&title=__TITLE__";
urls [2] = "http://del.icio.us/post?url=__URL__&title=__TITLE__";
urls [3] = "http://identi.ca/notice/new?status_textarea=__TITLE__:+__URL__";
urls [4] = "http://www.facebook.com/share.php?u=__URL__&t=__TITLE__";
urls [5] = "http://digg.com/submit?url=__URL__&title=__TITLE__";
urls [6] = "https://twitter.com/share?text=__TITLE__&url=__URL__";
urls [7] = "http://www.reddit.com/submit?url=__URL__";

url   = encodeURIComponent (location.href);
title = document.title;
title = title.split("'").join("\'");
title = title.split("\"").join("&quot;");
title = encodeURIComponent(title);

function openSharer(id)
{
   uri = urls[id].split("__URL__").join(url);
   uri = uri.split("__TITLE__").join(title);
   window.open(uri, '_blank', "height=350, width=500");
}

function openFlattr (thing_id)
{
    uri = 'http://flattr.com/thing/' + thing_id + '/';
    window.open(uri);
}

 jQuery(document).ready(function() {
   jQuery("span#open-share-buttons").click(function() {
     jQuery("div#share-buttons-options").toggle('slow');
   });
 });

