# this is _cals.js
\
\
cals_reset();\
cals_set_all('<ul class="caltree" style="text-align:left;">\
||begin_list_calendars||\
 ||if(equal(cal_owner,(mine)))||\
  ||if(not(istrue(cal_special)))||\
	<li cal_id="||web_encode(cal_id)||" title="||web_encode(cal_id)||"><div class="full_cursor">'+\
		cals_set_one({id:'||cal_id||', clr:'||cal_color||', name:'||cal_name||', sel:cal_sel})+' ||cal_name||</div></li>\
  ||endif||\
 ||endif||\
||end_list_calendars||\
||define||header_shown||false||\
||begin_list_calendars||\
 ||if(equal(cal_owner,(mine)))||\
  ||if(istrue(cal_special))||\
    ||if(not(istrue(header_shown)))||<li class="cals_header"> Special Calendars </li>||define||header_shown||true||||endif||\
	<li cal_id="||web_encode(cal_id)||" title="||web_encode(cal_id)||"><div class="full_cursor">'+\
		cals_set_one({id:'||cal_id||', clr:'||cal_color||', name:'||cal_name||', sel:cal_sel})+' ||cal_name||</div></li>\
  ||endif||\
 ||endif||\
||end_list_calendars||\
||define||header_shown||false||\
||begin_list_calendars||\
  ||if(not(equal(cal_owner,(mine))))||\
    ||if(not(istrue(header_shown)))||<li class="cals_header"> Shared Calendars </li>||define||header_shown||true||||endif||\
	<li cal_id="||web_encode(cal_id)||" title="||web_encode(cal_id)||"><div class="full_cursor">'+\
		cals_set_one({id:'||cal_id||', clr:'||cal_color||', name:'||cal_name||', sel:cal_sel})+' ||cal_name||</div></li>\
  ||endif||\
||end_list_calendars||\
	</ul>');
