var intPollTimer=0,head=document.getElementsByTagName("head")[0],pollColors="#E76F00,#0087C7,#007E3A,#60207F,#BC43A4,#666666,#A6CC58,#F2A232,#E76F00,#0087C7,#007E3A,#60207F,#BC43A4,#666666,#A6CC58,#F2A232,#E76F00,#0087C7,#007E3A,#60207F,#BC43A4,#666666,#A6CC58,#F2A232".split(","),pollWidths=[],strPollNoResults="<p>No results have been recorded for this poll yet.</p>",strVotesText=" votes, ";
function loadPollResults(a){if(document.getElementById){var a=document.getElementById("pollContent"+a),c=false;if(pollResults.name!=null){var b='<div class="pollQuestion">'+pollResults.question+"</div>",d=0;pollWidths=[];for(i=0;i<pollResults.answers.length;i++)parseInt(pollResults.answers[i].count)>100&&(c=true),d+=parseInt(pollResults.answers[i].count);for(i=0;i<pollResults.answers.length;i++)pollWidths.push(Math.round(100*parseInt(pollResults.answers[i].count)/d));for(i=0;i<pollResults.answers.length;i++)b+=
'<div class="pollAnswer">'+pollResults.answers[i].answer+' &nbsp;<span class="timestamp">(',c&&(b+=pollResults.answers[i].count+strVotesText),b+=pollWidths[i]+"%)</span><br />",b+='<div class="pollBar"><div class="pollValue" style="background:'+pollColors[i]+"; width:"+pollWidths[i]+'%"></div></div></div>'}else b=strPollNoResults;a.innerHTML=b;pollResults=null}}
function checkForPollResults(a){typeof window.pollResults!="undefined"?pollResults!=null?loadPollResults(a):intPollTimer=setTimeout("checkForPollResults("+a+")",500):intPollTimer=setTimeout("checkForPollResults("+a+")",500)}
function showPollResults(a){if(document.createElement)scriptNode=document.createElement("script"),scriptNode.id="reutersPollResults",scriptNode.setAttribute("type","text/javascript"),scriptNode.setAttribute("charset","utf-8"),scriptNode.setAttribute("src","http://widgets.reuters-sports.com/polls/json_results.php?name="+a),head.appendChild(scriptNode),checkForPollResults(a)}
function enablePollSubmit(){if(document.getElementById("pollSubmitButton"))document.getElementById("pollSubmitButton").disabled=false,document.getElementById("pollSubmitButton").className=""};

