var fscUrl=window.location.href;function fsiImgError(b,d,a){var c=null;if(d=="soccer"){if(a=="xsmall"){c="/fe/fsi/img/futbol/teamLogo/noLogo/nologo-20x20.gif";}else{if(a=="small"){c="/fe/fsi/img/futbol/teamLogo/noLogo/nologo-25x25.gif";}else{if(a=="medium"){c="/fe/fsi/img/futbol/teamLogo/noLogo/nologo-50x50.gif";
}else{c="/fe/fsi/img/futbol/teamLogo/noLogo/nologo-20x20.gif";}}}}b.src=c;b.onerror="";return true;}FsApps.launchSiteSearch=function(){Msn.SiteSearch.bindMSN("#search",{searchParam:"sp_q",searchUrl:"http://www.foxsports.com/foxsoccer/fssearch",siteSearchOn:"true",helpertext:"Search FOX Soccer",onepxgif:"http://blstc.msn.com/br/gbl/css/10/decoration/t.gif"});
};function fsiExpandCollapseData(b){var a=document.getElementById("fsi-"+b).style.display;if(a=="none"){$("#fsi-"+b).css("display","block");$("#fsiCollapseLink-"+b).text("Collapse");$("#fsiCollapseImg-"+b).attr("src","/fe/fsi/img/futbol/misc/collapseInfo.jpg");}else{if(a=="block"){$("#fsi-"+b).css("display","none");
$("#fsiCollapseLink-"+b).text("Expand");$("#fsiCollapseImg-"+b).attr("src","/fe/fsi/img/futbol/misc/expandInfo.jpg");}}}function fsiExpandCollapseMatchStats(b){var a="none";if(document.getElementById("fsiTeamLineup-"+b)){a=document.getElementById("fsiTeamLineup-"+b).style.display;}if(a=="none"){$("#fsiTeamStats-"+b).css("display","block");
$("#fsiTeamLineup-"+b).css("display","block");$("#fsiTeamBench-"+b).css("display","block");$("#fsiCollapseLink-"+b).text("Collapse");$("#fsiCollapseImg-"+b).attr("src","/fe/fsi/img/futbol/misc/collapseInfo.jpg");}else{if(a=="block"){$("#fsiTeamStats-"+b).css("display","none");$("#fsiTeamLineup-"+b).css("display","none");
$("#fsiTeamBench-"+b).css("display","none");$("#fsiCollapseLink-"+b).text("Expand");$("#fsiCollapseImg-"+b).attr("src","/fe/fsi/img/futbol/misc/expandInfo.jpg");}}}if(fscUrl.indexOf("/fixtures")!=-1||fscUrl.indexOf("/standings")!=-1||fscUrl.indexOf("/stats")!=-1||fscUrl.indexOf("/matchtrax")!=-1){$(document).ready(function(){$("#bdy-container").css({"margin-top":"0px"});
$("#bdy-container div.main_content").css({"float":"left","width":"680px"});$("#bdy-container div.extra_content").css({"float":"left","width":"300px","margin-top":"0px"});});}if(fscUrl.indexOf("/matchtrax")!=-1){$(document).ready(function(){$("#bdy-container div.main_content").css({"float":"left","width":"680px"});
$("#bdy-container div.extra_content").css({"float":"left","clear":"right","width":"300px","margin-top":"0px","margin-left":"4px"});setInterval("fsiDynamicAdsReload()",30000);});}if(fscUrl.indexOf("laliga/scores")!=-1||fscUrl.indexOf("championsleague/scores")!=-1||fscUrl.indexOf("libertadores/scores")!=-1||fscUrl.indexOf("copasudamericana/scores")!=-1||fscUrl.indexOf("europaleague/scores")!=-1||fscUrl.indexOf("premierleague/scores")!=-1||fscUrl.indexOf("seriea/scores")!=-1||fscUrl.indexOf("bundesliga/scores")!=-1||fscUrl.indexOf("eredivisie/scores")!=-1||fscUrl.indexOf("ligue1/scores")!=-1||fscUrl.indexOf("jupilerleague/scores")!=-1||fscUrl.indexOf("scottishpremierleague/scores")!=-1||fscUrl.indexOf("mexico/scores")!=-1||fscUrl.indexOf("mls/scores")!=-1||fscUrl.indexOf("euro2012qualifying/scores")!=-1||fscUrl.indexOf("facup/scores")!=-1||fscUrl.indexOf("englishleague1/scores")!=-1||fscUrl.indexOf("englishchampionship/scores")!=-1||fscUrl.indexOf("englishleague2/scores")!=-1||fscUrl.indexOf("goldcup/scores")!=-1||fscUrl.indexOf("womensworldcup/scores")!=-1||fscUrl.indexOf("copaamerica/scores")!=-1||fscUrl.indexOf("eurocup/scores")!=-1||fscUrl.indexOf("leaguecup/scores")!=-1){$(document).ready(function(){setInterval("fsiStatsIncScoresAutoRefreshWrapper()",60000);
});}if(fscUrl.indexOf("argentina/scores")!=-1||fscUrl.indexOf("bolivia/scores")!=-1||fscUrl.indexOf("chile/scores")!=-1||fscUrl.indexOf("colombia/scores")!=-1||fscUrl.indexOf("ecuador/scores")!=-1||fscUrl.indexOf("peru/scores")!=-1||fscUrl.indexOf("paraguay/scores")!=-1||fscUrl.indexOf("uruguay/scores")!=-1||fscUrl.indexOf("venezuela/scores")!=-1||fscUrl.indexOf("mundialclubes/scores")!=-1){$(document).ready(function(){setInterval("fsiDfactoryScoresAutoRefreshWrapper()",60000);
});}if(fscUrl.indexOf("laliga/matchStats")!=-1||fscUrl.indexOf("championsleague/matchStats")!=-1||fscUrl.indexOf("libertadores/matchStats")!=-1||fscUrl.indexOf("copasudamericana/matchStats")!=-1||fscUrl.indexOf("europaleague/matchStats")!=-1||fscUrl.indexOf("premierleague/matchStats")!=-1||fscUrl.indexOf("seriea/matchStats")!=-1||fscUrl.indexOf("bundesliga/matchStats")!=-1||fscUrl.indexOf("eredivisie/matchStats")!=-1||fscUrl.indexOf("ligue1/matchStats")!=-1||fscUrl.indexOf("jupilerleague/matchStats")!=-1||fscUrl.indexOf("scottishpremierleague/matchStats")!=-1||fscUrl.indexOf("mexico/matchStats")!=-1||fscUrl.indexOf("goldcup/matchStats")!=-1||fscUrl.indexOf("mls/matchStats")!=-1||fscUrl.indexOf("womensworldcup/matchStats")!=-1||fscUrl.indexOf("copaamerica/matchStats")!=-1||fscUrl.indexOf("eurocup/matchStats")!=-1||fscUrl.indexOf("leaguecup/matchStats")!=-1){$(document).ready(function(){setInterval("fsiStatsIncMatchStatsAutoRefreshWrapper('statsInc')",60000);
});}if(fscUrl.indexOf("/fixtures")!=-1){$(document).ready(function(){fsiScheduleAndScoresMiniCalendarInitialize();});}function fsScoreStrip(h,n){var n=n||{};var f=document.body;var a=n.info||"";var b=document.getElementById("fsSSList");var l=true;if(h=="ini"){window.console.warn("inside fsScoreStrip - ini");
if(typeof(user)!="undefined"){sportsBarUser="";for(name in user){sportsBarUser+="&"+name.toLowerCase()+"="+user[name];}}else{sportsBarUser="";}scoreStripHolder=document.getElementById("scoreStripHolder");var j=document.createElement("div");j.id="scoreStrip";var c=document.createElement("div");c.id="ad120x30_sportsbar";
var k=document.createElement("ul");k.id="fsSSList";k.title="score strip";scoreStripHolder.appendChild(j);scoreStripHolder.appendChild(c);scoreStripHolder.appendChild(k);window.console.warn("inside fsScoreStrip - added scorestrip");fsStartSSDock();window.console.warn("inside fsScoreStrip - docked scorestrip");
var g="";if(fsCurrentSport=="POKER"){g="http://www.foxsports.com";}else{g=fsReqDomain;}var m="";if(ads){for(var d=0;d<ads.length;d++){if(ads[d][4]=="toolbar"){m="rightPadding=120&";}}}launchMyFlash({contUrl:g+"/component/flash/ToolbarFSC",locId:"scoreStrip",width:"100%",height:42,flashVars:m+"gamesUrl=9240_49&domain="+g+"&currentSport="+fsCurrentSport+sportsBarUser,finish:fsAnalyticsDescription+="&sportsbar=loaded"});
if(fsIE&&document.getElementById("FS-header-slim")!=undefined){document.getElementById("scoreStrip-flash").style.styleFloat="left";document.getElementById("scoreStrip-flash").style.marginLeft="-5px";}}else{if(b){b.innerHTML="";var k=b;}for(d=0;d<a[1].length;d++){listItem=document.createElement("li");
listAnchor=document.createElement("a");switch(a[1][d][0]){case"CBK":listAnchor.title="NCAA BK";break;case"CFB":listAnchor.title="NCAA FB";break;case"PGA":listAnchor.title="GOLF";break;case"NFL_DRAFT_TRACKER":listAnchor.title="NFL";break;case"NBA_DRAFT_TRACKER":listAnchor.title="NBA";break;default:listAnchor.title=a[1][d][0];
}if(a[0]=="alert"){listAnchor.href=a[1][d][1];listAnchor.innerHTML="<strong>"+a[1][d][2]+", <span>"+a[1][d][3]+"</span></strong><br />"+a[1][d][0];listAnchor.onclick=new Function("fsAnalytics(this, {type: 'link', description: '&link_ref=sportsbar - alert - "+a[1][d][0]+"'});");}else{if(a[0]=="edit"){listAnchor.href=a[1][d][1];
listAnchor.innerHTML=a[1][d][0];listAnchor.onclick=new Function("fsAnalytics(this, {type: 'link', description: '&link_ref=sportsbar - edit - "+a[1][d][0].toLowerCase()+"'});");}else{listAnchor.href="javascript:changeScoreStrip('"+a[1][d][0]+"', '"+a[1][d][1]+"');";listAnchor.onclick=new Function("fsAnalytics(this, {type: 'link', description: '&link_ref=sportsbar - "+listAnchor.title.toLowerCase()+" - scores'});");
listAnchor.innerHTML=listAnchor.title;}}if(a[0]==listAnchor.title){listAnchor.className="on";l=false;}if(typeof(a[1][d][1])=="object"){var e=document.createElement("ul");e.id="fsSSsubList";e.title="score strip";for(s=0;s<a[1][d][1].length;s++){subListItem=document.createElement("li");subListAnchor=document.createElement("a");
subListAnchor.title=a[1][d][1][s][0];subListAnchor.href="javascript:changeScoreStrip('"+a[1][d][1][s][0]+"', '"+a[1][d][1][s][1]+"');";subListAnchor.innerHTML=a[1][d][1][s][0];subListAnchor.onclick=new Function("fsAnalytics(this, {type: 'link', description: '&link_ref=sportsbar - soccer - "+a[1][d][1][s][0].toLowerCase()+" - scores'});");
subListItem.appendChild(subListAnchor);e.appendChild(subListItem);}listItem.appendChild(e);listItem.onmouseover=function(){this.className="on";};listItem.onmouseout=function(){this.className="";};}listItem.appendChild(listAnchor);k.appendChild(listItem);}scoreStripHolder.appendChild(k);if(l==false){k.className="on";
}else{document.getElementById("fsSSList").className="fsSS"+a[0]+" on";}k.onmouseout=function(){var i=fsCheckEvent(this);if(i){i[0].className=i[0].className.replace("on","");document.getElementById("scoreStrip-flash").menuRollOut();}};}}function showPopup(a){if(popUpTimer){clearTimeout(popUpTimer);}popUpTimer=setTimeout(function(){$("#"+a).show();
},2000);}function hidePopup(a){clearTimeout(popUpTimer);popUpTimer=setTimeout(function(){$("#"+a).hide();},1000);}$(document).ready(function(){FsApps.highlightSubNav();});


