else { var url = gExtensionsView.selectedItem.getAttribute("previewImage"); if (url) { previewImageDeck.selectedIndex = 2; previewImage.setAttribute("src", url); } else { previewImageDeck.selectedIndex = 1; if (previewImage.hasAttribute("src")) previewImage.removeAttribute("src"); } } } else if (gView == "updates") { UpdateInfoLoader.cancelLoad(); if (!gExtensionsView.selectedItem) previewImageDeck.selectedIndex = 3; else if (!gExtensionsView.selectedItem.hasAttribute("availableUpdateInfo")) previewImageDeck.selectedIndex = 4; else UpdateInfoLoader.loadInfo(gExtensionsView.selectedItem.getAttribute("availableUpdateInfo")); 
function onAddonSelect(aEvent){  var viewButton = document.getElementById("viewGroup").selectedItem;  if (viewButton.hasAttribute("persist") && gExtensionsView.selectedItem)    viewButton.setAttribute("last-selected", gExtensionsView.selectedItem.id);  if (!document.getElementById("themePreviewArea").hidden) {    var previewImageDeck = document.getElementById("previewImageDeck");    var previewImage = document.getElementById("previewImage");    if (!gExtensionsView.selectedItem) {      previewImageDeck.setAttribute("selectedIndex", "0");      if (previewImage.hasAttribute("src"))        previewImage.removeAttribute("src");    }    else {      var url = gExtensionsView.selectedItem.getAttribute("previewImage");      if (url) {        previewImageDeck.setAttribute("selectedIndex", "2");        previewImage.setAttribute("src", url);      }      else {        previewImageDeck.setAttribute("selectedIndex", "1");        if (previewImage.hasAttribute("src"))          previewImage.removeAttribute("src");      }    }  }}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/1359bb6e2c966975b2fc3d1bb3de76184b3ecca3/extensions.js/buggy/toolkit/mozapps/extensions/content/extensions.js