﻿var basket_op_host = "http://bdata2.7m.cn";
var dt_host = "http://data2.7m.cn";

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 "";
}

function Basket_Team_big(bh)
{
	window.open(basket_op_host + "/basketball_team_data/" + bh + "/big/index.shtml");
}

function Basket_Team_gb(bh)
{
	window.open(basket_op_host + "/basketball_team_data/" + bh + "/gb/index.shtml");
}

function Basket_Team_en(bh)
{
	window.open(basket_op_host + "/basketball_team_data/" + bh + "/en/index.shtml");
}

function Basket_Team_vn(bh)
{
	window.open(basket_op_host + "/basketball_team_data/" + bh + "/vn/index.shtml");
}

function Basket_Team_th(bh)
{
	window.open(basket_op_host + "/basketball_team_data/" + bh + "/th/index.shtml");
}

function Basket_Team_kr(bh)
{
	window.open(basket_op_host + "/basketball_team_data/" + bh + "/kr/index.shtml");
}

function Stat_big(bh)
{
	window.open(basket_op_host + "/stat_data/" + bh + "/index_big.htm", "", "scrollbars=yes,width=800,height=600");
}

function Stat_gb(bh)
{
	window.open(basket_op_host + "/stat_data/" + bh + "/index_gb.htm", "", "scrollbars=yes,width=800,height=600");
}

function Stat_en(bh)
{
	window.open(basket_op_host + "/stat_data/" + bh + "/index_en.htm", "", "scrollbars=yes,width=800,height=600");
}

function Stat_vn(bh)
{
	window.open(basket_op_host + "/stat_data/" + bh + "/index_vn.htm", "", "scrollbars=yes,width=800,height=600");
}

function Stat_th(bh)
{
	window.open(basket_op_host + "/stat_data/" + bh + "/index_th.htm", "", "scrollbars=yes,width=800,height=600");
}

function Stat_kr(bh)
{
	window.open(basket_op_host + "/stat_data/" + bh + "/index_kr.htm", "", "scrollbars=yes,width=800,height=600");
}

function Country_big(id)
{
	window.open(dt_host + "/country_data/" + id + "/big/index.shtml");
}

function Country_gb(id)
{
	window.open(dt_host + "/country_data/" + id + "/gb/index.shtml");
}

function Country_en(id)
{
	window.open(dt_host + "/country_data/" + id + "/en/index.shtml");
}

function Country_vn(id)
{
	window.open(dt_host + "/country_data/" + id + "/vn/index.shtml");
}

function Country_th(id)
{
	window.open(dt_host + "/country_data/" + id + "/th/index.shtml");
}

function Country_kr(id)
{
	window.open(dt_host + "/country_data/" + id + "/kr/index.shtml");
}

function Analyse_big(id)
{
	window.open(basket_op_host + "/analyse/big/" + id + ".shtml");
}

function Analyse_gb(id)
{
	window.open(basket_op_host + "/analyse/gb/" + id + ".shtml");
}

function Analyse_en(id)
{
	window.open(basket_op_host + "/analyse/en/" + id + ".shtml");
}

function Analyse_vn(id)
{
	window.open(basket_op_host + "/analyse/vn/" + id + ".shtml");
}

function Analyse_th(id)
{
	window.open(basket_op_host + "/analyse/th/" + id + ".shtml");
}

function Analyse_kr(id)
{
	window.open(basket_op_host + "/analyse/kr/" + id + ".shtml");
}

function Player_big(id)
{
	window.open(basket_op_host + "/basketball_player_data/" + id + "/big/index.shtml");
}

function Player_gb(id)
{
	window.open(basket_op_host + "/basketball_player_data/" + id + "/gb/index.shtml");
}

function Player_en(id)
{
	window.open(basket_op_host + "/basketball_player_data/" + id + "/en/index.shtml");
}

function Player_vn(id)
{
	window.open(basket_op_host + "/basketball_player_data/" + id + "/vn/index.shtml");
}

function Player_th(id)
{
	window.open(basket_op_host + "/basketball_player_data/" + id + "/th/index.shtml");
}

function Player_kr(id)
{
	window.open(basket_op_host + "/basketball_player_data/" + id + "/kr/index.shtml");
}

function bzlk_big(id)
{
	window.open(basket_op_host + "/basketball_match_data/" + id + "/big/index.shtml");
}

function bzlk_gb(id)
{
	window.open(basket_op_host + "/basketball_match_data/" + id + "/gb/index.shtml");
}

function bzlk_en(id)
{
	window.open(basket_op_host + "/basketball_match_data/" + id + "/en/index.shtml");
}

function bzlk_vn(id)
{
	window.open(basket_op_host + "/basketball_match_data/" + id + "/vn/index.shtml");
}

function bzlk_th(id)
{
	window.open(basket_op_host + "/basketball_match_data/" + id + "/th/index.shtml");
}

function bzlk_kr(id)
{
	window.open(basket_op_host + "/basketball_match_data/" + id + "/kr/index.shtml");
}

function ShowPk_big(id)
{
	window.open(basket_op_host + "/odds_analyse/chart.htm?id=" + id + "&ecd=0");
}

function ShowPk_gb(id)
{
	window.open(basket_op_host + "/odds_analyse/chart.htm?id=" + id + "&ecd=1");
}

function ShowPk_en(id)
{
	window.open(basket_op_host + "/odds_analyse/chart.htm?id=" + id + "&ecd=2");
}

function ShowPk_vn(id)
{
	window.open(basket_op_host + "/odds_analyse/chart.htm?id=" + id + "&ecd=2");
}

function ShowPk_th(id)
{
	window.open(basket_op_host + "/odds_analyse/chart.htm?id=" + id + "&ecd=2");
}

function ShowPk_kr(id)
{
	window.open(basket_op_host + "/odds_analyse/chart.htm?id=" + id + "&ecd=2");
}

function ShowCPk_big(id)
{
	window.open(basket_op_host + "/odds_analyse/chart.htm?id=" + id + "&ecd=0&s2=1");
}

function ShowCPk_gb(id)
{
	window.open(basket_op_host + "/odds_analyse/chart.htm?id=" + id + "&ecd=1&s2=1");
}

function ShowCPk_en(id)
{
	window.open(basket_op_host + "/odds_analyse/chart.htm?id=" + id + "&ecd=2&s2=1");
}

function ShowCPk_vn(id)
{
	window.open(basket_op_host + "/odds_analyse/chart.htm?id=" + id + "&ecd=2&s2=1");
}

function ShowCPk_th(id)
{
	window.open(basket_op_host + "/odds_analyse/chart.htm?id=" + id + "&ecd=2&s2=1");
}

function ShowCPk_kr(id)
{
	window.open(basket_op_host + "/odds_analyse/chart.htm?id=" + id + "&ecd=2&s2=1");
}