<?xml version="1.0"?>
<?xml-stylesheet href="chrome://messenger/skin/messenger.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/folderPane.css" text="text/css"?>
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>

<!DOCTYPE window SYSTEM "chrome://messenger/locale/AccountManager.dtd" >
<window	id="account-manager" 
		xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
		title="&accountManagerTitle.label;"
        orient="vertical"
        class="dialog"
        width="620" height="470"
        persist="screenX screenY width height"
        onload="onLoad(event);">

<stringbundle id="bundle_prefs" src="chrome://messenger/locale/prefs.properties"/>
<script type="text/javascript" src="chrome://messenger/content/accountUtils.js"/>
<script type="text/javascript" src="chrome://messenger/content/AccountManager.js"/>

	<keyset id="keyset"/>

	<box flex="1">
    <box orient="vertical" flex="1">
      <tree datasources="rdf:msgaccountmanager" style="width:0px" flex="1"
            containment="http://home.netscape.com/NC-rdf#Settings"
            onselect="onAccountClick(event.target)" id="accounttree"
            class="inset"
            sortResource="http://home.netscape.com/NC-rdf#Name?sort=true"
            sortDirection="ascending"
            ref="msgaccounts:/">
        <treecolgroup>
          <treecol flex="1"/>
        </treecolgroup>
        <template>
          <rule>
            <treechildren flex="1">
              <treeitem uri="..." open="true"
                        sort="rdf:http://home.netscape.com/NC-rdf#FolderTreeName?sort=true"
                        IsDefaultServer="rdf:http://home.netscape.com/NC-rdf#IsDefaultServer"
                        PageTag="rdf:http://home.netscape.com/NC-rdf#PageTag">
                <treerow >
                  <treecell class="treecell-indent"
                            value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                </treerow>
              </treeitem>
            </treechildren>
          </rule>
        </template>
      </tree>
      <button value="&newAccountButton.label;" oncommand="onNewAccount(event);" id="newAccountButton"/>
      <button value="&setDefaultButton.label;" oncommand="onSetDefault(event);" disabled="true" id="setDefaultButton"/>
  
      <box >
        <!-- taking out for PR2
          <button class="dialog" disabled="true" value="&duplicateButton.label;" id="duplicateButton" oncommand="onDuplicateAccount();" flex="50%"/>
        -->
        <button class="dialog" disabled="true" value="&deleteButton.label;" oncommand="onDeleteAccount(event);" id="deleteButton" flex="50%"/>
      </box>
    </box>
  
    <iframe id="contentFrame" name="contentFrame" flex="6" style="width: 0px"/>
  </box>
  
  <separator/>
  
  <box id="okCancelButtonsRight"/>

</window>
