<?xml version="1.0" encoding="utf-8"?>
<window id="mainWindow" left="0" top="0" width="981" height="637" titleBar="false" resizeMargins="2,2,2,2" bottomRightCorner="10,10" minWidth="981" minHeight="456" onload="construct();windowOnload();centerWindow();ComboBoxSearchHelper.call($('combo_textboxsearch'),$('searchbutton'),$('textboxsearch'));" onunload="windowOnunload();" title="PPTV" onsizemode="windowOnSizemode(); limitCoreConnectionChange();" onrunmodechanged="windowOnChangeMode();" onclose="return windowOnClose();" layered="false" onshow="windowOnShow(); limitCoreConnectionChange(true);" onhide="if(window.miniPlayer){window.miniPlayer.visible = false;} limitCoreConnectionChange(false);" onactivate="windowOnActive(event.activated);" onsize="windowOnSize();" ontaskbarbuttoncreated="OnTaskbarButtonCreated();">
	<script src="common.js" />
	<script src="timingservice.js" />
	<script src="mainframe2.js" />
	<script src="Balloons.js" />
	<script src="ComboBoxSearchHelper.js" />
<keyset>
	<key id="key_volumeInc" modifiers="" keycode="VK_UP" oncommand="EwaVolumeModify(10);" scope="app"/>
	<key id="key_volumeDec" modifiers="" keycode="VK_DOWN" oncommand="EwaVolumeModify(-10);" scope="app"/>
	<key id="key_volumeMute" modifiers="" keycode="VK_F7" oncommand="EwaChangeMute();" scope="app"/>
</keyset>
<keyset id="accelsetPlayer">
	<key id="key_PlayOrPause" modifiers="control" key="P" oncommand="EwaPlayOrPause();" scope="app"/>
	<key id="key_PlayOrPause2" modifiers="" keycode="VK_MEDIA_PLAY_PAUSE" oncommand="EwaPlayOrPause();" scope="app"/>
	<key id="key_Stop" modifiers="control" key="S" disabled="true" oncommand="EwaStop();" scope="app"/>
	<key id="key_Stop2" modifiers="" keycode="VK_MEDIA_STOP" disabled="true" oncommand="EwaStop();" scope="app"/>
	<key id="key_SpacePlayOrPause" modifiers="" keycode="VK_SPACE" oncommand="EwaPlayOrPause();" scope="app"/>
	<key id="key_FullOrUnfull" modifiers="alt" keycode="VK_ENTER" oncommand="EwaFullOrUnfull();" scope="app"/>
	<key id="key_screenshot" modifiers="alt" key="A" oncommand="screenShot()" scope="app"/>
	<key id="key_larger" keycode="VK_NUMPAD9" oncommand="window.videoScan.zoomPostion(1,1,0,0);" scope="app"/>
	<key id="key_smaller" keycode="VK_NUMPAD1" oncommand="window.videoScan.zoomPostion(-1,-1,0,0);" scope="app"/>
	<key id="key_hlarge" keycode="VK_NUMPAD6" oncommand="window.videoScan.zoomPostion(1,0,0,0);" scope="app"/>
	<key id="key_hsmall" keycode="VK_NUMPAD4" oncommand="window.videoScan.zoomPostion(-1,0,0,0);" scope="app"/>
	<key id="key_vlarge" keycode="VK_NUMPAD8" oncommand="window.videoScan.zoomPostion(0,1,0,0);" scope="app"/>
	<key id="key_vsmall" keycode="VK_NUMPAD2" oncommand="window.videoScan.zoomPostion(0,-1,0,0);" scope="app"/>
	<key id="key_resetscreen" keycode="VK_NUMPAD5" oncommand="window.videoScan.reset();" scope="app"/>
	<key id="key_leftmove" modifiers="control" keycode="VK_NUMPAD4" oncommand="window.videoScan.zoomPostion(0,0,-1,0);" scope="app"/>
	<key id="key_rightmove" modifiers="control" keycode="VK_NUMPAD6" oncommand="window.videoScan.zoomPostion(0,0,1,0);" scope="app"/>
	<key id="key_upmove" modifiers="control" keycode="VK_NUMPAD8" oncommand="window.videoScan.zoomPostion(0,0,0,-1);" scope="app"/>
	<key id="key_downmove" modifiers="control" keycode="VK_NUMPAD2" oncommand="window.videoScan.zoomPostion(0,0,0,1);" scope="app"/>
	<key id="key_middlemove" modifiers="control" keycode="VK_NUMPAD5" oncommand="window.videoScan.positionX = window.videoScan.positionY=0.5; window.videoScan.update();" scope="app"/>
	<key id="key_FF" keycode="VK_RIGHT" oncommand="EWAFastForward(true);" scope="app"/>
	<key id="key_FV" keycode="VK_LEFT" oncommand="EWAFastForward(false);" scope="app"/>
	<key id="key_next" modifiers="control" keycode="VK_RIGHT" oncommand="pppPlayNewItem(1);" scope="app"/>
	<key id="key_prev" modifiers="control" keycode="VK_LEFT" oncommand="pppPlayNewItem(-1);" scope="app"/>
