﻿var hk = 0;

function Request(Variable)
{
	var query = location.search;
	if (query != "")
	{
		query = query.split("?")[1];
		query = query.split("&");
		for (var i=0;i<query.length;i++)
		{
			var querycoll = query[i].split("=");
			if (querycoll.length == 2)
			{
				if (querycoll[0].toUpperCase() == Variable.toUpperCase())
				{
					return querycoll[1];
					break;
				}
			}
		}
	}
	return "";
}

var datahost = "data2.7m.cn";

function Team_big(id)
{
	window.open("http://" + datahost + "/team_data/" + id + "/big/index.shtml");
}

function Team_gb(id)
{
	window.open("http://" + datahost + "/team_data/" + id + "/gb/index.shtml");
}

function Team_en(id)
{
	window.open("http://" + datahost + "/team_data/" + id + "/en/index.shtml");
}

function Team_vn(id)
{
	window.open("http://" + datahost + "/team_data/" + id + "/vn/index.shtml");
}

function Team_th(id)
{
	window.open("http://" + datahost + "/team_data/" + id + "/th/index.shtml");
}

function Team_kr(id)
{
	window.open("http://" + datahost + "/team_data/" + id + "/kr/index.shtml");
}

function Team_his_big(id)
{
	window.open("http://" + datahost + "/team_data/team_his_big.aspx?id=" + id);
}

function Team_his_gb(id)
{
	window.open("http://" + datahost + "/team_data/team_his_gb.aspx?id=" + id);
}

function Team_his_en(id)
{
	window.open("http://" + datahost + "/team_data/team_his_en.aspx?id=" + id);
}

function Team_his_vn(id)
{
	window.open("http://" + datahost + "/team_data/team_his_en.aspx?id=" + id);
}

function Team_his_th(id)
{
	window.open("http://" + datahost + "/team_data/team_his_en.aspx?id=" + id);
}

function Team_his_kr(id)
{
	window.open("http://" + datahost + "/team_data/team_his_en.aspx?id=" + id);
}

function Player_big(id)
{
	window.open("http://" + datahost + "/player_data/" + id + "/big/index.shtml");
}

function Player_gb(id)
{
	window.open("http://" + datahost + "/player_data/" + id + "/gb/index.shtml");
}

function Player_en(id)
{
	window.open("http://" + datahost + "/player_data/" + id + "/en/index.shtml");
}

function Player_vn(id)
{
	window.open("http://" + datahost + "/player_data/" + id + "/vn/index.shtml");
}

function Player_th(id)
{
	window.open("http://" + datahost + "/player_data/" + id + "/th/index.shtml");
}

function Player_kr(id)
{
	window.open("http://" + datahost + "/player_data/" + id + "/kr/index.shtml");
}

function ShowDetails_big(id)
{
	window.open("http://" + datahost + ":13000/goaldata/ft/" + id + ".shtml","","width=480,height=440,scrollbars=yes");
}

function ShowDetails_gb(id)
{
	window.open("http://" + datahost + ":13000/goaldata/jt/" + id + ".shtml","","width=480,height=440,scrollbars=yes");
}

function ShowDetails_en(id)
{
	window.open("http://" + datahost + ":13000/goaldata/en/" + id + ".shtml","","width=480,height=440,scrollbars=yes");
}

function ShowDetails_vn(id)
{
	window.open("http://" + datahost + ":13000/goaldata/vn/" + id + ".shtml","","width=480,height=440,scrollbars=yes");
}

function ShowDetails_th(id)
{
	window.open("http://" + datahost + ":13000/goaldata/th/" + id + ".shtml","","width=480,height=440,scrollbars=yes");
}

function ShowDetails_kr(id)
{
	window.open("http://" + datahost + ":13000/goaldata/kr/" + id + ".shtml","","width=480,height=440,scrollbars=yes");
}

/*
function ShowPk_big(id)
{
	window.open("http://" + datahost + "/odds_analyse/big/" + id + ".shtml");
}

function ShowPk_gb(id)
{
	window.open("http://" + datahost + "/odds_analyse/big/" + id + ".shtml");
}
*/
function ShowPk_big(id)
{
	window.open("http://data.7m.hk/m_odds_analyse.htm?ecd=0&id=" + id);
}

function ShowPk_gb(id)
{
	window.open("http://data.7m.hk/m_odds_analyse.htm?ecd=1&id=" + id);
}

