/*
* Copyright 2006 Google, Inc.
* All Rights Reserved.
*/
var Oa="action";
var Ye="details";
var mb="dates";
var Yb="rstart";
var Kb="recur";
var Ze="location";
var Ig="user_prefs";
var Lb="event";
var wd="editcallist";
var qi="caldetails";
var Fl="addcalendarfromurl";
var gh="goo.distributeNotifications";
var Bf="EventReminderAdvanceNotice";
var $i="HowCreated";
var xc="INVITE";
var Cd="REQUEST";
var me="CREATE";
var Oi="myresponse";
var zj="formatDateBeforeMonth";
var Hc="dtFldOrdr";
var Sb="format24HourTime";
var jb="firstDay";
var fd="weekView5";
var oh="defaultCalMode";
var Je=
"customCalMode";
var ph="hideInvitations";
var Rd="showDeclined";
var Ke="smsPhoneNumber";
var Aj="smsCarrier";
var qh="smsVerificationCode";
var ed="false";
var nh="custom,4";
var Ln="America/Los_Angeles";
var qd=["day","week","month","list","compact","custom","search"];
Function.prototype.bind=function(a)
{
if(typeof this!="function")
{
throw new Error("Bind must be called as a method of a function object.");
}
var b=this;
var c=Array.prototype.splice.call(arguments,1,arguments.length);
return function()
{
var d=c.concat();
for(var e=0;
e<arguments.length;
e++)
{
d.push(arguments[e])
}
return b.apply(a,d)
}
}
;
var Ma;
var Ic;
(function()
{
var a=
{
}
;
var b=0;
function c(f)
{
if(!f.ke)
{
f.ke=++b
}
return f.ke
}
function d(f,g,h,i)
{
var j=c(f);
var k=c(h);
i=!(!i);
var l=j+"_"+g+"_"+k+"_"+i;
return l
}
Ma=function(f,g,h,i)
{
var j=d(f,g,h,i);
if(j in a)
{
return j
}
var k=e.bind(null,j);
a[j]=
{
listener:h,proxy:k
}
;
if(f.addEventListener)
{
f.addEventListener(g,k,i)
}
else if(f.attachEvent)
{
f.attachEvent("on"+g,k)
}
else
{
throw new Error("Node
{
"+f+"
}
does not support event listeners.");
}
return j
}
;
Ic=function(f,g,h,i)
{
var j=d(f,g,h,i);
if(!(j in a))
{
return false
}
var k=a[j].proxy;
if(f.removeEventListener)
{
f.removeEventListener(g,k,i)
}
else if(f.detachEvent)
{
f.detachEvent("on"+g,k)
}
delete a[j];
return true
}
;
function e(f)
{
var g=Array.prototype.splice.call(arguments,1,arguments.length);
return a[f].listener.apply(null,g)
}
}
)();
var Ui="more details";
var Ri="edit event details";
var Xi="Created By:";
var Am="Please specify a start and end date";
var Zg="
Yes
";
var Vi="
No
";
var ac="Cancel";
var Wi="
OK
";
var Qi="Search public calendars";
var Cm="e.g., Breakfast at Tiffany's";
var Gm="Showing events until";
var rm="Your changes have not been saved.";
var Pi="«
Edit";
var om="Calendar Time Zone:";
function ue(a)
{
return"Next "+
a+" Days"
}
function Yi(a)
{
return"Next "+a+" Weeks"
}
;
var pm="Share this calendar";
function qm(a)
{
return""+a+" Details"
}
;
var Ti="Calendar View Event";
var Wg="Learn more";
var Em="All Other Calendars";
var Yg="Invalid search - Please enter a query.";
var Fm="Invalid search - Please specify at least one calendar to search.";
var Xg="Loading...";
var Dm="remove this person from the guest list";
var Vg="Your Event";
var sm="Failed to create event";
var um="Failed to load event";
var vm="Failed to respond to event";
var tm="Failed to load details for calendars";
var wm="Failed to save changes";
var Si="Failed to remove calendar";
var Ug=
"Edit Recurring Event";
var Tg="Would you like to change only this instance of the event, or all events in this series?";
var zm="Would you like to change only this event, all events in the series, or this and all future events in the series?";
var re="All events in the series";
var se="Only this instance";
var xm="All events in the series";
var ym="Only this instance";
var qg=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];
var Fk=["Su","M","Tu","W","Th","F","Sa"];
var Qc=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
var ic=[,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];
var xd=[,"January","February","March","April","May","June","July","August","September","October","November","December"];
var Bm=[,"first","second","third"];
function Fb(a,b)
{
if(1==a.length)
{
return Qc[a[0]]
}
var c=0;
for(var d=0;
d<a.length;
++d)
{
c|=1<<a[
d]
}
switch(c)
{
case 127:return b?"all days":"day";
case 62:return b?"weekdays":"weekday";
default:break
}
var e=[];
for(var d=0;
d<a.length;
++d)
{
if(d)
{
e.push(d+1!=a.length?", ":" & ")
}
e.push((b?["Sundays","Mondays","Tuesdays","Wednesdays","Thursdays","Fridays","Saturdays"]:Qc)[a[d]])
}
return e.join("")
}
function Fd(a)
{
var b=[];
for(var c=0;
c<a.length;
++c)
{
if(c)
{
b.push(c+1!=a.length?", ":" & ")
}
b.push(xd[a[c]])
}
return b.join("")
}
function zc(a)
{
return Bm[a]||a+Zi(a)
}
function te(a)
{
var b=[];
for(var c=0;
c<a.length;
++c)
{
if(c)
{
b.push(c+1!=a.length?", ":" & ")
}
var d=a[c];
b.push(Bm[d]||d+Zi(d))
}
return b.join("")
}
;
function Ja(a,b,c)
{
this.x=a;
this.y=b;
this.coordinateFrame=c
}
Ja.prototype.toString=function()
{
return"[P "+this.x+","+this.y+"]"
}
;
Ja.prototype.clone=function()
{
return new Ja(this.x,this.y,this.coordinateFrame)
}
;
function je(a,b)
{
this.dx=a;
this.dy=b
}
je.prototype.toString=function()
{
return"[D "+this.dx+","+this.dy+"]"
}
;
function tb(a,b,c,d,e)
{
this.x=a;
this.y=b;
this.w=c;
this.h=d;
this.coordinateFrame=e
}
tb.prototype.contains=function(a)
{
return this.x<=a.x&&a.x<this.x+this.w&&this.y<=a.y&&a.y<this.y+this.h
}
;
tb.prototype.toString=function()
{
return"[R "+this.w+"x"+this.h+"+"+this.x+"+"+this.y+"]"
}
;
tb.prototype.clone=function()
{
return new tb(this.x,this.y,this.w,this.h,this.coordinateFrame)
}
;
var ag=[];
var $d=
{
}
;
var Yd=
{
}
;
var Sj=true;
function ab()
{
ag.push(new Date())
}
function Va(a)
{
ld(a);
ag.pop()
}
function ld(a)
{
a=a.replace(/\W/g,"_");
var b=new Date();
var c=ag.length-1;
var d=b-ag[c];
ag[c]=b;
var e;
if(!(a in $d))
{
e=[];
$d[a]=e
}
else
{
e=$d[a]
}
e.push(d);
Sj=false;
if(!(a in Yd))
{
e=[];
Yd[a]=e
}
else
{
e=Yd[a]
}
e.push(d)
}
function _LogExplicit(a,b)
{
$d[a]=[b];
Yd[a]=[b]
}
function Lt()
{
$d=
{
}
;
Sj=true
}
function Xt()
{
var a=[];
for(var b in $d)
{
a.push(b+":"+$d[b].join("#"))
}
return a.join(":")
}
function Kt(a)
{
if(arguments.length==0||a==1)
{
Yd=
{
}
}
}
function _ShowPerf()
{
var a=['<font size="-1">'];
a.push("Most recent measurements appear at the end of the list, followed by the total time for that measurement.<br>");
a.push("<ul>");
for(var b in Yd)
{
var c=Yd[b];
var d=0;
for(var e=0;
e<c.length;
++e)d+=c[e];
if(d==0)continue;
a.push("<li>",b,": ",c.join(",")," <b>",d,"</b>");
c=[].concat(c).sort(function(g,h)
{
return g-h
}
);
if(c.length>=3)
{
var f=(c.length+1)/2-1;
c[Math.floor(f)]='<font color="red">'+c[Math.floor(f)];
c[Math.ceil(f)]+="</font>"
}
a.push("<li><i>sorted:</i> ",c,"<p>")
}
a.push("</ul>");
a.push("</font>");
Xa(Kt,"<h3>Performance Data</h3>",a.join(""),[F("Continue"),F("Delete Performance Data")])
}
function Zi(a)
{
var b=Math.abs(a)%100;
if(b>10&&b<20)
{
return"th"
}
else
{
switch(b%10)
{
case 1:return"st";
case 2:return"nd";
case 3:return"rd";
default:return"th"
}
}
}
function uh(a)
{
var b=[];
if(a)
{
for(var c=Math.ceil(a+31>>5);
--c>=0;
)
{
b[c]=0
}
}
return b
}
function Ne(a,b)
{
var c=b>>>5;
while(c>=a.length)
{
a[a.length]=0
}
a[c]|=1<<(b&31)
}
function th(a,b)
{
var c=b>>>5;
if(c<a.length)
{
a[c]&=~(1<<(b&31))
}
}
function Ft(a)
{
for(var b=a.length;
--b>=0;
)
{
a[b]=0
}
}
function $n(a,b)
{
var c=b>>>5;
if(c>=a.length)
{
return b
}
var d=b&31;
do
{
var e=~(a[c]>>>d)&4294967295;
if(e)
{
return(c<<5)+d+Jo(e)
}
d=0
}
while((c+=1)<a.length);
return a.length<<5
}
function Fj(a,b)
{
var c=b>>>5;
var d=b&31;
while(c<a.length)
{
var e=a[c]>>>d;
if(e)
{
return(c<<5)+d+Jo(e)
}
d=0;
c+=1
}
return-1
}
var eg=[];
(function()
{
var a=[];
a[0]=-1;
for(var b=0;
b<8;
b++)
{
var c=1<<b;
for(var d=c;
d<256;
d+=c)
{
a[d]=b
}
}
eg=a
}
)();
function Jo(a)
{
return a&255?eg[a&255]:(a&65280?8+eg[a>>8&255]:(a&16711680?16+eg[a>>16&255]:(a&4278190080?24+eg[a>>24&255]:-1)))
}
;
function oa(a)
{
return function()
{
}
}
function qv(a,b)
{
var c=[];
for(var d=0;
d<a.length;
++d)
{
var e=a[d];
if(b(e))
{
c.push(e)
}
}
return c
}
function Vf(a,b)
{
var c=
{
}
;
for(var d=0;
d<b.length;
++d)
{
c[b[d]]=true
}
var e=[];
for(var d=0;
d<a.length;
++d)
{
if(!c[a[d]])
{
e.push(a[d])
}
}
return e
}
function Zn(a,b)
{
return a.concat(Vf(b,a))
}
function Et(a,b)
{
for(var c=0;
c<a.length;
++c)
{
if(a[c]===b)
{
return true
}
}
return false
}
function xa(a,b)
{
return function(c)
{
var d=true;
var e=zd(c);
if(e!==200&&e!==204)
{
if(!yi("CAL"))
{
alert("Sorry, you have been logged out [probably in another window]. Please log in again.");
window.location.href="http://www.google.com/calendar/logout";
return false
}
ob(a);
d=false
}
if(b)
{
if(false===b(c))
{
d=false
}
}
return d
}
}
;
function G(a)
{
var b=a.ownerDocument;
if(Ba&&b)
{
var c=b.getBoxObjectFor(a);
return new tb(c.x,c.y,c.width,c.height,window)
}
var d=0;
var e=0;
for(var f=a;
f.offsetParent;
f=f.offsetParent)
{
d+=f.offsetLeft;
e+=f.offsetTop
}
return new tb(d,e,a.offsetWidth,a.offsetHeight,window)
}
function dg(a)
{
var b=a.ownerDocument;
if(Ba&&b)
{
var c=b.getBoxObjectFor(a);
return c.height
}
else
{
return a.offsetHeight
}
}
function Ko(a)
{
var b=a.ownerDocument;
if(Ba&&b)
{
var c=b.getBoxObjectFor(a);
return c.width
}
else
{
return a.offsetWidth
}
}
function ra(a)
{
var b=a.ownerDocument;
if(Ba&&b)
{
var c=b.getBoxObjectFor(a);
return new Ja(c.x,c.y,window)
}
var d=0;
var e=0;
while(a.offsetParent)
{
d+=a.offsetLeft;
e+=a.offsetTop;
a=a.offsetParent
}
return new Ja(d,e,window)
}
function ii(a,b)
{
var c=a.x-b.x;
var d=a.y-b.y;
return Math.sqrt(c*c+d*d)
}
function na(a)
{
var b=0;
var c=0;
if(a.pageX||a.pageY)
{
b=a.pageX;
c=a.pageY
}
else if(a.clientX||a.clientY)
{
b=a.clientX+document.body.scrollLeft;
c=a.clientY+document.body.scrollTop
}
return new Ja(b,c,window)
}
;
var On=["MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","MICROSOFT.XMLHTTP.1.0","MICROSOFT.XMLHTTP.1","MICROSOFT.XMLHTTP"];
var Rh=undefined;
function xt()
{
if(typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined")
{
for(var a=0;
a<On.length;
a++)
{
var b=On[a];
try
{
new ActiveXObject(b);
Rh=b;
break
}
catch(c)
{
}
}
if(undefined===Rh)
{
throw"Could not create ActiveXObject. ActiveX might be disabled, or msxml might not be installed";
}
}
}
xt();
function Pn()
{
if(Rh!==undefined)
{
return new ActiveXObject(Rh)
}
else
{
return new XMLHttpRequest()
}
}
function wt(a,b,c)
{
a.onreadystatechange=c;
a.open("GET",b,true);
Rn(a,null)
}
function Qn(a,b,c,d)
{
a.onreadystatechange=d;
a.open("POST",b,true);
a.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
a.setRequestHeader("Content-Length",c.length);
Rn(a,c)
}
function Rn(a,b)
{
try
{
a.send(b)
}
catch(c)
{
S("XMLHttpSend failed "+c.toString()+"<br>"+c.stack);
throw c;
}
}
;
var vo=0;
if("undefined"==typeof S)
{
S=function()
{
}
}
function zd(a)
{
var b=-1;
try
{
b=a.status
}
catch(c)
{
}
return b
}
function fr(a)
{
var b=null;
try
{
b=a.statusText
}
catch(c)
{
}
return b
}
function Sl(a,b,c,d)
{
if(a.readyState==4)
{
var e=true;
if(d)
{
try
{
e=!(false===d(a))
}
catch(f)
{
S("Message ("+b+") handling failed: "+f);
throw f;
}
}
var g=zd(a);
if(200===g)
{
S("Message ("+b+") received after "+((new Date()).getTime()-c)+" ms");
try
{
var h=(new Date()).getTime();
if(e&&a.responseText.length)
{
var i=eval(a.responseText);
if(i instanceof Array&&i.length)
{
Cg(i)
}
}
S("Message ("+b+") processing took "+((new Date()).getTime()-h)+" ms")
}
catch(f)
{
S("Message ("+b+") processing failed: "+f);
alert(f+"\n"+f.stack+
"\n\n"+a.responseText);
throw f;
}
}
else if(204==g)
{
S("Message ("+b+") received after "+((new Date()).getTime()-c)+" ms")
}
else
{
S("Message ("+b+") failed with response "+g+" "+fr(a)+" after "+((new Date()).getTime()-c)+" ms.")
}
}
}
function wc(a,b,c,d)
{
var e="";
if(b)
{
var f="";
for(var g=0;
g<b.length;
)
{
var h=b[g++],i=b[g++];
e+=f+encodeURIComponent(h);
f="&";
if(null!==i&&undefined!==i)
{
e+="="+encodeURIComponent(i.toString())
}
}
}
var j=++vo;
var k=Pn();
var l=(new Date()).getTime();
var n=function()
{
Sl(k,j,l,d)
}
;
var o=a.indexOf("?")>=0?"&":"?";
var p=e.length?a+o+e:a;
var q=p;
for(var r=q.length+1;
(r=q.lastIndexOf("&",r-1))>=0;
)
{
q=q.substring(0,r)+"&
"+q.substring(r+1)
}
var s;
if(c!==undefined)
{
Qn(k,p,c.toString(),n);
s="POST"
}
else
{
wt(k,p,n);
s="GET"
}
S("Message ("+j+") sent: "+s+" <tt>"+q+"</tt>.")
}
function aa(a,b,c)
{
var d="";
if(b)
{
var e="";
for(var f=0;
f<b.length;
)
{
var g=b[f++],h=b[f++];
d+=e+encodeURIComponent(g);
e="&";
if(null!==h&&undefined!==h)
{
d+="="+encodeURIComponent(h.toString())
}
}
}
var i=++vo;
var j=Pn();
var k=(new Date()).getTime();
var l=function()
{
Sl(j,i,k,c)
}
;
var n=a;
for(var o=n.length+1;
(o=n.lastIndexOf("&",o-1))>=0;
)
{
n=n.substring(0,o)+"&
"+n.substring(o+1)
}
S("Message ("+i+") sent: POST <tt>"+n+"</tt>.");
Qn(j,a,d,l)
}
;
var gr=aa;
aa=function(a,b,c)
{
var d=b?b.slice(0,b.length):[];
var e=yi("secid");
if(e)
{
d.push("secid",e)
}
gr.call(this,a,d,c)
}
;
var M;
var hu;
var Bo;
var Hh;
var Ba;
var Do;
var Co;
(function()
{
var a=navigator.userAgent.toLowerCase();
M=a.indexOf("msie")!=-1;
hu=a.indexOf("msie 5")!=-1&&document.all;
Bo=a.indexOf("konqueror")!=-1;
Hh=a.indexOf("safari")!=-1||Bo;
Ba=!M&&!Hh&&a.indexOf("mozilla")!=-1;
Do=a.indexOf("win")!=-1;
Co=!(!window.opera)
}
)();
function of(a)
{
}
function pb(a,b)
{
}
function Bk(a,b,c)
{
}
;
function yi(a)
{
var b=a+"=";
var c=String(document.cookie);
for(var d=-1;
(d=c.indexOf(b,d+1))>=0;
)
{
var e=d;
while(--e>=0)
{
var f=c.charAt(e);
if(f==";
")
{
e=-1;
break
}
else if(" \t".indexOf(f)<0)
{
break
}
}
if(-1===e)
{
var g=c.indexOf(";
",d);
if(g<0)
{
g=c.length
}
return c.substring(d+b.length,g)
}
}
return""
}
function Im(a,b)
{
return a.document.getElementById(b)
}
function br(a,b)
{
var c=a.document.getElementById(b);
if(!c)
{
pl("Element "+b+" not found.")
}
return c
}
function Ql(a)
{
try
{
return a.parentNode
}
catch(b)
{
return a
}
}
function Li(a,b)
{
do
{
if(a===b)return true;
b=Ql(b)
}
while(b&&b!==document.body);
return false
}
function Ak(a,b,c)
{
var d=a.document.createElement(c);
b.appendChild(d);
return d
}
function Mk(a,b)
{
var c=Im(a,b);
if(!c)
{
c=Ak(a,a.document.body,"div");
c.id=b
}
return c
}
function Xh(a,b,c)
{
var d=Im(a,b);
if(!d)
{
var e=Ak(a,a.document.body,"div");
e.innerHTML="<iframe id="+b+" name="+b+" src="+c+"></iframe>";
d=br(a,b)
}
return d
}
function sa(a,b)
{
var c;
if(a==null||!(c=a.className))return false;
c=" "+c+" ";
var d=c.indexOf(" "+b+" ");
return d>=0
}
function Wa(a,b)
{
if(sa(a,b))return;
a.className+=" "+b
}
function Ra(a,b)
{
if(a.className==null)return;
var c=a.className.split(" ");
var d=[];
var e=false;
for(var f=0;
f<c.length;
f++)
{
if(c[f]!=b)
{
if(c[f])
{
d.push(c[f])
}
}
else
{
e=true
}
}
if(e)
{
a.className=d.join(" ")
}
}
function Ml(a,b)
{
var c=[];
for(var d=a.firstChild;
d;
d=d.nextSibling)
{
zk(d,b,c)
}
return c
}
function zk(a,b,c)
{
if(b.select(a))
{
c.push(a)
}
for(var d=a.firstChild;
d;
d=d.nextSibling)
{
zk(d,b,c)
}
}
;
function rf(a)
{
if("innerWidth" in a)
{
return a.innerWidth
}
else if("documentElement" in a.document&&"clientWidth" in a.document.documentElement)
{
return a.document.documentElement.clientWidth
}
else if("clientWidth" in a.document.body)
{
return a.document.body.clientWidth
}
return 0
}
function Rl(a)
{
if("innerHeight" in a)
{
return a.innerHeight
}
else if("documentElement" in a.document&&"clientHeight" in a.document.documentElement)
{
return a.document.documentElement.clientHeight
}
else if("clientHeight" in a.document.body)
{
return a.document.body.clientHeight
}
return 0
}
var Dt=/&/g;
var pu=/</g;
var au=/>/g;
function H(a)
{
if(!a)return"";
return a.replace(Dt,"&
").replace(pu,"<
").replace(au,">
").replace(zu,""
")
}
function sf(a)
{
if(!a)return"";
return a.replace(/&#(\d+);
/g,function(b,c)
{
return String.fromCharCode(parseInt(c,10))
}
).replace(/&#x([a-f0-9]+);
/gi,function(b,c)
{
return String.fromCharCode(parseInt(c,16))
}
).replace(/&(\w+);
/g,function(b,c)
{
c=c.toLowerCase();
return c in sf.unesc?sf.unesc[c]:"?"
}
)
}
sf.unesc=
{
lt:"<",gt:">",quot:'"',nbsp:" ",amp:"&"
}
;
var zu=/\"/g;
function Pg(a)
{
return Pg.ie[a]
}
function K(a)
{
if(!Pg.ie)
{
var b=
{
}
;
b["\\"]="\\\\";
b["'"]="\\047";
b["\u0008"]="\\b";
b['"']="\\042";
b["<"]="\\074";
b[">"]="\\076";
b["&"]="\\046";
b["\n"]="\\n";
b["\r"]="\\r";
b["\u0085"]="\\205";
b["\u2028"]="\\u2028";
b["\u2029"]="\\u2029";
Pg.ie=b
}
return"'"+a.toString().replace(/[\'\\\r\n\b\"<>&\u0085\u2028\u2029]/g,Pg)+"'"
}
function Ib(a)
{
if(!a)return"";
return a.replace(/^\s+/,"").replace(/\s+$/,"")
}
function ar(a,b)
{
try
{
if(uf(b.selectionEnd))
{
return b.selectionEnd
}
else if(a.document.selection&&a.document.selection.createRange)
{
var c=a.document.selection.createRange();
if(c.parentElement()!=b)
{
return-1
}
var d=c.duplicate();
d.moveToElementText(b);
d.setEndPoint("EndToStart",c);
var e=d.text.length;
if(e>b.value.length)
{
return-1
}
return e
}
else
{
xq("Unable to get cursor position for: "+navigator.userAgent);
return b.value.length
}
}
catch(f)
{
ki(f,"Cannot get cursor pos")
}
}
function Cn(a,b,c)
{
if(uf(b.selectionEnd)&&uf(b.selectionStart))
{
b.selectionStart=c;
b.selectionEnd=c
}
else if(a.document.selection&&b.createTextRange)
{
var d=b.createTextRange();
d.collapse(true);
d.move("character",c);
d.select()
}
}
function Lk(a)
{
var b=
{
}
;
b.clientX=a.clientX;
b.clientY=a.clientY;
b.pageX=a.pageX;
b.pageY=a.pageY;
b.type=a.type;
b.srcElement=a.srcElement;
b.target=a.target;
b.cancelBubble=a.cancelBubble;
b.explicitOriginalTarget=a.explicitOriginalTarget;
return b
}
function Ai(a)
{
return a.srcElement||a.target
}
function Dp(a)
{
if(M)
{
a.cancelBubble=true
}
else if(a.stopPropagation)
{
a.stopPropagation()
}
}
var Ru=/[()<>@,;
:\\\".\[\]]/;
function Kk(a,b)
{
if(a.indexOf('"')==-1)
{
var c=Ru.test(a);
if(c)
{
a='"'+a+'"'
}
}
if(a=="")return b;
else if(b=="")return a;
else return a+" <"+b+">"
}
function uf(a)
{
return typeof a!="undefined"
}
function oe(a)
{
var b;
if(a.type==="keypress")
{
if(M)
{
b=a.keyCode
}
else if(Ba)
{
b=a.which;
if(b)
{
}
else
{
b=a.keyCode
}
}
else
{
return a.keyCode||a.which
}
}
else
{
if(a.keyCode)
{
b=a.keyCode
}
else if(a.which)
{
b=a.which
}
}
return b
}
function Vt(a)
{
return document.getElementById(a)
}
function Wt(a)
{
return document.all[a]
}
var m=document.getElementById?Vt:Wt;
function fa(a)
{
var b;
if(!("name" in a))
{
var c=/\W*function\s+([\w\$]+)\(/.exec(a);
if(!c)
{
throw new Error("Cannot extract name from function: "+a);
}
b=c[1];
a.name=b
}
else
{
b=a.name
}
if(!b||b=="anonymous")
{
throw new Error("Anonymous function has no name: "+a);
}
return a.name
}
function S(a)
{
}
function nc(a)
{
var b=typeof a==="string"?m(a):a;
if(b)
{
try
{
b.focus();
if(b.tagName=="INPUT"&&(b.type=="text"||b.type=="password"))
{
Cn(window,b,0)
}
}
catch(c)
{
}
}
}
;
function R(a)
{
a=a.replace(/>(\s+)</g,"><");
a=a.replace(/\s
{
2,
}
/g," ");
this.C=[];
this.re=0;
this.Pa=
{
}
;
var b=a.match(/\$\
{
\w+\
}
/g)||[];
var c=0;
for(var d=0;
d<b.length;
++d)
{
var e=b[d];
var f=a.indexOf(e,c);
if(c!=f)
{
this.C.push(a.substring(c,f))
}
c=f+e.length;
e=e.substring(2,e.length-1);
var g=this.Pa[e];
if(!g)
{
g=[];
this.Pa[e]=g;
++this.re;
this["put_"+e]=this.rf(this,e)
}
g.push(this.C.length);
this.C.push(undefined)
}
if(c!=a.length)
{
this.C.push(a.substring(c))
}
this.$c=0
}
R.prototype.rf=function(a,b)
{
return function(c)
{
return a.put(b,c)
}
}
;
R.prototype.put=function(a,b)
{
var c=this.Pa[a];
if(this.C[c[0]]===undefined)++this.$c;
if(c.length===1)
{
this.C[c[0]]=b
}
else
{
for(var d=0;
d<c.length;
++d)
{
this.C[c[d]]=b
}
}
}
;
R.prototype.toString=function()
{
if(!this.Q())
{
pb(false,"some keys are missing values: "+this.$f())
}
return this.C.join("")
}
;
R.prototype.$f=function()
{
var a=[];
for(var b in this.Pf())a.push(b);
return a.join()
}
;
R.prototype.Fg=function(a)
{
return a&&a in this.Pa
}
;
R.prototype.Mg=function()
{
return this.$c
}
;
R.prototype.Q=function()
{
return this.$c==this.re
}
;
R.prototype.Jg=function()
{
var a=
{
}
;
for(var b in this.Pa)a[b]=null;
return a
}
;
R.prototype.Pf=function()
{
var a=
{
}
;
for(var b in this.Pa)
{
if(this.C[this.Pa[b][0]]===undefined)
{
a[b]=null
}
}
return a
}
;
function vj(a)
{
R.call(this,a)
}
vj.prototype=new R("$
{
x
}
");
vj.prototype.constructor=R;
vj.prototype.put=function(a,b)
{
R.prototype.put.call(this,a,b);
return this
}
;
var Sk=false;
function xq(a)
{
Rk(a,0)
}
function pl(a)
{
try
{
throw a;
}
catch(b)
{
ki(b)
}
}
function ki(a,b)
{
var c="Javascript exception: "+(b?b:"")+" "+a;
if(M)
{
c+=" "+a.name+": "+a.message+" ("+a.number+")"
}
var d="";
if(typeof a=="string")
{
d=a+"\n"
}
else
{
for(var e in a)
{
try
{
d+=e+": "+a[e]+"\n"
}
catch(f)
{
}
}
}
d+=Pk(ki.caller);
Rk(c+"\n"+d,1)
}
var Yt=/function (\w+)/;
function Op(a)
{
var b=Yt.exec(String(a));
if(b)
{
return b[1]
}
return""
}
function Pk(a)
{
try
{
if(Ba)
{
return Error().stack
}
if(!a)return"";
var b="- "+Op(a)+"(";
for(var c=0;
c<a.arguments.length;
c++)
{
if(c>0)b+=", ";
var d=String(a.arguments[c]);
if(d.length>40)
{
d=d.substr(0,40)+"..."
}
b+=d
}
b+=")\n";
b+=Pk(a.caller);
return b
}
catch(e)
{
return"[Cannot get stack trace]: "+e+"\n"
}
}
var Qp;
var Nc=null;
var Yh=false;
function Pp()
{
if((Nc==null||Nc.closed)&&!Yh)
{
try
{
Yh=true;
Nc=window.open("","debug","width=700,height=500,toolbar=no,resizable=yes,scrollbars=yes,left=16,top=16,screenx=16,screeny=16");
Nc.blur();
Nc.document.open();
Yh=false;
var a="<font color=#ff0000><b>To turn off this debugging window,hit 'D' inside the main caribou window, then close this window.</b></font><br>";
Qk(a)
}
catch(b)
{
}
}
}
function Rk(a,b)
{
if(!Sk)
{
if(typeof S!="undefined")
{
S(H(a))
}
return
}
try
{
var c=(new Date()).getTime()-Qp;
var d="["+c+"] "+H(a).replace(/\n/g,"<br>")+"<br>";
if(b==1)
{
d="<font color=#ff0000><b>Error: "+d+"</b></font>";
Nc.focus()
}
Qk(d)
}
catch(e)
{
}
}
function Qk(a)
{
if(!Sk)
{
return
}
try
{
Pp();
Nc.document.write(a);
Nc.dd(0,1000000)
}
catch(b)
{
}
}
;
function pe(a)
{
return a<0?-1:1
}
function Ng(a)
{
return a|0
}
function Mg(a)
{
pl(a);
throw a;
}
function ia(a,b)
{
var c=a.toString();
while(c.length<b)
{
c="0"+c
}
return c
}
function Bb(a,b,c)
{
return parseInt(a.substring(b,c),10)
}
var Gi=[undefined,31,undefined,31,30,31,30,31,31,30,31,30,31];
function Ab(a,b)
{
if(2!==b)
{
return Gi[b]
}
var c=a<<4;
var d=Gi[c];
if(!d)
{
d=Math.round((Date.UTC(a,2,1)-Date.UTC(a,1,1))/86400000);
Gi[c]=d
}
return d
}
var Xl=new Object();
function Hi(a,b)
{
var c=a<<4|b;
var d=Xl[c];
if(!d)
{
d=(new Date(a,b-1,1,0,0,0,0)).getDay();
Xl[c]=d
}
return d
}
function Bd(a)
{
return(a.date-1+Hi(a.year,a.month))%7
}
function Wl(a,b,c,d,e,f)
{
var g;
if(a===d)
{
if((g=b-e)===0)
{
return c-f
}
else if(g<0)
{
g=c-f;
do
{
g-=Ab(a,b++)
}
while(b<e);
return g
}
else
{
g=c-f;
do
{
g+=Ab(d,e++)
}
while(e<b);
return g
}
}
else
{
return Math.round((Date.UTC(a,b-1,c)-Date.UTC(d,e-1,f))/86400000)
}
}
function sb(a,b)
{
return Wl(a.year,a.month,a.date,b.year,b.month,b.date)
}
function Yl(a,b)
{
var c=sb(ya,a);
return c>=0&&c<b
}
function eb(a,b,c,d,e,f)
{
if(!isNaN(a))
{
this.year=a
}
if(!isNaN(b))
{
this.month=b
}
if(!isNaN(c))
{
this.date=c
}
if(!isNaN(d))
{
this.hour=d
}
if(!isNaN(e))
{
this.minute=e
}
if(!isNaN(f))
{
this.second=f
}
}
eb.prototype.year=NaN;
eb.prototype.month=NaN;
eb.prototype.date=NaN;
eb.prototype.hour=NaN;
eb.prototype.minute=NaN;
eb.prototype.second=NaN;
eb.prototype.O=function()
{
return Bd(this)
}
;
eb.prototype.toString=function()
{
if(this.la!==undefined)return this.la;
this.la=this.Va();
return this.la
}
;
function Ad()
{
}
Ad.prototype=new eb();
Ad.prototype.constructor=Ad;
function N(a,b,c)
{
eb.call(this,a,b,c,NaN,NaN,NaN)
}
N.prototype=new Ad();
N.prototype.constructor=N;
N.now=function()
{
var a=new Date();
return N.create(a.getFullYear(),a.getMonth()+1,a.getDate())
}
;
N.prototype.type="Date";
N.prototype.g=function()
{
return this
}
;
N.prototype.k=function()
{
return new O(this.year,this.month,this.date,0,0,0)
}
;
N.prototype.b=function()
{
if(undefined===this.M)
{
this.M=N.Pd(this.year,this.month,this.date)
}
return this.M
}
;
N.Pd=function(a,b,c)
{
return this.M=(((a-1970)*12+b<<5)+c)*86400
}
;
N.prototype.Q=function()
{
return true
}
;
N.prototype.Va=function()
{
return ia(this.year,4)+ia(this.month,2)+ia(this.date,2)
}
;
N.prototype.equals=function(a)
{
return this.constructor===a.constructor&&this.date===a.date&&this.month===a.month&&this.year===a.year
}
;
N.tc=
{
}
;
N.mf=0;
N.$e=200;
N.create=function(a,b,c)
{
var d=N.Pd(a,b,c);
if(d in N.tc)
{
return N.tc[d]
}
else
{
var e=new N(a,b,c);
e.M=d;
if(N.mf<N.$e)
{
N.tc[d]=e
}
return e
}
}
;
function O(a,b,c,d,e,f)
{
eb.call(this,a,b,c,d,e,f)
}
O.prototype=new Ad();
O.prototype.constructor=O;
O.now=function()
{
var a=new Date();
return new O(a.getFullYear(),a.getMonth()+1,a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds())
}
;
O.prototype.type="DateTime";
O.prototype.g=function()
{
return N.create(this.year,this.month,this.date)
}
;
O.prototype.k=function()
{
return this
}
;
O.prototype.bc=function()
{
return new $b(this.hour,this.minute,this.second)
}
;
O.prototype.b=function()
{
if(undefined===this.M)
{
this.M=(((((this.year-1970)*12+this.month<<5)+this.date)*24+this.hour)*60+this.minute)*60+this.second
}
return this.M
}
;
O.prototype.Q=function()
{
return true
}
;
O.prototype.Va=function()
{
return ia(this.year,4)+ia(this.month,2)+ia(this.date,2)+"T"+ia(this.hour,2)+ia(this.minute,2)+ia(this.second,2)
}
;
O.prototype.equals=function(a)
{
return this.constructor===a.constructor&&this.date===a.date&&this.month===a.month&&this.year===a.year&&this.hour===a.hour&&this.minute===a.minute&&this.second===a.second
}
;
O.prototype.clone=function()
{
var a=new O(this.year,this.month,this.date,this.hour,this.minute,this.second);
if(this.la!==undefined)a.la=this.la;
return a
}
;
function $b(a,b,c)
{
eb.call(this,NaN,NaN,NaN,a,b,c)
}
$b.prototype=new eb();
$b.prototype.constructor=$b;
$b.prototype.type="Time";
$b.prototype.bc=function()
{
return this
}
;
$b.prototype.Va=function()
{
return"T"+ia(this.hour,2)+ia(this.minute,2)+ia(this.second,2)
}
;
$b.prototype.equals=function(a)
{
return this.constructor===a.constructor&&this.hour===a.hour&&this.minute===a.minute&&this.second===a.second
}
;
function db(a,b,c,d)
{
var e=d+60*(c+60*(b+24*a));
var f=Ng(e/86400);
e-=f*86400;
var g=Ng(e/3600);
e-=g*3600;
var h=Ng(e/60);
e-=h*60;
var i=Ng(e);
eb.call(this,NaN,NaN,f,g,h,i)
}
db.prototype=new eb();
db.prototype.constructor=db;
db.prototype.type="Duration";
db.prototype.qd=function()
{
return this.date
}
;
db.prototype.ah=function()
{
return this.date*24+this.hour
}
;
db.prototype.rd=function()
{
return 1440*this.date+this.hour*60+this.minute
}
;
db.prototype.bh=function()
{
return this.second+this.minute*60+this.hour*3600+86400*this.date
}
;
db.prototype.b=function()
{
if(undefined===this.M)
{
this.M=((this.date*24+this.hour)*60+this.minute)*60+this.second
}
return this.M
}
;
db.prototype.Va=function()
{
var a=this.year?pe(this.year):(this.month?pe(this.month):(this.date?pe(this.date):(this.hour?pe(this.hour):(this.minute?pe(this.minute):(this.second?pe(this.second):0)))));
var b=a<0?"-P":"P";
if(this.year)
{
b+=a*this.year+"Y"
}
if(this.month)
{
b+=a*this.month+"N"
}
if(this.date)
{
b+=this.date%7?a*this.date+"D":a*this.date/7+"W"
}
if(this.hour||this.minute||this.second)
{
b+="T"
}
if(this.hour)
{
b+=a*this.hour+"H"
}
if(this.minute)
{
b+=a*this.minute+"M"
}
if(this.second)
{
b+=a*this.second+"S"
}
if(!a)
{
b+="0D"
}
return b
}
;
db.prototype.equals=function(a)
{
return this.constructor===a.constructor&&this.date===a.date&&this.hour===a.hour&&this.minute===a.minute&&this.second===a.second
}
;
function D(a)
{
var b=new ca();
b.year=a.year||0;
b.month=a.month||0;
b.date=a.date||0;
b.hour=a.hour||0;
b.minute=a.minute||0;
b.second=a.second||0;
return b
}
function Xb(a)
{
var b=new ca();
b.year=a.year;
b.month=a.month;
b.date=a.date;
b.hour=a.hour;
b.minute=a.minute;
b.second=a.second;
return b
}
function be(a,b,c)
{
pb(!(isNaN(a)|isNaN(b)|isNaN(c)));
var d=new ca();
d.year=a||0;
d.month=b||0;
d.date=c||0;
return d
}
function Zj(a,b,c,d,e,f)
{
pb(!(isNaN(a)|isNaN(b)|isNaN(c)|isNaN(d)|isNaN(e)|isNaN(f)));
var g=new ca();
g.year=a||0;
g.month=b||0;
g.date=c||0;
g.hour=d||0;
g.minute=e||0;
g.second=f||0;
return g
}
function ca()
{
}
ca.prototype=new eb();
ca.prototype.constructor=ca;
ca.prototype.type="DTBuilder";
ca.prototype.year=(ca.prototype.month=(ca.prototype.date=(ca.prototype.hour=(ca.prototype.minute=(ca.prototype.second=0)))));
ca.prototype.b=function()
{
this.normalize()
}
;
ca.prototype.advance=function(a)
{
if(a.date)
{
this.date+=a.date
}
if(a.hour)
{
this.hour+=a.hour
}
if(a.minute)
{
this.minute+=a.minute
}
if(a.second)
{
this.second+=a.second
}
}
;
ca.prototype.normalize=function()
{
this.ag();
this.Zc();
var a=Ab(this.year,this.month);
while(this.date<1)
{
this.month-=1;
this.Zc();
a=Ab(this.year,this.month);
this.date+=a
}
while(this.date>a)
{
this.date-=a;
this.month+=1;
this.Zc();
a=Ab(this.year,this.month)
}
}
;
ca.prototype.ag=function()
{
var a;
if(this.second<0)
{
a=Math.ceil(this.second/-60);
this.second+=60*a;
this.minute-=a
}
else if(this.second>=60)
{
a=Math.floor(this.second/60);
this.second-=60*a;
this.minute+=a
}
if(this.minute<0)
{
a=Math.ceil(this.minute/-60);
this.minute+=60*a;
this.hour-=a
}
else if(this.minute>=60)
{
a=Math.floor(this.minute/60);
this.minute-=60*a;
this.hour+=a
}
if(this.hour<0)
{
a=Math.ceil(this.hour/-24);
this.hour+=24*a;
this.date-=a
}
else if(this.hour>=24)
{
a=Math.floor(this.hour/24);
this.hour-=24*a;
this.date+=a
}
}
;
ca.prototype.Zc=function()
{
var a;
if(this.month<1)
{
a=Math.ceil((this.month-1)/-12);
this.month+=12*a;
this.year-=a
}
else if(this.month>12)
{
a=Math.ceil((this.month-1)/12);
this.month-=12*a;
this.year+=a
}
}
;
ca.prototype.g=function()
{
this.normalize();
return N.create(this.year,this.month,this.date)
}
;
ca.prototype.k=function()
{
this.normalize();
return new O(this.year,this.month,this.date,this.hour,this.minute,this.second)
}
;
ca.prototype.z=function()
{
this.normalize();
return new Ya(isFinite(this.year)?this.year:undefined,isFinite(this.month)?this.month:undefined,isFinite(this.date)?this.date:undefined)
}
;
ca.prototype.X=function()
{
this.normalize();
return new Ca(isFinite(this.year)?this.year:undefined,isFinite(this.month)?this.month:undefined,isFinite(this.date)?this.date:undefined,isFinite(this.hour)?this.hour:undefined,isFinite(this.minute)?this.minute:undefined,isFinite(this.second)?this.second:undefined)
}
;
ca.prototype.bc=function()
{
this.normalize();
return new $b(this.hour,this.minute,this.second)
}
;
ca.prototype.Qe=function()
{
if(this.year||this.month)
{
Mg("Can't convert months or years to ICAL_Duration");
return undefined
}
else
{
return new db(this.date,this.hour,this.minute,this.second)
}
}
;
ca.prototype.wg=function()
{
return"number"==typeof this.year&&1+this.year%1===1&&"number"==typeof this.month&&1+this.month%1===1&&"number"==typeof this.date&&1+this.date%1===1
}
;
ca.prototype.xg=function()
{
return this.wg()&&this.yg()
}
;
ca.prototype.yg=function()
{
return"number"==typeof this.hour&&1+this.hour%1===1&&"number"==typeof this.minute&&1+this.minute%1===1&&"number"==typeof this.second&&1+this.second%1===1
}
;
ca.prototype.toString=function()
{
return"["+(undefined!==this.year?ia(this.year,4):"????")+"/"+(undefined!==this.month?ia(this.month,2):"??")+"/"+(undefined!==this.date?ia(this.date,2):"??")+" "+(undefined!==this.hour?ia(this.hour,2):"??")+" "+(undefined!==this.minute?ia(this.minute,2):"??")+" "+(undefined!==this.second?ia(this.second,2):"??")+"]"
}
;
ca.prototype.equals=function(a)
{
return this.constructor===a.constructor&&this.date===a.date&&this.month===a.month&&this.year===a.year&&this.hour===a.hour&&this.minute===a.minute&&this.second===a.second
}
;
function Mb(a,b)
{
this.start=a;
if(b.constructor==db)
{
var c=D(a);
c.advance(b);
this.end=this.start instanceof O?c.k():c.g()
}
else
{
this.end=b
}
this.duration=gc(this.end,this.start)
}
Mb.prototype.type="PeriodOfTime";
Mb.prototype.toString=function()
{
if(this.la!==undefined)return this.la;
this.la=this.start+"/"+this.end;
return this.la
}
;
Mb.prototype.equals=function(a)
{
return this.constructor===a.constructor&&this.start.equals(a.start)&&this.end.equals(a.end)
}
;
Mb.prototype.overlaps=function(a)
{
return a.end.b()>this.start.b()&&a.start.b()<this.end.b()
}
;
Mb.prototype.dg=function(a,b)
{
return b.b()>this.start.b()&&a.b()<this.end.b()
}
;
Mb.prototype.contains=function(a)
{
return this.start.b()<=a.start.b()&&this.end.b()>=a.end.b()
}
;
function tf(a,b)
{
this.start=a;
this.end=b;
try
{
this.duration=gc(this.end,this.start)
}
catch(c)
{
this.duration=null
}
}
tf.prototype.type="PartialPeriodOfTime";
tf.prototype.Va=function()
{
return this.start+"/"+this.end
}
;
tf.prototype.equals=function(a)
{
return this.constructor===a.constructor&&this.start.equals(a.start)&&this.end.equals(a.end)
}
;
function gc(a,b)
{
if(isNaN(a.year)!=isNaN(b.year)||isNaN(a.hour)!=isNaN(b.hour))
{
Mg("diff("+a+", "+b+")");
return undefined
}
var c=D(a);
if(isNaN(a.year))
{
c.hour-=b.hour;
c.minute-=b.minute;
c.second-=b.second
}
else
{
c.year=NaN;
c.month=NaN;
c.date=Wl(a.year,a.month,a.date,b.year,b.month,b.date);
if(!isNaN(a.hour))
{
c.hour-=b.hour;
c.minute-=b.minute;
c.second-=b.second
}
}
return c.Qe()
}
function Ya(a,b,c)
{
this.year=a;
this.month=b;
this.date=c
}
Ya.prototype=new Ad();
Ya.prototype.constructor=Ya;
Ya.prototype.type="PartialDate";
Ya.prototype.g=function()
{
return N.create(this.year||0,this.month||1,this.date||1)
}
;
Ya.prototype.k=function()
{
return new O(this.year||0,this.month||1,this.date||1,0,0,0)
}
;
Ya.prototype.z=function()
{
return this
}
;
Ya.prototype.X=function()
{
return new Ca(this.year,this.month,this.date,0,0,0)
}
;
Ya.prototype.Q=function()
{
return!isNaN(this.b())
}
;
Ya.prototype.b=function()
{
if(undefined===this.M)
{
this.M=(((this.year-1970)*12+this.month<<5)+this.date)*86400
}
return this.M
}
;
Ya.prototype.equals=function(a)
{
return this.constructor===a.constructor&&(this.date===a.date||isNaN(this.date)&&isNaN(a.date))&&(this.month===a.month||isNaN(this.month)&&isNaN(a.month))&&(this.year===a.year||isNaN(this.year)&&isNaN(a.year))
}
;
Ya.prototype.Va=function()
{
return(undefined!==this.year?ia(this.year,4):"????")+(undefined!==this.month?ia(this.month,2):"??")+(undefined!==this.date?ia(this.date,2):"??")
}
;
function Ca(a,b,c,d,e,f)
{
this.year=a;
this.month=b;
this.date=c;
this.hour=d;
this.minute=e;
this.second=f
}
Ca.prototype=new Ad();
Ca.prototype.constructor=Ca;
Ca.prototype.type="PartialDateTime";
Ca.prototype.g=function()
{
return N.create(this.year||0,this.month||1,this.date||1)
}
;
Ca.prototype.k=function()
{
return new O(this.year||0,this.month||1,this.date||1,this.hour||0,this.minute||0,this.second||0)
}
;
Ca.prototype.z=function()
{
return new Ya(this.year,this.month,this.date)
}
;
Ca.prototype.X=function()
{
return this
}
;
Ca.prototype.Q=function()
{
return!isNaN(this.b())
}
;
Ca.prototype.b=function()
{
if(undefined===this.M)
{
this.M=(((((this.year-1970)*12+this.month<<5)+this.date)*24+this.hour)*60+this.minute)*60+this.second
}
return this.M
}
;
Ca.prototype.equals=function(a)
{
return this.constructor===a.constructor&&(this.date===a.date||isNaN(this.date)&&isNaN(a.date))&&(this.month===a.month||isNaN(this.month)&&isNaN(a.month))&&(this.year===a.year||isNaN(this.year)&&isNaN(a.year))&&(this.hour===a.hour||isNaN(this.hour)&&isNaN(a.hour))&&(this.minute===a.minute||isNaN(this.minute)&&isNaN(a.minute))&&(this.second===a.second||isNaN(this.second)&&isNaN(a.second))
}
;
Ca.prototype.Va=function()
{
return(undefined!==this.year?ia(this.year,4):"????")+(undefined!==this.month?ia(this.month,2):"??")+(undefined!==this.date?ia(this.date,2):"??")+"T"+(undefined!==this.hour?ia(this.hour,2):"??")+(undefined!==this.minute?ia(this.minute,2):"??")+(undefined!==this.second?ia(this.second,2):"??")
}
;
function $(a)
{
var b=a.indexOf("/");
var c=a.length;
if(b>=0)
{
return new Mb($(a.substring(0,b)),$(a.substring(b+1,c)))
}
else
{
var d=1;
var e=0;
switch(a.charAt(0))
{
case "T":return Zj(0,0,0,Bb(a,1,3),Bb(a,3,5),Bb(a,5,7)).bc();
case "P":return Ul(a.substring(1,c),1);
case "-":d=-1;
case "+":e=1;
if("P"==a.charAt(1))
{
return Ul(a.substring(2,c),d)
}
default:var f=a.indexOf("T");
if(f===-1)
{
return be(Bb(a,e,c-4),Bb(a,c-4,c-2),Bb(a,c-2,c)).g()
}
return Zj(Bb(a,e,f-4),Bb(a,f-4,f-2),Bb(a,f-2,f),Bb(a,f+1,f+3),Bb(a,f+3,f+
5),Bb(a,f+5,f+7)).k()
}
}
}
function Ul(a,b)
{
var c=a.length;
var d=new ca();
for(var e=0;
e<c;
e+=1)
{
var f=0;
do
{
var g=a.charAt(e);
if(g<"0"||g>"9")
{
break
}
f+=1
}
while((e+=1)<c);
if(f===0)
{
Bk("T",a.charAt(e));
continue
}
var h=Bb(a,e-f,e);
switch(a.charAt(e))
{
case "W":d.date+=b*7*h;
break;
case "D":d.date+=b*h;
break;
case "H":d.hour+=b*h;
break;
case "M":d.minute+=b*h;
break;
case "S":d.second+=b*h;
break;
default:Mg("Bad Duration "+a);
return undefined
}
}
return d.Qe()
}
var El="(?:([0-9]
{
4,
}
)|\\?
{
4
}
)";
var Qd="(?:([0-9]
{
2
}
)|\\?
{
2
}
)";
var Mr=new RegExp("^"+El+Qd+Qd+"$");
var Nr=new RegExp("^"+El+Qd+Qd+"T"+Qd+Qd+Qd+"$");
function rb(a)
{
var b=a.indexOf("/");
var c=a.length;
if(b>=0)
{
return new tf(rb(a.substring(0,b)),rb(a.substring(b+1,c)))
}
var d=a.match(Nr);
if(!d)
{
d=a.match(Mr);
if(!d)
{
Mg("Failed to parse partial date "+a)
}
}
for(var e=d.length;
--e>=1;
)
{
if(!d[e])
{
d[e]=undefined
}
else
{
d[e]=parseInt(d[e],10)
}
}
if(7==d.length)
{
return new Ca(d[1],d[2],d[3],d[4],d[5],d[6])
}
else
{
return new Ya(
d[1],d[2],d[3])
}
}
var ya=undefined;
var Ii=[];
function Vl(a,b,c)
{
var d=b>2&&29===Ab(a,2);
return Vl.af[b]+d+c-1
}
Vl.af=[undefined,0,31,59,90,120,151,181,212,243,273,304,334];
function Yo()
{
var a=new Date();
var b=ya;
ya=N.create(a.getFullYear(),a.getMonth()+1,a.getDate());
if(b&&!b.equals(ya))
{
for(var c=0;
c<Ii.length;
++c)
{
var d=Ii[c];
try
{
d(ya)
}
catch(e)
{
}
}
}
var f=new Date(a.getFullYear(),a.getMonth(),a.getDate(),0,0,0,0);
f.setDate(f.getDate()+1);
var g=f.getTime()-a.getTime();
if(g<0||g>=1800000)
{
g=1800000
}
setTimeout(Yo,g)
}
Yo();
function kp(a)
{
Ii.push(a)
}
;
function cb()
{
this.ab=
{
}
;
this.J=null;
this.Ia=
{
}
;
this.m=[];
this.Ya=false;
this.rc=false;
this.locationSet=
{
}
;
this.locationSetCount=0
}
cb.prototype._byEid=function(a)
{
return this.ab[a]
}
;
cb.prototype._allEids=function()
{
return this.ab
}
;
cb.prototype._eventsInRange=function(a,b)
{
var c=a.toString()+":"+b.toCacheKey();
var d;
if(this.J)
{
d=this.J[c];
if(undefined!==d)
{
return d
}
}
this.yb();
var e=this.xa(a.start.g());
var f=this.xa(Vd(a.end));
d=[];
var g=
{
}
;
for(var h=e;
h<f;
++h)
{
var i=this.La(h);
for(var j=0;
j<i.length;
++j)
{
var k=i[j];
if(g[k.eid])
{
continue
}
g[k.eid]=true;
if(a.dg(k.start.k(),k.end.k()))
{
if(b(k))
{
d.push(k)
}
}
}
}
this.Bb(c,d);
return d
}
;
cb.prototype._eventsAfter=function(a,b,c,d)
{
var e=a.toString()+" +"+b+":"+c.toCacheKey();
var f;
if(this.J)
{
f=this.J[e];
if(undefined!==f)
{
return f
}
}
this.yb();
var g=a.g();
var h=this.xa(g);
var i=h<this.m.length&&this.m[h].D.equals(g);
f=[];
var j=b;
var k=
{
}
;
for(var l=h;
l<this.m.length;
++l)
{
var n=this.La(l);
var o=false;
for(var p=0;
p<n.length;
++p)
{
var q=n[p];
if(!d)
{
if(k[q.eid])
{
continue
}
k[q.eid]=true
}
if((!i||q.end.b()>a.b())&&c(q))
{
if(!o)
{
if(d)
{
f.push(n.D)
}
o=true
}
f.push(q);
if(--j<=0)
{
l=this.m.length;
break
}
}
}
i=false
}
this.Bb(e,f);
return f
}
;
cb.prototype._eventsBefore=function(a,b,c,d)
{
var e=a.toString()+" -"+b+":"+c.toCacheKey();
var f;
if(this.J)
{
f=this.J[e];
if(undefined!==f)
{
return f
}
}
this.yb();
var g=Tt(a);
var h=this.xa(g);
var i=h>0&&1===sb(g,this.m[h-1].D);
f=[];
var j=b;
var k=
{
}
;
for(var l=h;
--l>=0;
)
{
var n=this.La(l);
var o=false;
for(var p=n.length;
--p>=0;
)
{
var q=n[p];
if(!d)
{
if(k[q.eid])
{
continue
}
k[q.eid]=true
}
if((!i||q.start.b()<a.b())&&c(q))
{
f.push(q);
o=true;
if(--j<=0)
{
l=-1;
break
}
}
}
if(o&&d)
{
f.push(n.D)
}
i=false
}
f.reverse();
this.Bb(e,
f);
return f
}
;
cb.prototype._eventsAfterEventOnDay=function(a,b,c,d)
{
var e=a.toString()+":"+b+" ++"+c+":"+d.toCacheKey();
var f;
if(this.J)
{
f=this.J[e];
if(undefined!==f)
{
return f
}
}
this.yb();
var g=this.xa(a);
var h=g<this.m.length&&this.m[g].D.equals(a);
f=[];
var i=0;
if(h)
{
var j=this.La(g);
for(var k=i;
k<j.length;
++k)
{
var l=j[k];
if(l.eid==b)
{
i=k;
break
}
}
}
var n=c;
for(var o=g;
o<this.m.length;
++o)
{
var j=this.La(o);
var p=false;
for(var k=i;
k<j.length;
++k)
{
var l=j[k];
if(d(l))
{
if(!p)
{
f.push(j.D);
p=true
}
f.push(l);
if(--n<=0)
{
o=this.m.length;
break
}
}
}
i=0
}
this.Bb(e,f);
return f
}
;
cb.prototype._eventsBeforeEventOnDay=function(a,b,c,d)
{
var e=a.toString()+":"+b+" --"+c+":"+d.toCacheKey();
var f;
if(this.J)
{
f=this.J[e];
if(undefined!==f)
{
return f
}
}
this.yb();
var g=a;
var h=this.xa(g);
var i=h>0&&0===sb(g,this.m[h].D);
f=[];
var j=0;
if(i)
{
var k=this.La(h);
for(var l=k.length;
--l>=0;
)
{
var n=k[l];
if(n.eid==b)
{
j=k.length-l-1;
break
}
}
}
var o=c;
for(var p=h;
p>=0;
--p)
{
var k=this.La(p);
var q=false;
for(var l=k.length-j;
--l>=0;
)
{
var n=k[l];
if(d(n))
{
f.push(n);
q=true;
if(--o<=0)
{
p=-1;
break
}
}
}
if(q)
{
f.push(
k.D)
}
j=0
}
f.reverse();
this.Bb(e,f);
return f
}
;
cb.prototype.xa=function(a)
{
var b=a.b();
var c=this.Ia[b];
if(undefined!==c)
{
return c<0?~c:c
}
c=0;
var d=0;
var e=this.m.length-1;
var f=false;
while(e>=d)
{
c=e+d>>1;
var g=this.m[c].D.b()-b;
if(0===g)
{
f=true;
break
}
else if(g<0)
{
d=c+1
}
else
{
e=c-1
}
}
if(c<this.m.length&&b>this.m[c].D.b())
{
c+=1
}
this.Ia[b]=f?c:~c;
return c
}
;
cb.prototype.yb=function()
{
if(this.Ya)
{
this.m.sort(Rt)
}
if(this.rc||this.Ya)
{
this.Ia=
{
}
;
for(var a=this.m.length;
--a>=0;
)
{
this.Ia[this.m[a].D.b()]=a
}
this.rc=false
}
if(this.Ya)
{
this.Ya=false
}
}
;
cb.prototype.Bb=function(a,b)
{
if(!this.J||this.J.size>10)
{
this.J=
{
}
;
this.J.size=0
}
this.J[a]=b;
++this.J.size
}
;
cb.prototype.La=function(a)
{
var b=this.m[a];
if(b.Yd)
{
b.sort(St);
b.Yd=false
}
return b
}
;
cb.prototype.sd=function(a,b,c)
{
var d=b.g();
var e=Vd(c);
var f=D(d);
for(var g;
(g=f.g()).b()<e.b();
f.date+=1)
{
var h=this.Ia[g.b()];
if(h!==undefined&&h>=0)
{
var i=this.m[h];
for(var j=0;
j<i.length;
++j)
{
if(i[j].eid==a)
{
i.splice(j,1);
this.Lb();
break
}
}
}
}
}
;
cb.prototype.sc=function(a)
{
var b=a.start.g();
var c=Vd(a.end);
var d=D(b);
for(var e;
(e=d.g()).b()<c.b();
d.date+=1)
{
var f=this.Ia[e.b()];
var g;
if(f!==undefined&&f>=0)
{
g=this.m[f]
}
else
{
g=[];
g.D=e;
this.Ya=this.Ya||this.m.length&&g.D.b()<this.m[this.m.length-1].D.b();
this.rc=true;
this.Ia[e.b()]=this.m.length;
this.m.push(g)
}
g.push(a);
g.Yd=g.length>1
}
this.Lb()
}
;
cb.prototype._anyEventsInDateRange=function(a,b,c)
{
var d=this.xa(a);
var e=this.xa(b);
var f=
{
}
;
for(var g=d;
g<=e;
++g)
{
var h=this.m[g];
if(!h)continue;
for(var i=0;
i<h.length;
++i)
{
if(!c||c(h[i]))
{
f[h.D]=true;
break
}
}
}
return f
}
;
cb.prototype.Lb=function()
{
this.J=null
}
;
var Y=new cb();
Y.bucketCounts=function()
{
var a=[];
for(var b=0;
b<this.m.length;
++b)
{
var c=this.m[b];
a.push(c.D.toString()+": "+c.length)
}
return a.join("\n")
}
;
Y.bucketContent=function()
{
var a=[];
for(var b=0;
b<this.m.length;
++b)
{
var c=this.m[b];
var d=[];
for(var e=0;
e<c.length;
++e)
{
d.push(c[e].eid)
}
a.push(c.D.toString()+": "+d.join(","))
}
return a.join("\n")
}
;
function mi(a,b,c,d,e,f,g,h,i,j,k,l,n,o)
{
if(typeof c=="string")
{
c=$(c)
}
if(typeof d=="string")
{
if(d=="")
{
d=c;
var p=D(c);
p.hour+=1;
d=p.k()
}
else
{
d=$(d)
}
}
var q=Y._byEid(a);
if(q===undefined)
{
q=new Aa(a,b,c,d,e,f,g,h,i,j,k,l,n,o);
Y.sc(q)
}
else
{
var r=q.att[q.src];
var s=q.start;
var t=q.end;
q.update(a,b,c,d,e,f,g,h,i,j,k,l,n,o);
if(r!==q.att[q.src]||!s.g().equals(c.g())||!Vd(t).equals(Vd(d)))
{
Y.sd(a,s,t);
Y.sc(q)
}
}
Y.ab[q.eid]=q;
dd();
return q
}
function Eq()
{
var a=ni();
E.hide();
rl(a)
}
function zl(a)
{
var b=u.Gb();
var c=N.now();
var d;
if(b[1].b()<=c.b())
{
d=b[1]
}
else if(c.b()<=b[0].b())
{
d=b[0]
}
else
{
d=c
}
var e=Gq(d);
var f=D(e);
f.minute+=60;
f=f.k();
var g=[];
if(a!==null)
{
g.push("src",a)
}
g.push(mb,e+"/"+f);
g.push("pprop",$i+":BUTTON");
kf(g)
}
function Gq(a)
{
var b=D(a);
var c=O.now();
b.hour=c.hour;
b.minute=c.minute<30?30:60;
b.second=0;
return b.k()
}
function Iq()
{
var a=ni();
E.hide();
kf(a)
}
function ni()
{
var a=E.summary||Kg().value;
var b=E.start;
var c=E.end;
var d;
var e=m("dragEventCalendar");
if(e)
{
d=e.value
}
else
{
d=B
}
if(b)
{
if(!c)
{
if("string"==typeof b)
{
b=$(b)
}
c=D(b);
if(b instanceof O)
{
c.hour+=1;
c=c.k()
}
else
{
c.date+=1;
c=c.g()
}
}
}
var f=ql(a,E.details,E.location,b,c,E.att_names,E.querystring,E.url,E.sharedprops,E.privprops,"DRAG");
f.push("src",d);
return f
}
function xl(a)
{
var b=Y._byEid(a);
if(b)
{
Y.sd(a,b.start,b.end);
delete Y.ab[a];
Gn(a)
}
dd()
}
function Hq(a,b)
{
var c=Y._byEid(a);
if(c)
{
c.eid=b;
delete Y.ab[a];
Y.ab[b]=c;
c.flags&=~65
}
dd()
}
function Al(a,b,c)
{
S("Updating Status for "+a+", "+c);
var d=Y._byEid(a);
if(d)
{
d.att[b]=c;
Y.Lb();
dd()
}
else
{
S("No Such Event")
}
}
function Kq(a,b,c)
{
if(typeof b=="string")
{
b=$(b)
}
if(typeof c=="string")
{
c=$(c)
}
var d=Y._byEid(a);
if(d)
{
var e=d.start;
var f=d.end;
d.start=b.k();
d.end=c.k();
Mn(b,d);
if(!e.g().equals(d.start.g())||!Vd(f).equals(Vd(d.end)))
{
Y.sd(a,e,f);
Y.sc(d)
}
dd()
}
else
{
S("No Such Event")
}
}
function lf(a,b,c)
{
S("Updating field "+b+" for "+a);
var d=Y._byEid(a);
if(d)
{
d[b]=c;
dd()
}
else
{
S("No Such Event")
}
}
function Jq(a,b)
{
S("Updating attendees for "+a);
var c=Y._byEid(a);
if(c)
{
c.att=
{
}
;
var d=b.split(/[;
:]/);
for(var e=0;
e<d.length;
e+=2)
{
var f=d[e];
if(f.length)
{
c.att[f]=parseInt(d[e+1],10)
}
}
dd()
}
else
{
S("No Such Event")
}
}
function Vd(a)
{
if(a.hour||a.minute||a.second)
{
var b=D(a);
b.date+=1;
return b.g()
}
else
{
return a.g()
}
}
function Tt(a)
{
if(undefined===a.hour||a.hour||a.minute||a.second)
{
var b=D(a);
b.date+=1;
return b.g()
}
else
{
return a.g()
}
}
function Rt(a,b)
{
return a.D.b()-b.D.b()
}
function St(a,b)
{
var c=a.start.b()-b.start.b();
if(c)
{
return c
}
c=a.end.b()-b.end.b();
if(c)
{
return c
}
var d=a.eid;
var e=b.eid;
return d==e?0:(d<e?-1:1)
}
function Lq(a,b,c)
{
S("Updating field "+b+" for "+a);
var d=Y._byEid(a);
if(d)
{
d[b]=c
}
else
{
S("No Such Event")
}
}
function le(a)
{
if(La)
{
for(var b=0;
b<La.length;
++b)
{
a.push("lef",La[b])
}
}
}
function ke(a)
{
if(la)
{
a.push("droi",la.toString())
}
}
;
var la=undefined;
var La=[];
var jd=undefined;
function _es_setDisplayTz(a)
{
jd=a
}
function Mq(a,b,c,d,e)
{
var f=Vf(d,La);
var g=Vf(La,d);
if(f.length)
{
S("expanding LEF by "+f);
for(var h=0;
h<f.length;
h++)
{
La.push(f[h])
}
La.sort()
}
if(undefined===la||b.contains(la))
{
if(0==g.length)
{
la=b
}
else
{
Fg(b.start,b.end,g,d,false)
}
}
else
{
var i=(b.start.b()<la.start.b()?b:la).start;
var j=(b.end.b()>la.end.b()?b:la).end;
Fg(i,j,g,La,false)
}
Cp(e)
}
function Fq(a)
{
if(!La)
{
return
}
La=Vf(La,a)
}
function pi(a,b,c)
{
yl(a,b,[],c)
}
function yl(a,b,c,d)
{
pb(b.b()>=a.b(),"end must not precede start");
var e,f;
if(undefined===la)
{
e=a;
f=b
}
else
{
if(a.b()<la.start.b())
{
e=a;
f=la.start
}
if(b.b()>la.end.b())
{
if(e===undefined)e=la.end;
f=b
}
if(e===undefined)
{
if(d)d();
return
}
}
var g=Zn(La,c);
var h=g.length>La.length;
Fg(e,f,g,La,h,d)
}
function oi(a,b)
{
var c=Vf(a,La);
if(c.length==0)
{
if(b)b();
return
}
if(undefined!==la)
{
Fg(la.start,la.end,c,La,true,b)
}
else
{
if(b)b()
}
}
function Fg(a,b,c,d,e,f)
{
var g=la?la:new Mb(a,a);
var h=new Mb(a,b);
var i=["droi",g,"droiP",h,"lrt",vh,"ctz",jd];
for(var j=0;
j<d.length;
++j)
{
i.push("lef",d[j])
}
for(var j=0;
j<c.length;
++j)
{
i.push("lefP",c[j])
}
if(e)
{
i.push("nusr","true")
}
aa("load",i,xa("Failed to load events from the server",f))
}
function Aa(a,b,c,d,e,f,g,h,i,j,k,l,n,o)
{
this.update(a,b,c,d,e,f,g,h,i,j,k,l,n,o)
}
Aa.prototype.eid=undefined;
Aa.prototype.text=undefined;
Aa.prototype.start=undefined;
Aa.prototype.end=undefined;
Aa.prototype.owner=undefined;
Aa.prototype.src=undefined;
Aa.prototype.creator=undefined;
Aa.prototype.flags=undefined;
Aa.prototype.location=undefined;
Aa.prototype.url=undefined;
Aa.prototype.gb=undefined;
Aa.prototype.att=undefined;
Aa.prototype.sharedprops=undefined;
Aa.prototype.privprops=undefined;
Aa.prototype.details=undefined;
Aa.prototype.update=function(a,b,c,d,e,f,g,h,i,j,k,l,n,o)
{
this.eid=
a;
this.text=b||"";
this.start=c.k();
this.end=d.k();
this.owner=e;
this.src=f;
this.creator=g;
this.flags=h;
Mn(c,this);
if(i&&this.location!=i)
{
var p=i.replace(/\W+/g,"");
if(p in Y.locationSet)
{
++Y.locationSet[p].count
}
else
{
Y.locationSet[p]=
{
count:1,location:i
}
;
++Y.locationSetCount
}
}
this.location=i||"";
this.url=l||"";
this.gb=j;
this.att=
{
}
;
if("string"==typeof k)
{
var q=k.split(/[;
:]/);
for(var r=0;
r<q.length;
r+=2)
{
var s=q[r];
if(s.length)
{
var t=parseInt(q[r+1],10);
this.att[s]=t
}
}
}
else
{
for(var w in k)
{
var t=
k[w];
this[w]=t
}
}
if(n!==null)
{
this.sharedprops=n
}
else
{
this.sharedprops=[]
}
if(o!==null)
{
this.privprops=o
}
else
{
this.privprops=[]
}
}
;
Aa.prototype.cb=function()
{
return A[this.src].color
}
;
Aa.prototype.Pc=function()
{
return!(!(this.flags&32))
}
;
Aa.prototype.toString=function()
{
var a=this.text;
if(a.length>16)
{
a=a.substring(0,13)+"..."
}
return"[Event "+this.eid+": "+a+" on "+this.src+"]"
}
;
function Nb(a)
{
return!(!(a.flags&16))
}
function Ia(a)
{
return!(!(a.flags&16384))
}
function Ei(a)
{
return false
}
function Di(a)
{
if(a.gb==0)
{
return false
}
if(a.gb>1)
{
return true
}
if(B in a.att)
{
return false
}
return true
}
var dd=function()
{
}
;
var Gn=function(a)
{
}
;
function Mn(a,b)
{
if(a.type=="Date")
{
b.flags|=16;
b.flags|=16384
}
else
{
var c=D(b.start);
c.date+=1;
var d=c.g();
if(b.end.b()>d.b())
{
b.flags|=16384
}
else
{
b.flags&=~16384
}
}
}
;
var Zd=new Wr();
var oo=false;
function Wr()
{
this.Fa=[]
}
function _PC_Install(a)
{
if(oo)return false;
oo=true;
var b=a?a:document;
Ma(b.body,"mousedown",Or);
return true
}
function Or(a)
{
if(Zd.Fa.length==0)return false;
var a=a||window.event;
for(var b=Zd.Fa.length-1;
b>=0;
--b)
{
var c=Zd.Fa[b];
if(c.deactivate(a))
{
Zd.Fa.splice(b,1)
}
}
return true
}
function Af(a)
{
for(var b=0;
b<Zd.Fa.length;
++b)
{
if(a===Zd.Fa[b])return false
}
Zd.Fa.push(a);
return true
}
;
var $f;
function ve()
{
this.qaBox=document.createElement("DIV");
this.qaBox.className="pbox quick";
this.qaBox.style.display="none";
this.qaBox.style.position="absolute";
document.body.appendChild(this.qaBox);
this.Y=false;
this.template=ve.HTML_TEMPLATE;
this.template.put("Quick_Add","Quick Add");
this.template.put("Quick_Add_Example","e.g., Dinner with Michael 7pm tomorrow");
var a=H("Add now");
this.template.put("Quick_Add_Button_Alt_Text",a);
this.qaBox.innerHTML=this.template.toString()
}
function Jm()
{
if(!$f)$f=new ve();
$f.show();
var a=m("quickadd");
setTimeout(function()
{
a.value="";
nc(a)
}
,0)
}
function Lp()
{
if(!$f)return;
$f.hide()
}
ve.HTML_TEMPLATE=new R('<div class="t2">
</div><div class="offset"> <div class="boxbody"> <form style="display: block;
" onsubmit="_QuickAdd();
_CloseQuickAdd();
return false;
"> <div> <label for="quickadd">$
{
Quick_Add
}
</label> <input type="text" name="quickadd" id="quickadd" class="txt"> <input type="image" src="images/btn_add_quick.gif" class="imgbtn" alt="$
{
Quick_Add_Button_Alt_Text
}
" title="$
{
Quick_Add_Button_Alt_Text
}
"> </div> <p>$
{
Quick_Add_Example
}
</p> </form> <div class="reset">
</div> </div></div><div class="b2">
</div><div class="sb2">
</div>'
);
ve.prototype.show=function()
{
var a=m("open-quick-add");
var b=ra(a);
this.qaBox.style.left=b.x+"px";
this.qaBox.style.top=b.y+"px";
this.qaBox.style.display="";
m("quickadd").focus();
this.Y=true;
Af(this)
}
;
ve.prototype.hide=function()
{
this.qaBox.style.display="none";
this.Y=false
}
;
ve.prototype.deactivate=function(a)
{
if(this.Y)
{
var b=na(a);
if(G(this.qaBox).contains(b))
{
return false
}
else
{
this.hide();
return true
}
}
else
{
return true
}
}
;
function Xr(a)
{
var b=a||m("quickadd").value;
if(/\S/.test(b))
{
aa("compose",["ctext",b],xa("Failed to quick add event",Mp))
}
}
function Mp(a)
{
var b=Dl(a);
Hn(b.summary,b.details,b.location,b.start,b.end,b.att_names,b.querystring,b.url,b.sharedprops,b.privprops);
return false
}
function Dl(a)
{
if(200!==zd(a))return null;
var b=eval(a.responseText)[0];
var c=
{
summary:b[1],details:b[2],location:b[3],start:b[4],end:b[5],att_names:b[6],querystring:b[7],url:b[8],sharedprops:b[9],privprops:b[10]
}
;
if(c.summary)c.summary=Ib(c.summary);
if(c.details)c.details=Ib(c.details);
return c
}
function Hn(a,b,c,d,e,f,g,h,i,j)
{
var k=ir(a,d,e);
if(k)
{
d=k.start;
e=k.end
}
var l=ql(a,b,c,d,e,f,g,h,i,j,"QUICKADD");
if(k)
{
l.push("src",B);
rl(l)
}
else
{
kf(l)
}
}
function ir(a,b,c)
{
if(!Ib(a)||!b||!c)return undefined;
var d=rb(b.toString());
var e=rb(c.toString());
var f,g,h;
if(d.Q())
{
if(!e.Q())
{
if((g=e.z()).Q()&&g.g().b()>d.b())
{
c=g.k()
}
else
{
h=D(d);
h.hour+=1;
c=h.k()
}
}
}
else if((f=d.z()).Q())
{
b=f.g();
g=e.z();
if(g.Q())
{
c=g.g();
h=D(c);
h.date+=1;
c=h.g()
}
else
{
h=D(b);
h.date+=1;
c=h.g()
}
}
else
{
return undefined
}
return
{
start:b.toString(),end:c.toString()
}
}
;
var vb=null;
funct