rem: visible = HandleLink(data.cvEmail2, card.secondEmail, data.cvEmail2Box, "mailto:" + card.secondEmail) || visible; 
add: visible = HandleLink(data.cvScreenname, zScreenName, card.aimScreenName, data.cvScreennameBox, "aim:goim?screenname=" + card.aimScreenName) || visible;  visible = HandleLink(data.cvEmail2, zSecondaryEmail, card.secondEmail, data.cvEmail2Box, "mailto:" + card.secondEmail) || visible; 
context: function DisplayCardViewPane(card){  var generatedName = gAddrbookSession.generateNameFromCard(card, gPrefs.getIntPref("mail.addr_book.lastnamefirst"));		  var data = top.cvData;  var visible;  var titleString;  if (generatedName == "")    titleString = card.primaryEmail;  // if no generatedName, use email  else    titleString = generatedName;  // set fields in card view pane  if (card.isMailList)    cvSetNode(data.CardTitle, gAddressBookBundle.getFormattedString("viewListTitle", [generatedName]));  else    cvSetNode(data.CardTitle, gAddressBookBundle.getFormattedString("viewCardTitle", [titleString]));		// Name section  cvSetNode(data.cvhName, titleString);	cvSetNodeWithLabel(data.cvNickname, zNickname, card.nickName);  if (card.isMailList) {    // email1 and display name always hidden when a mailing list.    cvSetVisible(data.cvEmail1Box, false);    cvSetVisible(data.cvDisplayName, false);    visible = HandleLink(data.cvListName, card.displayName, data.cvListNameBox, "mailto:" + escape(GenerateAddressFromCard(card))) || visible;  }  else {     // listname always hidden if not a mailing list    cvSetVisible(data.cvListNameBox, false);    cvSetNodeWithLabel(data.cvDisplayName, zDisplayName, card.displayName);    visible = HandleLink(data.cvEmail1, card.primaryEmail, data.cvEmail1Box, "mailto:" + card.primaryEmail) || visible;  }  visible = HandleLink(data.cvEmail2, card.secondEmail, data.cvEmail2Box, "mailto:" + card.secondEmail) || visible;	// Home section	visible = cvSetNode(data.cvHomeAddress, card.homeAddress);	visible = cvSetNode(data.cvHomeAddress2, card.homeAddress2) || visible;	visible = cvSetCityStateZip(data.cvHomeCityStZip, card.homeCity, card.homeState, card.homeZipCode) || visible;	visible = cvSetNode(data.cvHomeCountry, card.homeCountry) || visible;        if (visible) {          var homeMapItUrl = CreateMapItURL(card.homeAddress, card.homeAddress2, card.homeCity, card.homeState, card.homeZipCode, card.homeCountry);          if (homeMapItUrl) {	    cvSetVisible(data.cvbHomeMapItBox, true);            data.cvHomeMapIt.setAttribute('url', homeMapItUrl);          }          else {	    cvSetVisible(data.cvbHomeMapItBox, false);          }        }        else {	  cvSetVisible(data.cvbHomeMapItBox, false);        }  visible = HandleLink(data.cvHomeWebPage, card.webPage2, data.cvHomeWebPageBox, card.webPage2) || visible;	cvSetVisible(data.cvhHome, visible);	cvSetVisible(data.cvbHome, visible);  if (card.isMailList) {    // Description section	  visible = cvSetNode(data.cvDescription, card.notes)  	cvSetVisible(data.cvbDescription, visible);    // Addresses section	  visible = cvAddAddressNodes(data.cvAddresses, card.mailListURI);  	cvSetVisible(data.cvbAddresses, visible);     // Other section, not shown for mailing lists.    cvSetVisible(data.cvbOther, false);  }  else {	// Other section	visible = cvSetNodeWithLabel(data.cvCustom1, zCustom1, card.custom1);	visible = cvSetNodeWithLabel(data.cvCustom2, zCustom2, card.custom2) || visible;	visible = cvSetNodeWithLabel(data.cvCustom3, zCustom3, card.custom3) || visible;	visible = cvSetNodeWithLabel(data.cvCustom4, zCustom4, card.custom4) || visible;	visible = cvSetNode(data.cvNotes, card.notes) || visible;	cvSetVisible(data.cvhOther, visible);	cvSetVisible(data.cvbOther, visible);    // hide description section, not show for non-mailing lists  	cvSetVisible(data.cvbDescription, false);    // hide addresses section, not show for non-mailing lists  	cvSetVisible(data.cvbAddresses, false);  }	// Phone section	visible = cvSetNodeWithLabel(data.cvPhWork, zWork, card.workPhone);	visible = cvSetNodeWithLabel(data.cvPhHome, zHome, card.homePhone) || visible;	visible = cvSetNodeWithLabel(data.cvPhFax, zFax, card.faxNumber) || visible;	visible = cvSetNodeWithLabel(data.cvPhCellular, zCellular, card.cellularNumber) || visible;	visible = cvSetNodeWithLabel(data.cvPhPager, zPager, card.pagerNumber) || visible;	cvSetVisible(data.cvhPhone, visible);	cvSetVisible(data.cvbPhone, visible);	// Work section	visible = cvSetNode(data.cvJobTitle, card.jobTitle);	visible = cvSetNode(data.cvDepartment, card.department) || visible;	visible = cvSetNode(data.cvCompany, card.company) || visible;                var addressVisible = cvSetNode(data.cvWorkAddress, card.workAddress);	addressVisible = cvSetNode(data.cvWorkAddress2, card.workAddress2) || addressVisible;	addressVisible = cvSetCityStateZip(data.cvWorkCityStZip, card.workCity, card.workState, card.workZipCode) || addressVisible;	addressVisible = cvSetNode(data.cvWorkCountry, card.workCountry) || addressVisible;        if (addressVisible) {          var workMapItUrl = CreateMapItURL(card.workAddress, card.workAddress2, card.workCity, card.workState, card.workZipCode, card.workCountry);          data.cvWorkMapIt.setAttribute('url', workMapItUrl);          if (workMapItUrl) {	    cvSetVisible(data.cvbWorkMapItBox, true);            data.cvWorkMapIt.setAttribute('url', workMapItUrl);          }          else {	    cvSetVisible(data.cvbWorkMapItBox, false);          }        }        else {	  cvSetVisible(data.cvbWorkMapItBox, false);        }        visible = HandleLink(data.cvWorkWebPage, card.webPage1, data.cvWorkWebPageBox, card.webPage1) || addressVisible || visible;	cvSetVisible(data.cvhWork, visible);	cvSetVisible(data.cvbWork, visible);	// make the card view box visible	cvSetVisible(top.cvData.CardViewBox, true);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b44576ce9e450596fbfdea60459ace3601988c6f/abCardViewOverlay.js/buggy/mailnews/addrbook/resources/content/abCardViewOverlay.js