</keyset>
<keyset id="accelsetUI">
	<key id="key_directCloseWindow" modifiers="control" keycode="VK_F4" oncommand="window.directClose();" scope="app"/>
	<key id="key_openFile" modifiers="control" key="O" oncommand="var file=window.openFile();pppPlayString(file,9);" scope="app"/>
	<key id="key_openUrl" modifiers="control" key="U" oncommand="window.openUrlDialog();" scope="app"/>
	<key id="key_showPreferences" modifiers="control" key="W" oncommand="window.showPreferences();" scope="app"/>
</keyset>
<keyset id="accelset">
	<key id="key_switchDir" modifiers="alt" key="E" oncommand="switchChannelDir();" scope="app"/>
	<key id="key_switchTinyMode" modifiers="alt" key="Q" oncommand="if (window.tidyMode) window.exitTidyMode(); else {if(window.enterTidyMode())PPLState(24);}" scope="app"/>
	<key id="key_05x" modifiers="alt" key="1" oncommand="commandVideoSizePolicy(2);" scope="app"/>
	<key id="key_10x" modifiers="alt" key="2" oncommand="commandVideoSizePolicy(4);" scope="app"/>
	<key id="key_20x" modifiers="alt" key="3" oncommand="commandVideoSizePolicy(5);;" scope="app"/>
	<key id="key_crash" modifiers="alt control shift" key="c" oncommand="Components.GetObject('@pplive.com/crash;1').crash()" />	
</keyset>

<!-- 菜单 -->
<menupopup id="IconMenu">
		<menuitem id="menu_showhide" defaultItem="true" label="显示/隐藏" oncommand="window.showWindow(!window.visible);"/>
		<menuseparator/>
		<menuitem id="menu_aboutpptv" label="关于PPTV..." oncommand="window.showAbout();"/>
		<menuitem id="menu_homepage" label="访问PPTV首页" oncommand="window.openurl('http://www.pptv.com');"/>
		<menuitem id="menu_pptvgame" label="PPTV游戏世界" oncommand="window.openurl('http://g.pptv.com/redirect?t=url&url=http%3A%2F%2Fg.pptv.com&ap_id=khd_youjian');"/>
		<menuseparator/>
		<menuitem id="menu_setting" label="设置..." image="ico-setting.png" key="key_showPreferences" oncommand="window.showPreferences();"/>
		<menuseparator/>
		<menuitem id="menu_close" label="关闭" image="ico-exit.png" key="key_directCloseWindow" oncommand="window.directClose();"/>
</menupopup>

	<!-- 播放器右键菜单 -->
