CmdUtils.CreateCommand({
  names: ["virus"],
  icon: "http://www.bitdefender.com/favicon.ico",
  description: "Searches bitdefender.com for a virus.",
  help: "Type <code>virus [virus name]</code>",
  author: {name: "Manuel Enache", email: "denache@bitdefender.com"},
  license: "GPL",
  homepage: "http://www.bitdefender.com/",
  
  arguments: [{role: "object",
               nountype: noun_arb_text,
               label: "virus name"}],
    
  preview: function preview( pblock, arguments ) {
    var text = arguments.object.text || _("any virus");
    pblock.innerHTML = _("Find information about ${text}", {text: text});
  },

  execute: function(arguments) {
    var url = "http://www.bitdefender.com/site/Search/?mod=7&do=Search&query={QUERY}&icid=ubiquity"
    var query = arguments.object.text;
    var urlString = url.replace("{QUERY}", query);
    Utils.openUrlInBrowser(urlString);
  }
});
