home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 December / PCWorld_2005-12_cd.bin / komunikace / netscape / nsb-install-8-0.exe / chrome / browser.jar / content / browser / browser.xul < prev    next >
Extensible Markup Language  |  2005-09-26  |  75KB  |  1,341 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
  4. <?xml-stylesheet href="chrome://browser/skin/sidebar/sidebar.css" type="text/css"?>
  5. <?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
  6. <?xml-stylesheet href="chrome://browser/content/webmail.css" type="text/css"?>
  7. <?xml-stylesheet href="chrome://browser/skin/webmail.css" type="text/css"?>
  8. <?xml-stylesheet href="chrome://browser/content/smartbox/smartbox.css" type="text/css"?>
  9. <?xml-stylesheet href="chrome://global/skin/findBar.css" type="text/css"?>
  10.  
  11.  
  12. <!--<?xul-overlay href="chrome://help/content/helpMenuOverlay.xul"?>-->
  13. <?xul-overlay href="chrome://browser/content/titlebarOverlay.xul"?>
  14. <?xul-overlay href="chrome://browser/content/spuiOverlay.xul"?>
  15. <?xul-overlay href="chrome://browser/content/sitecontrols/sitecontrolsOverlay.xul"?>
  16. <?xul-overlay href="chrome://browser/content/sidebar/sidebarOverlay.xul"?>
  17. <?xul-overlay href="chrome://browser/content/statusbarOverlay.xul"?>
  18.  
  19. <!DOCTYPE window [
  20. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  21. %brandDTD;
  22. <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
  23. %browserDTD;
  24. <!ENTITY % globalRegionDTD SYSTEM "chrome://global-region/locale/region.dtd">
  25. %globalRegionDTD;
  26. <!ENTITY % charsetDTD SYSTEM "chrome://global/locale/charsetOverlay.dtd" >
  27. %charsetDTD;
  28. <!ENTITY % findDTD SYSTEM "chrome://global/locale/finddialog.dtd" >
  29. %findDTD;
  30. <!ENTITY % multibarDTD SYSTEM "chrome://global/locale/multibar.dtd" >
  31. %multibarDTD;
  32. <!ENTITY % tabBrowserDTD SYSTEM "chrome://global/locale/tabbrowser.dtd" >
  33. %tabBrowserDTD;
  34. ]>
  35.  
  36. <!-- onload="Startup()"  -->
  37. <window id="main-window"
  38.         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  39.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  40.         onload="Startup()" onunload="Shutdown()" onclose="return WindowIsClosing();"
  41.         onfocus="SetPopupBlockToggle(); SetHistoryButton(); moveMenubar();"
  42.         contenttitlesetting="true"
  43.         title="&mainWindow.title;"
  44.         titlemodifier="&mainWindow.title;"
  45.         titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
  46.         windowtype="navigator:browser"
  47.         screenX="4" screenY="4"
  48.         persist="screenX screenY width height sizemode">
  49. <script type="application/x-javascript">
  50.     dump ("Starting loading of script files\n");
  51. </script>
  52.  
  53. <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  54. <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  55. <script type="application/x-javascript" src="chrome://global/content/findUtils.js"/>
  56. <script type="application/x-javascript" src="chrome://global/content/findBar.js"/>
  57. <script type="application/x-javascript" src="chrome://global/content/printUtils.js"/>
  58. <script type="application/x-javascript" src="chrome://browser/content/utilityOverlay.js"/>
  59. <script type="application/x-javascript" src="chrome://browser/content/bookmarks/bookmarks.js"/>
  60. <script type="application/x-javascript" src="chrome://browser/content/bookmarks/bookmarksMenu.js"/>
  61. <script type="application/x-javascript" src="chrome://browser/content/sitecontrols/sitecontrols.js"/>
  62. <script type="application/x-javascript" src="chrome://browser/content/sitecontrols/blacklistUtils.js"/>
  63. <script type="application/x-javascript" src="chrome://browser/content/perfmon/pref_hash.js"/>
  64. <script type="application/x-javascript" src="chrome://browser/content/perfmon/dt_hash.js"/>
  65. <script type="application/x-javascript" src="chrome://browser/content/perfmon/perfmon.js"/>
  66. <script type="application/x-javascript" src="chrome://browser/content/passcardUtils.js"/>
  67. <script type="application/x-javascript" src="chrome://global/content/viewZoomOverlay.js"/>
  68. <script type="application/x-javascript" src="chrome://browser/content/contentAreaUtils.js"/>
  69. <script type="application/x-javascript" src="chrome://browser/content/browser.js"/>
  70. <script type="application/x-javascript" src="chrome://browser/content/homeButton.js"/>
  71. <script type="application/x-javascript">
  72.     dump ("Loading script file for pref-privacy-utils.js\n");
  73. </script>
  74. <script type="application/x-javascript" src="chrome://browser/content/pref/pref-privacy-utils.js"/>
  75. <script type="application/x-javascript">
  76.     dump ("Loading script file for XPCNativeWrapper.js\n");
  77. </script>
  78. <script type="application/x-javascript" src="chrome://global/content/XPCNativeWrapper.js"/>
  79. <script type="application/x-javascript">
  80.     dump ("Loading script file for webmail.js\n");
  81. </script>
  82. <script type="application/x-javascript" src="chrome://browser/content/webmail.js"/>
  83. <script type="application/x-javascript">
  84.     dump ("Loading script file for search.js\n");
  85. </script>
  86. <script type="application/x-javascript" src="chrome://browser/content/search.js"/>
  87. <script type="application/x-javascript">
  88.     dump ("Loading script file for countryList.js\n");
  89. </script>
  90. <script type="application/x-javascript" src="chrome://mozapps/content/autofill/countryList.js"/>
  91. <script type="application/x-javascript">
  92.     dump ("Loading script file for datacardUtils.js\n");
  93. </script>
  94. <script type="application/x-javascript" src="chrome://mozapps/content/autofill/datacardUtils.js"/>
  95. <script type="application/x-javascript">
  96.     dump ("Finished loading datacardUtils.js\n");
  97. </script>
  98.  
  99.  
  100.  
  101.  
  102.   <stringbundleset id="stringbundleset">
  103.     <stringbundle id="bundle_brand" src="chrome://global/locale/brand.properties"/>
  104.     <stringbundle id="bundle_shell" src="chrome://browser/locale/shellservice.properties"/>
  105.     <stringbundle id="bundle_browser" src="chrome://browser/locale/browser.properties"/>
  106.     <stringbundle id="bundle_findBar" src="chrome://browser/locale/browser.properties"/>
  107.     <stringbundle id="bundle_browser_region" src="chrome://browser-region/locale/region.properties"/>
  108.     <stringbundle id="privacyBundle" src="chrome://browser/locale/pref/prefutilities.properties"/>
  109.     <stringbundle id="drawOsBorder" src="chrome://browser/skin/window-shaping.properties"/>
  110.   </stringbundleset>
  111.  
  112.   <commandset commandupdater="true"
  113.               events="focus"
  114.               oncommandupdate="goUpdateGlobalEditMenuItems()"/>
  115.   <commandset commandupdater="true"
  116.               events="select"
  117.               oncommandupdate="goUpdateSelectEditMenuItems()"/>
  118.   <commandset commandupdater="true"
  119.               events="undo"
  120.               oncommandupdate="goUpdateUndoEditMenuItems()"/>
  121.   <commandset commandupdater="true"
  122.               events="clipboard"
  123.               oncommandupdate="goUpdatePasteMenuItems()"/>
  124.  
  125.   <commandset id="mainCommandSet">
  126.     <command id="cmd_newNavigatorAlways"           oncommand="TrackData(this);OpenBrowserWindow()"/>
  127.     <command id="cmd_newNavigator"                 oncommand="TrackData(this);OpenBrowserWindowWithPref();"/>
  128.     <command id="cmd_bm_open"                      oncommand="TrackData(this);goDoCommand('cmd_bm_open');"/>
  129.     <command id="cmd_bm_openinnewwindow"           oncommand="TrackData(this);goDoCommand('cmd_bm_openinnewwindow');"/>
  130.     <command id="cmd_bm_openinnewtab"              oncommand="TrackData(this);goDoCommand('cmd_bm_openinnewtab');"/>
  131.     <command id="cmd_bm_expandfolder"              oncommand="TrackData(this);goDoCommand('cmd_bm_expandfolder');"/>
  132.     <command id="cmd_bm_openfolder"                oncommand="TrackData(this);goDoCommand('cmd_bm_openfolder');"/>
  133.     <command id="cmd_bm_managefolder"              oncommand="TrackData(this);goDoCommand('cmd_bm_managefolder');"/>
  134.     <command id="cmd_bm_newfolder"                 oncommand="TrackData(this);goDoCommand('cmd_bm_newfolder');"/>
  135.     <command id="cmd_bm_newbookmark"               oncommand="TrackData(this);goDoCommand('cmd_bm_newbookmark');"/>
  136.     <command id="cmd_bm_newseparator"              oncommand="TrackData(this);goDoCommand('cmd_bm_newseparator');"/>
  137.     <command id="cmd_bm_properties"                oncommand="TrackData(this);goDoCommand('cmd_bm_properties');"/>
  138.     <command id="cmd_bm_refreshlivemark"           oncommand="TrackData(this);goDoCommand('cmd_bm_refreshlivemark');"/>
  139.     <command id="cmd_bm_rename"                    oncommand="TrackData(this);goDoCommand('cmd_bm_rename');"/>
  140.     <command id="cmd_bm_moveBookmark"              oncommand="TrackData(this);goDoCommand('cmd_bm_moveBookmark');"/>
  141.     <command id="cmd_bm_sortbyname"                oncommand="TrackData(this);goDoCommand('cmd_bm_sortbyname');"/>
  142.  
  143.     <command id="cmd_handleBackspace"  oncommand="TrackData(this);BrowserHandleBackspace();" />
  144.  
  145.     <command id="cmd_newNavigatorTab" oncommand="TrackData(this);BrowserOpenPrefTab();"/>
  146.     <command id="Browser:OpenFile"  oncommand="TrackData(this);BrowserOpenFileWindow();"/>
  147.     <command id="Browser:SavePage" oncommand="TrackData(this);saveDocument(window._content.document);"/>
  148.  
  149.     <command id="Browser:SendLink" oncommand="TrackData(this);MailIntegration.sendLinkForContent();"/>
  150.     <command id="Browser:NewMessage" oncommand="TrackData(this);MailIntegration.sendMessage('', '');"/>
  151.     <command id="Browser:ReadMail" oncommand="TrackData(this);MailIntegration.readMail();" label="&mailButton.readMail.label;"/>
  152.     <command id="Browser:ReadNews" oncommand="TrackData(this);MailIntegration.readNews();"/>
  153.  
  154.     <command id="cmd_print" oncommand="TrackData(this);browserDoOLECmd(2);"/>
  155.     <command id="cmd_close" oncommand="TrackData(this);BrowserCloseTabOrWindow()"/>
  156.     <command id="cmd_closeWindow" oncommand="TrackData(this);BrowserClosedByCloseButton()"/>
  157.     <command id="cmd_quitApplication" oncommand="goQuitApplication()"/>
  158.     <command id="cmd_CustomizeToolbars" oncommand="TrackData(this);BrowserCustomizeToolbar()"/>
  159.     <command id="cmd_ToggleMenuBarPosition" oncommand="TrackData(this);toggleMenubar()"/>
  160.  
  161.     <command id="cmd_copyLink"
  162.              oncommand="TrackData(this);goDoCommand('cmd_copyLink')"
  163.              disabled="false"/>
  164.     <command id="cmd_copyImageLocation"
  165.              oncommand="TrackData(this);goDoCommand('cmd_copyImageLocation')"
  166.              disabled="false"/>
  167.     <command id="cmd_copyImageContents"
  168.              oncommand="TrackData(this);goDoCommand('cmd_copyImageContents')"
  169.              disabled="false"/>
  170.     <command id="cmd_undo"
  171.              oncommand="TrackData(this);goDoCommand('cmd_undo')"
  172.              disabled="true"/>
  173.     <command id="cmd_redo"
  174.              oncommand="TrackData(this);goDoCommand('cmd_redo')"
  175.              disabled="true"/>
  176.     <command id="cmd_cut"
  177.              oncommand="TrackData(this);goDoCommand('cmd_cut')"
  178.              disabled="true"/>
  179.     <command id="cmd_copy"
  180.              oncommand="TrackData(this);goDoCommand('cmd_copy')"
  181.              disabled="true"/>
  182.     <command id="cmd_paste"
  183.              oncommand="TrackData(this);goDoCommand('cmd_paste')"
  184.              disabled="true"/>
  185.     <command id="cmd_delete"
  186.              oncommand="TrackData(this);goDoCommand('cmd_delete')"
  187.              valueDefault="&deleteCmd.label;"
  188.              disabled="true"/>
  189.     <command id="cmd_selectAll"
  190.              oncommand="TrackData(this);goDoCommand('cmd_selectAll')"
  191.              disabled="true"/>
  192.     <command id="cmd_SwitchTextDirection"
  193.              oncommand="TrackData(this);SwitchFocusedTextEntryDirection()"
  194.              disabled="true"/>
  195.              
  196.     <command id="cmd_LaunchIM"
  197.              oncommand="cmdNewIM()"/>  
  198.              
  199.     <command id="cmd_openIMSidebar"                                                                                                                            
  200.               oncommand="cmdOpenIMSidebar()"/>                      
  201.  
  202.         <command id="cmd_openSecurityCenter" oncommand="OpenSecurityCenter();" />
  203.     <command id="View:PageSource" oncommand="TrackData(this);BrowserViewSourceOfDocument(_content.document);"/>
  204.     <command id="View:PageInfo" oncommand="TrackData(this);BrowserPageInfo();"/>
  205.     <command id="View:FullScreen" oncommand="TrackData(this);BrowserFullScreen();"/>
  206.     <command id="cmd_find" oncommand="TrackData(this);findCommand();"/>
  207.     <command id="cmd_findAgain" oncommand="TrackData(this);findCommand(true);"/>
  208.     <command id="cmd_findPrevious" oncommand="TrackData(this);onFindPreviousCmd();"/>
  209.     <command id="Browser:AddBookmarkAs" oncommand="TrackData(this);addBookmarkAs(document.getElementById('content'));"/>
  210.     <!-- MERC - JCH: Needed for correct call from plugin -->
  211.     <command id="Browser:BookmarkPage" oncommand="bookmarkPage(document.getElementById('content'));"/>
  212.     <command id="Browser:BookmarkTabsFromMultibar" oncommand="bookmarkAllTabs(document.getElementById('content'), true);"/>
  213.     <command id="Browser:BookmarkTabs" oncommand="bookmarkAllTabs(document.getElementById('content'), false);"/>
  214.     <command id="Browser:BookmarkPageFromMultibar" oncommand="bookmarkPageFromMultibar(document.getElementById('content'));"/>
  215.     <command id="Browser:Home"    oncommand="TrackData(this);BrowserHome();"/>
  216.     <command id="Browser:SetHomeToCurrentPage" oncommand="TrackData(this);homeButtonSetHomePageToCurrentPage();"/>
  217.     <command id="Browser:SetHomeToBookmark"    oncommand="TrackData(this);homeButtonSetHomePageToBookmark();"/>
  218.     <command id="Browser:SetHomeToBlank"       oncommand="TrackData(this);homeButtonSetHomePageToBlank();"/>
  219.     <command id="Browser:SetHomeCurrentTabs"   oncommand="TrackData(this);homeButtonSetHomePageToCurrentTabs();"/>
  220.  
  221. <!-- MERC - Brad Lewis - the oncommand functions are found in privacy-utils.js -->
  222.     <command id="History:ClearPages"           oncommand="PrivacyPanel.clearData['history'](false); SetHistoryButton();"/>
  223.     <command id="History:ClearDownloads"       oncommand="PrivacyPanel.clearData['downloads'](false);"/>
  224.     <command id="History:ClearSearch"          oncommand="search.ClearSearchHistory();"/>
  225.     <command id="History:ClearCookies"         oncommand="PrivacyPanel.clearData['cookies'](false);"/>
  226.     <command id="History:ClearCache"           oncommand="PrivacyPanel.clearData['cache'](false);"/>
  227.     <command id="History:ClearAll"             oncommand="PrivacyPanel.clearAll(); SetHistoryButton(); search.ClearSearchHistory();"/>
  228.     <command id="History:Anonymous"            oncommand="toggleAnonymousMode(); SetHistoryButton();"/> <!-- enableAnonymousMode(); SetHistoryButton(); -->
  229. <!-- END MERC - Brad Lewis -->
  230.  
  231.     <command id="Browser:Back"    oncommand="TrackData(this);BrowserBack();" disabled="true"/>
  232.     <command id="Browser:Forward" oncommand="TrackData(this);BrowserForward();" disabled="true"/>
  233.     <command id="Browser:Stop"    oncommand="TrackData(this);BrowserStop();" disabled="true"/>
  234.  
  235. <!--  SLiu : commented out added support for Trident text increase
  236.     <command id="cmd_textZoomReduce"  oncommand="ZoomManager.prototype.getInstance().reduce();"/>
  237.     <command id="cmd_textZoomEnlarge" oncommand="ZoomManager.prototype.getInstance().enlarge();"/>
  238. -->
  239.     <command id="cmd_textZoomReduce"  oncommand="TrackData(this);browserDoOLECmd(4);"/>
  240.     <command id="cmd_textZoomEnlarge" oncommand="TrackData(this);browserDoOLECmd(5);"/>
  241.     <command id="cmd_textZoomReset" oncommand="TrackData(this);ZoomManager.prototype.getInstance().reset();"/>
  242.  
  243.     <command id="Browser:OpenLocation" oncommand="TrackData(this);openLocation();"/>
  244.  
  245.     <command id="Tools:Search" oncommand="TrackData(this);focusSearchBar();"/>
  246.     <command id="Tools:Downloads" oncommand="TrackData(this);toOpenWindowByType('Download:Manager',
  247.                                                                 'chrome://mozapps/content/downloads/downloads.xul',
  248.                                                                 'chrome,dialog=no,resizable');"/>
  249.     <command id="Tools:Extensions" oncommand="TrackData(this);BrowserOpenExtensions('extensions');"/>
  250.     <command id="Tools:Themes" oncommand="TrackData(this);BrowserOpenExtensions('themes');"/>
  251.     <command id="cmd_openHelp" oncommand="TrackData(this);openHelp();"/>
  252.     <command id="cmd_toggleEngine" oncommand="TrackData(this);gBrowser.mCurrentTab.toggleDisplayEngineSiteControl(); dump('** engine toggle\n');"/>
  253.   </commandset>
  254.  
  255.   <broadcasterset id="mainBroadcasterSet">
  256.     <broadcaster id="viewBookmarksSidebar" autoCheck="false" label="&bookmarksButton.label;"
  257.                  type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/bookmarks/bookmarksPanel.xul"
  258.                  oncommand="TrackData(this);toggleSidebar('viewBookmarksSidebar');"/>
  259.  
  260.     <broadcaster id="viewHistorySidebar" autoCheck="false" label="&historyButton.label;"
  261.                  type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/history/history-panel.xul"
  262.                  oncommand="TrackData(this);toggleSidebar('viewHistorySidebar');"/>
  263.  
  264.     <broadcaster id="viewWebPanelsSidebar" autoCheck="false"
  265.                  type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/web-panels.xul"
  266.                  oncommand="TrackData(this);toggleSidebar('viewWebPanelsSidebar');"/>
  267.  
  268.     <broadcaster id="viewNSBookmarksSidebar" label="&bookmarksButton.label;" command="revealBookmarks"/>
  269.     <broadcaster id="viewNSHistorySidebar" label="&historyButton.label;" command="revealHistory"/>
  270.  
  271.     <!-- popup blocking menu items -->
  272.     <broadcaster id="blockedPopupAllowSite"
  273.                  accesskey="&allowPopups.accesskey;"
  274.                  oncommand="TrackData(this);gPopupBlockerObserver.toggleAllowPopupsForSite(event);"/>
  275.     <broadcaster id="blockedPopupEditSettings"
  276.                  label="&editPopupSettings.label;"
  277.                  accesskey="&editPopupSettings.accesskey;"
  278.                  oncommand="TrackData(this);gPopupBlockerObserver.editPopupSettings();"/>
  279.     <broadcaster id="blockedPopupDontShowMessage"
  280.                  accesskey="&dontShowMessage.accesskey;"
  281.                  type="checkbox"
  282.                  oncommand="TrackData(this);gPopupBlockerObserver.dontShowMessage();"/>
  283.     <broadcaster id="blockedPopupsSeparator"/>
  284.  
  285.     <!-- MERC (ccampbell): searchbar / search sidebar engine broadcaster -->
  286.     <broadcaster id="searchEngineBroadcaster"
  287.                  searchengine="" src=""
  288.                  persist="searchengine,src"/>
  289.     <!-- MERC (jmckenty): popup position for menu items -->
  290.     <broadcaster id="mainMenuPopupBroadcaster"/>
  291.     
  292.     <broadcaster id="restoreButtonBroadcaster" tooltiptext="Maximize"/>
  293.     
  294.     <!-- MERC (rpaul): broadcasts the current engine icon for display in status bar -->
  295.     <broadcaster id="currentEngineBroadcaster" src=""/>
  296.         
  297.         <!-- MERC (rpaul): broadcasts if IE is the currently selected engine for menus-->
  298.         <broadcaster id="engineIsIEBroadcaster" disabled=""/>
  299.         
  300.         <!-- MERC (rpaul): broadcasts if Firefox is the currently selected engine for menus-->
  301.         <broadcaster id="engineIsFirefoxBroadcaster" disabled=""/>
  302.         
  303.         <!-- MERC (rpaul): broadcasts to the throbber the busy status-->
  304.         <broadcaster id="throbberBroadcaster" busy=""/>
  305.  
  306.   </broadcasterset>
  307.  
  308.   <keyset id="mainKeyset">
  309.     <key id="key_newNavigator"
  310.          key="&newNavigatorCmd.key;"
  311.          command="cmd_newNavigatorAlways"
  312.          modifiers="accel"/>
  313.     <key id="key_newNavigatorTab" key="&tabCmd.commandkey;" modifiers="accel" command="cmd_newNavigatorTab"/>
  314.     <key id="focusURLBar" key="&openCmd.commandkey;" command="Browser:OpenLocation"
  315.          modifiers="accel"/>
  316.     <key id="focusURLBar2" key="&urlbar.accesskey;" command="Browser:OpenLocation"
  317.          modifiers="alt"/>
  318.     <key id="key_search" key="&searchFocus.commandkey;" command="Tools:Search" modifiers="accel"/>
  319.     <key id="key_search2" key="&searchFocus.commandkey2;" command="Tools:Search" modifiers="accel"/>
  320.     <key id="key_openDownloads" key="&downloads.commandkey;" command="Tools:Downloads" modifiers="accel"/>
  321.     <key id="openFileKb" key="&openFileCmd.commandkey;" command="Browser:OpenFile"  modifiers="accel"/>
  322.     <key id="key_savePage" key="&savePageCmd.commandkey;" command="Browser:SavePage" modifiers="accel"/>
  323.     <key id="printKb" key="&printCmd.commandkey;" command="cmd_print"  modifiers="accel"/>
  324.     <key id="key_close" key="&closeCmd.key;" command="cmd_close" modifiers="accel"/>
  325.     <key id="key_closeWindow" key="&closeCmd.key;" command="cmd_closeWindow" modifiers="accel,shift"/>
  326.       <key id="key_quitApplication" key="&quitApplicationCmd.commandkey;" modifiers="accel" command="cmd_quitApplication"/>
  327.       
  328.     <key id="key_undo"
  329.          key="&undoCmd.key;"
  330.          modifiers="accel"/>
  331.     <key id="key_redo" key="&redoCmd.key;" modifiers="accel"/>
  332.     <key id="key_cut"
  333.          key="&cutCmd.key;"
  334.          modifiers="accel"/>
  335.     <key id="key_copy"
  336.          key="©Cmd.key;"
  337.          modifiers="accel"/>
  338.     <key id="key_paste"
  339.          key="&pasteCmd.key;"
  340.          modifiers="accel"/>
  341.     <key id="key_delete" keycode="VK_DELETE" command="cmd_delete"/>
  342.     <key id="key_selectAll" key="&selectAllCmd.key;" modifiers="accel"/>
  343.  
  344.             
  345.     <key keycode="VK_BACK" command="cmd_handleBackspace"/>
  346.     <key keycode="VK_BACK" command="Browser:Forward" modifiers="shift"/>
  347.     <key id="goBackKb"  keycode="VK_LEFT" command="Browser:Back" modifiers="alt"/>
  348.     <key id="goForwardKb"  keycode="VK_RIGHT" command="Browser:Forward" modifiers="alt"/>
  349.     <key id="goHome" keycode="VK_HOME" command="Browser:Home" modifiers="alt"/>
  350.     <key id="key_fullScreen" keycode="VK_F11" command="View:FullScreen"/>
  351.     <key id="key_help" keycode="VK_F1" command="cmd_openHelp"/>
  352.     <key keycode="VK_F5" oncommand="BrowserReload();"/>
  353.     <key keycode="VK_F5" modifiers="control" oncommand="BrowserReloadSkipCache();"/>
  354.     <key id="key_reload"  key="&reloadCmd.commandkey;" oncommand="BrowserReload();" modifiers="accel"/>
  355.     <key key="&reloadCmd.commandkey;" oncommand="BrowserReloadSkipCache();" modifiers="accel,shift"/>
  356.     <key id="key_toggleEngine" key="e" modifiers="accel,shift" command="cmd_toggleEngine"/>
  357.     <key id="key_viewSource" key="&pageSourceCmd.commandkey;" command="View:PageSource" modifiers="accel"/>
  358.     <key id="key_find" key="&findOnCmd.commandkey;" command="cmd_find" modifiers="accel"/>
  359.     <key id="key_findAgain" key="&findAgainCmd.commandkey;" command="cmd_findAgain" modifiers="accel"/>
  360.     <key id="key_findPrevious" key="&findAgainCmd.commandkey;" command="cmd_findPrevious" modifiers="accel,shift"/>
  361.     <key keycode="&findAgainCmd.commandkey2;" command="cmd_findAgain"/>
  362.     <key keycode="&findAgainCmd.commandkey2;"  command="cmd_findPrevious" modifiers="shift"/>
  363.  
  364.     <key id="addBookmarkAsKb" key="&addCurPageAsCmd.commandkey;" command="Browser:AddBookmarkAs" modifiers="accel"/>
  365.     <!-- MERC: bookmarks keyboard shortcut is now handled by sidebar
  366.     <key id="viewBookmarksSidebarKb" key="&bookmarksSidebarCmd.commandkey;" command="viewBookmarksSidebar" modifiers="accel"/>
  367.     -->
  368.     <!-- MERC: CTRL+I is used for page info in Netscape 7.2. so turn this off
  369.     <key id="viewBookmarksSidebarWinKb" key="&bookmarksSidebarWinCmd.commandkey;" command="viewBookmarksSidebar" modifiers="accel"/>
  370.     -->
  371.  
  372.     <key id="key_stop" keycode="VK_ESCAPE" oncommand="BrowserStop();"/>
  373.     <!-- MERC: history keyboard shortcut is now handled by sidebar
  374.     <key id="key_gotoHistory"  key="&historySidebarCmd.commandKey;"  command="viewHistorySidebar" modifiers="accel"/>
  375.     -->
  376.  
  377.     <key id="key_newMessage"
  378.          key="&sendMessage.commandkey;"
  379.          command="Browser:NewMessage"
  380.          modifiers="accel"/>
  381.     <key id="key_textZoomReduce"  key="&textZoomReduceCmd.commandkey;"   command="cmd_textZoomReduce"  modifiers="accel"/>
  382.     <key id="key_textZoomEnlarge" key="&textZoomEnlargeCmd.commandkey;"  command="cmd_textZoomEnlarge" modifiers="accel"/>
  383.     <key                          key="&textZoomEnlargeCmd.commandkey2;" command="cmd_textZoomEnlarge" modifiers="accel"/>
  384.     <key id="key_textZoomReset"   key="&textZoomResetCmd.commandkey;"    command="cmd_textZoomReset"   modifiers="accel"/>
  385.  
  386.     <key id="key_SwitchTextDirection" key="&bidiSwitchTextDirectionItem.commandkey;" command="cmd_SwitchTextDirection" modifiers="accel,shift" />
  387.  
  388.         <key id="key_viewToggleRenderingEngine"   key="&viewToggleRenderingEngine.commandkey;" command="cmd_toggleEngine" modifiers="control,alt"/>
  389.         
  390.         <key id="key_launchIM" key="&key_launchIM.commandkey;" modifiers="control,shift" command="cmd_LaunchIM"/>
  391.         
  392.         <key id="key_openIMSidebar" key="&key_openIMSidebar.commandkey;" modifiers="control" command="cmd_openIMSidebar"/>
  393.         
  394.  </keyset>
  395.  
  396.  
  397.   <popupset id="mainPopupSet">
  398.     <popup id="clearhistoriesPopUp" position="at_pointer">
  399.       <menuitem id="clearHistoryPages"
  400.                 label="&clearHistoriesHistory.label;"
  401.                 tooltiptext="&clearHistoriesHistory.tooltip;"
  402.                 command="History:ClearPages"/>
  403.       <menuitem id="clearHistoryDownloadManager"
  404.                 label="&clearHistoriesDownloads.label;"
  405.                 tooltiptext="&clearHistoriesDownloads.tooltip;"
  406.                 command="History:ClearDownloads"/>
  407.       <menuitem id="clearHistorySearch"
  408.                 label="&clearHistoriesSearch.label;"
  409.                 tooltiptext="&clearHistoriesSearch.tooltip;"
  410.                 command="History:ClearSearch"/>
  411.       <menuitem id="clearHistoryCookies"
  412.                 label="&clearHistoriesCookies.label;"
  413.                 tooltiptext="&clearHistoriesCookies.tooltip;"
  414.                 command="History:ClearCookies"/>
  415.       <menuitem id="clearHistoryCache"
  416.                 label="&clearHistoriesCache.label;"
  417.                 tooltiptext="&clearHistoriesCache.tooltip;"
  418.                 command="History:ClearCache"/>
  419.       <menuitem id="clearHistoryAll"
  420.                 label="&clearHistoriesAll.label;"
  421.                 tooltiptext="&clearHistoriesAll.tooltip;"
  422.                 command="History:ClearAll"/>
  423.       <menuitem id="clearHistoryAnonymousMode"
  424.                 label="&clearHistoriesAnonymous.label;"
  425.                 tooltiptext="&clearHistoriesAnonymous.tooltip;"
  426.                 type="checkbox" autocheck="false"
  427.                 command="History:Anonymous"/>
  428.     </popup>
  429.  
  430.  
  431.     <popup id="multibarMenu" oncommand="multibar.menuCommand(event);">
  432.       <menuseparator id="traySeparator"/>
  433.       <menuitem id="multibarAddMenuItem" label="&addTray.label;"/>
  434.       <menuitem id="multibarRenameMenuItem" label="&renameTray.label;"/>
  435.       <!--menuitem id="multibarEditMenuItem" label="&editTrays.label;"/-->
  436.       <!--menuitem id="multibarShowTrayTitleMenuItem" type="checkbox" label="Show Tray Title"/-->
  437.       <menuitem id="multibarCustomizeMenuItem" label="&customizeToolbars.label;"/>
  438.     </popup>
  439.     <popup id="backMenu"
  440.            position="after_start"
  441.            onpopupshowing="return BrowserBackMenu(event);"
  442.            oncommand="gotoHistoryIndex(event);"
  443.            onclick="checkForMiddleClick(this, event);"/>
  444.     <popup id="forwardMenu"
  445.            position="after_start"
  446.            onpopupshowing="return BrowserForwardMenu(event);"
  447.            oncommand="gotoHistoryIndex(event);"
  448.            onclick="checkForMiddleClick(this, event);"/>
  449.     <tooltip id="aHTMLTooltip" onpopupshowing="return FillInHTMLTooltip(document.tooltipNode);"/>
  450.  
  451.     <popup id="SearchBarHistoryPopup" position="after_end"
  452.            onpopupshowing="search.PopulateHistoryPopup(event);"/>
  453.  
  454.     <popup id="SmartboxPopup" position="after_start"/>
  455.  
  456.     <popup type="autocomplete" id="PopupAutoComplete"/>
  457.  
  458.     <popup id="toolbar-context-menu"
  459.            onpopupshowing="updateToolbarStates(this); onViewToolbarsPopupShowing(event);">
  460.       <menuseparator/>
  461.       <menuitem id="menuitem_toggleMenuBar"
  462.                           command="cmd_ToggleMenuBarPosition"
  463.                 label="&viewMoveMenubar.label;"
  464.                 accesskey="&viewMoveMenubar.accesskey;"/>
  465.       <menuitem command="cmd_CustomizeToolbars"
  466.                 label="&viewCustomizeToolbar.label;"
  467.                 accesskey="&viewCustomizeToolbar.accesskey;"/>
  468.     </popup>
  469.  
  470.     <popup id="blockedPopupOptions"
  471.            onpopupshowing="gPopupBlockerObserver.fillPopupList(event);">
  472.       <menuitem observes="blockedPopupAllowSite"/>
  473.       <menuitem observes="blockedPopupEditSettings"/>
  474.       <menuitem observes="blockedPopupDontShowMessage"/>
  475.       <menuseparator observes="blockedPopupsSeparator"/>
  476.     </popup>
  477.  
  478.     <popup id="blockedRSSOptions" >
  479.       <menuitem oncommand="livemarkAddMark(window._content, getWebNavigation().currentURI.spec, true);" label="Subscribe to this feed..."/>
  480.     </popup>
  481.     
  482.      <popup id="tabsNewButtonPopup" 
  483.         position="after_start" 
  484.         onpopupshown="document.getElementById('new-tab-button-container')
  485.                    .setAttribute('popupIsVisible', 'true');"
  486.         onpopuphidden="document.getElementById('new-tab-button-container')
  487.                       .removeAttribute('popupIsVisible');">
  488.        
  489.         <menuitem label="&tabs-newbutton.home.label;"
  490.                       accesskey="&tabs-newbutton.home.accesskey;"
  491.                       oncommand="BrowserHome(true);"/>
  492.         <menuitem label="&tabs-newbutton.current.label;"
  493.                       accesskey="&tabs-newbutton.current.accesskey;"
  494.                       oncommand="BrowserOpenNewCurrentTab();"/>                            
  495.         <menuitem label="&tabs-newbutton.blank.label;"
  496.                       accesskey="&tabs-newbutton.blank.accesskey;"
  497.                       oncommand="BrowserOpenTab();"/>
  498.         <menuitem label="&tabs-newbutton.netscape.label;"
  499.                       accesskey="&tabs-newbutton.netscape.accesskey;"
  500.                       oncommand="BrowserNetscapeTab();"/>
  501.         <menuseparator/>
  502.         <menuitem label="&tabs-newbutton.options.label;" 
  503.                 accesskey="&tabs-newbutton.options.accesskey;" 
  504.                  oncommand="openPrefs(2);"/>
  505.    </popup>
  506.  
  507.         <popup id="personalBookmarksAddBookmarkDropdown" position="after_start"
  508.                     onpopupshown="document.getElementById('personal-bookmarks-add-bookmark-button').setAttribute('popupIsVisible', 'true');"
  509.                     onpopuphidden="document.getElementById('personal-bookmarks-add-bookmark-button').removeAttribute('popupIsVisible');">
  510.             <menuitem label="&addBookmarkDropdown.bookmarkPage.label;" command="Browser:BookmarkPageFromMultibar"/>
  511.             <menuitem label="&addBookmarkDropdown.bookmarkGroup.label;" command="Browser:BookmarkTabsFromMultibar"/>
  512.             <menuitem label="&addBookmarkDropdown.manage.label;" oncommand="toOpenWindowByType('bookmarks:manager', 'chrome://browser/content/bookmarks/bookmarksManager.xul');"/>
  513.         </popup>
  514.  
  515.     <popup id="contentAreaContextMenu"
  516.            onpopupshowing="if (event.target != this) return true; gContextMenu = new nsContextMenu( this ); return gContextMenu.shouldDisplay;"
  517.            onpopuphiding="if (event.target == this) gContextMenu = null;">
  518.       <menuitem id="context-openlinkintab"
  519.                 label="&openLinkCmdInTab.label;"
  520.                 accesskey="&openLinkCmdInTab.accesskey;"
  521.                 oncommand="gContextMenu.openLinkInTab();"/>
  522.       <menuitem id="context-openlink"
  523.                 label="&openLinkCmd.label;"
  524.                 accesskey="&openLinkCmd.accesskey;"
  525.                 oncommand="gContextMenu.openLink();"/>
  526.       <menuseparator id="context-sep-open"/>
  527.       <menuitem id="context-bookmarklink"
  528.                 label="&bookmarkLinkCmd.label;"
  529.                 accesskey="&bookmarkLinkCmd.accesskey;"
  530.                 oncommand="BookmarksUtils.addBookmark(gContextMenu.linkURL(),
  531.                                                       gContextMenu.linkText());"/>
  532.       <menuitem id="context-savelink"
  533.                 label="&saveLinkCmd.label;"
  534.                 accesskey="&saveLinkCmd.accesskey;"
  535.                 oncommand="gContextMenu.saveLink();"/>
  536.       <menuitem id="context-sendlink"
  537.                 label="&sendLinkCmd.label;"
  538.                 accesskey="&sendLinkCmd.accesskey;"
  539.                 oncommand="gContextMenu.sendLink();"/>
  540.       <menuitem id="context-copyemail"
  541.                 label="©EmailCmd.label;"
  542.                 accesskey="©EmailCmd.accesskey;"
  543.                 oncommand="gContextMenu.copyEmail();"/>
  544.       <menuseparator id="context-sep-copylink"/>
  545.       <menuitem id="context-viewimage"
  546.                 label="&viewImageCmd.label;"
  547.                 accesskey="&viewImageCmd.accesskey;"
  548.                 oncommand="gContextMenu.viewImage(event);"
  549.                 onclick="checkForMiddleClick(this, event);"/>
  550.       <menuitem id="context-saveimage"
  551.                 label="&saveImageCmd.label;"
  552.                 accesskey="&saveImageCmd.accesskey;"
  553.                 oncommand="gContextMenu.saveImage();"/>
  554.       <menuitem id="context-sendimage"  
  555.                 label="&sendImageCmd.label;" 
  556.                 accesskey="&sendImageCmd.accesskey;" 
  557.                 oncommand="gContextMenu.sendImage();"/>
  558.       <menuitem id="context-setWallpaper"
  559.                 label="&setWallpaperCmd.label;"
  560.                 accesskey="&setWallpaperCmd.accesskey;"
  561.                 oncommand="gContextMenu.setWallpaper();"/>
  562.       <menuitem id="context-copyimage-contents"
  563.                 label="©ImageContentsCmd.label;"
  564.                 accesskey="©ImageContentsCmd.accesskey;"
  565.                 command="cmd_copyImageContents"/>
  566.       <menuitem id="context-copyimage"
  567.                 label="©ImageCmd.label;"
  568.                 accesskey="©ImageCmd.accesskey;"
  569.                 command="cmd_copyImageLocation"/>
  570.       <menuseparator id="context-sep-copyimage"/>
  571.  
  572. <!--XXXBlake XUL sucks! We need autocheck for menuitems. -->
  573.  
  574. <!-- MERC: ccampbell: commenting out because we need to change this
  575.      to use Site Controls instead
  576.  
  577.       <menuitem id="context-blockimage" class="menuitem-iconic"
  578.                 accesskey="&blockImageCmd.accesskey;"
  579.                 oncommand="gContextMenu.toggleImageBlocking(this.getAttribute('checked') != 'true');"/>
  580. -->
  581.  
  582.       <menuitem id="context-back"
  583.                 label="&backCmd.label;"
  584.                 accesskey="&backCmd.accesskey;"
  585.                 command="Browser:Back"/>
  586.       <menuitem id="context-forward"
  587.                 label="&forwardCmd.label;"
  588.                 accesskey="&forwardCmd.accesskey;"
  589.                 command="Browser:Forward"/>
  590.       <menuitem id="context-reload"
  591.                 label="&reloadCmd.label;"
  592.                 accesskey="&reloadCmd.accesskey;"
  593.                 oncommand="BrowserReload();"/>
  594.       <menuitem id="context-stop"
  595.                 label="&stopCmd.label;"
  596.                 accesskey="&stopCmd.accesskey;"
  597.                 command="Browser:Stop"/>
  598.         <!-- MERC JA: BrowserReload() is called from toggleDisplayEngineSiteControl! -->
  599.       <menuitem id="switchToTrident"
  600.                 label="&switchToTrident.label;"
  601.                 key="key_toggleEngine"
  602.                 accesskey="&switchToTrident.accesskey;"
  603.                 oncommand="gBrowser.mCurrentTab.toggleDisplayEngineSiteControl();"/>
  604.       <menuseparator id="context-sep-stop"/>
  605.       <menuitem id="context-undo"
  606.                 label="&undoCmd.label;"
  607.                 accesskey="&undoCmd.accesskey;"
  608.                 command="cmd_undo"/>
  609.       <menuseparator id="context-sep-undo"/>
  610.       <menuitem id="context-cut"
  611.                 label="&cutCmd.label;"
  612.                 accesskey="&cutCmd.accesskey;"
  613.                 command="cmd_cut"/>
  614.       <menuitem id="context-copy"
  615.                 label="©Cmd.label;"
  616.                 accesskey="©Cmd.accesskey;"
  617.                 command="cmd_copy"/>
  618.       <menuitem id="context-copylink"
  619.                 label="©LinkCmd.label;"
  620.                 accesskey="©LinkCmd.accesskey;"
  621.                 command="cmd_copyLink"/>
  622.       <menuitem id="context-paste"
  623.                 label="&pasteCmd.label;"
  624.                 accesskey="&pasteCmd.accesskey;"
  625.                 command="cmd_paste"/>
  626.       <menuitem id="context-delete"
  627.                 label="&deleteCmd.label;"
  628.                 accesskey="&deleteCmd.accesskey;"
  629.                 command="cmd_delete"/>
  630.       <menuitem id="context-selectall"
  631.                 label="&selectAllCmd.label;"
  632.                 accesskey="&selectAllCmd.accesskey;"
  633.                 command="cmd_selectAll"/>      
  634.       <menuseparator id="context-sep-selectall"/>
  635.       <menuitem id="context-bookmarkpage"
  636.                 label="&bookmarkPageCmd.label;"
  637.                 accesskey="&bookmarkPageCmd.accesskey;"
  638.                 oncommand="bookmarkPage(document.getElementById('content'));"/>
  639.       <menuitem id="context-savepage"
  640.                 label="&savePageCmd.label;"
  641.                 accesskey="&savePageCmd.accesskey;"
  642.                 oncommand="saveDocument(window._content.document);"/>
  643.       <menuitem id="context-sendpage"  
  644.                 label="&sendPageCmd.label;" 
  645.                 accesskey="&sendPageCmd.accesskey;" 
  646.                 command="Browser:SendLink"/>
  647. <!--
  648.       <menuitem key="context-addBookmarkAsTabGrp"
  649.                 label="&addCurTabsAsCmd.label;"
  650.                 accesskey="&addCurTabsAsCmd.accesskey;"
  651.                 command="Browser:AddBookmarkAs"/>
  652.       <menuseparator id="context-sep-viewbgimage"/>  
  653. -->
  654.       <menuitem id="context-viewbgimage"
  655.                 label="&viewBGImageCmd.label;"
  656.                 accesskey="&viewBGImageCmd.accesskey;"
  657.                 oncommand="gContextMenu.viewBGImage(event);"
  658.                 onclick="checkForMiddleClick(this, event);"/>
  659.       <menuitem id="context-keywordfield"
  660.                 label="&keywordfield.label;"
  661.                 accesskey="&keywordfield.accesskey;"
  662.                 oncommand="AddKeywordForSearchField();"/>
  663.       <menuitem id="context-searchselect"
  664.                 accesskey="&search.accesskey;"
  665.                 oncommand="OpenSearch('internet', gContextMenu.searchSelected(), true);"/>
  666.       <menuseparator id="frame-sep"/>
  667.       <menu id="frame" label="&thisFrameMenu.label;" accesskey="&thisFrameMenu.accesskey;">
  668.         <menupopup>
  669.           <menuitem label="&showOnlyThisFrameCmd.label;"
  670.                     accesskey="&showOnlyThisFrameCmd.accesskey;"
  671.                     oncommand="gContextMenu.showOnlyThisFrame();"/>
  672.           <menuitem label="&openFrameCmd.label;"
  673.                     accesskey="&openFrameCmd.accesskey;"
  674.                     oncommand="gContextMenu.openFrame();"/>
  675.           <menuitem label="&openFrameCmdInTab.label;"
  676.                     accesskey="&openFrameCmdInTab.accesskey;"
  677.                     oncommand="gContextMenu.openFrameInTab();"/>
  678.           <menuseparator/>
  679.           <menuitem label="&reloadFrameCmd.label;"
  680.                     accesskey="&reloadFrameCmd.accesskey;"
  681.                     oncommand="gContextMenu.reloadFrame();"/>
  682.           <menuseparator/>
  683.           <menuitem label="&bookmarkFrameCmd.label;"
  684.                     accesskey="&bookmarkFrameCmd.accesskey;"
  685.                     oncommand="gContextMenu.addBookmarkForFrame();"/>
  686.           <menuitem label="&saveFrameCmd.label;"
  687.                     accesskey="&saveFrameCmd.accesskey;"
  688.                     oncommand="saveDocument(gContextMenu.target.ownerDocument);"/>
  689.           <menuseparator/>
  690.           <menuitem label="&viewFrameSourceCmd.label;"
  691.                     accesskey="&viewFrameSourceCmd.accesskey;"
  692.                     oncommand="gContextMenu.viewFrameSource();"/>
  693.           <menuitem label="&viewFrameInfoCmd.label;"
  694.                     accesskey="&viewFrameInfoCmd.accesskey;"
  695.                     oncommand="gContextMenu.viewFrameInfo();"/>        
  696.         </menupopup>
  697.       </menu>
  698.       <!-- MERC (DP): print menu items -->
  699.       <menuseparator id="context-sep-print"/>
  700.       <menuitem id="context-print"
  701.                 label="Print"
  702.                 accesskey="p"
  703.                 command="cmd_print"/>
  704.       <!-- end -->
  705.       <menuseparator id="context-sep-properties"/>
  706.       <menuitem id="context-viewpartialsource-selection"
  707.                 label="&viewPartialSourceForSelectionCmd.label;"
  708.                 accesskey="&viewPartialSourceCmd.accesskey;"
  709.                 oncommand="gContextMenu.viewPartialSource('selection');"/>
  710.       <menuitem id="context-viewpartialsource-mathml"
  711.                 label="&viewPartialSourceForMathMLCmd.label;"
  712.                 accesskey="&viewPartialSourceCmd.accesskey;"
  713.                 oncommand="gContextMenu.viewPartialSource('mathml');"/>
  714.       <menuitem id="context-viewsource"
  715.                 label="&viewPageSourceCmd.label;"
  716.                 accesskey="&viewPageSourceCmd.accesskey;"
  717.                 oncommand="BrowserViewSourceOfDocument(_content.document);"/>
  718.       <menuitem id="context-viewinfo"
  719.                 label="&viewPageInfoCmd.label;"
  720.                 accesskey="&viewPageInfoCmd.accesskey;"
  721.                 oncommand="gContextMenu.viewInfo();"/>
  722.       <menuitem id="context-metadata"
  723.                 label="&metadataCmd.label;"
  724.                 accesskey="&metadataCmd.accesskey;"
  725.                 oncommand="gContextMenu.showMetadata();"/>
  726.       <menuseparator hidden="true" id="context-sep-bidi"/>
  727.       <menuitem hidden="true" id="context-bidi-text-direction-toggle"
  728.                 label="&bidiSwitchTextDirectionItem.label;"
  729.                 accesskey="&bidiSwitchTextDirectionItem.accesskey;"
  730.                 oncommand="SwitchTextEntryDirection(gContextMenu.target)"/>
  731.       <menuitem hidden="true" id="context-bidi-page-direction-toggle"
  732.                 label="&bidiSwitchPageDirectionItem.label;"
  733.                 accesskey="&bidiSwitchPageDirectionItem.accesskey;"
  734.                 oncommand="SwitchDocumentDirection();"/>
  735.     </popup>
  736.  
  737.  
  738.   </popupset>
  739.  
  740.  
  741.   <!-- Total hack. Used by the Go menu to build up items. -->
  742.   <tree id="hiddenHistoryTree" hidden="true" collapsed="true" datasources="rdf:null"
  743.         flags="dont-build-content"
  744.         hidecolumnpicker="true">
  745.     <template>
  746.       <rule>
  747.         <treechildren>
  748.           <treeitem uri="rdf:*" rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
  749.             <treerow>
  750.               <treecell label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  751.               <treecell label="rdf:http://home.netscape.com/NC-rdf#Date" hidden="true"/>
  752.             </treerow>
  753.           </treeitem>
  754.         </treechildren>
  755.       </rule>
  756.     </template>
  757.     <treecols id="hiddenHistoryTreeCols">
  758.       <treecol flex="1" id="Name"
  759.                hideheader="true" primary="true"/>
  760.       <treecol id="Date" hidden="true" hideheader="true"
  761.                sort="rdf:http://home.netscape.com/NC-rdf#Date" sortActive="true" sortDirection="descending"/>
  762.     </treecols>
  763.   </tree>
  764.  
  765.   <!-- bookmarks context menu -->
  766.   <popupset>
  767.     <menupopup id="bookmarks-context-menu"
  768.                onpopupshowing="return BookmarksMenu.createContextMenu(event);"
  769.                onpopuphidden ="BookmarksMenu.destroyContextMenu(event);"/>
  770.   </popupset>
  771.  
  772.   <!-- bookmarks toolbar tooltip -->
  773.   <tooltip id="btTooltip" noautohide="true"
  774.            onpopupshowing="return BookmarksToolbar.fillInBTTooltip(document.tooltipNode)">
  775.     <vbox id="btTooltipTextBox" flex="1">
  776.       <label id="btTitleText" />
  777.       <label id="btUrlText" />
  778.     </vbox>
  779.   </tooltip>
  780.  
  781.  <stack id="topstack">
  782.  <vbox id="topbox">
  783.   <toolbox id="navigator-toolbox" class="toolbox-top" mode="icons">
  784.  
  785.     <toolbarpalette id="BrowserToolbarPalette">
  786.  
  787.         <!-- Main navigation buttons -->
  788.  
  789.       <toolbarbutton id="back-button" type="menu-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  790.                      chromedir="&locale.dir;"
  791.                      label="&backCmd.label;"
  792.                      oncommand="BrowserBack(event);"
  793.                      onclick="checkForMiddleClick(this, event);"
  794.                      context="backMenu"
  795.                      tooltiptext="&backButton.tooltip;"
  796.                      toolgroup="navigation">
  797.         <observes element="Browser:Back" attribute="disabled"/>
  798.         <menupopup context=""
  799.                    onpopupshowing="BrowserBackMenu(event);"
  800.                    oncommand="gotoHistoryIndex(event); event.preventBubble();"
  801.                    onclick="checkForMiddleClick(this, event);"/>
  802.       </toolbarbutton>
  803.  
  804.       <toolbarbutton id="forward-button" type="menu-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  805.                      chromedir="&locale.dir;"
  806.                      label="&forwardCmd.label;"
  807.                      oncommand="BrowserForward(event);"
  808.                      onclick="checkForMiddleClick(this, event);"
  809.                      context="forwardMenu"
  810.                      tooltiptext="&forwardButton.tooltip;"
  811.                      toolgroup="navigation">
  812.         <observes element="Browser:Forward" attribute="disabled"/>
  813.         <menupopup context=""
  814.                    onpopupshowing="BrowserForwardMenu(event);"
  815.                    oncommand="gotoHistoryIndex(event); event.preventBubble();"
  816.                    onclick="checkForMiddleClick(this, event);"/>
  817.       </toolbarbutton>
  818.  
  819.  
  820.       <!-- TODO: i18n -->
  821.       <toolbarbutton id="stop-reload-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  822.                      label="Reload"
  823.                      oncommand="BrowserStopReload(event);"
  824.                      tooltiptext="Stop / Reload"
  825.                      toolgroup="navigation"/>
  826.  
  827.       <toolbarbutton id="home-button" type="menu-button" class="toolbarbutton-1"
  828.                      tooltiptext="&homeButton.tooltip;"
  829.                      label="&homeButton.label;"
  830.                      ondragover="nsDragAndDrop.dragOver(event, homeButtonObserver);"
  831.                      ondragdrop="nsDragAndDrop.drop(event, homeButtonObserver);"
  832.                      ondragexit="nsDragAndDrop.dragExit(event, homeButtonObserver);"
  833.                      oncommand="if (event.target==this) BrowserHome();"
  834.                      toolgroup="navigation">
  835.             <menupopup position="at_pointer" onpopupshowing="BrowserHomeMenu(this);">
  836.                 <!-- filled in dynamically by BrowserHomeMenu() -->
  837.                 <menuseparator nodelete="true"/>
  838.                 <!-- Set home page to current page -->
  839.                 <menuitem label="&homeButtonCurrentPage.title;"
  840.                           nodelete="true"
  841.                           tooltiptext="&homeButtonCurrentPage.tooltip;"
  842.                           command="Browser:SetHomeToCurrentPage"/>
  843.                 <!-- set home page based on bookmark -->
  844.                 <menuitem label="&homeButtonBookmarks.title;"
  845.                           nodelete="true"
  846.                           tooltiptext="&homeButtonBookmarks.tooltip;"
  847.                           command="Browser:SetHomeToBookmark"/>
  848.                 <!-- set home to blank -->
  849.                 <menuitem label="&homeButtonBlankPage.title;"
  850.                           nodelete="true"
  851.                           tooltiptext="&homeButtonBlankPage.tooltip;"
  852.                           command="Browser:SetHomeToBlank"/>
  853.                 <!-- set home page to current tabs -->
  854.                 <menuitem label="&homeButtonGroupTabs.title;"
  855.                           nodelete="true"
  856.                           tooltiptext="&homeButtonGroupTabs.tooltip;"
  857.                           command="Browser:SetHomeCurrentTabs"/>
  858.             </menupopup>
  859.       </toolbarbutton>
  860.  
  861.  
  862.       <toolbarbutton id="combined-autofill-button" type="menu-button" class="toolbarbutton-1"
  863.                      label="&combined.button.label;"
  864.                      oncommand="if (event.target==this) DoCombinedAutofill();"
  865.                      ondragover="nsDragAndDrop.dragOver(event, goButtonObserver);"
  866.                      ondragdrop="nsDragAndDrop.drop(event, goButtonObserver);"
  867.                      ondragexit="nsDragAndDrop.dragExit(event, goButtonObserver);"
  868.                      tooltiptext="&combined.button.tooltip;"
  869.                      toolgroup="functional">
  870.         <menupopup id="combinedFormFillPopup" position="at_pointer"
  871.                    onpopupshowing="UpdateCombinedMenu(this);">
  872.           <menuitem id="combinedFillFormMenuItem"
  873.                     label="&combined.fillform.label;"
  874.                     tooltiptext="&combined.fillform.tooltip;"
  875.                     oncommand="DoCombinedFill(this, false);"/>
  876.           <menuitem id="combinedFillAndSubmitMenuItem"
  877.                     label="&combined.fillandsubmit.label;"
  878.                     tooltiptext="&combined.fillandsubmit.tooltip;"
  879.                     oncommand="DoCombinedFill(this, true);"/>
  880.           <menuitem id="combinedSaveMenuItem"
  881.                     label="&combined.saveform.label;"
  882.                     tooltiptext="&combined.saveform.tooltip;"
  883.                     oncommand="DoCombinedSave();"/>
  884.           <menuitem id="combinedEditFormInfoMenuItem"
  885.                     label="&combined.editforminfo.label;"
  886.                     tooltiptext="&combined.editforminfo.tooltip;"
  887.                     oncommand="openFormfillPrefs();"/>
  888.           <menuitem id="combinedEditLoginInfoMenuItem"
  889.                     label="&combined.editlogininfo.label;"
  890.                     tooltiptext="&combined.editlogininfo.tooltip;"
  891.                     oncommand="openPasscardPrefs();"/>
  892.           <menuseparator id="combinedFormFillDatacardSep" hidden="true"/>
  893.           <menuseparator id="combinedFormFillPasscardSep" hidden="true"/>
  894.         </menupopup>
  895.       </toolbarbutton>
  896.  
  897.  
  898.       <toolbarbutton id="clearhistories-button" class="toolbarbutton-1"
  899.                      oncommand="var chMenu = document.getElementById('clearhistoriesPopUp');
  900.                                 chMenu.showPopup(this,-1,-1,'popup','bottomleft','topleft');"
  901.                      overflowcommand="var chMenu = document.getElementById('clearhistoriesPopUp');
  902.                                       var button = document.getElementById('clearhistories-button');
  903.                                       var chevron = document.getAnonymousElementByAttribute(button.parentNode, 'class', 'toolbar-overflow-button');
  904.                                       chMenu.showPopup(chevron,-1,-1,'popup','bottomleft','topleft');"
  905.                      historyEmpty="false"
  906.                      label="&clearHistories.label;"
  907.                      tooltiptext="&clearHistories.tooltip;"
  908.                      toolgroup="functional">
  909.       </toolbarbutton>
  910.  
  911.  
  912.       <toolbaritem label="Location Bar" id="urlbar-container" align="center" flex="1000"
  913.                    title="&locationItem.title;" class="chromeclass-location"
  914.                    toolgroup="navigation">
  915.         <textbox id="urlbar" flex="1"
  916.                  type="autocomplete"
  917.                  autocompletesearch="history"
  918.                  autocompletepopup="PopupAutoComplete"
  919.                  completeselectedindex="true"
  920.                  tabscrolling="true"
  921.                  showcommentcolumn="true"
  922.                  enablehistory="true"
  923.                  oninput="gBrowser.userTypedValue = this.value"
  924.                  ontextentered="return handleURLBarCommand(param);"
  925.                  ontextreverted="return handleURLBarRevert();"
  926.                  onfocus="URLBarFocusHandler(event, this);"
  927.                  onmousedown="URLBarMouseDownHandler(event, this);"
  928.                  onclick="URLBarClickHandler(event, this);"
  929.                  oninfoclick="displaySecurityInfo();">
  930.           <deck id="page-proxy-deck">
  931.             <image id="page-proxy-button"
  932.                    ondraggesture="PageProxyDragGesture(event);"
  933.                    tooltiptext="&proxyIcon.tooltip;"/>
  934.             <image id="page-proxy-favicon"
  935.                    ondraggesture="PageProxyDragGesture(event);"
  936.                    onload="this.parentNode.selectedIndex = 1;
  937.                            event.stopPropagation();
  938.                            event.preventBubble();
  939.                    HandleBookmarkIcon(this.src, true);"
  940.                    onerror="gBrowser.addToMissedIconCache(this.src);
  941.                             HandleBookmarkIcon(this.src, false);
  942.                             this.parentNode.selectedIndex = 0;"
  943.                    tooltiptext="&proxyIcon.tooltip;"/>
  944.           </deck>
  945.           <statusbarpanel id="livemark-button" type="menu" class="statusbarpanel-menu-iconic" chromedir="&locale.dir;">
  946.             <menupopup onpopupshowing="return livemarkFillPopup(this);"
  947.                        oncommand="livemarkAddMark(window._content, event.target.getAttribute('data'));" />
  948.           </statusbarpanel>
  949.         </textbox>
  950.         <toolbarbutton id="go-button"
  951.                        tooltiptext="&goButton.tooltip;"
  952.                        oncommand="handleURLBarCommand(event);"
  953.                        ondragover="nsDragAndDrop.dragOver(event, goButtonObserver);"
  954.                        ondragdrop="nsDragAndDrop.drop(event, goButtonObserver);"
  955.                        ondragexit="nsDragAndDrop.dragExit(event, goButtonObserver);"/>
  956.       </toolbaritem>
  957.  
  958.       <toolbaritem id="search-container" title="&searchItem.title;"
  959.                    align="center" class="chromeclass-toolbar-additional"
  960.                    toolgroup="personal">
  961.         <searchbar id="searchbar" observes="searchEngineBroadcaster" persist="style" style="width: 12em;"/>
  962.         <toolbarbutton id="search-button" class="nstoolbar-button"
  963.                        tooltiptext="&search.button.tooltip;"
  964.                        oncommand="document.getAnonymousElementByAttribute(document.getElementById('searchbar'), 'class', 'searchbar-textbox').onTextEntered();"/>
  965.       </toolbaritem>
  966.  
  967.  
  968.       <toolbarbutton id="popupblocker-button" type="menu-button" class="toolbarbutton-1"
  969.                      label="&popupblocker.label;"
  970.                      tooltiptext="&popupblocker-tooltiptext.label;"
  971.                      oncommand="DoPBBAction(event, 'allowPopups');"
  972.                      popupDetected="false"
  973.                      showCount="false"
  974.                      ondragover="nsDragAndDrop.dragOver(event, homeButtonObserver);"
  975.                      ondragdrop="nsDragAndDrop.drop(event, homeButtonObserver);"
  976.                      ondragexit="nsDragAndDrop.dragExit(event, homeButtonObserver);"
  977.                      toolgroup="functional">
  978.         <menupopup id="popupblocker-menu">
  979.           <menuitem id="popupblocker-onoff" oncommand="DoPBBAction(event, 'allowPopups');"/>
  980.           <menuseparator/>
  981.           <menuitem id="popupblocker-showcount" label="&popupblocker-showcount.label;"
  982.                     type="checkbox" oncommand="DoPBBAction(event, 'showBlockedCount');"
  983.                     tooltiptext="&popupblocker-showcount-tooltiptext.label;"/>
  984.           <menuitem id="popupblocker-playsound" label="&popupblocker-playsound.label;"
  985.                     type="checkbox" oncommand="DoPBBAction(event, 'playBlockedSound');"
  986.                     tooltiptext="&popupblocker-playsound-tooltiptext.label;"/>
  987.           <menuseparator/>
  988.           <menuitem id="popupblocker-showlist" label="&popupblocker-showlist.label;"
  989.                     oncommand="BlockerShowList(event);"
  990.                     tooltiptext="&popupblocker-showlist-tooltiptext.label;"/>
  991.           <menuitem id="popupblocker-sitecontrol" label="&popupblocker-sitecontrol.label;"
  992.                     oncommand="BlockerShowSCDialog(event);"
  993.                     tooltiptext="&popupblocker-sitecontrol-tooltiptext.label;"/>
  994.           <menuitem id="popupblocker-resetcount" label="&popupblocker-resetcount.label;"
  995.                     oncommand="ClearPopupCount(event);"
  996.                     tooltiptext="&popupblocker-resetcount-tooltiptext.label;"/>                    
  997.         </menupopup>
  998.       </toolbarbutton>
  999.  
  1000.  
  1001.       <toolbarbutton id="print-button" type="menu-button" class="toolbarbutton-1"
  1002.                      label="&printButton.label;" oncommand="if (event.target==this) browserDoOLECmd(2);"
  1003.                      tooltiptext="&printButton.tooltip;"
  1004.                      ondragover="nsDragAndDrop.dragOver(event, homeButtonObserver);"
  1005.                      ondragdrop="nsDragAndDrop.drop(event, homeButtonObserver);"
  1006.                      ondragexit="nsDragAndDrop.dragExit(event, homeButtonObserver);"
  1007.                      toolgroup="functional">
  1008.         <menupopup id="printMenu">
  1009.           <menuitem id="printMenuItemToolbar" label="&printCmd.label;" accesskey="&printCmd.accesskey;"
  1010.                     default="true" command="cmd_print" tooltiptext="&printCmd.tooltip;"/>
  1011.           <menuitem id="printPreviewMenuItemToolbar" label="&printPreviewCmd.label;"
  1012.                     accesskey="&printPreviewCmd.accesskey;"
  1013.                     oncommand="browserDoOLECmd(1);" tooltiptext="&printPreviewCmd.tooltip;"/>
  1014.         </menupopup>
  1015.       </toolbarbutton>
  1016.  
  1017.  
  1018.       <toolbaritem id="personal-bookmarks" title="&bookmarksItem.title;" flex="1"
  1019.                    class="chromeclass-directories"
  1020.                    disableoverflow="true"
  1021.                    toolgroup="navigation">
  1022.         <toolbarbutton id="personal-bookmarks-add-bookmark-button" tooltiptext="&addBookmark.tooltip;" label="&addBookmark.label;"
  1023.                        onclick="if (event.which > 1) return;
  1024.                                 var addBookmarkButton = document.getElementById('personal-bookmarks-add-bookmark-button');
  1025.                                 var addBookmarkPopup = document.getElementById('personalBookmarksAddBookmarkDropdown');
  1026.                                 addBookmarkPopup.showPopup(addBookmarkButton, -1, -1, 'popup', 'bottomleft', 'topleft');"/>
  1027.           <stack id="bookmarks-stack" flex="1" style="min-width:0px; width:0px;"
  1028.                  onpopupshowing="BookmarksToolbar.setOpenedMenu(event);"
  1029.                  onpopuphidden="BookmarksToolbar.unsetOpenedMenu(event);">
  1030.             <!-- onclick="BookmarksMenu.loadBookmarkMiddleClick(event, this.database)" -->
  1031.             <hbox id="bookmarks-ptf" class="bookmarks-toolbar-items" contextmenu="bookmarks-context-menu"
  1032.                   flex="1" style="min-width:0px; width:0px;margin-left: 3px;"
  1033.                   datasources="rdf:bookmarks rdf:files rdf:localsearch"
  1034.                   template="bookmarks-template" flags="dont-test-empty"
  1035.                   infer="forward-proxy"
  1036.                   rdf:type="http://home.netscape.com/NC-rdf#Folder"
  1037.                   onpopupshowing="BookmarksMenu.onShowMenu(event.target)"
  1038.                   onpopuphidden="BookmarksMenu.onHideMenu(event.target)"
  1039.                   oncommand="BookmarksMenu.onSelectBookmark(event, event.target, this.database)"
  1040.                   onclick="BookmarksMenu.loadBookmarkMiddleClick(event, this.database)"
  1041.                   ondraggesture="nsDragAndDrop.startDrag(event, BookmarksMenuDNDObserver)"
  1042.                   ondragdrop="nsDragAndDrop.drop(event, BookmarksMenuDNDObserver); event.preventBubble()"
  1043.                   ondragenter="nsDragAndDrop.dragEnter(event, BookmarksMenuDNDObserver); event.preventBubble()"
  1044.                   ondragexit="nsDragAndDrop.dragExit(event, BookmarksMenuDNDObserver); event.preventBubble()"
  1045.                   ondragover="nsDragAndDrop.dragOver(event, BookmarksMenuDNDObserver); event.preventBubble()">
  1046.             </hbox>
  1047.             <hbox class="bookmarks-toolbar-overflow-items" mousethrough="always">
  1048.               <hbox mousethrough="always" id="overflow-padder"/>
  1049.               <toolbarbutton id="bookmarks-chevron" type="menu" class="chevron"
  1050.                              chromedir="&locale.dir;"
  1051.                              mousethrough="never" collapsed="true"
  1052.                              datasources="rdf:bookmarks rdf:files rdf:localsearch"
  1053.                              template="bookmarks-template" flags="dont-test-empty"
  1054.                              onpopupshowing="BookmarksMenu.onShowMenu(event.target)"
  1055.                              onpopuphidden="BookmarksMenu.onHideMenu(event.target)"
  1056.                              oncommand="BookmarksMenu.onSelectBookmark(event, event.target, this.database)"
  1057.                              onclick="BookmarksMenu.loadBookmarkMiddleClick(event, this.database)"
  1058.                              ondraggesture="nsDragAndDrop.startDrag(event, BookmarksMenuDNDObserver)"
  1059.                              ondragdrop="nsDragAndDrop.drop(event, BookmarksMenuDNDObserver); event.preventBubble()"
  1060.                              ondragenter="nsDragAndDrop.dragEnter(event, BookmarksMenuDNDObserver); event.preventBubble()"
  1061.                              ondragexit="nsDragAndDrop.dragExit(event, BookmarksMenuDNDObserver); event.preventBubble()"
  1062.                              ondragover="nsDragAndDrop.dragOver(event, BookmarksMenuDNDObserver); event.preventBubble()">
  1063.                 <menupopup contextmenu="bookmarks-context-menu"
  1064.                            onpopupshowing="if (event.target == this) BookmarksToolbar.updateOverflowMenu(this);"/>
  1065.               </toolbarbutton>
  1066.             </hbox>
  1067.             <toolbarbutton class="bookmark-item bookmarks-toolbar-customize" mousethrough="never"
  1068.                            label="&bookmarksToolbarItem.label;"/>
  1069.           </stack>
  1070.           <!--hbox id="bookmarks-appendedspace" flex="200"/-->
  1071.         </toolbaritem>
  1072.  
  1073.  
  1074.         <toolbarbutton id="downloads-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1075.                        type="menu-button"
  1076.                        observes="Tools:Downloads"
  1077.                        ondragdrop="nsDragAndDrop.drop(event, DownloadsButtonDNDObserver); event.preventBubble()"
  1078.                        ondragover="nsDragAndDrop.dragOver(event, DownloadsButtonDNDObserver); event.preventBubble()"
  1079.                        ondragenter="nsDragAndDrop.dragEnter(event, DownloadsButtonDNDObserver); event.preventBubble()"
  1080.                        ondragexit="nsDragAndDrop.dragExit(event, DownloadsButtonDNDObserver); event.preventBubble()"
  1081.                        label="&downloads.label;"
  1082.                        tooltiptext="&downloads.tooltip;"
  1083.                        toolgroup="functional">
  1084.           <menupopup id="downloadsPopUp" position="at_pointer" onpopupshowing="updateDownloadsMenu(this);">
  1085.             <menuitem id="clearDownloadsHistory"
  1086.                       label="&clearHistoriesDownloads.label;"
  1087.                       tooltiptext="&clearHistoriesDownloads.tooltip;"
  1088.                       command="History:ClearDownloads"/>
  1089.             <menuitem id="downloadsOptions"
  1090.                       label="&downloadsOptions.label;"
  1091.                       tooltiptext="&downloadsOptions.tooltip;"
  1092.                       oncommand="openPrefs(4); event.preventBubble();"/>
  1093.           </menupopup>
  1094.         </toolbarbutton>
  1095.  
  1096.  
  1097.         <toolbarbutton id="history-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1098.                        command="revealHistory" label="&historyButton.label;"
  1099.                        tooltiptext="&historyButton.tooltip;"/>
  1100.  
  1101.         <toolbarbutton id="mail-button" type="menu" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1102.                        label="&mailButton.label;" orient="vertical" toolgroup="personal"
  1103.                        onmouseover="MailIntegration.updateUnreadCount();"
  1104.                        tooltiptext="&mailButton.tooltip;">
  1105.           <menupopup tooltiptext="">
  1106.             <menuitem accesskey="&mailButton.readMail.accesskey;"
  1107.                       command="Browser:ReadMail"/>
  1108.             <menuitem label="&mailButton.newMessage.label;"
  1109.                       accesskey="&mailButton.newMessage.accesskey;"
  1110.                       command="Browser:NewMessage"/>
  1111.           </menupopup>
  1112.         </toolbarbutton>
  1113.  
  1114.         <toolbarbutton id="bookmarks-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1115.                        observes="viewNSBookmarksSidebar"
  1116.                        tooltiptext="&bookmarksButton.tooltip;"
  1117.                        ondragover="nsDragAndDrop.dragOver(event, bookmarksButtonObserver);"
  1118.                        ondragdrop="nsDragAndDrop.drop(event, bookmarksButtonObserver);"
  1119.                        ondragexit="nsDragAndDrop.dragExit(event, bookmarksButtonObserver);"/>
  1120.  
  1121.         <toolbarbutton id="cut-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1122.                        label="&cutCmd.label;"
  1123.                        command="cmd_cut"
  1124.                        tooltiptext="&cutButton.tooltip;"
  1125.                        toolgroup="functional"/>
  1126.  
  1127.         <toolbarbutton id="copy-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1128.                        label="©Cmd.label;"
  1129.                        command="cmd_copy"
  1130.                        tooltiptext="©Button.tooltip;"
  1131.                        toolgroup="functional"/>
  1132.  
  1133.         <toolbarbutton id="paste-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1134.                        label="&pasteCmd.label;"
  1135.                        command="cmd_paste"
  1136.                        tooltiptext="&pasteButton.tooltip;"
  1137.                        toolgroup="functional"/>
  1138.         
  1139.                 <!-- MERC (rpaul) adding security center toolbar button -->
  1140.               <toolbaritem overflowcommand="OpenSecurityCenter();" toolgroup="functional" label="Security Center" id="securitycenter-item">
  1141.                   <image id="securityCenterText" />
  1142.                   <toolbarbutton tooltiptext="&security.tooltip;" toolgroup="functional" 
  1143.                                                class="toolbarbutton-1 chromeclass-toolbar-additional" 
  1144.                                                id="securitycenter-button" label="&security.label;" 
  1145.                                                command="cmd_openSecurityCenter" />
  1146.               </toolbaritem>
  1147.                
  1148.                 <toolbarbutton observes="throbberBroadcaster" id="throbber-button" label="Navigator Throbber" 
  1149.                                              class="chromeclass-toolbar-additional" oncommand="goClickThrobber('browser.throbber.url', event);" />
  1150.  
  1151.         <!-- TODO: internationalize -->
  1152.         <toolbaritem toolgroup="personal" id="webmail-button" class="webmail-toolbaritem"
  1153.                      title="Webmail" label="Setup E-mail" overflowcommand="webmail.readDefault();"
  1154.                      onclick="if (event.which > 1) return;">
  1155.             <stack>
  1156.                   <popupset>
  1157.                     <menupopup id="webmail-menu" position="at_pointer" label="E-Mail"
  1158.                                          onpopupshowing="document.getElementById('webmail-button').setAttribute('clickDown', 'true');"
  1159.                                          onpopuphidden="document.getElementById('webmail-button').removeAttribute('clickDown');">
  1160.                         <menuitem label="Read E-mail" src="chrome://browser/skin/icons/mail_sm.png"
  1161.                                   class="menuitem-iconic" id="webmail-readmenuitem"
  1162.                                   oncommand="this.parentNode.hidePopup();webmail.readDefault();"
  1163.                                   tooltiptext="Check Netscape E-mail Account"  />
  1164.                         <menuitem label="Write New E-Mail" disabled="true" id="webmail-writemenuitem"
  1165.                                   oncommand="this.parentNode.hidePopup();webmail.writeDefault();"
  1166.                                   tooltiptext="Create a new E-mail" />
  1167.                         <menuitem label="Address Book" id="webmail-addressmenuitem"
  1168.                                   oncommand="this.parentNode.hidePopup();webmail.addressDefault();"
  1169.                                   tooltiptext="Go to Webmail Addressbook" disabled="true" />
  1170.                         <menuseparator id="webmail-menu-mainsep" />
  1171.                         <menuitem label="Add Other E-Mail Account"
  1172.                                   oncommand="this.parentNode.hidePopup();webmail.openManage('_new');"
  1173.                                   tooltiptext="Add another E-Mail Account" />
  1174.                         <menuitem label="Manage E-Mail Accounts"
  1175.                                   oncommand="this.parentNode.hidePopup();webmail.openManage(null);"
  1176.                                   tooltiptext="Manage E-Mail Accounts" />
  1177.                     </menupopup>
  1178.                   </popupset>
  1179.                   <vbox class="webmail-content">
  1180.                     <spacer flex="1" style="min-width: 2px !important;"/>
  1181.                     <hbox>
  1182.                         <spacer style="width:4px !important"/>
  1183.                         <stack align="center" pack="center" id="webmail-button-container" style="width: 80px;">
  1184.                         <spacer style="height: 1px;"/>
  1185.                             <hbox align="center" pack="end" style="width: 80px;" id="webmailClickStyleTarget">
  1186.                                 <image id="webmail-button-left-edge"/>
  1187.                                 <spacer id="webmail-button-slice" flex="1"/>
  1188.                                 <image id="webmail-button-right-edge"/>
  1189.                             </hbox>
  1190.                             <hbox style="width: 80px;" align="stretch">
  1191.                                 <box flex="1" id="webmailPopupTarget" style="margin-top: 1px;"/>
  1192.                             </hbox>
  1193.                             <hbox id="webmail-buttons-container" align="center" pack="end">
  1194.                                 <spacer flex="1" style="min-width: 6px;"/>
  1195.                                 <toolbarbutton id="webmail-menu-image"
  1196.                                                image="chrome://browser/skin/icons/mail_sm.png"
  1197.                                                left="0" top="0" tooltiptext="Webmail"  
  1198.                                                oncommand="if (event.target==this) webmail.readDefault();"/>
  1199.                                 <spacer flex="1"/>
  1200.                                 <toolbarbutton tooltiptext="Webmail" id="webmail-toolbarbutton"
  1201.                                                label="Setup E-mail" baselabel="Webmail" class="webmail-toolbarbutton"
  1202.                                                oncommand="if (event.target==this) webmail.readDefault();"/>
  1203.                                 <spacer flex="1" style="min-width: 4px !important;"/>
  1204.                                 <dropmarker id="webmail-dropmarker" class="webmail-dropmarker" align="center"
  1205.                                     onclick="if (event.which > 1) return; document.getElementById('webmail-menu').showPopup(document.getElementById('webmail-button'),-1,-1,'popup','bottomleft','topleft');">
  1206.                                     <image id="webmail-dropmarker-image"/>
  1207.                                 </dropmarker>
  1208.                             </hbox>
  1209.                         </stack>
  1210.                         <spacer style="width:4px !important"/>
  1211.                     </hbox>
  1212.                     <spacer flex="1" id="webmailPopupTarget" style="min-width: 2px !important;  min-height: 2px !important;"/>
  1213.                 </vbox>
  1214.                 <toolbarbutton id="borkbork-webmaildraggable" width="120" label="Webmail" class="webmail-draggable" />
  1215.                 <toolbarbutton id="borkbork-webmailpreview" image="chrome://browser/skin/icons/mail_sm.png" class="webmail-preview" />
  1216.             </stack>
  1217.         </toolbaritem>
  1218.  
  1219.         <!-- MERC: XXX: TODO: internationalize -->
  1220.         <toolbarbutton id="customize-toolbars-button"
  1221.                        label="Customize"
  1222.                        class="toolbarbutton-1"
  1223.                        tooltiptext="Customize Toolbars"
  1224.                        command="cmd_CustomizeToolbars"/>
  1225.                        
  1226.     </toolbarpalette>
  1227.  
  1228.     <toolbar id="nav-bar" class="toolbar-primary chromeclass-toolbar"
  1229.              default_toolbarname="&navbarCmd.label;" toolbarname="&navbarCmd.label;" accesskey="&navbarCmd.accesskey;"
  1230.              fullscreentoolbar="true" default_mode="icons" mode="icons" default_iconsize="large" iconsize="large"
  1231.              customizable="true"
  1232.              defaultset="back-button,forward-button,stop-reload-button,home-button,search-container,urlbar-container,securitycenter-item,popupblocker-button,combined-autofill-button,clearhistories-button,throbber-button"
  1233.              context="toolbar-context-menu">
  1234.       <hbox id="fullscreenflex" flex="1" hidden="true" fullscreencontrol="true"/>
  1235.       <hbox id="window-controls" hidden="true" fullscreencontrol="true">
  1236.  
  1237.          <toolbarbutton id="minimize-button" class="toolbarbutton-1"
  1238.                        tooltiptext="&fullScreenMinimize.tooltip;"
  1239.                        oncommand="window.minimize();"/>
  1240.  
  1241.         <toolbarbutton id="restore-button" class="toolbarbutton-1"
  1242.                         observes="restoreButtonBroadcaster"
  1243.                        oncommand="BrowserFullScreen();"/>
  1244.  
  1245.         <toolbarbutton id="close-button" class="toolbarbutton-1"
  1246.                        tooltiptext="&fullScreenClose.tooltip;"
  1247.                        oncommand="window.close();"/>
  1248.                    
  1249.       </hbox>
  1250.     </toolbar>
  1251.     <multibar id="PersonalToolbar" class="chromeclass-toolbar"
  1252.               persist="currentIndex toolbarname currentset showtitle"
  1253.               showtitle="true" customizable="true"
  1254.               toolbarname="Personal Toolbar" default_toolbarname="Personal Toolbar"
  1255.               currentIndex="0" context="toolbar-context-menu"
  1256.               mode="icons" default_mode="icons"
  1257.               iconsize="large" default_iconsize="large"              
  1258.               defaultset="Personal:spui:weather|51,webmail-button,personal-bookmarks;Local:spui:weather|52,spui:movies|11,spui:maps|21,spui:yellowpages|31,spui:shopping|41;News:spui:newsticker|1,spui:newsticker2|2,spui:stockticker|61"/>
  1259.  
  1260.     <toolbarset id="customToolbars" persist="toolbarorder" defaulttoolbarorder="nav-bar,PersonalToolbar" toolbarorder="nav-bar,PersonalToolbar" context="toolbar-context-menu"/>
  1261.    </toolbox>
  1262.    <spacer flex="1" context="toolbar-context-menu" />
  1263.  </vbox>
  1264.  </stack>
  1265.  
  1266.   <hbox flex="1" id="browser">
  1267.     <vbox id="sidebar-box" hidden="true" class="chromeclass-extrachrome"/>
  1268.     <splitter id="sidebar-splitter" class="chromeclass-extrachrome" hidden="true"/>
  1269.     <vbox id="appcontent" flex="1">
  1270.       <tabbrowser id="content" disablehistory="true"
  1271.                   flex="1" contenttooltip="aHTMLTooltip"
  1272.                   contentcontextmenu="contentAreaContextMenu"
  1273.                   onnewtab="BrowserOpenTab();"
  1274.                   onkeyup="onBrowserKeyUp(event);"
  1275.                   onnewpreftab="BrowserOpenPrefTab();"
  1276.                   onhometab="BrowserHome();"
  1277.                   onnetscapetab="BrowserNetscapeTab();"
  1278.                   onbookmarkpage="bookmarkPageFromTabRightClick();"
  1279.                   onbookmarktabs="bookmarkAllTabs(document.getElementById('content'), true);"
  1280.                   onnewcurrenttab="BrowserOpenNewCurrentTab();"
  1281.                   autocompleteenabled="true"
  1282.                   autocompletepopup="PopupAutoComplete"
  1283.                   ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);"
  1284.                   onclick="return contentAreaClick(event, false);"/>
  1285.     </vbox>
  1286.   </hbox>
  1287.  
  1288.     <toolbar id="FindToolbar" hidden="true" align="center" fullscreentoolbar="true">
  1289.  
  1290.       <toolbarbutton id="find-closebutton" class="tabs-closebutton" tooltiptext="&findCloseButton.tooltip;"
  1291.                      oncommand="closeFindBar();"/>
  1292.  
  1293.       <label value="&find.label;"/>
  1294.       <hbox id="find-field-container">
  1295.         <textbox id="find-field" oninput="find(this.value);" onfocus="onFindBarFocus();"
  1296.                 onkeypress="onFindBarKeyPress(event);" onblur="onFindBarBlur();"/>
  1297.       </hbox>
  1298.       <toolbarbutton id="find-next" class="toolbarbutton-1" label="&findNext.label;" tooltiptext="&findNext.tooltip;"
  1299.                      command="cmd_findAgain" disabled="true"/>
  1300.  
  1301.       <toolbarbutton id="find-previous" class="toolbarbutton-1" label="&findPrevious.label;" tooltiptext="&findPrevious.tooltip;"
  1302.                      command="cmd_findPrevious" disabled="true"/>
  1303.  
  1304.       <toolbarbutton id="highlight" class="toolbarbutton-1" label="&highlight.label;" tooltiptext="&highlight.tooltip;"
  1305.                      oncommand="toggleHighlight(!this.checked);
  1306.                                 if (gFindMode != FIND_NORMAL) setFindCloseTimeout();"
  1307.                      type="checkbox" disabled="true"/>
  1308.  
  1309.       <checkbox id="find-case-sensitive" oncommand="toggleCaseSensitivity(this.checked);"
  1310.                 label="&caseSensitiveCheckbox.label;" accesskey="&caseSensitiveCheckbox.accesskey;"/>
  1311.       <image id="find-status-icon"/>
  1312.       <label id="find-status"/>
  1313.     </toolbar>
  1314.  
  1315.  
  1316.  
  1317. <!-- MERC (rpaul) status bar moved into an overlay statusbarOverlay.xul -->
  1318. <statusbar id="status-bar"/>
  1319.  
  1320.  
  1321.  
  1322. <script type="application/x-javascript">
  1323.     dump ("Loading script file App.js\n");
  1324. </script>
  1325. <script type="application/x-javascript" src="chrome://aim/content/App.js"/>
  1326. <script type="application/x-javascript">
  1327.     dump ("Loading script file aimHelpers.js\n");
  1328. </script>
  1329. <script type="application/x-javascript" src="chrome://aim/content/aimHelpers.js"/>
  1330. <script type="application/x-javascript">
  1331.     dump ("Loading script file AimBuddy.js\n");
  1332. </script>
  1333. <script type="application/x-javascript" src="chrome://aim/content/AimBuddy.js"/>
  1334. <script type="application/x-javascript">
  1335.     dump ("Loading script file AimIM.js\n");
  1336. </script>
  1337. <script type="application/x-javascript" src="chrome://aim/content/AimIM.js"/>
  1338. <script type="application/x-javascript">
  1339.     dump ("Finished loading script file AimIM.js\n");
  1340. </script>
  1341. </window>