function addTo(n)
{
  var loc = "";
  if (n == 1) // digg
    {
      loc = 'http://digg.com/submit?phase=2&url='+encodeURIComponent(document.location.href);
    }
  else if (n == 2) // delicious
    {
      loc = 'http://del.icio.us/post?v=2&url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title);
    }
  else if (n == 3) // furl
    {
      loc = 'http://www.furl.net/storeIt.jsp?u='+encodeURIComponent(document.location.href)+'&t='+encodeURIComponent(document.title);
    }
  else if (n == 4) // google
    {
      loc = 'http://www.google.com/ig/add?feedurl='+encodeURIComponent(document.location.href);
    }
else if (n == 5) // facebook
    {
      loc = 'http://www.facebook.com/share.php?u='+encodeURIComponent(document.location.href);
    }
else if (n == 6) // stumbleUpon
    {
      loc = 'http://www.stumbleupon.com/submit?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title);
    }


  if (loc.length > 0)
    {
      window.open(loc);
    }
}

document.write('<span style="font-family:arial;"><b>Share</b>: <a href="#" onclick="addTo(1);return false;">digg</a> <a href="#" onclick="addTo(3);return false;">furl</a> <a href="#" onclick="addTo(2);return false;">del.icio.us</a> <a href="#" onclick="addTo(5);return false;">facebook</a> <a href="#" onclick="addTo(6);return false;">stumbleUpon</a></span>');
