<?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();" onunload="windowOnunload();" title="PPTV" onsizemode="windowOnSizemode();" onrunmodechanged="windowOnChangeMode();" onclose="return windowOnClose();" layered="false" onshow="windowOnShow();" onhide="if(window.miniPlayer){window.miniPlayer.visible = false;}
" onactivate="windowOnActive(event.activated);" onsize="windowOnSize();">
	<script src="common.js" />
	<script src="timingservice.js" />
	<script src="mainframe2.js" />
	<script src="Balloons.js" />
	<script>
	<![CDATA[
		function delayCreateChoice()
		{
			if ($("Choice").contractId.length > 0)
			{
				return;
			}

			$("Choice").setContractId("@pplive.com/WebBrowser;1", false);
			$("Choice").showSWFBuffer = true;
			$("Choice").showNavigateStatus = true;
			var channelURL = "http://client.pplive.cn/v3web/v3index/index.html";
			if (bFirstEnterChoiceAfertChangeMode)
			{
				bFirstEnterChoiceAfertChangeMode = false;

				//设置选集页面为当前播放页
				var ppp = Components.GetObject2("PPP");
				if (ppp && ppp.ChannelID && window.hasChannelPlaying())
				{
					//重置选集URL  详情页格式：http://list.client.pplive.cn/v3/view/详情ID/地区码.htm
					if (ppp.HjID)
					{	//如果归属到合集，则显示合集对应的页面
						channelURL = "http://list.client.pplive.cn/v3/view/" + ppp.HjID + "/" + getCityCode() + ".htm";
					}
					else
					{
						channelURL = "http://list.client.pplive.cn/v3/view/" + ppp.ChannelID + "/" + getCityCode() + ".htm";
					}
				}
				else
				{	//节目未播放，则回到用户上次停留的页面
					var locationURL = getLocationURLBeforeChangeMode();
					if (locationURL && locationURL.length)
					{
						if (locationURL.indexOf("nolink.htm")==-1) //非离线模式页面
						{
							channelURL = locationURL;
						}
					}
				}
			}
			var bOfflineMode = false;

			var ppFrame = Components.GetObject2("@pplive.com/PPFrame;1");
			if (ppFrame)
			{
				bOfflineMode=ppFrame.bOfflineMode;
				if (bOfflineMode)
				{
					$("Choice").SetUrl(ShowAbsolutePath("data\\local\\nolink.htm"), "data\\local\\page.html");
				}
			}
			if (!bOfflineMode)
			{
				$("Choice").SetUrl(channelURL, "data\\local\\page.html");
			}
			$("Choice").showContextMenu = true;
		}
		function construct()
		{
			$("tabbox").items = new Array("Player", "Choice", "Download", "Mypptv");
			$("tabbox").getSelected = function()
			{
				for (var key in this.items)
				{
					var obj = $("tab" + this.items[key]);
					if (obj && obj.selected)
					{
						return key;
					}
				}
			}
			$("tabbox").setSelected = function(name)
			{
				if (name != "Choice")
				{
					limitCoreConnection(false);
				}

				var oldSelected = null;
				var oldName = "";
				for (var key in this.items)
				{
					var obj = $("tab" + this.items[key]);
					if (obj && obj.selected)
					{
						oldName = this.items[key];
						oldSelected = obj;
						break;
					}
				}
				var newSelected = $("tab" + name);
				if (!newSelected || oldSelected == newSelected)
				{
					return false;
				}
				
				if (oldSelected && oldSelected.willUnselected)
				{
					oldSelected.willUnselected(name);
				}
				if (newSelected.willSelected)
				{
					newSelected.willSelected(oldName);
				}
				if (oldSelected)
				{
					oldSelected.selected = false;
					oldSelected.checked = false;
				}
				newSelected.selected = true;
				newSelected.checked = true;
				if (newSelected.didSelected)
				{
					newSelected.didSelected(oldName);
					try{oldSelected.label.fontStyle="bold";}catch(e){}
				}
				else
				{
					$(name + "Container").visible = true;
					$(name).visible = true;
				}
				if (oldSelected && oldSelected.didUnselected)
				{
					oldSelected.didUnselected(name);
				}
				else if (oldSelected)
				{
					$(oldName + "Container").visible = false;
					$(oldName).visible = false;
					try{oldSelected.label.fontStyle="normal";}catch(e){}
				}
				return true;
			}
			// 播放   标签栏被选中
			$("tabPlayer").bFindChannelTip=true;
			$("tabPlayer").didSelected = function(oldname)
			{
				window.activated = true;
				$("menu_switchTinyMode").disabled=false;
				$("menu_10x").disabled=false;
				$("menu_15x").disabled=false;
				$("menu_20x").disabled=false;
				$("menu_FullOrUnfull").disabled=false;
				if($("tabPlayer").bFindChannelTip && oldname=="Choice")
				{
					var nFindChannelTip = 0;
					var registry = Components.CreateObject("@pplive.com/registry;1");
					if (registry && registry.create(registry.HKCU, "Software\\PPLive\\PPTV\\UserEdu"))
					{	
						var nFindChannelTip = registry.readDWORD("FindChannelTip");
						if(nFindChannelTip<3)registry.writeDWORD("FindChannelTip",nFindChannelTip+1);	
					}
					if(nFindChannelTip<3)Show_FindChannelTip();
					$("tabPlayer").bFindChannelTip=false;
				}
				// 首先 退出 视频小窗
				exitMiniPlayer();
				$("Player").CreatePlayer();
				$("PlayerContainer").visible = true;
				$("Player").visible = true;
				$("tabPlayer").label.fontStyle="bold";
				window.setMinWidthAndHeight(700, 550, true);
				if ($("tabPlayer").previousWidth && $("tabPlayer").previousHeight && window.sizemode == 0)
				{
					window.sizeTo($("tabPlayer").previousWidth, $("tabPlayer").previousHeight, 0);
				}
			}
			$("tabPlayer").didUnselected = function(newname)
			{
				$("menu_switchTinyMode").disabled=true;
				$("menu_10x").disabled=true;
				$("menu_15x").disabled=true;
				$("menu_20x").disabled=true;
				$("menu_FullOrUnfull").disabled=true;
				$("PlayerContainer").visible = false;
				$("Player").visible = false;
				$("tabPlayer").label.fontStyle="normal";
				// 可能要进入 视频小窗
				enterMiniPlayerIfNeed();
			}
			$("tabPlayer").willUnselected = function(oldname)
			{
				if (window.sizemode == 0)
				{
					$("tabPlayer").previousWidth = window.outerWidth;
					$("tabPlayer").previousHeight = window.outerHeight;
				}
			}
			// 选节目 标签栏被选中
			$("tabChoice").didSelected = function(oldname)
			{
				//选集tab选中，则开始通知内核限速
				limitCoreConnection(true);

				if ($("Choice").contractId.length <= 0)
				{
					var timerId = window.setTimeout("delayCreateChoice();", 1);
				}
				$("ChoiceContainer").visible = true;
				$("Choice").visible = true;
				$("tabChoice").label.fontStyle="bold";
				window.setMinWidthAndHeight(981, 456, true);
			}
			// 下载管理 标签栏被选中
			$("tabDownload").didSelected = function(oldname)
			{
				if ($("Download").contractId.length <= 0)
				{
					$("Download").setContractId("@pplive.com/chdownloadwnd_3;1", false);
				}
				$("DownloadContainer").visible = true;
				$("Download").visible = true;
				$("tabDownload").label.fontStyle="bold";
				window.setMinWidthAndHeight(981, 456, true);
			}
			$("tabMypptv").didUnselected=function(newname)
			{
				$("MypptvContainer").visible = false;
				$("Mypptv").visible = false;
				$("lblMypptv").fontStyle="normal";
			}
			$("tabMypptv").didSelected = function(oldname)
			{
				if ($("Mypptv").contractId.length <= 0)
				{
					$("Mypptv").setContractId("@pplive.com/WebBrowser;1", false);
					$("Mypptv").showSWFBuffer = true;
					$("Mypptv").SetUrl("http://list.client.pplive.cn/index/user_center.html", "data\\local\\page.html");
				//	$("Mypptv").mouseDrag = true;
				}
				$("MypptvContainer").visible = true;
				$("Mypptv").visible = true;
				$("lblMypptv").fontStyle="bold";
				window.setMinWidthAndHeight(981, 456, true);
			}
			$("tabMypptv")._selected = false;
			$("tabMypptv").DefineOwnProperty("selected", {get:function(){return this._selected;}, set:function(newValue){this._selected=newValue;this.resetImage();}})
			$("tabMypptv").mouseon = false;
			$("tabMypptv").mousedown = false;
			$("tabMypptv").popupVisible = false;
			$("tabMypptv").resetImage = function()
			{
				var l = this.firstChild;
				var r = l.nextSibling;

				if ($("tabMypptv").popupVisible) 
				{
					if ($("tabMypptv")._selected)
					{
						l.src = "mypptv_on_down.png";
						r.src = "mypptv_arrow_on_down.png"
					}
					else
					{
						l.src = "mypptv_down.png";
						r.src = "mypptv_arrow_down.png"
					}
					return;
				}
				if ($("tabMypptv").mousedown)
				{
					if ($("tabMypptv")._selected)
					{
						l.src = "mypptv_on_down.png";
						r.src = "mypptv_arrow_on.png"
					}
					else
					{
						l.src = "mypptv_down.png";
						r.src = "mypptv_arrow_down.png"
					}
					return;
				}
				if ($("tabMypptv").mouseon)
				{
					if ($("tabMypptv")._selected)
					{
						l.src = "mypptv_on_hover.png";
						r.src = "mypptv_arrow_on_hover.png"
					}
					else
					{
						l.src = "mypptv_hover.png";
						r.src = "mypptv_arrow_hover.png"
					}
					return;
				}
				if ($("tabMypptv")._selected)
				{
					l.src = "mypptv_on.png";
					r.src = "mypptv_arrow_on.png"
				}
				else
				{
					l.src = "mypptv.png";
					r.src = "mypptv_arrow.png"
				}
			}
		}
		function deconstruct()
		{
		}
		function centerWindow()
		{// 窗口居中，并且根据显示器分辨率调整窗口的大小
			if (window.sizemode != 0)
			{
				window.sizemode = 0;
			}
			var screen = window.screen;
			var wndWidth = 981;
			var wndHeight = 635;
			var left = screen.left + (screen.width - wndWidth)/2;
			var top = screen.top + (screen.height - wndHeight)/2;
			if (left < 0 || top < 0)
			{
				left = top = 0;
			}
			window.moveSizeTo(left, top, wndWidth, wndHeight);
		}
		function PPLState(i)
		{
		    var PPLState = Components.GetObject2('@pplive.com/PPLStat;1');
		    if(PPLState)PPLState.PPTVStartTime(i);
		}
		function PPLTabState(name)
		{
		    var PPLState = Components.GetObject2('@pplive.com/PPLStat;1');
		    if(PPLState)PPLState.PPTVClientTabClick(name);
		}
	]]>
	</script>