<menupopup id="PlayMenu"  onpopupshowing="checkPlayMenu();">
		<menu id="menu_topmostpos" label="置顶选择">
			<menupopup id="TopMostMenu">
				<menuitem id="menu_playTop" label="播放时置顶" type="radio" oncommand="window.SetTopMostEx(2);"/>
				<menuitem id="menu_alwaysTop" label="始终置顶" type="radio" oncommand="window.SetTopMostEx(1);"/>
				<menuitem id="menu_cancelTop" label="不置顶" type="radio" oncommand="window.SetTopMostEx(0);"/>
			</menupopup>		
		</menu>
		<menuitem id="menu_addinfolder" label="添加到收藏夹" disabled="true" oncommand="AddCurrentChannelToFavirate();"/>
		<menuseparator/>
		<menuitem id="menu_FullOrUnfull" label="全屏"  key="key_FullOrUnfull" oncommand="EwaFullOrUnfull();"/>
		<menu id="menu_play_control" label="播放控制">
			<menupopup id="PlayControl" onpopupshowing="checkPlayControlMenu();">
				<menuitem id="menu_PlayOrPause" label="播放/暂停" key="key_PlayOrPause" oncommand="EwaPlayOrPause();"/>
				<menuitem id="menu_Stop" label="停止" key="key_Stop" disabled="true"  oncommand="EwaStop();"/>
				<menuseparator/>
				<menuitem id="menu_playPrev" label="上一集" key="key_prev" oncommand="pppPlayNewItem(-1);"/>
				<menuitem id="menu_playNext" label="下一集" key="key_next" oncommand="pppPlayNewItem(1);"/>
			</menupopup>		
		</menu>
		<menu id="menu_picMenu" label="画面控制" disabled="true" >
			<menupopup id="pictureMenu" onpopupshowing="checkPictureMenu();">

				<menuitem id="menu_half" label="半数尺寸(50%)" type="radio"  key="key_05x" oncommand="commandVideoSizePolicy(2);"/>
				<menuitem id="menu_normal" label="普通尺寸(100%)" type="radio"  key="key_10x" oncommand="commandVideoSizePolicy(4);"/>
				<menuitem id="menu_double" label="双倍尺寸(200%)" type="radio"  key="key_20x" oncommand="commandVideoSizePolicy(5);"/>
				<menuitem id="menu_autoadjust" label="自动调整视频尺寸" type="radio" oncommand="commandVideoSizePolicy(1);" />
				<menuitem id="menu_fitwindow" label="适应窗口尺寸" type="radio" oncommand="commandVideoSizePolicy(3);"/>
				<menuseparator/>
				<menuitem id="menu_defaultrate" label="保持视频原始比例" type="radio" oncommand="commandVideoAspect(0,0);"/>
				<menuitem id="menu_rate43" label="保持4:3" type="radio" oncommand="commandVideoAspect(4,3);"/>
				<menuitem id="menu_rate169" label="保持16:9" type="radio" oncommand="commandVideoAspect(16,9);"/>
				<menuitem id="menu_fill" label="视频铺满窗口" type="radio" oncommand="commandVideoFillWindow();"/>
			</menupopup>
		</menu>
		<menu id="menu_definition" label="清晰度" disabled="true" >
			<menupopup onpopupshowing="buildDefinitionMenu(this);">
			</menupopup>		
		</menu>
		<menu label="声音">
		  <menupopup id="soundMenu">
				<menuitem id="menu_leftTrack" label="左声道" type="radio" oncommand="PPPSetTrack(-1);"/>
				<menuitem id="menu_rightTrack" label="右声道" type="radio" oncommand="PPPSetTrack(1);"/>
				<menuitem id="menu_stereo" label="立体声" type="radio"  oncommand="PPPSetTrack(0);"/>
				<menuseparator/>
				<menuitem id="menu_volumeInc" label="增加音量" key="key_volumeInc" oncommand="EwaVolumeModify(10);"/>
				<menuitem id="menu_volumeDec" label="减小音量" key="key_volumeDec" oncommand="EwaVolumeModify(-10);"/>
				<menuitem id="menu_volumeMute" label="静音"  key="key_volumeMute" oncommand="EwaChangeMute();"/>
		  </menupopup>
		</menu>
		<menu label="配音" id="menu_soundLanguage">
			<menupopup  onpopupshowing="buildSoundLanguageMenu(this);">
			</menupopup>
		</menu>
		<menuseparator/>
		<menuitem id="menu_downfile" label="下载" disabled="true" oncommand="AddFileToFolder();"/>
		<menuitem id="menu_screenShot" label="截图" disabled="true" oncommand="screenShot();"/>
		<menuitem id="menu_colorAdjust" label="色彩调节..." disabled="true" oncommand="OnBright();" />
		<menuseparator/>
		<menuitem id="menu_film_info" label="节目信息..." disabled="true" oncommand="showVideoInfo();"/>
		<menuitem id="menu_setting" label="设置..." image="ico-setting.png" key="key_showPreferences" oncommand="window.showPreferences();"/>
</menupopup>


