<?xml version="1.0"?> 
<?xml-stylesheet href="chrome://communicator/skin/tasksOverlay.css" type="text/css"?> 

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

<overlay id="charsetOverlay"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

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

    <!-- Composer Charset Menu -->
    <menu id="composerCharsetMenu" value="&charsetMenu.label;" datasources="rdf:charset-menu" ref="NC:ComposerCharsetMenuRoot" oncommand="ComposerMultiplexHandler(event)" oncreate="UpdateMenus()">
        <template>
            <rule rdf:type="http://home.netscape.com/NC-rdf#CharsetDetector">
                <menupopup>
                <menuitem type="radio" name="detectorGroup" checked="rdf:http://home.netscape.com/NC-rdf#Checked" uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                </menupopup>
            </rule>
            <rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
                <menupopup>
                <menuseparator uri="..." />
                </menupopup>
            </rule>
            <rule>
                <menupopup>
                <menuitem type="radio" name="charsetGroup" checked="rdf:http://home.netscape.com/NC-rdf#Checked" uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                </menupopup>
            </rule>
        </template>

        <menupopup id="composerCharsetMenuPopup">
        <menu value="&charsetMenuMore1.label;"  datasources="rdf:charset-menu" ref="NC:BrowserMore1CharsetMenuRoot">
            <template>
                <rule>
                    <menupopup>
                    <menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                    </menupopup>
                </rule>
            </template>
            <menupopup>
            </menupopup>
        </menu>
        <menu value="&charsetMenuMore2.label;"  datasources="rdf:charset-menu" ref="NC:BrowserMore2CharsetMenuRoot">
            <template>
                <rule>
                    <menupopup>
                    <menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                    </menupopup>
                </rule>
            </template>
            <menupopup>
            </menupopup>
        </menu>
        <menu value="&charsetMenuMore3.label;"  datasources="rdf:charset-menu" ref="NC:BrowserMore3CharsetMenuRoot">
            <template>
                <rule>
                    <menupopup>
                    <menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                    </menupopup>
                </rule>
            </template>
            <menupopup>
            </menupopup>
        </menu>
        <menu value="&charsetMenuMore4.label;"  datasources="rdf:charset-menu" ref="NC:BrowserMore4CharsetMenuRoot">
            <template>
                <rule>
                    <menupopup>
                    <menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                    </menupopup>
                </rule>
            </template>
            <menupopup>
            </menupopup>
        </menu>
        <menu value="&charsetMenuMore5.label;"  datasources="rdf:charset-menu" ref="NC:BrowserMore5CharsetMenuRoot">
            <template>
                <rule>
                    <menupopup>
                    <menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                    </menupopup>
                </rule>
            </template>
            <menupopup>
            </menupopup>
        </menu>
        <menu value="&charsetMenuMore6.label;"  datasources="rdf:charset-menu" ref="NC:BrowserMore6CharsetMenuRoot">
            <template>
                <rule>
                    <menupopup>
                    <menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                    </menupopup>
                </rule>
            </template>
            <menupopup>
            </menupopup>
        </menu>
        <menu value="&charsetMenuMore.label;"  datasources="rdf:charset-menu" ref="NC:BrowserMoreCharsetMenuRoot">
            <template>
                <rule>
                    <menupopup>
                    <menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                    </menupopup>
                </rule>
            </template>
            <menupopup>
            </menupopup>
        </menu>
        <menuseparator />
        <menuitem name="charsetCustomize" value="&charsetCustomize.label;" oncommand="window.openDialog('chrome://communicator/content/pref/pref-charset.xul','PrefWindow', 'chrome,modal=yes,resizable=yes', 'composer')"/>
        </menupopup>
    </menu>

    <!-- Mail View Charset Menu -->
    <menu id="mailviewCharsetMenu" value="&charsetMenu.label;" datasources="rdf:charset-menu" ref="NC:MailviewCharsetMenuRoot" oncommand="MailMultiplexHandler(event)" oncreate="UpdateMailMenus()">
        <template>
            <rule rdf:type="http://home.netscape.com/NC-rdf#CharsetDetector">
                <menupopup>
                <menuitem type="radio" name="detectorGroup" checked="rdf:http://home.netscape.com/NC-rdf#Checked" uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                </menupopup>
            </rule>
            <rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
                <menupopup>
                <menuseparator uri="..." />
                </menupopup>
            </rule>
            <rule>
                <menupopup>
                <menuitem type="radio" name="charsetGroup" checked="rdf:http://home.netscape.com/NC-rdf#Checked" uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                </menupopup>
            </rule>
        </template>

        <menupopup>
        <menu value="&charsetMenuMore1.label;"  datasources="rdf:charset-menu" ref="NC:BrowserMore1CharsetMenuRoot">
            <template>
                <rule>
                    <menupopup>
                    <menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                    </menupopup>
                </rule>
            </template>
            <menupopup>
            </menupopup>
        </menu>
        <menu value="&charsetMenuMore2.label;"  datasources="rdf:charset-menu" ref="NC:BrowserMore2CharsetMenuRoot">
            <template>
                <rule>
                    <menupopup>
                    <menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                    </menupopup>
                </rule>
            </template>
            <menupopup>
            </menupopup>
        </menu>
        <menu value="&charsetMenuMore3.label;"  datasources="rdf:charset-menu" ref="NC:BrowserMore3CharsetMenuRoot">
            <template>
                <rule>
                    <menupopup>
                    <menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                    </menupopup>
                </rule>
            </template>
            <menupopup>
            </menupopup>
        </menu>
        <menu value="&charsetMenuMore4.label;"  datasources="rdf:charset-menu" ref="NC:BrowserMore4CharsetMenuRoot">
            <template>
                <rule>
                    <menupopup>
                    <menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                    </menupopup>
                </rule>
            </template>
            <menupopup>
            </menupopup>
        </menu>
        <menu value="&charsetMenuMore5.label;"  datasources="rdf:charset-menu" ref="NC:BrowserMore5CharsetMenuRoot">
            <template>
                <rule>
                    <menupopup>
                    <menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                    </menupopup>
                </rule>
            </template>
            <menupopup>
            </menupopup>
        </menu>
        <menu value="&charsetMenuMore6.label;"  datasources="rdf:charset-menu" ref="NC:BrowserMore6CharsetMenuRoot">
            <template>
                <rule>
                    <menupopup>
                    <menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                    </menupopup>
                </rule>
            </template>
            <menupopup>
            </menupopup>
        </menu>
        <menu value="&charsetMenuMore.label;"  datasources="rdf:charset-menu" ref="NC:BrowserMoreCharsetMenuRoot">
            <template>
                <rule>
                    <menupopup>
                    <menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                    </menupopup>
                </rule>
            </template>
            <menupopup>
            </menupopup>
        </menu>
        <menuseparator />
        <menuitem name="charsetCustomize" value="&charsetCustomize.label;" oncommand="window.openDialog('chrome://communicator/content/pref/pref-charset.xul','PrefWindow', 'chrome,modal=yes,resizable=yes', 'mailview')"/>
        </menupopup>
    </menu>

    <!-- Mail Edit Charset Menu -->
    <menu id="maileditCharsetMenu" value="&charsetMenu.label;" datasources="rdf:charset-menu" ref="NC:MaileditCharsetMenuRoot" oncommand="SetDocumentCharacterSet(event.target.getAttribute('id'));" oncreate="InitCharsetMenuCheckMark();">
        <template>
            <rule>
                <menupopup>
                <menuitem type="radio" name="charsetGroup" checked="rdf:http://home.netscape.com/NC-rdf#Checked" uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                </menupopup>
            </rule>
        </template>

        <menupopup>
        <menuitem name="charsetCustomize" value="&charsetCustomize.label;" oncommand="window.openDialog('chrome://communicator/content/pref/pref-charset.xul','PrefWindow', 'chrome,modal=yes,resizable=yes', 'mailedit')"/>
        <menuseparator />
        </menupopup>
    </menu>

    <!-- Charset Menu -->
    <menu id="charsetMenu" value="&charsetMenu.label;" datasources="rdf:charset-menu" ref="NC:BrowserCharsetMenuRoot" oncommand="MultiplexHandler(event)" oncreate="UpdateMenus(event)">
        <template>
            <rule rdf:type="http://home.netscape.com/NC-rdf#CharsetDetector">
                <menupopup>
                <menuitem type="radio" name="detectorGroup" checked="rdf:http://home.netscape.com/NC-rdf#Checked" uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                </menupopup>
            </rule>
            <rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
                <menupopup>
                <menuseparator uri="..." />
                </menupopup>
            </rule>
            <rule>
                <menupopup>
                <menuitem type="radio" name="charsetGroup" checked="rdf:http://home.netscape.com/NC-rdf#Checked" uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                </menupopup>
            </rule>
        </template>

        <menupopup>
        <menu value="&charsetMenuMore1.label;"  datasources="rdf:charset-menu" ref="NC:BrowserMore1CharsetMenuRoot">
            <template>
                <rule>
                    <menupopup>
                    <menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                    </menupopup>
                </rule>
            </template>
            <menupopup>
            </menupopup>
        </menu>
        <menu value="&charsetMenuMore2.label;"  datasources="rdf:charset-menu" ref="NC:BrowserMore2CharsetMenuRoot">
            <template>
                <rule>
                    <menupopup>
                    <menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                    </menupopup>
                </rule>
            </template>
            <menupopup>
            </menupopup>
        </menu>
        <menu value="&charsetMenuMore3.label;"  datasources="rdf:charset-menu" ref="NC:BrowserMore3CharsetMenuRoot">
            <template>
                <rule>
                    <menupopup>
                    <menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                    </menupopup>
                </rule>
            </template>
            <menupopup>
            </menupopup>
        </menu>
        <menu value="&charsetMenuMore4.label;"  datasources="rdf:charset-menu" ref="NC:BrowserMore4CharsetMenuRoot">
            <template>
                <rule>
                    <menupopup>
                    <menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                    </menupopup>
                </rule>
            </template>
            <menupopup>
            </menupopup>
        </menu>
        <menu value="&charsetMenuMore5.label;"  datasources="rdf:charset-menu" ref="NC:BrowserMore5CharsetMenuRoot">
            <template>
                <rule>
                    <menupopup>
                    <menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                    </menupopup>
                </rule>
            </template>
            <menupopup>
            </menupopup>
        </menu>
        <menu value="&charsetMenuMore6.label;"  datasources="rdf:charset-menu" ref="NC:BrowserMore6CharsetMenuRoot">
            <template>
                <rule>
                    <menupopup>
                    <menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                    </menupopup>
                </rule>
            </template>
            <menupopup>
            </menupopup>
        </menu>
        <menu value="&charsetMenuMore.label;"  datasources="rdf:charset-menu" ref="NC:BrowserMoreCharsetMenuRoot">
            <template>
                <rule>
                    <menupopup>
                    <menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                    </menupopup>
                </rule>
            </template>
            <menupopup>
            </menupopup>
        </menu>
        <menuseparator />
        <menuitem name="charsetCustomize" value="&charsetCustomize.label;" oncommand="window.openDialog('chrome://communicator/content/pref/pref-charset.xul','PrefWindow', 'chrome,modal=yes,resizable=yes', 'browser')"/>
        </menupopup>
    </menu>
</overlay>      
