<?xml version="1.0" encoding="utf-8"?>
<window screenLeft="0" screenTop="0" width="242" height="56" titleBar="false" resizeMargins="0,0,0,0" maximizable="false" onload="windowOnload();" onclose="windowOnClose();">
<script src="common.js" />
<script>
<![CDATA[
	function windowOnload()
	{
		window.timeid=0;
		window.ShowNumTip=function(num,show)
		{
			if(window.timeid!=0)
			{
				window.clearTimeout(window.timeid);
				window.timeid=0;	
			}
			if(show==0)
			{
				window.close();
				return;
			}
			window.timeid = window.setTimeout("window.close();", 30*1000);
			$("ChannelNum").value = num;
			window.visible = true;
			var screen = window.screen;
			window.moveSizeTo(screen.width-window.outerWidth,screen.availTop+screen.availHeight - window.outerHeight,window.outerWidth,window.outerHeight);
			window.topmost=true;
			window.topmost=false;
			var  pplDac=Components.GetObject("@pplive.com/PPLStat;1");
			if(pplDac)pplDac.PPLUpdateChNumDac(1,0);
		}
	}

	function windowOnClose()
	{
		Components.UnregisterObject("@pplive.com/channelnumtip;1");
	}

	function OnUserClick()
	{
		var  pplDac=Components.GetObject2("@pplive.com/PPLStat;1");
		if(pplDac)
		{
			pplDac.PPLUpdateChNumDac(0,1);
		}
		window.ShowNumTip(0,0);
		var uiMainWindow = Components.GetObject("@pplive.com/ui/mainwindow;1");
		if(uiMainWindow)
		{
			uiMainWindow.showWindow(true);
		}
	}
]]>
</script>
	<subwindow left="0" top="0" width="242" height="56" backgroundImage="bg_numTip.png" clippingColor="#FF00FF" passThrough="false">
		<!-- close button -->
		<button left="220" top="3" width="15" height="15" image="close_numTip_normal.png" hoverImage="close_numTip_hover.png" downImage="close_numTip_hover.png" onclick="window.close();" tooltip="关闭" cursor="hand"/>
		<label id="windowTitle" left="65" top="3" width="200" height="18" value="节目有更新了！" fontFace="宋体"  fontSize="12"  foregroundColor="#FFFFFF" passThrough="true" textAlignment="left vcenter" cursor="hand"/>
		<label left="0" top="22" width="170" height="18" value="距离您上次使用至今,已更新了" fontFace="宋体"  fontSize="12"  foregroundColor="#b1ddff" passThrough="false" textAlignment="left vcenter"  cursor="hand" onclick="OnUserClick();"/>
		<label id="ChannelNum" left="170" top="22" width="30" height="18" value="9999" fontFace="宋体"  fontSize="12"  foregroundColor="#ff860c" passThrough="false" textAlignment="center vcenter" fontStyle="bold" cursor="hand" onclick="OnUserClick();"/>
		<label left="200" top="22" width="42" height="18" value="个节目," fontFace="宋体"  fontSize="12"  foregroundColor="#b1ddff" passThrough="false" textAlignment="left vcenter" cursor="hand" onclick="OnUserClick();"/>
		<label left="0" top="38" width="242" height="18" value="点击打开客户端观看" fontFace="宋体"  fontSize="12"  foregroundColor="#b1ddff" passThrough="false" textAlignment="left vcenter" cursor="hand" onclick="OnUserClick();"/>
	</subwindow>
</window>