$(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 = {"94":{"id":"94","country":"Swiss","countryCode":"CH","countryTr":"Switzerland"},"93":{"id":"93","country":"Austria","countryCode":"AT","countryTr":"Austria"},"145":{"id":"145","country":"Slovenia","countryCode":"SI","countryTr":"Slovenia"},"23":{"id":"23","country":"Italy","countryCode":"IT","countryTr":"Italy"},"14":{"id":"14","country":"Germany","countryCode":"DE","countryTr":"Germany"},"19":{"id":"19","country":"France","countryCode":"FR","countryTr":"France"},"117":{"id":"117","country":"Norway","countryCode":"NO","countryTr":"Norway"},"36":{"id":"36","country":"Canada","countryCode":"CA","countryTr":"Canada"},"3":{"id":"3","country":"United States","countryCode":"US","countryTr":"United States"},"28":{"id":"28","country":"Spain","countryCode":"ES","countryTr":"Spain"},"88":{"id":"88","country":"Sweden","countryCode":"SE","countryTr":"Sweden"},"208":{"id":"208","country":"Liechtenstein","countryCode":"LI","countryTr":"Liechtenstein"},"112":{"id":"112","country":"Finland","countryCode":"FI","countryTr":"Finland"},"120":{"id":"120","country":"Croatia","countryCode":"HR","countryTr":"Croatia"},"110":{"id":"110","country":"Slovakia","countryCode":"SK","countryTr":"Slovakia"},"10":{"id":"10","country":"Japan","countryCode":"JP","countryTr":"Japan"},"9":{"id":"9","country":"Russia","countryCode":"RU","countryTr":"Russia"},"78":{"id":"78","country":"Czech Republic","countryCode":"CZ","countryTr":"Czech Republic"},"80":{"id":"80","country":"Hungary","countryCode":"HU","countryTr":"Hungary"},"22":{"id":"22","country":"United Kingdom","countryCode":"GB","countryTr":"United Kingdom"},"33":{"id":"33","country":"Poland","countryCode":"PL","countryTr":"Poland"},"209":{"id":"209","country":"Monaco","countryCode":"MC","countryTr":"Monaco"},"84":{"id":"84","country":"Belarus","countryCode":"BY","countryTr":"Belarus"},"124":{"id":"124","country":"New Zealand","countryCode":"NZ","countryTr":"New Zealand"},"51":{"id":"51","country":"Australia","countryCode":"AU","countryTr":"Australia"},"31":{"id":"31","country":"Argentina","countryCode":"AR","countryTr":"Argentina"},"199":{"id":"199","country":"Andorra","countryCode":"AD","countryTr":"Andorra"},"52":{"id":"52","country":"Romania","countryCode":"RO","countryTr":"Romania"},"95":{"id":"95","country":"Bulgaria","countryCode":"BG","countryTr":"Bulgaria"},"81":{"id":"81","country":"Serbia","countryCode":"RS","countryTr":"Serbia"},"121":{"id":"121","country":"Georgia","countryCode":"GE","countryTr":"Georgia"},"61":{"id":"61","country":"Netherlands","countryCode":"NL","countryTr":"Netherlands"},"25":{"id":"25","country":"South Korea","countryCode":"KR","countryTr":"South Korea"},"118":{"id":"118","country":"Ireland","countryCode":"IE","countryTr":"Ireland"},"60":{"id":"60","country":"Chile","countryCode":"CL","countryTr":"Chile"},"74":{"id":"74","country":"Greece","countryCode":"GR","countryTr":"Greece"},"142":{"id":"142","country":"Latvia","countryCode":"LV","countryTr":"Latvia"},"27":{"id":"27","country":"Ukraine","countryCode":"UA","countryTr":"Ukraine"},"76":{"id":"76","country":"Belgium","countryCode":"BE","countryTr":"Belgium"},"86":{"id":"86","country":"Bolivia","countryCode":"BO","countryTr":"Bolivia"},"113":{"id":"113","country":"Kyrgyzstan","countryCode":"KG","countryTr":"Kyrgyzstan"},"144":{"id":"144","country":"North Macedonia","countryCode":"MK","countryTr":"North Macedonia"},"109":{"id":"109","country":"Denmark","countryCode":"DK","countryTr":"Denmark"},"2":{"id":"2","country":"India","countryCode":"IN","countryTr":"India"},"11":{"id":"11","country":"Mexico","countryCode":"MX","countryTr":"Mexico"},"62":{"id":"62","country":"Kazakhstan","countryCode":"KZ","countryTr":"Kazakhstan"},"223":{"id":"223","country":"Kosovo","countryCode":"XK","countryTr":"Kosovo"},"34":{"id":"34","country":"Kenya","countryCode":"KE","countryTr":"Kenya"},"131":{"id":"131","country":"Moldova","countryCode":"MD","countryTr":"Moldova"},"55":{"id":"55","country":"Madagascar","countryCode":"MG","countryTr":"Madagascar"},"127":{"id":"127","country":"Bosnia and Herzegovina","countryCode":"BA","countryTr":"Bosnia-Herzegovina"},"132":{"id":"132","country":"Lithuania","countryCode":"LT","countryTr":"Lithuania"},"101":{"id":"101","country":"Togo","countryCode":"TG","countryTr":"Togo"},"154":{"id":"154","country":"East Timor","countryCode":"TL","countryTr":"East Timor"},"169":{"id":"169","country":"Luxembourg","countryCode":"LU","countryTr":"Luxembourg"},"172":{"id":"172","country":"Malta","countryCode":"MT","countryTr":"Malta"},"136":{"id":"136","country":"Albania","countryCode":"AL","countryTr":"Albania"},"135":{"id":"135","country":"Armenia","countryCode":"AM","countryTr":"Armenia"},"91":{"id":"91","country":"Azerbaijan","countryCode":"AZ","countryTr":"Azerbaijan"},"5":{"id":"5","country":"Brasil","countryCode":"BR","countryTr":"Brazil"},"115":{"id":"115","country":"Eritrea","countryCode":"ER","countryTr":"Eritrea"},"159":{"id":"159","country":"Cyprus","countryCode":"CY","countryTr":"Cyprus"},"1":{"id":"1","country":"China","countryCode":"CN","countryTr":"China"},"29":{"id":"29","country":"Colombia","countryCode":"CO","countryTr":"Colombia"},"150":{"id":"150","country":"Estonia","countryCode":"EE","countryTr":"Estonia"},"18":{"id":"18","country":"Iran","countryCode":"IR","countryTr":"Iran"},"175":{"id":"175","country":"Iceland","countryCode":"IS","countryTr":"Iceland"},"96":{"id":"96","country":"Israel","countryCode":"IL","countryTr":"Israel"},"125":{"id":"125","country":"Lebanon","countryCode":"LB","countryTr":"Lebanon"},"37":{"id":"37","country":"Morocco","countryCode":"MA","countryTr":"Morocco"},"43":{"id":"43","country":"Malaysia","countryCode":"MY","countryTr":"Malaysia"},"164":{"id":"164","country":"Montenegro","countryCode":"ME","countryTr":"Montenegro"},"6":{"id":"6","country":"Pakistan","countryCode":"PK","countryTr":"Pakistan"},"12":{"id":"12","country":"Philippines","countryCode":"PH","countryTr":"Philippines"},"77":{"id":"77","country":"Portugal","countryCode":"PT","countryTr":"Portugal"},"47":{"id":"47","country":"North Korea","countryCode":"KP","countryTr":"North Korea"},"126":{"id":"126","country":"Puerto Rico","countryCode":"PR","countryTr":"Puerto Rico"},"26":{"id":"26","country":"South Africa","countryCode":"ZA","countryTr":"South Africa"},"210":{"id":"210","country":"San Marino","countryCode":"SM","countryTr":"San Marino"},"20":{"id":"20","country":"Thailand","countryCode":"TH","countryTr":"Thailand"},"17":{"id":"17","country":"Turkey","countryCode":"TR","countryTr":"Turkey"},"44":{"id":"44","country":"Uzbekistan","countryCode":"UZ","countryTr":"Uzbekistan"},"98":{"id":"98","country":"Hong Kong","countryCode":"HK","countryTr":"Hong Kong"},"40":{"id":"40","country":"Peru","countryCode":"PE","countryTr":"Peru"},"85":{"id":"85","country":"Haiti","countryCode":"HT","countryTr":"Haiti"},"49":{"id":"49","country":"Taiwan","countryCode":"TW","countryTr":"Taiwan"},"41":{"id":"41","country":"Nepal","countryCode":"NP","countryTr":"Nepal"},"66":{"id":"66","country":"Ecuador","countryCode":"EC","countryTr":"Ecuador"},"48":{"id":"48","country":"Ghana","countryCode":"GH","countryTr":"Ghana"},"139":{"id":"139","country":"Jamaica","countryCode":"JM","countryTr":"Jamaica"},"46":{"id":"46","country":"Saudi Arabia","countryCode":"SA","countryTr":"Saudi Arabia"}}; var teams = [{"id":0,"name":""}]; var sportsmen = [{"id":"9144","tem":"0","ctr":"23","nam":"Goggia, Sofia ","namorig":"Goggia, Sofia ","cat":"","pri":"25 mln.","rat":0,"mw":"F","link":"Goggia, Sofia <\/a>","confirmed_b":1},{"id":"9626","tem":"0","ctr":"23","nam":"Paris, Dominik ","namorig":"Paris, Dominik ","cat":"","pri":"23.4 mln.","rat":0,"mw":"M","link":"Paris, Dominik <\/a>","confirmed_b":1},{"id":"10354","tem":"0","ctr":"93","nam":"Kriechmayr, Vincent ","namorig":"Kriechmayr, Vincent ","cat":"","pri":"20.2 mln.","rat":0,"mw":"M","link":"Kriechmayr, Vincent <\/a>","confirmed_b":1},{"id":"9138","tem":"0","ctr":"94","nam":"Gut-Behrami, Lara ","namorig":"Gut-Behrami, Lara ","cat":"","pri":"17.7 mln.","rat":0,"mw":"F","link":"Gut-Behrami, Lara <\/a>","confirmed_b":1},{"id":"9163","tem":"0","ctr":"117","nam":"Mowinckel, Ragnhild ","namorig":"Mowinckel, Ragnhild ","cat":"","pri":"17.5 mln.","rat":0,"mw":"F","link":"Mowinckel, Ragnhild <\/a>","confirmed_b":1},{"id":"10177","tem":"0","ctr":"117","nam":"Kilde, Aleksander Aamodt ","namorig":"Kilde, Aleksander Aamodt ","cat":"","pri":"16.8 mln.","rat":0,"mw":"M","link":"Kilde, Aleksander Aamodt <\/a>","confirmed_b":1},{"id":"10366","tem":"0","ctr":"94","nam":"Suter, Corrine ","namorig":"Suter, Corrine ","cat":"","pri":"15.9 mln.","rat":0,"mw":"F","link":"Suter, Corrine <\/a>","confirmed_b":1},{"id":"9628","tem":"0","ctr":"23","nam":"Innerhofer, Christof ","namorig":"Innerhofer, Christof ","cat":"","pri":"15.6 mln.","rat":0,"mw":"M","link":"Innerhofer, Christof <\/a>","confirmed_b":1},{"id":"9164","tem":"0","ctr":"93","nam":"Venier, Stephanie ","namorig":"Venier, Stephanie ","cat":"","pri":"15.4 mln.","rat":0,"mw":"F","link":"Venier, Stephanie <\/a>","confirmed_b":1},{"id":"9194","tem":"0","ctr":"23","nam":"Brignone, Federica ","namorig":"Brignone, Federica ","cat":"","pri":"14.5 mln.","rat":0,"mw":"F","link":"Brignone, Federica <\/a>","confirmed_b":1},{"id":"10118","tem":"0","ctr":"94","nam":"Flury, Jasmine ","namorig":"Flury, Jasmine ","cat":"","pri":"12.6 mln.","rat":0,"mw":"F","link":"Flury, Jasmine <\/a>","confirmed_b":1},{"id":"10179","tem":"0","ctr":"14","nam":"Ferstl, Josef ","namorig":"Ferstl, Josef ","cat":"","pri":"11.8 mln.","rat":0,"mw":"M","link":"Ferstl, Josef <\/a>","confirmed_b":1},{"id":"9633","tem":"0","ctr":"19","nam":"Theaux, Adrien ","namorig":"Theaux, Adrien ","cat":"","pri":"11.1 mln.","rat":0,"mw":"M","link":"Theaux, Adrien <\/a>","confirmed_b":1},{"id":"10359","tem":"0","ctr":"93","nam":"Tippler, Tamara ","namorig":"Tippler, Tamara ","cat":"","pri":"11 mln.","rat":0,"mw":"F","link":"Tippler, Tamara <\/a>","confirmed_b":1},{"id":"9158","tem":"0","ctr":"93","nam":"Huetter, Cornelia ","namorig":"Huetter, Cornelia ","cat":"","pri":"10.9 mln.","rat":0,"mw":"F","link":"Huetter, Cornelia <\/a>","confirmed_b":1},{"id":"10032","tem":"0","ctr":"94","nam":"Haehlen, Joana ","namorig":"Haehlen, Joana ","cat":"","pri":"10.7 mln.","rat":0,"mw":"F","link":"Haehlen, Joana <\/a>","confirmed_b":1},{"id":"9998","tem":"0","ctr":"19","nam":"Miradoli, Romane ","namorig":"Miradoli, Romane ","cat":"","pri":"10 mln.","rat":0,"mw":"F","link":"Miradoli, Romane <\/a>","confirmed_b":1},{"id":"12076","tem":"0","ctr":"23","nam":"Delago, Nicol ","namorig":"Delago, Nicol ","cat":"","pri":"9.3 mln.","rat":0,"mw":"F","link":"Delago, Nicol <\/a>","confirmed_b":1},{"id":"10114","tem":"0","ctr":"36","nam":"Thomsen, Benjamin ","namorig":"Thomsen, Benjamin ","cat":"","pri":"8.5 mln.","rat":0,"mw":"M","link":"Thomsen, Benjamin <\/a>","confirmed_b":1},{"id":"10363","tem":"0","ctr":"117","nam":"Sejersted, Adrian Smiseth ","namorig":"Sejersted, Adrian Smiseth ","cat":"","pri":"8.3 mln.","rat":0,"mw":"M","link":"Sejersted, Adrian Smiseth <\/a>","confirmed_b":1},{"id":"15422","tem":"0","ctr":"14","nam":"Weidle, Kira ","namorig":"Weidle, Kira ","cat":"","pri":"7.6 mln.","rat":0,"mw":"F","link":"Weidle, Kira <\/a>","confirmed_b":1},{"id":"13917","tem":"0","ctr":"3","nam":"Bennett, Bryce ","namorig":"Bennett, Bryce ","cat":"","pri":"7.5 mln.","rat":0,"mw":"M","link":"Bennett, Bryce <\/a>","confirmed_b":1},{"id":"17766","tem":"0","ctr":"117","nam":"Lie, Kajsa Vickhoff ","namorig":"Lie, Kajsa Vickhoff ","cat":"","pri":"6.4 mln.","rat":0,"mw":"F","link":"Lie, Kajsa Vickhoff <\/a>","confirmed_b":1},{"id":"15573","tem":"0","ctr":"78","nam":"Ledecka, Ester ","namorig":"Ledecka, Ester ","cat":"","pri":"6.3 mln.","rat":0,"mw":"F","link":"Ledecka, Ester <\/a>","confirmed_b":1},{"id":"9653","tem":"0","ctr":"93","nam":"Striedinger, Otmar ","namorig":"Striedinger, Otmar ","cat":"","pri":"6.2 mln.","rat":0,"mw":"M","link":"Striedinger, Otmar <\/a>","confirmed_b":1},{"id":"13903","tem":"0","ctr":"93","nam":"Danklmaier, Daniel ","namorig":"Danklmaier, Daniel ","cat":"","pri":"6.1 mln.","rat":0,"mw":"M","link":"Danklmaier, Daniel <\/a>","confirmed_b":1},{"id":"10365","tem":"0","ctr":"23","nam":"Bassino, Marta ","namorig":"Bassino, Marta ","cat":"","pri":"6 mln.","rat":0,"mw":"F","link":"Bassino, Marta <\/a>","confirmed_b":1},{"id":"15744","tem":"0","ctr":"94","nam":"Odermatt, Marco ","namorig":"Odermatt, Marco ","cat":"","pri":"5.8 mln.","rat":0,"mw":"M","link":"Odermatt, Marco <\/a>","confirmed_b":1},{"id":"9944","tem":"0","ctr":"93","nam":"Puchner, Mirjam ","namorig":"Puchner, Mirjam ","cat":"","pri":"5.4 mln.","rat":0,"mw":"F","link":"Puchner, Mirjam <\/a>","confirmed_b":1},{"id":"9558","tem":"0","ctr":"94","nam":"Nufer, Priska ","namorig":"Nufer, Priska ","cat":"","pri":"5.2 mln.","rat":0,"mw":"F","link":"Nufer, Priska <\/a>","confirmed_b":1},{"id":"10056","tem":"0","ctr":"23","nam":"Casse, Mattia ","namorig":"Casse, Mattia ","cat":"","pri":"5.1 mln.","rat":0,"mw":"M","link":"Casse, Mattia <\/a>","confirmed_b":1},{"id":"17985","tem":"0","ctr":"94","nam":"Roulin, Gilles ","namorig":"Roulin, Gilles ","cat":"","pri":"5 mln.","rat":0,"mw":"M","link":"Roulin, Gilles <\/a>","confirmed_b":1},{"id":"17864","tem":"0","ctr":"88","nam":"Hoernblad, Lisa ","namorig":"Hoernblad, Lisa ","cat":"","pri":"4.9 mln.","rat":0,"mw":"F","link":"Hoernblad, Lisa <\/a>","confirmed_b":1},{"id":"13922","tem":"0","ctr":"93","nam":"Haaser, Ricarda ","namorig":"Haaser, Ricarda ","cat":"","pri":"4.8 mln.","rat":0,"mw":"F","link":"Haaser, Ricarda <\/a>","confirmed_b":1},{"id":"9759","tem":"0","ctr":"93","nam":"Ager, Christina ","namorig":"Ager, Christina ","cat":"","pri":"4.6 mln.","rat":0,"mw":"F","link":"Ager, Christina <\/a>","confirmed_b":1},{"id":"9155","tem":"0","ctr":"23","nam":"Curtoni, Elena ","namorig":"Curtoni, Elena ","cat":"","pri":"4.4 mln.","rat":0,"mw":"F","link":"Curtoni, Elena <\/a>","confirmed_b":1},{"id":"13905","tem":"0","ctr":"3","nam":"Cochran-Siegle, Ryan ","namorig":"Cochran-Siegle, Ryan ","cat":"","pri":"4.3 mln.","rat":0,"mw":"M","link":"Cochran-Siegle, Ryan <\/a>","confirmed_b":1},{"id":"10186","tem":"0","ctr":"14","nam":"Schwaiger, Dominik ","namorig":"Schwaiger, Dominik ","cat":"","pri":"4 mln.","rat":0,"mw":"M","link":"Schwaiger, Dominik <\/a>","confirmed_b":1},{"id":"19987","tem":"0","ctr":"93","nam":"Raedler, Ariane ","namorig":"Raedler, Ariane ","cat":"","pri":"3.9 mln.","rat":0,"mw":"F","link":"Raedler, Ariane <\/a>","confirmed_b":1},{"id":"18971","tem":"0","ctr":"19","nam":"Allegre, Nils ","namorig":"Allegre, Nils ","cat":"","pri":"3.8 mln.","rat":0,"mw":"M","link":"Allegre, Nils <\/a>","confirmed_b":1},{"id":"12144","tem":"0","ctr":"93","nam":"Ortlieb, Nina ","namorig":"Ortlieb, Nina ","cat":"","pri":"3.4 mln.","rat":0,"mw":"F","link":"Ortlieb, Nina <\/a>","confirmed_b":1},{"id":"11524","tem":"0","ctr":"19","nam":"Giezendanner, Blaise ","namorig":"Giezendanner, Blaise ","cat":"","pri":"3.3 mln.","rat":0,"mw":"M","link":"Giezendanner, Blaise <\/a>","confirmed_b":1},{"id":"14960","tem":"0","ctr":"93","nam":"Walder, Christian ","namorig":"Walder, Christian ","cat":"","pri":"3.2 mln.","rat":0,"mw":"M","link":"Walder, Christian <\/a>","confirmed_b":1},{"id":"10189","tem":"0","ctr":"145","nam":"Kosi, Klemen ","namorig":"Kosi, Klemen ","cat":"","pri":"3.1 mln.","rat":0,"mw":"M","link":"Kosi, Klemen <\/a>","confirmed_b":1},{"id":"14896","tem":"0","ctr":"94","nam":"Hintermann, Niels ","namorig":"Hintermann, Niels ","cat":"","pri":"3 mln.","rat":0,"mw":"M","link":"Hintermann, Niels <\/a>","confirmed_b":1},{"id":"15743","tem":"0","ctr":"19","nam":"Bailet, Matthieu ","namorig":"Bailet, Matthieu ","cat":"","pri":"2.8 mln.","rat":0,"mw":"M","link":"Bailet, Matthieu <\/a>","confirmed_b":1},{"id":"15575","tem":"0","ctr":"3","nam":"Merryweather, Alice ","namorig":"Merryweather, Alice ","cat":"","pri":"2.7 mln.","rat":0,"mw":"F","link":"Merryweather, Alice <\/a>","confirmed_b":1},{"id":"11684","tem":"0","ctr":"117","nam":"Windingstad, Rasmus ","namorig":"Windingstad, Rasmus ","cat":"","pri":"2.7 mln.","rat":0,"mw":"M","link":"Windingstad, Rasmus <\/a>","confirmed_b":1},{"id":"17385","tem":"0","ctr":"93","nam":"Krenn, Christoph ","namorig":"Krenn, Christoph ","cat":"","pri":"2.6 mln.","rat":0,"mw":"M","link":"Krenn, Christoph <\/a>","confirmed_b":1},{"id":"10057","tem":"0","ctr":"19","nam":"Muzaton, Maxence ","namorig":"Muzaton, Maxence ","cat":"","pri":"2.5 mln.","rat":0,"mw":"M","link":"Muzaton, Maxence <\/a>","confirmed_b":1},{"id":"9245","tem":"0","ctr":"94","nam":"Tumler, Thomas ","namorig":"Tumler, Thomas ","cat":"","pri":"2.2 mln.","rat":0,"mw":"M","link":"Tumler, Thomas <\/a>","confirmed_b":1},{"id":"18018","tem":"0","ctr":"93","nam":"Fest, Nadine ","namorig":"Fest, Nadine ","cat":"","pri":"2.1 mln.","rat":0,"mw":"F","link":"Fest, Nadine <\/a>","confirmed_b":1},{"id":"19032","tem":"0","ctr":"36","nam":"Seger, Brodie ","namorig":"Seger, Brodie ","cat":"","pri":"2.1 mln.","rat":0,"mw":"M","link":"Seger, Brodie <\/a>","confirmed_b":1},{"id":"11781","tem":"0","ctr":"145","nam":"Kline, Bostjan ","namorig":"Kline, Bostjan ","cat":"","pri":"2 mln.","rat":0,"mw":"M","link":"Kline, Bostjan <\/a>","confirmed_b":1},{"id":"17680","tem":"0","ctr":"88","nam":"Monsen, Felix ","namorig":"Monsen, Felix ","cat":"","pri":"1.8 mln.","rat":0,"mw":"M","link":"Monsen, Felix <\/a>","confirmed_b":1},{"id":"9242","tem":"0","ctr":"94","nam":"Caviezel, Gino ","namorig":"Caviezel, Gino ","cat":"","pri":"1.5 mln.","rat":0,"mw":"M","link":"Caviezel, Gino <\/a>","confirmed_b":1},{"id":"13904","tem":"0","ctr":"93","nam":"Neumayer, Christopher ","namorig":"Neumayer, Christopher ","cat":"","pri":"1.5 mln.","rat":0,"mw":"M","link":"Neumayer, Christopher <\/a>","confirmed_b":1},{"id":"10054","tem":"0","ctr":"3","nam":"Goldberg, Jared ","namorig":"Goldberg, Jared ","cat":"","pri":"1.4 mln.","rat":0,"mw":"M","link":"Goldberg, Jared <\/a>","confirmed_b":1},{"id":"12146","tem":"0","ctr":"145","nam":"Hrobat, Miha ","namorig":"Hrobat, Miha ","cat":"","pri":"1.3 mln.","rat":0,"mw":"M","link":"Hrobat, Miha <\/a>","confirmed_b":1},{"id":"11563","tem":"0","ctr":"3","nam":"Biesemeyer, Thomas ","namorig":"Biesemeyer, Thomas ","cat":"","pri":"1.2 mln.","rat":0,"mw":"M","link":"Biesemeyer, Thomas <\/a>","confirmed_b":1},{"id":"11782","tem":"0","ctr":"94","nam":"Kryenbuehl, Urs ","namorig":"Kryenbuehl, Urs ","cat":"","pri":"1.2 mln.","rat":0,"mw":"M","link":"Kryenbuehl, Urs <\/a>","confirmed_b":1},{"id":"13919","tem":"0","ctr":"93","nam":"Reisinger, Elisabeth ","namorig":"Reisinger, Elisabeth ","cat":"","pri":"1.2 mln.","rat":0,"mw":"F","link":"Reisinger, Elisabeth <\/a>","confirmed_b":1},{"id":"17661","tem":"0","ctr":"94","nam":"Rogentin, Stefan ","namorig":"Rogentin, Stefan ","cat":"","pri":"1.2 mln.","rat":0,"mw":"M","link":"Rogentin, Stefan <\/a>","confirmed_b":1},{"id":"22592","tem":"0","ctr":"23","nam":"Delago, Nadia ","namorig":"Delago, Nadia ","cat":"","pri":"1.1 mln.","rat":0,"mw":"F","link":"Delago, Nadia <\/a>","confirmed_b":1},{"id":"11498","tem":"0","ctr":"3","nam":"Maple, Wiley ","namorig":"Maple, Wiley ","cat":"","pri":"1.1 mln.","rat":0,"mw":"M","link":"Maple, Wiley <\/a>","confirmed_b":1},{"id":"19045","tem":"0","ctr":"36","nam":"Mulligan, Sam ","namorig":"Mulligan, Sam ","cat":"","pri":"1.1 mln.","rat":0,"mw":"M","link":"Mulligan, Sam <\/a>","confirmed_b":1},{"id":"22548","tem":"0","ctr":"94","nam":"Roesti, Lars ","namorig":"Roesti, Lars ","cat":"","pri":"1.1 mln.","rat":0,"mw":"M","link":"Roesti, Lars <\/a>","confirmed_b":1},{"id":"14991","tem":"0","ctr":"60","nam":"Appen, Henrik von","namorig":"Appen, Henrik von","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Appen, Henrik von<\/a>","confirmed_b":1},{"id":"17907","tem":"0","ctr":"110","nam":"Bendik, Martin ","namorig":"Bendik, Martin ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Bendik, Martin <\/a>","confirmed_b":1},{"id":"19922","tem":"0","ctr":"14","nam":"Brandner, Christof ","namorig":"Brandner, Christof ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Brandner, Christof <\/a>","confirmed_b":1},{"id":"16722","tem":"0","ctr":"86","nam":"Breitfuss Kammerlander, Simon ","namorig":"Breitfuss Kammerlander, Simon ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Breitfuss Kammerlander, Simon <\/a>","confirmed_b":1},{"id":"10120","tem":"0","ctr":"209","nam":"Coletti, Alexandra ","namorig":"Coletti, Alexandra ","cat":"","pri":"1 mln.","rat":0,"mw":"F","link":"Coletti, Alexandra <\/a>","confirmed_b":1},{"id":"17647","tem":"0","ctr":"145","nam":"Debelak, Tilen ","namorig":"Debelak, Tilen ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Debelak, Tilen <\/a>","confirmed_b":1},{"id":"18997","tem":"0","ctr":"3","nam":"Dupratt, Samuel ","namorig":"Dupratt, Samuel ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Dupratt, Samuel <\/a>","confirmed_b":1},{"id":"11950","tem":"0","ctr":"118","nam":"Gower, Jack ","namorig":"Gower, Jack ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Gower, Jack <\/a>","confirmed_b":1},{"id":"18016","tem":"0","ctr":"3","nam":"Morse, Sam ","namorig":"Morse, Sam ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Morse, Sam <\/a>","confirmed_b":1},{"id":"19232","tem":"0","ctr":"19","nam":"Piccard, Roy ","namorig":"Piccard, Roy ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Piccard, Roy <\/a>","confirmed_b":1},{"id":"22578","tem":"0","ctr":"9","nam":"Pleshkova, Julia ","namorig":"Pleshkova, Julia ","cat":"","pri":"1 mln.","rat":0,"mw":"F","link":"Pleshkova, Julia <\/a>","confirmed_b":1},{"id":"19046","tem":"0","ctr":"23","nam":"Prast, Alexander ","namorig":"Prast, Alexander ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Prast, Alexander <\/a>","confirmed_b":1},{"id":"17682","tem":"0","ctr":"9","nam":"Prokopyeva, Aleksandra ","namorig":"Prokopyeva, Aleksandra ","cat":"","pri":"1 mln.","rat":0,"mw":"F","link":"Prokopyeva, Aleksandra <\/a>","confirmed_b":1},{"id":"19034","tem":"0","ctr":"36","nam":"Read, Jeffrey ","namorig":"Read, Jeffrey ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Read, Jeffrey <\/a>","confirmed_b":1},{"id":"19430","tem":"0","ctr":"23","nam":"Schieder, Florian ","namorig":"Schieder, Florian ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Schieder, Florian <\/a>","confirmed_b":1},{"id":"22919","tem":"0","ctr":"23","nam":"Simoni, Federico ","namorig":"Simoni, Federico ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Simoni, Federico <\/a>","confirmed_b":1},{"id":"10232","tem":"0","ctr":"51","nam":"Small, Greta ","namorig":"Small, Greta ","cat":"","pri":"1 mln.","rat":0,"mw":"F","link":"Small, Greta <\/a>","confirmed_b":1},{"id":"17648","tem":"0","ctr":"81","nam":"Vukicevic, Marko ","namorig":"Vukicevic, Marko ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Vukicevic, Marko <\/a>","confirmed_b":1}]; var sportsmenTeams = []; var showTeams = 0; //*********************** //SPORTSMEN TABLE HEADERS //*********************** var headersTableSportsmen = [ { 'sTitle': 'Nr.' }, { 'sTitle': 'Group' , 'bSearchable': false, 'bVisible': false }, { 'sTitle': 'Country', 'sSortDataType': 'sortCountryFlag', sType : "text" }, { 'sTitle': 'Skier'}, { 'sTitle': 'Value', 'sSortDataType': 'sortMln', 'sType': 'numeric' }, { 'sTitle': 'Team' , 'bSearchable': false, 'bVisible': false }, { 'sTitle': 'M/F' } ]; //*********************** //TEAMS TABLE HEADERS //*********************** var headersTableTeams = [ {'sTitle': 'Nr.'}, {'sTitle': '' , 'bSearchable': false, 'bVisible': false }, {'sTitle': 'Country' , 'sSortDataType': 'sortCountryFlag', sType : 'text' }, { 'sTitle': ''}, { 'sTitle': 'Value', '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 ""; }