function ShowPk_en(id)
{
	window.open("http://" + datahost + "/odds_analyse/m_chart.htm?ecd=2&id=" + id);
}

function ShowPk_vn(id)
{
	window.open("http://" + datahost + "/odds_analyse/m_chart.htm?ecd=2&id=" + id);
}

function ShowPk_th(id)
{
	window.open("http://" + datahost + "/odds_analyse/m_chart.htm?ecd=2&id=" + id);
}

function ShowPk_kr(id)
{
	window.open("http://" + datahost + "/odds_analyse/m_chart.htm?ecd=2&id=" + id);
}

function ShowAnalyse_big(id)
{
	window.open("http://" + datahost + "/analyse/big/" + id + ".shtml");
}

function ShowAnalyse_gb(id)
{
	window.open("http://" + datahost + "/analyse/gb/" + id + ".shtml");
}

function ShowAnalyse_en(id)
{
	window.open("http://" + datahost + "/analyse/en/" + id + ".shtml");
}

function ShowAnalyse_vn(id)
{
	window.open("http://" + datahost + "/analyse/vn/" + id + ".shtml");
}

function ShowAnalyse_th(id)
{
	window.open("http://" + datahost + "/analyse/th/" + id + ".shtml");
}

function ShowAnalyse_kr(id)
{
	window.open("http://" + datahost + "/analyse/kr/" + id + ".shtml");
}

function Country_big(id)
{
	window.open("http://" + datahost + "/country_data/" + id + "/big/index.shtml");
}

function Country_gb(id)
{
	window.open("http://" + datahost + "/country_data/" + id + "/gb/index.shtml");
}

function Country_en(id)
{
	window.open("http://" + datahost + "/country_data/" + id + "/en/index.shtml");
}

function Country_vn(id)
{
	window.open("http://" + datahost + "/country_data/" + id + "/vn/index.shtml");
}

function Country_th(id)
{
	window.open("http://" + datahost + "/country_data/" + id + "/th/index.shtml");
}

function Country_kr(id)
{
	window.open("http://" + datahost + "/country_data/" + id + "/kr/index.shtml");
}

function Stadium_big(id)
{
	window.open("http://" + datahost + "/stadium_data/" + id + "/index_big.shtml");
}

function Stadium_gb(id)
{
	window.open("http://" + datahost + "/stadium_data/" + id + "/index_gb.shtml");
}

function Stadium_en(id)
{
	window.open("http://" + datahost + "/stadium_data/" + id + "/index_en.shtml");
}

function Stadium_vn(id)
{
	window.open("http://" + datahost + "/stadium_data/" + id + "/index_vn.shtml");
}

function Stadium_th(id)
{
	window.open("http://" + datahost + "/stadium_data/" + id + "/index_th.shtml");
}

function Stadium_kr(id)
{
	window.open("http://" + datahost + "/stadium_data/" + id + "/index_kr.shtml");
}

function Referee_big(id)
{
	window.open("http://" + datahost + "/referee_data/" + id + "/index_big.shtml");
}

function Referee_gb(id)
{
	window.open("http://" + datahost + "/referee_data/" + id + "/index_gb.shtml");
}

function Referee_en(id)
{
	window.open("http://" + datahost + "/referee_data/" + id + "/index_en.shtml");
}

function Referee_vn(id)
{
	window.open("http://" + datahost + "/referee_data/" + id + "/index_vn.shtml");
}

function Referee_th(id)
{
	window.open("http://" + datahost + "/referee_data/" + id + "/index_th.shtml");
}

function Referee_kr(id)
{
	window.open("http://" + datahost + "/referee_data/" + id + "/index_kr.shtml");
}

function t_History_OddsAway_big(path, id)
{
	window.open("http://" + datahost + "/team_history_odds_data/" + path + "/" + id + "/total/index_big.htm", "", "width=620,height=500,scrollbars=yes");
}

function t_History_OddsAway_gb(path, id)
{
	window.open("http://" + datahost + "/team_history_odds_data/" + path + "/" + id + "/total/index_gb.htm", "", "width=620,height=500,scrollbars=yes");
}

function t_History_OddsAway_en(path, id)
{
	window.open("http://" + datahost + "/team_history_odds_data/" + path + "/" + id + "/total/index_en.htm", "", "width=620,height=500,scrollbars=yes");
}

function t_History_OddsAway_vn(path, id)
{
	window.open("http://" + datahost + "/team_history_odds_data/" + path + "/" + id + "/total/index_vn.htm", "", "width=620,height=500,scrollbars=yes");
}

