<?xml version="1.0"?>
<?xml-stylesheet href="../css/docs.css" type="text/css"?>

<!DOCTYPE window [
<!ENTITY % firemongerDTD SYSTEM "chrome://firemonger/locale/firemonger.dtd">
%firemongerDTD;
<!ENTITY % generalDTD SYSTEM "chrome://firemonger/locale/general.dtd">
%generalDTD;
]>

<window
   title      = "docs"
   id         = "mozcd-docs-tb"
   xmlns      = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
   orient     = "vertical">

<stringbundleset>
	<stringbundle id="mozcdDefaultProperties" src="chrome://firemonger/content/mozcd.properties"/>
	<stringbundle id="mozcdLocaleProperties" src="chrome://firemonger/locale/mozcd.locale.properties"/>
</stringbundleset>

<script type="application/x-javascript" src="chrome://firemonger/locale/strings.js"/>
<script type="application/x-javascript" src="../js/mozcd.js"/>

<!-- load generalised install file and then load the localized file which may (or may not) introduce changes -->
<script type="application/x-javascript" src="../js/mozcdapps.js"/>
<script type="application/x-javascript" src="chrome://firemonger/locale/mozcdapps_local.js"/>

<script type="application/x-javascript"><![CDATA[

	var loc = new String(window.location);

	if (loc.indexOf("reset_lang") > 0) {
		mozcdResetLang();
		mozcdRestartSelf();
	} else {
		mozcdInstall(mozcdGetURLParam(window.location, "app"));
	}
	
]]></script>

<vbox>
	<spacer style="min-height: 30px;" flex="1"/>

	<description id="product" class="mozcd-install-title" flex="1">
		<script type="application/x-javascript"><![CDATA[
			document.getElementById("product").textContent = mozcdApps[mozcdGetURLParam(window.location, "app")].name;
		]]></script>
	</description>

	<description id="mozcd-docs-installff-maintext" flex="1">
		&firemonger.docs.install.text;
	</description>
	<spacer style="min-height: 30px;" flex="1"/>

	<description id="mozcd-docs-install-wait" flex="1">
		&firemonger.docs.install.wait;
	</description>

	<spacer style="min-height: 30px;" flex="1"/>
</vbox>

<vbox style="height:300;max-width:300" align="center">
	<button id="back" label="&firemonger.docs.install.back;" oncommand="javascript:window.location='index.xhtml';" style="max-width:150;height:30;width:30;"/>
</vbox>

</window>