/**
 *  Tries to add title attribs to edit icon table cells. Expects:
 *    table css class itemEditContent
 *    four icons: edit, delete, and up and down in hierarchy -- in that order
 */
try {
  var tables = document.getElementsByTagName("table");
  var iconTds;

  for (var i = 0; i < tables.length; i++) {
    if (tables[i].className == "itemEditContent") {
      iconTds = tables[i].getElementsByTagName("td");
      for (var j = 0; j < iconTds.length; j++) {
        switch (j) {
          case 0:
            iconTds[j].setAttribute("title",
              "Edit item");
            break;
          case 1:
            iconTds[j].setAttribute("title",
              "Delete item");
            break;
          case 2:
            iconTds[j].setAttribute("title",
              "Move item up in hierarchy");
            break;
          case 3:
            iconTds[j].setAttribute("title",
              "Move item down in hierarchy");
            break;
        }
      }
    }
  }
}
catch(e) {}
