function autoCompleteNewsUrl(g){var f,e,b,h,d,a,c;f=g.league;e=g.value.substring(0,25);b=g.playerId;h=g.pos;d=g.Team;seoName=g.seoName;return"http://$http_host/fantasy"+f+"/players/updates/"+b+"/"+seoName}function autoCompletePlayerUrl(g){var f,e,b,h,d,a,c;f=g.league;e=g.value.substring(0,25);b=g.playerId;h=g.pos;d=g.Team;seolink=parseSeoLink(g.url);seoName=g.seoName;return"http://$http_host/fantasy"+f+"/players/playerpage/"+b+"/"+seoName}function autoCompletePlayerDiv(d,e){var c=(typeof(e.label)!="undefined")?e.label:"";var a=(typeof(e.pos)!="undefined")?e.pos:"";var b=(typeof(e.Team)!="undefined")?e.Team:"";return $("<li style='display:block;'></li>").data("item.autocomplete",e).append("<a><div style='width:250px; height:16px;'><div style='width:150px; float:left;'>"+c+"</div><div style='width:15px;float:left;'>"+a+"</div><div style='float:right;'>"+b+"</div></div></a>").appendTo(d)}function parseSeoLink(b){var e,d,a,c;e=b.split(/,/);seo=e.reverse().join("-").toLowerCase().replace(/^\s/,"").replace(/[^\w\-\s]/g,"").replace(/\s/g,"-");return seo}function display(c,a){var b=document.all?document.all[c]:document.getElementById(c);if(b){b.style.display=a?"":"none"}}function switchTab(h,f,b){for(var c=0;c<h.length;c++){try{var d=document.getElementById("tab_"+f+"_"+h[c]);var a=document.getElementById(f+"_"+h[c]);if(h[c]==b){a.style.display="";d.style.color="black";d.style.fontWeight="bold"}else{a.style.display="none";d.style.color="blue";d.style.fontWeight="normal"}}catch(g){if(debug){alert(g)}}}};
