<?xml version="1.0"?>
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>

<!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="dialog"
		onload="if (parent.handle) parent.handle.onpageload('pref-mailnews'); else parent.queuedTag='pref-mailnews';"
		align="vertical">

<html:script language="javascript" src="chrome://messenger/content/pref-mailnews.js"/>

	<box class="header" align="horizontal">
		<html:div class="left-header-text">&pane.title;</html:div>
		<spring flex="100%"/>
		<html:div class="right-header-text">&pane.description;</html:div>
	</box>

	<html:fieldset>

		<html:legend align="left">
			<html:div>&textBegin.label;</html:div>
		</html:legend>

		<box align="horizontal">
		
			<html:label for="mail.quoted_style">&style.label;</html:label>
			<html:select pref="true"
                         preftype="int"
                         prefstring="mail.quoted_style"
                         id="mail.quoted_style">
				<html:option value="0" label="&regular.label;"/>
				<html:option value="1" label="&bold.label;"/>
				<html:option value="2" label="&italic.label;"/>
				<html:option value="3" label="&boldItalic.label;"/>
			</html:select>

			<html:label for="mail.quoted_size">&size.label;</html:label>

			<html:select pref="true" preftype="int" id="mail.quoted_size" prefstring="mail.quoted_size">
				<html:option value="0" label="&regular.label;"/>
				<html:option value="1" label="&bigger.label;"/>
				<html:option value="2" label="&smaller.label;"/>
			</html:select>

			<menu id="citationmenu">
				<titledbutton value="&color.label;" class="popup" align="right"/> 
				<html:div nopref="true" preftype="string" prefstring="mail.citation_color" style="width:30px; background-color:white"/>
				<menupopup>
					<colorpicker id="citation" palettename="standard" onclick="setColorWell(this.parentNode.parentNode,null,false);"/>
				</menupopup>
        	</menu>  
		
        </box>

	</html:fieldset>

	<html:fieldset>
		<html:legend align="left">
			<html:div>&displayWidth.label;</html:div>
		</html:legend>

		<html:div>
			<html:input pref="true" preftype="bool" prefstring="mail.fixed_width_messages" prefindex="true" id="fixed_width" name="fontwidth" type="radio"/>
			<html:label for="fixed_width">&fixedWidth.label;</html:label>
		</html:div>
			
		<html:div>
			<html:input pref="true" preftype="bool" prefstring="mail.fixed_width_messages" prefindex="false" id="var_width" name="fontwidth" type="radio"/>
			<html:label for="var_width">&variableWidth.label;</html:label>
		</html:div>

	</html:fieldset>
	 
	<html:fieldset>

		<html:div>
			<html:input pref="true" preftype="bool" prefstring="mail.play_sound" id="mail.play_sound" type="checkbox"/>
			<html:label for="mail.play_sound">&playSound.label;</html:label>
		</html:div>
			
		<html:div>
			<html:input pref="true" preftype="bool" prefstring="mailnews.remember_selected_message" id="mailnews.remember_selected_message" type="checkbox"/>
			<html:label for="mailnews.remember_selected_message">&rememberLastMsg.label;</html:label>
		</html:div>
			
		<html:div>
			<html:input pref="true" preftype="bool" prefstring="mailnews.confirm.moveFoldersToTrash" id="mailnews.confirm.moveFoldersToTrash" type="checkbox"/>
			<html:label for="mailnews.confirm.moveFoldersToTrash">&confirmMove.label;</html:label>
		</html:div>
			
		<!-- this should be in a platform specific overlay, as Linux and Mac don't have MAPI -->
		<html:div>
			<html:input pref="true" preftype="bool" prefstring="mail.use_mapi_server" id="mail.use_mapi_server" type="checkbox"/>
			<html:label for="mail.use_mapi_server">&useMessenger.label;</html:label>
		</html:div>

	</html:fieldset>
	<html:fieldset>
		<html:legend align="left">
			<html:div>&startPageHeader.label;</html:div>
		</html:legend>
		<html:div>
			<html:input type="checkbox" pref="true" preftype="bool" prefstring="mailnews.start_page.enabled" id="mailnews.start_page.enabled"/>
			<html:label for="mailnews.start_page.enabled">
			&enableStartPage.label;
			</html:label>
        </html:div>

		<box align="horizontal">
			<html:label>&location;</html:label>

			<html:input name="homepage" type="text" pref="true" preftype="string" 
			prefstring="mailnews.start_page.url" id="mailnews.start_page.url"/>
		</box>
		<box align="horizontal">
			<titledbutton class="dialog push" name="starts" type="button" 
			value="&useCurrent;" onclick="SetPrefToCurrentPage('mailnews.start_page.url');" />

			<titledbutton class="dialog push" name="browse" type="button" 
			value="&browseFile;" onclick="PrefNavSelectFile('mailnews.start_page.url')"/>
		</box>

	</html:fieldset>

</window>
