function youVoted(a){if(a==0){$$("#voting #vote")[0].hide();Effect.Appear("yes",{duration:3})}else{$$("#voting #vote")[0].hide();Effect.Appear("no",{duration:3})}}function noVote(){$$("#voting #vote")[0].show();$("yes").hide();$("no").hide()}function showVotedDiv(){var d=arguments[0];var b=arguments[1];if(no_id&&no_id==d){var a=$$("div#no p")[0];var c=$("no")}else{if(yes_id&&yes_id==d){var a=$$("div#yes p")[0];var c=$("yes")}}if(c){if(b){temp=a.innerHTML.split(" ");temp[temp.length-1]=b;a.update(temp.join(" "))}$$("#voting #vote")[0].hide();c.show()}else{$$("#voting #vote")[0].show()}};