var startani_A,pop_TC;

function ShowTheWindows(poptext)
	{
		imagewidth=258;
		imageheight=92;
		speed=40;
		x=(screen.width-imagewidth)/2;
		y=0;
		oPopup = window.createPopup();		
		oPopupBody = oPopup.document.body;
		oPopupBody.style.cursor="hand";
		oPopupBody.innerHTML = poptext;
		oPopup.document.body.onmouseover=new Function("clearTimeout(startani_A)");
		oPopup.document.body.onmouseout=pop; 
		oPopup.document.body.onclick=dowhat;
		oPopup.document.body.oncontextmenu=dismisspopup;
		pop_TC=1500;
		pop();
	}

function pop(){oPopup.show(x,y,imagewidth, imageheight);startani_A=setTimeout("pop()",100);if(pop_TC<0){dismisspopup();};pop_TC=pop_TC-1;}

function dismisspopup(){clearTimeout(startani_A);oPopup.hide();}

function dowhat(){dismisspopup();} 

function showpopwindow(txt){

var ss = txt.split(",");
var color= ss[0];
var ateam = ss[1];
var bteam = ss[2];
var netural = ss[3];
var aodds = ss[4];
var bodds = ss[5];
var handicap = ss[6];
var gg = ss[7];
var stname = ss[8];
var imga = ss[9];
var imgb = ss[10];

/*if (ateam.length + bteam.length + handicap.length > 13){
if (ateam.length>4){
  ateam = ateam.substring(0,4);
}
if (bteam.length>4){
  bteam = bteam.substring(0,4);
}
}*/

ShowTheWindows("<table bgcolor=#EEEEEE bordercolor=#24496f border=1 style='font-size:9pt;' width='100%'>"
+"<tr>"
+"<td align=center style='background-color:#24496f;color:white;font-family:Arial;font-Weight:bold'>"
+"<table width='100%' border=0 cellpadding=0>"
+"<tr>"
+"<td width='50%' style='color:white;font-family:Verdana;font-Weight:bold;font-size:9pt'>"
+"澳门即时"
+"</td>"
+"<td width='50%' align=right>"
+"<font style='color:white;font-size:7pt'>CopyRight &copy; totou.com</font>"
+"</td>"
+"</tr>"
+"</table>"
+"</td>"
+"</tr>"
+"<tr>"
+"<td align=center style='font-family:Verdana;'>"
+"<table width='100%' bgcolor=#F5F5F5 border=0 cellpadding=2 style='font-size:9pt;border-collapse:collapse'>"
+"<tr>"
+"<td align=center colspan=3>"
+"<font color='#FF0000'>联盟?/font>"
+"</td>"
+"</tr>"
+"<tr>"
+"<td width=45% align=right><font color='#0000FF'>布格勒斯特星隊隊</font></td>"
+"<td width=10% align=center>&nbsp;-&nbsp;</td>"
+"<td width=45% align=left><font color='#0000FF'>布格勒斯特星隊隊</font></td>"
+"</tr>"
+"</table>"
+"<table width='100%' bgcolor=#F5F5F5 border=0 cellpadding=3 style='font-size:9pt;border-collapse:collapse'>"
+"<tr>"
+"<td width=50% align=center style='background-color:#EBF0FC'>?&nbsp;1.30&nbsp;3.50&nbsp;5.60</td>"
+"<td width=50% align=center style='background-color:#EEEEEE'>?&nbsp;1.30&nbsp;3.50&nbsp;5.60</td>"
+"</tr>"
+"</table>"
+"</td>"
+"</tr>"
+"</table>");
}

