YUI(YUIConfig).use("node","io-base","json-parse",function(d){var a=function(f,e){e.get("parentNode").query("span").set("innerHTML",f)},c=null,b=function(e,f){var g=e.getXY();if(!c){c=d.Node.create('<div class="vote_error"></div>');d.get("body").appendChild(c);c.on("click",function(h){h.halt();c.setStyle("display","none")})}c.set("innerHTML",f).setStyle("display","block");c.setXY([g[0]-100,g[1]-25]);d.later(2000,this,function(){c.setStyle("display","none")})};d.on("domready",function(){var e=d.all("div.votes a");e.on("click",function(h){h.halt();var f=h.target,g=f.get("href");if(g=="#"){b(f,"<p>You must be logged in to vote.</p>");return}g+="&js=1&stamp="+(new Date()).getTime();d.io(g,{on:{success:function(k,j){var i=d.JSON.parse(j.responseText);if(i){if(i.error){b(f,i.error)}else{a(i.total,f)}}}}})})})});