var competitionId="101", cntId="105", name="LATVIA: Virsliga"; var jsTxt="[{\"games\":{},\"comps\":{},\"rc\":{},\"ev\":{}},{\"games\":{\"g1856581\":{\"id\":\"1856581\",\"p1\":\"Tukums\",\"p2\":\"Liepaja\",\"dt\":\"2026-08-02\",\"tm\":\"15:00\",\"stT\":\"1786086781\",\"cm\":\"915\",\"sh\":0,\"rL\":\"2\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"2\"},\"rP\":[\"1\",\"1\"],\"c\":0,\"wn\":\"2\"},\"g1856537\":{\"id\":\"1856537\",\"p1\":\"Riga\",\"p2\":\"Grobina\",\"dt\":\"2026-08-02\",\"tm\":\"17:00\",\"stT\":\"1786086781\",\"cm\":\"915\",\"sh\":0,\"rL\":\"2\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"4\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1856535\":{\"id\":\"1856535\",\"p1\":\"Daugava D\",\"p2\":\"FK Jelgava\",\"dt\":\"2026-08-01\",\"tm\":\"15:00\",\"stT\":\"1786086781\",\"cm\":\"915\",\"sh\":0,\"rL\":\"2\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"2\",\"r2\":\"1\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1856532\":{\"id\":\"1856532\",\"p1\":\"Tukums\",\"p2\":\"Rigas FS\",\"dt\":\"2026-07-27\",\"tm\":\"17:00\",\"stT\":\"1786086781\",\"cm\":\"915\",\"sh\":0,\"rL\":\"2\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"0\",\"r2\":\"1\"},\"rP\":[\"0\",\"1\"],\"c\":0,\"wn\":\"2\"},\"g1856534\":{\"id\":\"1856534\",\"p1\":\"Grobina\",\"p2\":\"Ogre\",\"dt\":\"2026-07-27\",\"tm\":\"18:00\",\"stT\":\"1786086781\",\"cm\":\"915\",\"sh\":0,\"rL\":\"2\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"2\",\"r2\":\"2\"},\"rP\":[\"0\",\"2\"],\"c\":0,\"wn\":\"0\"},\"g1856533\":{\"id\":\"1856533\",\"p1\":\"Auda\",\"p2\":\"Daugava D\",\"dt\":\"2026-07-26\",\"tm\":\"18:00\",\"stT\":\"1786086781\",\"cm\":\"915\",\"sh\":0,\"rL\":\"2\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"1\",\"r2\":\"0\"},\"rP\":[],\"c\":0,\"wn\":\"1\"},\"g1856577\":{\"id\":\"1856577\",\"p1\":\"FK Jelgava\",\"p2\":\"Liepaja\",\"dt\":\"2026-07-26\",\"tm\":\"18:00\",\"stT\":\"1786086781\",\"cm\":\"915\",\"sh\":0,\"rL\":\"2\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"FT\",\"r1\":\"0\",\"r2\":\"2\"},\"rP\":[\"0\",\"2\"],\"c\":0,\"wn\":\"2\"}},\"comps\":{\"915\":{\"id\":\"915\",\"nm\":\"Virsliga\",\"cont\":\"1\",\"cn\":\"\",\"st\":\"\"}},\"rc\":{},\"ev\":{\"1856532\":[{\"e\":\"goal\",\"m\":\"8\",\"p\":\"Darko Lemajic\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"39\",\"p\":\"Davis Valmiers\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"69\",\"p\":\"Strahinja Rakic\",\"c\":\"2\"}],\"1856533\":[{\"e\":\"goal\",\"m\":\"37\",\"p\":\"Henoc Lusweki\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"32\",\"p\":\"William Mukwelle\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"83\",\"p\":\"Barthelemy Diedhiou\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"83\",\"p\":\"Wally Fofana\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"90\",\"p\":\"Kader Kone\",\"c\":\"1\"}],\"1856534\":[{\"e\":\"goal\",\"m\":\"13\",\"p\":\"Artem Marchuk\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"44\",\"p\":\"Markuss Kalnins\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"65\",\"p\":\"Milan Corryn\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"90\",\"p\":\"Milan Corryn\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"35\",\"p\":\"Hirotaka Yamada\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"42\",\"p\":\"Krists Gulbis\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"53\",\"p\":\"Maksims Fjodorovs\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"87\",\"p\":\"Devids Dobrecovs\",\"c\":\"1\"}],\"1856535\":[{\"e\":\"goal\",\"m\":\"11\",\"p\":\"Doukumo Wadulu Ayebadiepreye\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"48\",\"p\":\"Joel Yakubu\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"56\",\"p\":\"Roberts Melkis\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"38\",\"p\":\"Ziad Ouled-Haj-M'hand\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"45\",\"p\":\"Maksims Semesko\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"53\",\"p\":\"Raivis Skrebels\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"62\",\"p\":\"Doukumo Wadulu Ayebadiepreye\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"87\",\"p\":\"Kristers Alekseiciks\",\"c\":\"2\"}],\"1856537\":[{\"e\":\"goal\",\"m\":\"51\",\"p\":\"Abdulrahman Taiwo\",\"c\":\"1\"},{\"e\":\"og\",\"m\":\"61\",\"p\":\"Krisjanis Rupeiks\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"75\",\"p\":\"Ramires Reginaldo\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"82\",\"p\":\"Ramires Reginaldo\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"44\",\"p\":\"Krisjanis Rupeiks\",\"c\":\"2\"}],\"1856577\":[{\"e\":\"goal\",\"m\":\"1\",\"p\":\"Ede Oloko\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"27\",\"p\":\"Abiodun Ogunniyi\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"24\",\"p\":\"Jegors Novikovs\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"53\",\"p\":\"Vladislavs Sorokins\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"57\",\"p\":\"Ede Oloko\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"85\",\"p\":\"Rihards Becers\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"86\",\"p\":\"Davis Oss\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"88\",\"p\":\"Leonel Strumia\",\"c\":\"2\"}],\"1856581\":[{\"e\":\"var\",\"m\":\"18\",\"p\":\"1\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"25\",\"p\":\"Ruslans Deruzinskis\",\"c\":\"1\"},{\"e\":\"goal\",\"m\":\"41\",\"p\":\"Ede Oloko\",\"c\":\"2\"},{\"e\":\"goal\",\"m\":\"72\",\"p\":\"Ruslans Deruzinskis\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"31\",\"p\":\"Kaspars Anmanis\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"39\",\"p\":\"Davis Valmiers\",\"c\":\"1\"},{\"e\":\"yc\",\"m\":\"74\",\"p\":\"Afonso Leite\",\"c\":\"2\"},{\"e\":\"yc\",\"m\":\"85\",\"p\":\"Kristers Volkovs\",\"c\":\"1\"}]}},{\"games\":{\"g1856540\":{\"id\":\"1856540\",\"p1\":\"Daugava D\",\"p2\":\"Tukums\",\"dt\":\"2026-08-08\",\"tm\":\"15:00\",\"stT\":\"1786086792\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856541\":{\"id\":\"1856541\",\"p1\":\"FK Jelgava\",\"p2\":\"Auda\",\"dt\":\"2026-08-09\",\"tm\":\"15:00\",\"stT\":\"1786086792\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856542\":{\"id\":\"1856542\",\"p1\":\"Super Nova\",\"p2\":\"Liepaja\",\"dt\":\"2026-08-09\",\"tm\":\"15:00\",\"stT\":\"1786086792\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856543\":{\"id\":\"1856543\",\"p1\":\"Riga\",\"p2\":\"Ogre\",\"dt\":\"2026-08-09\",\"tm\":\"17:00\",\"stT\":\"1786086792\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"},\"g1856544\":{\"id\":\"1856544\",\"p1\":\"Rigas FS\",\"p2\":\"Grobina\",\"dt\":\"2026-08-10\",\"tm\":\"18:30\",\"stT\":\"1786086792\",\"cm\":\"915\",\"sh\":0,\"rL\":\"\",\"h\":\"2\",\"n\":\"\",\"v\":\"\",\"R\":{\"st\":\"\",\"r1\":\"\",\"r2\":\"\"},\"rP\":[],\"c\":0,\"wn\":\"0\"}},\"comps\":{\"915\":{\"id\":\"915\",\"nm\":\"Virsliga\",\"cont\":\"1\",\"cn\":\"\",\"st\":\"\"}},\"rc\":{},\"ev\":{}},{\"comps\":{\"a915\":{\"id\":\"915\",\"nm\":\"Virsliga\"}},\"tables\":{\"915\":[{\"c\":\"Rigas FS\",\"p\":\"24\",\"w\":\"20\",\"d\":\"2\",\"l\":\"2\",\"fa1\":\"56\",\"fa2\":\"16\",\"pnt\":\"62\"},{\"c\":\"Riga\",\"p\":\"24\",\"w\":\"19\",\"d\":\"4\",\"l\":\"1\",\"fa1\":\"72\",\"fa2\":\"20\",\"pnt\":\"61\"},{\"c\":\"Auda\",\"p\":\"23\",\"w\":\"13\",\"d\":\"4\",\"l\":\"6\",\"fa1\":\"38\",\"fa2\":\"26\",\"pnt\":\"43\"},{\"c\":\"Daugava D\",\"p\":\"25\",\"w\":\"9\",\"d\":\"6\",\"l\":\"10\",\"fa1\":\"31\",\"fa2\":\"31\",\"pnt\":\"33\"},{\"c\":\"Liepaja\",\"p\":\"24\",\"w\":\"9\",\"d\":\"4\",\"l\":\"11\",\"fa1\":\"31\",\"fa2\":\"36\",\"pnt\":\"31\"},{\"c\":\"Super Nova\",\"p\":\"23\",\"w\":\"8\",\"d\":\"3\",\"l\":\"12\",\"fa1\":\"25\",\"fa2\":\"35\",\"pnt\":\"27\"},{\"c\":\"FK Jelgava\",\"p\":\"25\",\"w\":\"6\",\"d\":\"7\",\"l\":\"12\",\"fa1\":\"25\",\"fa2\":\"43\",\"pnt\":\"25\"},{\"c\":\"Grobina\",\"p\":\"25\",\"w\":\"4\",\"d\":\"9\",\"l\":\"12\",\"fa1\":\"17\",\"fa2\":\"41\",\"pnt\":\"21\"},{\"c\":\"Tukums\",\"p\":\"25\",\"w\":\"4\",\"d\":\"8\",\"l\":\"13\",\"fa1\":\"40\",\"fa2\":\"49\",\"pnt\":\"20\"},{\"c\":\"Ogre\",\"p\":\"24\",\"w\":\"3\",\"d\":\"5\",\"l\":\"16\",\"fa1\":\"23\",\"fa2\":\"61\",\"pnt\":\"14\"}]}}]";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: ["","