function sbarToggle(){var a=$(document.body),b;if(a.hasClassName("rightPanel")){b=0;a.removeClassName("rightPanel")}else{b=1;a.addClassName("rightPanel")}new Ajax.Request(KronolithVar.pref_api_url,{parameters:{app:"kronolith",pref:"show_panel",value:b}})}document.observe("dom:loaded",function(){$$("#pageControlsInner .checkbox").invoke("observe","click",function(){Views.invalidate();ShowView(kronolithView,{timestamp:kronolithTimestamp,toggle_calendar:this.value},false)});$$("#pageControlsInner .calendar-info").invoke("observe","click",function(){RedBox.loading();var a=this.up().select(".checkbox").first().value;new Ajax.Request(KronolithVar.calendar_info_url,{parameters:{c:a},method:"get",onSuccess:function(b){RedBox.showHtml('<div id="RB_info">'+b.responseText+'<input type="button" class="button" onclick="RedBox.close();" value="'+KronolithText.close+'" /></div>')},onFailure:function(b){RedBox.close()}})})});