<?xml version="1.0"?>

<!DOCTYPE overlay SYSTEM "chrome://global/locale/dialogOverlay.dtd">

<overlay id="dialogOverlay"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <script type="application/javascript" src="chrome://global/content/dialogOverlay.js"/>

  <hbox id="okCancelButtons">
    <spacer flex="1"/>
    <button class="exit-dialog" id="Button3" label="" collapsed="true" oncommand="doButton3();"/>
    <button class="exit-dialog" id="Button2" label="" collapsed="true" oncommand="doButton2();"/>
    <button class="exit-dialog" id="cancel" label="&cancelButton.label;" oncommand="doCancelButton();"/>
    <button class="right exit-dialog" id="ok" default="true" label="&okButton.label;" oncommand="doOKButton();"/>
  </hbox>

  <hbox id="okCancelHelpButtons">
    <button class="exit-dialog" id="help" label="&helpButton.label;" oncommand="doHelpButton();"/>
    <spacer flex="1"/>
    <button class="exit-dialog" id="Button3" label="" collapsed="true" oncommand="doButton3();"/>
    <button class="exit-dialog" id="Button2" label="" collapsed="true" oncommand="doButton2();"/>
    <button class="exit-dialog" id="cancel" label="&cancelButton.label;" oncommand="doCancelButton();"/>
    <button class="right exit-dialog" id="ok" default="true" label="&okButton.label;" oncommand="doOKButton();"/>
  </hbox>

  <hbox id="okCancelButtonsRight">
    <spacer flex="1"/>
    <button class="exit-dialog" id="Button3" label="" collapsed="true" oncommand="doButton3();"/>
    <button class="exit-dialog" id="Button2" label="" collapsed="true" oncommand="doButton2();"/>
    <button class="exit-dialog" id="cancel" label="&cancelButton.label;" oncommand="doCancelButton();"/>
    <button class="right exit-dialog" id="ok" default="true" label="&okButton.label;" oncommand="doOKButton();"/>
  </hbox>

  <hbox id="okCancelHelpButtonsRight">
    <button class="exit-dialog" id="help" label="&helpButton.label;" oncommand="doHelpButton();"/>
    <spacer flex="1"/>
    <button class="exit-dialog" id="Button3" label="" collapsed="true" oncommand="doButton3();"/>
    <button class="exit-dialog" id="Button2" label="" collapsed="true" oncommand="doButton2();"/>
    <button class="exit-dialog" id="cancel" label="&cancelButton.label;" oncommand="doCancelButton();"/>
    <button class="right exit-dialog" id="ok" default="true" label="&okButton.label;" oncommand="doOKButton();"/>
  </hbox>

  <keyset id="dialogKeys">
    <key keycode="VK_RETURN" oncommand="if (!document.getElementById('ok').disabled) doOKButton();"/>
    <key keycode="VK_ESCAPE" oncommand="doCancelButton();"/>
    <key key="." modifiers="meta" oncommand="doCancelButton();"/>
  </keyset>

</overlay>
