<?xml version="1.0"?> 
<?xul-overlay href="chrome://global/content/platformGlobalOverlay.xul"?>

<!DOCTYPE window SYSTEM "chrome://global/locale/globalOverlay.dtd">


<overlay id="globalOverlay"
		 xmlns:html="http://www.w3.org/TR/REC-html40"
		 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<html:script language="JavaScript" src="chrome://global/content/globalOverlay.js"/>

	<!-- File Menu -->
	<menu id="menu_File" value="&fileMenu.label;" accesskey="&fileMenu.accesskey;"/>
	
	<!-- New SubMenu (Under File Menu) -->
	<broadcaster id="cmd_newNavigator" oncommand="OpenBrowserWindow()"/>
	<broadcaster id="cmd_newMessage"   oncommand="goOpenNewMessage()"/>
	<broadcaster id="cmd_newEditor"    oncommand="NewEditorWindow();"/>
	<!-- NOT IMPLEMENTED, so temporarily disabled -->
	<broadcaster id="cmd_newEditorTemplate"   disabled="true"  oncommand="NewEditorFromTemplate();"/>
	<broadcaster id="cmd_newEditorDraft"      disabled="true"  oncommand="NewEditorFromDraft();"/>

	<menuitem id="menu_newEditor"         value="&newBlankPageCmd.label;"         accesskey="&newBlankPageCmd.accesskey;" key="key_newBlankPage" observes="cmd_newEditor"/>
	<menuitem id="menu_newEditorTemplate" value="&newPageFromTemplateCmd.label;"  accesskey="&newPageFromTemplateCmd.accesskey;"                 observes="cmd_newEditorTemplate"/>
	<menuitem id="menu_newEditorDraft"    value="&newPageFromDraftCmd.label;"     accesskey="&newPageFromDraftCmd.accesskey;"                    observes="cmd_newEditorDraft"/>
 
	<menu id="menu_New" value="&newMenu.label;" accesskey="&newMenu.accesskey;"/>
	<menuitem id="menu_newNavigator" value="&newNavigatorCmd.label;" accesskey="&newNavigatorCmd.accesskey;" key="key_newNavigator" observes="cmd_newNavigator"/>
	<menuitem id="menu_newMessage" value="&newMessageCmd.label;" accesskey="&newMessageCmd.accesskey;" key="key_newMessage" observes="cmd_newMessage"/>
	<menuitem id="cmd_newCard" value="&newCardCmd.label;" accesskey="&newCardCmd.accesskey;" oncommand="goNewCardDialog(0)"/>

	<key id="key_newBlankPage"  xulkey="true" shift="true" key="&newBlankPageCmd.key;" observes="cmd_newEditor"/>
	<key id="key_newNavigator"  xulkey="true" key="&newNavigatorCmd.key;" observes="cmd_newNavigator"/>
	<key id="key_newMessage"    xulkey="true" key="&newMessageCmd.key;" observes="cmd_newMessage"/>

	<!-- Page Setup menu item -->
	<menuitem id="menu_pageSetup" value="&pageSetupCmd.label;" oncommand="goPageSetup()"/>
	
	<!-- Edit Menu -->
	<menu id="menu_Edit" value="&editMenu.label;" accesskey="&editMenu.accesskey;"/>
	<menuitem id="menu_undo" value="&undoCmd.label;" key="key_undo" accesskey="&undoCmd.accesskey;" observes="cmd_undo"/>
	<menuitem id="menu_cut" value="&cutCmd.label;" key="key_cut" accesskey="&cutCmd.accesskey;" observes="cmd_cut"/>
	<menuitem id="menu_copy" value="&copyCmd.label;" key="key_copy" accesskey="&copyCmd.accesskey;" observes="cmd_copy"/>
	<menuitem id="menu_paste" value="&pasteCmd.label;" key="key_paste" accesskey="&pasteCmd.accesskey;" observes="cmd_paste"/>
	<menuitem id="menu_delete" value="&deleteCmd.label;" key="key_delete" accesskey="&deleteCmd.accesskey;" observes="cmd_delete"/>
	<menuitem id="menu_selectAll" value="&selectAllCmd.label;" key="key_selectAll" accesskey="&selectAllCmd.accesskey;" observes="cmd_selectAll"/>
	
	<key id="key_undo" xulkey="true" key="&undoCmd.key;" observes="cmd_undo"/>
	<key id="key_cut" xulkey="true" key="&cutCmd.key;" observes="cmd_cut"/>
	<key id="key_copy" xulkey="true" key="&copyCmd.key;" observes="cmd_copy"/>
	<key id="key_paste" xulkey="true" key="&pasteCmd.key;" observes="cmd_paste"/>
	<key id="key_delete" xulkey="true" key="&deleteCmd.key;" observes="cmd_delete"/>
	<key id="key_selectAll" xulkey="true" key="&selectAllCmd.key;" observes="cmd_selectAll"/>
	<key id="key_preferences" xulkey="true" key="&preferencesCmd.key;" observes="cmd_preferences"/>

	<commandset id="globalEditMenuItems"
					commandupdater="true"
					oncommandupdate="goUpdateGlobalEditMenuItems()"/>
					
	<broadcaster id="cmd_undo" 
				 oncommand="goDoCommand('cmd_undo')"
				 disabled="true"/>
	<broadcaster id="cmd_redo" 
				 oncommand="goDoCommand('cmd_redo')"
				 disabled="true"/>
	<broadcaster id="cmd_cut" 
				 oncommand="goDoCommand('cmd_cut')"
				 disabled="true"/>
	<broadcaster id="cmd_copy" 
				 oncommand="goDoCommand('cmd_copy')"
				 disabled="true"/>
	<broadcaster id="cmd_paste" 
				 oncommand="goDoCommand('cmd_paste')"
				 disabled="true"/>
	<broadcaster id="cmd_delete"
				 oncommand="goDoCommand('cmd_delete')"
				 valueDefault="&deleteCmd.label;"
				 disabled="true"/>
	<broadcaster id="cmd_selectAll"
				 oncommand="goDoCommand('cmd_selectAll')"
				 disabled="true"/>
	
	<!-- Not needed yet, window just needs a broadcaster with this id and oncommand=  broadcaster id="cmd_preferences"/-->
	
	<menuitem id="menu_preferences"
			  value="&preferencesCmd.label;"
			  key="key_preferences"
			  accesskey="&preferencesCmd.accesskey;"
			  observes="cmd_preferences"/>
		  
	<!-- View Menu -->
	<menu id="menu_View" value="&viewMenu.label;"/>
	<menu id="menu_Toolbars" value="&viewToolbarsMenu.label;" accesskey="&viewToolbarsMenu.accesskey;"/>
	<menuitem id="menu_showTaskbar"
			  value="&showTaskbarCmd.label;"
			  accesskey="&showTaskbarCmd.accesskey;"
			  oncommand="goToggleToolbar('taskbar', 'menu_showTaskbar')"
			  checked="true"/>

	<!-- Help Menu -->
	<menu id="menu_Help" value="&helpMenu.label;">
		<menupopup id="helpPopup">
	        <!-- Help Menu disabled
			<menu value="&helpContentCmd.label;">
				<menupopup>
				  <menuitem value="&webBrowsingCmd.label;" oncommand="window.content.location.href='http://www.mozilla.org/projects/user-docs/local/browserhelp/navtop.html'"/>
				  <menuitem value="&emailCmd.label;" oncommand="window.content.location.href='http://www.mozilla.org/projects/user-docs/local/mailhelp/mailtop.html'"/>
				  <menuitem value="&internetShopCmd.label;" oncommand="window.content.location.href='http://www.mozilla.org/projects/user-docs/served/shophelp/shoptop.html'"/>
				  <menuitem value="&customCmd.label;" oncommand="window.content.location.href='http://www.mozilla.org/projects/user-docs/served/custhelp/custtop.html'"/>
				  <menuseparator/>
				  <menuitem value="&softUpdatesCmd.label;" oncommand="window.content.location.href='http://www.mozilla.org/projects/user-docs/served/updatehelp/updatetop.html'"/>
				  <menuitem value="&connProbCmd.label;" oncommand="window.content.location.href='http://www.mozilla.org/projects/user-docs/local/troubleshoot/troubletop.html'"/>
				  <menuitem value="&secPrivCmd.label;" oncommand="window.content.location.href='http://home.netscape.com/security/basics/index.html'"/>
				 </menupopup>
			</menu>
			-->
			<menuitem value="&releaseCommCmd.label;" oncommand="window.content.location.href='http://www.mozilla.org/projects/seamonkey/release-notes/m13.html'"/>
			<menuitem value="&aboutCommCmd.label;" oncommand="window.content.location.href='about:'"/>
		</menupopup>
	</menu>
	
	<!-- Gray horizontal splitter -->
	<splitter id="gray_horizontal_splitter" class="gray-horizontal-splitter">
		<box id="begincap" align="horizontal">
			<spring flex="100%"/>
		</box>
		<spring flex="100%"/>
		<grippy/>
		<spring flex="100%"/>
		<box id="endcap" align="horizontal">
			<spring flex="100%"/>
		</box>
	</splitter>

	<!-- Toolbar boxes -->
	<box id="toolbar_button_box" align="horizontal" flex="100%"/>
	
	<!-- Status Bar -->
	<box id="status-bar" align="horizontal">
		<box id="status-bar-leftcap" position="0"/>
		<box id="status-bar-rightcap"/>
	</box>
	
</overlay>		