function t_History_OddsAway_th(path, id)
{
	window.open("http://" + datahost + "/team_history_odds_data/" + path + "/" + id + "/total/index_th.htm", "", "width=620,height=500,scrollbars=yes");
}

function t_History_OddsAway_kr(path, id)
{
	window.open("http://" + datahost + "/team_history_odds_data/" + path + "/" + id + "/total/index_kr.htm", "", "width=620,height=500,scrollbars=yes");
}

function h_History_OddsAway_big(path, id)
{
	window.open("http://" + datahost + "/team_history_odds_data/" + path + "/" + id + "/home/index_big.htm", "", "width=620,height=500,scrollbars=yes");
}

function h_History_OddsAway_gb(path, id)
{
	window.open("http://" + datahost + "/team_history_odds_data/" + path + "/" + id + "/home/index_gb.htm", "", "width=620,height=500,scrollbars=yes");
}

function h_History_OddsAway_en(path, id)
{
	window.open("http://" + datahost + "/team_history_odds_data/" + path + "/" + id + "/home/index_en.htm", "", "width=620,height=500,scrollbars=yes");
}

function h_History_OddsAway_vn(path, id)
{
	window.open("http://" + datahost + "/team_history_odds_data/" + path + "/" + id + "/home/index_vn.htm", "", "width=620,height=500,scrollbars=yes");
}

function h_History_OddsAway_th(path, id)
{
	window.open("http://" + datahost + "/team_history_odds_data/" + path + "/" + id + "/home/index_th.htm", "", "width=620,height=500,scrollbars=yes");
}

function h_History_OddsAway_kr(path, id)
{
	window.open("http://" + datahost + "/team_history_odds_data/" + path + "/" + id + "/home/index_kr.htm", "", "width=620,height=500,scrollbars=yes");
}

function a_History_OddsAway_big(path, id)
{
	window.open("http://" + datahost + "/team_history_odds_data/" + path + "/" + id + "/away/index_big.htm", "", "width=620,height=500,scrollbars=yes");
}

function a_History_OddsAway_gb(path, id)
{
	window.open("http://" + datahost + "/team_history_odds_data/" + path + "/" + id + "/away/index_gb.htm", "", "width=620,height=500,scrollbars=yes");
}

function a_History_OddsAway_en(path, id)
{
	window.open("http://" + datahost + "/team_history_odds_data/" + path + "/" + id + "/away/index_en.htm", "", "width=620,height=500,scrollbars=yes");
}

function a_History_OddsAway_vn(path, id)
{
	window.open("http://" + datahost + "/team_history_odds_data/" + path + "/" + id + "/away/index_vn.htm", "", "width=620,height=500,scrollbars=yes");
}

function a_History_OddsAway_th(path, id)
{
	window.open("http://" + datahost + "/team_history_odds_data/" + path + "/" + id + "/away/index_th.htm", "", "width=620,height=500,scrollbars=yes");
}

function a_History_OddsAway_kr(path, id)
{
	window.open("http://" + datahost + "/team_history_odds_data/" + path + "/" + id + "/away/index_kr.htm", "", "width=620,height=500,scrollbars=yes");
}

function zlk_big(id)
{
	window.open("http://" + datahost + "/matches_data/" + id + "/big/index.shtml");
}

function zlk_gb(id)
{
	window.open("http://" + datahost + "/matches_data/" + id + "/gb/index.shtml");
}

function zlk_en(id)
{
	window.open("http://" + datahost + "/matches_data/" + id + "/en/index.shtml");
}

function zlk_vn(id)
{
	window.open("http://" + datahost + "/matches_data/" + id + "/vn/index.shtml");
}

function zlk_th(id)
{
	window.open("http://" + datahost + "/matches_data/" + id + "/th/index.shtml");
}

function zlk_kr(id)
{
	window.open("http://" + datahost + "/matches_data/" + id + "/kr/index.shtml");
}

function ShowRPk_big(id)
{
	window.open("http://royal.7m.cn:18000/chart.htm?ecd=0&id=" + id);
}

function ShowRPk_gb(id)
{
	window.open("http://royal.7m.cn:18000/chart.htm?ecd=1&id=" + id);
}

function ShowRPk_en(id)
{
	window.open("http://royal.7m.cn:18000/chart.htm?ecd=2&id=" + id);
}

