<?xml version="1.0" encoding="utf-8"?>
<window screenLeft="0" screenTop="0" width="420" height="175" titleBar="false" resizeMargins="0,0,0,0" maxWidth="420" maxHeight="175" maximizable="false" onload="ParseArgs();">
	<script src="common.js"/>
	<script language="JavaScript">
	<![CDATA[
		function ParseArgs()
		{
			$('lblText').value = "此文件夹里共有"+window.dialogArguments.coveredcount+"项文件重名,是否覆盖现有文件重新下载";
		}

		function CloseWindow(ret)
		{
			//ret: 0 覆盖
			//	1 跳过
			//	2 取消
			Components.GetObject("@pplive.com/outputdebug;1").DebugString('step chose='+ret);
			window.returnValue = ret;
			window.close();
		}
	]]>
	</script>
	<subwindow left="0" top="0" width="420" height="175">
		<!-- top left -->
		<subwindow left="0" top="0" width="190" height="32" backgroundImage="small_title_l.png" clippingColor="#FF00FF">
			<label left="30" top="0" width="190" height="32" value="确认文件覆盖" textAlignment="left vcenter" fontSize="14" fontStyle="bold" passThrough="true" foregroundColor="#FFFFFF"/>
		</subwindow>
		<!-- top -->
		<subwindow left="190" top="0" width="115" height="32" backgroundImage="small_title_m.png" clippingColor="#FF00FF" horizontalAlignment="stretch" backgroundImageStretchMode="stretch" backgroundColor="#000000"/>
		<!-- top right -->
		<subwindow left="305" top="0" width="115" height="32" backgroundImage="small_title_r.png" clippingColor="#FF00FF">
			<button id="btnClose" left="83" top="4" width="24" height="24" image="close.png" hoverImage="close_hover.png" downImage="close_down.png" tooltip="关闭" onclick="CloseWindow(2);"/>
		</subwindow>
		<!-- left frame border-->
		<subwindow left="0" top="32" width="2" height="143" backgroundImage="small_frame_l.png" horizontalAlignment="left" verticalAlignment="stretch" backgroundImageStretchMode="stretch" backgroundColor="#000000"/>
		<!-- right frame border-->
		<subwindow left="418" top="32" width="2" height="143" backgroundImage="small_frame_r.png" horizontalAlignment="right" verticalAlignment="stretch" backgroundImageStretchMode="stretch" backgroundColor="#000000"/>
		<!-- bottom frame border-->
		<subwindow left="2" top="173" width="416" height="2" backgroundImage="small_frame_bottom.png" horizontalAlignment="stretch" backgroundImageStretchMode="stretch" backgroundColor="#000000"/>
		<!-- main subwindow-->
		<subwindow left="2" top="32" width="416" height="141" backgroundColor="#FFFFFF">
			<label id="lblText" left="0" top="" width="414" height="90" value="" textAlignment="center vcenter" passThrough="true"/>
			<label left="1" top="92" width="414" height="1" backgroundColor="#CCCCCC" passThrough="true"/>
			<button id="btnCover" left="100" top="103" width="70" height="26" label="覆盖" image="button.png" hoverImage="button_hover.png" downImage="button_down.png" disabledImage="button_disable.png" onclick="CloseWindow(0);" />
			<button id="btnSkip" left="183" top="103" width="70" height="26" label="跳过" image="button.png" hoverImage="button_hover.png" downImage="button_down.png" disabledImage="button_disable.png" onclick="CloseWindow(1);" />
			<button id="btnCancel" left="270" top="103" width="70" height="26" label="取消" image="button.png" hoverImage="button_hover.png" downImage="button_down.png" disabledImage="button_disable.png" onclick="CloseWindow(2);" />
		</subwindow>
	</subwindow>
</window>