function getCookie(d){var c=document.cookie;var a=c.indexOf(d);if(a!=-1){var f=a+d.length+1;var b=c.indexOf(";",f);if(b==-1){b=c.length;}var e=c.substring(f,b);return unescape(e);}else{return null;}}var scoreboardCookie=getCookie("expandedGameIds");var expandedIds=(scoreboardCookie==null||scoreboardCookie=="")?new Array():scoreboardCookie.split("|");
var nextYear=new Date();nextYear.setFullYear(nextYear.getFullYear()+1);Array.prototype.contains=function(b){for(var a=0;a<this.length;++a){if(this[a]==b){return true;}}return false;};function expandStats(c,d){var b=document.getElementById(c+"_expand");var a=document.getElementById(c+"_togglelink");if(b&&a){b.style.display="block";
if(d=="en"){a.innerHTML="Close -";}else{a.innerHTML="Cerrar -";}if(!expandedIds.contains(c)){expandedIds.push(c);document.cookie="expandedGameIds="+expandedIds.join("|")+";";}}}function collapseStats(d,e){var b=document.getElementById(d+"_expand");var a=document.getElementById(d+"_togglelink");if(b&&a){b.style.display="none";
if(e=="en"){a.innerHTML="Expand +";}else{a.innerHTML="Expandir +";}if(expandedIds.contains(d)){for(var c=0;c<expandedIds.length;++c){if(expandedIds[c]==d){expandedIds.splice(c,1);}}document.cookie="expandedGameIds="+expandedIds.join("|")+";";}}}function toggleStats(b,c){var a=document.getElementById(b+"_expand");
if(a){if(a.style.display=="none"){expandStats(b,c);}else{collapseStats(b,c);}}}


function fsiDynamicAdsReload(){var b=window.location.href;var a=fsiSiteDetection(b);fsAnalytics(this,{type:"keepAlive",description:b,pageView:true});if(a=="foxsoccer"){fsLoadAds();}else{if(a=="fse"||a=="fsla"||a=="fslasc"){if(fpasSiteId=="20029"){_gaq.push(["_trackPageview"]);fsLoadAds();}else{document.epl.refreshAdsM();
}}}}function fsiSiteDetection(b){var a="";if(b.indexOf("foxsoccer")!=-1||b.indexOf("fsc")!=-1){a="foxsoccer";}else{if(b.indexOf("fse")!=-1){a="fse";}else{if(b.indexOf("fsla")!=-1){a="fsla";}else{if(b.indexOf("fslasc")!=-1){a="fslasc";}else{a="foxsoccer";}}}}return a;}


function getXmlHttpObject(){var f=null;try{f=new XMLHttpRequest;}catch(e){try{f=new ActiveXObject("Msxml2.XMLHTTP");}catch(h){try{f=new ActiveXObject("Microsoft.XMLHTTP");}catch(g){return false;}}}return f;}


