rem: var newMailNotificationAlertUI = document.getElementById("newMailNotificationAlert"); newMailNotificationAlertUI.hidden = !("@mozilla.org/alerts-service;1" in Components.classes); 
add: var downloadDoneNotificationAlertUI = document.getElementById("finishedNotificationAlert"); downloadDoneNotificationAlertUI.hidden = !("@mozilla.org/alerts-service;1" in Components.classes); 
context: function Startup(){  PlaySoundCheck();  // if we don't have the alert service, hide the pref UI for using alerts to notify on new mail  // see bug #158711  var newMailNotificationAlertUI = document.getElementById("newMailNotificationAlert");  newMailNotificationAlertUI.hidden = !("@mozilla.org/alerts-service;1" in Components.classes);}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/76f1d77afdbe91cdd0101554c436ae19749ab6ef/pref-download.js/clean/xpfe/components/prefwindow/resources/content/pref-download.js