<?xml version="1.0"?> 
<!-- ***** BEGIN LICENSE BLOCK *****
 Version: MPL 1.1/GPL 2.0/LGPL 2.1

 The contents of this file are subject to the Mozilla Public License Version
 1.1 (the "License"); you may not use this file except in compliance with
 the License. You may obtain a copy of the License at
 http://www.mozilla.org/MPL/

 Software distributed under the License is distributed on an "AS IS" basis,
 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 for the specific language governing rights and limitations under the
 License.

 The Original Code is Mozilla Communicator client code, released
 March 31, 1998.

 The Initial Developer of the Original Code is
 Netscape Communications Corporation.
 Portions created by the Initial Developer are Copyright (C) 1998-1999
 the Initial Developer. All Rights Reserved.

 Contributor(s):
   Seth Spitzer <sspitzer@netscape.com>
   Ian Neal <iann_bugzilla@blueyonder.co.uk>

 Alternatively, the contents of this file may be used under the terms of
 either of the GNU General Public License Version 2 or later (the "GPL"),
 or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 in which case the provisions of the GPL or the LGPL are applicable instead
 of those above. If you wish to allow use of your version of this file only
 under the terms of either the GPL or the LGPL, and not to allow others to
 use your version of this file under the terms of the MPL, indicate your
 decision by deleting the provisions above and replace them with the notice
 and other provisions required by the GPL or the LGPL. If you do not delete
 the provisions above, a recipient may use your version of this file under
 the terms of any one of the MPL, the GPL or the LGPL.

 ***** END LICENSE BLOCK ***** -->

<?xml-stylesheet href="chrome://messenger/skin/addressbook/addressbook.css" type="text/css"?> 
<?xml-stylesheet href="chrome://messenger/skin/addressbook/addressPanes.css"
                 type="text/css"?>

<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/contentAreaContextOverlay.xul"?>
<?xul-overlay href="chrome://messenger/content/addressbook/abResultsPaneOverlay.xul"?>
<?xul-overlay href="chrome://messenger/content/addressbook/abCardViewOverlay.xul"?>
<?xul-overlay href="chrome://navigator/content/platformMailOverlay.xul"?>

<!DOCTYPE window [
<!ENTITY % abMainWindowDTD SYSTEM "chrome://messenger/locale/addressbook/abMainWindow.dtd" >
%abMainWindowDTD;
<!ENTITY % abResultsPaneOverlayDTD SYSTEM "chrome://messenger/locale/addressbook/abResultsPaneOverlay.dtd" >
%abResultsPaneOverlayDTD;
<!ENTITY % mailOverlayDTD SYSTEM "chrome://messenger/locale/mailOverlay.dtd">
%mailOverlayDTD;
<!ENTITY % messengerDTD SYSTEM "chrome://messenger/locale/messenger.dtd" >
%messengerDTD;
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
%brandDTD;
]>

<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    id="addressbookWindow"
    height="450"
    width="750"
    title="&addressbookWindow.title;"
    lightweightthemes="true"
    lightweightthemesfooter="status-bar"
    windowtype="mail:addressbook"
    persist="width height screenX screenY sizemode"
    toggletoolbar="true"
    onload="OnLoadAddressBook()"
    onunload="OnUnloadAddressBook()">

  <stringbundleset id="stringbundleset">
    <stringbundle id="bundle_addressBook" src="chrome://messenger/locale/addressbook/addressBook.properties"/>
    <stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/>
    <stringbundle id="bundle_brand" src="chrome://branding/locale/brand.properties"/>
  </stringbundleset>

