$(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 = {"1":{"id":"1","country":"China","countryCode":"CN","countryTr":"la Chine"},"2":{"id":"2","country":"India","countryCode":"IN","countryTr":"l\u2019Inde"},"3":{"id":"3","country":"United States","countryCode":"US","countryTr":"les Etats-Unis"},"4":{"id":"4","country":"Indonesia","countryCode":"ID","countryTr":"l\u2019Indon\u00e9sie"},"5":{"id":"5","country":"Brasil","countryCode":"BR","countryTr":"le Br\u00e9sil"},"6":{"id":"6","country":"Pakistan","countryCode":"PK","countryTr":"le Pakistan"},"7":{"id":"7","country":"Bangladesh","countryCode":"BD","countryTr":"le Bangladesh"},"8":{"id":"8","country":"Nigeria","countryCode":"NG","countryTr":"le Nig\u00e9ria"},"9":{"id":"9","country":"Russia","countryCode":"RU","countryTr":"la Russie"},"10":{"id":"10","country":"Japan","countryCode":"JP","countryTr":"le Japon"},"11":{"id":"11","country":"Mexico","countryCode":"MX","countryTr":"le Mexique"},"12":{"id":"12","country":"Philippines","countryCode":"PH","countryTr":"les Philippines"},"13":{"id":"13","country":"Vietnam","countryCode":"VN","countryTr":"le Vietnam"},"14":{"id":"14","country":"Germany","countryCode":"DE","countryTr":"l\u2019Allemagne"},"15":{"id":"15","country":"Ethiopia","countryCode":"ET","countryTr":"l\u2019Ethiopie"},"16":{"id":"16","country":"Egypt","countryCode":"EG","countryTr":"l\u2019Egypte"},"17":{"id":"17","country":"Turkey","countryCode":"TR","countryTr":"la Turquie"},"18":{"id":"18","country":"Iran","countryCode":"IR","countryTr":"l\u2019Iran"},"19":{"id":"19","country":"France","countryCode":"FR","countryTr":"la France"},"20":{"id":"20","country":"Thailand","countryCode":"TH","countryTr":"la Thailande"},"21":{"id":"21","country":"Kongo (Kinshasa)","countryCode":"CD","countryTr":"le Congo (Kinshasa)"},"22":{"id":"22","country":"United Kingdom","countryCode":"GB","countryTr":"le Royaume-Uni"},"23":{"id":"23","country":"Italy","countryCode":"IT","countryTr":"l\u2019Italie"},"24":{"id":"24","country":"Myanmar (Burma)","countryCode":"MM","countryTr":"le Myanmar (Burma)"},"25":{"id":"25","country":"South Korea","countryCode":"KR","countryTr":"la Cor\u00e9e du Sud"},"26":{"id":"26","country":"South Africa","countryCode":"ZA","countryTr":"l\u2019Afrique du Sud"},"27":{"id":"27","country":"Ukraine","countryCode":"UA","countryTr":"l\u2019Ukraine"},"28":{"id":"28","country":"Spain","countryCode":"ES","countryTr":"l\u2019Espagne"},"29":{"id":"29","country":"Colombia","countryCode":"CO","countryTr":"la Colombie"},"30":{"id":"30","country":"Tanzania","countryCode":"TZ","countryTr":"la Tanzanie"},"31":{"id":"31","country":"Argentina","countryCode":"AR","countryTr":"l\u2019Argentine"},"32":{"id":"32","country":"Sudan","countryCode":"SD","countryTr":"le Soudan"},"33":{"id":"33","country":"Poland","countryCode":"PL","countryTr":"la Pologne"},"34":{"id":"34","country":"Kenya","countryCode":"KE","countryTr":"le Kenya"},"35":{"id":"35","country":"Algeria","countryCode":"DZ","countryTr":"l\u2019Alg\u00e9rie"},"36":{"id":"36","country":"Canada","countryCode":"CA","countryTr":"le Canada"},"37":{"id":"37","country":"Morocco","countryCode":"MA","countryTr":"le Maroc"},"38":{"id":"38","country":"Uganda","countryCode":"UG","countryTr":"l\u2019Ouganda"},"39":{"id":"39","country":"Iraq","countryCode":"IQ","countryTr":"l\u2019Iraq"},"40":{"id":"40","country":"Peru","countryCode":"PE","countryTr":"le P\u00e9rou"},"41":{"id":"41","country":"Nepal","countryCode":"NP","countryTr":"le N\u00e9pal"},"42":{"id":"42","country":"Venezuela","countryCode":"VE","countryTr":"la Venezuela"},"43":{"id":"43","country":"Malaysia","countryCode":"MY","countryTr":"la Malaisie"},"44":{"id":"44","country":"Uzbekistan","countryCode":"UZ","countryTr":"l\u2019Oezb\u00e9kistan"},"45":{"id":"45","country":"Afghanistan","countryCode":"AF","countryTr":"l\u2019Afghanistan"},"46":{"id":"46","country":"Saudi Arabia","countryCode":"SA","countryTr":"l\u2019Arabie du Sud"},"47":{"id":"47","country":"North Korea","countryCode":"KP","countryTr":"la Cor\u00e9e du Nord"},"48":{"id":"48","country":"Ghana","countryCode":"GH","countryTr":"le Ghana"},"49":{"id":"49","country":"Taiwan","countryCode":"TW","countryTr":"l\u2019\u00eele de Taiwan"},"50":{"id":"50","country":"Yemen","countryCode":"YE","countryTr":"le Yemen"},"51":{"id":"51","country":"Australia","countryCode":"AU","countryTr":"l\u2019Australie"},"52":{"id":"52","country":"Romania","countryCode":"RO","countryTr":"la Roumanie"},"53":{"id":"53","country":"Mozambique","countryCode":"MZ","countryTr":"le Mozambique"},"54":{"id":"54","country":"Syria","countryCode":"SY","countryTr":"la Syrie"},"55":{"id":"55","country":"Madagascar","countryCode":"MG","countryTr":"le Madagascar"},"56":{"id":"56","country":"Sri Lanka","countryCode":"LK","countryTr":"le Sri Lanka"},"57":{"id":"57","country":"Cote d'Ivoire","countryCode":"CI","countryTr":"la C\u00f4te d\u2019Ivoire"},"58":{"id":"58","country":"Cameroon","countryCode":"CM","countryTr":"le Cameroun"},"59":{"id":"59","country":"Angola","countryCode":"AO","countryTr":"l\u2019Angola"},"60":{"id":"60","country":"Chile","countryCode":"CL","countryTr":"la Chile"},"61":{"id":"61","country":"Netherlands","countryCode":"NL","countryTr":"les Pays-Bas"},"62":{"id":"62","country":"Kazakhstan","countryCode":"KZ","countryTr":"le Kazakhstan"},"63":{"id":"63","country":"Burkina Faso","countryCode":"BF","countryTr":"le Burkina Faso"},"64":{"id":"64","country":"Niger","countryCode":"NE","countryTr":"le Niger"},"65":{"id":"65","country":"Malawi","countryCode":"MW","countryTr":"le Malawi"},"66":{"id":"66","country":"Ecuador","countryCode":"EC","countryTr":"l\u2019Equateur"},"67":{"id":"67","country":"Cambodia","countryCode":"KH","countryTr":"le Cambodja"},"68":{"id":"68","country":"Guatemala","countryCode":"GT","countryTr":"le Guatemala"},"69":{"id":"69","country":"Zimbabwe","countryCode":"ZW","countryTr":"le Zimbabwe"},"70":{"id":"70","country":"Senegal","countryCode":"SN","countryTr":"le S\u00e9n\u00e9gal"},"71":{"id":"71","country":"Mali","countryCode":"ML","countryTr":"le Mali"},"72":{"id":"72","country":"Zambia","countryCode":"ZM","countryTr":"la Zambie"},"73":{"id":"73","country":"Cuba","countryCode":"CU","countryTr":"le Cuba"},"74":{"id":"74","country":"Greece","countryCode":"GR","countryTr":"la Gr\u00e8ce"},"75":{"id":"75","country":"Chad","countryCode":"TD","countryTr":"le Tchad"},"76":{"id":"76","country":"Belgium","countryCode":"BE","countryTr":"la Belgique"},"77":{"id":"77","country":"Portugal","countryCode":"PT","countryTr":"le Portugal"},"78":{"id":"78","country":"Czech Republic","countryCode":"CZ","countryTr":"la R\u00e9publique Tch\u00e8que"},"79":{"id":"79","country":"Tunisia","countryCode":"TN","countryTr":"la Tunisie"},"80":{"id":"80","country":"Hungary","countryCode":"HU","countryTr":"l\u2019Hongrie"},"81":{"id":"81","country":"Serbia","countryCode":"RS","countryTr":"la Servie"},"82":{"id":"82","country":"Dominican Republic","countryCode":"DO","countryTr":"la R\u00e9publique Dominicaine"},"83":{"id":"83","country":"Rwanda","countryCode":"RW","countryTr":"le Rwanda"},"84":{"id":"84","country":"Belarus","countryCode":"BY","countryTr":"Belarus"},"85":{"id":"85","country":"Haiti","countryCode":"HT","countryTr":"le Ha\u00efti"},"86":{"id":"86","country":"Bolivia","countryCode":"BO","countryTr":"la Bolivie"},"87":{"id":"87","country":"Guinea","countryCode":"GN","countryTr":"la Guin\u00e9e"},"88":{"id":"88","country":"Sweden","countryCode":"SE","countryTr":"la Su\u00e8de"},"89":{"id":"89","country":"Benin","countryCode":"BJ","countryTr":"le B\u00e9nin"},"90":{"id":"90","country":"Somalia","countryCode":"SO","countryTr":"la Somalie"},"91":{"id":"91","country":"Azerbaijan","countryCode":"AZ","countryTr":"l\u2019Azerbaijan"},"92":{"id":"92","country":"Burundi","countryCode":"BI","countryTr":"le Burundi"},"93":{"id":"93","country":"Austria","countryCode":"AT","countryTr":"l\u2019Autriche"},"94":{"id":"94","country":"Swiss","countryCode":"CH","countryTr":"la Suisse"},"95":{"id":"95","country":"Bulgaria","countryCode":"BG","countryTr":"la Bulgarie"},"96":{"id":"96","country":"Israel","countryCode":"IL","countryTr":"Isra\u00ebl"},"97":{"id":"97","country":"Honduras","countryCode":"HN","countryTr":"Honduras"},"98":{"id":"98","country":"Hong Kong","countryCode":"HK","countryTr":"Hong Kong"},"99":{"id":"99","country":"El Salvador","countryCode":"SV","countryTr":"El Salvador"},"100":{"id":"100","country":"Tajikistan","countryCode":"TJ","countryTr":"le Tadjikistan"},"101":{"id":"101","country":"Togo","countryCode":"TG","countryTr":"le Togo"},"102":{"id":"102","country":"Papua New Guinea","countryCode":"PG","countryTr":"la Papouasie-Nouvelle-Guin\u00e9e"},"103":{"id":"103","country":"Libya","countryCode":"LY","countryTr":"la Libie"},"104":{"id":"104","country":"Paraguay","countryCode":"PY","countryTr":"le Paraguay"},"105":{"id":"105","country":"Jordan","countryCode":"JO","countryTr":"la Jordanie"},"106":{"id":"106","country":"Sierra Leone","countryCode":"SL","countryTr":"la Sierra Leone"},"107":{"id":"107","country":"Laos","countryCode":"LA","countryTr":"le Laos"},"108":{"id":"108","country":"Nicaragua","countryCode":"NI","countryTr":"le Nicaragua"},"109":{"id":"109","country":"Denmark","countryCode":"DK","countryTr":"le Danemark"},"110":{"id":"110","country":"Slovakia","countryCode":"SK","countryTr":"la Slovaquie"},"111":{"id":"111","country":"Tibet","countryCode":"TI","countryTr":"le Tibet"},"112":{"id":"112","country":"Finland","countryCode":"FI","countryTr":"la Finlande"},"113":{"id":"113","country":"Kyrgyzstan","countryCode":"KG","countryTr":"le Kirghizistan"},"114":{"id":"114","country":"Turkmenistan","countryCode":"TM","countryTr":"le Turkm\u00e9nistan"},"115":{"id":"115","country":"Eritrea","countryCode":"ER","countryTr":"l\u2019Erithr\u00e9e"},"116":{"id":"116","country":"Singapore","countryCode":"SG","countryTr":"le Singapour"},"117":{"id":"117","country":"Norway","countryCode":"NO","countryTr":"la Norv\u00e8ge"},"118":{"id":"118","country":"Ireland","countryCode":"IE","countryTr":"l\u2019Irlande"},"119":{"id":"119","country":"Costa Rica","countryCode":"CR","countryTr":"le Costa Rica"},"120":{"id":"120","country":"Croatia","countryCode":"HR","countryTr":"la Croatie"},"121":{"id":"121","country":"Georgia","countryCode":"GE","countryTr":"la G\u00e9orgie"},"122":{"id":"122","country":"United Arab Emirates","countryCode":"AE","countryTr":"les Emirats arabes unis"},"123":{"id":"123","country":"Central African Republic","countryCode":"CF","countryTr":"la R\u00e9publique centrafricaine"},"124":{"id":"124","country":"New Zealand","countryCode":"NZ","countryTr":"la Nouvelle Z\u00e9lande"},"125":{"id":"125","country":"Lebanon","countryCode":"LB","countryTr":"le Libanon"},"126":{"id":"126","country":"Puerto Rico","countryCode":"PR","countryTr":"Porto Rico"},"127":{"id":"127","country":"Bosnia and Herzegovina","countryCode":"BA","countryTr":"la Bosnie et Herzegovina"},"128":{"id":"128","country":"Kongo (Brazzaville)","countryCode":"CG","countryTr":"le Congo (Brazzaville)"},"129":{"id":"129","country":"Palestina","countryCode":"PS","countryTr":"le Palestina"},"130":{"id":"130","country":"Liberia","countryCode":"LR","countryTr":"le Liberia"},"131":{"id":"131","country":"Moldova","countryCode":"MD","countryTr":"la Moldavie"},"132":{"id":"132","country":"Lithuania","countryCode":"LT","countryTr":"la Lituanie"},"133":{"id":"133","country":"Panama","countryCode":"PA","countryTr":"le Panama"},"134":{"id":"134","country":"Uruguay","countryCode":"UY","countryTr":"l\u2019Uruguay"},"135":{"id":"135","country":"Armenia","countryCode":"AM","countryTr":"l\u2019Arm\u00e9nie"},"136":{"id":"136","country":"Albania","countryCode":"AL","countryTr":"l\u2019Albanie"},"137":{"id":"137","country":"Mauritania","countryCode":"MR","countryTr":"la Mauritanie"},"138":{"id":"138","country":"Kuwait","countryCode":"KW","countryTr":"le Kowe\u00eft"},"139":{"id":"139","country":"Jamaica","countryCode":"JM","countryTr":"la Jama\u00efque"},"140":{"id":"140","country":"Mongolia","countryCode":"MN","countryTr":"la Mongolie"},"141":{"id":"141","country":"Oman","countryCode":"OM","countryTr":"l\u2019Oman"},"142":{"id":"142","country":"Latvia","countryCode":"LV","countryTr":"la Lettonie"},"143":{"id":"143","country":"Namibia","countryCode":"NA","countryTr":"la Namibie"},"144":{"id":"144","country":"North Macedonia","countryCode":"MK","countryTr":"Mac\u00e9doine du Nord"},"145":{"id":"145","country":"Slovenia","countryCode":"SI","countryTr":"la Slov\u00e9nie"},"146":{"id":"146","country":"Lesotho","countryCode":"LS","countryTr":"le Lesotho"},"147":{"id":"147","country":"Botswana","countryCode":"BW","countryTr":"le Botswana"},"148":{"id":"148","country":"Gambia","countryCode":"GM","countryTr":"la Gambie"},"149":{"id":"149","country":"Guinea-Bissau","countryCode":"GW","countryTr":"la Guin\u00e9e-Bissau"},"150":{"id":"150","country":"Estonia","countryCode":"EE","countryTr":"l\u2019Estonie"},"151":{"id":"151","country":"Trinidad and Tobago","countryCode":"TT","countryTr":"Trinidad et Tobago"},"152":{"id":"152","country":"Gabon","countryCode":"GA","countryTr":"le Gabon"},"153":{"id":"153","country":"Mauritius","countryCode":"MU","countryTr":"l\u2019\u00eele Maurice"},"154":{"id":"154","country":"East Timor","countryCode":"TL","countryTr":"le Timor de l\u2019Est"},"155":{"id":"155","country":"Swaziland","countryCode":"SZ","countryTr":"le Swaziland"},"156":{"id":"156","country":"Qatar","countryCode":"QA","countryTr":"le Qatar"},"157":{"id":"157","country":"Djibouti","countryCode":"DJ","countryTr":"le Djibouti"},"158":{"id":"158","country":"Fiji","countryCode":"FJ","countryTr":"les Fidji"},"159":{"id":"159","country":"Cyprus","countryCode":"CY","countryTr":"la Chypre"},"160":{"id":"160","country":"Bahrain","countryCode":"BH","countryTr":"le Bahre\u00efn"},"161":{"id":"161","country":"Guyana","countryCode":"GY","countryTr":"Guyana"},"162":{"id":"162","country":"Bhutan","countryCode":"BT","countryTr":"le Bhoutan"},"163":{"id":"163","country":"Comoros","countryCode":"KM","countryTr":"les Comores"},"164":{"id":"164","country":"Montenegro","countryCode":"ME","countryTr":"le Mont\u00e9n\u00e9gro"},"165":{"id":"165","country":"Macau","countryCode":"MO","countryTr":"le Macao"},"166":{"id":"166","country":"Cape Verde","countryCode":"CV","countryTr":"les \u00eeles du Cap-Vert"},"167":{"id":"167","country":"Equatorial Guinea","countryCode":"GQ","countryTr":"la Guin\u00e9e \u00e9quatoriale"},"168":{"id":"168","country":"Solomon Islands","countryCode":"SB","countryTr":"les \u00eeles Salomon"},"169":{"id":"169","country":"Luxembourg","countryCode":"LU","countryTr":"le Luxembourg"},"170":{"id":"170","country":"Western Sahara","countryCode":"EH","countryTr":"le Sahara de l\u2019Ouest"},"171":{"id":"171","country":"Surinam","countryCode":"SR","countryTr":"le Surinam"},"172":{"id":"172","country":"Malta","countryCode":"MT","countryTr":"la Malte"},"173":{"id":"173","country":"Brunei","countryCode":"BN","countryTr":"le Brunei"},"174":{"id":"174","country":"Bahamas","countryCode":"BS","countryTr":"les Bahamas"},"175":{"id":"175","country":"Iceland","countryCode":"IS","countryTr":"l\u2019Islande"},"176":{"id":"176","country":"Maldives","countryCode":"MV","countryTr":"les \u00eeles Maldives"},"177":{"id":"177","country":"Barbados","countryCode":"BB","countryTr":"la Barbade"},"178":{"id":"178","country":"Belize","countryCode":"BZ","countryTr":"le Belize"},"179":{"id":"179","country":"French Polynesia","countryCode":"PF","countryTr":"la Polyn\u00e9sie fran\u00e7aise"},"180":{"id":"180","country":"New Caledonia","countryCode":"NC","countryTr":"la Nouvelle Cal\u00e9donie"},"181":{"id":"181","country":"Vanuatu","countryCode":"VU","countryTr":"la R\u00e9publique de Vanuatu"},"182":{"id":"182","country":"Netherlands Antilles","countryCode":"AN","countryTr":"les Antilles n\u00e9erlandaises"},"183":{"id":"183","country":"Samoa","countryCode":"WS","countryTr":"la Samoa"},"184":{"id":"184","country":"Mayotte","countryCode":"YT","countryTr":"la Mayotte"},"185":{"id":"185","country":"Guam","countryCode":"GU","countryTr":"le Territoire de Guam"},"186":{"id":"186","country":"Saint Lucia","countryCode":"LC","countryTr":"la Sainte-Lucie"},"187":{"id":"187","country":"Sao Tome and Principe","countryCode":"ST","countryTr":"Soa Tom\u00e9-et-Principe"},"188":{"id":"188","country":"Saint Vincent and the Grenadines","countryCode":"VC","countryTr":"Saint-Vincent et les Grenadines"},"189":{"id":"189","country":"Virgin Islands (U.S.)","countryCode":"VI","countryTr":"les \u00eeles vierges (E.U.)"},"190":{"id":"190","country":"Federated States of Micronesia","countryCode":"FM","countryTr":"les Etats F\u00e9d\u00e9raux de Micron\u00e9sie"},"191":{"id":"191","country":"Grenada","countryCode":"GD","countryTr":"la Grenade"},"192":{"id":"192","country":"Aruba","countryCode":"AW","countryTr":"l\u2019Aruba"},"193":{"id":"193","country":"Tonga","countryCode":"TO","countryTr":"les Tonga"},"194":{"id":"194","country":"Kiribati","countryCode":"KI","countryTr":"la Kiribati"},"195":{"id":"195","country":"Jersey","countryCode":"JE","countryTr":"Jersey"},"196":{"id":"196","country":"Seychelles","countryCode":"SC","countryTr":"les iles Seychelles"},"197":{"id":"197","country":"Antigua and Barbuda","countryCode":"AG","countryTr":"Antigua-et-Barbuda"},"198":{"id":"198","country":"Northern Mariana Islands","countryCode":"MP","countryTr":"les \u00eeles Mariannes du Nord"},"199":{"id":"199","country":"Andorra","countryCode":"AD","countryTr":"l\u2019Andorre"},"200":{"id":"200","country":"Isle of Man","countryCode":"IM","countryTr":"l\u2019\u00eele de Man"},"201":{"id":"201","country":"Dominica","countryCode":"DM","countryTr":"la Dominique"},"202":{"id":"202","country":"American Samoa","countryCode":"AS","countryTr":"Samoa am\u00e9ricaines"},"203":{"id":"203","country":"Bermuda","countryCode":"BM","countryTr":"les Bermudes"},"204":{"id":"204","country":"Guernsey","countryCode":"GG","countryTr":"Guernsey"},"205":{"id":"205","country":"Marshall Islands","countryCode":"MH","countryTr":"les \u00eeles Marshall"},"206":{"id":"206","country":"Greenland","countryCode":"GL","countryTr":"le Groenland"},"207":{"id":"207","country":"Saint Kitts and Nevis","countryCode":"KN","countryTr":"Saint Kitts et Nevis"},"208":{"id":"208","country":"Liechtenstein","countryCode":"LI","countryTr":"le Liechtenstein"},"209":{"id":"209","country":"Monaco","countryCode":"MC","countryTr":"Monaco"},"210":{"id":"210","country":"San Marino","countryCode":"SM","countryTr":"Saint-Marin"},"211":{"id":"211","country":"Palau","countryCode":"PW","countryTr":"Palau"},"212":{"id":"212","country":"Tuvalu","countryCode":"TV","countryTr":"Tuvalu"},"213":{"id":"213","country":"Nauru","countryCode":"NR","countryTr":"Nauru"},"214":{"id":"214","country":"England","countryCode":"EN","countryTr":"Angleterre"},"215":{"id":"215","country":"Scotland","countryCode":"SF","countryTr":"\u00c9cosse"},"216":{"id":"216","country":"Wales","countryCode":"WL","countryTr":"Pays de Galles"},"217":{"id":"217","country":"Northern Ireland","countryCode":"NIE","countryTr":"Irlande du Nord"},"220":{"id":"220","country":"Cayman Islands","countryCode":"KY","countryTr":"Cayman Islands"},"221":{"id":"221","country":"British Virgin Islands","countryCode":"VG","countryTr":"British Virgin Islands"},"223":{"id":"223","country":"Kosovo","countryCode":"XK","countryTr":"Kosovo"},"224":{"id":"224","country":"Cook Islands","countryCode":"CK","countryTr":"Cook Islands"},"225":{"id":"225","country":"Refugee Athletes","countryCode":"RX","countryTr":"Refugee Athletes"},"226":{"id":"226","country":"South Sudan","countryCode":"SSD","countryTr":"South Sudan"},"227":{"id":"227","country":"Independent Olympians","countryCode":"IOA","countryTr":"Independent Olympians"},"229":{"id":"229","country":"Korea","countryCode":"KX","countryTr":"Korea"},"230":{"id":"230","country":"Anguilla","countryCode":"AI","countryTr":"Anguilla"},"231":{"id":"231","country":"Turks and Caicos","countryCode":"TC","countryTr":"Turks and Caicos"},"218":{"id":"218","country":"Gibraltar","countryCode":"GI","countryTr":"Gibraltar"}}; var teams = [{"id":0,"name":""}]; var sportsmen = []; var sportsmenTeams = [{"id":"5861","ctr":"117","nam":"la Norv\u00e8ge","namorig":"Norway","cat":"","pri":"40 mln.","rat":0,"link":"la Norv\u00e8ge<\/a>","confirmed_b":1},{"id":"5758","ctr":"14","nam":"l\u2019Allemagne","namorig":"Germany","cat":"","pri":"37,8 mln.","rat":0,"link":"l\u2019Allemagne<\/a>","confirmed_b":1},{"id":"5780","ctr":"36","nam":"le Canada","namorig":"Canada","cat":"","pri":"31,2 mln.","rat":0,"link":"le Canada<\/a>","confirmed_b":1},{"id":"5747","ctr":"3","nam":"les Etats-Unis","namorig":"United States","cat":"","pri":"28,6 mln.","rat":0,"link":"les Etats-Unis<\/a>","confirmed_b":1},{"id":"5763","ctr":"19","nam":"la France","namorig":"France","cat":"","pri":"19,7 mln.","rat":0,"link":"la France<\/a>","confirmed_b":1},{"id":"5805","ctr":"61","nam":"les Pays-Bas","namorig":"Netherlands","cat":"","pri":"18,5 mln.","rat":0,"link":"les Pays-Bas<\/a>","confirmed_b":1},{"id":"5754","ctr":"10","nam":"le Japon","namorig":"Japan","cat":"","pri":"15,8 mln.","rat":0,"link":"le Japon<\/a>","confirmed_b":1},{"id":"5837","ctr":"93","nam":"l\u2019Autriche","namorig":"Austria","cat":"","pri":"14,9 mln.","rat":0,"link":"l\u2019Autriche<\/a>","confirmed_b":1},{"id":"5832","ctr":"88","nam":"la Su\u00e8de","namorig":"Sweden","cat":"","pri":"14,7 mln.","rat":0,"link":"la Su\u00e8de<\/a>","confirmed_b":1},{"id":"5769","ctr":"25","nam":"la Cor\u00e9e du Sud","namorig":"South Korea","cat":"","pri":"14,1 mln.","rat":0,"link":"la Cor\u00e9e du Sud<\/a>","confirmed_b":1},{"id":"5838","ctr":"94","nam":"la Suisse","namorig":"Swiss","cat":"","pri":"13,5 mln.","rat":0,"link":"la Suisse<\/a>","confirmed_b":1},{"id":"5767","ctr":"23","nam":"l\u2019Italie","namorig":"Italy","cat":"","pri":"11,6 mln.","rat":0,"link":"l\u2019Italie<\/a>","confirmed_b":1},{"id":"5745","ctr":"1","nam":"la Chine","namorig":"China","cat":"","pri":"9,4 mln.","rat":0,"link":"la Chine<\/a>","confirmed_b":1},{"id":"19936","ctr":"225","nam":"Olympic Athletes from Russia","namorig":"Olympic Athletes from Russia","cat":"","pri":"7,8 mln.","rat":0,"link":"Olympic Athletes from Russia<\/a>","confirmed_b":1},{"id":"5856","ctr":"112","nam":"la Finlande","namorig":"Finland","cat":"","pri":"6,3 mln.","rat":0,"link":"la Finlande<\/a>","confirmed_b":1},{"id":"5828","ctr":"84","nam":"Belarus","namorig":"Belarus","cat":"","pri":"4,2 mln.","rat":0,"link":"Belarus<\/a>","confirmed_b":1},{"id":"5822","ctr":"78","nam":"la R\u00e9publique Tch\u00e8que","namorig":"Czech Republic","cat":"","pri":"3,9 mln.","rat":0,"link":"la R\u00e9publique Tch\u00e8que<\/a>","confirmed_b":1},{"id":"5854","ctr":"110","nam":"la Slovaquie","namorig":"Slovakia","cat":"","pri":"3,8 mln.","rat":0,"link":"la Slovaquie<\/a>","confirmed_b":1},{"id":"5766","ctr":"22","nam":"le Royaume-Uni","namorig":"Great Britain","cat":"","pri":"3,7 mln.","rat":0,"link":"le Royaume-Uni<\/a>","confirmed_b":1},{"id":"5777","ctr":"33","nam":"la Pologne","namorig":"Poland","cat":"","pri":"3,3 mln.","rat":0,"link":"la Pologne<\/a>","confirmed_b":1},{"id":"5795","ctr":"51","nam":"l\u2019Australie","namorig":"Australia","cat":"","pri":"3,2 mln.","rat":0,"link":"l\u2019Australie<\/a>","confirmed_b":1},{"id":"5824","ctr":"80","nam":"l\u2019Hongrie","namorig":"Hungary","cat":"","pri":"2,7 mln.","rat":0,"link":"l\u2019Hongrie<\/a>","confirmed_b":1},{"id":"5889","ctr":"145","nam":"la Slov\u00e9nie","namorig":"Slovenia","cat":"","pri":"2,6 mln.","rat":0,"link":"la Slov\u00e9nie<\/a>","confirmed_b":1},{"id":"5886","ctr":"142","nam":"la Lettonie","namorig":"Latvia","cat":"","pri":"2,4 mln.","rat":0,"link":"la Lettonie<\/a>","confirmed_b":1},{"id":"5771","ctr":"27","nam":"l\u2019Ukraine","namorig":"Ukraine","cat":"","pri":"2,3 mln.","rat":0,"link":"l\u2019Ukraine<\/a>","confirmed_b":1},{"id":"5868","ctr":"124","nam":"la Nouvelle Z\u00e9lande","namorig":"New Zealand","cat":"","pri":"2,1 mln.","rat":0,"link":"la Nouvelle Z\u00e9lande<\/a>","confirmed_b":1},{"id":"5806","ctr":"62","nam":"le Kazakhstan","namorig":"Kazakhstan","cat":"","pri":"2 mln.","rat":0,"link":"le Kazakhstan<\/a>","confirmed_b":1},{"id":"5820","ctr":"76","nam":"la Belgique","namorig":"Belgium","cat":"","pri":"1,8 mln.","rat":0,"link":"la Belgique<\/a>","confirmed_b":1},{"id":"5952","ctr":"208","nam":"le Liechtenstein","namorig":"Liechtenstein","cat":"","pri":"1,7 mln.","rat":0,"link":"le Liechtenstein<\/a>","confirmed_b":1},{"id":"5772","ctr":"28","nam":"l\u2019Espagne","namorig":"Spain","cat":"","pri":"1,3 mln.","rat":0,"link":"l\u2019Espagne<\/a>","confirmed_b":1},{"id":"5839","ctr":"95","nam":"la Bulgarie","namorig":"Bulgaria","cat":"","pri":"1,2 mln.","rat":0,"link":"la Bulgarie<\/a>","confirmed_b":1},{"id":"5853","ctr":"109","nam":"le Danemark","namorig":"Denmark","cat":"","pri":"1,2 mln.","rat":0,"link":"le Danemark<\/a>","confirmed_b":1},{"id":"5894","ctr":"150","nam":"l\u2019Estonie","namorig":"Estonia","cat":"","pri":"1,2 mln.","rat":0,"link":"l\u2019Estonie<\/a>","confirmed_b":1},{"id":"5840","ctr":"96","nam":"Isra\u00ebl","namorig":"Israel","cat":"","pri":"1,1 mln.","rat":0,"link":"Isra\u00ebl<\/a>","confirmed_b":1},{"id":"5864","ctr":"120","nam":"la Croatie","namorig":"Croatia","cat":"","pri":"1,1 mln.","rat":0,"link":"la Croatie<\/a>","confirmed_b":1},{"id":"5796","ctr":"52","nam":"la Roumanie","namorig":"Romania","cat":"","pri":"1,1 mln.","rat":0,"link":"la Roumanie<\/a>","confirmed_b":1},{"id":"5793","ctr":"49","nam":"Chinese Taipei","namorig":"Chinese Taipei","cat":"","pri":"1 mln.","rat":0,"link":"Chinese Taipei<\/a>","confirmed_b":1},{"id":"5842","ctr":"98","nam":"Hong Kong","namorig":"Hong Kong","cat":"","pri":"1 mln.","rat":0,"link":"Hong Kong<\/a>","confirmed_b":1},{"id":"20118","ctr":"229","nam":"Korea","namorig":"Korea","cat":"","pri":"1 mln.","rat":0,"link":"Korea<\/a>","confirmed_b":1},{"id":"15869","ctr":"223","nam":"Kosovo","namorig":"Kosovo","cat":"","pri":"1 mln.","rat":0,"link":"Kosovo<\/a>","confirmed_b":1},{"id":"5888","ctr":"144","nam":"Mac\u00e9doine du Nord","namorig":"North Macedonia","cat":"","pri":"1 mln.","rat":0,"link":"Mac\u00e9doine du Nord<\/a>","confirmed_b":1},{"id":"5953","ctr":"209","nam":"Monaco","namorig":"Monaco","cat":"","pri":"1 mln.","rat":0,"link":"Monaco<\/a>","confirmed_b":1},{"id":"5870","ctr":"126","nam":"Porto Rico","namorig":"Puerto Rico","cat":"","pri":"1 mln.","rat":0,"link":"Porto Rico<\/a>","confirmed_b":1},{"id":"5954","ctr":"210","nam":"Saint-Marin","namorig":"San Marino","cat":"","pri":"1 mln.","rat":0,"link":"Saint-Marin<\/a>","confirmed_b":1},{"id":"5830","ctr":"86","nam":"la Bolivie","namorig":"Bolivia","cat":"","pri":"1 mln.","rat":0,"link":"la Bolivie<\/a>","confirmed_b":1},{"id":"5871","ctr":"127","nam":"la Bosnie et Herzegovina","namorig":"Bosnia and Herzegovina","cat":"","pri":"1 mln.","rat":0,"link":"la Bosnie et Herzegovina<\/a>","confirmed_b":1},{"id":"5804","ctr":"60","nam":"la Chile","namorig":"Chile","cat":"","pri":"1 mln.","rat":0,"link":"la Chile<\/a>","confirmed_b":1},{"id":"5903","ctr":"159","nam":"la Chypre","namorig":"Cyprus","cat":"","pri":"1 mln.","rat":0,"link":"la Chypre<\/a>","confirmed_b":1},{"id":"5773","ctr":"29","nam":"la Colombie","namorig":"Colombia","cat":"","pri":"1 mln.","rat":0,"link":"la Colombie<\/a>","confirmed_b":1},{"id":"5791","ctr":"47","nam":"la Cor\u00e9e du Nord","namorig":"North Korea","cat":"","pri":"1 mln.","rat":0,"link":"la Cor\u00e9e du Nord<\/a>","confirmed_b":1},{"id":"5818","ctr":"74","nam":"la Gr\u00e8ce","namorig":"Greece","cat":"","pri":"1 mln.","rat":0,"link":"la Gr\u00e8ce<\/a>","confirmed_b":1},{"id":"5865","ctr":"121","nam":"la G\u00e9orgie","namorig":"Georgia","cat":"","pri":"1 mln.","rat":0,"link":"la G\u00e9orgie<\/a>","confirmed_b":1},{"id":"5883","ctr":"139","nam":"la Jama\u00efque","namorig":"Jamaica","cat":"","pri":"1 mln.","rat":0,"link":"la Jama\u00efque<\/a>","confirmed_b":1},{"id":"5876","ctr":"132","nam":"la Lituanie","namorig":"Lithuania","cat":"","pri":"1 mln.","rat":0,"link":"la Lituanie<\/a>","confirmed_b":1},{"id":"5787","ctr":"43","nam":"la Malaisie","namorig":"Malaysia","cat":"","pri":"1 mln.","rat":0,"link":"la Malaisie<\/a>","confirmed_b":1},{"id":"5916","ctr":"172","nam":"la Malte","namorig":"Malta","cat":"","pri":"1 mln.","rat":0,"link":"la Malte<\/a>","confirmed_b":1},{"id":"5875","ctr":"131","nam":"la Moldavie","namorig":"Moldova","cat":"","pri":"1 mln.","rat":0,"link":"la Moldavie<\/a>","confirmed_b":1},{"id":"5884","ctr":"140","nam":"la Mongolie","namorig":"Mongolia","cat":"","pri":"1 mln.","rat":0,"link":"la Mongolie<\/a>","confirmed_b":1},{"id":"5825","ctr":"81","nam":"la Servie","namorig":"Serbia","cat":"","pri":"1 mln.","rat":0,"link":"la Servie<\/a>","confirmed_b":1},{"id":"5764","ctr":"20","nam":"la Thailande","namorig":"Thailand","cat":"","pri":"1 mln.","rat":0,"link":"la Thailande<\/a>","confirmed_b":1},{"id":"5761","ctr":"17","nam":"la Turquie","namorig":"Turkey","cat":"","pri":"1 mln.","rat":0,"link":"la Turquie<\/a>","confirmed_b":1},{"id":"5749","ctr":"5","nam":"le Br\u00e9sil","namorig":"Brasil","cat":"","pri":"1 mln.","rat":0,"link":"le Br\u00e9sil<\/a>","confirmed_b":1},{"id":"5792","ctr":"48","nam":"le Ghana","namorig":"Ghana","cat":"","pri":"1 mln.","rat":0,"link":"le Ghana<\/a>","confirmed_b":1},{"id":"5778","ctr":"34","nam":"le Kenya","namorig":"Kenya","cat":"","pri":"1 mln.","rat":0,"link":"le Kenya<\/a>","confirmed_b":1},{"id":"5857","ctr":"113","nam":"le Kirghizistan","namorig":"Kyrgyzstan","cat":"","pri":"1 mln.","rat":0,"link":"le Kirghizistan<\/a>","confirmed_b":1},{"id":"5869","ctr":"125","nam":"le Libanon","namorig":"Lebanon","cat":"","pri":"1 mln.","rat":0,"link":"le Libanon<\/a>","confirmed_b":1},{"id":"5913","ctr":"169","nam":"le Luxembourg","namorig":"Luxembourg","cat":"","pri":"1 mln.","rat":0,"link":"le Luxembourg<\/a>","confirmed_b":1},{"id":"5799","ctr":"55","nam":"le Madagascar","namorig":"Madagascar","cat":"","pri":"1 mln.","rat":0,"link":"le Madagascar<\/a>","confirmed_b":1},{"id":"5781","ctr":"37","nam":"le Maroc","namorig":"Morocco","cat":"","pri":"1 mln.","rat":0,"link":"le Maroc<\/a>","confirmed_b":1},{"id":"5755","ctr":"11","nam":"le Mexique","namorig":"Mexico","cat":"","pri":"1 mln.","rat":0,"link":"le Mexique<\/a>","confirmed_b":1},{"id":"5908","ctr":"164","nam":"le Mont\u00e9n\u00e9gro","namorig":"Montenegro","cat":"","pri":"1 mln.","rat":0,"link":"le Mont\u00e9n\u00e9gro<\/a>","confirmed_b":1},{"id":"5752","ctr":"8","nam":"le Nig\u00e9ria","namorig":"Nigeria","cat":"","pri":"1 mln.","rat":0,"link":"le Nig\u00e9ria<\/a>","confirmed_b":1},{"id":"5750","ctr":"6","nam":"le Pakistan","namorig":"Pakistan","cat":"","pri":"1 mln.","rat":0,"link":"le Pakistan<\/a>","confirmed_b":1},{"id":"5821","ctr":"77","nam":"le Portugal","namorig":"Portugal","cat":"","pri":"1 mln.","rat":0,"link":"le Portugal<\/a>","confirmed_b":1},{"id":"5860","ctr":"116","nam":"le Singapour","namorig":"Singapore","cat":"","pri":"1 mln.","rat":0,"link":"le Singapour<\/a>","confirmed_b":1},{"id":"5898","ctr":"154","nam":"le Timor de l\u2019Est","namorig":"East Timor","cat":"","pri":"1 mln.","rat":0,"link":"le Timor de l\u2019Est<\/a>","confirmed_b":1},{"id":"5845","ctr":"101","nam":"le Togo","namorig":"Togo","cat":"","pri":"1 mln.","rat":0,"link":"le Togo<\/a>","confirmed_b":1},{"id":"5947","ctr":"203","nam":"les Bermudes","namorig":"Bermuda","cat":"","pri":"1 mln.","rat":0,"link":"les Bermudes<\/a>","confirmed_b":1},{"id":"5756","ctr":"12","nam":"les Philippines","namorig":"Philippines","cat":"","pri":"1 mln.","rat":0,"link":"les Philippines<\/a>","confirmed_b":1},{"id":"5937","ctr":"193","nam":"les Tonga","namorig":"Tonga","cat":"","pri":"1 mln.","rat":0,"link":"les Tonga<\/a>","confirmed_b":1},{"id":"5770","ctr":"26","nam":"l\u2019Afrique du Sud","namorig":"South Africa","cat":"","pri":"1 mln.","rat":0,"link":"l\u2019Afrique du Sud<\/a>","confirmed_b":1},{"id":"5880","ctr":"136","nam":"l\u2019Albanie","namorig":"Albania","cat":"","pri":"1 mln.","rat":0,"link":"l\u2019Albanie<\/a>","confirmed_b":1},{"id":"5943","ctr":"199","nam":"l\u2019Andorre","namorig":"Andorra","cat":"","pri":"1 mln.","rat":0,"link":"l\u2019Andorre<\/a>","confirmed_b":1},{"id":"5775","ctr":"31","nam":"l\u2019Argentine","namorig":"Argentina","cat":"","pri":"1 mln.","rat":0,"link":"l\u2019Argentine<\/a>","confirmed_b":1},{"id":"5879","ctr":"135","nam":"l\u2019Arm\u00e9nie","namorig":"Armenia","cat":"","pri":"1 mln.","rat":0,"link":"l\u2019Arm\u00e9nie<\/a>","confirmed_b":1},{"id":"5835","ctr":"91","nam":"l\u2019Azerbaijan","namorig":"Azerbaijan","cat":"","pri":"1 mln.","rat":0,"link":"l\u2019Azerbaijan<\/a>","confirmed_b":1},{"id":"5810","ctr":"66","nam":"l\u2019Equateur","namorig":"Ecuador","cat":"","pri":"1 mln.","rat":0,"link":"l\u2019Equateur<\/a>","confirmed_b":1},{"id":"5859","ctr":"115","nam":"l\u2019Erithr\u00e9e","namorig":"Eritrea","cat":"","pri":"1 mln.","rat":0,"link":"l\u2019Erithr\u00e9e<\/a>","confirmed_b":1},{"id":"5746","ctr":"2","nam":"l\u2019Inde","namorig":"India","cat":"","pri":"1 mln.","rat":0,"link":"l\u2019Inde<\/a>","confirmed_b":1},{"id":"5762","ctr":"18","nam":"l\u2019Iran","namorig":"Iran","cat":"","pri":"1 mln.","rat":0,"link":"l\u2019Iran<\/a>","confirmed_b":1},{"id":"5862","ctr":"118","nam":"l\u2019Irlande","namorig":"Ireland","cat":"","pri":"1 mln.","rat":0,"link":"l\u2019Irlande<\/a>","confirmed_b":1},{"id":"5919","ctr":"175","nam":"l\u2019Islande","namorig":"Iceland","cat":"","pri":"1 mln.","rat":0,"link":"l\u2019Islande<\/a>","confirmed_b":1},{"id":"5788","ctr":"44","nam":"l\u2019Oezb\u00e9kistan","namorig":"Uzbekistan","cat":"","pri":"1 mln.","rat":0,"link":"l\u2019Oezb\u00e9kistan<\/a>","confirmed_b":1}]; var showTeams = 0; //*********************** //SPORTSMEN TABLE HEADERS //*********************** var headersTableSportsmen = [ { 'sTitle': 'N°' }, { 'sTitle': 'Groupe' , 'bSearchable': false, 'bVisible': false }, { 'sTitle': 'Pays', 'sSortDataType': 'sortCountryFlag', sType : "text" }, { 'sTitle': 'Pays'}, { 'sTitle': 'Valeur', 'sSortDataType': 'sortMln', 'sType': 'numeric' }, { 'sTitle': 'Équipe' }, { '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 ""; }