function fsiStatsIncScoresAutoRefreshWrapper(){if(typeof(fsiScoresGlobalInfo)!="undefined"){_fsiAutoRefreshScores("statsInc");fsiDynamicAdsReload();}else{fsiDynamicAdsReload();}}function fsiDfactoryScoresAutoRefreshWrapper(){if(typeof(fsiScoresGlobalInfo)!="undefined"){_fsiAutoRefreshScores("dfactory");
fsiDynamicAdsReload();}else{fsiDynamicAdsReload();}}function _fsiAutoRefreshScores(provider){var nuggetId="";var params="";(provider=="statsInc")?nuggetId="26604":nuggetId="26605";var xmlHttp;xmlHttp=getXmlHttpObject();var tempURL;var isVer2="true";if(isVer2=="true"){tempURL="/nuggetv2/"+nuggetId;}else{tempURL="/nugget/"+nuggetId;
}if(provider=="statsInc"){params="_"+fsiScoresGlobalInfo.categoryId+"_"+fsiScoresGlobalInfo.site+"_"+fsiScoresGlobalInfo.lang+"_"+fsiScoresGlobalInfo.timeOffset;}else{if(provider=="dfactory"){params="_"+fsiScoresGlobalInfo.site+"_"+fsiScoresGlobalInfo.league+"_"+fsiScoresGlobalInfo.lang+"_"+fsiScoresGlobalInfo.timeOffset;
}}var url=tempURL+params;xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4){var htmlResult=eval("("+xmlHttp.responseText.replace(/[\r\n]+/g,"")+")");var totalGames=htmlResult.games.length;if(totalGames!=0){for(i=0;i<totalGames;i++){var thisGameData=htmlResult.games[i];var thisGameId=thisGameData.gameId;
var thisGameStatus=thisGameData.gameStatus.toLowerCase()||"";var thisGameTime=thisGameData.gameTime||"";var thisGameHomeScore=thisGameData.homeScore||"";var thisGameVisitorScore=thisGameData.visitorScore||"";var thisGameGameCurrentMinute=thisGameData.currentMinute||"";var thisGameHomeGoals=thisGameData.scoredGoals[0]||"";
var thisGameAwayGoals=thisGameData.scoredGoals[1]||"";var thisGameHomeYellowCards=thisGameData.yellowCards[0]||"";var thisGameAwayYellowCards=thisGameData.yellowCards[1]||"";var thisGameHomeRedCards=thisGameData.redCards[0]||"";var thisGameAwayRedCards=thisGameData.redCards[1]||"";var thisGameHomeTeamSubstitutions=thisGameData.substitutions[0]||"";
var thisGameAwayTeamSubstitutions=thisGameData.substitutions[1]||"";if(thisGameStatus=="in-progress"||(thisGameStatus=="half-over"&&thisGameGameCurrentMinute!="45")||(thisGameStatus=="half"&&thisGameGameCurrentMinute!="45")){document.getElementById(thisGameId+"-fsiScoresDataBoxId").innerHTML="<div class='fsiScoresResultData'>"+thisGameHomeScore+" : "+thisGameVisitorScore+"</div>"+"<div class='fsiScoresGameStatusData'>"+thisGameGameCurrentMinute+"' "+"</div>";
}else{if((thisGameStatus=="half-over"||thisGameStatus=="half")&&thisGameGameCurrentMinute=="45"){var gameStatus=fsiFutbolAjaxDictionary("scoresHalfTimeText",fsiScoresGlobalInfo.lang);document.getElementById(thisGameId+"-fsiScoresDataBoxId").innerHTML="<div class='fsiScoresResultData'>"+thisGameHomeScore+" : "+thisGameVisitorScore+"</div>"+"<div class='fsiScoresGameStatusData'>"+gameStatus+"</div>";
}else{if(thisGameStatus=="pre-game"){document.getElementById(thisGameId+"-fsiScoresDataBoxId").innerHTML="<div class='fsiScoresGameTime'>"+thisGameTime+"</div>";}else{if(thisGameStatus=="final"){var gameStatus=fsiFutbolAjaxDictionary("scoresfinalText",fsiScoresGlobalInfo.lang);document.getElementById(thisGameId+"-fsiScoresDataBoxId").innerHTML="<div class='fsiScoresResultData'>"+thisGameHomeScore+" : "+thisGameVisitorScore+"</div>"+"<div class='fsiScoresGameStatusData'>"+gameStatus+"</div>";
}else{if(thisGameStatus=="postponed"||thisGameStatus=="delayed"||thisGameStatus=="cancelled"){var gameStatus=fsiFutbolAjaxDictionary("scores"+thisGameStatus+"Text",fsiScoresGlobalInfo.lang);document.getElementById(thisGameId+"-fsiScoresDataBoxId").innerHTML="<div class='fsiScoresGameStatusData'>"+gameStatus+"</div>";
}}}}}if(thisGameHomeScore!="n/a"&&thisGameHomeScore!="0"&&thisGameHomeScore!=""){var totalHomeGoals=thisGameHomeGoals.homeTeam.length||0;var homeGoalScores="";for(j=0;j<totalHomeGoals;j++){var thisGoalScoreMinute=thisGameHomeGoals.homeTeam[j].minute||"";var thisGoalScorer=thisGameHomeGoals.homeTeam[j].player||"";
var thisGoalTypeImg=thisGameHomeGoals.homeTeam[j].goalTypeImg||"goal";homeGoalScores+="<img src='/fe/fsi/img/futbol/misc/"+thisGoalTypeImg+".gif' title='Goal' border='0' align='absmiddle' />&nbsp;";homeGoalScores+="<span class='fsiScoresMinuteText'>("+thisGoalScoreMinute+"')</span>&nbsp;";homeGoalScores+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisGoalScorer+"</span><br/>";
}document.getElementById("fsi-"+thisGameId+"-HomeTeamGoals").innerHTML=homeGoalScores;}if(thisGameVisitorScore!="n/a"&&thisGameVisitorScore!="0"&&thisGameVisitorScore!=""){var totalAwayGoals=thisGameAwayGoals.awayTeam.length||0;var awayGoalScores="";for(k=0;k<totalAwayGoals;k++){var thisGoalScoreMinute=thisGameAwayGoals.awayTeam[k].minute||"";
var thisGoalScorer=thisGameAwayGoals.awayTeam[k].player||"";var thisGoalTypeImg=thisGameAwayGoals.awayTeam[k].goalTypeImg||"goal";awayGoalScores+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisGoalScorer+"</span>&nbsp;";awayGoalScores+="<span class='fsiScoresMinuteText'>("+thisGoalScoreMinute+"')</span>&nbsp;";
awayGoalScores+="<img src='/fe/fsi/img/futbol/misc/"+thisGoalTypeImg+".gif' title='Goal' border='0' align='absmiddle' /><br/>";}document.getElementById("fsi-"+thisGameId+"-AwayTeamGoals").innerHTML=awayGoalScores;}var homeYellowCards="";var homeRedCards="";if(thisGameHomeYellowCards.homeTeam!="0"){var totalHomeYellowCards=thisGameHomeYellowCards.homeTeam.length||0;
for(l=0;l<totalHomeYellowCards;l++){var thisYellowCardMinute=thisGameHomeYellowCards.homeTeam[l].minute||"";var thisYellowCardPlayer=thisGameHomeYellowCards.homeTeam[l].player||"";homeYellowCards+="<img src='/fe/fsi/img/futbol/misc/yellow-card.gif' title='' border='0' align='absmiddle' />&nbsp;";homeYellowCards+="<span class='fsiScoresMinuteText'>("+thisYellowCardMinute+"')</span>&nbsp;";
homeYellowCards+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisYellowCardPlayer+"</span><br/>";}}if(thisGameHomeRedCards.homeTeam!="0"){var totalHomeRedCards=thisGameHomeRedCards.homeTeam.length||0;for(m=0;m<totalHomeRedCards;m++){var thisRedCardMinute=thisGameHomeRedCards.homeTeam[m].minute||"";
var thisRedCardPlayer=thisGameHomeRedCards.homeTeam[m].player||"";homeRedCards+="<img src='/fe/fsi/img/futbol/misc/red-card.gif' title='' border='0' align='absmiddle' />&nbsp;";homeRedCards+="<span class='fsiScoresMinuteText'>("+thisRedCardMinute+"')</span>&nbsp;";homeRedCards+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisRedCardPlayer+"</span><br/>";
}}document.getElementById("fsi-"+thisGameId+"-HomeTeamCards").innerHTML=homeYellowCards+homeRedCards;var awayYellowCards="";var awayRedCards="";if(thisGameAwayYellowCards.awayTeam!="0"){var totalAwayYellowCards=thisGameAwayYellowCards.awayTeam.length||0;for(n=0;n<totalAwayYellowCards;n++){var thisYellowCardMinute=thisGameAwayYellowCards.awayTeam[n].minute||"";
var thisYellowCardPlayer=thisGameAwayYellowCards.awayTeam[n].player||"";awayYellowCards+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisYellowCardPlayer+"</span>&nbsp;";awayYellowCards+="<span class='fsiScoresMinuteText'>("+thisYellowCardMinute+"')</span>&nbsp;";awayYellowCards+="<img src='/fe/fsi/img/futbol/misc/yellow-card.gif' title='' border='0' align='absmiddle' /><br/>";
}}if(thisGameAwayRedCards.awayTeam!="0"){var totalAwayRedCards=thisGameAwayRedCards.awayTeam.length||0;for(p=0;p<totalAwayRedCards;p++){var thisRedCardMinute=thisGameAwayRedCards.awayTeam[p].minute||"";var thisRedCardPlayer=thisGameAwayRedCards.awayTeam[p].player||"";awayRedCards+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisRedCardPlayer+"</span>&nbsp;";
awayRedCards+="<span class='fsiScoresMinuteText'>("+thisRedCardMinute+"')</span>&nbsp;";awayRedCards+="<img src='/fe/fsi/img/futbol/misc/red-card.gif' title='' border='0' align='absmiddle' /><br/>";}}document.getElementById("fsi-"+thisGameId+"-AwayTeamCards").innerHTML=awayYellowCards+awayRedCards;var homeSubstitutions="";
if(thisGameHomeTeamSubstitutions.homeTeam!="0"){var totalHomeSubstitutions=thisGameHomeTeamSubstitutions.homeTeam.length||0;for(q=0;q<totalHomeSubstitutions;q++){var thisSubstitutionMinute=thisGameHomeTeamSubstitutions.homeTeam[q].minute||"";var thisSubstitutionInPlayer=thisGameHomeTeamSubstitutions.homeTeam[q].inPlayer||"";
var thisSubstitutionOutPlayer=thisGameHomeTeamSubstitutions.homeTeam[q].outPlayer||"";homeSubstitutions+="<img src='/fe/fsi/img/futbol/misc/greenArrow.gif' title='' border='0' align='absmiddle' />&nbsp;";homeSubstitutions+="<span class='fsiScoresMinuteText'>("+thisSubstitutionMinute+"')</span>&nbsp;";
homeSubstitutions+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisSubstitutionInPlayer+"</span><br/>";homeSubstitutions+="<img src='/fe/fsi/img/futbol/misc/redArrow.gif' title='' border='0' align='absmiddle' />&nbsp;";homeSubstitutions+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisSubstitutionOutPlayer+"</span><br/><br/>";
}}document.getElementById("fsi-"+thisGameId+"-HomeTeamSubstitutions").innerHTML=homeSubstitutions;var awaySubstitutions="";if(thisGameAwayTeamSubstitutions.awayTeam!="0"){var totalAwaySubstitutions=thisGameAwayTeamSubstitutions.awayTeam.length||0;for(r=0;r<totalAwaySubstitutions;r++){var thisSubstitutionMinute=thisGameAwayTeamSubstitutions.awayTeam[r].minute||"";
var thisSubstitutionInPlayer=thisGameAwayTeamSubstitutions.awayTeam[r].inPlayer||"";var thisSubstitutionOutPlayer=thisGameAwayTeamSubstitutions.awayTeam[r].outPlayer||"";awaySubstitutions+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisSubstitutionInPlayer+"</span>&nbsp;";awaySubstitutions+="<span class='fsiScoresMinuteText'>("+thisSubstitutionMinute+"')</span>&nbsp;";
awaySubstitutions+="<img src='/fe/fsi/img/futbol/misc/greenArrow.gif' title='' border='0' align='absmiddle' /><br/>";awaySubstitutions+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisSubstitutionOutPlayer+"</span>&nbsp;";awaySubstitutions+="<img src='/fe/fsi/img/futbol/misc/redArrow.gif' title='' border='0' align='absmiddle' /><br/><br/>";
}}document.getElementById("fsi-"+thisGameId+"-AwayTeamSubstitutions").innerHTML=awaySubstitutions;}}}};xmlHttp.open("GET",url,true);xmlHttp.send(null);}function _debugScoresAutoRefresh(){console.log("fsiScoresGlobalInfo.categoryId= "+fsiScoresGlobalInfo.categoryId+"\n"+"fsiScoresGlobalInfo.site= "+fsiScoresGlobalInfo.site+"\n"+"fsiScoresGlobalInfo.lang= "+fsiScoresGlobalInfo.lang+"\n"+"fsiScoresGlobalInfo.timeOffset= "+fsiScoresGlobalInfo.timeOffset);
}