<script type="application/javascript" src="chrome://messenger/content/jsTreeView.js"/>
<script type="application/javascript" src="chrome://messenger/content/addressbook/abTrees.js"/>
<script type="application/javascript" src="chrome://messenger/content/accountUtils.js"/>
<script type="application/javascript" src="chrome://messenger/content/widgetglue.js"/>
<script type="application/javascript" src="chrome://messenger/content/addressbook/addressbook.js"/>
<script type="application/javascript" src="chrome://messenger/content/addressbook/abCommon.js"/>
<script type="application/javascript" src="chrome://communicator/content/contentAreaClick.js"/>
<script type="application/javascript" src="chrome://global/content/printUtils.js"/>
<script type="application/javascript" src="chrome://messenger/content/msgPrintEngine.js"/>

  <commandset id="addressBook">
    <commandset id="CommandUpdate_AddressBook"
                commandupdater="true"
                events="focus,addrbook-select"
                oncommandupdate="CommandUpdate_AddressBook()"/>
    <commandset id="selectEditMenuItems"/> 
    <commandset id="undoEditMenuItems"/>
    <commandset id="globalEditMenuItems"/>
    <command id="cmd_newNavigator"/>
    <command id="cmd_newEditor"/>
    <command id="cmd_newcard" oncommand="AbNewCard();"/>
    <command id="cmd_newlist" oncommand="AbNewList();"/>
    <command id="cmd_newMessage" oncommand="AbNewMessage();"/>
    <command id="cmd_newim" oncommand="AbIMSelected()"/>
    <command id="cmd_printSetup" oncommand="PrintUtils.showPageSetup()"/>
    <command id="cmd_printCard" oncommand="AbPrintCard()"/>
    <command id="cmd_printPreviewCard" oncommand="AbPrintPreviewCard()"/>
    <command id="cmd_printAddressBook" oncommand="AbPrintAddressBook()"/>
    <command id="cmd_printPreviewAddressBook" oncommand="AbPrintPreviewAddressBook()"/>
    <command id="cmd_quit"/>
    <command id="cmd_close" oncommand="AbClose()"/>
    <command id="cmd_properties" oncommand="goDoCommand('button_edit');"/>
    <command id="cmd_undo"/>
    <command id="cmd_redo"/>
    <command id="cmd_copy"/>
    <command id="cmd_paste"/>
    <command id="cmd_cut"/>
    <command id="cmd_delete"
             valueAddressBook="&deleteAbCmd.label;"
             valueCard="&deleteContactCmd.label;"
             valueCards="&deleteContactsCmd.label;"
             valueList="&deleteListCmd.label;"
             valueLists="&deleteListsCmd.label;"
             valueItems="&deleteItemsCmd.label;"/>
    <command id="cmd_selectAll"/>
    <command id="button_delete" oncommand="goDoCommand('button_delete');"/>
    <command id="cmd_swapFirstNameLastName" oncommand="AbSwapFirstNameLastName()"/>
    <commandset id="tasksCommands"/>
    <command id="cmd_CustomizeToolbars"
             oncommand="goCustomizeToolbar(getAbToolbox());"/>
  </commandset>

<broadcasterset id="abBroadcasters">
  <!-- Edit Menu -->
  <broadcaster id="Communicator:WorkMode"/>
</broadcasterset>

<keyset id="tasksKeys">
  <!-- File Menu -->
  <key id="key_newNavigator"/>
  <key id="key_newBlankPage"/>
  <key id="key_newMessage"
       key="&newMessageCmd.key;"
       command="cmd_newMessage"
       modifiers="accel"/>
  <key id="key_printCard" key="&printContactViewCmd.key;"
       command="cmd_printCard" modifiers="accel"/>
  <key id="key_close"/>
  <key id="key_quit"/>
  <!-- Edit Menu -->
  <key id="key_delete"/>
  <key id="key_delete2"/> <!-- secondary delete key -->
  <key id="key_undo"/>
  <key id="key_redo"/>
  <key id="key_cut"/>
  <key id="key_copy"/>
  <key id="key_paste"/>
  <key id="key_selectAll"/>
  <key id="key_properties" key="&propertiesCmd.key;" command="cmd_properties" modifiers="accel"/>

  <!-- Tab/F6 Keys -->
  <key keycode="VK_TAB" oncommand="SwitchPaneFocus(event);" modifiers="control,shift"/>
  <key keycode="VK_TAB" oncommand="SwitchPaneFocus(event);" modifiers="control"/>
  <key keycode="VK_F6" oncommand="SwitchPaneFocus(event);" modifiers="control,shift"/>
  <key keycode="VK_F6" oncommand="SwitchPaneFocus(event);" modifiers="control"/>
  <key keycode="VK_F6" oncommand="SwitchPaneFocus(event);" modifiers="shift"/>
  <key keycode="VK_F6" oncommand="SwitchPaneFocus(event);"/>

  <!-- Search field -->
  <key key="&focusSearchInput.key;"
       modifiers="accel"
       oncommand="focusElement(document.getElementById('searchInput'));"/>

</keyset>

