$(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":"Suiza"},"93":{"id":"93","country":"Austria","countryCode":"AT","countryTr":"Austria"},"145":{"id":"145","country":"Slovenia","countryCode":"SI","countryTr":"Eslovenia"},"23":{"id":"23","country":"Italy","countryCode":"IT","countryTr":"Italia"},"14":{"id":"14","country":"Germany","countryCode":"DE","countryTr":"Alemania"},"19":{"id":"19","country":"France","countryCode":"FR","countryTr":"Francia"},"117":{"id":"117","country":"Norway","countryCode":"NO","countryTr":"Noruega"},"36":{"id":"36","country":"Canada","countryCode":"CA","countryTr":"Canad\u00e1"},"3":{"id":"3","country":"United States","countryCode":"US","countryTr":"Estados Unidos"},"28":{"id":"28","country":"Spain","countryCode":"ES","countryTr":"Espa\u00f1a"},"88":{"id":"88","country":"Sweden","countryCode":"SE","countryTr":"Suecia"},"208":{"id":"208","country":"Liechtenstein","countryCode":"LI","countryTr":"Liechtenstein"},"112":{"id":"112","country":"Finland","countryCode":"FI","countryTr":"Finlandia"},"120":{"id":"120","country":"Croatia","countryCode":"HR","countryTr":"Croacia"},"110":{"id":"110","country":"Slovakia","countryCode":"SK","countryTr":"Eslovaquia"},"10":{"id":"10","country":"Japan","countryCode":"JP","countryTr":"Jap\u00f3n"},"9":{"id":"9","country":"Russia","countryCode":"RU","countryTr":"Rusia"},"78":{"id":"78","country":"Czech Republic","countryCode":"CZ","countryTr":"Rep\u00fablica Checa"},"80":{"id":"80","country":"Hungary","countryCode":"HU","countryTr":"Hungr\u00eda"},"22":{"id":"22","country":"United Kingdom","countryCode":"GB","countryTr":"Reino Unido"},"33":{"id":"33","country":"Poland","countryCode":"PL","countryTr":"Polonia"},"209":{"id":"209","country":"Monaco","countryCode":"MC","countryTr":"M\u00f3naco"},"84":{"id":"84","country":"Belarus","countryCode":"BY","countryTr":"Belar\u00fas"},"124":{"id":"124","country":"New Zealand","countryCode":"NZ","countryTr":"Nueva Zelanda"},"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":"Rumania"},"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":"Pa\u00edses Bajos"},"25":{"id":"25","country":"South Korea","countryCode":"KR","countryTr":"Corea del Sur"},"118":{"id":"118","country":"Ireland","countryCode":"IE","countryTr":"Irlanda"},"60":{"id":"60","country":"Chile","countryCode":"CL","countryTr":"Chile"},"74":{"id":"74","country":"Greece","countryCode":"GR","countryTr":"Grecia"},"142":{"id":"142","country":"Latvia","countryCode":"LV","countryTr":"Letonia"},"27":{"id":"27","country":"Ukraine","countryCode":"UA","countryTr":"Ucrania"},"76":{"id":"76","country":"Belgium","countryCode":"BE","countryTr":"B\u00e9lgica"},"86":{"id":"86","country":"Bolivia","countryCode":"BO","countryTr":"Bolivia"},"113":{"id":"113","country":"Kyrgyzstan","countryCode":"KG","countryTr":"Kirguist\u00e1n"},"144":{"id":"144","country":"North Macedonia","countryCode":"MK","countryTr":"Macedonia del Norte"},"109":{"id":"109","country":"Denmark","countryCode":"DK","countryTr":"Dinamarca"},"2":{"id":"2","country":"India","countryCode":"IN","countryTr":"India"},"11":{"id":"11","country":"Mexico","countryCode":"MX","countryTr":"M\u00e9xico"},"62":{"id":"62","country":"Kazakhstan","countryCode":"KZ","countryTr":"Kazajst\u00e1n"},"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 y Herzegovina"},"132":{"id":"132","country":"Lithuania","countryCode":"LT","countryTr":"Lituania"},"101":{"id":"101","country":"Togo","countryCode":"TG","countryTr":"Togo"},"154":{"id":"154","country":"East Timor","countryCode":"TL","countryTr":"Timor Oriental"},"169":{"id":"169","country":"Luxembourg","countryCode":"LU","countryTr":"Luxemburgo"},"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":"Azerbaiy\u00e1n"},"5":{"id":"5","country":"Brasil","countryCode":"BR","countryTr":"Brasil"},"115":{"id":"115","country":"Eritrea","countryCode":"ER","countryTr":"Eritrea"},"159":{"id":"159","country":"Cyprus","countryCode":"CY","countryTr":"Chipre"},"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":"Ir\u00e1n"},"175":{"id":"175","country":"Iceland","countryCode":"IS","countryTr":"Islandia"},"96":{"id":"96","country":"Israel","countryCode":"IL","countryTr":"Israel"},"125":{"id":"125","country":"Lebanon","countryCode":"LB","countryTr":"L\u00edbano"},"37":{"id":"37","country":"Morocco","countryCode":"MA","countryTr":"Marruecos"},"43":{"id":"43","country":"Malaysia","countryCode":"MY","countryTr":"Malasia"},"164":{"id":"164","country":"Montenegro","countryCode":"ME","countryTr":"Montenegro"},"6":{"id":"6","country":"Pakistan","countryCode":"PK","countryTr":"Pakist\u00e1n"},"12":{"id":"12","country":"Philippines","countryCode":"PH","countryTr":"Filipinas"},"77":{"id":"77","country":"Portugal","countryCode":"PT","countryTr":"Portugal"},"47":{"id":"47","country":"North Korea","countryCode":"KP","countryTr":"Corea del Norte"},"126":{"id":"126","country":"Puerto Rico","countryCode":"PR","countryTr":"Puerto Rico"},"26":{"id":"26","country":"South Africa","countryCode":"ZA","countryTr":"Sud\u00e1frica"},"210":{"id":"210","country":"San Marino","countryCode":"SM","countryTr":"San Marino"},"20":{"id":"20","country":"Thailand","countryCode":"TH","countryTr":"Tailandia"},"17":{"id":"17","country":"Turkey","countryCode":"TR","countryTr":"Turqu\u00eda"},"44":{"id":"44","country":"Uzbekistan","countryCode":"UZ","countryTr":"Uzbekist\u00e1n"},"98":{"id":"98","country":"Hong Kong","countryCode":"HK","countryTr":"Hong Kong"},"40":{"id":"40","country":"Peru","countryCode":"PE","countryTr":"Per\u00fa"},"85":{"id":"85","country":"Haiti","countryCode":"HT","countryTr":"Hait\u00ed"},"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":"Arabia Saudita"}}; var teams = [{"id":0,"name":""}]; var sportsmen = [{"id":"9633","tem":"0","ctr":"19","nam":"Theaux, Adrien ","namorig":"Theaux, Adrien ","cat":"","pri":"18,1 mln.","rat":0,"mw":"M","link":"Theaux, Adrien <\/a>","confirmed_b":1},{"id":"9138","tem":"0","ctr":"94","nam":"Gut-Behrami, Lara ","namorig":"Gut-Behrami, Lara ","cat":"","pri":"15,8 mln.","rat":0,"mw":"F","link":"Gut-Behrami, Lara <\/a>","confirmed_b":1},{"id":"9626","tem":"0","ctr":"23","nam":"Paris, Dominik ","namorig":"Paris, Dominik ","cat":"","pri":"15,3 mln.","rat":0,"mw":"M","link":"Paris, Dominik <\/a>","confirmed_b":1},{"id":"9158","tem":"0","ctr":"93","nam":"Huetter, Cornelia ","namorig":"Huetter, Cornelia ","cat":"","pri":"12,5 mln.","rat":0,"mw":"F","link":"Huetter, Cornelia <\/a>","confirmed_b":1},{"id":"10354","tem":"0","ctr":"93","nam":"Kriechmayr, Vincent ","namorig":"Kriechmayr, Vincent ","cat":"","pri":"12,1 mln.","rat":0,"mw":"M","link":"Kriechmayr, Vincent <\/a>","confirmed_b":1},{"id":"9220","tem":"0","ctr":"19","nam":"Pinturault, Alexis ","namorig":"Pinturault, Alexis ","cat":"","pri":"11,3 mln.","rat":0,"mw":"M","link":"Pinturault, Alexis <\/a>","confirmed_b":1},{"id":"9643","tem":"0","ctr":"14","nam":"Baumann, Romed ","namorig":"Baumann, Romed ","cat":"","pri":"10,1 mln.","rat":0,"mw":"M","link":"Baumann, Romed <\/a>","confirmed_b":1},{"id":"10177","tem":"0","ctr":"117","nam":"Kilde, Aleksander Aamodt ","namorig":"Kilde, Aleksander Aamodt ","cat":"","pri":"9,8 mln.","rat":0,"mw":"M","link":"Kilde, Aleksander Aamodt <\/a>","confirmed_b":1},{"id":"9252","tem":"0","ctr":"117","nam":"Kristoffersen, Henrik ","namorig":"Kristoffersen, Henrik ","cat":"","pri":"9,1 mln.","rat":0,"mw":"M","link":"Kristoffersen, Henrik <\/a>","confirmed_b":1},{"id":"9285","tem":"0","ctr":"19","nam":"Muffat-Jeandet, Victor ","namorig":"Muffat-Jeandet, Victor ","cat":"","pri":"9 mln.","rat":0,"mw":"M","link":"Muffat-Jeandet, Victor <\/a>","confirmed_b":1},{"id":"9628","tem":"0","ctr":"23","nam":"Innerhofer, Christof ","namorig":"Innerhofer, Christof ","cat":"","pri":"7,9 mln.","rat":0,"mw":"M","link":"Innerhofer, Christof <\/a>","confirmed_b":1},{"id":"10359","tem":"0","ctr":"93","nam":"Tippler, Tamara ","namorig":"Tippler, Tamara ","cat":"","pri":"7,8 mln.","rat":0,"mw":"F","link":"Tippler, Tamara <\/a>","confirmed_b":1},{"id":"9264","tem":"0","ctr":"23","nam":"Razzoli, Giuliano ","namorig":"Razzoli, Giuliano ","cat":"","pri":"6,9 mln.","rat":0,"mw":"M","link":"Razzoli, Giuliano <\/a>","confirmed_b":1},{"id":"10366","tem":"0","ctr":"94","nam":"Suter, Corrine ","namorig":"Suter, Corrine ","cat":"","pri":"6,8 mln.","rat":0,"mw":"F","link":"Suter, Corrine <\/a>","confirmed_b":1},{"id":"10056","tem":"0","ctr":"23","nam":"Casse, Mattia ","namorig":"Casse, Mattia ","cat":"","pri":"6,5 mln.","rat":0,"mw":"M","link":"Casse, Mattia <\/a>","confirmed_b":1},{"id":"9259","tem":"0","ctr":"23","nam":"Gross, Stefano ","namorig":"Gross, Stefano ","cat":"","pri":"6,4 mln.","rat":0,"mw":"M","link":"Gross, Stefano <\/a>","confirmed_b":1},{"id":"11522","tem":"0","ctr":"14","nam":"Sander, Andreas ","namorig":"Sander, Andreas ","cat":"","pri":"6,3 mln.","rat":0,"mw":"M","link":"Sander, Andreas <\/a>","confirmed_b":1},{"id":"9141","tem":"0","ctr":"145","nam":"Stuhec, Ilka ","namorig":"Stuhec, Ilka ","cat":"","pri":"6,2 mln.","rat":0,"mw":"F","link":"Stuhec, Ilka <\/a>","confirmed_b":1},{"id":"10054","tem":"0","ctr":"3","nam":"Goldberg, Jared ","namorig":"Goldberg, Jared ","cat":"","pri":"6 mln.","rat":0,"mw":"M","link":"Goldberg, Jared <\/a>","confirmed_b":1},{"id":"10189","tem":"0","ctr":"145","nam":"Kosi, Klemen ","namorig":"Kosi, Klemen ","cat":"","pri":"5,7 mln.","rat":0,"mw":"M","link":"Kosi, Klemen <\/a>","confirmed_b":1},{"id":"10057","tem":"0","ctr":"19","nam":"Muzaton, Maxence ","namorig":"Muzaton, Maxence ","cat":"","pri":"5,6 mln.","rat":0,"mw":"M","link":"Muzaton, Maxence <\/a>","confirmed_b":1},{"id":"9265","tem":"0","ctr":"9","nam":"Khoroshilov, Alexander ","namorig":"Khoroshilov, Alexander ","cat":"","pri":"4,9 mln.","rat":0,"mw":"M","link":"Khoroshilov, Alexander <\/a>","confirmed_b":1},{"id":"9155","tem":"0","ctr":"23","nam":"Curtoni, Elena ","namorig":"Curtoni, Elena ","cat":"","pri":"4,6 mln.","rat":0,"mw":"F","link":"Curtoni, Elena <\/a>","confirmed_b":1},{"id":"10073","tem":"0","ctr":"120","nam":"Zrncic Dim, Natko ","namorig":"Zrncic Dim, Natko ","cat":"","pri":"4,5 mln.","rat":0,"mw":"M","link":"Zrncic Dim, Natko <\/a>","confirmed_b":1},{"id":"9164","tem":"0","ctr":"93","nam":"Venier, Stephanie ","namorig":"Venier, Stephanie ","cat":"","pri":"3,8 mln.","rat":0,"mw":"F","link":"Venier, Stephanie <\/a>","confirmed_b":1},{"id":"9256","tem":"0","ctr":"117","nam":"Foss-Solevaag, Sebastian ","namorig":"Foss-Solevaag, Sebastian ","cat":"","pri":"3,6 mln.","rat":0,"mw":"M","link":"Foss-Solevaag, Sebastian <\/a>","confirmed_b":1},{"id":"10032","tem":"0","ctr":"94","nam":"Haehlen, Joana ","namorig":"Haehlen, Joana ","cat":"","pri":"3,6 mln.","rat":0,"mw":"F","link":"Haehlen, Joana <\/a>","confirmed_b":1},{"id":"9653","tem":"0","ctr":"93","nam":"Striedinger, Otmar ","namorig":"Striedinger, Otmar ","cat":"","pri":"3,6 mln.","rat":0,"mw":"M","link":"Striedinger, Otmar <\/a>","confirmed_b":1},{"id":"9194","tem":"0","ctr":"23","nam":"Brignone, Federica ","namorig":"Brignone, Federica ","cat":"","pri":"3,5 mln.","rat":0,"mw":"F","link":"Brignone, Federica <\/a>","confirmed_b":1},{"id":"10069","tem":"0","ctr":"94","nam":"Yule, Daniel ","namorig":"Yule, Daniel ","cat":"","pri":"3,4 mln.","rat":0,"mw":"M","link":"Yule, Daniel <\/a>","confirmed_b":1},{"id":"11781","tem":"0","ctr":"145","nam":"Kline, Bostjan ","namorig":"Kline, Bostjan ","cat":"","pri":"3,3 mln.","rat":0,"mw":"M","link":"Kline, Bostjan <\/a>","confirmed_b":1},{"id":"10364","tem":"0","ctr":"93","nam":"Schwarz, Marco ","namorig":"Schwarz, Marco ","cat":"","pri":"3,3 mln.","rat":0,"mw":"M","link":"Schwarz, Marco <\/a>","confirmed_b":1},{"id":"9944","tem":"0","ctr":"93","nam":"Puchner, Mirjam ","namorig":"Puchner, Mirjam ","cat":"","pri":"3,2 mln.","rat":0,"mw":"F","link":"Puchner, Mirjam <\/a>","confirmed_b":1},{"id":"14958","tem":"0","ctr":"93","nam":"Maier, Sabrina ","namorig":"Maier, Sabrina ","cat":"","pri":"3,1 mln.","rat":0,"mw":"F","link":"Maier, Sabrina <\/a>","confirmed_b":1},{"id":"9245","tem":"0","ctr":"94","nam":"Tumler, Thomas ","namorig":"Tumler, Thomas ","cat":"","pri":"3,1 mln.","rat":0,"mw":"M","link":"Tumler, Thomas <\/a>","confirmed_b":1},{"id":"11520","tem":"0","ctr":"94","nam":"Weber, Ralph ","namorig":"Weber, Ralph ","cat":"","pri":"3,1 mln.","rat":0,"mw":"M","link":"Weber, Ralph <\/a>","confirmed_b":1},{"id":"13917","tem":"0","ctr":"3","nam":"Bennett, Bryce ","namorig":"Bennett, Bryce ","cat":"","pri":"2,7 mln.","rat":0,"mw":"M","link":"Bennett, Bryce <\/a>","confirmed_b":1},{"id":"10074","tem":"0","ctr":"145","nam":"Cater, Martin ","namorig":"Cater, Martin ","cat":"","pri":"2,7 mln.","rat":0,"mw":"M","link":"Cater, Martin <\/a>","confirmed_b":1},{"id":"10282","tem":"0","ctr":"22","nam":"Ryding, Dave ","namorig":"Ryding, Dave ","cat":"","pri":"2,6 mln.","rat":0,"mw":"M","link":"Ryding, Dave <\/a>","confirmed_b":1},{"id":"9999","tem":"0","ctr":"93","nam":"Feller, Manuel ","namorig":"Feller, Manuel ","cat":"","pri":"2,5 mln.","rat":0,"mw":"M","link":"Feller, Manuel <\/a>","confirmed_b":1},{"id":"10114","tem":"0","ctr":"36","nam":"Thomsen, Benjamin ","namorig":"Thomsen, Benjamin ","cat":"","pri":"2,5 mln.","rat":0,"mw":"M","link":"Thomsen, Benjamin <\/a>","confirmed_b":1},{"id":"10190","tem":"0","ctr":"94","nam":"Murisier, Justin ","namorig":"Murisier, Justin ","cat":"","pri":"2,4 mln.","rat":0,"mw":"M","link":"Murisier, Justin <\/a>","confirmed_b":1},{"id":"9163","tem":"0","ctr":"117","nam":"Mowinckel, Ragnhild ","namorig":"Mowinckel, Ragnhild ","cat":"","pri":"2,2 mln.","rat":0,"mw":"F","link":"Mowinckel, Ragnhild <\/a>","confirmed_b":1},{"id":"9557","tem":"0","ctr":"78","nam":"Kryzl, Krystof ","namorig":"Kryzl, Krystof ","cat":"","pri":"1,9 mln.","rat":0,"mw":"M","link":"Kryzl, Krystof <\/a>","confirmed_b":1},{"id":"9258","tem":"0","ctr":"110","nam":"Zampa, Adam ","namorig":"Zampa, Adam ","cat":"","pri":"1,8 mln.","rat":0,"mw":"M","link":"Zampa, Adam <\/a>","confirmed_b":1},{"id":"9998","tem":"0","ctr":"19","nam":"Miradoli, Romane ","namorig":"Miradoli, Romane ","cat":"","pri":"1,7 mln.","rat":0,"mw":"F","link":"Miradoli, Romane <\/a>","confirmed_b":1},{"id":"9599","tem":"0","ctr":"94","nam":"Aerni, Luca ","namorig":"Aerni, Luca ","cat":"","pri":"1,5 mln.","rat":0,"mw":"M","link":"Aerni, Luca <\/a>","confirmed_b":1},{"id":"10188","tem":"0","ctr":"33","nam":"Bydlinski, Maciej ","namorig":"Bydlinski, Maciej ","cat":"","pri":"1,5 mln.","rat":0,"mw":"M","link":"Bydlinski, Maciej <\/a>","confirmed_b":1},{"id":"11607","tem":"0","ctr":"14","nam":"Strasser, Linus ","namorig":"Strasser, Linus ","cat":"","pri":"1,5 mln.","rat":0,"mw":"M","link":"Strasser, Linus <\/a>","confirmed_b":1},{"id":"15315","tem":"0","ctr":"36","nam":"Thompson, Broderick ","namorig":"Thompson, Broderick ","cat":"","pri":"1,5 mln.","rat":0,"mw":"M","link":"Thompson, Broderick <\/a>","confirmed_b":1},{"id":"10102","tem":"0","ctr":"3","nam":"Wiles, Jacqueline ","namorig":"Wiles, Jacqueline ","cat":"","pri":"1,5 mln.","rat":0,"mw":"F","link":"Wiles, Jacqueline <\/a>","confirmed_b":1},{"id":"14909","tem":"0","ctr":"19","nam":"Bessy, Anouk ","namorig":"Bessy, Anouk ","cat":"","pri":"1,4 mln.","rat":0,"mw":"F","link":"Bessy, Anouk <\/a>","confirmed_b":1},{"id":"15418","tem":"0","ctr":"145","nam":"Hadalin, Stefan ","namorig":"Hadalin, Stefan ","cat":"","pri":"1,4 mln.","rat":0,"mw":"M","link":"Hadalin, Stefan <\/a>","confirmed_b":1},{"id":"9558","tem":"0","ctr":"94","nam":"Nufer, Priska ","namorig":"Nufer, Priska ","cat":"","pri":"1,4 mln.","rat":0,"mw":"F","link":"Nufer, Priska <\/a>","confirmed_b":1},{"id":"11661","tem":"0","ctr":"36","nam":"Read, Erik ","namorig":"Read, Erik ","cat":"","pri":"1,4 mln.","rat":0,"mw":"M","link":"Read, Erik <\/a>","confirmed_b":1},{"id":"10283","tem":"0","ctr":"80","nam":"Samsal, Dalibor ","namorig":"Samsal, Dalibor ","cat":"","pri":"1,4 mln.","rat":0,"mw":"M","link":"Samsal, Dalibor <\/a>","confirmed_b":1},{"id":"11563","tem":"0","ctr":"3","nam":"Biesemeyer, Thomas ","namorig":"Biesemeyer, Thomas ","cat":"","pri":"1,3 mln.","rat":0,"mw":"M","link":"Biesemeyer, Thomas <\/a>","confirmed_b":1},{"id":"11524","tem":"0","ctr":"19","nam":"Giezendanner, Blaise ","namorig":"Giezendanner, Blaise ","cat":"","pri":"1,3 mln.","rat":0,"mw":"M","link":"Giezendanner, Blaise <\/a>","confirmed_b":1},{"id":"11662","tem":"0","ctr":"36","nam":"Grenier, Valerie ","namorig":"Grenier, Valerie ","cat":"","pri":"1,3 mln.","rat":0,"mw":"F","link":"Grenier, Valerie <\/a>","confirmed_b":1},{"id":"10031","tem":"0","ctr":"78","nam":"Krizova, Klara ","namorig":"Krizova, Klara ","cat":"","pri":"1,3 mln.","rat":0,"mw":"F","link":"Krizova, Klara <\/a>","confirmed_b":1},{"id":"10072","tem":"0","ctr":"94","nam":"Zenhaeusern, Ramon ","namorig":"Zenhaeusern, Ramon ","cat":"","pri":"1,3 mln.","rat":0,"mw":"M","link":"Zenhaeusern, Ramon <\/a>","confirmed_b":1},{"id":"11527","tem":"0","ctr":"145","nam":"Brodnik, Vanja ","namorig":"Brodnik, Vanja ","cat":"","pri":"1,2 mln.","rat":0,"mw":"F","link":"Brodnik, Vanja <\/a>","confirmed_b":1},{"id":"15261","tem":"0","ctr":"93","nam":"Dengscherz, Dajana ","namorig":"Dengscherz, Dajana ","cat":"","pri":"1,2 mln.","rat":0,"mw":"F","link":"Dengscherz, Dajana <\/a>","confirmed_b":1},{"id":"11872","tem":"0","ctr":"93","nam":"Matt, Michael ","namorig":"Matt, Michael ","cat":"","pri":"1,2 mln.","rat":0,"mw":"M","link":"Matt, Michael <\/a>","confirmed_b":1},{"id":"12064","tem":"0","ctr":"120","nam":"Ullrich, Max ","namorig":"Ullrich, Max ","cat":"","pri":"1,2 mln.","rat":0,"mw":"M","link":"Ullrich, Max <\/a>","confirmed_b":1},{"id":"14991","tem":"0","ctr":"60","nam":"Appen, Henrik von","namorig":"Appen, Henrik von","cat":"","pri":"1,1 mln.","rat":0,"mw":"M","link":"Appen, Henrik von<\/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":"12075","tem":"0","ctr":"94","nam":"Schmed, Fernando ","namorig":"Schmed, Fernando ","cat":"","pri":"1,1 mln.","rat":0,"mw":"M","link":"Schmed, Fernando <\/a>","confirmed_b":1},{"id":"10365","tem":"0","ctr":"23","nam":"Bassino, Marta ","namorig":"Bassino, Marta ","cat":"","pri":"1 mln.","rat":0,"mw":"F","link":"Bassino, Marta <\/a>","confirmed_b":1},{"id":"10028","tem":"0","ctr":"94","nam":"Berthod, Marc ","namorig":"Berthod, Marc ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Berthod, Marc <\/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":"10142","tem":"0","ctr":"36","nam":"Frisch, Jeffrey ","namorig":"Frisch, Jeffrey ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Frisch, Jeffrey <\/a>","confirmed_b":1},{"id":"14950","tem":"0","ctr":"19","nam":"Gauche, Laura ","namorig":"Gauche, Laura ","cat":"","pri":"1 mln.","rat":0,"mw":"F","link":"Gauche, Laura <\/a>","confirmed_b":1},{"id":"9144","tem":"0","ctr":"23","nam":"Goggia, Sofia ","namorig":"Goggia, Sofia ","cat":"","pri":"1 mln.","rat":0,"mw":"F","link":"Goggia, Sofia <\/a>","confirmed_b":1},{"id":"14951","tem":"0","ctr":"3","nam":"Johnson, Breezy ","namorig":"Johnson, Breezy ","cat":"","pri":"1 mln.","rat":0,"mw":"F","link":"Johnson, Breezy <\/a>","confirmed_b":1},{"id":"14907","tem":"0","ctr":"19","nam":"Larrouy, Noemie ","namorig":"Larrouy, Noemie ","cat":"","pri":"1 mln.","rat":0,"mw":"F","link":"Larrouy, Noemie <\/a>","confirmed_b":1},{"id":"11958","tem":"0","ctr":"3","nam":"Marno, Anna ","namorig":"Marno, Anna ","cat":"","pri":"1 mln.","rat":0,"mw":"F","link":"Marno, Anna <\/a>","confirmed_b":1},{"id":"13904","tem":"0","ctr":"93","nam":"Neumayer, Christopher ","namorig":"Neumayer, Christopher ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Neumayer, Christopher <\/a>","confirmed_b":1},{"id":"12144","tem":"0","ctr":"93","nam":"Ortlieb, Nina ","namorig":"Ortlieb, Nina ","cat":"","pri":"1 mln.","rat":0,"mw":"F","link":"Ortlieb, Nina <\/a>","confirmed_b":1},{"id":"13930","tem":"0","ctr":"94","nam":"Suter, Jasmina ","namorig":"Suter, Jasmina ","cat":"","pri":"1 mln.","rat":0,"mw":"F","link":"Suter, Jasmina <\/a>","confirmed_b":1},{"id":"9554","tem":"0","ctr":"9","nam":"Trikhichev, Pavel ","namorig":"Trikhichev, Pavel ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Trikhichev, Pavel <\/a>","confirmed_b":1},{"id":"14960","tem":"0","ctr":"93","nam":"Walder, Christian ","namorig":"Walder, Christian ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Walder, Christian <\/a>","confirmed_b":1},{"id":"15422","tem":"0","ctr":"14","nam":"Weidle, Kira ","namorig":"Weidle, Kira ","cat":"","pri":"1 mln.","rat":0,"mw":"F","link":"Weidle, Kira <\/a>","confirmed_b":1},{"id":"11521","tem":"0","ctr":"36","nam":"Werry, Tyler ","namorig":"Werry, Tyler ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Werry, Tyler <\/a>","confirmed_b":1},{"id":"9262","tem":"0","ctr":"10","nam":"Yuasa, Naoki ","namorig":"Yuasa, Naoki ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Yuasa, Naoki <\/a>","confirmed_b":1}]; var sportsmenTeams = []; var showTeams = 0; //*********************** //SPORTSMEN TABLE HEADERS //*********************** var headersTableSportsmen = [ { 'sTitle': 'Nº.' }, { 'sTitle': 'Grupo' , 'bSearchable': false, 'bVisible': false }, { 'sTitle': 'País', 'sSortDataType': 'sortCountryFlag', sType : "text" }, { 'sTitle': 'Esquiador'}, { 'sTitle': 'Valor', 'sSortDataType': 'sortMln', 'sType': 'numeric' }, { 'sTitle': 'Equipo' , 'bSearchable': false, 'bVisible': false }, { 'sTitle': 'M/F' } ]; //*********************** //TEAMS TABLE HEADERS //*********************** var headersTableTeams = [ {'sTitle': 'Nº.'}, {'sTitle': '' , 'bSearchable': false, 'bVisible': false }, {'sTitle': 'País' , 'sSortDataType': 'sortCountryFlag', sType : 'text' }, { 'sTitle': ''}, { 'sTitle': 'Valor', '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 ""; }