<keyset>
	<key id="key_openFile" modifiers="control" key="O" oncommand="var file=window.openFile();pppPlayString(file,9);" />
	<key id="key_openUrl" modifiers="control" key="U" oncommand="window.openUrlDialog();" />
	<key id="key_showPreferences" modifiers="control" key="W" oncommand="window.showPreferences();" />
	<key id="key_switchDir" modifiers="alt" key="E" oncommand="switchChannelDir();" />
	<key id="key_switchTinyMode" modifiers="alt" key="Q" oncommand="if (window.tidyMode) window.exitTidyMode(); else {if(window.enterTidyMode())PPLState(24);}" />
	<key id="key_directCloseWindow" modifiers="control" keycode="VK_F4" oncommand="window.directClose();" />
	<key id="key_volumeInc" modifiers="" keycode="VK_UP" oncommand="EwaVolumeModify(10);" />
	<key id="key_volumeDec" modifiers="" keycode="VK_DOWN" oncommand="EwaVolumeModify(-10);" />
	<key id="key_volumeMute" modifiers="" keycode="VK_F7" oncommand="EwaChangeMute();" />
	<key id="key_PlayOrPause" modifiers="control" key="P" oncommand="EwaPlayOrPause();" />
	<key id="key_PlayOrPause2" modifiers="" keycode="VK_MEDIA_PLAY_PAUSE" oncommand="EwaPlayOrPause();" />
	<key id="key_Stop" modifiers="control" key="S" disabled="true" oncommand="EwaStop();" />
	<key id="key_Stop2" modifiers="" keycode="VK_MEDIA_STOP" disabled="true" oncommand="EwaStop();" />
	<key id="key_SpacePlayOrPause" modifiers="" keycode="VK_SPACE" oncommand="EwaPlayOrPause();" />
	<key id="key_FullOrUnfull" modifiers="alt" keycode="VK_ENTER" oncommand="EwaFullOrUnfull();" />
	<key id="key_10x" modifiers="alt" key="1" oncommand="Resize(1);" />
	<key id="key_15x" modifiers="alt" key="2" oncommand="Resize(2);" />
	<key id="key_20x" modifiers="alt" key="3" oncommand="Resize(3);" />
	<key id="key_screenshot" modifiers="alt" key="A" oncommand="screenShot()" />
	<key id="key_larger" keycode="VK_NUMPAD9" oncommand="window.videoScan.zoomPostion(1,1,0,0);" />
	<key id="key_smaller" keycode="VK_NUMPAD1" oncommand="window.videoScan.zoomPostion(-1,-1,0,0);" />
	<key id="key_hlarge" keycode="VK_NUMPAD6" oncommand="window.videoScan.zoomPostion(1,0,0,0);" />
	<key id="key_hsmall" keycode="VK_NUMPAD4" oncommand="window.videoScan.zoomPostion(-1,0,0,0);" />
	<key id="key_vlarge" keycode="VK_NUMPAD8" oncommand="window.videoScan.zoomPostion(0,1,0,0);" />
	<key id="key_vsmall" keycode="VK_NUMPAD2" oncommand="window.videoScan.zoomPostion(0,-1,0,0);" />
	<key id="key_resetscreen" keycode="VK_NUMPAD5" oncommand="window.videoScan.reset();" />
	<key id="key_leftmove" modifiers="control" keycode="VK_NUMPAD4" oncommand="window.videoScan.zoomPostion(0,0,-1,0);" />
	<key id="key_rightmove" modifiers="control" keycode="VK_NUMPAD6" oncommand="window.videoScan.zoomPostion(0,0,1,0);" />
	<key id="key_upmove" modifiers="control" keycode="VK_NUMPAD8" oncommand="window.videoScan.zoomPostion(0,0,0,-1);" />
	<key id="key_downmove" modifiers="control" keycode="VK_NUMPAD2" oncommand="window.videoScan.zoomPostion(0,0,0,1);" />
	<key id="key_middlemove" modifiers="control" keycode="VK_NUMPAD5" oncommand="window.videoScan.positionX = window.videoScan.positionY=0.5; window.videoScan.update();" />
	<key id="key_FF" keycode="VK_RIGHT" oncommand="EWAFastForward(true);" />
	<key id="key_FV" keycode="VK_LEFT" oncommand="EWAFastForward(false);" />
	<key id="key_next" modifiers="control" keycode="VK_RIGHT" oncommand="pppPlayNewItem(1);" />
	<key id="key_prev" modifiers="control" keycode="VK_LEFT" oncommand="pppPlayNewItem(-1);" />
	<key id="key_crash" modifiers="alt control shift" key="c" oncommand="Components.GetObject('@pplive.com/crash;1').crash()" />	
