case nsIDM.DOWNLOAD_DIRTY: 
function onDownloadDblClick(aEvent){  var item = aEvent.target;  if (item.getAttribute("type") == "download" && aEvent.button == 0) {    var state = parseInt(item.getAttribute("state"));    switch (state) {      case nsIDM.DOWNLOAD_FINISHED:        gDownloadViewController.doCommand("cmd_open");        break;      case nsIDM.DOWNLOAD_DOWNLOADING:        gDownloadViewController.doCommand("cmd_pause");        break;      case nsIDM.DOWNLOAD_PAUSED:        gDownloadViewController.doCommand("cmd_resume");        break;      case nsIDM.DOWNLOAD_CANCELED:      case nsIDM.DOWNLOAD_BLOCKED:      case nsIDM.DOWNLOAD_FAILED:        gDownloadViewController.doCommand("cmd_retry");        break;    }  }}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/a010e72f21f977d463143cd4cd356c163bdacf6e/downloads.js/buggy/toolkit/mozapps/downloads/content/downloads.js