function ShowRPk_vn(id)
{
	window.open("http://royal.7m.cn:18000/chart.htm?ecd=2&id=" + id);
}

function ShowRPk_th(id)
{
	window.open("http://royal.7m.cn:18000/chart.htm?ecd=2&id=" + id);
}

function ShowRPk_kr(id)
{
	window.open("http://royal.7m.cn:18000/chart.htm?ecd=2&id=" + id);
}

/*
function ShowCPk_big(id)
{
	window.open("http://crowns.7m.cn:18010/chart.htm?ecd=0&id=" + id);
}

function ShowCPk_gb(id)
{
	window.open("http://crowns.7m.cn:18010/chart.htm?ecd=1&id=" + id);
}
*/
function ShowCPk_big(id)
{
	window.open("http://crowns.7m.hk/chart.htm?ecd=0&id=" + id);
}

function ShowCPk_gb(id)
{
	window.open("http://crowns.7m.hk/chart.htm?ecd=1&id=" + id);
}

function ShowCPk_en(id)
{
	window.open("http://crowns.7m.cn:18010/chart.htm?ecd=2&id=" + id);
}

function ShowCPk_vn(id)
{
	window.open("http://crowns.7m.cn:18010/chart.htm?ecd=2&id=" + id);
}

function ShowCPk_th(id)
{
	window.open("http://crowns.7m.cn:18010/chart.htm?ecd=2&id=" + id);
}

function ShowCPk_kr(id)
{
	window.open("http://crowns.7m.cn:18010/chart.htm?ecd=2&id=" + id);
}

/*
function ShowLBPk_big(id)
{
	window.open("http://" + datahost + "/odds_analyse/chart.htm?ecd=0&id=" + id);
}

function ShowLBPk_gb(id)
{
	window.open("http://" + datahost + "/odds_analyse/chart.htm?ecd=1&id=" + id);
}
*/
function ShowLBPk_big(id)
{
	window.open("http://data.7m.hk/lb_odds_analyse.htm?ecd=0&id=" + id);
}

function ShowLBPk_gb(id)
{
	window.open("http://data.7m.hk/lb_odds_analyse.htm?ecd=1&id=" + id);
}

function ShowLBPk_en(id)
{
	window.open("http://" + datahost + "/odds_analyse/chart.htm?ecd=2&id=" + id);
}

function ShowLBPk_vn(id)
{
	window.open("http://" + datahost + "/odds_analyse/chart.htm?ecd=2&id=" + id);
}

function ShowLBPk_th(id)
{
	window.open("http://" + datahost + "/odds_analyse/chart.htm?ecd=2&id=" + id);
}

function ShowLBPk_kr(id)
{
	window.open("http://" + datahost + "/odds_analyse/chart.htm?ecd=2&id=" + id);
}

function Show1x2_big(id)
{
	window.open("http://1x2.7m.cn/list_big.shtml?id=" + id);
}

function Show1x2_gb(id)
{
	window.open("http://1x2.7m.cn/list_gb.shtml?id=" + id);
}
/*
function Show1x2_big(id)
{
	window.open("http://1x2.7m.hk/list_big.shtml?id=" + id);
}

function Show1x2_gb(id)
{
	window.open("http://1x2.7m.hk/list_gb.shtml?id=" + id);
}
*/
function Show1x2_en(id)
{
	window.open("http://1x2.7m.cn/list_en.shtml?id=" + id);
}

function Show1x2_vn(id)
{
	window.open("http://1x2.7m.cn/list_vn.shtml?id=" + id);
}

function Show1x2_th(id)
{
	window.open("http://1x2.7m.cn/list_th.shtml?id=" + id);
}

function Show1x2_kr(id)
{
	window.open("http://1x2.7m.cn/list_kr.shtml?id=" + id);
}

function MC_big(id)
{
	window.open("http://wlive.7m.cn/live/big/" + id + ".shtml");
}

function MC_gb(id)
{
	window.open("http://wlive.7m.cn/live/gb/" + id + ".shtml");
}

function MC_en(id)
{
	window.open("http://wlive.7m.cn/live/en/" + id + ".shtml");
}

function MC_vn(id)
{
	window.open("http://wlive.7m.cn/live/vn/" + id + ".shtml");
}

function MC_th(id)
{
	window.open("http://wlive.7m.cn/live/th/" + id + ".shtml");
}

function MC_kr(id)
{
	window.open("http://wlive.7m.cn/live/kr/" + id + ".shtml");
}
