﻿var startani;
var pop_TC;
function showmesg(key)
{
//if(document.all.windowflag.checked)
//{
imageclick="190AA欢迎你！";
imagewidth=230;
imageheight=89;
speed=30;

poptext=key;
hideafter=30;
x=screen.width-imagewidth;
y=0;
oPopup = window.createPopup();
oPopupBody = oPopup.document.body;
//oPopupBody.style.cursor="hand";
oPopupBody.innerHTML = poptext;
oPopup.document.body.onmouseover=new Function("clearTimeout(startani)");
oPopup.document.body.onmouseout=pop;    
//oPopup.document.body.onclick=dowhat;
oPopup.document.body.oncontextmenu=dismisspopup;
pop_TC=200;
pop();
//setTimeout("dismisspopup()",20000);
//}
}


function pop()
{
oPopup.show(x,y,imagewidth, imageheight+5);
startani=setTimeout("pop()",100);
if(pop_TC<0){dismisspopup();};
pop_TC=pop_TC-1;
}
function dismisspopup(){clearTimeout(startani);oPopup.hide();}
function dowhat()
{
//if (imageclick=="dismiss")
//{dismisspopup();}
//else
//{
//alert(imageclick);
//window.event.returnValue=false;
return false;
//}
//window.open(imageclick);
}
function ShowWindow(EnterBallTeamName,OneTeamName,TwoTeamName,OneTeamMark,TwoTeamMark,StateName,RangQiu)
		{
				var ItemColor=document.getElementById("Item_"+mx_id).style.backgroundColor;
				var ItemName=123;
				//var ItemColor="red";
				 ItemName="<font color='"+ItemColor+"' size=2>"+ItemName+"</font>";
				
				var OneTeamFontColor="";
				var TwoTeamFontColor="";
				if(EnterBallTeamName=="OneTeam")
				{
					OneTeamFontColor="red";
					TwoTeamFontColor="black";

				}
				else
				{
					TwoTeamFontColor="red";
					OneTeamFontColor="black";
				}
				
				var BallMesg="<TABLE cellSpacing=0 cellPadding=0 width=100% height=100% border=0 style=\"font-size:11px\">"
				
					+"<TR>"
					+"<TD align=center style=\"font-size:12px\">"
					+"<div align=center style=\"font-size:12px;color:#B464CE\">"+RangQiu+"</div><font color="+OneTeamFontColor+"><b>"+OneTeamName+"  "+OneTeamMark+"</b></font>"+"-<font color="+TwoTeamFontColor+"><b>"
					+TwoTeamMark+" "+TwoTeamName+"</b></font>"
					+"</TD>"
					+"</TR>"
					+"<TR>"
					+"<TD align=center> "+StateName+"半场</TD>"
					+"</TR>"
					+"</TABLE>";
				var BallMesgNew="<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" height=\"90%\">"
					+" <tr>"
					+"<td width=\"10%\"> <area href=\"#\" shape=\"rect\" coords=\"11, 10, 23, 22\" onclick=\"parent.dismisspopup()\" alt=\"关闭\"></map><img border=\"0\" src=\"images/window/top_left.jpg\" usemap=\"#FPMap0\" width=\"25\" height=\"31\" onclick=\"parent.dismisspopup()\"  style=\"cursor: hand\">"

					+"</td>"
					+"<td background=\"images/window/top_right.jpg\" height=\"31\" valign=\"bottom\"><div align=\"right\">"+ItemName+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color=\"black\" size=2><B>踢球者</b>&nbsp;&nbsp;</font></td>"
					+"</tr>"
					+"<tr>"
					+"<td colspan=\"2\" background=\"images/window/bg.jpg\" height=\"61\">"+BallMesg+"　</td>"
									+"</tr>"
									+"</table>";
				
				
   



				showmesg(BallMesgNew)
			
		}