home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 August (Alt) / CHIP 2005-08.1.iso / program / code / Firefox_1.0.5.exe / browser.xpi / bin / chrome / browser.jar / content / browser / browser.xul < prev    next >
Encoding:
Extensible Markup Language  |  2005-02-17  |  71.7 KB  |  1,286 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://browser/skin/" type="text/css"?> 
  4. <?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
  5. <?xml-stylesheet href="chrome://global/skin/findBar.css" type="text/css"?>
  6.  
  7.  
  8. <!DOCTYPE window [
  9. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  10. %brandDTD;
  11. <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
  12. %browserDTD;
  13. <!ENTITY % globalRegionDTD SYSTEM "chrome://global-region/locale/region.dtd">
  14. %globalRegionDTD;
  15. <!ENTITY % charsetDTD SYSTEM "chrome://global/locale/charsetOverlay.dtd" >
  16. %charsetDTD;
  17. <!ENTITY % findDTD SYSTEM "chrome://global/locale/finddialog.dtd" >
  18. %findDTD;
  19. ]>
  20.  
  21.  
  22. <window id="main-window"
  23.         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  24.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  25.         onload="Startup()" onunload="Shutdown()" onclose="return WindowIsClosing();"
  26.         contenttitlesetting="true"
  27.         title="&mainWindow.title;"
  28.         titlemodifier="&mainWindow.title;"
  29.         titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
  30.         windowtype="navigator:browser"
  31.         screenX="4" screenY="4"
  32.         persist="screenX screenY width height sizemode"> 
  33.  
  34.  
  35. <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  36. <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  37. <script type="application/x-javascript" src="chrome://global/content/findBar.js"/>
  38. <script type="application/x-javascript" src="chrome://global/content/printUtils.js"/>
  39. <script type="application/x-javascript" src="chrome://browser/content/utilityOverlay.js"/>
  40. <script type="application/x-javascript" src="chrome://browser/content/bookmarks/bookmarks.js"/>
  41. <script type="application/x-javascript" src="chrome://browser/content/bookmarks/bookmarksMenu.js"/>
  42. <script type="application/x-javascript" src="chrome://global/content/viewZoomOverlay.js"/>
  43. <script type="application/x-javascript" src="chrome://browser/content/contentAreaUtils.js"/>
  44. <script type="application/x-javascript" src="chrome://browser/content/browser.js"/>
  45. <script type="application/x-javascript" src="chrome://global/content/XPCNativeWrapper.js"/>
  46.  
  47.  
  48.  
  49.   <stringbundleset id="stringbundleset"> 
  50.     <stringbundle id="bundle_brand" src="chrome://global/locale/brand.properties"/>
  51.     <stringbundle id="bundle_shell" src="chrome://browser/locale/shellservice.properties"/>
  52.     <stringbundle id="bundle_browser" src="chrome://browser/locale/browser.properties"/>
  53.     <stringbundle id="bundle_findBar" src="chrome://browser/locale/browser.properties"/>
  54.     <stringbundle id="bundle_browser_region" src="chrome://browser-region/locale/region.properties"/>
  55.   </stringbundleset>
  56.  
  57.   <commandset commandupdater="true"
  58.               events="focus"
  59.               oncommandupdate="goUpdateGlobalEditMenuItems()"/>
  60.   <commandset commandupdater="true"
  61.               events="select"
  62.               oncommandupdate="goUpdateSelectEditMenuItems()"/>
  63.   <commandset commandupdater="true"
  64.               events="undo"
  65.               oncommandupdate="goUpdateUndoEditMenuItems()"/>
  66.   <commandset commandupdater="true"
  67.               events="clipboard"
  68.               oncommandupdate="goUpdatePasteMenuItems()"/>
  69.   
  70.   <commandset id="mainCommandSet">
  71.     <command id="cmd_newNavigator"                 oncommand="OpenBrowserWindow()"/>
  72.     <command id="cmd_bm_open"                      oncommand="goDoCommand('cmd_bm_open');"/>
  73.     <command id="cmd_bm_openinnewwindow"           oncommand="goDoCommand('cmd_bm_openinnewwindow');"/>
  74.     <command id="cmd_bm_openinnewtab"              oncommand="goDoCommand('cmd_bm_openinnewtab');"/>
  75.     <command id="cmd_bm_expandfolder"              oncommand="goDoCommand('cmd_bm_expandfolder');"/>
  76.     <command id="cmd_bm_openfolder"                oncommand="goDoCommand('cmd_bm_openfolder');"/>
  77.     <command id="cmd_bm_managefolder"              oncommand="goDoCommand('cmd_bm_managefolder');"/>
  78.     <command id="cmd_bm_newfolder"                 oncommand="goDoCommand('cmd_bm_newfolder');"/>
  79.     <command id="cmd_bm_newbookmark"               oncommand="goDoCommand('cmd_bm_newbookmark');"/>
  80.     <command id="cmd_bm_newseparator"              oncommand="goDoCommand('cmd_bm_newseparator');"/>
  81.     <command id="cmd_bm_properties"                oncommand="goDoCommand('cmd_bm_properties');"/>
  82.     <command id="cmd_bm_refreshlivemark"           oncommand="goDoCommand('cmd_bm_refreshlivemark');"/>
  83.     <command id="cmd_bm_rename"                    oncommand="goDoCommand('cmd_bm_rename');"/>
  84.     <command id="cmd_bm_moveBookmark"              oncommand="goDoCommand('cmd_bm_moveBookmark');"/>
  85.     <command id="cmd_bm_sortbyname"                oncommand="goDoCommand('cmd_bm_sortbyname');"/>
  86.  
  87.     <command id="cmd_handleBackspace"  oncommand="BrowserHandleBackspace();" />
  88.  
  89.     <command id="cmd_newNavigatorTab" oncommand="BrowserOpenTab();"/>
  90.     <command id="Browser:OpenFile"  oncommand="BrowserOpenFileWindow();"/>
  91.     <command id="Browser:SavePage" oncommand="saveDocument(window._content.document);"/>
  92.  
  93.     <command id="Browser:SendLink" oncommand="MailIntegration.sendLinkForContent();"/>
  94.     <command id="Browser:NewMessage" oncommand="MailIntegration.sendMessage('', '');"/>
  95.     <command id="Browser:ReadMail" oncommand="MailIntegration.readMail();" label="&mailButton.readMail.label;"/>
  96.     <command id="Browser:ReadNews" oncommand="MailIntegration.readNews();"/>
  97.  
  98.     <command id="cmd_print" oncommand="PrintUtils.print();"/>
  99.     <command id="cmd_close" oncommand="BrowserCloseTabOrWindow()"/>
  100.     <command id="cmd_closeWindow" oncommand="BrowserTryToCloseWindow()"/>
  101.     <command id="cmd_CustomizeToolbars" oncommand="BrowserCustomizeToolbar()"/>
  102.   
  103.     <command id="cmd_copyLink"
  104.              oncommand="goDoCommand('cmd_copyLink')"
  105.              disabled="false"/>
  106.     <command id="cmd_copyImageLocation"
  107.              oncommand="goDoCommand('cmd_copyImageLocation')"
  108.              disabled="false"/>
  109.     <command id="cmd_copyImageContents"
  110.              oncommand="goDoCommand('cmd_copyImageContents')"
  111.              disabled="false"/>
  112.     <command id="cmd_undo" 
  113.              oncommand="goDoCommand('cmd_undo')"
  114.              disabled="true"/>
  115.     <command id="cmd_redo" 
  116.              oncommand="goDoCommand('cmd_redo')"
  117.              disabled="true"/>
  118.     <command id="cmd_cut" 
  119.              oncommand="goDoCommand('cmd_cut')"
  120.              disabled="true"/>
  121.     <command id="cmd_copy" 
  122.              oncommand="goDoCommand('cmd_copy')"
  123.              disabled="true"/>
  124.     <command id="cmd_paste" 
  125.              oncommand="goDoCommand('cmd_paste')"
  126.              disabled="true"/>
  127.     <command id="cmd_delete"
  128.              oncommand="goDoCommand('cmd_delete')"
  129.              valueDefault="&deleteCmd.label;"
  130.              disabled="true"/>
  131.     <command id="cmd_selectAll"
  132.              oncommand="goDoCommand('cmd_selectAll')"
  133.              disabled="true"/>
  134.     <command id="cmd_SwitchTextDirection"
  135.              oncommand="SwitchFocusedTextEntryDirection()"
  136.              disabled="true"/>
  137.  
  138.     <command id="View:PageSource" oncommand="BrowserViewSourceOfDocument(_content.document);"/>
  139.     <command id="View:PageInfo" oncommand="BrowserPageInfo();"/>
  140.     <command id="View:FullScreen" oncommand="BrowserFullScreen();"/>
  141.     <command id="cmd_find" oncommand="onFindCmd();"/>
  142.     <command id="cmd_findAgain" oncommand="onFindAgainCmd();"/>
  143.     <command id="cmd_findPrevious" oncommand="onFindPreviousCmd();"/>    
  144.     <command id="Browser:AddBookmarkAs" oncommand="addBookmarkAs(document.getElementById('content'));"/>
  145.     <command id="Browser:Home"    oncommand="BrowserHome();"/>
  146.     <command id="Browser:Back"    oncommand="BrowserBack();" disabled="true"/>
  147.     <command id="Browser:Forward" oncommand="BrowserForward();" disabled="true"/>
  148.     <command id="Browser:Stop"    oncommand="BrowserStop();" disabled="true"/>
  149.     <command id="cmd_textZoomReduce"  oncommand="ZoomManager.prototype.getInstance().reduce();"/>
  150.     <command id="cmd_textZoomEnlarge" oncommand="ZoomManager.prototype.getInstance().enlarge();"/>
  151.     <command id="cmd_textZoomReset" oncommand="ZoomManager.prototype.getInstance().reset();"/>
  152.     <command id="Browser:OpenLocation" oncommand="openLocation();"/>
  153.  
  154.     <command id="Tools:Search" oncommand="focusSearchBar();"/>    
  155.     <command id="Tools:Downloads" oncommand="toOpenWindowByType('Download:Manager', 
  156.                                                                 'chrome://mozapps/content/downloads/downloads.xul',
  157.                                                                 'chrome,dialog=no,resizable');"/>
  158.     <command id="Tools:Extensions" oncommand="BrowserOpenExtensions('extensions');"/>
  159.     <command id="Tools:Themes" oncommand="BrowserOpenExtensions('themes');"/>
  160.     
  161.   </commandset>
  162.  
  163.   <broadcasterset id="mainBroadcasterSet">
  164.     <broadcaster id="viewBookmarksSidebar" autoCheck="false" label="&bookmarksButton.label;"
  165.                  type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/bookmarks/bookmarksPanel.xul"
  166.                  oncommand="toggleSidebar('viewBookmarksSidebar');"/>
  167.  
  168.     <broadcaster id="viewHistorySidebar" autoCheck="false" label="&historyButton.label;"
  169.                  type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/history/history-panel.xul"
  170.                  oncommand="toggleSidebar('viewHistorySidebar');"/>
  171.                  
  172.     <broadcaster id="viewWebPanelsSidebar" autoCheck="false" 
  173.                  type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/web-panels.xul"
  174.                  oncommand="toggleSidebar('viewWebPanelsSidebar');"/>
  175.  
  176.     <!-- popup blocking menu items -->
  177.     <broadcaster id="blockedPopupAllowSite" 
  178.                  accesskey="&allowPopups.accesskey;" 
  179.                  oncommand="gPopupBlockerObserver.toggleAllowPopupsForSite(event);"/>
  180.     <broadcaster id="blockedPopupEditSettings" 
  181.                  label="&editPopupSettings.label;" 
  182.                  accesskey="&editPopupSettings.accesskey;" 
  183.                  oncommand="gPopupBlockerObserver.editPopupSettings();"/>
  184.     <broadcaster id="blockedPopupDontShowMessage" 
  185.                  accesskey="&dontShowMessage.accesskey;" 
  186.                  type="checkbox"
  187.                  oncommand="gPopupBlockerObserver.dontShowMessage();"/>
  188.     <broadcaster id="blockedPopupsSeparator"/>
  189.  
  190.   </broadcasterset>
  191.  
  192.   <keyset id="mainKeyset">
  193.     <key id="key_newNavigator"
  194.          key="&newNavigatorCmd.key;"
  195.          command="cmd_newNavigator"
  196.          modifiers="accel"/>
  197.     <key id="key_newNavigatorTab" key="&tabCmd.commandkey;" modifiers="accel" command="cmd_newNavigatorTab"/>
  198.     <key id="focusURLBar" key="&openCmd.commandkey;" command="Browser:OpenLocation"
  199.          modifiers="accel"/>
  200.     <key id="focusURLBar2" key="&urlbar.accesskey;" command="Browser:OpenLocation"
  201.          modifiers="alt"/>
  202.     <key id="key_search" key="&searchFocus.commandkey;" command="Tools:Search" modifiers="accel"/>
  203.     <key id="key_search2" key="&searchFocus.commandkey2;" command="Tools:Search" modifiers="accel"/>
  204.     <key id="key_openDownloads" key="&downloads.commandkey;" command="Tools:Downloads" modifiers="accel"/>
  205.     <key id="openFileKb" key="&openFileCmd.commandkey;" command="Browser:OpenFile"  modifiers="accel"/>
  206.     <key id="key_savePage" key="&savePageCmd.commandkey;" command="Browser:SavePage" modifiers="accel"/>
  207.     <key id="printKb" key="&printCmd.commandkey;" command="cmd_print"  modifiers="accel"/>
  208.     <key id="key_close" key="&closeCmd.key;" command="cmd_close" modifiers="accel"/>
  209.     <key id="key_closeWindow" key="&closeCmd.key;" command="cmd_closeWindow" modifiers="accel,shift"/>
  210.     <key id="key_undo"
  211.          key="&undoCmd.key;"
  212.          modifiers="accel"/>
  213.     <key id="key_redo" key="&redoCmd.key;" modifiers="accel"/>
  214.     <key id="key_cut"
  215.          key="&cutCmd.key;"
  216.          modifiers="accel"/>
  217.     <key id="key_copy"
  218.          key="©Cmd.key;"
  219.          modifiers="accel"/>
  220.     <key id="key_paste"
  221.          key="&pasteCmd.key;"
  222.          modifiers="accel"/>
  223.     <key id="key_delete" keycode="VK_DELETE" command="cmd_delete"/>
  224.     <key id="key_selectAll" key="&selectAllCmd.key;" modifiers="accel"/>
  225.  
  226.     <key keycode="VK_BACK" command="cmd_handleBackspace"/>
  227.     <key keycode="VK_BACK" command="Browser:Forward" modifiers="shift"/>
  228.     <key id="goBackKb"  keycode="VK_LEFT" command="Browser:Back" modifiers="alt"/>
  229.     <key id="goForwardKb"  keycode="VK_RIGHT" command="Browser:Forward" modifiers="alt"/>
  230.     <key id="goHome" keycode="VK_HOME" command="Browser:Home" modifiers="alt"/>
  231.     <key id="key_fullScreen" keycode="VK_F11" command="View:FullScreen"/>
  232.     <key keycode="VK_F5" oncommand="BrowserReload();"/>
  233.     <key keycode="VK_F5" modifiers="control" oncommand="BrowserReloadSkipCache();"/>
  234.     <key id="key_reload"  key="&reloadCmd.commandkey;" oncommand="BrowserReload();" modifiers="accel"/>
  235.     <key key="&reloadCmd.commandkey;" oncommand="BrowserReloadSkipCache();" modifiers="accel,shift"/>
  236.     <key id="key_viewSource" key="&pageSourceCmd.commandkey;" command="View:PageSource" modifiers="accel"/>
  237.     <key id="key_find" key="&findOnCmd.commandkey;" command="cmd_find" modifiers="accel"/>
  238.     <key id="key_findAgain" key="&findAgainCmd.commandkey;" command="cmd_findAgain" modifiers="accel"/>
  239.     <key id="key_findPrevious" key="&findAgainCmd.commandkey;" command="cmd_findPrevious" modifiers="accel,shift"/>
  240.     <key keycode="&findAgainCmd.commandkey2;" command="cmd_findAgain"/>
  241.     <key keycode="&findAgainCmd.commandkey2;"  command="cmd_findPrevious" modifiers="shift"/>
  242.  
  243.     <key id="addBookmarkAsKb" key="&addCurPageAsCmd.commandkey;" command="Browser:AddBookmarkAs" modifiers="accel"/>
  244.     <key id="viewBookmarksSidebarKb" key="&bookmarksSidebarCmd.commandkey;" command="viewBookmarksSidebar" modifiers="accel"/>
  245.     <key id="viewBookmarksSidebarWinKb" key="&bookmarksSidebarWinCmd.commandkey;" command="viewBookmarksSidebar" modifiers="accel"/>
  246.  
  247.     <key id="key_stop" keycode="VK_ESCAPE" oncommand="BrowserStop();"/>
  248.     <key id="key_gotoHistory"  key="&historySidebarCmd.commandKey;"  command="viewHistorySidebar" modifiers="accel"/>
  249.  
  250.     <key id="key_newMessage"
  251.          key="&sendMessage.commandkey;"
  252.          command="Browser:NewMessage"
  253.          modifiers="accel"/>
  254.     <key id="key_textZoomReduce"  key="&textZoomReduceCmd.commandkey;"   command="cmd_textZoomReduce"  modifiers="accel"/>
  255.     <key id="key_textZoomEnlarge" key="&textZoomEnlargeCmd.commandkey;"  command="cmd_textZoomEnlarge" modifiers="accel"/>
  256.     <key                          key="&textZoomEnlargeCmd.commandkey2;" command="cmd_textZoomEnlarge" modifiers="accel"/>
  257.     <key id="key_textZoomReset"   key="&textZoomResetCmd.commandkey;"    command="cmd_textZoomReset"   modifiers="accel"/>
  258.     
  259.     <key id="key_SwitchTextDirection" key="&bidiSwitchTextDirectionItem.commandkey;" command="cmd_SwitchTextDirection" modifiers="accel,shift" />
  260.  
  261.   </keyset>
  262.  
  263.  
  264.   <popupset id="mainPopupSet">
  265.     <popup id="backMenu" 
  266.            position="after_start" 
  267.            onpopupshowing="return BrowserBackMenu(event);"
  268.            oncommand="gotoHistoryIndex(event);"
  269.            onclick="checkForMiddleClick(this, event);"/>
  270.     <popup id="forwardMenu"
  271.            position="after_start"
  272.            onpopupshowing="return BrowserForwardMenu(event);"
  273.            oncommand="gotoHistoryIndex(event);"
  274.            onclick="checkForMiddleClick(this, event);"/>
  275.     <tooltip id="aHTMLTooltip" onpopupshowing="return FillInHTMLTooltip(document.tooltipNode);"/>
  276.  
  277.     <popup type="autocomplete" id="PopupAutoComplete"/>
  278.  
  279.     <popup id="toolbar-context-menu"
  280.            onpopupshowing="updateToolbarStates(this); onViewToolbarsPopupShowing(event);">
  281.       <menuseparator/>
  282.       <menuitem command="cmd_CustomizeToolbars"
  283.                 label="&viewCustomizeToolbar.label;"
  284.                 accesskey="&viewCustomizeToolbar.accesskey;"/>
  285.     </popup>
  286.  
  287.     <popup id="blockedPopupOptions" 
  288.            onpopupshowing="gPopupBlockerObserver.fillPopupList(event);">
  289.       <menuitem observes="blockedPopupAllowSite"/>
  290.       <menuitem observes="blockedPopupEditSettings"/>
  291.       <menuitem observes="blockedPopupDontShowMessage"/>
  292.       <menuseparator observes="blockedPopupsSeparator"/>
  293.     </popup>
  294.  
  295.  
  296.     <popup id="contentAreaContextMenu"
  297.            onpopupshowing="if (event.target != this) return true; gContextMenu = new nsContextMenu( this ); return gContextMenu.shouldDisplay;"
  298.            onpopuphiding="if (event.target == this) gContextMenu = null;">
  299.       <menuitem id="context-openlink"
  300.                 label="&openLinkCmd.label;"
  301.                 accesskey="&openLinkCmd.accesskey;"
  302.                 oncommand="gContextMenu.openLink();"/>
  303.       <menuitem id="context-openlinkintab"
  304.                 label="&openLinkCmdInTab.label;"
  305.                 accesskey="&openLinkCmdInTab.accesskey;"
  306.                 oncommand="gContextMenu.openLinkInTab();"/>
  307.       <menuseparator id="context-sep-open"/>
  308.       <menuitem id="context-bookmarklink"
  309.                 label="&bookmarkLinkCmd.label;"
  310.                 accesskey="&bookmarkLinkCmd.accesskey;"
  311.                 oncommand="BookmarksUtils.addBookmark(gContextMenu.linkURL(),
  312.                                                       gContextMenu.linkText());"/>
  313.       <menuitem id="context-savelink"
  314.                 label="&saveLinkCmd.label;"
  315.                 accesskey="&saveLinkCmd.accesskey;"
  316.                 oncommand="gContextMenu.saveLink();"/>
  317.       <menuitem id="context-sendlink"
  318.                 label="&sendLinkCmd.label;"
  319.                 accesskey="&sendLinkCmd.accesskey;"
  320.                 oncommand="gContextMenu.sendLink();"/>
  321.       <menuitem id="context-copyemail"
  322.                 label="©EmailCmd.label;"
  323.                 accesskey="©EmailCmd.accesskey;"
  324.                 oncommand="gContextMenu.copyEmail();"/>
  325.       <menuitem id="context-copylink"
  326.                 label="©LinkCmd.label;"
  327.                 accesskey="©LinkCmd.accesskey;"
  328.                 command="cmd_copyLink"/>
  329.       <menuseparator id="context-sep-copylink"/>
  330.       <menuitem id="context-viewimage"
  331.                 label="&viewImageCmd.label;"
  332.                 accesskey="&viewImageCmd.accesskey;"
  333.                 oncommand="gContextMenu.viewImage(event);"
  334.                 onclick="checkForMiddleClick(this, event);"/>
  335.       <menuitem id="context-copyimage-contents"
  336.                 label="©ImageContentsCmd.label;"
  337.                 accesskey="©ImageContentsCmd.accesskey;"
  338.                 command="cmd_copyImageContents"/>
  339.       <menuitem id="context-copyimage"
  340.                 label="©ImageCmd.label;"
  341.                 accesskey="©ImageCmd.accesskey;"
  342.                 command="cmd_copyImageLocation"/>
  343.       <menuseparator id="context-sep-copyimage"/>
  344.       <menuitem id="context-saveimage"
  345.                 label="&saveImageCmd.label;"
  346.                 accesskey="&saveImageCmd.accesskey;"
  347.                 oncommand="gContextMenu.saveImage();"/>
  348.       <menuitem id="context-sendimage"  
  349.                 label="&sendImageCmd.label;" 
  350.                 accesskey="&sendImageCmd.accesskey;" 
  351.                 oncommand="gContextMenu.sendImage();"/>
  352.       <menuitem id="context-setWallpaper"
  353.                 label="&setWallpaperCmd.label;"
  354.                 accesskey="&setWallpaperCmd.accesskey;"
  355.                 oncommand="gContextMenu.setWallpaper();"/>
  356.  
  357. <!--XXXBlake XUL sucks! We need autocheck for menuitems. -->
  358.       <menuitem id="context-blockimage" class="menuitem-iconic"
  359.                 accesskey="&blockImageCmd.accesskey;"
  360.                 oncommand="gContextMenu.toggleImageBlocking(this.getAttribute('checked') != 'true');"/>
  361.       <menuitem id="context-back"
  362.                 label="&backCmd.label;"
  363.                 accesskey="&backCmd.accesskey;"
  364.                 command="Browser:Back"/>
  365.       <menuitem id="context-forward"
  366.                 label="&forwardCmd.label;"
  367.                 accesskey="&forwardCmd.accesskey;"
  368.                 command="Browser:Forward"/>
  369.       <menuitem id="context-reload"
  370.                 label="&reloadCmd.label;"
  371.                 accesskey="&reloadCmd.accesskey;"
  372.                 oncommand="BrowserReload();"/>
  373.       <menuitem id="context-stop"
  374.                 label="&stopCmd.label;"
  375.                 accesskey="&stopCmd.accesskey;"
  376.                 command="Browser:Stop"/>
  377.       <menuseparator id="context-sep-stop"/>
  378.       <menuitem id="context-bookmarkpage"
  379.                 label="&bookmarkPageCmd.label;"
  380.                 accesskey="&bookmarkPageCmd.accesskey;"
  381.                 oncommand="addBookmarkAs(document.getElementById('content'));"/>
  382.       <menuitem id="context-savepage"
  383.                 label="&savePageCmd.label;"
  384.                 accesskey="&savePageCmd.accesskey;"
  385.                 oncommand="saveDocument(window._content.document);"/>
  386.       <menuitem id="context-sendpage"  
  387.                 label="&sendPageCmd.label;" 
  388.                 accesskey="&sendPageCmd.accesskey;" 
  389.                 command="Browser:SendLink"/>
  390.       <menuseparator id="context-sep-viewbgimage"/>  
  391.       <menuitem id="context-viewbgimage"
  392.                 label="&viewBGImageCmd.label;"
  393.                 accesskey="&viewBGImageCmd.accesskey;"
  394.                 oncommand="gContextMenu.viewBGImage(event);"
  395.                 onclick="checkForMiddleClick(this, event);"/>
  396.       <menuitem id="context-undo"
  397.                 label="&undoCmd.label;"
  398.                 accesskey="&undoCmd.accesskey;"
  399.                 command="cmd_undo"/>
  400.       <menuseparator id="context-sep-undo"/>
  401.       <menuitem id="context-cut"
  402.                 label="&cutCmd.label;"
  403.                 accesskey="&cutCmd.accesskey;"
  404.                 command="cmd_cut"/>
  405.       <menuitem id="context-copy"
  406.                 label="©Cmd.label;"
  407.                 accesskey="©Cmd.accesskey;"
  408.                 command="cmd_copy"/>
  409.       <menuitem id="context-paste"
  410.                 label="&pasteCmd.label;"
  411.                 accesskey="&pasteCmd.accesskey;"
  412.                 command="cmd_paste"/>
  413.       <menuitem id="context-delete"
  414.                 label="&deleteCmd.label;"
  415.                 accesskey="&deleteCmd.accesskey;"
  416.                 command="cmd_delete"/>
  417.       <menuseparator id="context-sep-paste"/>
  418.       <menuitem id="context-selectall"
  419.                 label="&selectAllCmd.label;"
  420.                 accesskey="&selectAllCmd.accesskey;"
  421.                 command="cmd_selectAll"/>      
  422.       <menuseparator id="context-sep-selectall"/>
  423.       <menuitem id="context-keywordfield"
  424.                 label="&keywordfield.label;"
  425.                 accesskey="&keywordfield.accesskey;"
  426.                 oncommand="AddKeywordForSearchField();"/>
  427.       <menuitem id="context-searchselect"
  428.                 accesskey="&search.accesskey;"
  429.                 oncommand="OpenSearch('internet', gContextMenu.searchSelected(), true);"/>
  430.       <menuseparator id="frame-sep"/>
  431.       <menu id="frame" label="&thisFrameMenu.label;" accesskey="&thisFrameMenu.accesskey;">
  432.         <menupopup>
  433.           <menuitem label="&showOnlyThisFrameCmd.label;"
  434.                     accesskey="&showOnlyThisFrameCmd.accesskey;"
  435.                     oncommand="gContextMenu.showOnlyThisFrame();"/>
  436.           <menuitem label="&openFrameCmd.label;"
  437.                     accesskey="&openFrameCmd.accesskey;"
  438.                     oncommand="gContextMenu.openFrame();"/>
  439.           <menuitem label="&openFrameCmdInTab.label;"
  440.                     accesskey="&openFrameCmdInTab.accesskey;"
  441.                     oncommand="gContextMenu.openFrameInTab();"/>
  442.           <menuseparator/>
  443.           <menuitem label="&reloadFrameCmd.label;"
  444.                     accesskey="&reloadFrameCmd.accesskey;"
  445.                     oncommand="gContextMenu.reloadFrame();"/>
  446.           <menuseparator/>
  447.           <menuitem label="&bookmarkFrameCmd.label;"
  448.                     accesskey="&bookmarkFrameCmd.accesskey;"
  449.                     oncommand="gContextMenu.addBookmarkForFrame();"/>
  450.           <menuitem label="&saveFrameCmd.label;"
  451.                     accesskey="&saveFrameCmd.accesskey;"
  452.                     oncommand="saveDocument(gContextMenu.target.ownerDocument);"/>
  453.           <menuseparator/>
  454.           <menuitem label="&viewFrameSourceCmd.label;"
  455.                     accesskey="&viewFrameSourceCmd.accesskey;"
  456.                     oncommand="gContextMenu.viewFrameSource();"/>
  457.           <menuitem label="&viewFrameInfoCmd.label;"
  458.                     accesskey="&viewFrameInfoCmd.accesskey;"
  459.                     oncommand="gContextMenu.viewFrameInfo();"/>        
  460.         </menupopup>
  461.       </menu>
  462.       <menuseparator id="context-sep-properties"/>
  463.       <menuitem id="context-viewpartialsource-selection"
  464.                 label="&viewPartialSourceForSelectionCmd.label;"
  465.                 accesskey="&viewPartialSourceCmd.accesskey;"
  466.                 oncommand="gContextMenu.viewPartialSource('selection');"/>
  467.       <menuitem id="context-viewpartialsource-mathml"
  468.                 label="&viewPartialSourceForMathMLCmd.label;"
  469.                 accesskey="&viewPartialSourceCmd.accesskey;"
  470.                 oncommand="gContextMenu.viewPartialSource('mathml');"/>
  471.       <menuitem id="context-viewsource"
  472.                 label="&viewPageSourceCmd.label;"
  473.                 accesskey="&viewPageSourceCmd.accesskey;"
  474.                 oncommand="BrowserViewSourceOfDocument(_content.document);"/>
  475.       <menuitem id="context-viewinfo"
  476.                 label="&viewPageInfoCmd.label;"
  477.                 accesskey="&viewPageInfoCmd.accesskey;"
  478.                 oncommand="gContextMenu.viewInfo();"/>
  479.       <menuitem id="context-metadata"
  480.                 label="&metadataCmd.label;"
  481.                 accesskey="&metadataCmd.accesskey;"
  482.                 oncommand="gContextMenu.showMetadata();"/>
  483.       <menuseparator hidden="true" id="context-sep-bidi"/>
  484.       <menuitem hidden="true" id="context-bidi-text-direction-toggle"
  485.                 label="&bidiSwitchTextDirectionItem.label;"
  486.                 accesskey="&bidiSwitchTextDirectionItem.accesskey;"
  487.                 oncommand="SwitchTextEntryDirection(gContextMenu.target)"/>
  488.       <menuitem hidden="true" id="context-bidi-page-direction-toggle"
  489.                 label="&bidiSwitchPageDirectionItem.label;"
  490.                 accesskey="&bidiSwitchPageDirectionItem.accesskey;"
  491.                 oncommand="SwitchDocumentDirection();"/>
  492.     </popup>
  493.  
  494.  
  495.   </popupset>
  496.  
  497.   <!-- Total hack. Used by the Go menu to build up items. -->
  498.   <tree id="hiddenHistoryTree" hidden="true" collapsed="true" datasources="rdf:null"
  499.         flags="dont-build-content"
  500.         hidecolumnpicker="true">
  501.     <template>
  502.       <rule>
  503.         <treechildren>
  504.           <treeitem uri="rdf:*" rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
  505.             <treerow>
  506.               <treecell label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  507.               <treecell label="rdf:http://home.netscape.com/NC-rdf#Date" hidden="true"/>
  508.             </treerow>
  509.           </treeitem>
  510.         </treechildren>
  511.       </rule>
  512.     </template>
  513.     <treecols id="hiddenHistoryTreeCols">
  514.       <treecol flex="1" id="Name"
  515.                hideheader="true" primary="true"/>
  516.       <treecol id="Date" hidden="true" hideheader="true"
  517.                sort="rdf:http://home.netscape.com/NC-rdf#Date" sortActive="true" sortDirection="descending"/>
  518.     </treecols>
  519.   </tree>
  520.  
  521.   <!-- bookmarks context menu -->
  522.   <popupset>
  523.     <menupopup id="bookmarks-context-menu" 
  524.                onpopupshowing="return BookmarksMenu.createContextMenu(event);"
  525.                onpopuphidden ="BookmarksMenu.destroyContextMenu(event);"/>
  526.   </popupset>
  527.  
  528.   <!-- bookmarks toolbar tooltip -->
  529.   <tooltip id="btTooltip" noautohide="true" 
  530.            onpopupshowing="return BookmarksToolbar.fillInBTTooltip(document.tooltipNode)">
  531.     <vbox id="btTooltipTextBox" flex="1">  
  532.       <label id="btTitleText" />
  533.       <label id="btUrlText" />
  534.     </vbox>
  535.   </tooltip>
  536.  
  537.   <toolbox id="navigator-toolbox" class="toolbox-top" mode="icons">
  538.     <!-- Menu -->
  539.     <toolbar type="menubar" id="toolbar-menubar" class="chromeclass-menubar" customizable="true"
  540.              defaultset="menubar-items,spring,throbber-box"
  541.              mode="icons" context="toolbar-context-menu">
  542.       <toolbaritem id="menubar-items" align="center">
  543.  
  544.        <menubar id="main-menubar" statusbar="statusbar-display"
  545.                 style="border:0px;padding:0px;margin:0px;-moz-appearance:none">
  546.             <menu label="&fileMenu.label;"
  547.                   accesskey="&fileMenu.accesskey;">
  548.               <menupopup id="menu_FilePopup" onpopupshowing="getContentAreaFrameCount();">
  549.                 <menuitem label="&newNavigatorCmd.label;"
  550.                           accesskey="&newNavigatorCmd.accesskey;"
  551.                           key="key_newNavigator"
  552.                           command="cmd_newNavigator"/>
  553.                 <menuitem command="cmd_newNavigatorTab" key="key_newNavigatorTab"
  554.                           label="&tabCmd.label;" accesskey="&tabCmd.accesskey;"/>
  555.                 <menuitem label="&openLocationCmd.label;" accesskey="&openLocationCmd.accesskey;" key="focusURLBar" command="Browser:OpenLocation"/>
  556.                 <menuitem label="&openFileCmd.label;" accesskey="&openFileCmd.accesskey;" key="openFileKb" command="Browser:OpenFile"/>
  557.                 <menuitem id="menu_closeWindow" hidden="true" command="cmd_closeWindow" key="key_closeWindow" label="&closeWindow.label;"/>
  558.                 <menuitem id="menu_close" label="&closeCmd.label;" key="key_close" accesskey="&closeCmd.accesskey;" command="cmd_close"/>
  559.                 <menuseparator/>
  560.                 <menuitem label="&savePageCmd.label;" accesskey="&savePageCmd.accesskey;" key="key_savePage" command="Browser:SavePage"/>
  561.                 <menuitem id="menu_saveFrame" label="&saveFrameCmd.label;" accesskey="&saveFrameCmd.accesskey;" oncommand="saveFrameDocument();" hidden="true"/>
  562.                 <menuitem id="menu_sendLink"  label="&sendPageCmd.label;"  accesskey="&sendPageCmd.accesskey;"  command="Browser:SendLink"/>
  563.                 <menuseparator/>
  564.                 <menuitem label="&printSetupCmd.label;" accesskey="&printSetupCmd.accesskey;" oncommand="PrintUtils.showPageSetup();"/>
  565.                 <menuitem label="&printPreviewCmd.label;" accesskey="&printPreviewCmd.accesskey;" oncommand="PrintUtils.printPreview(onEnterPrintPreview, onExitPrintPreview);"/>
  566.                 <menuitem label="&printCmd.label;" accesskey="&printCmd.accesskey;" key="printKb" command="cmd_print"/>
  567.                 <menuseparator/>
  568.                 <menuitem label="&import.label;" accesskey="&import.accesskey;" oncommand="BrowserImport();"/>
  569.                 <menuseparator/>
  570.                 <menuitem id="goOfflineMenuitem"
  571.                           label="&goOfflineCmd.label;" accesskey="&goOfflineCmd.accesskey;" 
  572.                           type="checkbox" oncommand="BrowserOffline.toggleOfflineStatus();"/>
  573.                 <menuitem id="menu_FileQuitItem" 
  574.               label="&quitApplicationCmdWin.label;"
  575.               accesskey="&quitApplicationCmdWin.accesskey;"
  576.               oncommand="goQuitApplication();"/>
  577.               </menupopup>
  578.             </menu>
  579.   
  580.             <menu label="&editMenu.label;"
  581.                   accesskey="&editMenu.accesskey;">
  582.               <menupopup id="menu_EditPopup">
  583.                 <menuitem label="&undoCmd.label;"
  584.                           key="key_undo"
  585.                           accesskey="&undoCmd.accesskey;"
  586.                           command="cmd_undo"/>
  587.                 <menuitem label="&redoCmd.label;"
  588.                           key="key_redo"
  589.                           accesskey="&redoCmd.accesskey;"
  590.                           command="cmd_redo"/>
  591.                 <menuseparator/>
  592.                 <menuitem label="&cutCmd.label;"
  593.                           key="key_cut"
  594.                           accesskey="&cutCmd.accesskey;"
  595.                           command="cmd_cut"/>
  596.                 <menuitem label="©Cmd.label;"
  597.                           key="key_copy"
  598.                           accesskey="©Cmd.accesskey;"
  599.                           command="cmd_copy"/>
  600.                 <menuitem label="&pasteCmd.label;"
  601.                           key="key_paste"
  602.                           accesskey="&pasteCmd.accesskey;"
  603.                           command="cmd_paste"/>
  604.                 <menuitem label="&deleteCmd.label;"
  605.                           key="key_delete"
  606.                           accesskey="&deleteCmd.accesskey;"
  607.                           command="cmd_delete"/>
  608.                 <menuseparator/>
  609.                 <menuitem label="&selectAllCmd.label;"
  610.                           key="key_selectAll"
  611.                           accesskey="&selectAllCmd.accesskey;"
  612.                           command="cmd_selectAll"/>
  613.                 <menuseparator/>
  614.                 <menuitem label="&findOnCmd.label;" accesskey="&findOnCmd.accesskey;" key="key_find" command="cmd_find"/>
  615.                 <menuitem label="&findAgainCmd.label;" accesskey="&findAgainCmd.accesskey;" key="key_findAgain" command="cmd_findAgain"/>
  616.                 <menuseparator hidden="true" id="textfieldDirection-separator"/>
  617.                 <menuitem hidden="true" id="textfieldDirection-swap" 
  618.                           label="&bidiSwitchTextDirectionItem.label;"
  619.                           key="key_SwitchTextDirection"
  620.                           accesskey="&bidiSwitchTextDirectionItem.accesskey;"
  621.                           command="cmd_SwitchTextDirection"/>
  622.               </menupopup>
  623.             </menu>
  624.   
  625.             <menu label="&viewMenu.label;" accesskey="&viewMenu.accesskey;">
  626.               <menupopup id="menu_viewPopup">
  627.                 <menu label="&viewToolbarsMenu.label;" accesskey="&viewToolbarsMenu.accesskey;"
  628.                       onpopupshowing="onViewToolbarsPopupShowing(event);">
  629.                   <menupopup onpopupshowing="updateToolbarStates(this);"> 
  630.                     <menuseparator/>
  631.                       <menuitem label="&viewCustomizeToolbar.label;" accesskey="&viewCustomizeToolbar.accesskey;"
  632.                                 command="cmd_CustomizeToolbars"/>             
  633.                   </menupopup>
  634.                 </menu>
  635.                 <menuitem id="toggle_taskbar" label="&taskbarCmd.label;" accesskey="&taskbarCmd.accesskey;" type="checkbox" oncommand="goToggleToolbar('status-bar','toggle_taskbar');" checked="true" />
  636.                 <menu label="&viewSidebarMenu.label;"
  637.                       accesskey="&viewSidebarMenu.accesskey;">
  638.                   <menupopup id="viewSidebarMenu">
  639.                     <menuitem key="viewBookmarksSidebarKb" observes="viewBookmarksSidebar" accesskey="&bookmarksSidebarCmd.accesskey;"/>
  640.                     <menuitem key="key_gotoHistory" observes="viewHistorySidebar" accesskey="&historySidebarCmd.accesskey;"/>
  641.                   </menupopup>
  642.                 </menu>            
  643.                 <menuseparator/>
  644.                 <menuitem label="&stopCmd.label;" accesskey="&stopCmd.accesskey;" command="Browser:Stop" key="key_stop"/>
  645.                 <menuitem accesskey="&reloadCmd.accesskey;" key="key_reload" label="&reloadCmd.label;" oncommand="BrowserReload();"/>
  646.                 <menuseparator/>
  647.                 <menu label="&textSize.label;" accesskey="&textSize.accesskey;">
  648.                   <menupopup>                    
  649.                     <menuitem key="key_textZoomEnlarge" label="&textZoomEnlargeCmd.label;" accesskey="&textZoomEnlargeCmd.accesskey;"
  650.                               command="cmd_textZoomEnlarge"/>
  651.                     <menuitem key="key_textZoomReduce"  label="&textZoomReduceCmd.label;"  accesskey="&textZoomReduceCmd.accesskey;"
  652.                               command="cmd_textZoomReduce"/>
  653.                     <menuseparator/>
  654.                     <menuitem key="key_textZoomReset" label="&textZoomResetCmd.label;" accesskey="&textZoomResetCmd.accesskey;"
  655.                               command="cmd_textZoomReset"/>
  656.                   </menupopup>
  657.                 </menu>
  658.                 <menu label="&pageStyleMenu.label;" accesskey="&pageStyleMenu.accesskey;">
  659.                   <menupopup onpopupshowing="stylesheetFillPopup(this);"
  660.                              oncommand="stylesheetSwitchAll(window._content, event.target.getAttribute('data')); setStyleDisabled(false);">
  661.                     <menuitem label="&pageStyleNoStyle.label;" accesskey="&pageStyleNoStyle.accesskey;"
  662.                               oncommand="setStyleDisabled(true); event.preventBubble();" type="radio"/>
  663.                     <menuitem label="&pageStylePersistentOnly.label;" accesskey="&pageStylePersistentOnly.accesskey;" type="radio" checked="true"/>
  664.                     <menuseparator/>
  665.                   </menupopup>
  666.                 </menu>
  667.                 <menu label="&charsetMenu.label;" accesskey="&charsetMenu.accesskey;"
  668.                       datasources="rdf:charset-menu" ref="NC:BrowserCharsetMenuRoot"
  669.                       oncommand="MultiplexHandler(event)" onpopupshowing="CreateMenu('browser');UpdateMenus(event)" onpopupshown="CreateMenu('more-menu');">
  670.                     <template>
  671.                         <rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
  672.                             <menupopup>
  673.                             <menuseparator uri="..." />
  674.                             </menupopup>
  675.                         </rule>
  676.                         <rule>
  677.                             <menupopup>
  678.                             <menuitem type="radio" name="charsetGroup" checked="rdf:http://home.netscape.com/NC-rdf#Checked" uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  679.                             </menupopup>
  680.                         </rule>
  681.                     </template>
  682.       
  683.                     <menupopup>
  684.                     <menu label="&charsetMenuAutodet.label;" accesskey="&charsetMenuAutodet.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserAutodetMenuRoot">
  685.                         <template>
  686.                             <rule rdf:type="http://home.netscape.com/NC-rdf#CharsetDetector">
  687.                                 <menupopup>
  688.                                 <menuitem type="radio" name="detectorGroup" checked="rdf:http://home.netscape.com/NC-rdf#Checked" uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  689.                                 </menupopup>
  690.                             </rule>
  691.                         </template>
  692.                         <menupopup>
  693.                         </menupopup>
  694.                     </menu>
  695.                     <menu label="&charsetMenuMore.label;" accesskey="&charsetMenuMore.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMoreCharsetMenuRoot">
  696.                         <template>
  697.                             <rule>
  698.                                 <menupopup>
  699.                                 <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  700.                                 </menupopup>
  701.                             </rule>
  702.                         </template>
  703.                         <menupopup>
  704.                             <menu label="&charsetMenuMore1.label;" accesskey="&charsetMenuMore1.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore1CharsetMenuRoot">
  705.                                 <template>
  706.                                     <rule>
  707.                                         <menupopup>
  708.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  709.                                         </menupopup>
  710.                                     </rule>
  711.                                 </template>
  712.                                 <menupopup>
  713.                                 </menupopup>
  714.                             </menu>
  715.                             <menu label="&charsetMenuMore2.label;" accesskey="&charsetMenuMore2.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore2CharsetMenuRoot">
  716.                                 <template>
  717.                                     <rule>
  718.                                         <menupopup>
  719.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  720.                                         </menupopup>
  721.                                     </rule>
  722.                                 </template>
  723.                                 <menupopup>
  724.                                 </menupopup>
  725.                             </menu>
  726.                             <menu label="&charsetMenuMore3.label;" accesskey="&charsetMenuMore3.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore3CharsetMenuRoot">
  727.                                 <template>
  728.                                     <rule>
  729.                                         <menupopup>
  730.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  731.                                         </menupopup>
  732.                                     </rule>
  733.                                 </template>
  734.                                 <menupopup>
  735.                                 </menupopup>
  736.                             </menu>
  737.                             <menu label="&charsetMenuMore4.label;" accesskey="&charsetMenuMore4.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore4CharsetMenuRoot">
  738.                                 <template>
  739.                                     <rule>
  740.                                         <menupopup>
  741.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  742.                                         </menupopup>
  743.                                     </rule>
  744.                                 </template>
  745.                                 <menupopup>
  746.                                 </menupopup>
  747.                             </menu>
  748.                             <menu label="&charsetMenuMore5.label;" accesskey="&charsetMenuMore5.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore5CharsetMenuRoot">
  749.                                 <template>
  750.                                     <rule>
  751.                                         <menupopup>
  752.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  753.                                         </menupopup>
  754.                                     </rule>
  755.                                 </template>
  756.                                 <menupopup>
  757.                                 </menupopup>
  758.                             </menu>
  759.                             <menu label="&charsetMenuUnicode.label;" accesskey="&charsetMenuUnicode.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserUnicodeCharsetMenuRoot">
  760.                                 <template>
  761.                                     <rule>
  762.                                         <menupopup>
  763.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  764.                                         </menupopup>
  765.                                     </rule>
  766.                                 </template>
  767.                                 <menupopup>
  768.                                 </menupopup>
  769.                             </menu>
  770.                             <menuseparator />
  771.                         </menupopup>
  772.                     </menu>
  773.                     <menuitem name="charsetCustomize" accesskey="&charsetCustomize.accesskey;" label="&charsetCustomize.label;" oncommand="window.openDialog('chrome://global/content/customizeCharset.xul','PrefWindow', 'chrome,modal=yes,resizable=yes', 'browser')"/>
  774.                     </menupopup>
  775.                 </menu>
  776.                 <menuseparator/>
  777.                 <menuitem accesskey="&pageSourceCmd.accesskey;" label="&pageSourceCmd.label;" key="key_viewSource" command="View:PageSource"/>
  778.                 <menuitem accesskey="&fullScreenCmd.accesskey;"
  779.                           label="&fullScreenCmd.label;" key="key_fullScreen"
  780.                           command="View:FullScreen"/>
  781.                 <menuseparator hidden="true" id="documentDirection-separator"/>
  782.                 <menuitem hidden="true" id="documentDirection-swap" 
  783.                           label="&bidiSwitchPageDirectionItem.label;" accesskey="&bidiSwitchPageDirectionItem.accesskey;"
  784.                           oncommand="SwitchDocumentDirection()"/>
  785.               </menupopup>
  786.             </menu>
  787.   
  788.             <menu label="&goMenu.label;" accesskey="&goMenu.accesskey;" 
  789.                   oncommand="var url = event.target.getAttribute('statustext'); if (url) openUILink(url, event, false, true);"
  790.                   onclick="checkForMiddleClick(this, event);">
  791.  
  792.               <menupopup id="goPopup" onpopupshowing="updateGoMenu(this);" onpopuphiding="onGoMenuHidden();">
  793.                 <menuitem label="&backCmd.label;"
  794.                           accesskey="&backCmd.accesskey;"
  795.                           key="goBackKb"
  796.                           oncommand="BrowserBack(event, true)"
  797.                           onclick="checkForMiddleClick(this, event);">
  798.                   <observes element="Browser:Back" attribute="disabled" />
  799.                 </menuitem>
  800.                 <menuitem label="&forwardCmd.label;" 
  801.                           accesskey="&forwardCmd.accesskey;"
  802.                           key="goForwardKb" 
  803.                           oncommand="BrowserForward(event, true)"
  804.                           onclick="checkForMiddleClick(this, event);">
  805.                   <observes element="Browser:Forward" attribute="disabled" />
  806.                 </menuitem>
  807.  
  808.                           
  809.                           
  810.                 <menuitem label="&goHomeCmd.label;"    accesskey="&goHomeCmd.accesskey;"    command="Browser:Home" key="goHome"/>
  811.                 <menuseparator id="startHistorySeparator"/>
  812.                 <menuseparator hidden="true" id="endHistorySeparator"/>
  813.                 <menuitem observes="viewHistorySidebar" accesskey="&historySidebarCmd.accesskey;" key="key_gotoHistory"/>
  814.               </menupopup>
  815.             </menu>
  816.  
  817.             <menu id="bookmarks-menu" label="&bookmarksMenu.label;" accesskey="&bookmarksMenu.accesskey;"
  818.                   datasources="rdf:bookmarks rdf:files rdf:localsearch" 
  819.                   ref="NC:BookmarksRoot" flags="dont-test-empty"
  820.                   template='bookmarks-template'
  821.                   infer="forward-proxy"
  822.                   onpopupshowing="BookmarksMenu.onShowMenu(event.target)"
  823.                   onpopuphidden="BookmarksMenu.onHideMenu(event.target)"
  824.                   oncommand="BookmarksMenu.loadBookmark(event, event.target, this.database)"
  825.                   onclick="BookmarksMenu.loadBookmarkMiddleClick(event, this.database)"
  826.                   ondraggesture="nsDragAndDrop.startDrag(event, BookmarksMenuDNDObserver)"
  827.                   ondragdrop="nsDragAndDrop.drop(event, BookmarksMenuDNDObserver); event.preventBubble()"
  828.                   ondragenter="nsDragAndDrop.dragEnter(event, BookmarksMenuDNDObserver); event.preventBubble()"
  829.                   ondragexit="nsDragAndDrop.dragExit(event, BookmarksMenuDNDObserver); event.preventBubble()"
  830.                   ondragover="nsDragAndDrop.dragOver(event, BookmarksMenuDNDObserver); event.preventBubble()">
  831.               <menupopup id="menu_BookmarksPopup" contextmenu='bookmarks-context-menu'>
  832.                 <menuitem key="addBookmarkAsKb"
  833.                           label="&addCurPageAsCmd.label;"
  834.                           accesskey="&addCurPageAsCmd.accesskey;"
  835.                           command="Browser:AddBookmarkAs"/>
  836.                 <menuitem key="manBookmarkKb" 
  837.                           label="&manBookmarksCmd.label;"
  838.                           accesskey="&manBookmarksCmd.accesskey;"    
  839.                           oncommand="toOpenWindowByType('bookmarks:manager', 'chrome://browser/content/bookmarks/bookmarksManager.xul');"/>
  840.                 <menuseparator/>
  841.               </menupopup>
  842.             </menu>
  843.         
  844.           <menu label="&toolsMenu.label;" accesskey="&toolsMenu.accesskey;">
  845.             <menupopup id="menu_ToolsPopup"
  846.                        onpopupshowing="MailIntegration.updateUnreadCount();"
  847.             >
  848.               <menuitem label="&search.label;" accesskey="&search.accesskey;" 
  849.                         key="key_search" command="Tools:Search"/>
  850.               <menuseparator/>
  851.               <menuitem label="&mailButton.readMail.label;" 
  852.                                accesskey="&mailButton.readMail.accesskey;"
  853.                                command="Browser:ReadMail"/>
  854.               <menuitem label="&mailButton.newMessage.label;" 
  855.                                accesskey="&mailButton.newMessage.accesskey;"
  856.                                key="key_newMessage" command="Browser:NewMessage"/>
  857.  
  858.               <menuseparator/>
  859.               <menuitem label="&downloads.label;" accesskey="&downloads.accesskey;"
  860.                         key="key_openDownloads"
  861.                         command="Tools:Downloads"/>
  862.               <menuitem label="&extensions.label;" accesskey="&extensions.accesskey;" 
  863.                         command="Tools:Extensions"/>
  864.               <menuitem label="&themes.label;" accesskey="&themes.accesskey;" 
  865.                         command="Tools:Themes"/>
  866.               <menuseparator id="devToolsSeparator"/>
  867.               <menuitem id="javascriptConsole" 
  868.                         label="&javaScriptConsoleCmd.label;" accesskey="&javaScriptConsoleCmd.accesskey;" 
  869.                         oncommand="toJavaScriptConsole();"/>
  870.               <menuitem accesskey="&pageInfoCmd.accesskey;" label="&pageInfoCmd.label;"   
  871.                         command="View:PageInfo"/>
  872.  
  873.               <menuseparator id="prefSep"/>
  874.               <menuitem id="menu_preferences"
  875.                         label="&preferencesCmd.label;"
  876.                         accesskey="&preferencesCmd.accesskey;"
  877.                         oncommand="openPreferences();"/>
  878.             </menupopup>
  879.           </menu>
  880.     
  881.  
  882.           <menu label="&helpMenuWin.label;"
  883.                 accesskey="&helpMenuWin.accesskey;">
  884.             <menupopup id="menu_HelpPopup">
  885.               <menuseparator/>
  886.               <menuitem accesskey="&promote.accesskey;"
  887.                         label="&promote.label;"
  888.                         oncommand="openUILink(getUILink('promote'), event, false, true);"
  889.                         onclick="checkForMiddleClick(this, event);"/>
  890.               <menuseparator/>
  891.               <menuitem id="aboutName"
  892.                         accesskey="&aboutCmd.accesskey;"
  893.                         label="&aboutCmd.label;"
  894.                         oncommand="openAboutDialog();"/>
  895.             </menupopup>
  896.           </menu>
  897.         </menubar>
  898.  
  899.  
  900.   <template id='bookmarks-template' xmlns:nc="http://home.netscape.com/NC-rdf#">
  901.     <rule parent="hbox" rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
  902.       <toolbarseparator uri="rdf:*"
  903.                         rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type"/>
  904.     </rule>
  905.     <rule parent="hbox" rdf:type="http://home.netscape.com/NC-rdf#Livemark">
  906.       <toolbarbutton type="menu" class="bookmark-item" uri="rdf:*" editable="true"
  907.                      rdf:type="http://home.netscape.com/NC-rdf#Folder"
  908.                      label="rdf:http://home.netscape.com/NC-rdf#Name"
  909.                      livemark="true"
  910.                      chromedir="&locale.dir;">
  911.         <menupopup contextmenu="bookmarks-context-menu"/>
  912.       </toolbarbutton>
  913.     </rule>
  914.     <rule parent="hbox" iscontainer="true">
  915.       <toolbarbutton type="menu" class="bookmark-item" uri="rdf:*" editable="true"
  916.                      rdf:type="http://home.netscape.com/NC-rdf#Folder"
  917.                      label="rdf:http://home.netscape.com/NC-rdf#Name">
  918.         <menupopup contextmenu="bookmarks-context-menu"/>
  919.       </toolbarbutton>
  920.     </rule>
  921.     <rule parent="hbox">
  922.       <toolbarbutton class="bookmark-item" uri="rdf:*" editable="true" 
  923.                      status="rdf:http://home.netscape.com/WEB-rdf#status"
  924.                      rdf:type="http://home.netscape.com/NC-rdf#Bookmark"
  925.                      image="rdf:http://home.netscape.com/NC-rdf#Icon"
  926.                      statustext="rdf:http://home.netscape.com/NC-rdf#URL"
  927.                      tooltip="btTooltip"
  928.                      label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  929.     </rule>
  930.     <rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
  931.       <menupopup> 
  932.         <menuseparator uri="rdf:*" />
  933.       </menupopup>
  934.     </rule>
  935.     <rule rdf:type="http://home.netscape.com/NC-rdf#Livemark">
  936.       <menupopup>
  937.         <menu class="menu-iconic bookmark-item" uri="rdf:*"
  938.               label="rdf:http://home.netscape.com/NC-rdf#Name"
  939.               type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
  940.               livemark="true">
  941.           <menupopup contextmenu="bookmarks-context-menu"/>
  942.         </menu>
  943.       </menupopup>
  944.     </rule>
  945.     <rule iscontainer="true">
  946.       <menupopup>
  947.         <menu class="menu-iconic bookmark-item" uri="rdf:*"
  948.               label="rdf:http://home.netscape.com/NC-rdf#Name"
  949.               type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
  950.           <menupopup contextmenu="bookmarks-context-menu"/>
  951.         </menu>
  952.       </menupopup>
  953.     </rule>
  954.     <rule>
  955.       <menupopup>
  956.         <menuitem class="menuitem-iconic bookmark-item" uri="rdf:*"
  957.                   label="rdf:http://home.netscape.com/NC-rdf#Name" 
  958.                   image="rdf:http://home.netscape.com/NC-rdf#Icon"
  959.                   status="rdf:http://home.netscape.com/WEB-rdf#status"
  960.                   statustext="rdf:http://home.netscape.com/NC-rdf#URL"/>
  961.       </menupopup>
  962.     </rule>
  963.   </template>
  964.       </toolbaritem>
  965.       <toolbaritem id="softwareupdate-item" title="&updatesItem.title;" align="center" pack="center">
  966.         <toolbarbutton type="updates" id="softwareupdate"/>
  967.       </toolbaritem>
  968.     </toolbar>
  969.  
  970.     <toolbarpalette id="BrowserToolbarPalette">
  971.       <toolbarbutton id="back-button" type="menu-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  972.                      chromedir="&locale.dir;"
  973.                      label="&backCmd.label;"
  974.                      oncommand="BrowserBack(event)"
  975.                      onclick="checkForMiddleClick(this, event);"
  976.                      context="backMenu"
  977.                      tooltiptext="&backButton.tooltip;">
  978.         <observes element="Browser:Back" attribute="disabled"/>
  979.         <menupopup context=""
  980.                    onpopupshowing="BrowserBackMenu(event);"
  981.                    oncommand="gotoHistoryIndex(event); event.preventBubble();"
  982.                    onclick="checkForMiddleClick(this, event);"/>
  983.       </toolbarbutton>
  984.     
  985.       <toolbarbutton id="forward-button" type="menu-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  986.                      chromedir="&locale.dir;"
  987.                      label="&forwardCmd.label;"
  988.                      oncommand="BrowserForward(event)"
  989.                      onclick="checkForMiddleClick(this, event);"
  990.                      context="forwardMenu"
  991.                      tooltiptext="&forwardButton.tooltip;">
  992.         <observes element="Browser:Forward" attribute="disabled"/>
  993.         <menupopup context=""
  994.                    onpopupshowing="BrowserForwardMenu(event);"
  995.                    oncommand="gotoHistoryIndex(event); event.preventBubble()"
  996.                    onclick="checkForMiddleClick(this, event);"/>
  997.       </toolbarbutton>
  998.     
  999.       <toolbarbutton id="reload-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1000.                      label="&reloadCmd.label;"
  1001.                      oncommand="if (event.shiftKey) BrowserReloadSkipCache(); else BrowserReload();"  
  1002.                      tooltiptext="&reloadButton.tooltip;"/>
  1003.                     
  1004.       <toolbarbutton id="stop-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1005.                      label="&stopCmd.label;"
  1006.                      command="Browser:Stop"
  1007.                      tooltiptext="&stopButton.tooltip;"/>
  1008.  
  1009.       <toolbarbutton id="home-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1010.                      label="&homeButton.label;"
  1011.                      ondragover="nsDragAndDrop.dragOver(event, homeButtonObserver);"
  1012.                      ondragdrop="nsDragAndDrop.drop(event, homeButtonObserver);"
  1013.                      ondragexit="nsDragAndDrop.dragExit(event, homeButtonObserver);"
  1014.                      onclick="BrowserHomeClick(event);"/>
  1015.  
  1016.       <toolbaritem id="urlbar-container" align="center" flex="1000"
  1017.                    title="&locationItem.title;" class="chromeclass-location">
  1018.         <textbox id="urlbar" flex="1"
  1019.                  type="autocomplete"
  1020.                  autocompletesearch="history" 
  1021.                  autocompletepopup="PopupAutoComplete"
  1022.                  completeselectedindex="true"
  1023.                  tabscrolling="true"
  1024.                  showcommentcolumn="true"
  1025.                  enablehistory="true"
  1026.                  oninput="gBrowser.userTypedValue = this.value"
  1027.                  ontextentered="return handleURLBarCommand(param);"
  1028.                  ontextreverted="return handleURLBarRevert();"
  1029.                  onfocus="URLBarFocusHandler(event, this);"
  1030.                  onmousedown="URLBarMouseDownHandler(event, this);"
  1031.                  onclick="URLBarClickHandler(event, this);"
  1032.                  oninfoclick="displaySecurityInfo();">
  1033.           <deck id="page-proxy-deck">
  1034.             <image id="page-proxy-button"
  1035.                     ondraggesture="PageProxyDragGesture(event);"
  1036.                     tooltiptext="&proxyIcon.tooltip;"/>
  1037.             <image id="page-proxy-favicon"
  1038.                     ondraggesture="PageProxyDragGesture(event);"
  1039.                     onload="this.parentNode.selectedIndex = 1;
  1040.                             event.stopPropagation();
  1041.                             event.preventBubble();"
  1042.                     onerror="gBrowser.addToMissedIconCache(this.src);
  1043.                              this.removeAttribute('src');
  1044.                              this.parentNode.selectedIndex = 0;"
  1045.                     tooltiptext="&proxyIcon.tooltip;"/>
  1046.           </deck>
  1047.         </textbox>
  1048.       </toolbaritem>
  1049.  
  1050.       <toolbaritem id="search-container" title="&searchItem.title;" 
  1051.                    align="center" class="chromeclass-toolbar-additional">
  1052.         <searchbar id="searchbar"/>
  1053.       </toolbaritem>
  1054.       
  1055.       <toolbaritem id="go-container" align="center" class="chromeclass-toolbar-additional">
  1056.         <toolbarbutton id="go-button"
  1057.                        chromedir="&locale.dir;"
  1058.                        label="&goButton.label;"
  1059.                        oncommand="handleURLBarCommand(event);"
  1060.                        ondragover="nsDragAndDrop.dragOver(event, goButtonObserver);"
  1061.                        ondragdrop="nsDragAndDrop.drop(event, goButtonObserver);"
  1062.                        ondragexit="nsDragAndDrop.dragExit(event, goButtonObserver);"
  1063.                        tooltiptext="&goButton.tooltip;"/> 
  1064.       </toolbaritem>
  1065.       
  1066.       <toolbarbutton id="print-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1067.                      label="&printButton.label;" command="cmd_print"
  1068.                      tooltiptext="&printButton.tooltip;"/>
  1069.  
  1070.       <toolbaritem id="throbber-box" title="&throbberItem.title;" align="center" pack="center">
  1071.         <button id="navigator-throbber" 
  1072.                 oncommand="goClickThrobber('browser.throbber.url', event)"
  1073.                 onclick="checkForMiddleClick(this, event);"
  1074.                 tooltiptext="&throbber.tooltip;"/>
  1075.       </toolbaritem>
  1076.       
  1077.       <toolbaritem id="personal-bookmarks" title="&bookmarksItem.title;" flex="1"
  1078.                    class="chromeclass-directories">
  1079.         <stack id="bookmarks-stack" flex="1" style="min-width:0px; width:0px;"
  1080.                onpopupshowing="BookmarksToolbar.setOpenedMenu(event);"
  1081.                onpopuphidden="BookmarksToolbar.unsetOpenedMenu(event);">
  1082.           <hbox id="bookmarks-ptf" class="bookmarks-toolbar-items" contextmenu="bookmarks-context-menu"
  1083.                 flex="1" style="min-width:0px; width:0px;margin-left: 3px;" 
  1084.                 datasources="rdf:bookmarks rdf:files rdf:localsearch"
  1085.                 template="bookmarks-template" flags="dont-test-empty"
  1086.                 infer="forward-proxy"
  1087.                 rdf:type="http://home.netscape.com/NC-rdf#Folder"
  1088.                 onpopupshowing="BookmarksMenu.onShowMenu(event.target)"
  1089.                 onpopuphidden="BookmarksMenu.onHideMenu(event.target)"
  1090.                 oncommand="BookmarksMenu.loadBookmark(event, event.target, this.database)"
  1091.                 onclick="BookmarksMenu.loadBookmarkMiddleClick(event, this.database)"
  1092.                 ondraggesture="nsDragAndDrop.startDrag(event, BookmarksMenuDNDObserver)"
  1093.                 ondragdrop="nsDragAndDrop.drop(event, BookmarksMenuDNDObserver); event.preventBubble()"
  1094.                 ondragenter="nsDragAndDrop.dragEnter(event, BookmarksMenuDNDObserver); event.preventBubble()"
  1095.                 ondragexit="nsDragAndDrop.dragExit(event, BookmarksMenuDNDObserver); event.preventBubble()"
  1096.                 ondragover="nsDragAndDrop.dragOver(event, BookmarksMenuDNDObserver); event.preventBubble()">
  1097.           </hbox>
  1098.           <hbox class="bookmarks-toolbar-overflow-items" mousethrough="always">
  1099.             <hbox mousethrough="always" id="overflow-padder"/>
  1100.               <toolbarbutton id="bookmarks-chevron" type="menu" class="chevron"
  1101.                              chromedir="&locale.dir;"
  1102.                              mousethrough="never" collapsed="true" 
  1103.                              datasources="rdf:bookmarks rdf:files rdf:localsearch"
  1104.                              template="bookmarks-template" flags="dont-test-empty"
  1105.                              onpopupshowing="BookmarksMenu.onShowMenu(event.target)"
  1106.                              onpopuphidden="BookmarksMenu.onHideMenu(event.target)"
  1107.                              oncommand="BookmarksMenu.loadBookmark(event, event.target, this.database)"
  1108.                              onclick="BookmarksMenu.loadBookmarkMiddleClick(event, this.database)"
  1109.                              ondraggesture="nsDragAndDrop.startDrag(event, BookmarksMenuDNDObserver)"
  1110.                              ondragdrop="nsDragAndDrop.drop(event, BookmarksMenuDNDObserver); event.preventBubble()"
  1111.                              ondragenter="nsDragAndDrop.dragEnter(event, BookmarksMenuDNDObserver); event.preventBubble()"
  1112.                              ondragexit="nsDragAndDrop.dragExit(event, BookmarksMenuDNDObserver); event.preventBubble()"
  1113.                              ondragover="nsDragAndDrop.dragOver(event, BookmarksMenuDNDObserver); event.preventBubble()">
  1114.                 <menupopup contextmenu="bookmarks-context-menu"
  1115.                            onpopupshowing="if (event.target == this) BookmarksToolbar.updateOverflowMenu(this);"/>
  1116.               </toolbarbutton>
  1117.             </hbox>
  1118.             <toolbarbutton class="bookmark-item bookmarks-toolbar-customize" mousethrough="never"
  1119.                            label="&bookmarksToolbarItem.label;"/>
  1120.           </stack>
  1121.         </toolbaritem>
  1122.  
  1123.         <toolbarbutton id="downloads-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1124.                        observes="Tools:Downloads"
  1125.                        ondragdrop="nsDragAndDrop.drop(event, DownloadsButtonDNDObserver); event.preventBubble()"
  1126.                        ondragover="nsDragAndDrop.dragOver(event, DownloadsButtonDNDObserver); event.preventBubble()"
  1127.                        ondragenter="nsDragAndDrop.dragEnter(event, DownloadsButtonDNDObserver); event.preventBubble()"
  1128.                        ondragexit="nsDragAndDrop.dragExit(event, DownloadsButtonDNDObserver); event.preventBubble()"
  1129.                        label="&downloads.label;"
  1130.                        tooltiptext="&downloads.tooltip;"/>
  1131.  
  1132.         <toolbarbutton id="history-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1133.                        observes="viewHistorySidebar"
  1134.                        tooltiptext="&historyButton.tooltip;"/>
  1135.  
  1136.         <toolbarbutton id="mail-button" type="menu" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1137.                        label="&mailButton.label;" orient="vertical"
  1138.                        onmouseover="MailIntegration.updateUnreadCount();"
  1139.                        tooltiptext="&mailButton.tooltip;">
  1140.           <menupopup tooltiptext="">
  1141.             <menuitem accesskey="&mailButton.readMail.accesskey;"
  1142.                       command="Browser:ReadMail"/>
  1143.             <menuitem label="&mailButton.newMessage.label;" 
  1144.                       accesskey="&mailButton.newMessage.accesskey;"
  1145.                       command="Browser:NewMessage"/>
  1146.           </menupopup>
  1147.         </toolbarbutton>                       
  1148.  
  1149.         <toolbarbutton id="bookmarks-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1150.                        observes="viewBookmarksSidebar"
  1151.                        tooltiptext="&bookmarksButton.tooltip;"
  1152.                        ondragover="nsDragAndDrop.dragOver(event, bookmarksButtonObserver);"
  1153.                        ondragdrop="nsDragAndDrop.drop(event, bookmarksButtonObserver);"
  1154.                        ondragexit="nsDragAndDrop.dragExit(event, bookmarksButtonObserver);"/>
  1155.  
  1156.         <toolbarbutton id="new-tab-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1157.                        label="&tabCmd.label;"
  1158.                        command="cmd_newNavigatorTab"
  1159.                        tooltiptext="&newTabButton.tooltip;"/>
  1160.  
  1161.         <toolbarbutton id="new-window-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1162.                        label="&newNavigatorCmd.label;"
  1163.                        command="key_newNavigator"
  1164.                        tooltiptext="&newWindowButton.tooltip;"/>
  1165.  
  1166.         <toolbarbutton id="cut-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1167.                        label="&cutCmd.label;"
  1168.                        command="cmd_cut"
  1169.                        tooltiptext="&cutButton.tooltip;"/>
  1170.  
  1171.         <toolbarbutton id="copy-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1172.                        label="©Cmd.label;"
  1173.                        command="cmd_copy"
  1174.                        tooltiptext="©Button.tooltip;"/>
  1175.  
  1176.         <toolbarbutton id="paste-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1177.                        label="&pasteCmd.label;"
  1178.                        command="cmd_paste"
  1179.                        tooltiptext="&pasteButton.tooltip;"/>
  1180.  
  1181.     </toolbarpalette>
  1182.  
  1183.     <toolbar id="nav-bar" class="toolbar-primary chromeclass-toolbar"
  1184.              toolbarname="&navbarCmd.label;" accesskey="&navbarCmd.accesskey;"
  1185.              fullscreentoolbar="true" mode="icons" 
  1186.              customizable="true"
  1187.              defaultset="back-button,forward-button,reload-button,stop-button,home-button,urlbar-container,go-container,search-container,fullscreenflex,window-controls"
  1188.              context="toolbar-context-menu">
  1189.       <hbox id="fullscreenflex" flex="1" hidden="true" fullscreencontrol="true"/>
  1190.       <hbox id="window-controls" hidden="true" fullscreencontrol="true">
  1191.         <toolbarbutton id="minimize-button" class="toolbarbutton-1"
  1192.                        tooltiptext="&fullScreenMinimize.tooltip;"
  1193.                        oncommand="window.minimize();"/>
  1194.  
  1195.         <toolbarbutton id="restore-button" class="toolbarbutton-1"
  1196.                        tooltiptext="&fullScreenRestore.tooltip;"
  1197.                        oncommand="BrowserFullScreen();"/>
  1198.  
  1199.         <toolbarbutton id="close-button" class="toolbarbutton-1"
  1200.                        tooltiptext="&fullScreenClose.tooltip;"
  1201.                        oncommand="window.close();"/>
  1202.       </hbox>
  1203.     </toolbar>
  1204.  
  1205.     <toolbarset id="customToolbars" context="toolbar-context-menu"/>
  1206.  
  1207.     <toolbar id="PersonalToolbar" class="chromeclass-directories" iconsize="small"
  1208.              customizable="true" defaultset="personal-bookmarks" mode="icons"
  1209.              toolbarname="&personalbarCmd.label;" accesskey="&personalbarCmd.accesskey;"
  1210.              context="toolbar-context-menu"/>   
  1211.   </toolbox>
  1212.   
  1213.   <hbox flex="1" id="browser">
  1214.     <vbox id="sidebar-box" hidden="true" class="chromeclass-extrachrome">
  1215.       <sidebarheader align="center">
  1216.         <label id="sidebar-title" persist="value" flex="1" crop="end"/>
  1217.         <image id="sidebar-throbber"/>
  1218.         <toolbarbutton class="tabs-closebutton" tooltiptext="&sidebarCloseButton.tooltip;" oncommand="toggleSidebar();"/>
  1219.       </sidebarheader>        
  1220.       <browser id="sidebar" flex="1" autoscroll="false"
  1221.                style="min-width: 150px; width: 200px; max-width: 400px;"/>
  1222.     </vbox>    
  1223.     
  1224.     <splitter id="sidebar-splitter" class="chromeclass-extrachrome" hidden="true"/>
  1225.     <vbox id="appcontent" flex="1">
  1226.       <tabbrowser id="content" disablehistory="true"
  1227.                   flex="1" contenttooltip="aHTMLTooltip"
  1228.                   contentcontextmenu="contentAreaContextMenu"
  1229.                   onnewtab="BrowserOpenTab();"
  1230.                   onkeyup="onBrowserKeyUp(event);"
  1231.                   autocompletepopup="PopupAutoComplete"
  1232.                   ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);"
  1233.                   onclick="return contentAreaClick(event, false);"/>
  1234.     </vbox>
  1235.   </hbox>
  1236.   
  1237.     <toolbar id="FindToolbar" hidden="true" align="center" fullscreentoolbar="true">
  1238.       <toolbarbutton id="find-closebutton" tooltiptext="&findCloseButton.tooltip;"
  1239.                      oncommand="closeFindBar();"/>
  1240.  
  1241.       <label value="&find.label;"/>
  1242.       <hbox id="find-field-container">
  1243.         <textbox id="find-field" oninput="find(this.value);" onfocus="onFindBarFocus();"
  1244.                 onkeypress="onFindBarKeyPress(event);" onblur="onFindBarBlur();"/>
  1245.       </hbox>
  1246.       <toolbarbutton id="find-next" label="&findNext.label;" tooltiptext="&findNext.tooltip;"
  1247.                      command="cmd_findAgain" disabled="true"/>
  1248.       <toolbarbutton id="find-previous" label="&findPrevious.label;" tooltiptext="&findPrevious.tooltip;"
  1249.                      command="cmd_findPrevious" disabled="true"/>
  1250.       <toolbarbutton id="highlight" label="&highlight.label;" tooltiptext="&highlight.tooltip;"
  1251.                      oncommand="toggleHighlight(!this.checked);
  1252.                                 if (gFindMode != FIND_NORMAL) setFindCloseTimeout();"
  1253.                      type="checkbox" disabled="true"/>
  1254.       <checkbox id="find-case-sensitive" oncommand="toggleCaseSensitivity(this.checked);"
  1255.                 label="&caseSensitiveCheckbox.label;" accesskey="&caseSensitiveCheckbox.accesskey;"/>
  1256.       <image id="find-status-icon"/>
  1257.       <label id="find-status"/>
  1258.     </toolbar>
  1259.  
  1260.   
  1261.   <statusbar class="chromeclass-status" id="status-bar"
  1262.              ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);">
  1263.     <statusbarpanel id="statusbar-display" flex="1"/>
  1264.     <statusbarpanel class="statusbarpanel-progress" collapsed="true" id="statusbar-progresspanel">
  1265.       <progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0"/>
  1266.     </statusbarpanel>
  1267.     <statusbarpanel id="security-button" class="statusbarpanel-iconic-text"
  1268.                     ondblclick="if (event.button == 0) displaySecurityInfo();"/>
  1269.     <statusbarpanel id="page-report-button" type="menu" 
  1270.                     class="statusbarpanel-menu-iconic" 
  1271.                     tooltiptext="&pageReportIcon.tooltip;">
  1272.       <menupopup onpopupshowing="gPopupBlockerObserver.fillPopupList(event);">
  1273.         <menuitem observes="blockedPopupAllowSite"/>
  1274.         <menuitem observes="blockedPopupEditSettings"/>
  1275.         <menuitem observes="blockedPopupDontShowMessage"/>
  1276.         <menuseparator observes="blockedPopupsSeparator"/>
  1277.       </menupopup>
  1278.     </statusbarpanel>
  1279.     <statusbarpanel id="livemark-button" type="menu" class="statusbarpanel-menu-iconic" chromedir="&locale.dir;">
  1280.       <menupopup onpopupshowing="return livemarkFillPopup(this);"
  1281.                  oncommand="livemarkAddMark(window._content, event.target.getAttribute('data'));" />
  1282.     </statusbarpanel>
  1283.   </statusbar>
  1284. </window>
  1285.   
  1286.