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