$(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":"Zwitserland"},"93":{"id":"93","country":"Austria","countryCode":"AT","countryTr":"Oostenrijk"},"145":{"id":"145","country":"Slovenia","countryCode":"SI","countryTr":"Sloveni\u00eb"},"23":{"id":"23","country":"Italy","countryCode":"IT","countryTr":"Itali\u00eb"},"14":{"id":"14","country":"Germany","countryCode":"DE","countryTr":"Duitsland"},"19":{"id":"19","country":"France","countryCode":"FR","countryTr":"Frankrijk"},"117":{"id":"117","country":"Norway","countryCode":"NO","countryTr":"Noorwegen"},"36":{"id":"36","country":"Canada","countryCode":"CA","countryTr":"Canada"},"3":{"id":"3","country":"United States","countryCode":"US","countryTr":"Verenigde Staten"},"28":{"id":"28","country":"Spain","countryCode":"ES","countryTr":"Spanje"},"88":{"id":"88","country":"Sweden","countryCode":"SE","countryTr":"Zweden"},"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":"Kroati\u00eb"},"110":{"id":"110","country":"Slovakia","countryCode":"SK","countryTr":"Slowakije"},"10":{"id":"10","country":"Japan","countryCode":"JP","countryTr":"Japan"},"9":{"id":"9","country":"Russia","countryCode":"RU","countryTr":"Rusland"},"78":{"id":"78","country":"Czech Republic","countryCode":"CZ","countryTr":"Tsjechi\u00eb"},"80":{"id":"80","country":"Hungary","countryCode":"HU","countryTr":"Hongarije"},"22":{"id":"22","country":"United Kingdom","countryCode":"GB","countryTr":"Verenigd Koninkrijk"},"33":{"id":"33","country":"Poland","countryCode":"PL","countryTr":"Polen"},"209":{"id":"209","country":"Monaco","countryCode":"MC","countryTr":"Monaco"},"84":{"id":"84","country":"Belarus","countryCode":"BY","countryTr":"Wit-Rusland"},"124":{"id":"124","country":"New Zealand","countryCode":"NZ","countryTr":"Nieuw-Zeeland"},"51":{"id":"51","country":"Australia","countryCode":"AU","countryTr":"Australi\u00eb"},"31":{"id":"31","country":"Argentina","countryCode":"AR","countryTr":"Argentini\u00eb"},"199":{"id":"199","country":"Andorra","countryCode":"AD","countryTr":"Andorra"},"52":{"id":"52","country":"Romania","countryCode":"RO","countryTr":"Roemeni\u00eb"},"95":{"id":"95","country":"Bulgaria","countryCode":"BG","countryTr":"Bulgarije"},"81":{"id":"81","country":"Serbia","countryCode":"RS","countryTr":"Servi\u00eb"},"121":{"id":"121","country":"Georgia","countryCode":"GE","countryTr":"Georgi\u00eb"},"61":{"id":"61","country":"Netherlands","countryCode":"NL","countryTr":"Nederland"},"25":{"id":"25","country":"South Korea","countryCode":"KR","countryTr":"Zuid-Korea"},"118":{"id":"118","country":"Ireland","countryCode":"IE","countryTr":"Ierland"},"60":{"id":"60","country":"Chile","countryCode":"CL","countryTr":"Chili"},"74":{"id":"74","country":"Greece","countryCode":"GR","countryTr":"Griekenland"},"142":{"id":"142","country":"Latvia","countryCode":"LV","countryTr":"Letland"},"27":{"id":"27","country":"Ukraine","countryCode":"UA","countryTr":"Oekra\u00efne"},"76":{"id":"76","country":"Belgium","countryCode":"BE","countryTr":"Belgi\u00eb"},"86":{"id":"86","country":"Bolivia","countryCode":"BO","countryTr":"Bolivia"},"113":{"id":"113","country":"Kyrgyzstan","countryCode":"KG","countryTr":"Kirgizi\u00eb"},"144":{"id":"144","country":"North Macedonia","countryCode":"MK","countryTr":"Noord Macedoni\u00eb"},"109":{"id":"109","country":"Denmark","countryCode":"DK","countryTr":"Denemarken"},"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":"Kazachstan"},"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":"Moldavi\u00eb"},"55":{"id":"55","country":"Madagascar","countryCode":"MG","countryTr":"Madagascar"},"127":{"id":"127","country":"Bosnia and Herzegovina","countryCode":"BA","countryTr":"Bosni\u00eb-Herzegovina"},"132":{"id":"132","country":"Lithuania","countryCode":"LT","countryTr":"Litouwen"},"101":{"id":"101","country":"Togo","countryCode":"TG","countryTr":"Togo"},"154":{"id":"154","country":"East Timor","countryCode":"TL","countryTr":"Oost-Timor"},"169":{"id":"169","country":"Luxembourg","countryCode":"LU","countryTr":"Luxemburg"},"172":{"id":"172","country":"Malta","countryCode":"MT","countryTr":"Malta"},"136":{"id":"136","country":"Albania","countryCode":"AL","countryTr":"Albani\u00eb"},"135":{"id":"135","country":"Armenia","countryCode":"AM","countryTr":"Armeni\u00eb"},"91":{"id":"91","country":"Azerbaijan","countryCode":"AZ","countryTr":"Azerbeidzjan"},"5":{"id":"5","country":"Brasil","countryCode":"BR","countryTr":"Brazili\u00eb"},"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":"Estland"},"18":{"id":"18","country":"Iran","countryCode":"IR","countryTr":"Iran"},"175":{"id":"175","country":"Iceland","countryCode":"IS","countryTr":"IJsland"},"96":{"id":"96","country":"Israel","countryCode":"IL","countryTr":"Isra\u00ebl"},"125":{"id":"125","country":"Lebanon","countryCode":"LB","countryTr":"Libanon"},"37":{"id":"37","country":"Morocco","countryCode":"MA","countryTr":"Marokko"},"43":{"id":"43","country":"Malaysia","countryCode":"MY","countryTr":"Maleisi\u00eb"},"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":"Filipijnen"},"77":{"id":"77","country":"Portugal","countryCode":"PT","countryTr":"Portugal"},"47":{"id":"47","country":"North Korea","countryCode":"KP","countryTr":"Noord-Korea"},"126":{"id":"126","country":"Puerto Rico","countryCode":"PR","countryTr":"Puerto Rico"},"26":{"id":"26","country":"South Africa","countryCode":"ZA","countryTr":"Zuid-Afrika"},"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":"Turkije"},"44":{"id":"44","country":"Uzbekistan","countryCode":"UZ","countryTr":"Oezbekistan"},"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 Arabi\u00eb"}}; var teams = [{"id":0,"name":""}]; var sportsmen = [{"id":"9175","tem":"0","ctr":"3","nam":"Shiffrin, Mikaela ","namorig":"Shiffrin, Mikaela ","cat":"","pri":"25 mln.","rat":0,"mw":"V","link":"Shiffrin, Mikaela <\/a>","confirmed_b":1},{"id":"9144","tem":"0","ctr":"23","nam":"Goggia, Sofia ","namorig":"Goggia, Sofia ","cat":"","pri":"21,4 mln.","rat":0,"mw":"V","link":"Goggia, Sofia <\/a>","confirmed_b":1},{"id":"9138","tem":"0","ctr":"94","nam":"Gut-Behrami, Lara ","namorig":"Gut-Behrami, Lara ","cat":"","pri":"20,3 mln.","rat":0,"mw":"V","link":"Gut-Behrami, Lara <\/a>","confirmed_b":1},{"id":"9194","tem":"0","ctr":"23","nam":"Brignone, Federica ","namorig":"Brignone, Federica ","cat":"","pri":"19,7 mln.","rat":0,"mw":"V","link":"Brignone, Federica <\/a>","confirmed_b":1},{"id":"9252","tem":"0","ctr":"117","nam":"Kristoffersen, Henrik ","namorig":"Kristoffersen, Henrik ","cat":"","pri":"19,4 mln.","rat":0,"mw":"M","link":"Kristoffersen, Henrik <\/a>","confirmed_b":1},{"id":"9158","tem":"0","ctr":"93","nam":"Huetter, Cornelia ","namorig":"Huetter, Cornelia ","cat":"","pri":"15,8 mln.","rat":0,"mw":"V","link":"Huetter, Cornelia <\/a>","confirmed_b":1},{"id":"9164","tem":"0","ctr":"93","nam":"Venier, Stephanie ","namorig":"Venier, Stephanie ","cat":"","pri":"14,1 mln.","rat":0,"mw":"V","link":"Venier, Stephanie <\/a>","confirmed_b":1},{"id":"9220","tem":"0","ctr":"19","nam":"Pinturault, Alexis ","namorig":"Pinturault, Alexis ","cat":"","pri":"13,8 mln.","rat":0,"mw":"M","link":"Pinturault, Alexis <\/a>","confirmed_b":1},{"id":"9764","tem":"0","ctr":"94","nam":"Gisin, Michelle ","namorig":"Gisin, Michelle ","cat":"","pri":"12,9 mln.","rat":0,"mw":"V","link":"Gisin, Michelle <\/a>","confirmed_b":1},{"id":"13922","tem":"0","ctr":"93","nam":"Haaser, Ricarda ","namorig":"Haaser, Ricarda ","cat":"","pri":"11,8 mln.","rat":0,"mw":"V","link":"Haaser, Ricarda <\/a>","confirmed_b":1},{"id":"9163","tem":"0","ctr":"117","nam":"Mowinckel, Ragnhild ","namorig":"Mowinckel, Ragnhild ","cat":"","pri":"11 mln.","rat":0,"mw":"V","link":"Mowinckel, Ragnhild <\/a>","confirmed_b":1},{"id":"9999","tem":"0","ctr":"93","nam":"Feller, Manuel ","namorig":"Feller, Manuel ","cat":"","pri":"10,3 mln.","rat":0,"mw":"M","link":"Feller, Manuel <\/a>","confirmed_b":1},{"id":"10366","tem":"0","ctr":"94","nam":"Suter, Corrine ","namorig":"Suter, Corrine ","cat":"","pri":"9,4 mln.","rat":0,"mw":"V","link":"Suter, Corrine <\/a>","confirmed_b":1},{"id":"10118","tem":"0","ctr":"94","nam":"Flury, Jasmine ","namorig":"Flury, Jasmine ","cat":"","pri":"9,1 mln.","rat":0,"mw":"V","link":"Flury, Jasmine <\/a>","confirmed_b":1},{"id":"13906","tem":"0","ctr":"94","nam":"Meillard, Loic ","namorig":"Meillard, Loic ","cat":"","pri":"8,9 mln.","rat":0,"mw":"M","link":"Meillard, Loic <\/a>","confirmed_b":1},{"id":"9740","tem":"0","ctr":"94","nam":"Holdener, Wendy ","namorig":"Holdener, Wendy ","cat":"","pri":"8,8 mln.","rat":0,"mw":"V","link":"Holdener, Wendy <\/a>","confirmed_b":1},{"id":"9240","tem":"0","ctr":"14","nam":"Luitz, Stefan ","namorig":"Luitz, Stefan ","cat":"","pri":"8,7 mln.","rat":0,"mw":"M","link":"Luitz, Stefan <\/a>","confirmed_b":1},{"id":"15691","tem":"0","ctr":"93","nam":"Scheyer, Christine ","namorig":"Scheyer, Christine ","cat":"","pri":"8,5 mln.","rat":0,"mw":"V","link":"Scheyer, Christine <\/a>","confirmed_b":1},{"id":"10365","tem":"0","ctr":"23","nam":"Bassino, Marta ","namorig":"Bassino, Marta ","cat":"","pri":"8,2 mln.","rat":0,"mw":"V","link":"Bassino, Marta <\/a>","confirmed_b":1},{"id":"11610","tem":"0","ctr":"93","nam":"Brunner, Stephanie ","namorig":"Brunner, Stephanie ","cat":"","pri":"7,8 mln.","rat":0,"mw":"V","link":"Brunner, Stephanie <\/a>","confirmed_b":1},{"id":"10359","tem":"0","ctr":"93","nam":"Tippler, Tamara ","namorig":"Tippler, Tamara ","cat":"","pri":"7,4 mln.","rat":0,"mw":"V","link":"Tippler, Tamara <\/a>","confirmed_b":1},{"id":"9227","tem":"0","ctr":"19","nam":"Faivre, Mathieu ","namorig":"Faivre, Mathieu ","cat":"","pri":"7,1 mln.","rat":0,"mw":"M","link":"Faivre, Mathieu <\/a>","confirmed_b":1},{"id":"10069","tem":"0","ctr":"94","nam":"Yule, Daniel ","namorig":"Yule, Daniel ","cat":"","pri":"6,4 mln.","rat":0,"mw":"M","link":"Yule, Daniel <\/a>","confirmed_b":1},{"id":"9599","tem":"0","ctr":"94","nam":"Aerni, Luca ","namorig":"Aerni, Luca ","cat":"","pri":"6,1 mln.","rat":0,"mw":"M","link":"Aerni, Luca <\/a>","confirmed_b":1},{"id":"9558","tem":"0","ctr":"94","nam":"Nufer, Priska ","namorig":"Nufer, Priska ","cat":"","pri":"5,8 mln.","rat":0,"mw":"V","link":"Nufer, Priska <\/a>","confirmed_b":1},{"id":"9285","tem":"0","ctr":"19","nam":"Muffat-Jeandet, Victor ","namorig":"Muffat-Jeandet, Victor ","cat":"","pri":"5,7 mln.","rat":0,"mw":"M","link":"Muffat-Jeandet, Victor <\/a>","confirmed_b":1},{"id":"10190","tem":"0","ctr":"94","nam":"Murisier, Justin ","namorig":"Murisier, Justin ","cat":"","pri":"5,6 mln.","rat":0,"mw":"M","link":"Murisier, Justin <\/a>","confirmed_b":1},{"id":"9751","tem":"0","ctr":"14","nam":"Duerr, Lena ","namorig":"Duerr, Lena ","cat":"","pri":"5,5 mln.","rat":0,"mw":"V","link":"Duerr, Lena <\/a>","confirmed_b":1},{"id":"15573","tem":"0","ctr":"78","nam":"Ledecka, Ester ","namorig":"Ledecka, Ester ","cat":"","pri":"5,4 mln.","rat":0,"mw":"V","link":"Ledecka, Ester <\/a>","confirmed_b":1},{"id":"9265","tem":"0","ctr":"9","nam":"Khoroshilov, Alexander ","namorig":"Khoroshilov, Alexander ","cat":"","pri":"5,3 mln.","rat":0,"mw":"M","link":"Khoroshilov, Alexander <\/a>","confirmed_b":1},{"id":"11872","tem":"0","ctr":"93","nam":"Matt, Michael ","namorig":"Matt, Michael ","cat":"","pri":"5,2 mln.","rat":0,"mw":"M","link":"Matt, Michael <\/a>","confirmed_b":1},{"id":"9259","tem":"0","ctr":"23","nam":"Gross, Stefano ","namorig":"Gross, Stefano ","cat":"","pri":"5,1 mln.","rat":0,"mw":"M","link":"Gross, Stefano <\/a>","confirmed_b":1},{"id":"10268","tem":"0","ctr":"110","nam":"Vlhova, Petra ","namorig":"Vlhova, Petra ","cat":"","pri":"5 mln.","rat":0,"mw":"V","link":"Vlhova, Petra <\/a>","confirmed_b":1},{"id":"10032","tem":"0","ctr":"94","nam":"Haehlen, Joana ","namorig":"Haehlen, Joana ","cat":"","pri":"4,7 mln.","rat":0,"mw":"V","link":"Haehlen, Joana <\/a>","confirmed_b":1},{"id":"10282","tem":"0","ctr":"22","nam":"Ryding, Dave ","namorig":"Ryding, Dave ","cat":"","pri":"4,4 mln.","rat":0,"mw":"M","link":"Ryding, Dave <\/a>","confirmed_b":1},{"id":"9256","tem":"0","ctr":"117","nam":"Foss-Solevaag, Sebastian ","namorig":"Foss-Solevaag, Sebastian ","cat":"","pri":"4,3 mln.","rat":0,"mw":"M","link":"Foss-Solevaag, Sebastian <\/a>","confirmed_b":1},{"id":"14950","tem":"0","ctr":"19","nam":"Gauche, Laura ","namorig":"Gauche, Laura ","cat":"","pri":"3,9 mln.","rat":0,"mw":"V","link":"Gauche, Laura <\/a>","confirmed_b":1},{"id":"9998","tem":"0","ctr":"19","nam":"Miradoli, Romane ","namorig":"Miradoli, Romane ","cat":"","pri":"3,8 mln.","rat":0,"mw":"V","link":"Miradoli, Romane <\/a>","confirmed_b":1},{"id":"10364","tem":"0","ctr":"93","nam":"Schwarz, Marco ","namorig":"Schwarz, Marco ","cat":"","pri":"3,7 mln.","rat":0,"mw":"M","link":"Schwarz, Marco <\/a>","confirmed_b":1},{"id":"11642","tem":"0","ctr":"120","nam":"Zubcic, Filip ","namorig":"Zubcic, Filip ","cat":"","pri":"3,6 mln.","rat":0,"mw":"M","link":"Zubcic, Filip <\/a>","confirmed_b":1},{"id":"9552","tem":"0","ctr":"23","nam":"De Aliprandini, Luca ","namorig":"De Aliprandini, Luca ","cat":"","pri":"3,4 mln.","rat":0,"mw":"M","link":"De Aliprandini, Luca <\/a>","confirmed_b":1},{"id":"9709","tem":"0","ctr":"145","nam":"Kranjec, Zan ","namorig":"Kranjec, Zan ","cat":"","pri":"3,3 mln.","rat":0,"mw":"M","link":"Kranjec, Zan <\/a>","confirmed_b":1},{"id":"11955","tem":"0","ctr":"3","nam":"Ford, Tommy ","namorig":"Ford, Tommy ","cat":"","pri":"3,2 mln.","rat":0,"mw":"M","link":"Ford, Tommy <\/a>","confirmed_b":1},{"id":"11191","tem":"0","ctr":"93","nam":"Kappaurer, Elisabeth ","namorig":"Kappaurer, Elisabeth ","cat":"","pri":"3,2 mln.","rat":0,"mw":"V","link":"Kappaurer, Elisabeth <\/a>","confirmed_b":1},{"id":"12076","tem":"0","ctr":"23","nam":"Delago, Nicol ","namorig":"Delago, Nicol ","cat":"","pri":"3,1 mln.","rat":0,"mw":"V","link":"Delago, Nicol <\/a>","confirmed_b":1},{"id":"11644","tem":"0","ctr":"93","nam":"Leitinger, Roland ","namorig":"Leitinger, Roland ","cat":"","pri":"3,1 mln.","rat":0,"mw":"M","link":"Leitinger, Roland <\/a>","confirmed_b":1},{"id":"11656","tem":"0","ctr":"145","nam":"Bucik, Ana ","namorig":"Bucik, Ana ","cat":"","pri":"3 mln.","rat":0,"mw":"V","link":"Bucik, Ana <\/a>","confirmed_b":1},{"id":"19034","tem":"0","ctr":"36","nam":"Read, Jeffrey ","namorig":"Read, Jeffrey ","cat":"","pri":"3 mln.","rat":0,"mw":"M","link":"Read, Jeffrey <\/a>","confirmed_b":1},{"id":"9262","tem":"0","ctr":"10","nam":"Yuasa, Naoki ","namorig":"Yuasa, Naoki ","cat":"","pri":"2,9 mln.","rat":0,"mw":"M","link":"Yuasa, Naoki <\/a>","confirmed_b":1},{"id":"11946","tem":"0","ctr":"94","nam":"Schmidiger, Reto ","namorig":"Schmidiger, Reto ","cat":"","pri":"2,8 mln.","rat":0,"mw":"M","link":"Schmidiger, Reto <\/a>","confirmed_b":1},{"id":"14951","tem":"0","ctr":"3","nam":"Johnson, Breezy ","namorig":"Johnson, Breezy ","cat":"","pri":"2,6 mln.","rat":0,"mw":"V","link":"Johnson, Breezy <\/a>","confirmed_b":1},{"id":"10102","tem":"0","ctr":"3","nam":"Wiles, Jacqueline ","namorig":"Wiles, Jacqueline ","cat":"","pri":"2,4 mln.","rat":0,"mw":"V","link":"Wiles, Jacqueline <\/a>","confirmed_b":1},{"id":"16696","tem":"0","ctr":"120","nam":"Popovic, Leona ","namorig":"Popovic, Leona ","cat":"","pri":"2,2 mln.","rat":0,"mw":"V","link":"Popovic, Leona <\/a>","confirmed_b":1},{"id":"11662","tem":"0","ctr":"36","nam":"Grenier, Valerie ","namorig":"Grenier, Valerie ","cat":"","pri":"2,1 mln.","rat":0,"mw":"V","link":"Grenier, Valerie <\/a>","confirmed_b":1},{"id":"13931","tem":"0","ctr":"93","nam":"Hirschbuehl, Christian ","namorig":"Hirschbuehl, Christian ","cat":"","pri":"2,1 mln.","rat":0,"mw":"M","link":"Hirschbuehl, Christian <\/a>","confirmed_b":1},{"id":"15422","tem":"0","ctr":"14","nam":"Weidle, Kira ","namorig":"Weidle, Kira ","cat":"","pri":"2 mln.","rat":0,"mw":"V","link":"Weidle, Kira <\/a>","confirmed_b":1},{"id":"11607","tem":"0","ctr":"14","nam":"Strasser, Linus ","namorig":"Strasser, Linus ","cat":"","pri":"1,9 mln.","rat":0,"mw":"M","link":"Strasser, Linus <\/a>","confirmed_b":1},{"id":"9759","tem":"0","ctr":"93","nam":"Ager, Christina ","namorig":"Ager, Christina ","cat":"","pri":"1,8 mln.","rat":0,"mw":"V","link":"Ager, Christina <\/a>","confirmed_b":1},{"id":"15418","tem":"0","ctr":"145","nam":"Hadalin, Stefan ","namorig":"Hadalin, Stefan ","cat":"","pri":"1,8 mln.","rat":0,"mw":"M","link":"Hadalin, Stefan <\/a>","confirmed_b":1},{"id":"13909","tem":"0","ctr":"117","nam":"Neteland, Bjoernar ","namorig":"Neteland, Bjoernar ","cat":"","pri":"1,8 mln.","rat":0,"mw":"M","link":"Neteland, Bjoernar <\/a>","confirmed_b":1},{"id":"9242","tem":"0","ctr":"94","nam":"Caviezel, Gino ","namorig":"Caviezel, Gino ","cat":"","pri":"1,7 mln.","rat":0,"mw":"M","link":"Caviezel, Gino <\/a>","confirmed_b":1},{"id":"15253","tem":"0","ctr":"94","nam":"Rochat, Marc ","namorig":"Rochat, Marc ","cat":"","pri":"1,6 mln.","rat":0,"mw":"M","link":"Rochat, Marc <\/a>","confirmed_b":1},{"id":"10072","tem":"0","ctr":"94","nam":"Zenhaeusern, Ramon ","namorig":"Zenhaeusern, Ramon ","cat":"","pri":"1,6 mln.","rat":0,"mw":"M","link":"Zenhaeusern, Ramon <\/a>","confirmed_b":1},{"id":"13905","tem":"0","ctr":"3","nam":"Cochran-Siegle, Ryan ","namorig":"Cochran-Siegle, Ryan ","cat":"","pri":"1,5 mln.","rat":0,"mw":"M","link":"Cochran-Siegle, Ryan <\/a>","confirmed_b":1},{"id":"9264","tem":"0","ctr":"23","nam":"Razzoli, Giuliano ","namorig":"Razzoli, Giuliano ","cat":"","pri":"1,5 mln.","rat":0,"mw":"M","link":"Razzoli, Giuliano <\/a>","confirmed_b":1},{"id":"14930","tem":"0","ctr":"23","nam":"Maurberger, Simon ","namorig":"Maurberger, Simon ","cat":"","pri":"1,4 mln.","rat":0,"mw":"M","link":"Maurberger, Simon <\/a>","confirmed_b":1},{"id":"16718","tem":"0","ctr":"23","nam":"Sala, Tommaso ","namorig":"Sala, Tommaso ","cat":"","pri":"1,4 mln.","rat":0,"mw":"M","link":"Sala, Tommaso <\/a>","confirmed_b":1},{"id":"10267","tem":"0","ctr":"81","nam":"Ignjatovic, Nevena ","namorig":"Ignjatovic, Nevena ","cat":"","pri":"1,3 mln.","rat":0,"mw":"V","link":"Ignjatovic, Nevena <\/a>","confirmed_b":1},{"id":"17680","tem":"0","ctr":"88","nam":"Monsen, Felix ","namorig":"Monsen, Felix ","cat":"","pri":"1,3 mln.","rat":0,"mw":"M","link":"Monsen, Felix <\/a>","confirmed_b":1},{"id":"16707","tem":"0","ctr":"88","nam":"Jakobsen, Kristoffer ","namorig":"Jakobsen, Kristoffer ","cat":"","pri":"1,2 mln.","rat":0,"mw":"M","link":"Jakobsen, Kristoffer <\/a>","confirmed_b":1},{"id":"9557","tem":"0","ctr":"78","nam":"Kryzl, Krystof ","namorig":"Kryzl, Krystof ","cat":"","pri":"1,2 mln.","rat":0,"mw":"M","link":"Kryzl, Krystof <\/a>","confirmed_b":1},{"id":"9234","tem":"0","ctr":"93","nam":"Mathis, Marcel ","namorig":"Mathis, Marcel ","cat":"","pri":"1,2 mln.","rat":0,"mw":"M","link":"Mathis, Marcel <\/a>","confirmed_b":1},{"id":"15744","tem":"0","ctr":"94","nam":"Odermatt, Marco ","namorig":"Odermatt, Marco ","cat":"","pri":"1,2 mln.","rat":0,"mw":"M","link":"Odermatt, Marco <\/a>","confirmed_b":1},{"id":"12127","tem":"0","ctr":"9","nam":"Andrienko, Aleksander ","namorig":"Andrienko, Aleksander ","cat":"","pri":"1,1 mln.","rat":0,"mw":"M","link":"Andrienko, Aleksander <\/a>","confirmed_b":1},{"id":"9559","tem":"0","ctr":"23","nam":"Borsotti, Giovanni ","namorig":"Borsotti, Giovanni ","cat":"","pri":"1,1 mln.","rat":0,"mw":"M","link":"Borsotti, Giovanni <\/a>","confirmed_b":1},{"id":"18018","tem":"0","ctr":"93","nam":"Fest, Nadine ","namorig":"Fest, Nadine ","cat":"","pri":"1,1 mln.","rat":0,"mw":"V","link":"Fest, Nadine <\/a>","confirmed_b":1},{"id":"16913","tem":"0","ctr":"14","nam":"Holzmann, Sebastian ","namorig":"Holzmann, Sebastian ","cat":"","pri":"1,1 mln.","rat":0,"mw":"M","link":"Holzmann, Sebastian <\/a>","confirmed_b":1},{"id":"11608","tem":"0","ctr":"25","nam":"Jung, Donghyun ","namorig":"Jung, Donghyun ","cat":"","pri":"1,1 mln.","rat":0,"mw":"M","link":"Jung, Donghyun <\/a>","confirmed_b":1},{"id":"15575","tem":"0","ctr":"3","nam":"Merryweather, Alice ","namorig":"Merryweather, Alice ","cat":"","pri":"1,1 mln.","rat":0,"mw":"V","link":"Merryweather, Alice <\/a>","confirmed_b":1},{"id":"10186","tem":"0","ctr":"14","nam":"Schwaiger, Dominik ","namorig":"Schwaiger, Dominik ","cat":"","pri":"1,1 mln.","rat":0,"mw":"M","link":"Schwaiger, Dominik <\/a>","confirmed_b":1},{"id":"9554","tem":"0","ctr":"9","nam":"Trikhichev, Pavel ","namorig":"Trikhichev, Pavel ","cat":"","pri":"1,1 mln.","rat":0,"mw":"M","link":"Trikhichev, Pavel <\/a>","confirmed_b":1},{"id":"12062","tem":"0","ctr":"120","nam":"Vidovic, Matej ","namorig":"Vidovic, Matej ","cat":"","pri":"1,1 mln.","rat":0,"mw":"M","link":"Vidovic, Matej <\/a>","confirmed_b":1},{"id":"11684","tem":"0","ctr":"117","nam":"Windingstad, Rasmus ","namorig":"Windingstad, Rasmus ","cat":"","pri":"1,1 mln.","rat":0,"mw":"M","link":"Windingstad, Rasmus <\/a>","confirmed_b":1},{"id":"15440","tem":"0","ctr":"110","nam":"Zampa, Andreas ","namorig":"Zampa, Andreas ","cat":"","pri":"1,1 mln.","rat":0,"mw":"M","link":"Zampa, Andreas <\/a>","confirmed_b":1},{"id":"10187","tem":"0","ctr":"93","nam":"Brennsteiner, Stefan ","namorig":"Brennsteiner, Stefan ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Brennsteiner, Stefan <\/a>","confirmed_b":1},{"id":"10288","tem":"0","ctr":"36","nam":"Brown, Phil ","namorig":"Brown, Phil ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Brown, Phil <\/a>","confirmed_b":1},{"id":"18981","tem":"0","ctr":"117","nam":"Brudevoll, Bjoern ","namorig":"Brudevoll, Bjoern ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Brudevoll, Bjoern <\/a>","confirmed_b":1},{"id":"10120","tem":"0","ctr":"209","nam":"Coletti, Alexandra ","namorig":"Coletti, Alexandra ","cat":"","pri":"1 mln.","rat":0,"mw":"V","link":"Coletti, Alexandra <\/a>","confirmed_b":1},{"id":"15261","tem":"0","ctr":"93","nam":"Dengscherz, Dajana ","namorig":"Dengscherz, Dajana ","cat":"","pri":"1 mln.","rat":0,"mw":"V","link":"Dengscherz, Dajana <\/a>","confirmed_b":1},{"id":"16904","tem":"0","ctr":"3","nam":"Engel, Mark ","namorig":"Engel, Mark ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Engel, Mark <\/a>","confirmed_b":1},{"id":"18977","tem":"0","ctr":"124","nam":"Feasey, Willis ","namorig":"Feasey, Willis ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Feasey, Willis <\/a>","confirmed_b":1},{"id":"19036","tem":"0","ctr":"36","nam":"Fleckenstein, Stefanie ","namorig":"Fleckenstein, Stefanie ","cat":"","pri":"1 mln.","rat":0,"mw":"V","link":"Fleckenstein, Stefanie <\/a>","confirmed_b":1},{"id":"16705","tem":"0","ctr":"33","nam":"Gasienica-Daniel, Maryna ","namorig":"Gasienica-Daniel, Maryna ","cat":"","pri":"1 mln.","rat":0,"mw":"V","link":"Gasienica-Daniel, Maryna <\/a>","confirmed_b":1},{"id":"13913","tem":"0","ctr":"74","nam":"Ginnis, AJ ","namorig":"Ginnis, AJ ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Ginnis, AJ <\/a>","confirmed_b":1},{"id":"10253","tem":"0","ctr":"110","nam":"Kantorova, Barbara ","namorig":"Kantorova, Barbara ","cat":"","pri":"1 mln.","rat":0,"mw":"V","link":"Kantorova, Barbara <\/a>","confirmed_b":1},{"id":"10141","tem":"0","ctr":"3","nam":"Kelley, Robby ","namorig":"Kelley, Robby ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Kelley, Robby <\/a>","confirmed_b":1},{"id":"10031","tem":"0","ctr":"78","nam":"Krizova, Klara ","namorig":"Krizova, Klara ","cat":"","pri":"1 mln.","rat":0,"mw":"V","link":"Krizova, Klara <\/a>","confirmed_b":1},{"id":"18987","tem":"0","ctr":"3","nam":"Lebel, Maureen ","namorig":"Lebel, Maureen ","cat":"","pri":"1 mln.","rat":0,"mw":"V","link":"Lebel, Maureen <\/a>","confirmed_b":1},{"id":"17766","tem":"0","ctr":"117","nam":"Lie, Kajsa Vickhoff ","namorig":"Lie, Kajsa Vickhoff ","cat":"","pri":"1 mln.","rat":0,"mw":"V","link":"Lie, Kajsa Vickhoff <\/a>","confirmed_b":1},{"id":"16915","tem":"0","ctr":"19","nam":"Noel, Clement ","namorig":"Noel, Clement ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Noel, Clement <\/a>","confirmed_b":1},{"id":"15686","tem":"0","ctr":"117","nam":"Patricksson, Axel William ","namorig":"Patricksson, Axel William ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Patricksson, Axel William <\/a>","confirmed_b":1},{"id":"19035","tem":"0","ctr":"14","nam":"Remme, Roni ","namorig":"Remme, Roni ","cat":"","pri":"1 mln.","rat":0,"mw":"V","link":"Remme, Roni <\/a>","confirmed_b":1},{"id":"15745","tem":"0","ctr":"120","nam":"Rodes, Istok ","namorig":"Rodes, Istok ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Rodes, Istok <\/a>","confirmed_b":1},{"id":"13907","tem":"0","ctr":"14","nam":"Schmid, Alexander ","namorig":"Schmid, Alexander ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Schmid, Alexander <\/a>","confirmed_b":1},{"id":"19221","tem":"0","ctr":"34","nam":"Simader, Sabrina ","namorig":"Simader, Sabrina ","cat":"","pri":"1 mln.","rat":0,"mw":"V","link":"Simader, Sabrina <\/a>","confirmed_b":1},{"id":"10232","tem":"0","ctr":"51","nam":"Small, Greta ","namorig":"Small, Greta ","cat":"","pri":"1 mln.","rat":0,"mw":"V","link":"Small, Greta <\/a>","confirmed_b":1},{"id":"11965","tem":"0","ctr":"36","nam":"Tommy, Mikaela ","namorig":"Tommy, Mikaela ","cat":"","pri":"1 mln.","rat":0,"mw":"V","link":"Tommy, Mikaela <\/a>","confirmed_b":1},{"id":"18976","tem":"0","ctr":"93","nam":"Walch, Magnus ","namorig":"Walch, Magnus ","cat":"","pri":"1 mln.","rat":0,"mw":"M","link":"Walch, Magnus <\/a>","confirmed_b":1}]; var sportsmenTeams = []; var showTeams = 0; //*********************** //SPORTSMEN TABLE HEADERS //*********************** var headersTableSportsmen = [ { 'sTitle': 'Nr.' }, { 'sTitle': 'Groep' , 'bSearchable': false, 'bVisible': false }, { 'sTitle': 'Land', 'sSortDataType': 'sortCountryFlag', sType : "text" }, { 'sTitle': 'Skiƫr'}, { 'sTitle': 'Waarde', 'sSortDataType': 'sortMln', 'sType': 'numeric' }, { 'sTitle': 'Team' , 'bSearchable': false, 'bVisible': false }, { 'sTitle': 'M/V' } ]; //*********************** //TEAMS TABLE HEADERS //*********************** var headersTableTeams = [ {'sTitle': 'Nr.'}, {'sTitle': '' , 'bSearchable': false, 'bVisible': false }, {'sTitle': 'Land' , 'sSortDataType': 'sortCountryFlag', sType : 'text' }, { 'sTitle': ''}, { 'sTitle': 'Waarde', '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 ""; }