CmdUtils.CreateCommand({
  name: "submit-social",
  homepage: "http://www.ignitesocialmedia.com/",
  author: { name: "Brian Chappell", email: "brian@ignitesocialmedia.com"},
  contributors: ["Joe Hall"],
  license: "MPL",
  description: "Submits content to Digg, StumbleUpon, and Reddit.",
  help: "When viewing a page command can submit to Digg, StumbleUpon, and Reddit.",
    execute: function() {  
    var document = CmdUtils.getDocument();
    var window = CmdUtils.getWindow();
    var des = CmdUtils.getSelection();
    var durl='http://digg.com/submit?phase=2&url=' + window.location + '&title=' + document.title + '&bodytext=' + des;
    var surl='http://www.stumbleupon.com/submit?url=' + window.location + '&title=' + document.title;
    var rurl='http://www.reddit.com/submit?url=' + window.location;
    Utils.openUrlInBrowser(rurl)
    Utils.openUrlInBrowser(surl)
    Utils.openUrlInBrowser(durl)
  }
})