<menupopup id="dirTreeContext">
  <menuitem id="dirTreeContext-properties"
            label="&editItemButton.label;"
            accesskey="&editItemButton.accesskey;"
            command="cmd_properties"/>
  <menuseparator/>
  <menuitem id="dirTreeContext-newcard"
            label="&newContactButton.label;"
            accesskey="&newContactButton.accesskey;"
            command="cmd_newcard"/>
  <menuitem id="dirTreeContext-newlist"
            label="&newlistButton.label;"
            accesskey="&newlistButton.accesskey;"
            command="cmd_newlist"/>
  <menuseparator/>
  <menuitem id="dirTreeContext-delete"
            label="&deleteItemButton.label;"
            accesskey="&deleteItemButton.accesskey;"
            command="button_delete"/>
</menupopup>

<menupopup id="abResultsTreeContext">
  <menuitem id="abResultsTreeContext-properties"
            label="&editItemButton.label;"
            accesskey="&editItemButton.accesskey;"
            command="cmd_properties"/>
  <menuseparator/>
  <menuitem id="abResultsTreeContext-newmessage"
            label="&newmsgButton.label;"
            accesskey="&newmsgButton.accesskey;"
            command="cmd_newMessage"/>
  <menuitem id="abResultsTreeContext-newim"
            label="&newimButton.label;"
            accesskey="&newimButton.accesskey;"
            command="cmd_newim"/>
  <menuseparator/>
  <menuitem id="abResultsTreeContext-delete"
            label="&deleteItemButton.label;"
            accesskey="&deleteItemButton.accesskey;"
            command="button_delete"/>
</menupopup>

<menupopup id="toolbar-context-menu"/>

