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

<!DOCTYPE window SYSTEM "chrome://messenger/locale/pref-mailnews.dtd">

<window xmlns:html="http://www.w3.org/1999/xhtml"
		    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        class="color-dialog"
		    onload="parent.initPanel('chrome://messenger/content/pref-mailnews.xul');"
		    orient="vertical">

  <script language="javascript">
  <![CDATA[
    var _elementIDs = ["mailPaneConfig", "mailnewsConfirmMoveFoldersToTrash", 
                       "mailnewsStartPageEnabled", "mailnewsStartPageUrl"];
  ]]>
  </script>
  <script language="javascript" src="chrome://global/content/strres.js"/>
  <script language="javascript" src="chrome://communicator/content/pref/prefutilities.js"/>
  <script language="javascript" src="chrome://messenger/content/pref-mailnews.js"/>
  
  <box class="box-smallheader" title="&pane.title;"/>

  <titledbox orient="vertical">
    <title><text value="&windowSettings.label;"/></title>
    
    <box autostretch="never">
      <text class="label" value="&selectWindowLayout.label;"/>
      <spring flex="1"/>
      <radiogroup id="mailPaneConfig" pref="true" preftype="int" prefstring="mail.pane_config"
                  prefattribute="data">
        <radio group="mailPaneConfig" class="iconic" data="0" id="classic"/>
        <radio group="mailPaneConfig" class="iconic" data="1" id="wide"/>
      </radiogroup>
    </box>
    
    <html>&chooseExp.label;</html>

	<separator class="thin"/>
    <checkbox id="mailnewsConfirmMoveFoldersToTrash" value="&confirmMove.label;"
              pref="true" preftype="bool" prefstring="mailnews.confirm.moveFoldersToTrash"
              prefattribute="checked"/>

	</titledbox>

	<titledbox orient="vertical">
    <title><text value="&messengerStartPage.label;"/></title>

    <checkbox allowevents="true" id="mailnewsStartPageEnabled" value="&enableStartPage.label;"
              pref="true" preftype="bool" prefstring="mailnews.start_page.enabled"
              prefattribute="checked"/>
    <box autostretch="never" class="indent">
      <text class="label" value="&location.label;" accesskey="&location.accesskey;" for="mailnews.start_page.url"/>
      <textfield id="mailnewsStartPageUrl" flex="1" pref="true" preftype="string"
                 prefstring="mailnews.start_page.url" prefattribute="value"/>
    </box>
    <box autostretch="never" halign="right">
      <button class="dialog" value="&useDefault.label;" accesskey="&useDefault.accesskey;"
              oncommand="setHomePageToDefaultPage('mailnewsStartPageUrl');" />
     </box>

	</titledbox>

</window>
