var competitionId="3084", cntId="2006", name="SOUTH AMERICA: South American Games U-19"; var jsTxt="[{\"games\":{},\"comps\":{},\"rc\":{},\"ev\":{}},{\"games\":{\"g1282047\":{\"id\":\"1282047\",\"p1\":\"Paraguay U-19\",\"p2\":\"Venezuela U-19\",\"dt\":\"2022-10-08\",\"tm\":\"14:07\",\"stT\":\"1665645456\",\"cm\":\"2126\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"0\",\"r2\":\"2\"},\"rP\":[\"0\",\"1\"],\"c\":0,\"wn\":\"2\"},\"g1282048\":{\"id\":\"1282048\",\"p1\":\"Ecuador U-19\",\"p2\":\"Argentina U-19\",\"dt\":\"2022-10-08\",\"tm\":\"16:15\",\"stT\":\"1665645456\",\"cm\":\"2126\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"0\",\"r2\":\"3\"},\"rP\":[\"0\",\"1\"],\"c\":0,\"wn\":\"2\"},\"g1282049\":{\"id\":\"1282049\",\"p1\":\"Uruguay U-19\",\"p2\":\"Peru U-19\",\"dt\":\"2022-10-08\",\"tm\":\"20:00\",\"stT\":\"1665645456\",\"cm\":\"2126\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1282050\":{\"id\":\"1282050\",\"p1\":\"Colombia U-19\",\"p2\":\"Chile U-19\",\"dt\":\"2022-10-08\",\"tm\":\"21:00\",\"stT\":\"1665645456\",\"cm\":\"2126\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"3\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1282043\":{\"id\":\"1282043\",\"p1\":\"Chile U-19\",\"p2\":\"Ecuador U-19\",\"dt\":\"2022-10-06\",\"tm\":\"14:00\",\"stT\":\"1665645456\",\"cm\":\"2126\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"2\"},\"rP\":[\"1\",\"1\"],\"c\":0,\"wn\":\"2\"},\"g1282044\":{\"id\":\"1282044\",\"p1\":\"Colombia U-19\",\"p2\":\"Argentina U-19\",\"dt\":\"2022-10-06\",\"tm\":\"16:15\",\"stT\":\"1665645456\",\"cm\":\"2126\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"2\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1282045\":{\"id\":\"1282045\",\"p1\":\"Peru U-19\",\"p2\":\"Venezuela U-19\",\"dt\":\"2022-10-06\",\"tm\":\"20:00\",\"stT\":\"1665645456\",\"cm\":\"2126\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1282046\":{\"id\":\"1282046\",\"p1\":\"Paraguay U-19\",\"p2\":\"Uruguay U-19\",\"dt\":\"2022-10-06\",\"tm\":\"21:00\",\"stT\":\"1665645456\",\"cm\":\"2126\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"1\"},\"rP\":[\"0\",\"1\"],\"c\":0,\"wn\":\"0\"},\"g1282039\":{\"id\":\"1282039\",\"p1\":\"Ecuador U-19\",\"p2\":\"Colombia U-19\",\"dt\":\"2022-10-04\",\"tm\":\"14:45\",\"stT\":\"1665645456\",\"cm\":\"2126\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"3\",\"r2\":\"2\"},\"rP\":[\"1\",\"2\"],\"c\":0,\"wn\":\"1\"},\"g1282040\":{\"id\":\"1282040\",\"p1\":\"Argentina U-19\",\"p2\":\"Chile U-19\",\"dt\":\"2022-10-04\",\"tm\":\"16:30\",\"stT\":\"1665645456\",\"cm\":\"2126\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"0\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"2\"},\"g1282041\":{\"id\":\"1282041\",\"p1\":\"Venezuela U-19\",\"p2\":\"Uruguay U-19\",\"dt\":\"2022-10-04\",\"tm\":\"20:00\",\"stT\":\"1665645456\",\"cm\":\"2126\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"3\"},\"rP\":[\"1\",\"2\"],\"c\":0,\"wn\":\"2\"},\"g1282042\":{\"id\":\"1282042\",\"p1\":\"Paraguay U-19\",\"p2\":\"Peru U-19\",\"dt\":\"2022-10-04\",\"tm\":\"21:00\",\"stT\":\"1665645456\",\"cm\":\"2126\",\"sh\":0,\"rL\":\"2\",\"h\":\"1\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"6\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1283123\":{\"id\":\"1283123\",\"p1\":\"Colombia U-19\",\"p2\":\"Uruguay U-19\",\"dt\":\"2022-10-12\",\"tm\":\"14:00\",\"stT\":\"1665645456\",\"cm\":\"2127\",\"sh\":0,\"rL\":\"2\",\"h\":\"0\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"2\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1283212\":{\"id\":\"1283212\",\"p1\":\"Uruguay U-19\",\"p2\":\"Colombia U-19\",\"dt\":\"2022-10-12\",\"tm\":\"14:00\",\"stT\":\"1665645456\",\"cm\":\"2127\",\"sh\":0,\"rL\":\"2\",\"h\":\"0\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"2\"},\"rP\":[\"0\",\"1\"],\"c\":0,\"wn\":\"2\"},\"g1283213\":{\"id\":\"1283213\",\"p1\":\"Ecuador U-19\",\"p2\":\"Paraguay U-19\",\"dt\":\"2022-10-12\",\"tm\":\"21:00\",\"stT\":\"1665645456\",\"cm\":\"2127\",\"sh\":0,\"rL\":\"2\",\"h\":\"0\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"0\",\"r2\":\"1\"},\"rP\":[\"0\",\"1\"],\"c\":0,\"wn\":\"2\"},\"g1283124\":{\"id\":\"1283124\",\"p1\":\"Paraguay U-19\",\"p2\":\"Ecuador U-19\",\"dt\":\"2022-10-12\",\"tm\":\"21:00\",\"stT\":\"1665645456\",\"cm\":\"2127\",\"sh\":0,\"rL\":\"2\",\"h\":\"0\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1282789\":{\"id\":\"1282789\",\"p1\":\"Paraguay U-19\",\"p2\":\"Colombia U-19\",\"dt\":\"2022-10-10\",\"tm\":\"14:00\",\"stT\":\"1665645456\",\"cm\":\"2127\",\"sh\":0,\"rL\":\"2\",\"h\":\"0\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"4\",\"r2\":\"2\"},\"rP\":[\"2\",\"1\"],\"c\":0,\"wn\":\"1\"},\"g1282790\":{\"id\":\"1282790\",\"p1\":\"Uruguay U-19\",\"p2\":\"Ecuador U-19\",\"dt\":\"2022-10-10\",\"tm\":\"16:15\",\"stT\":\"1665645456\",\"cm\":\"2127\",\"sh\":0,\"rL\":\"2\",\"h\":\"0\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"3\"},\"rP\":[\"1\",\"2\"],\"c\":0,\"wn\":\"2\"}},\"comps\":{\"2126\":{\"id\":\"2126\",\"nm\":\"South American Games U-19, Group round\",\"cont\":\"0\",\"cn\":\"\",\"st\":\"\"},\"2127\":{\"id\":\"2127\",\"nm\":\"South American Games U-19, Playoffs\",\"cont\":\"0\",\"cn\":\"\",\"st\":\"\"}},\"rc\":{},\"ev\":{}},{\"games\":{},\"comps\":{\"2126\":{\"id\":\"2126\",\"nm\":\"South American Games U-19, Group round\",\"cont\":\"0\",\"cn\":\"\",\"st\":\"\"},\"2127\":{\"id\":\"2127\",\"nm\":\"South American Games U-19, Playoffs\",\"cont\":\"0\",\"cn\":\"\",\"st\":\"\"}},\"rc\":{},\"ev\":{}},{\"comps\":{\"a2126\":{\"id\":\"2126\",\"nm\":\"South American Games U-19, Group round\"}},\"tables\":{\"2126\":[{\"c\":\"Ecuador U-19\",\"p\":\"0\",\"w\":\"0\",\"d\":\"0\",\"l\":\"0\",\"fa1\":\"0\",\"fa2\":\"0\",\"pnt\":\"0\"},{\"c\":\"Uruguay U-19\",\"p\":\"0\",\"w\":\"0\",\"d\":\"0\",\"l\":\"0\",\"fa1\":\"0\",\"fa2\":\"0\",\"pnt\":\"0\"},{\"c\":\"Chile U-19\",\"p\":\"0\",\"w\":\"0\",\"d\":\"0\",\"l\":\"0\",\"fa1\":\"0\",\"fa2\":\"0\",\"pnt\":\"0\"},{\"c\":\"Venezuela U-19\",\"p\":\"0\",\"w\":\"0\",\"d\":\"0\",\"l\":\"0\",\"fa1\":\"0\",\"fa2\":\"0\",\"pnt\":\"0\"},{\"c\":\"Colombia U-19\",\"p\":\"0\",\"w\":\"0\",\"d\":\"0\",\"l\":\"0\",\"fa1\":\"0\",\"fa2\":\"0\",\"pnt\":\"0\"},{\"c\":\"Paraguay U-19\",\"p\":\"0\",\"w\":\"0\",\"d\":\"0\",\"l\":\"0\",\"fa1\":\"0\",\"fa2\":\"0\",\"pnt\":\"0\"},{\"c\":\"Argentina U-19\",\"p\":\"0\",\"w\":\"0\",\"d\":\"0\",\"l\":\"0\",\"fa1\":\"0\",\"fa2\":\"0\",\"pnt\":\"0\"},{\"c\":\"Peru U-19\",\"p\":\"0\",\"w\":\"0\",\"d\":\"0\",\"l\":\"0\",\"fa1\":\"0\",\"fa2\":\"0\",\"pnt\":\"0\"}]}}]";var cmpActiveItem; var modal = document.getElementById('myModal'); var span = document.getElementsByClassName("close")[0]; var corrH = [0,1,2,2,1,1,1,1,1,1,2,2,2]; //gumarvuma sport-in u eji karucvacqna voroshvum makeMatch-um var gameId=gameIdM="", tableId=""; //ete xaxa sxmvac, xaxi id-n; gameIdM-n id-n demic g, ogtagorcvuma makeMatch-um var initTmpObj=["",""]; //[0] goal-i u [1] tabliceq-i tvyalnery qasheluc heto lcnuma sra mej document.addEventListener('click', this.documentClick,false); function documentClick(e){ //document-i vra vortex sxmum en sa ashxatuma if(e.target.classList[1]==="rL"){ //sxmec hashvi vra initTmpObj[0]=""; var ev = document.getElementById("matchInfo"); if(ev) ev.remove(); if(e.target.parentNode.parentElement.id!==gameId){ gameId=e.target.parentNode.parentElement.id; gameIdM="g"+gameId; makeDetails["Goal"](gameId, 0); } else gameId=gameIdM=0; } else if(e.target.className==="fa fa-youtube-play" || e.target.className==="vGoal"){// sxmec video if(e.target.className==="vGoal"){ var mId=e.target.parentNode.parentNode.parentNode.parentElement.id; var goalId=e.target.id.replace("v",""); } else{ var mId=e.target.parentNode.parentNode.parentNode.parentNode.parentElement.id; var goalId=e.target.parentNode.id.replace("v",""); } modal.style.display = "block"; // document.getElementsByClassName("StandingsTeamRow")[0].innerHTML="
"; //modal.getElementsByClassName("title")[0].innerHTML=initObj.ev[mId][goalId].t; if(initObj.ev[mId][goalId].v.includes("mp4") && !initObj.ev[mId][goalId].v.includes("embed.html")) modal.getElementsByClassName("StandingsTeamRow")[0].innerHTML=""; else modal.getElementsByClassName("StandingsTeamRow")[0].innerHTML=""; modal.getElementsByClassName("modal-content")[0].style.height="50vh"; modal.style.paddingTop="100px"; if(window.innerWidth < 500) modal.getElementsByClassName("modal-content")[0].style.width="100%"; } } // When the user clicks on (x), close the modal span.onclick = function() { modal.getElementsByClassName("StandingsTeamRow")[0].innerHTML=""; if(window.innerWidth < 500) modal.getElementsByClassName("modal-content")[0].style.width="90%"; modal.style.display = "none"; modal.getElementsByClassName("icon")[0].style.backgroundImage=""; tableId=0; } var makeMatch = { sport1: function(Match,cnt,brief=0){ var str, rowT="";; var strRC1=strRC2=strN=""; var goalFl={ row: [""," red"], html: ["","