<?xml version="1.0"?>

<!--
   The contents of this file are subject to the Netscape 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/NPL/
    
   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 Netscape are
   Copyright (C) 1998-1999 Netscape Communications Corporation. All
   Rights Reserved.
   
   Contributor(s): 
     Ben Goodger <ben@netscape.com>
  -->

<?xul-overlay href="chrome://communicator/content/pref/platformPrefOverlay.xul"?>

<!DOCTYPE window SYSTEM "chrome://communicator/locale/pref/preftree.dtd" >

<overlay id="prefTreeOverlay"
  xmlns:html="http://www.w3.org/1999/xhtml"
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<script>
<![CDATA[
  _elementIDs = []; // hack
]]>
</script>
  
<tree id="prefsTree" 
      onselect="if( hPrefWindow ) hPrefWindow.switchPage();">

  <treecolgroup>
    <treecol flex="1"/>
  </treecolgroup>      
      
  <treehead name="tree">
    <treerow>
      <treecell class="treecell-header outset" url="__header" value="&categoryHeader;"/>
    </treerow>
  </treehead>

  <treechildren id="panelChildren" flex="1">
    <treeitem container="true" open="true" id="appearance">
      <treerow>   
        <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-appearance.xul" value="&appear.label;"/> 
      </treerow>
      <treechildren>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-fonts.xul" value="&fonts.label;"/> 
          </treerow>
        </treeitem>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-colors.xul" value="&colors.label;"/> 
          </treerow>
        </treeitem>
		    <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-themes.xul" value="&themes.label;"/> 
          </treerow>
        </treeitem>
      </treechildren>
    </treeitem>

    <!-- XXX remove this when overlays.rdf works for navigator -->
    <treeitem container="true" open="true" id="navigator">
      <treerow>
        <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-navigator.xul" value="&navigator.label;"/> 
      </treerow>
      <treechildren>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-history.xul" value="&history.label;"/> 
          </treerow>
        </treeitem>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-languages.xul" value="&languages.label;"/> 
          </treerow>
        </treeitem>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-applications.xul" value="&applications.label;"/> 
          </treerow>  
        </treeitem> 
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-smart_browsing.xul" value="&smartBrowse.label;"/> 
          </treerow>
        </treeitem>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-search.xul" value="&search.label;"/> 
          </treerow>
        </treeitem>
<!-- Taking out Policies panel b/c bug 44121
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-policies.xul" value="&policies.label;"/>
          </treerow>
        </treeitem> -->
      </treechildren>
    </treeitem>
    <!-- XXX -->
    
    <treeitem container="true" open="true" id="advancedItem">
      <treerow>
        <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-advanced.xul" value="&advance.label;"/> 
      </treerow>
      <treechildren id="advancedChildren">
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-cookies.xul"
                      value="&cookies.label;"
                      id="cookiesCell"/> 
          </treerow>
        </treeitem>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-images.xul"
                      value="&images.label;"/> 
          </treerow>
        </treeitem>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-wallet.xul" value="&wallet.label;"/> 
          </treerow>
        </treeitem>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-passwords.xul" value="&passwords.label;"/> 
          </treerow>
        </treeitem>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-cache.xul" value="&cache.label;"/> 
          </treerow>
        </treeitem>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-proxies.xul" value="&proxies.label;"/> 
          </treerow>
        </treeitem>
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-smartupdate.xul" value="&smart.label;"/>
          </treerow>
        </treeitem>
      </treechildren>
    </treeitem>

    <treeitem container="true" open="true" id="debugItem">
      <treerow>       
        <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-debug.xul" value="&debug.label;"/> 
      </treerow>
      <treechildren id="debugChildren">

        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-debug1.xul" value="&debug1.label;"/> 
          </treerow>
        </treeitem>
        
        <treeitem>
          <treerow>
            <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-debug2.xul" value="&debug2.label;"/> 
          </treerow>
        </treeitem>
        
      </treechildren>
    </treeitem>
  </treechildren>

</tree>

</overlay>
