<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="chrome://ntab/skin/overlay.css" type="text/css"?>
<!DOCTYPE overlay SYSTEM "chrome://ntab/locale/overlay.dtd">
<overlay id="ntab-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  <script src="moa.js"/>
  <script src="overlay.js"/>
  <script type="application/x-javascript" src="snapshot.js"/>
  <script src="sendlink.js"/>

  <script type="text/javascript">
  	// import session module, so that session can be stored when application quits.
  	Components.utils['import']('resource://ntab/session.jsm');
  </script>
  <stringbundleset id="stringbundleset">
    <stringbundle id="ntab-strings" src="chrome://ntab/locale/overlay.properties"/>
  </stringbundleset>

  <command id="Browser:SendLink" oncommand="MOA.NTab.SendLink.onMenuItemCommand(event);" />
  <menuitem id="context-sendpage" oncommand="MOA.NTab.SendLink.onMenuItemCommand(event)" />
  <menuitem id="context-sendlink" oncommand="MOA.NTab.SendLink.onContextItemCommand(event);" />

  <popup id="contentAreaContextMenu">
    <menuitem id="context-ntab" label="&ntabContext.label;"
              accesskey="&ntabContext.accesskey;"
              insertafter="context-stop"
              oncommand="MOA.NTab.onMenuItemCommand(event)"/>
  </popup>

  <hbox style="overflow:hidden; height: 0;">
  	<vbox id="nt-hidden-box"></vbox>
  </hbox>

  <window id="main-window">
	  <menupopup id="nt-menu"  oncommand="MOA.NTab.onContextCommand(event, event.target.id);">
	  	<menuitem id="nt-edit"
	  		accesskey="&ntab.contextmenu.edit.accesskey;"
	  		label="&ntab.contextmenu.edit;" />
	  	<menuitem id="nt-refresh"
	  		accesskey="&ntab.contextmenu.refresh.accesskey;"
	  		label="&ntab.contextmenu.refresh;" />
	  	<menuitem id="nt-refreshall"
	  		accesskey="&ntab.contextmenu.refreshall.accesskey;"
	  		label="&ntab.contextmenu.refreshall;" />
		<menuitem id="nt-export"
			accesskey="&ntab.contextmenu.export.accesskey;"
			label="&ntab.contextmenu.export;"/>
		<menuitem id="nt-import"
			accesskey="&ntab.contextmenu.import.accesskey;"
			label="&ntab.contextmenu.import;"/>
	  </menupopup>
  </window>
</overlay>
