<?xml version="1.0" encoding="UTF-8"?>

<?xml-stylesheet href="chrome://cometbird/skin/cometbird_translate.css" type="text/css" ?>
<!DOCTYPE overlay SYSTEM "chrome://cometbird/locale/cometbird_translate.dtd">

<overlay id="cometbird_translate_overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

	<script type="application/x-javascript" src="chrome://cometbird/content/cometbird_translate_langconfig.js" />	
	<script type="application/x-javascript" src="chrome://cometbird/content/cometbird_translate.js" />	
	<script type="application/x-javascript" src="chrome://cometbird/content/cometbird_utility.js" />

	<!-- cometbird translate panel -->
	<vbox>
		<panel id="translate-panel" level="top" noautohide="false" noautofocus="true" norestorefocus="true" >
			<spacer height="3px" />
			<vbox id="translate-result-box" >
				<hbox flex="0">
					<spacer width="5px" />
					<image maxWidth="16" id="translate_image" src="chrome://cometbird/skin/translator.png" />
					<label id="translate_result_label" value="N/A" />
				</hbox>
			</vbox>
		</panel>
	</vbox>
	
	<!-- cometbird_translate toolbaritem -->
	<toolbarpalette id="BrowserToolbarPalette" >
		<toolbarbutton id="cometbird-translate-button" type="menu-button" checked="false" orient="horizontal"
			class="chromeclass-toolbar-additional"
			label="&cometbird.translate.toolbarbutton.label;"
			oncommand="cometbirdTranslate.toggle( event );" >
				
			<!-- menu popup -->
			<menupopup id="cometbird-translate-popup" >
				<menuitem id="cometbird-translate-topage" label="&cometbird.translate.topage.label;" oncommand="cometbirdTranslate.translatetoPage( event );" />
				<menuitem id="cometbird-translate-toggle" label="&cometbird.translate.toolbarbutton.tooltip;" type="checkbox" checked="false" autocheck="false" oncommand="" />
				<menuseparator />
				<menuitem id="cometbird-translate-config" label="&cometbird.translate.setconfig.label;" oncommand="cometbirdTranslate.setConfigTranslator( event );" />
			</menupopup>
		</toolbarbutton>
	</toolbarpalette>
	
	<!-- statusbar -->
	<statusbar id="status-bar">
		<statusbarpanel id="cometbird_statusbarpanel" context="cometbird-translate-statusbar-popup" onclick="cometbirdTranslate.statusbarToggle(event);" >
			<image maxWidth="16" id="translate_select_image" src="chrome://cometbird/skin/translator.png" />
			<image maxWidth="16" id="translate_select_error_image" src="chrome://cometbird/skin/translator_error.png" hidden="true" />
		</statusbarpanel>
		
		<!-- menu popup -->
		<menupopup id="cometbird-translate-statusbar-popup" >
			<menuitem id="cometbird-translate-topage" label="&cometbird.translate.topage.label;" oncommand="cometbirdTranslate.translatetoPage( event );" />
			<menuitem id="cometbird-translate-statusbar-toggle" label="&cometbird.translate.toolbarbutton.tooltip;" type="checkbox" checked="false" autocheck="false" oncommand="cometbirdTranslate.toggle(event);" />
			<menuseparator />
			<menuitem id="cometbird-translate-config" label="&cometbird.translate.setconfig.label;" oncommand="cometbirdTranslate.setConfigTranslator( event );" />
		</menupopup>
	</statusbar>
	
</overlay>