</keyset>
<!-- 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="500" height="39" backgroundImage="titlebar_l.png" clippingColor="#FF00FF"/>
	<!-- top -->
	<subwindow left="500" top="0" width="281" height="39" horizontalAlignment="stretch" backgroundImage="titlebar_m.png" backgroundImageStretchMode="stretch" backgroundColor="black"/>
	<!-- top right -->
	<subwindow left="781" top="0" width="200" height="39" backgroundImage="titlebar_r.png" 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="2" src="minimode\frame_top.png" stretchMode="ninegrid" nineGridMargins="2,0,2,2" horizontalAlignment="stretch" />
	<image left="979" top="2" width="2" height="633" src="minimode\frame_right.png" stretchMode="stretch" horizontalAlignment="right" verticalAlignment="stretch" />
	<image left="0" top="635" width="981" height="2" src="minimode\frame_bottom.png" stretchMode="ninegrid" nineGridMargins="2,0,2,2" horizontalAlignment="stretch" verticalAlignment="bottom" />
	<image left="0" top="2" width="2" height="633" src="minimode\frame_left.png" stretchMode="stretch" horizontalAlignment="left" verticalAlignment="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 -->
	<!-- 菜单 -->
	<menupopup id="IconMenu" aaonpopupshowing="buildSkinMenu(this);">
			<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');"/>
			<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>


	<button left="79" top="20" width="13" height="13" image="menu.png" hoverImage="menu_hover.png" checkImage="menu_down.png" tooltip="菜单" type="menu">
		<menupopup id="mainMenu" aaonpopupshowing="buildSkinMenu(this);">
			<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="$('menu_topmost').checked = window.topMost;">
					<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="menu_10x" label="100%" disabled="true" key="key_10x" oncommand="Resize(1);"/>
							<menuitem id="menu_15x" label="150%" disabled="true" key="key_15x" oncommand="Resize(2);"/>
							<menuitem id="menu_20x" label="200%" disabled="true" key="key_20x" oncommand="Resize(3);"/>
							<menuitem id="menu_FullOrUnfull" label="全屏" disabled="true" key="key_FullOrUnfull" oncommand="EwaFullOrUnfull();"/>
						</menupopup>
					</menu>
					<menuitem id="menu_topmost" label="总在最前面" oncommand="changeTopMost();"/>
				</menupopup>
			</menu>
			<menu left="80" top="0" width="40" height="18" label="播放">
				<menupopup id="playMenu">
					<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_volumeMute" label="静音" key="key_volumeMute" oncommand="EwaChangeMute();"/>
					</menupopup>
					</menu>
					<menuseparator/>
					<menu label = "声道">
					<menupopup>
					<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" checked="true" oncommand="PPPSetTrack(0);"/>
					</menupopup>
					</menu>
				</menupopup>
			</menu>
			<menuseparator/>
			<menuitem id="menu_autoShowdown" label="定时关机..." oncommand="window.showModalDialog('autoshutdown.xml');"/>
			<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_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/');"/>
					<menuseparator/>
					<menuitem id="menu_about" label="关于..." oncommand="window.showAbout();"/>
				</menupopup>
			</menu>
			<menuseparator/>
			<menuitem id="menu_minimize" label="最小化到系统托盘" oncommand="window.visible=false;"/>
			<menuitem id="menu_directCloseWindow" label="退出" key="key_directCloseWindow" image="ico-exit.png" oncommand="window.close();"/>
		</menupopup>
	</button>
	<subwindow id="tabbox" left="100" top="4" width="331" height="35" backgroundColor="none">
		<!-- 播放 -->
		<button id="tabPlayer" left="0" top="0" width="72" height="35" image="titletab.png" hoverImage="titletab_hover.png" downImage="titletab_down.png" checkImage="titletab_on.png" checkHoverImage="titletab_on_hover.png" checkDownImage="titletab_on_down.png" label="播放器" foregroundColor="rgba(255,255,255,1.0)" fontFace="tahoma" fontSize="12" onclick="if(this.parentNode.setSelected('Player'))PPLTabState('Player');"></button>
		<!-- 选节目 -->
		<button id="tabChoice" left="73" top="0" width="72" height="35" image="titletab.png" hoverImage="titletab_hover.png" downImage="titletab_down.png" checkImage="titletab_on.png" checkHoverImage="titletab_on_hover.png" checkDownImage="titletab_on_down.png" label="节目库" foregroundColor="rgba(255,255,255,1.0)"  fontFace="tahoma" fontSize="12" onclick="if(this.parentNode.setSelected('Choice'))PPLTabState('Choice');"></button>
		<!-- 下载管理 -->
		<button id="tabDownload" left="146" top="0" width="72" height="35" image="titletab.png" hoverImage="titletab_hover.png" downImage="titletab_down.png" checkImage="titletab_on.png" checkHoverImage="titletab_on_hover.png" checkDownImage="titletab_on_down.png" label="下载管理" foregroundColor="rgba(255,255,255,1.0)"  fontFace="tahoma" fontSize="12" onclick="if(this.parentNode.setSelected('Download'))PPLTabState('Download');"></button>
		<!-- 我的PPTV -->
		<subwindow id="tabMypptv" left="219" top="0" width="112" height="35" passThrough="false" onclick="if(this.popupVisible ||event.offsetX >= 95)return;if(this.parentNode.setSelected('Mypptv'))PPLTabState('Mypptv');" onmouseover="this.mouseon=true;this.resetImage();" onmouseout="this.mouseon=false;this.resetImage();" onmousedown="mypptvMouseDown.call(this,event);" onmouseup="mypptvMouseUp.call(this,event);">
			<image left="0" top="0" width="96" height="35" src="mypptv.png" passThrough="true"/>
			<image left="95" top="0" width="17" height="35" src="mypptv_arrow.png" passThrough="true"/>
			<!-- 头像 -->
			<image id="userFace" left="4" top="4" width="26" height="26" horizontalAlignment="stretch" verticalAlignment="stretch" src="" stretchMode="stretch"/>
			<label id="lblMypptv" left="32" top="0" width="60" height="35" value="我的PPTV" textAlignment="center vcenter" passThrough="true" foregroundColor="rgba(255,255,255,1.0)" fontFace="tahoma" fontSize="12"/>
		</subwindow>
	</subwindow>
	<subwindow left="872" top="8" width="99" height="24" horizontalAlignment="right">
		<button left="0" top="0" width="24" height="24" image="shift2old.png" hoverImage="shift2old_hover.png" downImage="shift2old_down.png" onclick="beforeChangeMode(); window.runMode = 0;PPLState(10);" tooltip="回到旧模式"/>
		<button left="25" top="0" width="24" height="24" image="min.png" hoverImage="min_hover.png" downImage="min_down.png" tooltip="最小化" onclick="window.sizemode=1;"/>
		<button id="maxRestoreBtn"  left="50" top="0" width="24" height="24" image="max.png" hoverImage="max_hover.png" downImage="max_down.png" checkImage="restore.png" checkHoverImage="restore_hover.png" checkDownImage="restore_down.png" tooltip="最大化" checkTooltip="向下还原" onclick="if (window.sizemode == 2)window.sizemode = 0; else{ window.sizemode = 2;}"/>
		<button left="75" top="0" width="24" height="24" image="close.png" hoverImage="close_hover.png" downImage="close_down.png" tooltip="关闭" onclick="myClose();"/>
	</subwindow>
</subwindow>
<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"/>  <!-- @pplive.com/WebBrowser;1 --> 
	</subwindow>
	<subwindow id="DownloadContainer" left="0" top="0" width="977" height="596" horizontalAlignment="stretch" verticalAlignment="stretch" backgroundColor="#CCFF66" visible="false">
		<widget id="Download" left="0" top="0" width="977" height="596" horizontalAlignment="stretch" verticalAlignment="stretch" contractId="" visible="false"/>  <!-- @pplive.com/chdownloadwnd_3;1 --> 
	</subwindow>
	<subwindow id="MypptvContainer" left="0" top="0" width="977" height="596" horizontalAlignment="stretch" verticalAlignment="stretch" backgroundColor="#000000" visible="false">
		<label left="0" top="0" width="977" height="596" value="即将推出，敬请期待...." fontSize="36" textAlignment="center vcenter" horizontalAlignment="stretch" verticalAlignment="stretch" foregroundColor="#FFFFFF"/>
		<widget id="Mypptv" left="0" top="0" width="977" height="596" horizontalAlignment="stretch" verticalAlignment="stretch" contractId="" visible="false"/>  <!-- @pplive.com/WebBrowser;1 --> 
	</subwindow>
<!-- main -->
	<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>
<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"/>
</window>
