<?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/TR/REC-html40"
		    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", "mailPlaySound", "mailnewsConfirmMoveFoldersToTrash", 
                       "reuseThreadWindow", 
                       "mailnewsStartPageEnabled", "mailnewsStartPageUrl", "mailnewsRememberSelectedMessage"];
  ]]>
  </script>
  <script language="javascript" src="chrome://global/content/strres.js"></script>
  <script language="javascript" src="chrome://communicator/content/pref/prefutilities.js"></script>
  <script language="javascript" src="chrome://messenger/content/pref-mailnews.js"></script>
  
  <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="mailnewsRememberSelectedMessage" value="&rememberLastMsg.label;" accesskey="&rememberLastMsg.accesskey;"
              pref="true" preftype="bool" prefstring="mailnews.remember_selected_message" 
              prefattribute="checked"/>
    <checkbox id="mailnewsConfirmMoveFoldersToTrash" value="&confirmMove.label;" accesskey="&confirmMove.label;"
              pref="true" preftype="bool" prefstring="mailnews.confirm.moveFoldersToTrash"
              prefattribute="checked"/>
	<checkbox id="mailPlaySound" value="&playSound.label;" accesskey="&playSound.accesskey;"
              pref="true" preftype="bool" prefstring="mail.play_sound"
              prefattribute="checked"/>
		
    <checkbox id="reuseThreadWindow" value="&reuseMessage.label;" accesskey="&reuseMessage.accesskey;"
              pref="true" preftype="bool" prefstring="mailnews.reuse_message_window"
              prefattribute="checked"/>
		
	</titledbox>

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

    <checkbox allowevents="true" id="mailnewsStartPageEnabled" value="&enableStartPage.label;" accesskey="&enableStartPage.accesskey;"
              pref="true" preftype="bool" prefstring="mailnews.start_page_enabled"
              prefattribute="checked"/>
    <box autostretch="never" class="indent">
      <text class="label" value="&location.label;" accesskey="&location.label;" 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>