<!-- Window Region -->
<subwindow id="fullModeRegion" left="0" top="0" width="981" height="637" horizontalAlignment="stretch" verticalAlignment="stretch" visible="true">
	<!-- top left -->
	<subwindow left="0" top="0" width="10" height="39" backgroundImage="titlebar_bg_l.bmp" clippingColor="#FF00FF"/>
	<!-- top -->
	<subwindow left="10" top="0" width="961" height="39" horizontalAlignment="stretch" backgroundImage="titlebar_bg_m.bmp" backgroundImageStretchMode="stretch" backgroundColor="black"/>
	<!-- top right -->
	<subwindow left="971" top="0" width="10" height="39" backgroundImage="titlebar_bg_r.bmp" clippingColor="#FF00FF" horizontalAlignment="right"/>
	<!-- right -->
	<subwindow left="979" top="39" width="2" height="596" backgroundImage="frame_r.png" backgroundImageStretchMode="stretch" horizontalAlignment="right" verticalAlignment="stretch" backgroundColor="black"/>
	<!-- right bottom -->
	<subwindow left="979" top="635" width="2" height="2" backgroundImage="frame_bottom_r.png" clippingColor="#FF00FF" horizontalAlignment="right" verticalAlignment="bottom"/>
	<!-- bottom -->
	<subwindow left="2" top="635" width="977" height="2" backgroundImage="frame_bottom_m.png" backgroundImageStretchMode="stretch" horizontalAlignment="stretch" verticalAlignment="bottom"  backgroundColor="black"/>
	<!-- left bottom -->
	<subwindow left="0" top="635" width="2" height="2" backgroundImage="frame_bottom_l.png" clippingColor="#FF00FF" horizontalAlignment="left" verticalAlignment="bottom"/>
	<!-- left -->
	<subwindow left="0" top="39" width="2" height="596" backgroundImage="frame_l.png" backgroundImageStretchMode="stretch" horizontalAlignment="left" verticalAlignment="stretch" backgroundColor="black"/>
	<!-- center -->
	<subwindow left="2" top="39" width="977" height="596" horizontalAlignment="stretch" verticalAlignment="stretch" backgroundColor="rgba(0,0,0,1.0)" />
</subwindow>
<!-- 精简模式 -->
<subwindow id="tidyModeRegion" left="0" top="0" width="981" height="637" horizontalAlignment="stretch" verticalAlignment="stretch" backgroundColor="#FF00FF" visible="false">
	<image left="0" top="0" width="981" height="26" horizontalAlignment="stretch" src="small\frame_title.png" stretchMode="ninegrid" nineGridMargins="2,0,2,26"/>
	<image left="979" top="2" width="2" height="633" horizontalAlignment="right" verticalAlignment="stretch" src="small\frame_r.png" stretchMode="stretch"/>
	<image left="0" top="635" width="981" height="2" horizontalAlignment="stretch"  verticalAlignment="bottom" src="small\frame_bottom.png" stretchMode="ninegrid" nineGridMargins="2,0,2,2"/>
	<image left="0" top="2" width="2" height="633" verticalAlignment="stretch" src="small\frame_l.png" stretchMode="stretch"/>
</subwindow>