<toolbox id="ab-toolbox"
         mode="full"
         defaultmode="full"
         class="toolbox-top">
  <toolbar type="menubar"
           id="addrbook-toolbar-menubar2"
           class="chromeclass-menubar"
           persist="collapsed"
           grippytooltiptext="&menuBar.tooltip;"
           customizable="true"
           defaultset="menubar-items"
           mode="icons"
           iconsize="small"
           defaultmode="icons"
           defaulticonsize="small"
           context="toolbar-context-menu">
    <toolbaritem id="menubar-items"
                 class="menubar-items"
                 align="center">
      <menubar id="ab-menubar">
        <menu id="menu_File">
            <menupopup id="menu_FilePopup">
                <menu id="menu_New">
                    <menupopup id="menu_NewPopup">
                      <menuitem label="&newContact.label;"
                                accesskey="&newContact.accesskey;"
                                oncommand="AbNewCard();"/>
                      <menuitem label="&newListCmd.label;" accesskey="&newListCmd.accesskey;" command="cmd_newlist"/>
                      <menuitem label="&newAddressBookCmd.label;" accesskey="&newAddressBookCmd.accesskey;" oncommand="AbNewAddressBook()"/>
                      <menuitem label="&newLDAPDirectoryCmd.label;" id="addLDAP" accesskey="&newLDAPDirectoryCmd.accesskey;" oncommand="AbNewLDAPDirectory()"/>
                      <menuseparator/>
                      <menuitem id="menu_newNavigator"/>
                      <menuitem id="menu_newMessage"
                                label="&newMessageCmd.label;"
                                accesskey="&newMessageCmd.accesskey;"
                                key="key_newMessage"
                                command="cmd_newMessage"/>
                      <menuitem id="menu_newEditor"/>
                    </menupopup>
                </menu>
                <menuitem id="menu_close"/>
                <menuseparator/>
        <menuitem id="menu_printSetup"/>
        <menuitem id="printPreviewMenuItem"
                  label="&printPreviewContactViewCmd.label;"
                  accesskey="&printPreviewContactViewCmd.accesskey;"
                  command="cmd_printPreviewCard"/>
        <menuitem id="printPreviewAddressBook" label="&printPreviewAddressBook.label;" accesskey="&printPreviewAddressBook.accesskey;" command="cmd_printPreviewAddressBook"/>
              <menuitem id="printMenuItem" label="&printContactViewCmd.label;"
                        accesskey="&printContactViewCmd.accesskey;"
                        key="key_printCard" command="cmd_printCard"/>
              <menuitem id="printAddressBook" label="&printAddressBook.label;" accesskey="&printAddressBook.accesskey;" command="cmd_printAddressBook"/>
            </menupopup>
        </menu>
        
        <menu id="menu_Edit">
          <menupopup id="menu_EditPopup">
            <menuitem id="menu_undo"/>
            <menuitem id="menu_redo"/>
            <menuseparator/>
            <menuitem id="menu_cut"/>
            <menuitem id="menu_copy"/>
            <menuitem id="menu_paste"/>
            <menuitem id="menu_delete"/>
            <menuseparator/>
            <menuitem id="menu_selectAll"/>
            <menuseparator/>
            <!-- LOCALIZATION NOTE: set "hideSwapFnLnUI" to false in .dtd to enable the UI -->
            <menuitem label="&swapFirstNameLastNameCmd.label;"
                      accesskey="&swapFirstNameLastNameCmd.accesskey;"
                      hidden="&hideSwapFnLnUI;"
                      command="cmd_swapFirstNameLastName"/>
            <menuitem label="&propertiesCmd.label;"
                      accesskey="&propertiesCmd.accesskey;"
                      key="key_properties"
                      command="cmd_properties"/>
            <menuitem id="menu_preferences"
                      oncommand="goPreferences('addressing_pane')"/>
          </menupopup>
        </menu>
        <menu id="menu_View">
            <menupopup id="menu_View_Popup">
                <menu id="menu_Toolbars">
                    <menupopup id="view_toolbars_popup"
                               onpopupshowing="onViewToolbarsPopupShowing(event)"
                               oncommand="onViewToolbarCommand(event);">
                        <menuitem id="menu_showTaskbar"/>
                        <menuseparator/>
                        <menuitem id="menu_showCardPane"
                                  label="&showCardPane.label;"
                                  accesskey="&showCardPane.accesskey;"
                                  oncommand="goToggleSplitter('results-splitter', 'menu_showCardPane')"
                                  checked="true" type="checkbox"/>
                    </menupopup>
                </menu>
                <menuseparator/>
                <menu id="menu_ShowNameAs" label="&menu_ShowNameAs.label;" accesskey="&menu_ShowNameAs.accesskey;">
                    <menupopup id="menuShowNameAsPopup">
                        <menuitem type="radio" name="shownameas"
                                  id="firstLastCmd"
                  label="&firstLastCmd.label;"
                                  accesskey="&firstLastCmd.accesskey;"
                                  oncommand="SetNameColumn('firstLastCmd')"/>
                        <menuitem type="radio" name="shownameas"
                                  id="lastFirstCmd"
                  label="&lastFirstCmd.label;"
                                  accesskey="&lastFirstCmd.accesskey;"
                                  oncommand="SetNameColumn('lastFirstCmd')"/>
                        <menuitem type="radio" name="shownameas"
                                  id="displayNameCmd"
                  label="&displayNameCmd.label;"
                                  accesskey="&displayNameCmd.accesskey;"
                                  oncommand="SetNameColumn('displayNameCmd')"/>
                    </menupopup>
                </menu>
        <menu id="sortMenu" label="&sortMenu.label;" accesskey="&sortMenu.accesskey;">
                    <menupopup id="sortMenuPopup" onpopupshowing="InitViewSortByMenu()">
            <menuitem label="&GeneratedName.label;" 
                                  id="cmd_SortByGeneratedName"
                                  accesskey="&GeneratedName.accesskey;"
                                  oncommand="SortResultPane('GeneratedName');" name="sortas" type="radio" checked="true"/>
            <menuitem label="&PrimaryEmail.label;"
                                  id="cmd_SortByPrimaryEmail"
                                  accesskey="&PrimaryEmail.accesskey;"
                                  oncommand="SortResultPane('PrimaryEmail');" name="sortas" type="radio" checked="true"/>
            <menuitem label="&ScreenName.label;"
                                  id="cmd_SortBy_AimScreenName"
                                  accesskey="&ScreenName.accesskey;"
                                  oncommand="SortResultPane('_AimScreenName');" name="sortas" type="radio" checked="true"/>
            <menuitem label="&Company.label;"
                                  id="cmd_SortByCompany"
                                  accesskey="&Company.accesskey;"
                                  oncommand="SortResultPane('Company');" name="sortas" type="radio" checked="true"/>
            <!-- LOCALIZATION NOTE:
             Fields for phonetic are disabled as default and can be enabled by 
             editing "mail.addr_book.show_phonetic_fields"    
             -->
            <menuitem label="&_PhoneticName.label;"
                                  id="cmd_SortBy_PhoneticName"
                                  hidden="true"
                                  accesskey="&_PhoneticName.accesskey;"
                                  oncommand="SortResultPane('_PhoneticName');" name="sortas" type="radio" checked="true"/>
            <menuitem label="&NickName.label;"
                                  id="cmd_SortByNickName"
                                  accesskey="&NickName.accesskey;"
                                  oncommand="SortResultPane('NickName');" name="sortas" type="radio" checked="true"/>
            <menuitem label="&SecondEmail.label;"
                                  id="cmd_SortBySecondEmail"
                                  accesskey="&SecondEmail.accesskey;"
                                  oncommand="SortResultPane('SecondEmail');" name="sortas" type="radio" checked="true"/>
            <menuitem label="&Department.label;"
                                  id="cmd_SortByDepartment"
                                  accesskey="&Department.accesskey;"
                                  oncommand="SortResultPane('Department');" name="sortas" type="radio" checked="true"/>
            <menuitem label="&JobTitle.label;"
                                  id="cmd_SortByJobTitle"
                                  accesskey="&JobTitle.accesskey;"
                                  oncommand="SortResultPane('JobTitle');" name="sortas" type="radio" checked="true"/>
            <menuitem label="&CellularNumber.label;"
                                  id="cmd_SortByCellularNumber"
                                  accesskey="&CellularNumber.accesskey;"
                                  oncommand="SortResultPane('CellularNumber');" name="sortas" type="radio" checked="true"/>
            <menuitem label="&PagerNumber.label;"
                                  id="cmd_SortByPagerNumber"
                                  accesskey="&PagerNumber.accesskey;"
                                  oncommand="SortResultPane('PagerNumber');" name="sortas" type="radio" checked="true"/>
            <menuitem label="&FaxNumber.label;"
                                  id="cmd_SortByFaxNumber"
                                  accesskey="&FaxNumber.accesskey;"
                                  oncommand="SortResultPane('FaxNumber');" name="sortas" type="radio" checked="true"/>
            <menuitem label="&HomePhone.label;"
                                  id="cmd_SortByHomePhone"
                                  accesskey="&HomePhone.accesskey;"
                                  oncommand="SortResultPane('HomePhone');" name="sortas" type="radio" checked="true"/>
            <menuitem label="&WorkPhone.label;"
                                  id="cmd_SortByWorkPhone"
                                  accesskey="&WorkPhone.accesskey;"
                                  oncommand="SortResultPane('WorkPhone');" name="sortas" type="radio" checked="true"/>
            <menuseparator/>
            <menuitem id="sortAscending" type="radio" name="sortdirection" label="&sortAscending.label;" accesskey="&sortAscending.accesskey;" oncommand="AbSortAscending()"/>
            <menuitem id="sortDescending" type="radio" name="sortdirection" label="&sortDescending.label;" accesskey="&sortDescending.accesskey;" oncommand="AbSortDescending()"/>
                    </menupopup>
                </menu>
            </menupopup>
        </menu>       
        <menu id="tasksMenu">
          <menupopup id="taskPopup">
            <menuitem label="&searchAddressesCmd.label;" 
                      accesskey="&searchAddressesCmd.accesskey;"
                      id="menu_search_addresses" 
                      oncommand="onAdvancedAbSearch();"/>
            <menuitem label="&importCmd.label;" accesskey="&importCmd.accesskey;" oncommand="toImport()"/>
            <menuitem label="&exportCmd.label;" accesskey="&exportCmd.accesskey;" oncommand="AbExport()"/>
            <menuseparator/>
          </menupopup>
        </menu>

        <menu id="windowMenu"/>
        <menu id="menu_Help"/>
        <spacer flex="1"/>
      </menubar>
    </toolbaritem>
  </toolbar>
  <toolbar class="chromeclass-toolbar toolbar-primary"
           id="ab-bar2"
           persist="collapsed"
           customizable="true"
           grippytooltiptext="&addressbookToolbar.tooltip;"
           toolbarname="&showAbToolbarCmd.label;"
           accesskey="&showAbToolbarCmd.accesskey;"
           defaultset="button-newcard,button-newlist,separator,button-editcard,button-newmessage,button-newim,button-abdelete,spring,searchBox,throbber-box"
           context="toolbar-context-menu">
    <toolbarbutton id="button-newcard"
                   class="toolbarbutton-1"
                   label="&newContactButton.label;"
                   tooltiptext="&newContactButton.tooltip;"
                   removable="true"
                   oncommand="AbNewCard();"/>
    <toolbarbutton id="button-newlist"
                   class="toolbarbutton-1"
                   label="&newlistButton.label;"
                   tooltiptext="&newlistButton.tooltip;"
                   removable="true"
                   oncommand="AbNewList();"/>
    <toolbarbutton id="button-editcard"
                   class="toolbarbutton-1"
                   label="&editItemButton.label;"
                   tooltiptext="&editItemButton.tooltip;"
                   removable="true"
                   oncommand="goDoCommand('button_edit');"/>
    <toolbarbutton id="button-newmessage"
                   class="toolbarbutton-1"
                   label="&newmsgButton.label;"
                   tooltiptext="&newmsgButton.tooltip;"
                   removable="true"
                   oncommand="AbNewMessage();"/>
    <toolbarbutton id="button-newim"
                   class="toolbarbutton-1"
                   label="&newIM.label;"
                   tooltiptext="&newIM.tooltip;"
                   removable="true"
                   oncommand="AbIMSelected();"/>
    <toolbarbutton id="button-abdelete"
                   class="toolbarbutton-1"
                   label="&deleteItemButton.label;"
                   tooltiptext="&deleteItemButton.tooltip;"
                   removable="true"
                   oncommand="goDoCommand('button_delete');"/>
    <toolbaritem id="searchBox"
                 title="&searchBox.title;"
                 removable="true"
                 align="center"
                 class="chromeclass-toolbar-additional">
      <textbox id="searchInput"
               type="search"
               aria-controls="abResultsTree"
               placeholder="&searchNameAndEmail.placeholder;"
               clickSelectsAll="true"
               oncommand="onEnterInSearchBar();"
               onkeypress="if (event.keyCode == KeyEvent.DOM_VK_RETURN) this.select();"/>
    </toolbaritem>

    <toolbaritem id="throbber-box"
                 removable="true"
                 align="center">
      <button id="navigator-throbber"
              oncommand="goClickThrobber('addressbook.throbber.url', event)"
              onclick="checkForMiddleClick(this, event);"
              tooltiptext="&throbber.tooltip;"/>
    </toolbaritem>
  </toolbar>
  <toolbarpalette id="AbToolbarPalette"/>
  <toolbarset id="customToolbars" context="toolbar-context-menu"/>
