var loadBaseInfoOK = false;
var loadProfileOK = false;
var loadGloryOK = false;
var loadBestOK = false;
var loadCoachOK = false;
function loadBaseInfo(){
if(!loadBaseInfoOK){
if (typeof(teamInfo)!="undefined")
{
var obj = $$("baseInfo_tb");
var row,cell;
teamName = teamInfo["E8DD3CE0CACA458D"];
if(teamInfo["C3DE130B7D4AB7DB"]!="" && teamInfo["E8DD3CE0CACA458D"] !=teamInfo["C3DE130B7D4AB7DB"] ){
teamName += "(" + teamInfo["C3DE130B7D4AB7DB"] +")";
}
row = obj.insertRow(-1);
cell = row.insertCell(-1);
cell.colSpan=2;
cell.className = "qdtt1";
cell.innerHTML = teamName.replace("&","&") + "
";
obj.insertRow(-1);
row = obj.insertRow(-1);
row.insertCell(-1).colSpan=2;
row =obj.insertRow(-1);
row.id="trInfoStats";
row.style.display = "none";
row.insertCell(-1).colSpan=2;
if(teamInfo["736ECA69114CA0121CDC75D8A7FDA057F4F7013DE66F87F8"]!=""){
row =obj.insertRow(-1);
cell = row.insertCell(-1);
cell.innerHTML = ESTABLISH_DATA_STR;
cell.align="right";
cell = row.insertCell(-1);
cell.innerHTML = teamInfo["736ECA69114CA0121CDC75D8A7FDA057F4F7013DE66F87F8"];
}
if(teamInfo["FEE968D9DBFC6146AF1E5D896A4C1BBF"]!=""){
row =obj.insertRow(-1);
cell = row.insertCell(-1);
cell.innerHTML = COUNTRY_STR;
cell.align="right";
cell = row.insertCell(-1);
cell.innerHTML = parseInt(teamInfo["CB6C8C34A68D7715A055D664FDADB411"])>0 ? '' + teamInfo["FEE968D9DBFC6146AF1E5D896A4C1BBF"] + '' : teamInfo["FEE968D9DBFC6146AF1E5D896A4C1BBF"];
}
if(teamInfo["66BBD5A4593C916A"]!=""){
row =obj.insertRow(-1);
cell = row.insertCell(-1);
cell.innerHTML = CITY_STR;
cell.align="right";
cell = row.insertCell(-1);
cell.innerHTML =teamInfo["66BBD5A4593C916A"];
}
if(teamInfo["63AFECC3B4146719255D0EBECD744016"]!=""){
row =obj.insertRow(-1);
cell = row.insertCell(-1);
cell.innerHTML = STADIUM_STR;
cell.align="right";
cell = row.insertCell(-1);
if (teamInfo["58839C5489CF8F47"]!="")
cell.innerHTML = '' + teamInfo["63AFECC3B4146719255D0EBECD744016"] + '';
else
cell.innerHTML = teamInfo["63AFECC3B4146719255D0EBECD744016"];
}
if (teamInfo["2B86CD8155EF4869BD305F9EC6E55A2D"] != ""){
row =obj.insertRow(-1);
cell = row.insertCell(-1);
cell.innerHTML = CAPACITY_STR;
cell.align="right";
cell = row.insertCell(-1);
cell.innerHTML =teamInfo["2B86CD8155EF4869BD305F9EC6E55A2D"];
}
if (teamInfo["6C2FDBC58B5FC3172E10FA9FBEEC4676"] != ""){
row =obj.insertRow(-1);
cell = row.insertCell(-1);
cell.innerHTML = ADDRESS_STR;
cell.align="right";
cell = row.insertCell(-1);
cell.innerHTML =teamInfo["6C2FDBC58B5FC3172E10FA9FBEEC4676"];
}
if (teamInfo["3A5BA2FF10D30F08"] != "" ){
row =obj.insertRow(-1);
cell = row.insertCell(-1);
cell.innerHTML = WEBSITE_STR;
cell.align="right";
cell = row.insertCell(-1);
cell.style.wordBreak = "break-all";
cell.innerHTML = '' + teamInfo["3A5BA2FF10D30F08"] + '';
}
if (teamInfo["B5EB80A22A57B91E"]!=""){
row =obj.insertRow(-1);
cell = row.insertCell(-1);
cell.innerHTML =EMAIL_STR;
cell.align="right";
cell = row.insertCell(-1);
cell.style.wordBreak = "break-all";
cell.innerHTML = '' + teamInfo["B5EB80A22A57B91E"] + '';
}
if (teamInfo["577B068F2C47D74D"]!=""){
row =obj.insertRow(-1);
cell = row.insertCell(-1);
cell.innerHTML = PLAYER_AGE_STR;
cell.align="right";
cell = row.insertCell(-1);
cell.innerHTML = teamInfo["577B068F2C47D74D"] + AVERAGE_STR;
}
if (typeof(teamInfo["A667671DDBFFBFB212A5D1335EAC16DE"]) != "undefined" && teamInfo["A667671DDBFFBFB212A5D1335EAC16DE"]!="0"){
row =obj.insertRow(-1);
cell = row.insertCell(-1);
cell.innerHTML = TEAM_PRICE_STR;
cell.align="right";
cell = row.insertCell(-1);
cell.innerHTML = teamPriceFormat(lang, teamInfo["A667671DDBFFBFB212A5D1335EAC16DE"], teamInfo["A667671DDBFFBFB2FA72AB297542675213E7B0BF26878540"]);
}
if (teamInfo["D39E7C23A464F86D"] == 1)
$$("logo_img").src = "//data-img.7mdt.com/football/team/"+teamId+".jpg?x-oss-process=image/resize,m_fill,w_112,h_112";
else if (teamInfo["D39E7C23A464F86D"] == 2)
$$("logo_img").src = "//data-img.7mdt.com/football/team/"+teamId+".gif?x-oss-process=image/resize,m_fill,w_112,h_112";
else
$$("logo_img").src = "http://data.7msport.com/team_data/share_Img/err.gif";
size_Img($$("logo_img"));
$$("mainshirt").innerHTML = "
" + MAINSHIRT_STR + "";
$$("awayshirt").innerHTML = "
" + AWAYSHIRT_STR + "";
if(teamInfo["80F5812E9CE70DA801D7532A4A8FBAA9"] !="" ){
$$("tag2").style.display = "";
}
if(teamInfo["963A3FBAB4C897FB"] !=""){
$$("tag3").style.display = "";
}
if(teamInfo["41F6CDCCD6C1C3ADE8889FA9B8C131DD"] !=""){
$$("tag4").style.display = "";
}
if(typeof(teamInfo["97493DA145895B7F"]) !="undefined"){
$$("tag5").style.display = "";
}
}
loadBaseInfoOK = true;
}
}
function loadGlory(){
if (!loadGloryOK){
$$("glory_td").innerHTML = teamInfo["80F5812E9CE70DA801D7532A4A8FBAA9"];
loadGloryOK = true;
}
}
function loadBest(){
if (!loadBestOK){
$$("best_td").innerHTML = teamInfo["963A3FBAB4C897FB"];
loadBestOK = true;
}
}
function loadProfile(){
if(!loadProfileOK){
$$("profile_td").innerHTML = teamInfo["41F6CDCCD6C1C3ADE8889FA9B8C131DD"];
loadProfileOK = true;
}
}
function loadCoach(){
if (!loadCoachOK){
var obj = $$("coach_tb");
if (teamInfo["33CA8D37F9321441E44F9C2F75F7B184"]!=""){
obj.rows[1].cells[0].innerHTML =teamInfo["33CA8D37F9321441E44F9C2F75F7B184"];
}
if(teamInfo["EC0A9CD40A79F4A7"]==1 || teamInfo["EC0A9CD40A79F4A7"]==2 ){
$$("e_coach_photo").src ="http://data.7msport.com/player_data/" + teamInfo["97493DA145895B7F"] + "/logo_img/player_photo" + (teamInfo["EC0A9CD40A79F4A7"] == 1 ? ".jpg" : ".gif");
}else{
$$("e_coach_photo").src ="http://data.7msport.com/player_data/share_img/err.gif";
}
obj = document.getElementById("coach_tb2");
var row,cell;
if (teamInfo["1F226704445BE844DD86978D1C491CD0"]!=""){
row =obj.insertRow(-1);
row.vAlign = "top";
cell=row.insertCell(-1);
cell.width = "80px";
cell.innerHTML = "" + BIRTHDAY_STR + "";
cell=row.insertCell(-1);
cell.innerHTML = teamInfo["1F226704445BE844DD86978D1C491CD0"];
}
if (teamInfo["14CEFA5CBB9C8078BB873DB3140082EB"]!=""){
row =obj.insertRow(-1);
row.vAlign = "top";
cell=row.insertCell(-1);
cell.width = "80px";
cell.innerHTML = "" + PLAYER_DATA_TITLE[0] + "";
cell=row.insertCell(-1);
cell.innerHTML = teamInfo["14CEFA5CBB9C8078BB873DB3140082EB"];
}
if (teamInfo["9874C22720D5C2A2CD734C426BC52BB7"]!=""){
row =obj.insertRow(-1);
row.vAlign = "top";
cell=row.insertCell(-1);
cell.width = "80px";
cell.innerHTML = "" + IN_CLUB_STR + "";
cell=row.insertCell(-1);
cell.innerHTML =teamInfo["9874C22720D5C2A2CD734C426BC52BB7"];
}
if (teamInfo["BF30D6091E95FD5C1F450BE35912A445"]!=""){
row =obj.insertRow(-1);
row.vAlign = "top";
cell=row.insertCell(-1);
cell.width = "80px";
cell.innerHTML = "" + JOIN_DATA_STR + "";
cell=row.insertCell(-1);
cell.innerHTML =teamInfo["BF30D6091E95FD5C1F450BE35912A445"];
}
if (teamInfo["1EC75259044B48308E8CB44EA3535596"] != ""){
row =obj.insertRow(-1);
row.vAlign = "top";
cell=row.insertCell(-1);
cell.width = "80px";
cell.innerHTML = "" + PREVIOUS_CLUB_STR + "";
cell=row.insertCell(-1);
cell.innerHTML =teamInfo["1EC75259044B48308E8CB44EA3535596"];
}
if (teamInfo["0AF0E16F0C83F1524245AE972CF788B5"] != ""){
row =obj.insertRow(-1);
row.vAlign = "top";
cell=row.insertCell(-1);
cell.width = "80px";
cell.innerHTML = "" + ONCE_CLUB_STR + "";
cell=row.insertCell(-1);
cell.innerHTML =teamInfo["0AF0E16F0C83F1524245AE972CF788B5"];
}
if (teamInfo["99076DE7EF4979F5338332BE8A068374"] != ""){
row =obj.insertRow(-1);
row.vAlign = "top";
cell=row.insertCell(-1);
cell.width = "80px";
cell.innerHTML = "" + PERSONAL_HONOURS_STR + "";
cell=row.insertCell(-1);
cell.innerHTML =teamInfo["99076DE7EF4979F5338332BE8A068374"];
}
if ( teamInfo["6D32C6445CC2D59F8C50EC9CE9BD145C"]!=""){
row =obj.insertRow(-1);
row.vAlign = "top";
cell=row.insertCell(-1);
cell.width = "80px";
cell.innerHTML = "" + PLAYER_DATA_TITLE[3] + "";
cell=row.insertCell(-1);
cell.innerHTML =teamInfo["6D32C6445CC2D59F8C50EC9CE9BD145C"];
}
if (teamInfo["4873D80D884C1965174890917813A0BA"]!="" ){
row =obj.insertRow(-1);
row.vAlign = "top";
cell=row.insertCell(-1);
cell.width = "80px";
cell.innerHTML = "" + PLAYER_DATA_TITLE[4] + "";
cell=row.insertCell(-1);
cell.innerHTML =teamInfo["4873D80D884C1965174890917813A0BA"];
}
if (teamInfo["8CE97C5D66CE80B135419DCE4B0B326B"]!="" )
{
row =obj.insertRow(-1);
row.vAlign = "top";
cell=row.insertCell(-1);
cell.width = "80px";
cell.innerHTML = "" + PROFILE_STR + "";
cell=row.insertCell(-1);
cell.innerHTML =teamInfo["8CE97C5D66CE80B135419DCE4B0B326B"];
}
loadCoachOK = true;
}
}
function showMap()
{
var LANG_CODE = {"gb":"zh-CN","big":"zh-TW","en":"en", "vn":"vi", "th":"th", "kr":"ko"};
var mapwin = window.open('', "_blank", '');
mapwin.document.open('text/html', 'replace');
if(typeof(ADVISIBLE)!="undefined" && ADVISIBLE==false){
teamInfo["58839C5489CF8F47"]=teamInfo["map"].replace("maps.google.com","ditu.google.cn") ;
}
var code = '';
mapwin.document.writeln(code);
mapwin.document.close();
}