<subwindow id="titleBar" left="0" top="0" width="979" height="39" horizontalAlignment="stretch" visible="true" passThrough="false" onmousedown="titleBarMouseDown(event);" ondblclick="if (window.sizemode == 2) window.sizemode = 0; else window.sizemode = 2;">
<!-- title bar -->
	<image left="9" top="9" width="70" height="25" verticalAlignment="stretch" src="mainframe2_logo.bmp"/>
	<button left="80" top="22" width="20" height="11" image="menu.bmp" hoverImage="menu_hover.bmp" checkImage="menu_down.bmp" tooltip="菜单" type="menu">
		<menupopup id="mainMenu">
			<menu label="文件       ">
				<menupopup id="fileMenu">
					<menuitem id="menu_openFile" label="打开本地文件..." key="key_openFile" oncommand="var file=window.openFile();pppPlayString(file,9);"/>
					<menuitem id="menu_openUrl" label="打开网络文件..." key="key_openUrl" oncommand="window.openUrlDialog();"/>
				</menupopup>
			</menu>
			<menu left="40" top="0" width="40" height="18" label="显示 ">
				<menupopup id="viewMenu" onpopupshowing="CheckViewMenu();">
					<menuitem id="menu_switchTinyMode" label="迷你模式" disabled="true" key="key_switchTinyMode" oncommand="if (window.tidyMode) window.exitTidyMode(); else{if(window.enterTidyMode())PPLState(24);}"/>
					<menuitem id="menu_switchDir" label="列表左右互换" key="key_switchDir" disabled = "true" oncommand="switchChannelDir();"/>
					<menuseparator/>
					
					<menu label="显示比例">
						<menupopup>
							<menuitem id="menu2_05x" label="50%" disabled="true" key="key_05x" oncommand="commandVideoSizePolicy(2);"/>
							<menuitem id="menu2_10x" label="100%" disabled="true" key="key_10x" oncommand="commandVideoSizePolicy(4);"/>
							<menuitem id="menu2_20x" label="200%" disabled="true" key="key_20x" oncommand="commandVideoSizePolicy(5);"/>
							<menuitem id="menu_FullOrUnfull2" label="全屏" disabled="true" key="key_FullOrUnfull" oncommand="EwaFullOrUnfull();"/>
						</menupopup>
					</menu>
					<menu id="menu_topmostpos2" label="置顶选择">
						<menupopup id="TopMostMenu2">
							<menuitem id="menu_playTop2" label="播放时置顶" type="radio" oncommand="window.SetTopMostEx(2);"/>
							<menuitem id="menu_alwaysTop2" label="始终置顶" type="radio" oncommand="window.SetTopMostEx(1);"/>
							<menuitem id="menu_cancelTop2" label="不置顶" type="radio" oncommand="window.SetTopMostEx(0);"/>
						</menupopup>		
					</menu>
				</menupopup>
			</menu>
			<menu left="80" top="0" width="40" height="18" label="播放">
				<menupopup id="playMenu" onpopupshowing="checkMainMenu();">
					<menuitem id="menu_PlayOrPause" label="播放/暂停" key="key_PlayOrPause" oncommand="EwaPlayOrPause();"/>
					<menuitem id="menu_Stop" label="停止" key="key_Stop" disabled="true"  oncommand="EwaStop();"/>
					<menuseparator/>
					<menuitem id="menu_playPrev" label="上一集" key="key_prev" oncommand="pppPlayNewItem(-1);"/>
					<menuitem id="menu_playNext" label="下一集" key="key_next" oncommand="pppPlayNewItem(1);"/>
					<menuseparator/>
					<menu label = "音量">
					<menupopup>
					<menuitem id="menu_volumeInc" label="增大" key="key_volumeInc" oncommand="EwaVolumeModify(10);"/>
					<menuitem id="menu_volumeDec" label="减小" key="key_volumeDec" oncommand="EwaVolumeModify(-10);"/>
					<menuitem id="menu_volumeMute2" label="静音" key="key_volumeMute" oncommand="EwaChangeMute();"/>
					</menupopup>
					</menu>
					<menuseparator/>
					<menu label = "声道">
					<menupopup>
					<menuitem id="menu_leftTrack2" label="左声道" type="radio" oncommand="PPPSetTrack(-1);"/>
					<menuitem id="menu_rightTrack2" label="右声道" type="radio" oncommand="PPPSetTrack(1);"/>
					<menuitem id="menu_stereo2" label="立体声" type="radio" oncommand="PPPSetTrack(0);"/>
					</menupopup>
					</menu>
				</menupopup>
			</menu>
			<menuseparator/>
			<menuitem id="menu_autoShowdown" label="定时关机..." oncommand="window.showModalDialog('autoshutdown.xml');"/>
			<menuitem id="menu_downloadMagager" label="下载管理..." oncommand="showDownloadMgrWnd()"/>
			<menuitem id="menu_showPreferences" label="设置..." image="ico-setting.png" key="key_showPreferences" oncommand="window.showPreferences();"/>
			<menu left="160" top="0" width="40" height="18" label="帮助">
				<menupopup id="helpMenu">
					<menuitem id="menu_help" label="帮助中心" oncommand="window.openurl('http://help.pptv.com/faq/');"/>
					<menuitem id="menu_customerservice" label="在线客服" oncommand="window.openurl('http://dlt.zoosnet.net/LR/ChatWin.aspx?id=DLT10040515');"/>
					<menuseparator/>
					<menuitem id="menu_update" label="检测更新..." oncommand="window.ManualUpdate();"/>
					<menuitem id="menu_troubleShooter" label="故障检测..." oncommand="window.showTroubleShooter();"/>
					<menuitem id="menu_pplive" label="PPTV官网" oncommand="window.openurl('http://www.pptv.com/');"/>
					<menuitem id="menu_pplive" label="意见反馈..." oncommand="showUserFeedbackWnd();"/>
					<menuseparator/>
					<menuitem id="menu_about" label="关于..." oncommand="window.showAbout();"/>
				</menupopup>
			</menu>
			<menuitem id="menu_minsite" label="打开今日焦点..." oncommand="openMiniSite();"/>
			<menuitem id="menu_ppgame" label="我的游戏..." oncommand="OpenPPGame();"/>
			<menuseparator/>
			<menuitem id="menu_minimize" label="最小化到系统托盘" oncommand="window.visible=false;"/>
			<menuitem id="menu_exit" label="退出" image="ico-exit.png" key="key_directCloseWindow" oncommand="window.directClose();"/>
		</menupopup>
	</button>
	<subwindow id="tabbox" left="118" top="8" width="157" height="31" backgroundColor="none">
		<!-- 播放 -->
		<button id="tabPlayer" left="0" top="0" width="77" height="31" image="titletab_play.bmp" hoverImage="titletab_play_hover.bmp" downImage="titletab_play_down.bmp" checkImage="titletab_play_on.bmp" checkHoverImage="titletab_play_on_hover.bmp" checkDownImage="titletab_play_on_down.bmp" onclick="if(this.parentNode.setSelected('Player'))PPLTabState('Player');"></button>
		<!-- 选节目 -->
		<button id="tabChoice" left="80" top="0" width="77" height="31" image="titletab_ch.bmp" hoverImage="titletab_ch_hover.bmp" downImage="titletab_ch_down.bmp" checkImage="titletab_ch_on.bmp" checkHoverImage="titletab_ch_on_hover.bmp" checkDownImage="titletab_ch_on_down.bmp" onclick="if(this.parentNode.setSelected('Choice'))PPLTabState('Choice');"></button>
	</subwindow>
	<subwindow id="mainframeright" left="502" top="0" width="467" height="39" horizontalAlignment="right">
		<!-- 搜索框 -->
		<subwindow id="combo_textboxsearch" left="0" top="2" width="262" height="35" passThrough="false" backgroundImage="login_input_normal.png" backgroundColor="white">
			<image id="searchbutton" left="222" top="5" width="32" height="26" src="login_dropdown_btn_1.png" passThrough="false" cursor="hand"/>
			<textbox id="textboxsearch" left="8" top="11" width="213" height="18" fontFace="宋体" fontSize="14" border="false" limitText="30" foregroundColor="#656565" backgroundColor="#222222" passThrough="false" value="请输入关键字…"/>
		</subwindow>
		<button id="shift2old" left="274" top="9" width="61" height="22" image="shift2old.bmp" hoverImage="shift2old_hover.bmp" downImage="shift2old_down.bmp" onclick="beforeChangeMode(); window.runMode = 0;PPLState(10);" tooltip="回到旧模式" horizontalAlignment="right"/>
		<button left="344" top="9" width="23" height="23" image="mainframe2_faq.bmp" hoverImage="mainframe2_faq_hover.bmp" downImage="mainframe2_faq_down.bmp" tooltip="意见反馈" onclick="showUserFeedbackWnd();"/>
		<image left="377" top="9" width="2" height="22" src="mainframe2_titilebar_sep.bmp"/>
		<button left="389" top="9" width="23" height="23" image="std_dlg_min.png" hoverImage="std_dlg_min_hover.png" downImage="std_dlg_min_down.png" tooltip="最小化" onclick="window.sizemode=1;"/>
		<button id="maxRestoreBtn"  left="417" top="9" width="23" height="23" image="std_dlg_max.png" hoverImage="std_dlg_max_hover.png" downImage="std_dlg_max_down.png" checkImage="std_dlg_restore.png" checkHoverImage="std_dlg_restore_hover.png" checkDownImage="std_dlg_restore_down.png" tooltip="最大化" checkTooltip="向下还原" onclick="if (window.sizemode == 2)window.sizemode = 0; else{ window.sizemode = 2;}"/>
		<button left="445" top="9" width="23" height="23" image="std_dlg_close.png" hoverImage="std_dlg_close_hover.png" downImage="std_dlg_close_down.png" tooltip="关闭" onclick="myClose();"/>
	</subwindow>
	<widget id="searchlist" left="0" top="0" width="0" height="0" contractId="@pplive.com/ptvSearchList;1" useService="true" visible="false"/>
