$(document).ready(function() { $.fn.dataTable.ext.order['sortMln'] = function ( settings, col ) { return this.api().column( col, {order:'index'} ).nodes().map( function ( td ) { return 1*$(td).text().replace(' mln.', ''); } ); }; $.fn.dataTable.ext.order['sortCountryFlag'] = function ( settings, col ) { return this.api().column( col, {order:'index'} ).nodes().map( function ( td ) { return $('i', td).attr('title'); } ); }; $.fn.dataTable.ext.order['sortMostPopular'] = function ( settings, col ) { return this.api().column( col, {order:'index'} ).nodes().map( function ( td ) { return 1*$(td).text().substr(0,$(td).text().indexOf("x")-1); } ); }; }); var countries = {"109":{"id":"109","country":"Denmark","countryCode":"DK","countryTr":"le Danemark"},"9":{"id":"9","country":"Russia","countryCode":"RU","countryTr":"la Russie"},"76":{"id":"76","country":"Belgium","countryCode":"BE","countryTr":"la Belgique"},"3":{"id":"3","country":"United States","countryCode":"US","countryTr":"les Etats-Unis"},"51":{"id":"51","country":"Australia","countryCode":"AU","countryTr":"l\u2019Australie"},"23":{"id":"23","country":"Italy","countryCode":"IT","countryTr":"l\u2019Italie"},"81":{"id":"81","country":"Serbia","countryCode":"RS","countryTr":"la Servie"},"84":{"id":"84","country":"Belarus","countryCode":"BY","countryTr":"Belarus"},"1":{"id":"1","country":"China","countryCode":"CN","countryTr":"la Chine"},"96":{"id":"96","country":"Israel","countryCode":"IL","countryTr":"Isra\u00ebl"},"33":{"id":"33","country":"Poland","countryCode":"PL","countryTr":"la Pologne"},"19":{"id":"19","country":"France","countryCode":"FR","countryTr":"la France"},"150":{"id":"150","country":"Estonia","countryCode":"EE","countryTr":"l\u2019Estonie"},"28":{"id":"28","country":"Spain","countryCode":"ES","countryTr":"l\u2019Espagne"},"52":{"id":"52","country":"Romania","countryCode":"RO","countryTr":"la Roumanie"},"110":{"id":"110","country":"Slovakia","countryCode":"SK","countryTr":"la Slovaquie"},"14":{"id":"14","country":"Germany","countryCode":"DE","countryTr":"l\u2019Allemagne"},"78":{"id":"78","country":"Czech Republic","countryCode":"CZ","countryTr":"la R\u00e9publique Tch\u00e8que"},"95":{"id":"95","country":"Bulgaria","countryCode":"BG","countryTr":"la Bulgarie"},"27":{"id":"27","country":"Ukraine","countryCode":"UA","countryTr":"l\u2019Ukraine"},"80":{"id":"80","country":"Hungary","countryCode":"HU","countryTr":"l\u2019Hongrie"},"62":{"id":"62","country":"Kazakhstan","countryCode":"KZ","countryTr":"le Kazakhstan"},"94":{"id":"94","country":"Swiss","countryCode":"CH","countryTr":"la Suisse"},"142":{"id":"142","country":"Latvia","countryCode":"LV","countryTr":"la Lettonie"},"145":{"id":"145","country":"Slovenia","countryCode":"SI","countryTr":"la Slov\u00e9nie"},"31":{"id":"31","country":"Argentina","countryCode":"AR","countryTr":"l\u2019Argentine"},"10":{"id":"10","country":"Japan","countryCode":"JP","countryTr":"le Japon"},"88":{"id":"88","country":"Sweden","countryCode":"SE","countryTr":"la Su\u00e8de"},"22":{"id":"22","country":"United Kingdom","countryCode":"GB","countryTr":"le Royaume-Uni"},"20":{"id":"20","country":"Thailand","countryCode":"TH","countryTr":"la Thailande"},"44":{"id":"44","country":"Uzbekistan","countryCode":"UZ","countryTr":"l\u2019Oezb\u00e9kistan"},"93":{"id":"93","country":"Austria","countryCode":"AT","countryTr":"l\u2019Autriche"},"120":{"id":"120","country":"Croatia","countryCode":"HR","countryTr":"la Croatie"},"26":{"id":"26","country":"South Africa","countryCode":"ZA","countryTr":"l\u2019Afrique du Sud"},"36":{"id":"36","country":"Canada","countryCode":"CA","countryTr":"le Canada"},"49":{"id":"49","country":"Taiwan","countryCode":"TW","countryTr":"l\u2019\u00eele de Taiwan"},"29":{"id":"29","country":"Colombia","countryCode":"CO","countryTr":"la Colombie"},"169":{"id":"169","country":"Luxembourg","countryCode":"LU","countryTr":"le Luxembourg"},"61":{"id":"61","country":"Netherlands","countryCode":"NL","countryTr":"les Pays-Bas"},"25":{"id":"25","country":"South Korea","countryCode":"KR","countryTr":"la Cor\u00e9e du Sud"},"2":{"id":"2","country":"India","countryCode":"IN","countryTr":"l\u2019Inde"},"74":{"id":"74","country":"Greece","countryCode":"GR","countryTr":"la Gr\u00e8ce"},"104":{"id":"104","country":"Paraguay","countryCode":"PY","countryTr":"le Paraguay"},"17":{"id":"17","country":"Turkey","countryCode":"TR","countryTr":"la Turquie"},"121":{"id":"121","country":"Georgia","countryCode":"GE","countryTr":"la G\u00e9orgie"},"77":{"id":"77","country":"Portugal","countryCode":"PT","countryTr":"le Portugal"},"98":{"id":"98","country":"Hong Kong","countryCode":"HK","countryTr":"Hong Kong"},"5":{"id":"5","country":"Brasil","countryCode":"BR","countryTr":"le Br\u00e9sil"},"40":{"id":"40","country":"Peru","countryCode":"PE","countryTr":"le P\u00e9rou"},"113":{"id":"113","country":"Kyrgyzstan","countryCode":"KG","countryTr":"le Kirghizistan"},"112":{"id":"112","country":"Finland","countryCode":"FI","countryTr":"la Finlande"},"208":{"id":"208","country":"Liechtenstein","countryCode":"LI","countryTr":"le Liechtenstein"},"86":{"id":"86","country":"Bolivia","countryCode":"BO","countryTr":"la Bolivie"},"124":{"id":"124","country":"New Zealand","countryCode":"NZ","countryTr":"la Nouvelle Z\u00e9lande"},"4":{"id":"4","country":"Indonesia","countryCode":"ID","countryTr":"l\u2019Indon\u00e9sie"},"141":{"id":"141","country":"Oman","countryCode":"OM","countryTr":"l\u2019Oman"},"132":{"id":"132","country":"Lithuania","countryCode":"LT","countryTr":"la Lituanie"},"60":{"id":"60","country":"Chile","countryCode":"CL","countryTr":"la Chile"},"79":{"id":"79","country":"Tunisia","countryCode":"TN","countryTr":"la Tunisie"},"37":{"id":"37","country":"Morocco","countryCode":"MA","countryTr":"le Maroc"},"127":{"id":"127","country":"Bosnia and Herzegovina","countryCode":"BA","countryTr":"la Bosnie et Herzegovina"},"42":{"id":"42","country":"Venezuela","countryCode":"VE","countryTr":"la Venezuela"},"159":{"id":"159","country":"Cyprus","countryCode":"CY","countryTr":"la Chypre"},"134":{"id":"134","country":"Uruguay","countryCode":"UY","countryTr":"l\u2019Uruguay"},"118":{"id":"118","country":"Ireland","countryCode":"IE","countryTr":"l\u2019Irlande"},"66":{"id":"66","country":"Ecuador","countryCode":"EC","countryTr":"l\u2019Equateur"},"82":{"id":"82","country":"Dominican Republic","countryCode":"DO","countryTr":"la R\u00e9publique Dominicaine"},"11":{"id":"11","country":"Mexico","countryCode":"MX","countryTr":"le Mexique"},"131":{"id":"131","country":"Moldova","countryCode":"MD","countryTr":"la Moldavie"},"16":{"id":"16","country":"Egypt","countryCode":"EG","countryTr":"l\u2019Egypte"},"85":{"id":"85","country":"Haiti","countryCode":"HT","countryTr":"le Ha\u00efti"},"209":{"id":"209","country":"Monaco","countryCode":"MC","countryTr":"Monaco"},"126":{"id":"126","country":"Puerto Rico","countryCode":"PR","countryTr":"Porto Rico"},"122":{"id":"122","country":"United Arab Emirates","countryCode":"AE","countryTr":"les Emirats arabes unis"},"164":{"id":"164","country":"Montenegro","countryCode":"ME","countryTr":"le Mont\u00e9n\u00e9gro"},"117":{"id":"117","country":"Norway","countryCode":"NO","countryTr":"la Norv\u00e8ge"},"177":{"id":"177","country":"Barbados","countryCode":"BB","countryTr":"la Barbade"},"144":{"id":"144","country":"North Macedonia","countryCode":"MK","countryTr":"Mac\u00e9doine du Nord"},"99":{"id":"99","country":"El Salvador","countryCode":"SV","countryTr":"El Salvador"},"156":{"id":"156","country":"Qatar","countryCode":"QA","countryTr":"le Qatar"},"69":{"id":"69","country":"Zimbabwe","countryCode":"ZW","countryTr":"le Zimbabwe"},"125":{"id":"125","country":"Lebanon","countryCode":"LB","countryTr":"le Libanon"},"102":{"id":"102","country":"Papua New Guinea","countryCode":"PG","countryTr":"la Papouasie-Nouvelle-Guin\u00e9e"},"199":{"id":"199","country":"Andorra","countryCode":"AD","countryTr":"l\u2019Andorre"},"12":{"id":"12","country":"Philippines","countryCode":"PH","countryTr":"les Philippines"},"92":{"id":"92","country":"Burundi","countryCode":"BI","countryTr":"le Burundi"},"172":{"id":"172","country":"Malta","countryCode":"MT","countryTr":"la Malte"},"13":{"id":"13","country":"Vietnam","countryCode":"VN","countryTr":"le Vietnam"},"105":{"id":"105","country":"Jordan","countryCode":"JO","countryTr":"la Jordanie"}}; var teams = [{"id":0,"name":""}]; var sportsmen = [{"id":"3588","tem":"0","ctr":"81","nam":"Djokovic, Novak ","namorig":"Djokovic, Novak ","cat":"","pri":"50 mln.","rat":0,"mw":"H","link":"Djokovic, Novak <\/a>","confirmed_b":1},{"id":"3586","tem":"0","ctr":"28","nam":"Nadal, Rafael ","namorig":"Nadal, Rafael ","cat":"","pri":"45,7 mln.","rat":0,"mw":"H","link":"Nadal, Rafael <\/a>","confirmed_b":1},{"id":"15867","tem":"45","ctr":"9","nam":"Medvedev, Daniil ","namorig":"Medvedev, Daniil ","cat":"","pri":"29,3 mln.","rat":0,"mw":"H","link":"Medvedev, Daniil <\/a>","confirmed_b":1},{"id":"17109","tem":"45","ctr":"74","nam":"Tsitsipas, Stefanos ","namorig":"Tsitsipas, Stefanos ","cat":"","pri":"22,7 mln.","rat":0,"mw":"H","link":"Tsitsipas, Stefanos <\/a>","confirmed_b":1},{"id":"3683","tem":"0","ctr":"10","nam":"Nishikori, Kei ","namorig":"Nishikori, Kei ","cat":"","pri":"20,1 mln.","rat":0,"mw":"H","link":"Nishikori, Kei <\/a>","confirmed_b":1},{"id":"3755","tem":"0","ctr":"28","nam":"Bautista Agut, Roberto ","namorig":"Bautista Agut, Roberto ","cat":"","pri":"18,5 mln.","rat":0,"mw":"H","link":"Bautista Agut, Roberto <\/a>","confirmed_b":1},{"id":"10369","tem":"45","ctr":"9","nam":"Khachanov, Karen ","namorig":"Khachanov, Karen ","cat":"","pri":"18,2 mln.","rat":0,"mw":"H","link":"Khachanov, Karen <\/a>","confirmed_b":1},{"id":"8555","tem":"45","ctr":"93","nam":"Thiem, Dominic ","namorig":"Thiem, Dominic ","cat":"","pri":"16,3 mln.","rat":0,"mw":"H","link":"Thiem, Dominic <\/a>","confirmed_b":1},{"id":"7522","tem":"45","ctr":"14","nam":"Zverev, Alexander ","namorig":"Zverev, Alexander ","cat":"","pri":"15,9 mln.","rat":0,"mw":"H","link":"Zverev, Alexander <\/a>","confirmed_b":1},{"id":"3814","tem":"0","ctr":"76","nam":"Goffin, David ","namorig":"Goffin, David ","cat":"","pri":"13,2 mln.","rat":0,"mw":"H","link":"Goffin, David <\/a>","confirmed_b":1},{"id":"18377","tem":"45","ctr":"36","nam":"Auger-Aliassime, Felix ","namorig":"Auger-Aliassime, Felix ","cat":"","pri":"11,6 mln.","rat":0,"mw":"H","link":"Auger-Aliassime, Felix <\/a>","confirmed_b":1},{"id":"3597","tem":"0","ctr":"19","nam":"Monfils, Gael ","namorig":"Monfils, Gael ","cat":"","pri":"11,1 mln.","rat":0,"mw":"H","link":"Monfils, Gael <\/a>","confirmed_b":1},{"id":"3599","tem":"0","ctr":"120","nam":"Cilic, Marin ","namorig":"Cilic, Marin ","cat":"","pri":"10,7 mln.","rat":0,"mw":"H","link":"Cilic, Marin <\/a>","confirmed_b":1},{"id":"3606","tem":"0","ctr":"94","nam":"Wawrinka, Stan ","namorig":"Wawrinka, Stan ","cat":"","pri":"10,5 mln.","rat":0,"mw":"H","link":"Wawrinka, Stan <\/a>","confirmed_b":1},{"id":"3640","tem":"0","ctr":"23","nam":"Fognini, Fabio ","namorig":"Fognini, Fabio ","cat":"","pri":"9,8 mln.","rat":0,"mw":"H","link":"Fognini, Fabio <\/a>","confirmed_b":1},{"id":"7414","tem":"45","ctr":"51","nam":"Kyrgios, Nick ","namorig":"Kyrgios, Nick ","cat":"","pri":"9,4 mln.","rat":0,"mw":"H","link":"Kyrgios, Nick <\/a>","confirmed_b":1},{"id":"7408","tem":"45","ctr":"19","nam":"Pouille, Lucas ","namorig":"Pouille, Lucas ","cat":"","pri":"8,3 mln.","rat":0,"mw":"H","link":"Pouille, Lucas <\/a>","confirmed_b":1},{"id":"10809","tem":"45","ctr":"120","nam":"Coric, Borna ","namorig":"Coric, Borna ","cat":"","pri":"8,2 mln.","rat":0,"mw":"H","link":"Coric, Borna <\/a>","confirmed_b":1},{"id":"3615","tem":"0","ctr":"19","nam":"Gasquet, Richard ","namorig":"Gasquet, Richard ","cat":"","pri":"7,5 mln.","rat":0,"mw":"H","link":"Gasquet, Richard <\/a>","confirmed_b":1},{"id":"12466","tem":"45","ctr":"3","nam":"Fritz, Taylor ","namorig":"Fritz, Taylor ","cat":"","pri":"7,1 mln.","rat":0,"mw":"H","link":"Fritz, Taylor <\/a>","confirmed_b":1},{"id":"11475","tem":"45","ctr":"121","nam":"Basilashvili, Nikoloz ","namorig":"Basilashvili, Nikoloz ","cat":"","pri":"7 mln.","rat":0,"mw":"H","link":"Basilashvili, Nikoloz <\/a>","confirmed_b":1},{"id":"15959","tem":"45","ctr":"36","nam":"Shapovalov, Denis ","namorig":"Shapovalov, Denis ","cat":"","pri":"6,8 mln.","rat":0,"mw":"H","link":"Shapovalov, Denis <\/a>","confirmed_b":1},{"id":"12149","tem":"45","ctr":"9","nam":"Rublev, Andrey ","namorig":"Rublev, Andrey ","cat":"","pri":"6,7 mln.","rat":0,"mw":"H","link":"Rublev, Andrey <\/a>","confirmed_b":1},{"id":"3927","tem":"0","ctr":"28","nam":"Carreno Busta, Pablo ","namorig":"Carreno Busta, Pablo ","cat":"","pri":"6,3 mln.","rat":0,"mw":"H","link":"Carreno Busta, Pablo <\/a>","confirmed_b":1},{"id":"17557","tem":"45","ctr":"51","nam":"De Minaur, Alex ","namorig":"De Minaur, Alex ","cat":"","pri":"6 mln.","rat":0,"mw":"H","link":"De Minaur, Alex <\/a>","confirmed_b":1},{"id":"6635","tem":"45","ctr":"31","nam":"Schwartzman, Diego ","namorig":"Schwartzman, Diego ","cat":"","pri":"5,9 mln.","rat":0,"mw":"H","link":"Schwartzman, Diego <\/a>","confirmed_b":1},{"id":"18115","tem":"45","ctr":"23","nam":"Berrettini, Matteo ","namorig":"Berrettini, Matteo ","cat":"","pri":"5,1 mln.","rat":0,"mw":"H","link":"Berrettini, Matteo <\/a>","confirmed_b":1},{"id":"7446","tem":"45","ctr":"22","nam":"Edmund, Kyle ","namorig":"Edmund, Kyle ","cat":"","pri":"5 mln.","rat":0,"mw":"H","link":"Edmund, Kyle <\/a>","confirmed_b":1},{"id":"3594","tem":"0","ctr":"28","nam":"Verdasco, Fernando ","namorig":"Verdasco, Fernando ","cat":"","pri":"4,7 mln.","rat":0,"mw":"H","link":"Verdasco, Fernando <\/a>","confirmed_b":1},{"id":"19251","tem":"45","ctr":"33","nam":"Hurkacz, Hubert ","namorig":"Hurkacz, Hubert ","cat":"","pri":"4,5 mln.","rat":0,"mw":"H","link":"Hurkacz, Hubert <\/a>","confirmed_b":1},{"id":"3943","tem":"0","ctr":"14","nam":"Struff, Jan-Lennard ","namorig":"Struff, Jan-Lennard ","cat":"","pri":"4,2 mln.","rat":0,"mw":"H","link":"Struff, Jan-Lennard <\/a>","confirmed_b":1},{"id":"19248","tem":"45","ctr":"81","nam":"Kecmanovic, Miomir ","namorig":"Kecmanovic, Miomir ","cat":"","pri":"4 mln.","rat":0,"mw":"H","link":"Kecmanovic, Miomir <\/a>","confirmed_b":1},{"id":"3737","tem":"0","ctr":"19","nam":"Paire, Benoit ","namorig":"Paire, Benoit ","cat":"","pri":"3,9 mln.","rat":0,"mw":"H","link":"Paire, Benoit <\/a>","confirmed_b":1},{"id":"15958","tem":"45","ctr":"3","nam":"Opelka, Reilly ","namorig":"Opelka, Reilly ","cat":"","pri":"3,8 mln.","rat":0,"mw":"H","link":"Opelka, Reilly <\/a>","confirmed_b":1},{"id":"17111","tem":"45","ctr":"60","nam":"Garin, Christian ","namorig":"Garin, Christian ","cat":"","pri":"3,7 mln.","rat":0,"mw":"H","link":"Garin, Christian <\/a>","confirmed_b":1},{"id":"6634","tem":"45","ctr":"81","nam":"Lajovic, Dusan ","namorig":"Lajovic, Dusan ","cat":"","pri":"3,5 mln.","rat":0,"mw":"H","link":"Lajovic, Dusan <\/a>","confirmed_b":1},{"id":"8018","tem":"45","ctr":"25","nam":"Chung, Hyeon ","namorig":"Chung, Hyeon ","cat":"","pri":"3,4 mln.","rat":0,"mw":"H","link":"Chung, Hyeon <\/a>","confirmed_b":1},{"id":"3691","tem":"0","ctr":"95","nam":"Dimitrov, Grigor ","namorig":"Dimitrov, Grigor ","cat":"","pri":"3,4 mln.","rat":0,"mw":"H","link":"Dimitrov, Grigor <\/a>","confirmed_b":1},{"id":"10810","tem":"45","ctr":"10","nam":"Nishioka, Yoshihito ","namorig":"Nishioka, Yoshihito ","cat":"","pri":"3,3 mln.","rat":0,"mw":"H","link":"Nishioka, Yoshihito <\/a>","confirmed_b":1},{"id":"3789","tem":"0","ctr":"51","nam":"Millman, John ","namorig":"Millman, John ","cat":"","pri":"3 mln.","rat":0,"mw":"H","link":"Millman, John <\/a>","confirmed_b":1},{"id":"3948","tem":"0","ctr":"22","nam":"Evans, Daniel ","namorig":"Evans, Daniel ","cat":"","pri":"2,9 mln.","rat":0,"mw":"H","link":"Evans, Daniel <\/a>","confirmed_b":1},{"id":"3799","tem":"0","ctr":"81","nam":"Krajinovic, Filip ","namorig":"Krajinovic, Filip ","cat":"","pri":"2,9 mln.","rat":0,"mw":"H","link":"Krajinovic, Filip <\/a>","confirmed_b":1},{"id":"4174","tem":"0","ctr":"3","nam":"Johnson, Steve ","namorig":"Johnson, Steve ","cat":"","pri":"2,8 mln.","rat":0,"mw":"H","link":"Johnson, Steve <\/a>","confirmed_b":1},{"id":"10744","tem":"45","ctr":"3","nam":"Tiafoe, Frances ","namorig":"Tiafoe, Frances ","cat":"","pri":"2,8 mln.","rat":0,"mw":"H","link":"Tiafoe, Frances <\/a>","confirmed_b":1},{"id":"8019","tem":"45","ctr":"81","nam":"Djere, Laslo ","namorig":"Djere, Laslo ","cat":"","pri":"2,7 mln.","rat":0,"mw":"H","link":"Djere, Laslo <\/a>","confirmed_b":1},{"id":"3668","tem":"0","ctr":"19","nam":"Mannarino, Adrian ","namorig":"Mannarino, Adrian ","cat":"","pri":"2,7 mln.","rat":0,"mw":"H","link":"Mannarino, Adrian <\/a>","confirmed_b":1},{"id":"11472","tem":"45","ctr":"80","nam":"Fucsovics, Marton ","namorig":"Fucsovics, Marton ","cat":"","pri":"2,6 mln.","rat":0,"mw":"H","link":"Fucsovics, Marton <\/a>","confirmed_b":1},{"id":"21554","tem":"45","ctr":"19","nam":"Humbert, Ugo ","namorig":"Humbert, Ugo ","cat":"","pri":"2,6 mln.","rat":0,"mw":"H","link":"Humbert, Ugo <\/a>","confirmed_b":1},{"id":"9696","tem":"45","ctr":"51","nam":"Thompson, Jordan ","namorig":"Thompson, Jordan ","cat":"","pri":"2,6 mln.","rat":0,"mw":"H","link":"Thompson, Jordan <\/a>","confirmed_b":1},{"id":"8438","tem":"45","ctr":"19","nam":"Herbert, Pierre-Hugues ","namorig":"Herbert, Pierre-Hugues ","cat":"","pri":"2,5 mln.","rat":0,"mw":"H","link":"Herbert, Pierre-Hugues <\/a>","confirmed_b":1},{"id":"17117","tem":"45","ctr":"117","nam":"Ruud, Casper ","namorig":"Ruud, Casper ","cat":"","pri":"2,5 mln.","rat":0,"mw":"H","link":"Ruud, Casper <\/a>","confirmed_b":1},{"id":"3829","tem":"0","ctr":"77","nam":"Sousa, Joao ","namorig":"Sousa, Joao ","cat":"","pri":"2,5 mln.","rat":0,"mw":"H","link":"Sousa, Joao <\/a>","confirmed_b":1},{"id":"3986","tem":"0","ctr":"131","nam":"Albot, Radu ","namorig":"Albot, Radu ","cat":"","pri":"2,4 mln.","rat":0,"mw":"H","link":"Albot, Radu <\/a>","confirmed_b":1},{"id":"3644","tem":"0","ctr":"62","nam":"Kukushkin, Mikhail ","namorig":"Kukushkin, Mikhail ","cat":"","pri":"2,4 mln.","rat":0,"mw":"H","link":"Kukushkin, Mikhail <\/a>","confirmed_b":1},{"id":"17107","tem":"45","ctr":"3","nam":"Sandgren, Tennys ","namorig":"Sandgren, Tennys ","cat":"","pri":"2,4 mln.","rat":0,"mw":"H","link":"Sandgren, Tennys <\/a>","confirmed_b":1},{"id":"11479","tem":"45","ctr":"31","nam":"Londero, Juan Ignacio ","namorig":"Londero, Juan Ignacio ","cat":"","pri":"2,3 mln.","rat":0,"mw":"H","link":"Londero, Juan Ignacio <\/a>","confirmed_b":1},{"id":"15823","tem":"45","ctr":"23","nam":"Sonego, Lorenzo ","namorig":"Sonego, Lorenzo ","cat":"","pri":"2,3 mln.","rat":0,"mw":"H","link":"Sonego, Lorenzo <\/a>","confirmed_b":1},{"id":"16525","tem":"45","ctr":"62","nam":"Bublik, Alexander ","namorig":"Bublik, Alexander ","cat":"","pri":"2,2 mln.","rat":0,"mw":"H","link":"Bublik, Alexander <\/a>","confirmed_b":1},{"id":"19243","tem":"45","ctr":"19","nam":"Moutet, Corentin ","namorig":"Moutet, Corentin ","cat":"","pri":"2,2 mln.","rat":0,"mw":"H","link":"Moutet, Corentin <\/a>","confirmed_b":1},{"id":"17136","tem":"45","ctr":"22","nam":"Norrie, Cameron ","namorig":"Norrie, Cameron ","cat":"","pri":"2,2 mln.","rat":0,"mw":"H","link":"Norrie, Cameron <\/a>","confirmed_b":1},{"id":"19701","tem":"45","ctr":"51","nam":"Popyrin, Alexei ","namorig":"Popyrin, Alexei ","cat":"","pri":"2,2 mln.","rat":0,"mw":"H","link":"Popyrin, Alexei <\/a>","confirmed_b":1},{"id":"3708","tem":"0","ctr":"28","nam":"Ramos-Vinolas, Albert ","namorig":"Ramos-Vinolas, Albert ","cat":"","pri":"2,2 mln.","rat":0,"mw":"H","link":"Ramos-Vinolas, Albert <\/a>","confirmed_b":1},{"id":"3648","tem":"0","ctr":"134","nam":"Cuevas, Pablo ","namorig":"Cuevas, Pablo ","cat":"","pri":"2,1 mln.","rat":0,"mw":"H","link":"Cuevas, Pablo <\/a>","confirmed_b":1},{"id":"11486","tem":"45","ctr":"60","nam":"Jarry, Nicolas ","namorig":"Jarry, Nicolas ","cat":"","pri":"2,1 mln.","rat":0,"mw":"H","link":"Jarry, Nicolas <\/a>","confirmed_b":1},{"id":"3922","tem":"0","ctr":"36","nam":"Pospisil, Vasek ","namorig":"Pospisil, Vasek ","cat":"","pri":"2,1 mln.","rat":0,"mw":"H","link":"Pospisil, Vasek <\/a>","confirmed_b":1},{"id":"8557","tem":"45","ctr":"23","nam":"Cecchinato, Marco ","namorig":"Cecchinato, Marco ","cat":"","pri":"2 mln.","rat":0,"mw":"H","link":"Cecchinato, Marco <\/a>","confirmed_b":1},{"id":"8561","tem":"45","ctr":"127","nam":"Dzumhur, Damir ","namorig":"Dzumhur, Damir ","cat":"","pri":"2 mln.","rat":0,"mw":"H","link":"Dzumhur, Damir <\/a>","confirmed_b":1},{"id":"9959","tem":"45","ctr":"51","nam":"Kokkinakis, Thanasi ","namorig":"Kokkinakis, Thanasi ","cat":"","pri":"2 mln.","rat":0,"mw":"H","link":"Kokkinakis, Thanasi <\/a>","confirmed_b":1},{"id":"19244","tem":"45","ctr":"25","nam":"Kwon, Soonwoo ","namorig":"Kwon, Soonwoo ","cat":"","pri":"2 mln.","rat":0,"mw":"H","link":"Kwon, Soonwoo <\/a>","confirmed_b":1},{"id":"3672","tem":"0","ctr":"132","nam":"Berankis, Ricardas ","namorig":"Berankis, Ricardas ","cat":"","pri":"1,9 mln.","rat":0,"mw":"H","link":"Berankis, Ricardas <\/a>","confirmed_b":1},{"id":"3745","tem":"0","ctr":"31","nam":"Delbonis, Federico ","namorig":"Delbonis, Federico ","cat":"","pri":"1,9 mln.","rat":0,"mw":"H","link":"Delbonis, Federico <\/a>","confirmed_b":1},{"id":"5394","tem":"0","ctr":"3","nam":"Kudla, Denis ","namorig":"Kudla, Denis ","cat":"","pri":"1,9 mln.","rat":0,"mw":"H","link":"Kudla, Denis <\/a>","confirmed_b":1},{"id":"12337","tem":"45","ctr":"28","nam":"Munar, Jaume ","namorig":"Munar, Jaume ","cat":"","pri":"1,9 mln.","rat":0,"mw":"H","link":"Munar, Jaume <\/a>","confirmed_b":1},{"id":"3960","tem":"0","ctr":"14","nam":"Stebe, Cedrik-Marcel ","namorig":"Stebe, Cedrik-Marcel ","cat":"","pri":"1,9 mln.","rat":0,"mw":"H","link":"Stebe, Cedrik-Marcel <\/a>","confirmed_b":1},{"id":"7412","tem":"45","ctr":"78","nam":"Vesely, Jiri ","namorig":"Vesely, Jiri ","cat":"","pri":"1,9 mln.","rat":0,"mw":"H","link":"Vesely, Jiri <\/a>","confirmed_b":1},{"id":"7314","tem":"45","ctr":"28","nam":"Carballes Baena, Roberto ","namorig":"Carballes Baena, Roberto ","cat":"","pri":"1,8 mln.","rat":0,"mw":"H","link":"Carballes Baena, Roberto <\/a>","confirmed_b":1},{"id":"13524","tem":"45","ctr":"3","nam":"Fratangelo, Bjorn ","namorig":"Fratangelo, Bjorn ","cat":"","pri":"1,8 mln.","rat":0,"mw":"H","link":"Fratangelo, Bjorn <\/a>","confirmed_b":1},{"id":"3650","tem":"0","ctr":"61","nam":"Haase, Robin ","namorig":"Haase, Robin ","cat":"","pri":"1,8 mln.","rat":0,"mw":"H","link":"Haase, Robin <\/a>","confirmed_b":1},{"id":"17131","tem":"45","ctr":"26","nam":"Harris, Lloyd ","namorig":"Harris, Lloyd ","cat":"","pri":"1,8 mln.","rat":0,"mw":"H","link":"Harris, Lloyd <\/a>","confirmed_b":1},{"id":"10789","tem":"45","ctr":"36","nam":"Schnur, Brayden ","namorig":"Schnur, Brayden ","cat":"","pri":"1,8 mln.","rat":0,"mw":"H","link":"Schnur, Brayden <\/a>","confirmed_b":1},{"id":"23824","tem":"45","ctr":"23","nam":"Sinner, Jannik ","namorig":"Sinner, Jannik ","cat":"","pri":"1,8 mln.","rat":0,"mw":"H","link":"Sinner, Jannik <\/a>","confirmed_b":1},{"id":"3627","tem":"0","ctr":"28","nam":"Granollers, Marcel ","namorig":"Granollers, Marcel ","cat":"","pri":"1,7 mln.","rat":0,"mw":"H","link":"Granollers, Marcel <\/a>","confirmed_b":1},{"id":"22709","tem":"45","ctr":"19","nam":"Hoang, Antoine ","namorig":"Hoang, Antoine ","cat":"","pri":"1,7 mln.","rat":0,"mw":"H","link":"Hoang, Antoine <\/a>","confirmed_b":1},{"id":"17135","tem":"45","ctr":"33","nam":"Majchrzak, Kamil ","namorig":"Majchrzak, Kamil ","cat":"","pri":"1,7 mln.","rat":0,"mw":"H","link":"Majchrzak, Kamil <\/a>","confirmed_b":1},{"id":"15830","tem":"45","ctr":"19","nam":"Barrere, Gregoire ","namorig":"Barrere, Gregoire ","cat":"","pri":"1,6 mln.","rat":0,"mw":"H","link":"Barrere, Gregoire <\/a>","confirmed_b":1},{"id":"3875","tem":"0","ctr":"52","nam":"Copil, Marius ","namorig":"Copil, Marius ","cat":"","pri":"1,6 mln.","rat":0,"mw":"H","link":"Copil, Marius <\/a>","confirmed_b":1},{"id":"19253","tem":"45","ctr":"86","nam":"Dellien, Hugo ","namorig":"Dellien, Hugo ","cat":"","pri":"1,6 mln.","rat":0,"mw":"H","link":"Dellien, Hugo <\/a>","confirmed_b":1},{"id":"17175","tem":"45","ctr":"3","nam":"Eubanks, Christopher ","namorig":"Eubanks, Christopher ","cat":"","pri":"1,6 mln.","rat":0,"mw":"H","link":"Eubanks, Christopher <\/a>","confirmed_b":1},{"id":"10798","tem":"45","ctr":"3","nam":"Giron, Marcos ","namorig":"Giron, Marcos ","cat":"","pri":"1,6 mln.","rat":0,"mw":"H","link":"Giron, Marcos <\/a>","confirmed_b":1},{"id":"17138","tem":"45","ctr":"2","nam":"Gunneswaran, Prajnesh ","namorig":"Gunneswaran, Prajnesh ","cat":"","pri":"1,6 mln.","rat":0,"mw":"H","link":"Gunneswaran, Prajnesh <\/a>","confirmed_b":1},{"id":"18575","tem":"45","ctr":"14","nam":"Koepfer, Dominik ","namorig":"Koepfer, Dominik ","cat":"","pri":"1,6 mln.","rat":0,"mw":"H","link":"Koepfer, Dominik <\/a>","confirmed_b":1},{"id":"11478","tem":"45","ctr":"110","nam":"Kovalik, Jozef ","namorig":"Kovalik, Jozef ","cat":"","pri":"1,6 mln.","rat":0,"mw":"H","link":"Kovalik, Jozef <\/a>","confirmed_b":1},{"id":"3844","tem":"0","ctr":"9","nam":"Donskoy, Evgeny ","namorig":"Donskoy, Evgeny ","cat":"","pri":"1,5 mln.","rat":0,"mw":"H","link":"Donskoy, Evgeny <\/a>","confirmed_b":1},{"id":"15868","tem":"45","ctr":"11","nam":"Escobedo, Ernesto ","namorig":"Escobedo, Ernesto ","cat":"","pri":"1,5 mln.","rat":0,"mw":"H","link":"Escobedo, Ernesto <\/a>","confirmed_b":1},{"id":"10927","tem":"45","ctr":"84","nam":"Gerasimov, Egor ","namorig":"Gerasimov, Egor ","cat":"","pri":"1,5 mln.","rat":0,"mw":"H","link":"Gerasimov, Egor <\/a>","confirmed_b":1},{"id":"6490","tem":"45","ctr":"94","nam":"Laaksonen, Henri ","namorig":"Laaksonen, Henri ","cat":"","pri":"1,5 mln.","rat":0,"mw":"H","link":"Laaksonen, Henri <\/a>","confirmed_b":1},{"id":"15649","tem":"45","ctr":"5","nam":"Monteiro, Thiago ","namorig":"Monteiro, Thiago ","cat":"","pri":"1,5 mln.","rat":0,"mw":"H","link":"Monteiro, Thiago <\/a>","confirmed_b":1},{"id":"24341","tem":"45","ctr":"3","nam":"Svajda, Zachary ","namorig":"Svajda, Zachary ","cat":"","pri":"1,5 mln.","rat":0,"mw":"H","link":"Svajda, Zachary <\/a>","confirmed_b":1},{"id":"20268","tem":"45","ctr":"37","nam":"Benchetrit, Elliot ","namorig":"Benchetrit, Elliot ","cat":"","pri":"1,4 mln.","rat":0,"mw":"H","link":"Benchetrit, Elliot <\/a>","confirmed_b":1},{"id":"21543","tem":"45","ctr":"3","nam":"Brooksby, Jenson ","namorig":"Brooksby, Jenson ","cat":"","pri":"1,4 mln.","rat":0,"mw":"H","link":"Brooksby, Jenson <\/a>","confirmed_b":1},{"id":"16461","tem":"45","ctr":"84","nam":"Ivashka, Ilya ","namorig":"Ivashka, Ilya ","cat":"","pri":"1,4 mln.","rat":0,"mw":"H","link":"Ivashka, Ilya <\/a>","confirmed_b":1},{"id":"19250","tem":"45","ctr":"2","nam":"Nagal, Sumit ","namorig":"Nagal, Sumit ","cat":"","pri":"1,2 mln.","rat":0,"mw":"H","link":"Nagal, Sumit <\/a>","confirmed_b":1},{"id":"6637","tem":"45","ctr":"31","nam":"Trungelliti, Marco ","namorig":"Trungelliti, Marco ","cat":"","pri":"1,2 mln.","rat":0,"mw":"H","link":"Trungelliti, Marco <\/a>","confirmed_b":1}]; var sportsmenTeams = []; var showTeams = 0; //*********************** //SPORTSMEN TABLE HEADERS //*********************** var headersTableSportsmen = [ { 'sTitle': 'N°' }, { 'sTitle': 'Groupe' , 'bSearchable': false, 'bVisible': false }, { 'sTitle': 'Pays', 'sSortDataType': 'sortCountryFlag', sType : "text" }, { 'sTitle': 'Joueur de tennis'}, { 'sTitle': 'Valeur', 'sSortDataType': 'sortMln', 'sType': 'numeric' }, { 'sTitle': 'Équipe' , 'bSearchable': false, 'bVisible': false }, { 'sTitle': 'H/F' , 'bSearchable': false, 'bVisible': false } ]; //*********************** //TEAMS TABLE HEADERS //*********************** var headersTableTeams = [ {'sTitle': 'N°'}, {'sTitle': '' , 'bSearchable': false, 'bVisible': false }, {'sTitle': 'Pays' , 'sSortDataType': 'sortCountryFlag', sType : 'text' }, { 'sTitle': ''}, { 'sTitle': 'Valeur', 'sSortDataType': 'sortMln', 'sType': 'numeric' } ]; //*********************** //SPORTSMEN TABLE CONTENT //*********************** var contentTableSportsmen = []; $.each(sportsmen, function(k, v) { contentTableSportsmen.push([ k + 1, v['cat'], getFlag(v['ctr']), v['link'], v['pri'], isset(teams[v['tem']])? teams[v['tem']]['name']:'', v['mw'] ]); }); //*********************** //TEAMS TABLE CONTENT //*********************** var contentTableTeams = []; $.each(sportsmenTeams, function(k, v) { contentTableTeams.push([ k + 1, "", getFlag(v['ctr']), v['nam'], v['pri'] ]); }); function isset (va) { return typeof va != 'undefined'; } $(document).ready(function() { $.fn.dataTable.ext.order['sortMln'] = function (settings, col) { return this.api().column(col, {order: 'index'}).nodes().map(function (td) { return parseFloat($(td).text().replace(' mln.', '').replace(',', '.')); } ); }; if (sportsmen.length) { var sportsmenTable = $('#tblSportsmen').dataTable( { "bPaginate": false, "bFilter": true, "bInfo": false, "bAutoWidth": true, "aoColumns" : headersTableSportsmen, "aaData": contentTableSportsmen, "bAutoWidth": false } ); } if (sportsmenTeams.length) { var sportsmenTeamsTable = $('#tblTeams').dataTable( { "bPaginate": false, "bFilter": true, "bInfo": false, "bAutoWidth": true, "aoColumns" : headersTableTeams, "aaData": contentTableTeams, "bAutoWidth": false } ); $('#teamsOverview').show(); } } ); function getFlag(id, margin) { if (!id || typeof countries[id] === "undefined" ) return ""; if (typeof margin == 'undefined') margin = true; return ""; }