function buildContextMenu(aEvent){  if (aEvent.target.id != "downloadContextMenu")    return false;      var popup = document.getElementById("downloadContextMenu");  while (popup.hasChildNodes())    popup.removeChild(popup.firstChild);    if (gDownloadsView.selectedItem) {    var idx = parseInt(gDownloadsView.selectedItem.getAttribute("state"));    if (idx < 0)      idx = 0;        var menus = gContextMenus[idx];    for (var i = 0; i < menus.length; ++i)      popup.appendChild(document.getElementById(menus[i]).cloneNode(true));        return true;  }    return false;}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/39be0419a4a695ce67977c967201261ea171190a/downloads.js/clean/toolkit/mozapps/downloads/content/downloads.js