function fsiFutbolAjaxDictionary(b,d){var a="";var c=d||"en";if(c=="es"){if(b=="scoresfinalText"){a="Final";}else{if(b=="scorespostponedText"){a="Postergado";}else{if(b=="scoresdelayedText"){a="Retrasado";}else{if(b=="scoresSuspendedText"){a="Suspendido";}else{if(b=="scorescancelledText"){a="Cancelado";
}else{if(b=="scoresshootoutText"){a="Tiros de Penal";}else{if(b=="scoresHalfTimeText"){a="MEDIO TIEMPO";}}}}}}}}else{if(b=="scoresfinalText"){a="Final";}else{if(b=="scorespostponedText"){a="Postponed";}else{if(b=="scoresSuspendedText"){a="Suspended";}else{if(b=="scoresdelayedText"){a="Delayed";}else{if(b=="scorescancelledText"){a="Cancelled";
}else{if(b=="scoresshootoutText"){a="Shootout";}else{if(b=="scoresHalfTimeText"){a="HALF TIME";}}}}}}}}return a;}


function fsiMiniStandingsSwitchTabs(){if(fsiMiniStandingsObject.displayingTab=="fsiMiniStandings1-5Tabs"){document.getElementById("fsiMiniStandings1-5Tabs").style.display="none";document.getElementById("fsiMiniStandings6-10Tabs").style.display="block";fsiMiniStandingsObject.displayingTab="fsiMiniStandings6-10Tabs";
}else{if(fsiMiniStandingsObject.displayingTab=="fsiMiniStandings6-10Tabs"){document.getElementById("fsiMiniStandings1-5Tabs").style.display="block";document.getElementById("fsiMiniStandings6-10Tabs").style.display="none";fsiMiniStandingsObject.displayingTab="fsiMiniStandings1-5Tabs";}}}function fsiMiniStandingsNewTabContent(d,c){if(d!=fsiMiniStandingsObject.league){var a;
a=getXmlHttpObject();var e="/nuggetv2/26129";var f="_"+fsiMiniStandingsObject.site+"_"+fsiMiniStandingsObject.lang+"_ajaxRequest_"+d;var b=e+f;fsiMiniStandingsObject.league=d;$("div[id^='fsiMiniStandingsTab-']").removeClass("fsiMiniStandingsActiveTab").addClass("fsiMiniStandingsTabHolder");$("#fsiMiniStandingsTab-"+d).addClass("fsiMiniStandingsActiveTab");
fsiMiniStandingsUpdateStandingsLink();a.onreadystatechange=function(){if(a.readyState==4){var g=a.responseText;document.getElementById("fsiMiniStandingsAjaxContent").innerHTML=g;}};a.open("GET",b,true);a.send(null);if(c=="initialLoad"){fsiMiniStandingsAnalytics();}}}function fsiMiniStandingsDisplayMoreGroups(b,a,c){if(b=="mexico"){for(i=1;
i<4;i++){document.getElementById("miniStandingsMexico-"+i).style.display="none";document.getElementById("miniStandingsGroupsLink-"+i).className="fsiMiniStandingsExtraLinksPassive";}document.getElementById("miniStandingsMexico-"+a[0]).style.display="block";document.getElementById("miniStandingsGroupsLink-"+a[0]).className="fsiMiniStandingsExtraLinksActive";
}else{if(b=="womensworldcup"){for(i=1;i<4;i++){document.getElementById("miniStandingsTournament-"+i).style.display="none";}for(j=0;j<a.length;j++){document.getElementById("miniStandingsTournament-"+a[j]).style.display="block";}document.getElementById("miniStandingsGroupsLink-WWC1").className="fsiMiniStandingsExtraLinksPassive";
document.getElementById("miniStandingsGroupsLink-WWC2").className="fsiMiniStandingsExtraLinksPassive";document.getElementById("miniStandingsGroupsLink-"+c).className="fsiMiniStandingsExtraLinksActive";}else{if(b=="championsleague"){for(i=1;i<9;i++){document.getElementById("miniStandingsTournament-"+i).style.display="none";
}for(j=0;j<a.length;j++){document.getElementById("miniStandingsTournament-"+a[j]).style.display="block";}document.getElementById("miniStandingsGroupsLink-AB").className="fsiMiniStandingsExtraLinksPassive";document.getElementById("miniStandingsGroupsLink-CD").className="fsiMiniStandingsExtraLinksPassive";
document.getElementById("miniStandingsGroupsLink-EF").className="fsiMiniStandingsExtraLinksPassive";document.getElementById("miniStandingsGroupsLink-GH").className="fsiMiniStandingsExtraLinksPassive";document.getElementById("miniStandingsGroupsLink-"+c).className="fsiMiniStandingsExtraLinksActive";}else{if(b=="libertadores"){for(i=1;
i<9;i++){document.getElementById("miniStandingsTournament-"+i).style.display="none";}for(j=0;j<a.length;j++){document.getElementById("miniStandingsTournament-"+a[j]).style.display="block";}document.getElementById("miniStandingsGroupsLink-12").className="fsiMiniStandingsExtraLinksPassive";document.getElementById("miniStandingsGroupsLink-34").className="fsiMiniStandingsExtraLinksPassive";
document.getElementById("miniStandingsGroupsLink-56").className="fsiMiniStandingsExtraLinksPassive";document.getElementById("miniStandingsGroupsLink-78").className="fsiMiniStandingsExtraLinksPassive";document.getElementById("miniStandingsGroupsLink-"+c).className="fsiMiniStandingsExtraLinksActive";}else{if(b=="euro2012qualifying"||b=="europaleague"){for(i=1;
i<10;i++){document.getElementById("miniStandingsTournament-"+i).style.display="none";}for(j=0;j<a.length;j++){document.getElementById("miniStandingsTournament-"+a[j]).style.display="block";}document.getElementById("miniStandingsGroupsLink-ABC").className="fsiMiniStandingsExtraLinksPassive";document.getElementById("miniStandingsGroupsLink-DEF").className="fsiMiniStandingsExtraLinksPassive";
document.getElementById("miniStandingsGroupsLink-GHI").className="fsiMiniStandingsExtraLinksPassive";document.getElementById("miniStandingsGroupsLink-"+c).className="fsiMiniStandingsExtraLinksActive";}}}}}fsiMiniStandingsAnalytics();}function fsiMiniStandingsUpdateStandingsLink(){var c="";(fsiMiniStandingsObject.lang=="es")?c="Tabla Completa":c="Full Standings";
var b="/"+fsiMiniStandingsObject.site+"/"+fsiMiniStandingsObject.league+"/standings";var a="<a href='"+b+"' class='fsiStandingsDictionaryLink'>"+c+"&nbsp;&raquo;</a>";$("div.fsiMiniStandingsLinkWrapper").html(a);}function fsiMiniStandingsUpdateTabsExtension(a){document.getElementById("fsiMiniStandings1-5Tabs").style.display="none";
document.getElementById("fsiMiniStandings6-10Tabs").style.display="none";$("#fsiMiniStandingsTab-"+a).parent().css("display","block");var b=$("#fsiMiniStandingsTab-"+a).parent().attr("id");fsiMiniStandingsObject.displayingTab=b;fsiMiniStandingsNewTabContent(a,"ajaxLoad");}function fsiMiniStandingsAnalytics(){fsiMiniStandingsAnalyticsDescription=fsiMiniStandingsObject.site+" Mini Standings Module";
fsAnalytics(this,{type:"link",description:"fsc standings - "+fsiMiniStandingsObject.league});}