</subwindow>
<!-- main -->
<subwindow id="mainSubWindow" left="2" top="39" width="977" height="596" horizontalAlignment="stretch" verticalAlignment="stretch">
	<subwindow id="PlayerContainer" left="0" top="0" width="977" height="596" horizontalAlignment="stretch" verticalAlignment="stretch" backgroundColor="rgba(0x00, 0x00, 0x00, 1.0)" visible="false">
		<widget id="Player" left="0" top="0" width="977" height="596" horizontalAlignment="stretch" verticalAlignment="stretch" contractId="@pplive.com/PPFrame;1" useService="true" visible="false"/>  <!-- @pplive.com/PPFrame;1 --> 
	</subwindow>
	<subwindow id="ChoiceContainer" left="0" top="0" width="977" height="596" horizontalAlignment="stretch" verticalAlignment="stretch" backgroundColor="#000000" visible="false">
		<widget id="Choice" left="0" top="0" width="977" height="596" horizontalAlignment="stretch" verticalAlignment="stretch" contractId="" visible="false" ondownloadbegin="limitCoreConnectionChange();" ondownloadcomplete="limitCoreConnectionChange();"/>  <!-- @pplive.com/WebBrowser;1 --> 
	</subwindow>
	<widget id="passport" left="0" top="0" width="0" height="0" contractId="@pplive.com/passport;1" useService="true" onlogin="window.OnPassportLogin(arguments[0]);" OnLogoutEx="window.OnPassportLogout(arguments[0]);"  onGetUserPicture="window.OnGetUserPicture();"/> <!--  -->