</toolbox>

  <!-- The main address book three pane -->
  <hbox flex="1">
    <vbox id="dirTreeBox" persist="width collapsed">
      <tree id="dirTree"
            class="abDirectory plain"
            seltype="single"
            style="min-width: 150px;"
            flex="1"
            persist="width"
            hidecolumnpicker="true"
            context="dirTreeContext"
            onselect="DirPaneSelectionChange(); document.commandDispatcher.updateCommands('addrbook-select');"
            ondblclick="DirPaneDoubleClick(event);"
            onclick="DirPaneClick(event);"
            onblur="goOnEvent(this, 'blur');">
        <treecols>
          <treecol id="DirCol"
                   flex="1"
                   primary="true"
                   label="&dirTreeHeader.label;"
                   crop="center"
                   persist="width"/>
        </treecols>
        <treechildren/>
      </tree>
    </vbox>

    <splitter id="dirTree-splitter" collapse="before" persist="state">
      <grippy/>
    </splitter>
    
    <vbox flex="1" style="min-width:100px">

      <!-- results pane -->
      <tree id="abResultsTree" context="abResultsTreeContext" flex="1" />
      
      <splitter id="results-splitter" collapse="after" persist="state">
        <grippy/>
      </splitter>
      
      <!-- card view -->
      <hbox id="CardViewOuterBox" flex="1" persist="height">
        <vbox id="CardViewBox" style="height:170px; min-height:1px; min-width:1px"/>
      </hbox>
    </vbox>
  </hbox>

  <panel id="customizeToolbarSheetPopup"/>
  <statusbar id="status-bar" class="chromeclass-status">
    <statusbarpanel id="component-bar"/>
    <statusbarpanel id="statusText" flex="1" value="&statusText.label;"/>  
    <statusbarpanel id="offline-status" class="statusbarpanel-iconic"/>           
  </statusbar>  
</window>
