//InstallTrigger.js
//Created by: J. Harshbarger (http://www.hypercubed.com/)
//Created on: 
//Description: 

//Updated: 

function doneFn (name, result)
{
   if (result != 0 && result != 999)
     alert("The install didn't seem to work, you could maybe try " +
           "a manual install instead.\nFailure code was " + result + ".");
   else
     alert("Installation complete, please restart your browser.");
}
function install (aEvent)
{
  var xpi = new Object( );
  var params = { URL: aEvent.target.href,
             IconURL: aEvent.target.getAttribute("iconURL"),
             toString: function () { return this.URL; } };
  xpi[aEvent.target.getAttribute("title")] = params;
  InstallTrigger.install(xpi,doneFn);
  return false;
}