function fsiStatsIncMatchStatsAutoRefreshWrapper(a){if((fsiMatchStatsGlobalInfo.initialLoadGameStatus).toLowerCase()=="final"||(fsiMatchStatsGlobalInfo.initialLoadGameStatus).toLowerCase()=="finalizado"){fsiDynamicAdsReload();}else{_fsiMatchStatsProviderSelector(a);fsiDynamicAdsReload();}}function _fsiMatchStatsProviderSelector(a){if(a=="statsInc"){_fsiAutoRefreshMatchStatsStatsInc();
}else{if(a=="dfactory"){_fsiAutoRefreshMatchStatsDfactory();}}}function _fsiAutoRefreshMatchStatsStatsInc(){var xmlHttp;xmlHttp=getXmlHttpObject();var tempURL;var isVer2="true";if(isVer2=="true"){tempURL="/nuggetv2/26606";}else{tempURL="/nugget/26606";}var params="_"+fsiMatchStatsGlobalInfo.categoryId+"_"+fsiMatchStatsGlobalInfo.gameId+"_"+fsiMatchStatsGlobalInfo.site+"_"+fsiMatchStatsGlobalInfo.league+"_"+fsiMatchStatsGlobalInfo.timeOffset+"_"+fsiMatchStatsGlobalInfo.lang;
var url=tempURL+params;xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4){var htmlResult=eval("("+xmlHttp.responseText.replace(/[\r\n]+/g,"")+")");var thisGameId=htmlResult.gameId||"";var thisGameStatus=(htmlResult.gameStatus).toLowerCase()||"";var thisGameTime=htmlResult.gameTime||"";var thisGameCurrentMinute=htmlResult.currentMinute||"";
var thisGameHomeScore=htmlResult.homeScore||"";var thisGameHomeGoals=htmlResult.scoredGoals[0]||"";var thisGameAwayScore=htmlResult.visitorScore||"";var thisGameAwayGoals=htmlResult.scoredGoals[1]||"";var thisGameHomeCards=htmlResult.yellowRedCards[0]||"";var thisGameAwayCards=htmlResult.yellowRedCards[1]||"";
var thisGameHomeTeamSubstitutions=htmlResult.substitutions[0]||"";var thisGameAwayTeamSubstitutions=htmlResult.substitutions[1]||"";var thisGameHomeTeamPenaltyScore=htmlResult.homeTeamPenaltyScore||"";if(thisGameHomeTeamPenaltyScore!="n/a"){var thisGameHomeTeamPenaltyGoals=htmlResult.penaltyGoals[0]||"";
}var thisGameAwayTeamPenaltyScore=htmlResult.awayTeamPenaltyScore||"";if(thisGameAwayTeamPenaltyScore!="n/a"){var thisGameAwayTeamPenaltyGoals=htmlResult.penaltyGoals[1]||"";}var thisGameBoxscore="";var scoresResultDivHeight="height:18px";if(thisGameStatus=="pre-game"){scoresResultDivHeight="height:10px";
}thisGameBoxscore+="<div class='fsiScoresResultData' style='"+scoresResultDivHeight+"'>";if(thisGameStatus!="pre-game"){if(thisGameHomeTeamPenaltyScore!="n/a"&&thisGameAwayTeamPenaltyScore!="n/a"){thisGameBoxscore+="<span class='fsiLeagueFrontSubHeader' style='font-size:17px;'>";thisGameBoxscore+="("+thisGameHomeTeamPenaltyScore+")";
thisGameBoxscore+="</span>";thisGameBoxscore+="<span>";thisGameBoxscore+=thisGameHomeScore+" : "+thisGameAwayScore;thisGameBoxscore+="</span>";thisGameBoxscore+="<span class='fsiLeagueFrontSubHeader' style='font-size:17px;'>";thisGameBoxscore+="("+thisGameAwayTeamPenaltyScore+")";thisGameBoxscore+="</span>";
}else{thisGameBoxscore+=thisGameHomeScore+" : "+thisGameAwayScore;}}thisGameBoxscore+="</div>";thisGameBoxscore+="<div class='fsiScoresGameStatusData'>";if(thisGameStatus=="pre-game"){thisGameBoxscore+=thisGameTime;}if(thisGameStatus=="final"){var gameStatusFinalText=fsiFutbolAjaxDictionary("scoresfinalText",fsiMatchStatsGlobalInfo.lang);
var shootoutText=fsiFutbolAjaxDictionary("scoresshootoutText",fsiMatchStatsGlobalInfo.lang);thisGameBoxscore+=gameStatusFinalText;if(thisGameHomeTeamPenaltyScore!="n/a"&&thisGameAwayTeamPenaltyScore!="n/a"){thisGameBoxscore+=" - "+shootoutText;}}else{if(thisGameStatus=="postponed"||thisGameStatus=="delayed"||thisGameStatus=="cancelled"){var gameStatusText=fsiFutbolAjaxDictionary("scores"+thisGameStatus+"Text",fsiMatchStatsGlobalInfo.lang);
thisGameBoxscore+=gameStatusText;}else{if((thisGameStatus=="half-over"||thisGameStatus=="half")&&thisGameCurrentMinute=="45"){var gameStatusText=fsiFutbolAjaxDictionary("scoresHalfTimeText",fsiMatchStatsGlobalInfo.lang);thisGameBoxscore+=gameStatusText;}else{if(thisGameCurrentMinute!=""&&thisGameCurrentMinute!="n/a"){thisGameBoxscore+=thisGameCurrentMinute;
}}}}thisGameBoxscore+="</div>";if(document.getElementById(thisGameId+"-fsiScoresDataBoxId")){document.getElementById(thisGameId+"-fsiScoresDataBoxId").innerHTML=thisGameBoxscore;}if(thisGameHomeScore!="n/a"&&thisGameHomeScore!=""){var totalHomeGoals=thisGameHomeGoals.homeTeam.length||0;var homeGoalScores="";
for(j=0;j<totalHomeGoals;j++){var thisGoalScoreMinute=thisGameHomeGoals.homeTeam[j].minute||"";var thisGoalScorer=thisGameHomeGoals.homeTeam[j].player||"";var thisGoalTypeImg=thisGameHomeGoals.homeTeam[j].goalTypeImg||"goal";var thisGoalTypeImgText=thisGameHomeGoals.homeTeam[j].goalImgDescription||"Goal";
homeGoalScores+="<img src='/fe/fsi/img/futbol/misc/"+thisGoalTypeImg+".gif' border='0' align='absmiddle' title='"+thisGoalTypeImgText+"'/>&nbsp;";homeGoalScores+="<span class='fsiScoresMinuteText'>"+thisGoalScoreMinute+"</span>&nbsp;";homeGoalScores+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisGoalScorer+"</span><br/>";
}if(document.getElementById("fsi-"+thisGameId+"-HomeTeamGoals")){document.getElementById("fsi-"+thisGameId+"-HomeTeamGoals").innerHTML=homeGoalScores;}}if(thisGameAwayScore!="n/a"&&thisGameAwayScore!=""){var totalAwayGoals=thisGameAwayGoals.awayTeam.length||0;var awayGoalScores="";for(k=0;k<totalAwayGoals;
k++){var thisGoalScoreMinute=thisGameAwayGoals.awayTeam[k].minute||"";var thisGoalScorer=thisGameAwayGoals.awayTeam[k].player||"";var thisGoalTypeImg=thisGameAwayGoals.awayTeam[k].goalTypeImg||"goal";var thisGoalTypeImgText=thisGameAwayGoals.awayTeam[k].goalImgDescription||"Goal";awayGoalScores+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisGoalScorer+"</span>&nbsp;";
awayGoalScores+="<span class='fsiScoresMinuteText'>"+thisGoalScoreMinute+"</span>&nbsp;";awayGoalScores+="<img src='/fe/fsi/img/futbol/misc/"+thisGoalTypeImg+".gif' border='0' align='absmiddle' title='"+thisGoalTypeImgText+"'/><br/>";}if(document.getElementById("fsi-"+thisGameId+"-AwayTeamGoals")){document.getElementById("fsi-"+thisGameId+"-AwayTeamGoals").innerHTML=awayGoalScores;
}}if(thisGameHomeCards.homeTeam!="0"&&thisGameHomeCards.homeTeam!=""){var totalHomeCards=thisGameHomeCards.homeTeam.length||0;var homeCards="";for(l=0;l<totalHomeCards;l++){var thisCardMinute=thisGameHomeCards.homeTeam[l].minute||"";var thisCardPlayer=thisGameHomeCards.homeTeam[l].player||"";var thisCardImage=thisGameHomeCards.homeTeam[l].cardImage||"";
homeCards+="<img src='/fe/fsi/img/futbol/misc/"+thisCardImage+".gif' title='' border='0' align='absmiddle' />&nbsp;";homeCards+="<span class='fsiScoresMinuteText'>"+thisCardMinute+"</span>&nbsp;";homeCards+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisCardPlayer+"</span><br/>";}if(document.getElementById("fsi-"+thisGameId+"-HomeTeamCards")){document.getElementById("fsi-"+thisGameId+"-HomeTeamCards").innerHTML=homeCards;
}}if(thisGameAwayCards.awayTeam!="0"&&thisGameAwayCards.awayTeam!=""){var totalAwayCards=thisGameAwayCards.awayTeam.length||0;var awayCards="";for(m=0;m<totalAwayCards;m++){var thisCardMinute=thisGameAwayCards.awayTeam[m].minute||"";var thisCardPlayer=thisGameAwayCards.awayTeam[m].player||"";var thisCardImage=thisGameAwayCards.awayTeam[m].cardImage||"";
awayCards+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisCardPlayer+"</span>&nbsp;";awayCards+="<span class='fsiScoresMinuteText'>"+thisCardMinute+"</span>&nbsp;";awayCards+="<img src='/fe/fsi/img/futbol/misc/"+thisCardImage+".gif' title='' border='0' align='absmiddle' /><br/>";}if(document.getElementById("fsi-"+thisGameId+"-AwayTeamCards")){document.getElementById("fsi-"+thisGameId+"-AwayTeamCards").innerHTML=awayCards;
}}if(thisGameHomeTeamSubstitutions.homeTeam!="0"&&thisGameHomeTeamSubstitutions.homeTeam!=""){var totalHomeSubs=thisGameHomeTeamSubstitutions.homeTeam.length||0;var homeSubs="";for(n=0;n<totalHomeSubs;n++){var thisSubstitutionMinute=thisGameHomeTeamSubstitutions.homeTeam[n].minute||"";var thisSubstitutionInPlayer=thisGameHomeTeamSubstitutions.homeTeam[n].playerIn||"";
var thisSubstitutionOutPlayer=thisGameHomeTeamSubstitutions.homeTeam[n].playerOut||"";homeSubs+="<img src='/fe/fsi/img/futbol/misc/greenArrow.gif' title='' border='0' align='absmiddle' />&nbsp;";homeSubs+="<span class='fsiScoresMinuteText'>"+thisSubstitutionMinute+"</span>&nbsp;";homeSubs+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisSubstitutionInPlayer+"</span><br/>";
homeSubs+="<img src='/fe/fsi/img/futbol/misc/redArrow.gif' title='' border='0' align='absmiddle' />&nbsp;";homeSubs+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisSubstitutionOutPlayer+"</span><br/><br/>";}if(document.getElementById("fsi-"+thisGameId+"-HomeTeamSubstitutions")){document.getElementById("fsi-"+thisGameId+"-HomeTeamSubstitutions").innerHTML=homeSubs;
}}if(thisGameAwayTeamSubstitutions.awayTeam!="0"&&thisGameAwayTeamSubstitutions.awayTeam!=""){var totalAwaySubs=thisGameAwayTeamSubstitutions.awayTeam.length||0;var awaySubs="";for(t=0;t<totalAwaySubs;t++){var thisSubstitutionMinute=thisGameAwayTeamSubstitutions.awayTeam[t].minute||"";var thisSubstitutionInPlayer=thisGameAwayTeamSubstitutions.awayTeam[t].playerIn||"";
var thisSubstitutionOutPlayer=thisGameAwayTeamSubstitutions.awayTeam[t].playerOut||"";awaySubs+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisSubstitutionInPlayer+"</span>&nbsp;";awaySubs+="<span class='fsiScoresMinuteText'>"+thisSubstitutionMinute+"</span>&nbsp;";awaySubs+="<img src='/fe/fsi/img/futbol/misc/greenArrow.gif' title='' border='0' align='absmiddle' /><br/>";
awaySubs+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisSubstitutionOutPlayer+"</span>&nbsp;";awaySubs+="<img src='/fe/fsi/img/futbol/misc/redArrow.gif' title='' border='0' align='absmiddle' /><br/><br/>";}if(document.getElementById("fsi-"+thisGameId+"-AwayTeamSubstitutions")){document.getElementById("fsi-"+thisGameId+"-AwayTeamSubstitutions").innerHTML=awaySubs;
}}if(thisGameHomeTeamPenaltyScore!="n/a"){if(thisGameHomeTeamPenaltyGoals.homeTeam!="0"&&thisGameHomeTeamPenaltyGoals.homeTeam!=""){var totalHomePenalties=thisGameHomeTeamPenaltyGoals.homeTeam.length||0;var homePenalties="";for(f=0;f<totalHomePenalties;f++){var thisPenaltyImage=thisGameHomeTeamPenaltyGoals.homeTeam[f].goalImage||"";
var thisPenaltyPlayer=thisGameHomeTeamPenaltyGoals.homeTeam[f].player||"";homePenalties+="<img src='/fe/fsi/img/futbol/misc/"+thisPenaltyImage+".gif' title='' border='0' align='absmiddle' />&nbsp;";homePenalties+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisPenaltyPlayer+"</span><br/>";}if(document.getElementById("fsi-"+thisGameId+"-HomeTeamShootOutGoals")){document.getElementById("fsi-"+thisGameId+"-HomeTeamShootOutGoals").innerHTML=homePenalties;
}}}if(thisGameAwayTeamPenaltyScore!="n/a"){if(thisGameAwayTeamPenaltyGoals.awayTeam!="0"&&thisGameAwayTeamPenaltyGoals.awayTeam!=""){var totalAwayPenalties=thisGameAwayTeamPenaltyGoals.awayTeam.length||0;var awayPenalties="";for(f=0;f<totalAwayPenalties;f++){var thisPenaltyImage=thisGameAwayTeamPenaltyGoals.awayTeam[f].goalImage||"";
var thisPenaltyPlayer=thisGameAwayTeamPenaltyGoals.awayTeam[f].player||"";awayPenalties+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisPenaltyPlayer+"</span>&nbsp;";awayPenalties+="<img src='/fe/fsi/img/futbol/misc/"+thisPenaltyImage+".gif' title='' border='0' align='absmiddle' /><br/>";}if(document.getElementById("fsi-"+thisGameId+"-AwayTeamShootOutGoals")){document.getElementById("fsi-"+thisGameId+"-AwayTeamShootOutGoals").innerHTML=awayPenalties;
}}}}};xmlHttp.open("GET",url,true);xmlHttp.send(null);}function _fsiAutoRefreshMatchStatsDfactory(){var xmlHttp;xmlHttp=getXmlHttpObject();var tempURL="/nugget/26607";var params="_"+fsiMatchStatsGlobalInfo.site+"_"+fsiMatchStatsGlobalInfo.league+"_"+fsiMatchStatsGlobalInfo.gameId+"_"+fsiMatchStatsGlobalInfo.lang+"_"+fsiMatchStatsGlobalInfo.timeOffset;
var url=tempURL+params;xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4){var htmlResult=eval("("+xmlHttp.responseText.replace(/[\r\n]+/g,"")+")");var thisGameId=htmlResult.gameId||"";var thisGameStatus=(htmlResult.gameStatus).toLowerCase()||"";var thisGameTime=htmlResult.gameTime||"";var thisGameCurrentMinute=htmlResult.currentMinute||"";
var thisGameHomeScore=htmlResult.homeScore||"";var thisGameHomeGoals=htmlResult.scoredGoals[0]||"";var thisGameAwayScore=htmlResult.visitorScore||"";var thisGameAwayGoals=htmlResult.scoredGoals[1]||"";var thisGameHomeCards=htmlResult.yellowRedCards[0]||"";var thisGameAwayCards=htmlResult.yellowRedCards[1]||"";
var thisGameHomeTeamSubstitutions=htmlResult.substitutions[0]||"";var thisGameAwayTeamSubstitutions=htmlResult.substitutions[1]||"";var thisGameBoxscore="";if(thisGameStatus=="postergado"){var gameStatus=fsiFutbolAjaxDictionary("scorespostponedText",fsiMatchStatsGlobalInfo.lang);thisGameBoxscore="<div class='fsiScoresGameStatusData'>"+gameStatus+"</div>";
}else{if(thisGameStatus==""){thisGameBoxscore="<div class='fsiScoresGameTime'>"+thisGameTime+"</div>";}else{thisGameBoxscore="<div class='fsiScoresResultData'>";thisGameBoxscore+=thisGameHomeScore+" : "+thisGameAwayScore;thisGameBoxscore+="</div>";thisGameBoxscore+="<div class='fsiScoresGameStatusData'>";
if(thisGameStatus=="finalizado"){var gameStatus=fsiFutbolAjaxDictionary("scoresfinalText",fsiMatchStatsGlobalInfo.lang);thisGameBoxscore+=gameStatus;}else{if(thisGameStatus=="suspendido"){var gameStatus=fsiFutbolAjaxDictionary("scoresSuspendedText",fsiMatchStatsGlobalInfo.lang);thisGameBoxscore+=gameStatus;
}else{thisGameBoxscore+=thisGameCurrentMinute;}}thisGameBoxscore+="</div>";}}if(document.getElementById(thisGameId+"-fsiScoresDataBoxId")){document.getElementById(thisGameId+"-fsiScoresDataBoxId").innerHTML=thisGameBoxscore;}if(thisGameHomeScore!="n/a"&&thisGameHomeScore!=""&&thisGameHomeScore!="0"){var totalHomeGoals=thisGameHomeGoals.homeTeam.length||0;
var homeGoalScores="";for(j=0;j<totalHomeGoals;j++){var thisGoalScoreMinute=thisGameHomeGoals.homeTeam[j].minute||"";var thisGoalScorer=thisGameHomeGoals.homeTeam[j].player||"";var thisGoalTypeImg=thisGameHomeGoals.homeTeam[j].goalTypeImg||"goal";var thisGoalTypeImgText=thisGameHomeGoals.homeTeam[j].goalImgDescription||"Goal";
homeGoalScores+="<img src='/fe/fsi/img/futbol/misc/"+thisGoalTypeImg+".gif' border='0' align='absmiddle' title='"+thisGoalTypeImgText+"'/>&nbsp;";homeGoalScores+="<span class='fsiScoresMinuteText'>"+thisGoalScoreMinute+"</span>&nbsp;";homeGoalScores+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisGoalScorer+"</span><br/>";
}if(document.getElementById("fsi-"+thisGameId+"-HomeTeamGoals")){document.getElementById("fsi-"+thisGameId+"-HomeTeamGoals").innerHTML=homeGoalScores;}}if(thisGameAwayScore!="n/a"&&thisGameAwayScore!=""&&thisGameAwayScore!="0"){var totalAwayGoals=thisGameAwayGoals.awayTeam.length||0;var awayGoalScores="";
for(k=0;k<totalAwayGoals;k++){var thisGoalScoreMinute=thisGameAwayGoals.awayTeam[k].minute||"";var thisGoalScorer=thisGameAwayGoals.awayTeam[k].player||"";var thisGoalTypeImg=thisGameAwayGoals.awayTeam[k].goalTypeImg||"goal";var thisGoalTypeImgText=thisGameAwayGoals.awayTeam[k].goalImgDescription||"Goal";
awayGoalScores+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisGoalScorer+"</span>&nbsp;";awayGoalScores+="<span class='fsiScoresMinuteText'>"+thisGoalScoreMinute+"</span>&nbsp;";awayGoalScores+="<img src='/fe/fsi/img/futbol/misc/"+thisGoalTypeImg+".gif' border='0' align='absmiddle' title='"+thisGoalTypeImgText+"'/><br/>";
}if(document.getElementById("fsi-"+thisGameId+"-AwayTeamGoals")){document.getElementById("fsi-"+thisGameId+"-AwayTeamGoals").innerHTML=awayGoalScores;}}if(thisGameHomeCards.homeTeam!="0"&&thisGameHomeCards.homeTeam!=""){var totalHomeCards=thisGameHomeCards.homeTeam.length||0;var homeCards="";for(l=0;
l<totalHomeCards;l++){var thisCardMinute=thisGameHomeCards.homeTeam[l].minute||"";var thisCardPlayer=thisGameHomeCards.homeTeam[l].player||"";var thisCardImage=thisGameHomeCards.homeTeam[l].cardImage||"";homeCards+="<img src='/fe/fsi/img/futbol/misc/"+thisCardImage+".gif' title='' border='0' align='absmiddle' />&nbsp;";
homeCards+="<span class='fsiScoresMinuteText'>"+thisCardMinute+"</span>&nbsp;";homeCards+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisCardPlayer+"</span><br/>";}if(document.getElementById("fsi-"+thisGameId+"-HomeTeamCards")){document.getElementById("fsi-"+thisGameId+"-HomeTeamCards").innerHTML=homeCards;
}}if(thisGameAwayCards.awayTeam!="0"&&thisGameAwayCards.awayTeam!=""){var totalAwayCards=thisGameAwayCards.awayTeam.length||0;var awayCards="";for(m=0;m<totalAwayCards;m++){var thisCardMinute=thisGameAwayCards.awayTeam[m].minute||"";var thisCardPlayer=thisGameAwayCards.awayTeam[m].player||"";var thisCardImage=thisGameAwayCards.awayTeam[m].cardImage||"";
awayCards+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisCardPlayer+"</span>&nbsp;";awayCards+="<span class='fsiScoresMinuteText'>"+thisCardMinute+"</span>&nbsp;";awayCards+="<img src='/fe/fsi/img/futbol/misc/"+thisCardImage+".gif' title='' border='0' align='absmiddle' /><br/>";}if(document.getElementById("fsi-"+thisGameId+"-AwayTeamCards")){document.getElementById("fsi-"+thisGameId+"-AwayTeamCards").innerHTML=awayCards;
}}if(thisGameHomeTeamSubstitutions.homeTeam!="0"&&thisGameHomeTeamSubstitutions.homeTeam!=""){var totalHomeSubs=thisGameHomeTeamSubstitutions.homeTeam.length||0;var homeSubs="";for(n=0;n<totalHomeSubs;n++){var thisSubstitutionMinute=thisGameHomeTeamSubstitutions.homeTeam[n].minute||"";var thisSubstitutionInPlayer=thisGameHomeTeamSubstitutions.homeTeam[n].playerIn||"";
var thisSubstitutionOutPlayer=thisGameHomeTeamSubstitutions.homeTeam[n].playerOut||"";homeSubs+="<img src='/fe/fsi/img/futbol/misc/greenArrow.gif' title='' border='0' align='absmiddle' />&nbsp;";homeSubs+="<span class='fsiScoresMinuteText'>"+thisSubstitutionMinute+"</span>&nbsp;";homeSubs+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisSubstitutionInPlayer+"</span><br/>";
homeSubs+="<img src='/fe/fsi/img/futbol/misc/redArrow.gif' title='' border='0' align='absmiddle' />&nbsp;";homeSubs+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisSubstitutionOutPlayer+"</span><br/><br/>";}if(document.getElementById("fsi-"+thisGameId+"-HomeTeamSubstitutions")){document.getElementById("fsi-"+thisGameId+"-HomeTeamSubstitutions").innerHTML=homeSubs;
}}if(thisGameAwayTeamSubstitutions.awayTeam!="0"&&thisGameAwayTeamSubstitutions.awayTeam!=""){var totalAwaySubs=thisGameAwayTeamSubstitutions.awayTeam.length||0;var awaySubs="";for(t=0;t<totalAwaySubs;t++){var thisSubstitutionMinute=thisGameAwayTeamSubstitutions.awayTeam[t].minute||"";var thisSubstitutionInPlayer=thisGameAwayTeamSubstitutions.awayTeam[t].playerIn||"";
var thisSubstitutionOutPlayer=thisGameAwayTeamSubstitutions.awayTeam[t].playerOut||"";awaySubs+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisSubstitutionInPlayer+"</span>&nbsp;";awaySubs+="<span class='fsiScoresMinuteText'>"+thisSubstitutionMinute+"</span>&nbsp;";awaySubs+="<img src='/fe/fsi/img/futbol/misc/greenArrow.gif' title='' border='0' align='absmiddle' /><br/>";
awaySubs+="<span class='fsiScoresMoreInfoGreyDataText'>"+thisSubstitutionOutPlayer+"</span>&nbsp;";awaySubs+="<img src='/fe/fsi/img/futbol/misc/redArrow.gif' title='' border='0' align='absmiddle' /><br/><br/>";}if(document.getElementById("fsi-"+thisGameId+"-AwayTeamSubstitutions")){document.getElementById("fsi-"+thisGameId+"-AwayTeamSubstitutions").innerHTML=awaySubs;
}}}};xmlHttp.open("GET",url,true);xmlHttp.send(null);}


