jQuery(function(c){var h=c("#poll");if(!h.length){return}var i=c("#poll-results");var m=c("#poll-results .poll-result");var o=c("#poll-form");var d=c("#vote");var e=c("#poll-form input:radio");var k=+i.attr("class").match(/total-(\d+)/)[1];var l=c.map(m,function(p){return +p.className.match(/votes-(\d+)/)[1]});var n=o[0].pollID.value;var j=Math.round(Math.random()*360*60);var g="nikeos.userVote";var a="nikeos.pollId";var f=c.cookie(a)==n&&c.cookie(g);if(f){b()}else{d.click(function(){if(f||!e.is(":checked")){return false}f=true;var q=+e.filter(":checked").val();var p=new SOAPObject("addAnonymousVote");p.ns="http://jivesoftware.com/webservices";p.appendChild(new SOAPObject("pollID")).val(n);p.appendChild(new SOAPObject("index")).val(q);p.appendChild(new SOAPObject("uniqueID")).val(j);var r=new SOAPRequest("/rpc/soap/PollService",p);SOAPClient.SOAPServer="/rpc/soap/PollService";SOAPClient.SendRequest(r,function(s){if(s){c.cookie(g,j,{path:"/",expires:3});c.cookie(a,n,{path:"/",expires:3})}b(q)});e.attr("disabled",true);return false})}function b(p){if(p!=null){k++;l[p]++}m.each(function(q){var t=c(this);var r=k?Math.round(100*l[q]/k)+"%":"0%";var s=t.find(".poll-bar div").css("width",0);var u=t.find(".poll-percentage")[0];setTimeout(function(){s.animate({width:r},{easing:"easeOutQuad",step:function(v,w){u.innerHTML=Math.round(v)+w.unit}})},(q+1)*250)});o.hide();i.show()}});jQuery.extend(jQuery.easing,{easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a}});