function whenDone(name, result) {

  if ((result != 0) && (result != 999)) {
     // something went wrong
     alert('An error occured installing the package ' + name + '\n' +
           'The error code was ' + result);
  } // aieee!

} // whenDone

function install_foafer() {
/*
  var xpis = {'jsLib':'http://downloads.mozdev.org/jslib/xpi/jslib_current.xpi', 
              'foafer':'http://peoplesdns.com/foafer/foafer.xpi'};
*/
  var xpis = {'foafer':'http://peoplesdns.com/foafer/foafer.xpi'};
  InstallTrigger.install(xpis, whenDone);

} // install_mozcc

