﻿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("Basketball_Team_Data.aspx?id=" + bh + "");
}

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");
}

function Stat_gb(bh)
{
	window.open("index_gb.aspx?id=" + bh + "");
}

function Stat_en(bh)
{
	window.open(basket_op_host + "/Stat_Data/" + bh + "/index_en.htm");
}

function Stat_vn(bh)
{
	window.open(basket_op_host + "/Stat_Data/" + bh + "/index_vn.htm");
}

function Stat_th(bh)
{
	window.open(basket_op_host + "/Stat_Data/" + bh + "/index_th.htm");
}

function Stat_kr(bh)
{
	window.open(basket_op_host + "/Stat_Data/" + bh + "/index_kr.htm");
}

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("Analyse.aspx?id=" + id + "");
}

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("Basketball_Player_Data.aspx?id=" + id + "");
}

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");
}