ComCore.Queuer.add(function(){var B=null;var A=null;$$("div.attendButton a").each(function(C){var D=C.up("div.attendButton");if(D.hasClassName("going")){A=D}else{B=D}C.observe("click",function(H){try{ComCore.LoadingIndicator.show();var E=H.findElement("a").attr("href");var G=function(M,L,J){try{if(!L.success){throw"Error in ajax-call"}if(L.actionState==="attendSuccess"){A.show();B.hide()}else{if(L.actionState==="unAttendSuccess"){B.show();A.hide()}else{window.location=J}}ComCore.LoadingIndicator.hide()}catch(K){debug(K)}};var I=new Ajax.Request(E,{method:"post",onSuccess:function(K,J){G(K,J,E)}})}catch(F){debug(F)}H.stop()})})});