var $a='Copyright 07/2004 Hy Bern';function Zn(){document.write(ZW())};var $b=7;var $c="red";var $d="green";var $e="blue";var $f="black";var $g='#f0ecff';var $h='#dedaff';var $i=3;var $j=' BGCOLOR='+$h;var $k=' BGCOLOR='+$g;var $l=' style="background-color:'+$h+';">';var $m=new Array("n","January","February","March","April","May","June","July","August","September","October","November","December");var $n,$o,$p,$q;var $r=window.location.pathname;var $s=new Array("no","Sun","Mon","Tue","Wed","Thu","Fri","Sat");var b2='&nbsp;&nbsp;';var b3=b2+'&nbsp;';var b9=b3+b3+b3;var $t=new Date();var $u=ZS($t)*100+($t.getMonth()>0?$t.getMonth():-88);var $v=ZS($t)*100+112;var $w='',$x='',$y='',$z='';var $A='',$B='',$C='',$D='';var $E,Ac;var $F=$u*100;var $G=new Array;function ZT($H,$I,$J,$K){this.description=$H;this.Group=$I||"default";this.link=$J||"";this.esrc=$K||"F"};function E($L,$M,$I,$N,$K){$K=$K||"F";if(!Groups[$I])$I=ZO($I,$M);if(!$G[$L])$G[$L]=new Array;$G[$L][$G[$L].length]=new ZT($M,$I,$N,$K)};function e(ev){var t=ev.split("|");if(t[1])E(t[0],t[2],t[1],(t[3]||""),"F")};var Groups=new Array;function ZM($O,$P){this.show=($O!="h"?"v":"h");this.color=($P?$P:"black")};function ZO(name,$O,$P){if(name=='default'){$E=$O.split(',');for(var i=0;i<$E.length;i++){Ac=$E[i].split('=');if(Ac[1]>' ')ZO(Ac[0].replace(/^ +/,''),'',Ac[1])};$O='v';$P='black'};Groups[name]=new ZM($O,$P);return name};function ZR(){var z='';for(var i in Groups)if(i!="default"){z+='<input title="Show/hide '+i+' events" type=checkbox name='+i+' '+(Groups[i].show!="h"?" checked":"")+' onClick="ZP(\''+i+'\')"><font size=1 color="'+(Groups[i].color||"black")+'">'+'<span id="g'+i+'">'+i+'</span>'+'&nbsp;</font>'};return('<TR '+$j+'><TD colspan=7 align=left id="g" class="s"><form name="GForm">'+'<input type="button" name="GC" value="Show:" title="Show selected groups" '+'onClick="ZN()" '+$l+z+"</form></TD></TR>")};function ZP(g){Groups[g].show=(document.GForm[g].checked?"v":"h");$x=g};function Zc(s){if(s.length>2&&s.substr(0,1)=='g'){$x=s.substr(1);YV('AED')}};function ZN(){var i,v="";for(i in Groups)if(i!="default")v+=i+"="+Groups[i].show+'|';Zd('hycal',v);ZL()};function ZQ(){var s=Zq('hycal');if((typeof(s)!="string")||(s.length<4))return false;var l=s.split("|");for(var i=0;i<l.length;i++)if(l[i]>""){s=l[i].split('=');if(Groups[s[0]])Groups[s[0]].show=s[1]};return true};function ZW(){var $L,z,$Q,$R,dy,$S,$T,$U,$V;Ze();ZQ();$Q=$t.getDate();$R=$t.getMonth()+1;Zm($R);$L=$q*100;$T=new Date($m[$o]+" 1,"+yr);$S=$T.getDay();$U=ZI($o,$p);$V=1+($S+$U-1)%7;var $W='<TR border=0'+$j+'>';var $X='<TD ALIGN=CENTER'+$j+'>';var $Y='<TD'+$k+' align=left valign=top margin=10px padding=10px COLSPAN=';z='<style type="text/css">'+'.ga{background:'+$g+'}.gd,.pop{background:'+$h+'}'+'.gb{width:230px;background:'+$g+'}'+'.pop{display:block;width:"100%";position:absolute;left:0px;top:0px;visibility:hidden}'+'.gd{border:0px solid blue}.shy{display:block}.s{border:2.5px inset '+$h+'}</style>'+'<TABLE BORDER=2'+$k+' width="100%" onMouseover="s(event,\'outset\',\'\')" '+'onMouseout="s(event,\'inset\',\'\')" onMouseup="s(event,\'groove\',arguments[0])">'+$W+$X+YW(Zf($q),'show previous month')+'</TD>'+'<TD align=left valign=top COLSPAN=5>'+ZD()+'</td>'+$X+YW(Zj($q),'show next month')+"</TD></TR>"+$W;for(var i=1;i<=7;i++){z+="<TD ALIGN=CENTER WIDTH=14%><FONT SIZE=2>"+$s[i]+"</FONT></TD>"};z+="</TR><TR>";dy=1;while(dy<=$U){for(var i=1;i<=7;i++){if(dy==1&&i<=$S){if(i==1)z+=$Y+$S+" class='s' id='d0'>"+ZG(0,0,0,1,2,$L)+"</TD>";}else if(dy>$U){if(i==$V+1)z+=$Y+(7-$V)+" class='s' id='d32'>"+ZG(0,0,0,1,2,$L+32)+"</TD>";}else{z+="<td valign=top align=right class='s' id='d"+dy+"'>"+ZG($o,dy,i,$R,$Q,$L+dy++)+"</TD>"}};z+="</TR>"};return z+ZR()+'</table>'+Zh()+Zg()};function ZG(mo,dy,$00,$01,$02,$L){var c,j,ev,$n='';if($G[$L])for(j in $G[$L]){ev=$G[$L][j];if(Groups[ev.Group].show=="v"){$n+=($n>""?"<br>":'')+'<span class="E" id="e'+j+'">'+(ev.link?'<u>':'')+(dy>0?'':'&nbsp;')+'<font size=2 color='+(Groups[ev.Group].color||'black')+'>'+ev.description+'</font>'+(ev.link?'</u>':'')+'</span>'}};if((mo==$01)&&(dy==$02))c=$d;else if($00==$b)c=$c;else c=($n>''?$e:$f);if($n==''&&dy==0)$n='&nbsp;';return((dy>0?'<font size='+$i+' color='+c+'><B>'+dy+'&nbsp;</B></font><br>':'')+$n)};function YW(ym,$03){var i;var m=ym%100;var y=(ym-m)/100;var d=new Date($m[m]+" 1,"+y);var $S=d.getDay();var $U=ZI(m,y);var $L=ym*100;var z='';d=1;while(d<=$U){z+='<br>';for(i=1;i<=7;i++){if((d==1&&i<=$S)||(d>$U))z+=b3;else z+='&nbsp;'+(d<10?'&nbsp;':'')+($G[$L+d]?'<font color=red>'+d+++'</font>':d++)}}return('<div'+($03>''?' title="'+$03+'" onClick="ZL('+ym+');" style="cursor:hand; cursor:pointer;">':'>')+'<b><tt><font size=2><div align=center>&nbsp;'+$m[m]+'</div></font><font size=1>&nbsp;'+'<u>&nbsp;S'+b2+'M'+b2+'T'+b2+'W'+b2+'T'+b2+'F'+b2+'S</u>'+z+'</font></tt></b></div>')}function ZD(){return '<div id="ymC" class="shy"><table width=100% cellpadding=0 cellspacing=0><tr><td>'+'<a href="index.html"><img src="cjc.gif" border=0 align=right width=240 height=50 alt="CJC Home" title="Home:Cooperative Jewish Council"></a>'+'<div align=left>'+ZE()+'</div></td></tr><tr><td>'+'<div width=100% valign=center align=center>'+YT()+'</div></td></tr></table></div>'}function ZE(){return('<select name="ahelp" size=1 onChange="ZF(this.value,this);" '+'title="Help for calendar use, or select exports" '+$l+'<option value=0>help'+'<option title="Help re calendar or personal events" value="aHelp">Help'+'<option title="Select exports, clear cookie events" value="aExports">Exports'+'</select>')}function ZF(v,$04){$04.selectedIndex=0;if(!v||(v.length<2))return;if(v=='aHelp'){document.location="help.html";}else if(v=='aExports'){YU('divEXP')}return}function YT(){var m,y,t,z;t=$u;z='';while(t<=$v){m=t%100;y=(t-m)/100;z+="<option value="+t+(t==$q?" selected":"")+">"+$m[m]+" "+y;t=Zj(t)};if($q<$u||$q>$v)z+='<option value='+$q+' selected>'+$m[$o]+' '+$p;return('<form name="ymC"><select name="j" title="Select month and year to show" size=1 '+'onchange="ZL(this.value,this);" style="background-color:'+$h+';font-size:'+'100%;font-weight:bold;">'+z+'</select></form>')};function Zh(){return '<div id="AED" class="pop"><form name="aed"><table class="gd" rows=4 cols=2 width="100%" border=0>'+'<tr><font size=-1><td colspan=2>'+'<span align=left><input type="text" name="gd" class="gd" size=90 onfocus="this.blur();" value="groupDate"></span>'+'<span align=right><INPUT type="button" class="ga" value="EXIT" onclick="YV(\'AED\');"></span></td></font></tr>'+'<tr><td width=20%><font size=-1>&nbsp;&nbsp;&nbsp;Event text:</font></td><td><font size=-1>'+'<input type="text" name="adesc" class="ga" size=80 onblur="javascript:AEDdesc=this.value;"></font></td></tr>'+'<tr><td width=20%><font size=-1>&nbsp;&nbsp;&nbsp;(Optional link)</font></td><td><font size=-1>'+'http:/'+'/<input type="text" name="aurl" class="ga" size=74 onblur="javascript:AEDurl=this.value;">'+'</font></td></tr><tr><td colspan=2><font size=-1>'+'<INPUT type="button" class="ga" value="Save as shown" onclick="ZX();">'+'<INPUT type="button" class="ga" value="Cancel-leave as was" onclick="YV(\'AED\');">'+'<INPUT type="button" class="ga" value="Delete this event" onclick="ZV();">'+'</font></td></tr></table></form></div>'};function Zo(v,t,c){return '<td>'+Zp(v,t,'onclick="Zu(\''+c+'\');"')+'</td>'};function Zp(v,t,a){return '<input type="button" class="gb" value="'+v+'" title="'+t+'" '+a+'>'};function Zg(){var c='Clean events from cookies(AFTER email/save)';var p='In popup window';var t='Comma-separated format ';var u='for input into Outlook, Excell etc.';var ym=$F/100;return '<div id="divEXP" class="pop"><form name="exp">'+'<table class="gd" rows=4 cols=3 width="100%"><tr>'+'<td>'+Zp("Exit",'Exit exports','onclick="YV();"')+'</td>'+Zo("Month list for groups shown",t+u,"MonthCS")+Zo("Save Mine on/after "+ym,"Save personal events(group Mine)on/after "+ym+" to local file","Mine")+'</tr><tr>'+Zo("Email-to-CJC events","Save events formatted for Email to CJC-just paste into email message","Email")+Zo("Future events list for groups shown",t+'from '+ym+' on,'+u,"YearCS")+Zo("Clear old Mine events before "+ym,c,"ClearO")+'</tr><tr>'+Zo("Clear Emailed / CJC-web events",c,"ClearG")+Zo("Show hycal cookies(popup)",p,"ShowC")+Zo("Clear ALL Mine events",c,"ClearM")+'</tr><tr>'+Zo("CJC-web:all events","CJC support:Export all events from "+ym+" on for web site","CJC")+Zo("Show hycal events+cookies(popup)",p,"Showme")+'</tr></table></form></div>';}function ZY(pd){document.aed.gd.value=' '+$x+' on '+pd+' Please edit the text(and if desired, the optional link)';document.aed.gd.style.color=Groups[$x].color;document.aed.adesc.focus()}function Zv(d,$L,$05){var pd=Zi(d);var $K='N';document.aed.adesc.value=document.aed.aurl.value=$y=$z=$A=$B=$C=$D='';$w=$L;if($05==''){if($x<=' '){alert('Please click on a group name below(the name, not the checkbox)');return false}YU('AED');ZY(pd);return;}else{if($05.length<2||$05.substr(0,1)!='e')return false;$A=$05=$05.substr(1);if(!$G[$L]||!$G[$L][$05]){alert('Problem finding event!');return}$x=$G[$L][$05].Group||'default';$y=document.aed.adesc.value=$G[$L][$05].description||'';$z=document.aed.aurl.value=$G[$L][$05].link||'';$K=$G[$L][$05].esrc;if($K!='F'){$B=Zs($K);if($B<0){alert('Unable to find event, escr='+$K);$A=$B='';return false}}else $B=-1;YU('AED');ZY(pd);return}}function s(m,s,b){var c,$L,$06='',$07='',$08='';c=(m.srcElement||m.target);while(c.tagName!="TD"&&c.tagName!='TABLE'&&(c.parentNode||c.parentElement)){if(c.id&&!$06){$06=c.id;$07=c.tagName;$08=c.className}c=c.parentNode||c.parentElement}if(c.className=="s"){c.style.borderStyle=s;if(c.id&&c.id.substr(0,1)=='d'){c.style.backgroundColor=(s=='outset'?'white':$g);$L=$q*100+parseInt(c.id.substr(1));if(s=='groove'){b=(b?b.which:window.event.button);if($06&&b==1&&$G[$L][$06.substr(1)].link>' '){window.location=$G[$L][$06.substr(1)].link;return}return(Zv(c.id.substr(1),$L,$06))}else if($06=='')window.status='Click to add event '+$x+' '+Zi(c.id.substr(1))+'(or click a different group name, NOT the checkbox)';else if($G[$L][$06.substr(1)].link>' ')window.status='Right-click to edit/delete, or Left-click to go to '+$G[$L][$06.substr(1)].link;else window.status='Click to edit or delete '+$G[$L][$06.substr(1)].Group+' event '+$G[$L][$06.substr(1)].description;}else if(c.id&&c.id=='g'){c.style.backgroundColor=(s=='outset'?'white':$h);if(s=='groove')Zc($06);else if($06.substr(0,1)=='g')window.status='Click to use group '+$06.substr(1)+' when adding events';}}}function Zm(m){if(!Groups["default"])ZO("default");$09=(ZS($t)*100)+m;var t=window.location.search.split('?');if(t.length>1){if(t[1].length==6)$09=parseInt(t[1]);if(t[2]&&t[2].length>2)$x=t[2]}if($09<200001)$09=$u;else if($09>203099)$09=$v;$o=mo=$09%100;$p=yr=($09-mo)/100;$q=$09}function Zb(c,v){for(var i=0;i<c.options.length;i++)if(c.options[i].value==v)return(c.options[i].selected=true);return false}function ZL(y,$04){if($04)Zb($04,$q);document.location=$r+"?"+(y||$q)+'?'+$x}function Zx(s){if(s)return s.replace(/[\r\n]/g,' ').replace(/\|/g,'!').replace(/"/g,"'").replace(/^ +| +$/,'')||''}var $0a=20040232;function Zu($0b,$04){var $0c,$0d,$0e,j,$0f,mo,yr,$09,$L,$0g,$0h,cs,$0i,s6,$0j;var $0k,$0l,$Q,$R,dy,$S,$U;if($0b.length<2)return;if($0b=='ClearG'){Zz("NOTmine");return}if($0b=='ClearO'){Zz("OldMine");return}if($0b=='ClearM'){Zz("ALLMine");return}if($0b=='ShowC'){Za("ALL hycal cookies:");return}if($0b=='Showme'){YZ("ALL hycal events+cookies");return}$0m='<input type=button value="Clear CJC events from Cookies" onClick="Zz(\'NOTmine\');">';$0g='<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>'+'Calendar Export</title><script src="hycal.js" type="text/javascript"></script></head><body '+$j+'><font size=2 face="Verdana, Arial, Helvetica, sans-serif"><form>';$0i='<input type=button value="Select All" onClick="javascript:this.form.hytxt.focus();this.form.hytxt.select();">';$0h='<ol><li>Open a simple editor(such as Notepad or Wordpad).'+'<li>Click this "Select All" button.'+$0i+'<li>Copy the text(e.g. Browser menu(Edit:Copy), or Control-C).'+'<li>Paste the text into a new file in your editor.';$0n='<li>In the editor, select'+b3+' File:Save As '+b3+'and save the file as follows:';$0c="<li>Save the new file as normal text(DOS ASCII TEXT, must have NO special formatting).";$0d="<li>Return to this window and press the browser's back button.</ol>";s6=$0c+$0d;$0o='<textarea NAME="hytxt" ROWS=20 COLS=115 WRAP=VIRTUAL>';$0p='<li>save the file into folder:'+b3+' c:\\cjc '+b3+'(lowercase; may need to create this folder)';$0j='You can save the information below into a file and then import it into other applications(such as Outlook, Excell or Access etc.)by following these steps:';$0q='<br>Once you have saved the information, clear the cookies using the "Clear" options under Export).';$n="";$0k=($0b=="MonthCS"?$q*100:$F);if(($0b=="MonthCS")||($0b=="YearCS")){$0l=(($0b=="YearCS")?'99999999':$0k+33);for($L in $G){if(($L>=$0k)&&($L<=$0l)){$0f=$L.substr(4,2)+'/'+$L.substr(6)+'/'+$L.substr(0,4);for(j in $G[$L])if(Groups[$G[$L][j].Group].show=="v"){$n+=$0f+',"'+$G[$L][j].Group+'","'+$G[$L][j].description+'","'+$G[$L][j].link+'"\n';}}}if($n>"")$0g+=$0j+$0h+s6+$0q+$0o+'"DateMDY","Group","Event","URL"\n';}else{if($0b=="Mine"){for($L in $G)for(j in $G[$L])if(($L>=$0k)&&($G[$L][j].Group=="Mine")){$n+='e("'+$L+'|Mine|'+$G[$L][j].description+'|'+$G[$L][j].link+'");\n'}if($n>"")$0g+="Hycal automatically saves locally defined events as cookies(assuming you allow cookies from this site, and "+"don't clear those cookies!), set to expire in a year.(Currently this is the only way that the site uses cookies.)"+"<br>To save your events without depending on cookies, follow the steps below to save "+"your events in a special file on your computer:"+$0h+$0n+'<ul><li>name the file:'+b3+' myevents.js '+b3+'(all lowercase letters)'+$0p+$0c+'</ul>'+$0d+$0q+$0o;}else if($0b=="Email"){for($L in $G)if($L>=$0k)for(j in $G[$L])if($G[$L][j].esrc!="F"&&$G[$L][j].Group!='Mine'){$n+=Zw($L,j)}if($n>"")$0g+='To send these events to CJC:<ol>'+'<li>Copy and paste this information into the body of an email. '+$0i+'<li>(Optional, recommended:Copy and paste this information into a file in case the email fails.)'+'<li>Make sure that the email is addressed to the CJC web support person with specified subject.'+'<li>AFTER emailing/saving, clear these events from cookies. '+$0m+$0d+$0o;}else if($0b=="CJC"){for($L in $G)if($L>=$0k||$L==$0a)for(j in $G[$L])if($G[$L][j].Group!='Mine'){$n+=Zw($L,j)}if($n>""){$n='/'+'/\n/'+'/ Full CJC export of all events from '+$F+'(please leave comment lines here)'+'\n/'+'/ Special events on '+$0a+' MUST be 1st so ALL groups are defined in order with color(may edit)'+'\n/'+'/ copyright Hy Bern July 2004(bernhyr@yahoo.com)\n/'+'/\n'+$n;$0g+='To update web site:(careful, spelling is crucial here!)<ol>'+'<li>In Notepad:open c:/cjc/cjcevents.cjc and clear it(Control-A and then backspace).'+'<li>In this window:Select All the events. '+$0i+'<li>In this window:Copy the selected events to your clipboard-press Control-C(or Edit:Copy)'+'<li>In Notepad:paste the events into the(now empty)c:/cjc/cjcevents.js-press Control-V(or Edit:Paste)'+'<li>In Notepad:turn off wordwrap and check that each line starts with e(" and ends with ");'+'-combine the lines if they were split!'+'<li>In Notepad:Save the file of events into c:/cjc/cjcevents.js(NO special formatting etc.!)'+'<li>(Optional:In Notepad, paste any new events from email at the BOTTOM of the file, and again save it.)'+'<li>AFTER saving, clear any events from cookies. '+$0m+'<li>Close Notepad, check your work by double-clicking c:/cjc/index.html and checking the calendar.'+'<li>If all is well:in IE6 browser:change the address bar to ftp:/'+'/Username:Password@c-j-c.org, and'+'<li>Drag file c:/cjc/cjcevents.js into the browser folder, which uploads it to the web site.'+'<li>In IE6 browser:Change the address bar to HTTP:/'+'/www.c-j-c.org and do a last check of the web site.'+$0o;}}}if($0b=="HTML"){Zy(ZW());Zy('close');}else if($n==""){alert('Sorry, no matching events found');}else document.write($0g+$n+'</textarea></form>');document.close()}function Zw($L,j){return 'e("'+$L+'|'+$G[$L][j].Group+'|'+$G[$L][j].description+"|"+$G[$L][j].link+'");\n'}function YX(i){document.getElementById(i).style.display="block"}function YY(i){document.getElementById(i).style.display="none"}function Zt(i){document.getElementById(i).style.visibility="hidden"}function YU(i){ZB();document.getElementById(i).style.visibility="visible"}function YV(i){ZB();YX('ymC')}function ZB(){Zt('AED');Zt('divEXP');YY('ymC')}var $0r=new Array(0,31,0,31,30,31,30,31,31,30,31,30,31);function Zi(d){return $o+'/'+d+'/'+$p}function ZI(m,y){return($0r[m]||(ZK(y)?29:28))}function ZK(y){return((y%4==0&&y%100!=0)||y%400==0?true:false)}function ZS(d){d=d.getYear();return(d<1000?d+1900:d)}function ZH(m){return(m==1?12:m-1)}function ZJ(m){return(m==12?1:m+1)}function Zf($0s){return($0s%100==1?$0s-89:$0s-1)}function Zj($0s){return($0s%100==12?$0s+89:$0s+1)}function Zk($05,$0t){var ev=$G[$w][$05];if(($0t=="del")&&(ev.Group==$x)&&(ev.description==$y)&&(ev.link==$z)){delete($G[$w][$05]);}else if((($0t=='E')||($0t=='N'))&&(ev.Group==$x)){$G[$w][$05].description=($0t=='E'?$C:$y);$G[$w][$05].link=($0t=='E'?$D:$z);$G[$w][$05].esrc=$0t}return}function Zr($0t){var i,$0u,$0v,$0w,$0x;$0u=$0v=$0w=$0x=0;if(!$G[$w])return-1;for(i in $G[$w]){if($G[$w][i].Group==$x){if(($G[$w][i].description==$y)&&($G[$w][i].link==$z))return i;$0v++;$0u=i;if($G[$w][i].description==$y){$0x++;$0w=i}}}if($0t=='exact')return-1;if($0v<2)return(($0v<1)?-1:$0u);if($0x==1)return $0w;for(i in $G[$w]){if(($G[$w][i].Group==$x)&&confirm("There were "+$0v+" partial matches, is this the correct one?:\n"+$G[$w][i].description))return i}return-1}function ZV(){var $05,$K,ci,$0y;if($A<0){YV('AED');return}$05=$A;ci=$B;$A=$B="";if(!$05||!$w||!$G[$w]||!$G[$w][$05]){YV('AED');return}$y=document.aed.adesc.value=$G[$w][$05].description;$z=document.aed.aurl.value=$G[$w][$05].link;if(!confirm('Please confirm that you want to delete\n'+$w+' '+$x+' '+$y+' '+$z))return;if(($K=$G[$w][$05].esrc)=='F')Zl('D',-1);else{if(($0y=Zs($K))<0){alert('Event NOT found, cannot delete!');YV('AED');return}if(ci!=$0y){alert('Problem finding event, cannot delete!');YV('AED');return}if($K=='E'){$y=Ac[ci+2];$z=Ac[ci+3];Zl('D',-1)}Zl($K,ci,'del')}ZL();return}function ZX(){var $05,$K,ci;$y=Zx(document.aed.adesc.value||'')||'';if($y.length<1){alert('Please enter a Description(and optional URL), or click Cancel');return}$z=Zx(document.aed.aurl.value||'')||'';if($z&&$z.search(/http:\/\/www/i)<0)$z='http:/'+'/'+$z;if($z.length<16)$z='';if($z&&$z.search(/http:\/\/www\./i)<0){alert('Sorry, URL must start with http:/'+'/www.(or be empty)');return}$C=$D='';if($A>'')return ZU();if(Zr('exact')>=0){alert('Will NOT save a duplicate event');return}Zl('N',-1);ZL();return}function ZU(){var $05,ci,$K,$0t,ev;$05=$A;ci=$B;$0t=window.status=$A=$B="";if($05>=0)ev=$G[$w][$05];if(($05<0)||((($K=ev.esrc)!='F')&&(ci<0)))return;if($K=='F'){$K='E';ci=-1;$0t='NEW'}if($K=='E'){$C=$y;$D=$z;$z=ev.link;$y=Zx(ev.description)}Zl($K,ci);ZL();return}function ZA(){return($w+'|'+$x+'|'+$y+'|'+$z+'|'+$C+'|'+$D+'|')}function Ze(){if(document.cookie.length>9)window.status='Loading stored events, edits and deletes';var c,i,$05;c=(Zq('D')||"");if(c.length>9){Ac=c.split('|');for(i=0;i<Ac.length;i+=6)if(Ac[i+2]){$w=Ac[i];$x=Ac[i+1];$y=Ac[i+2];$z=Ac[i+3];$05=Zr('exact');if($05>=0)Zk($05,'del')}}c=(Zq('E')||"");if(c.length>9){Ac=c.split('|');for(i=0;i<Ac.length;i+=6)if(Ac[i+2]){$w=Ac[i];$x=Ac[i+1];$y=Ac[i+2];$z=Ac[i+3];$C=Ac[i+4];$D=Ac[i+5];$05=Zr('exact');$y=$C;$z=$D;if($05>=0)Zk($05,'E')}}c=(Zq('N')||"");if(c.length>9){Ac=c.split('|');for(i=0;i<Ac.length;i+=6)if(Ac[i+2]>' ')E(Ac[i],Ac[i+2],Ac[i+1],Ac[i+3],"N")}window.status=$y=$z=$C=$D=$w=$x=''}function Zz(w){var n,j,k,z,l;l=$u*100;if(w=='NOTmine')if(!confirm('Clear all locally entered events CJC events?\n(does NOT clear your personal events in group Mine)'))return;if(w=='OldMine')if(!confirm('Clear stale Mine personal events before '+$u+'\n(does NOT affect those stored in a file; does NOT affect events for CJC groups.)'))return;if(w=='ALLMine')if(!confirm('Clear all Mine personal events(does NOT affect those stored in a file; does NOT affect events for CJC groups.)'))return;if(w=='ALL')if(!confirm('Clear ALL hycal info/events stored in cookies'))return;if(w=='ALL'){for(n in CN)Zd(n,0,'delete');Zd('hycal','0','delete');return}for(n in CN){z='';Ac=(Zq(n)||"").split('|');if(Ac.length>5)for(j=0;j<Ac.length-3;j+=6){if(((w=='NOTmine')&&(Ac[j+1]=='Mine'))||((w=='OldMine')&&(Ac[j]>l))||((w=='ALLMine')&&(Ac[j+1]!='Mine'))){for(k=j;k<j+6;k++)z+=Ac[k]+'|'}}(z.length>15)?Zd(n,z,"y"):Zd(n,0,'delete')}alert('Done cleaning... 1 last chance to save any locally-defined events-by exporting NOW.(Before any refresh etc.!)');}function Zs(n){var i;if(n<="")return-1;Ac=(Zq(n)||'').split('|');n=(n=='E'?4:2);if(Ac.length>5)for(i=0;i<Ac.length;i+=6)if((Ac[i]==$w)&&(Ac[i+1]==$x)&&(Ac[i+n]==$y)&&(Ac[i+n+1]==$z))return i;return-1}function Zq(c){var n,i;var s=';'+' ';if(document.cookie.length>0){c=escape(c);$E=document.cookie.split(s);for(i=0;i<$E.length;i++){n=$E[i].split("=");if(n[0]==c)return unescape(n[1])}}return false}function Zd(n,v,l,$0z,$0A,$0B){if(n<="")return false;if(typeof(l)=='string'){var $0C=new Date();if(l=="delete")$0C.setYear(100);else if(l=="y")$0C.setYear($t.getFullYear()+1)}document.cookie=escape(n)+"="+escape(v)+(l?";expires="+$0C.toGMTString():"");if(l!="delete")return((typeof(Zq(n))=="string")?true:false);return((typeof(Zq(n))=="string")?false:true)}function Zl(n,i,$0t){var j,k,t;t='';j=(Zq(n)||"");if(i<0)return(Zd(n,j+ZA(),"y"));Ac=j.split('|');if($0t=="del"){if((Ac[i]==$w)&&(Ac[i+1]==$x)&&(Ac[i+2]==$y)&&(Ac[i+3]==$z)){$C=$D='';if((i==0)&&(Ac.length<8))return(Zd(n,0,"delete"));if(i>5)for(j=0;j<i;j+=6)for(k=j;k<j+6;k++)t+=Ac[k]+'|';if((i+9)<Ac.length)for(j=i+6;j<Ac.length;j+=6)if(Ac[j+2])for(k=j;k<j+6;k++)t+=Ac[k]+'|';if(t.length>15)return(Zd(n,t,"y"))}return false;}else{if((Ac[i]==$w)&&(Ac[i+1]==$x)){if((n!='E')||($0t=='NEW')){Ac[i+2]=$y;Ac[i+3]=$z}Ac[i+4]=$C;Ac[i+5]=$D;for(j=0;j<Ac.length;j+=6)if(Ac[j+2])for(k=j;k<j+6;k++)t+=Ac[k]+'|';if(t.length>13)return(Zd(n,t,"y"))}}return false}function ZC($0D){alert($0D+" AEDdate="+$w+" AEDgroup="+$x+" AEDdesc="+$y+" AEDurl="+$z+' AEDNdesc='+$C+' AEDNurl='+$D+' AEDevi='+$A+' AEDci='+$B)}var $0E="";function Zy($0D){if($0E==""){$0E=window.open("","hyPopDebug","height=400,width=400,scrollbars=1,resizable=yes");Zy("<html><head><title>hydebug</title></head><body>")}if($0D=="close"){Zy("</body></html>");$0E.document.close();ZL();return true}else $0E.document.write($0D+'<br>')}var CN=new Array;CN['N']=CN['E']=CN['D']='';function Za($0D){var t='',n,j;for(n in CN){if((Ac=(Zq(n)||"").split('|')).length>5){for(j=0;j<Ac.length;j+=6)if(Ac[j+1])t+=n+':'+Ac[j]+'|'+Ac[j+1]+'|'+Ac[j+2]+'|'+Ac[j+3]+'|'+Ac[j+4]+'|'+Ac[j+5]+'<br>';}else t+=n+' not found<br>'}t+='<br>show groups hycal:'+(Zq('hycal')||'');Zy($0D+'<br>hycal cookie length(max 3k):'+document.cookie.length+t);Zy('close');return true}function YZ($0D){var t,$L,j;t='';for($L in $G)for(j in $G[$L])t+=j+':'+$L+'|'+$G[$L][j].Group+'|'+$G[$L][j].description+'|'+$G[$L][j].link+'|'+$G[$L][j].esrc+'<br>';Za($0D+t)}