</subwindow>
<subwindow left="0" top="0" width="8" height="8" passThrough="false" cursor="sizenwse" onmousedown="if (event.button == IDOMEvent.eLeftButton) {window.size('topleft'); return false;} return true;"/>
<subwindow left="973" top="0" width="8" height="8" passThrough="false" cursor="sizenesw" onmousedown="if (event.button == IDOMEvent.eLeftButton) {window.size('topright'); return false;} return true;" horizontalAlignment="right"/>
<subwindow left="0" top="629" width="8" height="8" passThrough="false" cursor="sizenesw" onmousedown="if (event.button == IDOMEvent.eLeftButton) {window.size('topright'); return false;} return true;" verticalAlignment="bottom"/>
<image id="resizeGripper" left="957" top="616" width="22" height="21" src="resize_gripper.png" onmousedown="if (event.button == IDOMEvent.eLeftButton) {window.size('bottomright'); return false;} return true;" horizontalAlignment="right" verticalAlignment="bottom" passThrough="false" cursor="sizenwse"/>
	<script>
		<![CDATA[
		$("textboxsearch").isInputChange = true;
		$("textboxsearch").userInput = "";
		$("textboxsearch").lastInput = "";
		$("textboxsearch").onchanged = function()
		{
			if ($("textboxsearch").value == "")
			{
				var searchlist = Components.GetObject("@pplive.com/ptvSearchList;1");
				if(searchlist)
				{
					searchlist.ShowWindowSL(false);
				}
			}
			if ($("textboxsearch").isInputChange)
			{
				var lastinput = $("textboxsearch").lastInput;
				$("textboxsearch").lastInput = $("textboxsearch").value;
				if (lastinput != $("textboxsearch").lastInput)
				{
					var searchlist = Components.GetObject("@pplive.com/ptvSearchList;1");
					if(searchlist)
					{
						searchlist.SearchKeySL($("textboxsearch").value);
					}
				}
			}
		}
		$('combo_textboxsearch').OnPaint=function(focus, btnmousehover, btnmousedown, edtmousehover, bgmousehover)
		{
			if (!focus)
			{
					var searchlist = Components.GetObject("@pplive.com/ptvSearchList;1");
					if(searchlist)
					{
						searchlist.ShowWindowSL(false);
					}
			}
			if(focus || btnmousedown || btnmousehover || edtmousehover || bgmousehover)
			{
				this.backgroundImage="edit_search_hover.bmp";
			}
			else{
				this.backgroundImage="edit_search_normal.bmp";
			}

			if (btnmousedown)
			{
				this.button.src="button_search_down.bmp";
			}
			else if (btnmousehover)
			{
				this.button.src="button_search_hover.bmp";
			}
			else
			{
				this.button.src="button_search_normal.bmp";
			}
		}
		]]>
	</script>
</window>
