/* Copyright 2007-8 Google. */ (function() { function e(a){throw a;}
var h=void 0,i=!0,k=null,l=!1,m="",o=" ",aa=" (",ba=" (Google)",ca=' name="',da=" progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)",ea=" progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678) alpha(opacity=50)",fa=' type="',ga='"',ha="#",ia="#000",ja="#fff",ka="$$$$",la="%",p="&",ma="&action=",na="&amp;",oa="&func=",pa="&gt;",qa="&lt;",
ra="&nbsp;",sa="&quot;",ta="&sectionId=",ua="&widgetId=",va="&widgetType=",wa="'trebuchet ms',verdana,arial,sans-serif",xa="(",ya="(\\d*)(\\D*)",za=")",Aa="*",Ba=",",Ca="-140px",Da="-225px",Ea=".",Fa=".01",Ga=".5",Ha=".js",Ia=".previewMode .postCommentButtonHolder { padding-top: 22px; }\n",Ja=".x",Ka=".y",La="/",Ma="//",Na="/comment-iframe-bg.g",Oa="/rearrange?blogID=",Pa="0",Qa="0px",Ra="1",Sa="10",Ta="100%",Ua="10px",Va="1px solid #aaa",Wa="1px solid transparent",Xa="200px",Ya="24px",Za="50% 0",
$a="528",ab="600px",bb="75px",cb=":",db=": ",eb=";\nfont-family: ",fb=";}\n",gb="<",q="=",hb=">",ib="?",jb="?widgetId=",kb="@",lb="AIM",mb="ANON",nb="Assertion failed",ob="CSS1Compat",pb="CURRENT",qb="Content-Type",rb="FRIENDCONNECT",sb="GET",tb="GOOGLE",ub="Invalid listener argument",vb="LJ",wb="LiveJournal",xb="MSXML2.XMLHTTP",yb="MSXML2.XMLHTTP.3.0",zb="MSXML2.XMLHTTP.6.0",Ab="Microsoft Internet Explorer",Bb="Microsoft.XMLHTTP",Cb="NAMEURL",Db="NONE",Eb="OPENID",Fb="OpenID",Gb="POST",Ib="Preview",
Jb="SubscribeByEmail",Kb="TP",Lb="TypePad",Mb="UnsubscribeByEmail",Nb="WP",Ob="WordPress",Pb="X",Qb="[object Array]",Rb="[object Function]",Sb="[object Window]",Tb="]",Ub="_",Vb="_OnWidgetConfigured",Wb="_OnWidgetDeleted",Xb="__gjsload__",Yb="_asynchronousFileUploadIframe",Zb="_changeImageLink",$b="_imageChoiceTable",ac="_imgFileNameError",bc="_imgFileNameInput",cc="_imgSrcFromPCRadio",dc="_imgSrcFromWebRadio",ec="_imgUrlTextError",fc="_imgUrlTextInput",gc="_picImg",hc="a",ic="a:link, a:visited, a:active, a:hover { color: ",
jc="abort",kc="absolute",lc="action",mc="action=",nc="addnew",oc="ajaxAction",pc="allHolder",qc="alpha(opacity=1)",rc="animate",sc="anonNameField",tc="anonUrlField",uc="application/x-www-form-urlencoded;charset=utf-8",vc="aria-",wc="aria-expanded",xc="array",yc="arraybuffer",zc="begin",Ac="bgresponse",Bc="block",Cc="blogID",Dc="blogger-clickTrap",Ec="blur",Fc="body",Gc="body { color: ",Hc="button",Ic="call",Jc="callee",Kc="captcha-error",Lc="center",Mc="change",Nc="checkbox",Oc="chooseWidget",Pc=
"class",Qc="click",Rc="commentBodyField",Sc="commentDash",Tc="commentForm",Uc="commentSubscriptionForm",s="complete",Vc="config",Wc="configure",Xc="default",Yc="delete",Zc="destroy",$c="disabled",ad="displayModeFull",bd="displayModeLayout",cd="displayModeNone",dd="displayModeSnippet",t="div",ed="edit-link",fd="editButton",gd="editlink",hd="encodedIds",id="encodedSelectedId",jd="end",kd="error",ld="error-details",md="errorbox-bad errormsg",nd="errorbox-good",od="errormessage_",pd="event",qd="expression(this.parentNode.clientHeight)",
rd="false",sd="fcAuthToken",td="fieldset",ud="file",vd="finish",wd="focus",xd="for",yd="form",u="function",zd="g",Ad="genericOpenIdDialogErrorHolder",Bd="genericOpenIdIdentityHolder",Cd="goog-zippy-collapsed",Dd="goog-zippy-content",Ed="goog-zippy-expanded",Fd="goog-zippy-header",Gd="head",Hd="hidden",Id="href",Jd="http",Kd="http://",Ld="http://img2.blogblog.com/img/icon_inprogress.gif",Md="http://openid.aol.com/{username}",Nd="http://profile.typepad.com/{username}",Od="http://{username}.livejournal.com",
Pd="http://{username}.wordpress.com",Qd="id",Rd="id-error",Sd="identityHolder",Td="identityMenu",Ud="iemode",Vd="image",Wd="imageUpload.do",Xd="img",Yd="inline",Zd="innerHTML",$d="innerText",ae="input",be="internal error",ce="keydown",de="keypress",ee="keyup",fe="layout-title",ge="main-error",he="main-error-holder",ie="main-status",je="main-status-holder",ke="menubar=no,location=no,resizable=no,scrollbars=no,status=no,height=550,width=800",le="mouseout",me="mouseover",ne="mozResponseArrayBuffer",
oe="multipart/form-data",pe="nameUrlDialogErrorHolder",qe="nameUrlIdentityHolder",re="native code",se="no type",te="no widget for ",v="none",ue="null",ve="number",we="o",xe="object",ye="on",ze="openIdDialogErrorHolder",Ae="openIdIdentityHolder",Be="openIdUriDisplayPrefix",Ce="openIdUriDisplaySuffix",De="openIdUriDisplayUsername",Ee="openIdUriField",Fe="openIdUserNameField",Ge="openIdUsernameLabel",He="option",Ie="overflow:hidden",Je="page",Ke="pageID",Le="play",Me="postCommentSubmit",Ne="previewMode",
Oe="px",Pe="radio",Qe="ready",Re="readystatechange",Se="requestReload",Te="reset",Ue="response",Ve="responseType=js",We="resume",Xe="role",Ye="rotate(-45deg)",Ze="script",$e="sectionId",af="sectionWidth",bf="security_token",cf="select",df="select-multiple",ef="select-one",ff="settingsButton",gf="showPreview",hf="signoutLink",jf="span",kf="splice",lf="status-message",mf="status-message-inner",nf="stop",of="string",pf="style",qf="submit",rf="subscribeButton",sf="subscribeButtonHolder",tf="success",
uf="tab",vf="text",wf="text/javascript",xf="timeout",yf="toggle",zf="true",Af="var ",Bf="white",Cf="widget-content",Df="widget-wrap1",Ef="widget-wrap2",Ff="widget-wrap3",Gf="widgetId=",Hf="widgetType",If="widgetType=",Jf="width=570,height=600,left=75,top=20,resizable=yes,scrollbars=yes",Kf="window",Lf="withCredentials",Mf="{username}",Nf="\u0410\u043a\u043a\u0430\u0443\u043d\u0442 Google",Of="\u0410\u043d\u043e\u043d\u0438\u043c\u043d\u044b\u0439",Pf="\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u044c",
Qf="\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u043f\u0440\u043e\u0444\u0438\u043b\u044c...",Rf="\u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f AIM:",Sf="\u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f LiveJournal:",Tf="\u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f TypePad:",Uf="\u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f WordPress:",
Vf="\u0418\u043c\u044f/URL",Wf="\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0443",Xf="\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u0435",Yf="\u041f\u043e\u043b\u0435 URL \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0443\u0441\u0442\u044b\u043c",Zf="\u041f\u043e\u043b\u0435 \u0438\u043c\u0435\u043d\u0438 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0443\u0441\u0442\u044b\u043c",
$f="\u041f\u043e\u043b\u0435 \u0438\u043c\u0435\u043d\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0443\u0441\u0442\u044b\u043c",ag="\u041f\u043e\u043b\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0443\u0441\u0442\u044b\u043c",bg="\u041f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0441\u0432\u044f\u0437\u0430\u0442\u044c\u0441\u044f \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430.",
cg="\u0420\u0430\u0437\u043c\u0435\u0440 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 1 \u041c\u0431. \u0421\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u0435 \u0435\u0433\u043e.",dg="\u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f",x,eg=eg||{},y=this,z=function(a,b,c){a=a.split(Ea);c=c||y;!(a[0]in c)&&c.execScript&&c.execScript(Af+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&b!==h?c[d]=
b:c=c[d]?c[d]:c[d]={}},fg=function(){},gg=function(a){return a},hg=function(a){var b=typeof a;if(b==xe)if(a){if(a instanceof Array)return xc;if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(c==Sb)return xe;if(c==Qb||typeof a.length==ve&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(kf))return xc;if(c==Rb||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(Ic))return u}else return ue;
else if(b==u&&"undefined"==typeof a.call)return xe;return b},A=function(a){return hg(a)==xc},ig=function(a){var b=hg(a);return b==xc||b==xe&&typeof a.length==ve},B=function(a){return typeof a==of},jg=function(a){return hg(a)==u},kg=function(a){var b=typeof a;return b==xe&&a!=k||b==u},ng=function(a){return a[lg]||(a[lg]=++mg)},lg="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),mg=0,og=function(a,b,c){return a.call.apply(a.bind,arguments)},pg=function(a,b,c){a||e(Error());if(2<arguments.length){var d=
Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},C=function(a,b,c){C=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf(re)?og:pg;return C.apply(k,arguments)},qg=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,
b)}},rg=Date.now||function(){return+new Date},D=function(a,b){function c(){}c.prototype=b.prototype;a.e=b.prototype;a.prototype=new c;a.prototype.constructor=a};Function.prototype.bind=Function.prototype.bind||function(a,b){if(1<arguments.length){var c=Array.prototype.slice.call(arguments,1);c.unshift(this,a);return C.apply(k,c)}return C(this,a)};Function.prototype.g=function(a){D(this,a)};var sg=function(a){this.stack=Error().stack||m;a&&(this.message=m+a)};D(sg,Error);sg.prototype.name="CustomError";var tg=function(a,b){for(var c=1;c<arguments.length;c++)var d=(m+arguments[c]).replace(/\$/g,ka),a=a.replace(/\%s/,d);return a},ug=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,m)},vg=/^[a-zA-Z0-9\-_.!~*'()]*$/,wg=function(a){a=m+a;return!vg.test(a)?encodeURIComponent(a):a},Cg=function(a,b){if(b)return a.replace(xg,na).replace(yg,qa).replace(zg,pa).replace(Ag,sa);if(!Bg.test(a))return a;-1!=a.indexOf(p)&&(a=a.replace(xg,na));-1!=a.indexOf(gb)&&(a=a.replace(yg,qa));-1!=a.indexOf(hb)&&(a=a.replace(zg,
pa));-1!=a.indexOf(ga)&&(a=a.replace(Ag,sa));return a},xg=/&/g,yg=/</g,zg=/>/g,Ag=/\"/g,Bg=/[&<>\"]/;var Dg=function(a,b){b.unshift(a);sg.call(this,tg.apply(k,b));b.shift()};D(Dg,sg);Dg.prototype.name="AssertionError";var E=function(a,b,c){if(!a){var d=Array.prototype.slice.call(arguments,2),f=nb;if(b)var f=f+(db+b),g=d;e(new Dg(m+f,g||[]))}return a};var G=Array.prototype,Eg=G.indexOf?function(a,b,c){E(a.length!=k);return G.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(B(a))return!B(b)||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Fg=G.forEach?function(a,b,c){E(a.length!=k);G.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=B(a)?a.split(m):a,g=0;g<d;g++)g in f&&b.call(c,f[g],g,a)},Gg=G.some?function(a,b,c){E(a.length!=k);return G.some.call(a,b,c)}:function(a,
b,c){for(var d=a.length,f=B(a)?a.split(m):a,g=0;g<d;g++)if(g in f&&b.call(c,f[g],g,a))return i;return l},Hg=function(a){if(!A(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},Jg=function(a,b){var c=Eg(a,b),d;(d=0<=c)&&Ig(a,c);return d},Ig=function(a,b){E(a.length!=k);return 1==G.splice.call(a,b,1).length},Kg=function(a){return G.concat.apply(G,arguments)},Lg=function(a){if(A(a))return Kg(a);for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b},Mg=function(a,b){for(var c=1;c<arguments.length;c++){var d=
arguments[c],f;if(A(d)||(f=ig(d))&&d.hasOwnProperty(Jc))a.push.apply(a,d);else if(f)for(var g=a.length,j=d.length,n=0;n<j;n++)a[g+n]=d[n];else a.push(d)}},Og=function(a,b,c,d){E(a.length!=k);return G.splice.apply(a,Ng(arguments,1))},Ng=function(a,b,c){E(a.length!=k);return 2>=arguments.length?G.slice.call(a,b):G.slice.call(a,b,c)};var Pg=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},Qg=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Rg=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},Sg=function(a){for(var b in a)return l;return i},Tg="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Ug=function(a,b){for(var c,d,f=1;f<arguments.length;f++){d=arguments[f];for(c in d)a[c]=d[c];for(var g=0;g<Tg.length;g++)c=Tg[g],Object.prototype.hasOwnProperty.call(d,
c)&&(a[c]=d[c])}};var Vg,Wg,Xg,Yg,Zg=function(){return y.navigator?y.navigator.userAgent:k};Yg=Xg=Wg=Vg=l;var $g;if($g=Zg()){var ah=y.navigator;Vg=0==$g.indexOf("Opera");Wg=!Vg&&-1!=$g.indexOf("MSIE");Xg=!Vg&&-1!=$g.indexOf("WebKit");Yg=!Vg&&!Xg&&"Gecko"==ah.product}var bh=Vg,H=Wg,ch=Yg,dh=Xg,eh;
a:{var fh=m,gh;if(bh&&y.opera)var hh=y.opera.version,fh=typeof hh==u?hh():hh;else if(ch?gh=/rv\:([^\);]+)(\)|;)/:H?gh=/MSIE\s+([^\);]+)(\)|;)/:dh&&(gh=/WebKit\/(\S+)/),gh)var ih=gh.exec(Zg()),fh=ih?ih[1]:m;if(H){var jh,kh=y.document;jh=kh?kh.documentMode:h;if(jh>parseFloat(fh)){eh=m+jh;break a}}eh=fh}
var lh=eh,mh={},I=function(a){var b;if(!(b=mh[a])){b=0;for(var c=ug(m+lh).split(Ea),d=ug(m+a).split(Ea),f=Math.max(c.length,d.length),g=0;0==b&&g<f;g++){var j=c[g]||m,n=d[g]||m,r=RegExp(ya,zd),F=RegExp(ya,zd);do{var R=r.exec(j)||[m,m,m],w=F.exec(n)||[m,m,m];if(0==R[0].length&&0==w[0].length)break;b=((0==R[1].length?0:parseInt(R[1],10))<(0==w[1].length?0:parseInt(w[1],10))?-1:(0==R[1].length?0:parseInt(R[1],10))>(0==w[1].length?0:parseInt(w[1],10))?1:0)||((0==R[2].length)<(0==w[2].length)?-1:(0==R[2].length)>
(0==w[2].length)?1:0)||(R[2]<w[2]?-1:R[2]>w[2]?1:0)}while(0==b)}b=mh[a]=0<=b}return b},nh={},oh=function(a){return nh[a]||(nh[a]=H&&document.documentMode&&document.documentMode>=a)};var ph,qh=!H||oh(9);!ch&&!H||H&&oh(9)||ch&&I("1.9.1");H&&I("9");var rh=function(a){return(a=a.className)&&typeof a.split==u?a.split(/\s+/):[]},sh=function(a,b){var c=rh(a),d=Ng(arguments,1),f;f=c;for(var g=0,j=0;j<d.length;j++)0<=Eg(f,d[j])||(f.push(d[j]),g++);f=g==d.length;a.className=c.join(o);return f},th=function(a,b){var c=rh(a),d=Ng(arguments,1),f;f=c;for(var g=0,j=0;j<f.length;j++)0<=Eg(d,f[j])&&(Og(f,j--,1),g++);f=g==d.length;a.className=c.join(o);return f};var J=function(a){return B(a)?document.getElementById(a):a},vh=function(a,b){Pg(b,function(b,d){d==pf?a.style.cssText=b:d==Pc?a.className=b:d==xd?a.htmlFor=b:d in uh?a.setAttribute(uh[d],b):0==d.lastIndexOf(vc,0)?a.setAttribute(d,b):a[d]=b})},uh={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",maxlength:"maxLength",type:"type"},xh=function(a,b,c){return wh(document,arguments)},
wh=function(a,b){var c=b[0],d=b[1];if(!qh&&d&&(d.name||d.type)){c=[gb,c];d.name&&c.push(ca,Cg(d.name),ga);if(d.type){c.push(fa,Cg(d.type),ga);var f={};Ug(f,d);d=f;delete d.type}c.push(hb);c=c.join(m)}c=a.createElement(c);d&&(B(d)?c.className=d:A(d)?sh.apply(k,[c].concat(d)):vh(c,d));2<b.length&&yh(a,c,b,2);return c},yh=function(a,b,c,d){function f(c){c&&b.appendChild(B(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var g=c[d];ig(g)&&!(kg(g)&&0<g.nodeType)?Fg(zh(g)?Lg(g):g,f):f(g)}},zh=function(a){if(a&&
typeof a.length==ve){if(kg(a))return typeof a.item==u||typeof a.item==of;if(jg(a))return typeof a.item==u}return l},Ah=function(a){this.Fa=a||y.document||document};x=Ah.prototype;x.pc=function(a){return B(a)?this.Fa.getElementById(a):a};
x.be=function(a,b,c){c=c||this.Fa;a=a&&a!=Aa?a.toUpperCase():m;if(c.querySelectorAll&&c.querySelector&&(!dh||document.compatMode==ob||I($a))&&(a||b))b=c.querySelectorAll(a+(b?Ea+b:m));else if(b&&c.getElementsByClassName)if(c=c.getElementsByClassName(b),a){for(var d={},f=0,g=0,j;j=c[g];g++)a==j.nodeName&&(d[f++]=j);d.length=f;b=d}else b=c;else if(c=c.getElementsByTagName(a||Aa),b){d={};for(g=f=0;j=c[g];g++)a=j.className,typeof a.split==u&&0<=Eg(a.split(/\s+/),b)&&(d[f++]=j);d.length=f;b=d}else b=c;
return b};x.ae=function(a,b,c){return wh(this.Fa,arguments)};x.createElement=function(a){return this.Fa.createElement(a)};x.createTextNode=function(a){return this.Fa.createTextNode(a)};x.appendChild=function(a,b){a.appendChild(b)};var Bh="StopIteration"in y?y.StopIteration:Error("StopIteration"),Ch=function(){};Ch.prototype.next=function(){e(Bh)};Ch.prototype.Gc=function(){return this};var Dh=function(a){if(typeof a.w==u)return a.w();if(B(a))return a.split(m);if(ig(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Qg(a)},Eh=function(a,b,c){if(typeof a.forEach==u)a.forEach(b,c);else if(ig(a)||B(a))Fg(a,b,c);else{var d;if(typeof a.aa==u)d=a.aa();else if(typeof a.w!=u)if(ig(a)||B(a)){d=[];for(var f=a.length,g=0;g<f;g++)d.push(g)}else d=Rg(a);else d=h;for(var f=Dh(a),g=f.length,j=0;j<g;j++)b.call(c,f[j],d&&d[j],a)}};var Fh=function(a,b){this.k={};this.i=[];var c=arguments.length;if(1<c){c%2&&e(Error("Uneven number of arguments"));for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.tc(a)};x=Fh.prototype;x.b=0;x.Wa=0;x.o=function(){return this.b};x.w=function(){this.yb();for(var a=[],b=0;b<this.i.length;b++)a.push(this.k[this.i[b]]);return a};x.aa=function(){this.yb();return this.i.concat()};x.O=function(a){return Gh(this.k,a)};x.isEmpty=function(){return 0==this.b};
x.clear=function(){this.k={};this.Wa=this.b=this.i.length=0};x.remove=function(a){return Gh(this.k,a)?(delete this.k[a],this.b--,this.Wa++,this.i.length>2*this.b&&this.yb(),i):l};x.yb=function(){if(this.b!=this.i.length){for(var a=0,b=0;a<this.i.length;){var c=this.i[a];Gh(this.k,c)&&(this.i[b++]=c);a++}this.i.length=b}if(this.b!=this.i.length){for(var d={},b=a=0;a<this.i.length;)c=this.i[a],Gh(d,c)||(this.i[b++]=c,d[c]=1),a++;this.i.length=b}};x.get=function(a,b){return Gh(this.k,a)?this.k[a]:b};
x.set=function(a,b){Gh(this.k,a)||(this.b++,this.i.push(a),this.Wa++);this.k[a]=b};x.tc=function(a){var b;a instanceof Fh?(b=a.aa(),a=a.w()):(b=Rg(a),a=Qg(a));for(var c=0;c<b.length;c++)this.set(b[c],a[c])};x.N=function(){return new Fh(this)};x.Gc=function(a){this.yb();var b=0,c=this.i,d=this.k,f=this.Wa,g=this,j=new Ch;j.next=function(){for(;;){f!=g.Wa&&e(Error("The map has changed since the iterator was created"));b>=c.length&&e(Bh);var j=c[b++];return a?j:d[j]}};return j};
var Gh=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Hh=function(a){this.k=new Fh;a&&this.tc(a)},Ih=function(a){var b=typeof a;return b==xe&&a||b==u?we+ng(a):b.substr(0,1)+a};x=Hh.prototype;x.o=function(){return this.k.o()};x.add=function(a){this.k.set(Ih(a),a)};x.tc=function(a){for(var a=Dh(a),b=a.length,c=0;c<b;c++)this.add(a[c])};x.Md=function(a){for(var a=Dh(a),b=a.length,c=0;c<b;c++)this.remove(a[c])};x.remove=function(a){return this.k.remove(Ih(a))};x.clear=function(){this.k.clear()};x.isEmpty=function(){return this.k.isEmpty()};x.w=function(){return this.k.w()};
x.N=function(){return new Hh(this)};x.Gc=function(){return this.k.Gc(l)};var Jh=function(){};Jh.prototype.Cc=l;Jh.prototype.D=function(){this.Cc||(this.Cc=i,this.d())};Jh.prototype.d=function(){this.Mg&&Kh.apply(k,this.Mg)};var Lh=function(a){a&&typeof a.D==u&&a.D()},Kh=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ig(d)?Kh.apply(k,d):Lh(d)}};var Mh=function(a){Mh[o](a);return a};Mh[o]=fg;!H||oh(9);var Nh=!H||oh(9),Oh=H&&!I("8");!dh||I($a);ch&&I("1.9b")||H&&I("8")||bh&&I("9.5")||dh&&I($a);!ch||I("8");var K=function(a,b){this.type=a;this.currentTarget=this.target=b};D(K,Jh);x=K.prototype;x.d=function(){delete this.type;delete this.target;delete this.currentTarget};x.ka=l;x.Ya=i;x.stopPropagation=function(){this.ka=i};x.preventDefault=function(){this.Ya=l};var Ph=function(a,b){a&&this.Sa(a,b)};D(Ph,K);x=Ph.prototype;x.target=k;x.relatedTarget=k;x.offsetX=0;x.offsetY=0;x.clientX=0;x.clientY=0;x.screenX=0;x.screenY=0;x.button=0;x.keyCode=0;x.charCode=0;x.ctrlKey=l;x.altKey=l;x.shiftKey=l;x.metaKey=l;x.Ea=k;
x.Sa=function(a,b){var c=this.type=a.type;K.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(ch){var f;a:{try{Mh(d.nodeName);f=i;break a}catch(g){}f=l}f||(d=k)}}else c==me?d=a.fromElement:c==le&&(d=a.toElement);this.relatedTarget=d;this.offsetX=dh||a.offsetX!==h?a.offsetX:a.layerX;this.offsetY=dh||a.offsetY!==h?a.offsetY:a.layerY;this.clientX=a.clientX!==h?a.clientX:a.pageX;this.clientY=a.clientY!==h?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=
a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(c==de?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.state=a.state;this.Ea=a;delete this.Ya;delete this.ka};x.stopPropagation=function(){Ph.e.stopPropagation.call(this);this.Ea.stopPropagation?this.Ea.stopPropagation():this.Ea.cancelBubble=i};
x.preventDefault=function(){Ph.e.preventDefault.call(this);var a=this.Ea;if(a.preventDefault)a.preventDefault();else if(a.returnValue=l,Oh)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};x.d=function(){Ph.e.d.call(this);this.relatedTarget=this.currentTarget=this.target=this.Ea=k};var Qh=function(){},Rh=0;x=Qh.prototype;x.key=0;x.ha=l;x.Bc=l;x.Sa=function(a,b,c,d,f,g){jg(a)?this.Vd=i:a&&a.handleEvent&&jg(a.handleEvent)?this.Vd=l:e(Error(ub));this.za=a;this.nd=b;this.src=c;this.type=d;this.capture=!!f;this.pb=g;this.Bc=l;this.key=++Rh;this.ha=l};x.handleEvent=function(a){return this.Vd?this.za.call(this.pb||this.src,a):this.za.handleEvent.call(this.za,a)};var Sh={},L={},M={},Th={},N=function(a,b,c,d,f){if(b){if(A(b)){for(var g=0;g<b.length;g++)N(a,b[g],c,d,f);return k}var d=!!d,j=L;b in j||(j[b]={b:0,z:0});j=j[b];d in j||(j[d]={b:0,z:0},j.b++);var j=j[d],n=ng(a),r;j.z++;if(j[n]){r=j[n];for(g=0;g<r.length;g++)if(j=r[g],j.za==c&&j.pb==f){if(j.ha)break;return r[g].key}}else r=j[n]=[],j.b++;g=Uh();g.src=a;j=new Qh;j.Sa(c,g,a,b,d,f);c=j.key;g.key=c;r.push(j);Sh[c]=j;M[n]||(M[n]=[]);M[n].push(j);a.addEventListener?(a==y||!a.kd)&&a.addEventListener(b,g,d):
a.attachEvent(b in Th?Th[b]:Th[b]=ye+b,g);return c}e(Error("Invalid event type"))},Uh=function(){var a=Vh,b=Nh?function(c){return a.call(b.src,b.key,c)}:function(c){c=a.call(b.src,b.key,c);if(!c)return c};return b},Wh=function(a,b,c,d,f){if(A(b)){for(var g=0;g<b.length;g++)Wh(a,b[g],c,d,f);return k}a=N(a,b,c,d,f);Sh[a].Bc=i;return a},Xh=function(a,b,c,d,f){if(A(b)){for(var g=0;g<b.length;g++)Xh(a,b[g],c,d,f);return k}d=!!d;a=Yh(a,b,d);if(!a)return l;for(g=0;g<a.length;g++)if(a[g].za==c&&a[g].capture==
d&&a[g].pb==f)return Zh(a[g].key);return l},Zh=function(a){if(!Sh[a])return l;var b=Sh[a];if(b.ha)return l;var c=b.src,d=b.type,f=b.nd,g=b.capture;c.removeEventListener?(c==y||!c.kd)&&c.removeEventListener(d,f,g):c.detachEvent&&c.detachEvent(d in Th?Th[d]:Th[d]=ye+d,f);c=ng(c);f=L[d][g][c];if(M[c]){var j=M[c];Jg(j,b);0==j.length&&delete M[c]}b.ha=i;f.Ed=i;$h(d,g,c,f);delete Sh[a];return i},$h=function(a,b,c,d){if(!d.Cb&&d.Ed){for(var f=0,g=0;f<d.length;f++)d[f].ha?d[f].nd.src=k:(f!=g&&(d[g]=d[f]),
g++);d.length=g;d.Ed=l;0==g&&(delete L[a][b][c],L[a][b].b--,0==L[a][b].b&&(delete L[a][b],L[a].b--),0==L[a].b&&delete L[a])}},ai=function(a,b,c){var d=0,f=b==k,g=c==k,c=!!c;if(a==k)Pg(M,function(a){for(var j=a.length-1;0<=j;j--){var n=a[j];if((f||b==n.type)&&(g||c==n.capture))Zh(n.key),d++}});else if(a=ng(a),M[a])for(var a=M[a],j=a.length-1;0<=j;j--){var n=a[j];if((f||b==n.type)&&(g||c==n.capture))Zh(n.key),d++}return d},Yh=function(a,b,c){var d=L;return b in d&&(d=d[b],c in d&&(d=d[c],a=ng(a),d[a]))?
d[a]:k},ci=function(a,b,c,d,f){var g=1,b=ng(b);if(a[b]){a.z--;a=a[b];a.Cb?a.Cb++:a.Cb=1;try{for(var j=a.length,n=0;n<j;n++){var r=a[n];r&&!r.ha&&(g&=bi(r,f)!==l)}}finally{a.Cb--,$h(c,d,b,a)}}return Boolean(g)},bi=function(a,b){var c=a.handleEvent(b);a.Bc&&Zh(a.key);return c},Vh=function(a,b){if(!Sh[a])return i;var c=Sh[a],d=c.type,f=L;if(!(d in f))return i;var f=f[d],g,j;if(!Nh){var n;if(!(n=b))a:{n=[Kf,pd];for(var r=y;g=n.shift();)if(r[g]!=k)r=r[g];else{n=k;break a}n=r}g=n;n=i in f;r=l in f;if(n){if(0>
g.keyCode||g.returnValue!=h)return i;a:{var F=l;if(0==g.keyCode)try{g.keyCode=-1;break a}catch(R){F=i}if(F||g.returnValue==h)g.returnValue=i}}F=new Ph;F.Sa(g,this);g=i;try{if(n){for(var w=[],Hb=F.currentTarget;Hb;Hb=Hb.parentNode)w.push(Hb);j=f[i];j.z=j.b;for(var W=w.length-1;!F.ka&&0<=W&&j.z;W--)F.currentTarget=w[W],g&=ci(j,w[W],d,i,F);if(r){j=f[l];j.z=j.b;for(W=0;!F.ka&&W<w.length&&j.z;W++)F.currentTarget=w[W],g&=ci(j,w[W],d,l,F)}}else g=bi(c,F)}finally{w&&(w.length=0),F.D()}return g}d=new Ph(b,
this);try{g=bi(c,d)}finally{d.D()}return g};var di=function(){};D(di,Jh);x=di.prototype;x.kd=i;x.Yb=k;x.addEventListener=function(a,b,c,d){N(this,a,b,c,d)};x.removeEventListener=function(a,b,c,d){Xh(this,a,b,c,d)};
x.dispatchEvent=function(a){var b=a.type||a,c=L;if(b in c){if(B(a))a=new K(a,this);else if(a instanceof K)a.target=a.target||this;else{var d=a,a=new K(b,this);Ug(a,d)}var d=1,f,c=c[b],b=i in c,g;if(b){f=[];for(g=this;g;g=g.Yb)f.push(g);g=c[i];g.z=g.b;for(var j=f.length-1;!a.ka&&0<=j&&g.z;j--)a.currentTarget=f[j],d&=ci(g,f[j],a.type,i,a)&&a.Ya!=l}if(l in c)if(g=c[l],g.z=g.b,b)for(j=0;!a.ka&&j<f.length&&g.z;j++)a.currentTarget=f[j],d&=ci(g,f[j],a.type,l,a)&&a.Ya!=l;else for(f=this;!a.ka&&f&&g.z;f=f.Yb)a.currentTarget=
f,d&=ci(g,f,a.type,l,a)&&a.Ya!=l;a=Boolean(d)}else a=i;return a};x.d=function(){di.e.d.call(this);ai(this);this.Yb=k};var ei=function(a){a=m+a;if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,kb).replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x10-\x1f\x80-\x9f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Tb).replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,m)))try{return eval(xa+a+za)}catch(b){}e(Error("Invalid JSON string: "+a))};var fi=y.window,gi=function(a,b,c){jg(a)?c&&(a=C(a,c)):a&&typeof a.handleEvent==u?a=C(a.handleEvent,a):e(Error(ub));return 2147483647<b?-1:fi.setTimeout(a,b||0)};var hi=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),ji=function(a){if(ii){ii=l;var b=y.location;if(b){var c=b.href;if(c&&(c=(c=ji(c)[3]||k)&&decodeURIComponent(c))&&c!=b.hostname)ii=i,e(Error())}}return a.match(hi)},ii=dh;var ki=function(){};ki.prototype.we=k;ki.prototype.Zc=function(){return this.we||(this.we=this.eg())};var li,mi=function(){};D(mi,ki);mi.prototype.te=function(){var a=this.ze();return a?new ActiveXObject(a):new XMLHttpRequest};mi.prototype.eg=function(){var a={};this.ze()&&(a[0]=i,a[1]=i);return a};mi.prototype.Mc=k;mi.prototype.ze=function(){if(!this.Mc&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var a=[zb,yb,xb,Bb],b=0;b<a.length;b++){var c=a[b];try{return new ActiveXObject(c),this.Mc=c}catch(d){}}e(Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed"))}return this.Mc};
li=new mi;var O=function(a){this.headers=new Fh;this.lb=a||k};D(O,di);var ni=/^https?$/i,oi=[],qi=function(a,b,c,d,f,g){var j=new O;oi.push(j);b&&N(j,s,b);N(j,Qe,qg(pi,j));g&&j.qc(g);j.send(a,c,d,f)},pi=function(a){a.D();Jg(oi,a)};x=O.prototype;x.V=l;x.a=k;x.gb=k;x.$c=m;x.qa=0;x.Qb=l;x.fb=l;x.Ob=l;x.fa=l;x.sa=0;x.da=k;x.Pb=m;x.Fe=l;x.qc=function(a){this.sa=Math.max(0,a)};
x.send=function(a,b,c,d){this.a&&e(Error("[goog.net.XhrIo] Object is active with another request"));b=b?b.toUpperCase():sb;this.$c=a;this.qa=0;this.Qb=l;this.V=i;this.a=this.De();this.gb=this.lb?this.lb.Zc():li.Zc();this.a.onreadystatechange=C(this.Xc,this);try{this.Ob=i,this.a.open(b,a,i),this.Ob=l}catch(f){this.Yc(5,f);return}var a=c||m,g=this.headers.N();d&&Eh(d,function(a,b){g.set(b,a)});b==Gb&&!g.O(qb)&&g.set(qb,uc);Eh(g,function(a,b){this.a.setRequestHeader(b,a)},this);this.Pb&&(this.a.responseType=
this.Pb);Lf in this.a&&(this.a.withCredentials=this.Fe);try{this.da&&(fi.clearTimeout(this.da),this.da=k),0<this.sa&&(this.da=fi.setTimeout(C(this.Ee,this),this.sa)),this.fb=i,this.a.send(a),this.fb=l}catch(j){this.Yc(5,j)}};x.De=function(){return this.lb?this.lb.te():li.te()};x.Ee=function(){"undefined"!=typeof eg&&this.a&&(this.qa=8,this.dispatchEvent(xf),this.abort(8))};x.Yc=function(a){this.V=l;this.a&&(this.fa=i,this.a.abort(),this.fa=l);this.qa=a;this.cd();this.jb()};
x.cd=function(){this.Qb||(this.Qb=i,this.dispatchEvent(s),this.dispatchEvent(kd))};x.abort=function(a){this.a&&this.V&&(this.V=l,this.fa=i,this.a.abort(),this.fa=l,this.qa=a||7,this.dispatchEvent(s),this.dispatchEvent(jc),this.jb())};x.d=function(){this.a&&(this.V&&(this.V=l,this.fa=i,this.a.abort(),this.fa=l),this.jb(i));O.e.d.call(this)};x.Xc=function(){!this.Ob&&!this.fb&&!this.fa?this.xf():this.ce()};x.xf=function(){this.ce()};
x.ce=function(){if(this.V&&"undefined"!=typeof eg&&(!this.gb[1]||!(4==this.xb()&&2==this.Cd())))this.fb&&4==this.xb()?fi.setTimeout(C(this.Xc,this),0):(this.dispatchEvent(Re),this.Se()&&(this.V=l,this.Ta()?(this.dispatchEvent(s),this.dispatchEvent(tf)):(this.qa=6,this.cd()),this.jb()))};x.jb=function(a){if(this.a){var b=this.a,c=this.gb[0]?fg:k;this.gb=this.a=k;this.da&&(fi.clearTimeout(this.da),this.da=k);a||this.dispatchEvent(Qe);try{b.onreadystatechange=c}catch(d){}}};x.dg=function(){return!!this.a};
x.Se=function(){return 4==this.xb()};x.Ta=function(){var a=this.Cd(),b;a:switch(a){case 200:case 201:case 202:case 204:case 304:case 1223:b=i;break a;default:b=l}return b||0===a&&!this.fg()};x.fg=function(){var a=ji(m+this.$c)[1]||k;!a&&self.location&&(a=self.location.protocol,a=a.substr(0,a.length-1));return ni.test(a?a.toLowerCase():m)};x.xb=function(){return this.a?this.a.readyState:0};x.Cd=function(){try{return 2<this.xb()?this.a.status:-1}catch(a){return-1}};
x.jf=function(){try{return this.a?this.a.responseText:m}catch(a){return m}};x.re=function(a){if(this.a){var b=this.a.responseText;a&&0==b.indexOf(a)&&(b=b.substring(a.length));return ei(b)}};x.Ff=function(){try{if(!this.a)return k;if(Ue in this.a)return this.a.response;switch(this.Pb){case m:case vf:return this.a.responseText;case yc:if(ne in this.a)return this.a.mozResponseArrayBuffer}return k}catch(a){return k}};var ri=function(){};ri.prototype.G=function(){return Db};ri.prototype.u=function(){return k};var si=function(a){this.label=a};si.g(ri);si.prototype.m=function(){return this.label};var P=function(a,b){this.label=b;this.value=a.G();this.factory=a};P.g(ri);P.prototype.m=function(){return this.label};P.prototype.G=function(){return this.value};P.prototype.l=function(){return this.factory.l()+q};P.prototype.u=function(){return new ti(this)};var Q=function(){};Q.g(ri);Q.prototype.l=function(){return encodeURIComponent(this.G())};Q.prototype.u=function(){return k};var ui=function(a){P.call(this,a,a.m())};ui.g(P);var vi=function(){};vi.g(Q);vi.prototype.m=function(){return Of};vi.prototype.G=function(){return mb};vi.prototype.oa=function(){return new ui(this)};var wi=function(a,b){var c;a instanceof wi?(this.xa(b==k?a.I:b),this.Vb(a.W),this.Wb(a.Ja),this.Rb(a.ba),this.Tb(a.wa),this.setPath(a.getPath()),this.Ub(a.J.N()),this.Sb(a.ua)):a&&(c=ji(m+a))?(this.xa(!!b),this.Vb(c[1]||m,i),this.Wb(c[2]||m,i),this.Rb(c[3]||m,i),this.Tb(c[4]),this.setPath(c[5]||m,i),this.Ge(c[6]||m,i),this.Sb(c[7]||m,i)):(this.xa(!!b),this.J=new xi(k,this,this.I))};x=wi.prototype;x.W=m;x.Ja=m;x.ba=m;x.wa=k;x.ga=m;x.ua=m;x.Rg=l;x.I=l;
x.toString=function(){if(this.F)return this.F;var a=[];this.W&&a.push(yi(this.W,zi),cb);this.ba&&(a.push(Ma),this.Ja&&a.push(yi(this.Ja,zi),kb),a.push(B(this.ba)?encodeURIComponent(this.ba):k),this.wa!=k&&a.push(cb,m+this.wa));this.ga&&(this.Ke()&&this.ga.charAt(0)!=La&&a.push(La),a.push(yi(this.ga,this.ga.charAt(0)==La?Ai:Bi)));var b=m+this.J;b&&a.push(ib,b);this.ua&&a.push(ha,yi(this.ua,Ci));return this.F=a.join(m)};
x.N=function(){var a=this.W,b=this.Ja,c=this.ba,d=this.wa,f=this.ga,g=this.J.N(),j=this.ua,n=new wi(k,this.I);a&&n.Vb(a);b&&n.Wb(b);c&&n.Rb(c);d&&n.Tb(d);f&&n.setPath(f);g&&n.Ub(g);j&&n.Sb(j);return n};x.Vb=function(a,b){this.$();delete this.F;if(this.W=b?a?decodeURIComponent(a):m:a)this.W=this.W.replace(/:$/,m);return this};x.Wb=function(a,b){this.$();delete this.F;this.Ja=b?a?decodeURIComponent(a):m:a;return this};x.Rb=function(a,b){this.$();delete this.F;this.ba=b?a?decodeURIComponent(a):m:a;return this};
x.Ke=function(){return!!this.ba};x.Tb=function(a){this.$();delete this.F;a?(a=Number(a),(isNaN(a)||0>a)&&e(Error("Bad port number "+a)),this.wa=a):this.wa=k;return this};x.getPath=function(){return this.ga};x.setPath=function(a,b){this.$();delete this.F;this.ga=b?a?decodeURIComponent(a):m:a;return this};x.Ub=function(a,b){this.$();delete this.F;a instanceof xi?(this.J=a,this.J.lc=this,this.J.xa(this.I)):(b||(a=yi(a,Di)),this.J=new xi(a,this,this.I));return this};
x.Ge=function(a,b){return this.Ub(a,b)};x.Ic=function(a,b){this.$();delete this.F;this.J.set(a,b);return this};x.Sb=function(a,b){this.$();delete this.F;this.ua=b?a?decodeURIComponent(a):m:a;return this};x.$=function(){this.Rg&&e(Error("Tried to modify a read-only Uri"))};x.xa=function(a){this.I=a;this.J&&this.J.xa(a);return this};
var Ei=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/,yi=function(a,b){var c=k;B(a)&&(c=a,Ei.test(c)||(c=encodeURI(a)),0<=c.search(b)&&(c=c.replace(b,Fi)));return c},Fi=function(a){a=a.charCodeAt(0);return la+(a>>4&15).toString(16)+(a&15).toString(16)},zi=/[#\/\?@]/g,Bi=/[\#\?:]/g,Ai=/[\#\?]/g,Di=/[\#\?@]/g,Ci=/#/g,xi=function(a,b,c){this.Q=a||k;this.lc=b||k;this.I=!!c};x=xi.prototype;
x.L=function(){if(!this.c&&(this.c=new Fh,this.b=0,this.Q))for(var a=this.Q.split(p),b=0;b<a.length;b++){var c=a[b].indexOf(q),d=k,f=k;0<=c?(d=a[b].substring(0,c),f=a[b].substring(c+1)):d=a[b];d=decodeURIComponent(d.replace(/\+/g,o));d=this.ia(d);this.add(d,f?decodeURIComponent(f.replace(/\+/g,o)):m)}};x.c=k;x.b=k;x.o=function(){this.L();return this.b};
x.add=function(a,b){this.L();this.Qa();a=this.ia(a);if(this.O(a)){var c=this.c.get(a);A(c)?c.push(b):this.c.set(a,[c,b])}else this.c.set(a,b);this.b++;return this};x.remove=function(a){this.L();a=this.ia(a);if(this.c.O(a)){this.Qa();var b=this.c.get(a);A(b)?this.b-=b.length:this.b--;return this.c.remove(a)}return l};x.clear=function(){this.Qa();this.c&&this.c.clear();this.b=0};x.isEmpty=function(){this.L();return 0==this.b};x.O=function(a){this.L();a=this.ia(a);return this.c.O(a)};
x.aa=function(){this.L();for(var a=this.c.w(),b=this.c.aa(),c=[],d=0;d<b.length;d++){var f=a[d];if(A(f))for(var g=0;g<f.length;g++)c.push(b[d]);else c.push(b[d])}return c};x.w=function(a){this.L();if(a)if(a=this.ia(a),this.O(a)){var b=this.c.get(a);if(A(b))return b;a=[];a.push(b)}else a=[];else for(var b=this.c.w(),a=[],c=0;c<b.length;c++){var d=b[c];A(d)?Mg(a,d):a.push(d)}return a};
x.set=function(a,b){this.L();this.Qa();a=this.ia(a);if(this.O(a)){var c=this.c.get(a);A(c)?this.b-=c.length:this.b--}this.c.set(a,b);this.b++;return this};x.get=function(a,b){this.L();a=this.ia(a);if(this.O(a)){var c=this.c.get(a);return A(c)?c[0]:c}return b};
x.toString=function(){if(this.Q)return this.Q;if(!this.c)return m;for(var a=[],b=0,c=this.c.aa(),d=0;d<c.length;d++){var f=c[d],g=wg(f),f=this.c.get(f);if(A(f))for(var j=0;j<f.length;j++)0<b&&a.push(p),a.push(g),f[j]!==m&&a.push(q,wg(f[j])),b++;else 0<b&&a.push(p),a.push(g),f!==m&&a.push(q,wg(f)),b++}return this.Q=a.join(m)};x.Qa=function(){delete this.nc;delete this.Q;this.lc&&delete this.lc.F};x.N=function(){var a=new xi;this.nc&&(a.nc=this.nc);this.Q&&(a.Q=this.Q);this.c&&(a.c=this.c.N());return a};
x.ia=function(a){a=m+a;this.I&&(a=a.toLowerCase());return a};x.xa=function(a){a&&!this.I&&(this.L(),this.Qa(),Eh(this.c,function(a,c){var d=c.toLowerCase();c!=d&&(this.remove(c),this.add(d,a))},this));this.I=a};var S=function(a){var a=J(a),b=a.nodeName.toLowerCase();a.style.display=b==jf||b==Xd||b==hc||b==ae||b==cf?Yd:Bc},T=function(a){J(a).style.display=v};var Gi=function(a,b,c){var d,f;c&&T(je);switch(a){case 0:d=f=Kc;break;case 1:d=f=Rd;break;case 2:case 3:case 4:d=ge;f=he;break;case 5:d=f=pe;break;case 6:d=f=ze;break;case 7:d=f=Ad;break;default:e(Error("internal error in show message"))}c?(J(d).innerHTML=b,S(f)):(J(d).innerHTML=m,T(f))},U=function(a,b){Gi(a,b,i)},Hi=function(a){Gi(a,k,l)},Ii=function(a){Hi(3);J(ie).innerHTML=a;S(je)};var Ji,Ki,Mi=function(a,b){Ji=window.open(a,m,ke);Li(b)},Li=function(a){Ji.closed?(Ji=k,window.clearTimeout(Ki),a()):(a=C(Li,{},a),Ki=window.setTimeout(a,1E3))};var Ni=function(){};Ni.prototype.Tf=function(){T(Td);J(Rc).disabled=i;J(Me).disabled=i};Ni.prototype.Og=function(){S(Td);J(Rc).disabled=l;J(Me).disabled=l};var ti=function(a){this.h=a};ti.g(Ni);x=ti.prototype;x.S=function(){return l};x.K=function(){this.S()||e(Error("Trying to show a non-editable identity"));this.Tf();S(Sd)};x.Wd=function(a){Mi(a,function(){window.gadgets&&window.gadgets.rpc&&gadgets.rpc.call(k,Se)})};x.wb=function(){return i};x.nb=function(){this.S()||e(Error("Trying to show edit button for a non-editable identity"));S(fd)};x.Ca=function(){};x.Ma=function(){};x.P=function(){T(Sd);T(fd);T(ff);T(Sc);T(sf);this.Og()};var Oi=function(){};Oi.prototype.send=function(a,b,c,d,f,g){qi(a,b,c,d,f,g)};var Pi=new Oi;var Si=function(a){for(var b=[],c=Qi,d=a.elements,f,g=0;f=d[g];g++)if(!(f.disabled||f.tagName.toLowerCase()==td)){var j=f.name;switch(f.type.toLowerCase()){case ud:case qf:case Te:case Hc:break;case df:f=Ri(f);if(f!=k)for(var n,r=0;n=f[r];r++)c(b,j,n);break;default:n=Ri(f),n!=k&&c(b,j,n)}}d=a.getElementsByTagName(ae);for(g=0;f=d[g];g++)f.form==a&&f.type.toLowerCase()==Vd&&(j=f.name,c(b,j,f.value),c(b,j+Ja,Pa),c(b,j+Ka,Pa));return b.join(p)},Qi=function(a,b,c){a.push(encodeURIComponent(b)+q+encodeURIComponent(c))},
Ri=function(a){var b=a.type;if(b===h)return k;switch(b.toLowerCase()){case Nc:case Pe:return a.checked?a.value:k;case ef:return b=a.selectedIndex,0<=b?a.options[b].value:k;case df:for(var b=[],c,d=0;c=a.options[d];d++)c.selected&&b.push(c.value);return b.length?b:k;default:return a.value!==h?a.value:k}};var Ti=l,Ui=l,Vi=l,Wi=function(a,b){Ui=a;Vi=b;a||b?(J(rf).innerHTML=b?Wf:Xf,S(sf),J(oc).value=b?Mb:Jb):T(sf)};var Yi=function(a,b,c){P.call(this,new Xi,a);this.Nd=b;this.Hb=c};Yi.g(P);Yi.prototype.l=function(){return this.factory.l()+q+this.label+q+this.Nd};Yi.prototype.m=function(){return this.label};Yi.prototype.u=function(){return new Zi(this)};var Xi=function(){};Xi.g(Q);Xi.prototype.m=function(){return m};Xi.prototype.G=function(){return rb};Xi.prototype.oa=function(a){return new Yi(a[1],a[2])};Xi.prototype.u=function(){e(Error(be))};var Zi=function(a){this.h=a};Zi.g(ti);Zi.prototype.S=function(){return i};
Zi.prototype.nb=function(){S(ff);S(hf);S(Sc)};Zi.prototype.K=function(){this.Wd(this.h.Hb)};Zi.prototype.Ca=function(){J(sd).value=this.h.Nd};var aj=function(a,b,c,d){P.call(this,new $i,a);this.uf=b;this.qe=c;this.Hb=d};aj.g(P);aj.prototype.l=function(){return this.factory.l()+q+this.label+q+this.uf};aj.prototype.m=function(){return this.qe?this.label+aa+this.qe+za:this.label+ba};aj.prototype.u=function(){return new bj(this)};var $i=function(){};$i.g(Q);$i.prototype.m=function(){return m};$i.prototype.G=function(){return pb};$i.prototype.oa=function(a){return new aj(a[1],a[2])};$i.prototype.u=function(){e(Error(be))};
var bj=function(a){this.h=a};bj.g(ti);bj.prototype.S=function(){return i};bj.prototype.nb=function(){(Ui||Vi)&&S(sf);this.h.Hb&&(S(ff),S(hf),S(Sc))};bj.prototype.K=function(){this.Wd(this.h.Hb)};var cj=function(a){P.call(this,a,a.m())};cj.g(P);var dj=function(){};dj.g(Q);dj.prototype.m=function(){return Nf};dj.prototype.G=function(){return tb};dj.prototype.oa=function(){return this.ie()};dj.prototype.ie=function(){return new cj(this)};var ej=function(a,b,c){P.call(this,a,k);this.name=b;this.url=c};ej.g(P);ej.prototype.m=function(){return this.name+aa+this.url+za};ej.prototype.l=function(){return this.factory.l()+q+encodeURIComponent(this.name)+q+encodeURIComponent(this.url)};ej.prototype.u=function(){return new fj(this)};var gj=function(){};gj.g(Q);gj.prototype.m=function(){return Vf};gj.prototype.G=function(){return Cb};gj.prototype.u=function(){return new fj(new ej(this,m,m))};
gj.prototype.oa=function(a){return new ej(this,a[1],a[2])};var fj=function(a){this.h=a};fj.g(ti);x=fj.prototype;x.S=function(){return i};x.K=function(){fj.e.K.call(this);S(qe)};x.P=function(){fj.e.P.call(this);T(qe);Hi(5);this.yd(m);this.zd(m)};x.Ca=function(){this.yd(this.h.name);this.zd(this.h.url)};x.Ma=function(){fj.e.Ma.call(this);this.h.name=this.xd();this.h.url=this.Pe();this.nb()};x.wb=function(){return this.xd()==m?(U(5,Zf),l):i};x.xd=function(){return J(sc).value};
x.yd=function(a){J(sc).value=a};x.Pe=function(){return J(tc).value};x.zd=function(a){J(tc).value=a};var hj=function(){this.ea=[];this.Pa=[];this.Va=[];this.kb=[];this.j=this.s=k;this.A=[]};x=hj.prototype;x.Ib=function(a,b,c,d){for(var f=0;f<this.A.length;f++)if(a==this.A[f])return d(a);d=a.l();for(f=0;f<this.A.length;f++)if(this.A[f].l()==d)return c(this.A[f]);return b(a)};x.cg=function(a){return this.Ib(a,C(function(a){return this.A[this.A.length]=a},this),gg,gg)};x.ib=function(a){function b(){return l}return this.Ib(a,function(){return i},b,b)};
x.$a=function(a){function b(){e(Error("item should have been unique"))}this.Ib(a,fg,b,b);return this.cg(a)};x.sc=function(a){return this.Ib(a,C(function(a){this.A[this.A.length]=a;return this.ea[this.ea.length]=a},this),gg,gg)};x.se=function(a){this.s=this.sc(a);this.Na();this.Ra();this.vb(l);return this.s};x.na=function(a){this.$a(a);this.Pa[this.Pa.length]=a};x.Ig=function(){this.na(this.$a(new dj).ie())};x.Hg=function(){var a=new gj;this.$a(a);this.Va[this.Va.length]=a};
x.Gg=function(){var a=this.$a(new vi);this.Va[this.Va.length]=this.$a(new ui(a))};x.Ra=function(){var a=this.kb[J(Td).selectedIndex];a.constructor==si?this.Na():(Hi(1),this.j=a.u(),this.j!=k&&this.j.Ca())};x.vb=function(a){if(this.j!=k){var b=this.j.h;if(a&&this.j.S()&&this.ib(b)||!this.j.wb())this.j.K();else return this.j.Ma(),this.j.P(),this.j.S()&&this.j.nb(),this.j=k,b}return k};
x.yf=function(){this.Te(J(hd).value);this.s=this.Id(J(id).value);this.s==k&&0<this.ea.length&&(this.s=this.ea[0]);this.s==k&&1==this.Pa.length&&(this.s=this.Pa[0]);this.Na();this.s!=k&&(this.Ra(),this.vb(l))};x.zc=function(a,b){this.kb[this.kb.length]=b;var c=document.createElement(He);c.text=b.m();c.value=b.G();try{a.add(c,k)}catch(d){a.add(c)}this.s==b&&(c.selected=i);return c};x.Ac=function(a,b){0<b.length&&(this.zc(a,new si(o)).disabled=$c);for(var c=0;c<b.length;c++)this.zc(a,b[c])};
x.Na=function(){for(var a=J(Td);0!=a.options.length;)a.remove(0);this.kb=[];this.zc(a,new si(Qf)).disabled=$c;this.Ac(a,this.ea);this.Ac(a,this.Pa);this.Ac(a,this.Va)};x.Me=function(){for(var a=[],b=0;b<this.ea.length;b++)a[a.length]=this.ea[b].l();return a.join(p)};x.Te=function(a){if(a!=m)for(var a=a.split(p),b=0;b<a.length;b++)this.Id(a[b])};x.Id=function(a){if(a==m)return k;for(var a=a.split(q),b=0;b<a.length;b++)a[b]=decodeURIComponent(a[b]);b=this.Hf(a[0]);return b!=k?this.sc(b.oa(a)):k};
x.Hf=function(a){for(var b=0;b<this.A.length;b++)if(this.A[b].l()==a)return this.A[b];return k};x.oe=function(){var a=J(Rc).value;if(a==m)return U(2,ag),l;if(1E6<a.length)return U(2,cg),l;Hi(2);return i};x.Ud=function(){this.j!=k&&this.j.P();this.Ra();var a=this.vb(i);a!=k&&(this.s=a)};x.Vg=function(){var a=this.vb(l);a!=k&&this.se(a)};x.Ug=function(){this.j!=k&&(this.j.P(),this.j=k);this.Na();this.Ud()};
x.ne=function(){if(this.s==k||this.s.G()==Db)return U(1,Pf),l;if(this.j!=k)return l;J(hd).value=this.Me();J(id).value=this.s.l();return i};x.Wg=function(){this.s&&(this.Ra(),this.j.K())};x.Xg=function(){this.oe()&&this.ne()&&this.me(l)};x.Yg=function(){this.oe()&&this.ne()&&this.me(i)};x.me=function(a){a?J(gf).value=zf:J(gf).value=rd;this.Ra();a=J(Tc);a.onsubmit();a.submit()};var ij=function(a,b){H?a.cssText=b:a[dh?$d:Zd]=b};var jj=function(a){return/^[A-Za-z0-9]+$/.test(a)||/^#[0-9A-Fa-f]{3}$/.test(a)||/^#[0-9A-Fa-f]{6}$/.test(a)||/^rgb *\( *\d{1,3}%? *, *\d{1,3}%? *, *\d{1,3}%? *\)$/.test(a)||/^rgba *\( *\d{1,3}%? *, *\d{1,3}%? *, *\d{1,3}%? *, *\d{1,3}%? *\)$/.test(a)},kj=function(a){return a.replace(/(\r\n|\r|\n)+/g,o).replace(/\xa0|[ \t]+/g,o)};var lj=function(a,b,c,d){this.Zf=a;this.ve=b;this.name=c;this.Le=d};lj.g(Q);x=lj.prototype;x.m=function(){return this.name};x.l=function(){return encodeURIComponent(this.Zf)};x.rf=function(a){return this.ve.replace(/{username}/,encodeURIComponent(a))};x.vf=function(){return this.ve.split(Mf)};x.u=function(){return new mj(new nj(this,m,m))};x.oa=function(a){return new nj(this,a[1],a[2])};var nj=function(a,b,c){P.call(this,a,b);this.Xa=c;this.uri=b;this.value=Eb};nj.g(P);
nj.prototype.m=function(){return this.Xa+aa+this.factory.m()+za};nj.prototype.l=function(){return this.factory.l()+q+encodeURIComponent(this.uri)+q+encodeURIComponent(this.Xa)};nj.prototype.u=function(){return new mj(this)};var mj=function(a){this.h=a};mj.g(ti);x=mj.prototype;x.S=function(){return i};x.K=function(){mj.e.K.call(this);S(Ae);J(Ge).innerHTML=this.h.factory.Le;for(var a=J(Fe),b=function(){this.Ad()}.bind(this),c=[Mc,de,ce,ee,Ec,wd],d=0;d<c.length;d++)N(a,c[d],b)};
x.P=function(){mj.e.P.call(this);ai(J(Fe));T(Ae);Hi(6);J(Ee).value=m};x.Ca=function(){this.sf(this.h.Xa);J(Ee).value=this.h.factory.rf(this.h.Xa)};x.Ma=function(){this.h.Xa=this.wc();this.Ca()};x.wb=function(){return this.wc()==m?(U(6,$f),l):i};x.Ad=function(){var a=this.h.factory.vf(),b=this.wc(),b=b==m?dg:encodeURIComponent(b);J(Be).innerHTML=a[0];J(De).innerHTML=b;J(Ce).innerHTML=a[1]};x.wc=function(){return J(Fe).value};x.sf=function(a){J(Fe).value=a;this.Ad()};var oj=function(){};oj.g(Q);
oj.prototype.m=function(){return Fb};oj.prototype.G=function(){return Eb};oj.prototype.oa=function(a){return new pj(this,a[1])};oj.prototype.u=function(){return new qj(new pj(this,m))};var pj=function(a,b){P.call(this,a,b);this.uri=b;this.value=Eb};pj.g(P);pj.prototype.m=function(){return this.uri};pj.prototype.l=function(){return this.factory.l()+q+encodeURIComponent(this.uri)};pj.prototype.u=function(){return new qj(this)};var qj=function(a){this.h=a};qj.g(ti);x=qj.prototype;x.S=function(){return i};
x.K=function(){qj.e.K.call(this);S(Bd)};x.P=function(){qj.e.P.call(this);T(Bd);Hi(7);this.Fd(m)};x.Ca=function(){this.Fd(this.h.uri)};x.Ma=function(){this.h.uri=this.Yd()};x.wb=function(){return this.Yd()==m?(U(7,Yf),l):i};x.Yd=function(){return J(Ee).value};x.Fd=function(a){J(Ee).value=a};var rj=function(){th(J(pc),Ne);return i};var sj={},tj=k,uj=function(a){a=ng(a);delete sj[a];Sg(sj)&&tj&&(fi.clearTimeout(tj),tj=k)},wj=function(){tj||(tj=gi(function(){tj=k;vj(rg())},20))},vj=function(a){Pg(sj,function(b){b.Tg(a)});Sg(sj)||wj()};var xj=function(){this.Ga=0;this.rd=this.startTime=k};D(xj,di);x=xj.prototype;x.ef=function(){this.Ga=1};x.Sd=function(){this.Ga=0};x.vd=function(){return 1==this.Ga};x.Pd=function(){return-1==this.Ga};x.dd=function(){return 0==this.Ga};x.bf=function(){this.U(zc)};x.Rd=function(){this.U(jd)};x.of=function(){this.U(vd)};x.cf=function(){this.U(Le)};x.df=function(){this.U(We)};x.wf=function(){this.U(nf)};x.U=function(a){this.dispatchEvent(a)};var yj=function(a,b,c,d){xj.call(this);(!A(a)||!A(b))&&e(Error("Start and end parameters must be arrays"));a.length!=b.length&&e(Error("Start and end points must be the same length"));this.Za=a;this.Kf=b;this.duration=c;this.ke=d;this.coords=[]};D(yj,xj);x=yj.prototype;x.B=0;
x.play=function(a){if(a||this.dd())this.B=0,this.coords=this.Za;else if(this.vd())return l;uj(this);this.startTime=a=rg();this.Pd()&&(this.startTime-=this.duration*this.B);this.rd=this.startTime+this.duration;this.B||this.bf();this.cf();this.Pd()&&this.df();this.ef();var b=ng(this);b in sj||(sj[b]=this);wj();this.Od(a);return i};x.stop=function(a){uj(this);this.Sd();a&&(this.B=1);this.Td(this.B);this.wf();this.Rd()};x.d=function(){this.dd()||this.stop(l);this.Ue();yj.e.d.call(this)};x.Tg=function(a){this.Od(a)};
x.Od=function(a){this.B=(a-this.startTime)/(this.rd-this.startTime);1<=this.B&&(this.B=1);this.Td(this.B);1==this.B?(this.Sd(),uj(this),this.of(),this.Rd()):this.vd()&&this.nf()};x.Td=function(a){jg(this.ke)&&(a=this.ke(a));this.coords=Array(this.Za.length);for(var b=0;b<this.Za.length;b++)this.coords[b]=(this.Kf[b]-this.Za[b])*a+this.Za[b]};x.nf=function(){this.U(rc)};x.Ue=function(){this.U(Zc)};x.U=function(a){this.dispatchEvent(new zj(a,this))};
var zj=function(a,b){K.call(this,a);this.coords=b.coords;this.x=b.coords[0];this.y=b.coords[1];this.duration=b.duration;this.B=b.B;this.state=b.Ga};D(zj,K);var Aj=function(a){this.Ld=a;this.i=[]};D(Aj,Jh);var Bj=[];x=Aj.prototype;x.Hc=function(a,b,c,d,f){A(b)||(Bj[0]=b,b=Bj);for(var g=0;g<b.length;g++)this.i.push(N(a,b[g],c||this,d||l,f||this.Ld||this));return this};x.Gd=function(a,b,c,d,f){if(A(b))for(var g=0;g<b.length;g++)this.Gd(a,b[g],c,d,f);else{a:{c=c||this;f=f||this.Ld||this;d=!!d;if(a=Yh(a,b,d))for(b=0;b<a.length;b++)if(!a[b].ha&&a[b].za==c&&a[b].capture==d&&a[b].pb==f){a=a[b];break a}a=k}a&&(a=a.key,Zh(a),Jg(this.i,a))}return this};
x.Md=function(){Fg(this.i,Zh);this.i.length=0};x.d=function(){Aj.e.d.call(this);this.Md()};x.handleEvent=function(){e(Error("EventHandler.handleEvent not implemented"))};var Cj=function(a,b,c,d,f){function g(a){a&&(a.tabIndex=0,a.setAttribute(Xe,uf),a.ah=uf,sh(a,Fd),j.Oe(a),j.Ne(a))}this.oc=f||ph||(ph=new Ah);this.Da=this.oc.pc(a)||k;this.fc=this.oc.pc(d||k);this.R=(this.gc=jg(b)?b:k)||!b?k:this.oc.pc(b);this.ja=c==i;this.ad=new Aj(this);this.bd=new Aj(this);var j=this;g(this.Da);g(this.fc);this.Db(this.ja)};D(Cj,di);x=Cj.prototype;x.d=function(){Cj.e.d.call(this);Lh(this.ad);Lh(this.bd)};x.collapse=function(){this.Db(l)};x.toggle=function(){this.Db(!this.ja)};
x.Db=function(a){this.R?this.R.style.display=a?m:v:a&&this.gc&&(this.R=this.gc());this.R&&sh(this.R,Dd);this.fc?(this.Da.style.display=!a?m:v,this.fc.style.display=a?m:v):this.jc(a);this.Dd(a);this.dispatchEvent(new Dj(yf,this,this.ja))};x.Dd=function(a){this.ja=a};x.jc=function(a){if(this.Da){var b=this.Da;a?sh(b,Ed):th(b,Ed);b=this.Da;!a?sh(b,Cd):th(b,Cd);this.Da.setAttribute(wc,a)}};x.Ne=function(a){a&&this.ad.Hc(a,ce,this.Wf)};x.Oe=function(a){a&&this.bd.Hc(a,Qc,this.Vf)};
x.Wf=function(a){if(13==a.keyCode||32==a.keyCode)this.toggle(),this.ye(),a.preventDefault(),a.stopPropagation()};x.Vf=function(){this.toggle();this.ye()};x.ye=function(){this.dispatchEvent(new K(lc,this))};var Dj=function(a,b){K.call(this,a,b)};D(Dj,K);var Ej=function(a,b,c){var d=xh(t,{style:Ie}),b=J(b);b.parentNode.replaceChild(d,b);d.appendChild(b);this.Fb=d;this.M=k;Cj.call(this,a,b,c);a=this.ja;this.Fb.style.display=a?m:v;this.jc(a)};D(Ej,Cj);x=Ej.prototype;x.Xe=500;x.We=function(a){return 1-Math.pow(1-a,3)};
x.Db=function(a){if(this.ja!=a||this.M){this.Fb.style.display==v&&(this.Fb.style.display=m);var b=this.R.offsetHeight,c=0;this.M?(a=this.ja,ai(this.M),this.M.stop(l),c=b-Math.abs(parseInt(this.R.style.marginTop,10))):c=a?0:b;this.jc(a);this.M=new yj([0,c],[0,a?b:0],this.Xe,this.We);N(this.M,[zc,rc,jd],this.Ye,l,this);N(this.M,jd,C(this.Ze,this,a));this.M.play(l)}};x.Ye=function(a){var b=this.R;b.style.marginTop=a.y-b.offsetHeight+Oe};
x.Ze=function(a){a&&(this.R.style.marginTop=Pa);ai(this.M);this.Dd(a);this.M=k;a||(this.Fb.style.display=v);this.dispatchEvent(new Dj(yf,this,a))};var Fj=k;var V=new hj;z("BLOG_CMT_OpenIdIdentityFactory",lj,h);z("BLOG_CMT_LoggedInGaiaIdentity",aj,h);z("BLOG_CMT_FriendConnectIdentity",Yi,h);z("BLOG_CMT_NotLoggedInGaiaIdentityFactory",dj,h);z("BLOG_CMT_GenericOpenIdIdentityFactory",oj,h);z("BLOG_CMT_NameUrlIdentityFactory",gj,h);z("BLOG_CMT_AnonymousIdentityFactory",vi,h);z("BLOG_CMT_onPost",function(){rj();return V.Xg()},h);z("BLOG_CMT_onPreview",function(){return V.Yg()},h);z("BLOG_CMT_onCommentBodyChange",function(){},h);
z("BLOG_CMT_onCancel",function(){return V.Ug()},h);z("BLOG_CMT_onSelectorChange",function(){return V.Ud()},h);z("BLOG_CMT_onContinue",function(){return V.Vg()},h);z("BLOG_CMT_onEdit",function(){return V.Wg()},h);z("BLOG_CMT_addIdentity",function(a){return V.sc(a)},h);z("BLOG_CMT_addAndSelectIdentity",function(a){return V.se(a)},h);z("BLOG_CMT_addIdentityFactory",function(a){return V.na(a)},h);z("BLOG_CMT_addNameUrlIdentityFactory",function(){return V.Hg()},h);
z("BLOG_CMT_addAnonIdentity",function(){return V.Gg()},h);z("BLOG_CMT_addNotLoggedInGaiaIdentity",function(){return V.Ig()},h);
z("BLOG_CMT_init",function(a,b){var c=m;H&&(c+=Ia);var d=(new wi(document.location.href)).ua;if(0!=d.length){var f=ei(decodeURIComponent(d));if(f&&f.color){var d=kj(f.color),g=kj(f.unvisitedLinkColor),f=kj(f.fontFamily),j;if(j=jj(d))if(j=jj(g))a:{j=f.split(Ba);for(var n=0;n<j.length;n++){var r=j[n],r=ug(r);if(!/^[- A-Za-z0-9]*$/.test(r)&&!/^"[- A-Za-z0-9]*"$/.test(r)&&!/^'[- A-Za-z0-9]*'$/.test(r)){j=l;break a}}j=i}j&&(c=c+(Gc+d+eb+f+fb)+(ic+g+fb))}}d=ph||(ph=new Ah);f=k;H?(f=d.Fa.createStyleSheet(),
ij(f,c)):(g=d.be(Gd)[0],g||(f=d.be(Fc)[0],g=d.ae(Gd),f.parentNode.insertBefore(g,f)),f=d.ae(pf),ij(f,c),d.appendChild(g,f));V.yf();Wi(a,b);J(gf).value==zf&&(J(gf).value=rd,sh(J(pc),Ne));return i},h);z("BLOG_CMT_addOpenIdIdentityFactories",function(){V.na(new lj(vb,Od,wb,Sf));V.na(new lj(Nb,Pd,Ob,Uf));V.na(new lj(Kb,Nd,Lb,Tf));V.na(new lj(lb,Md,lb,Rf));V.na(new oj)},h);z("BLOG_CMT_createPhotoZippy",function(a,b){J(a)&&J(b)&&(Fj=new Ej(a,b))},h);
z("BLOG_CMT_closePhotoZippy",function(){Fj!=k&&Fj.collapse()},h);z("BLOG_CMT_finalizeBG",function(){window.je&&window.je.invoke(function(a){document.getElementById(Ac).value=a})},h);
z("BLOG_CMT_getBG",function(){var a=new wi(Na),b=document.getElementById(Ac).value;b&&a.Ic(Ac,b);b=k;window.navigator.appName==Ab&&(document.documentMode?b=document.documentMode:(b=5,document.compatMode&&document.compatMode==ob&&(b=7)));b&&a.Ic(Ud,b);document.getElementById(Ke)&&a.Ic(Je,Ra);qi(a,function(){this.Ta()&&(window.je=new botguard.bg(this.Ff()))})},h);
z("BLOG_CMT_subscription.toggle",function(){if(!Ti){Ti=i;var a=J(Uc);Pi.send(a.action,function(){Ti=l;if(this.Ta()){var a=this.re();a.errorMessage!=k?U(3,a.errorMessage):Ii(a.statusMessage);Wi(a.can_subscribe,a.is_subscribed)}else U(3,bg)},Gb,Si(a))}},h);z("BLOG_CMT_showStatusMessage",Ii,h);z("BLOG_CMT_showPostErrorMessage",function(a){U(4,a)},h);z("BLOG_CMT_hidePreview",function(){rj();V.Na()},h);z("BLOG_xhr",O,h);O.send=qi;O.prototype.isSuccess=O.prototype.Ta;O.prototype.getResponseJson=O.prototype.re;
z("$",J,h);var Gj=function(){this.Bf={};this.Zd={};this.Dc={};this.Xd=k;this.$d=[]};(function(a){a.ag=function(){return a.ig||(a.ig=new a)}})(Gj);Gj.prototype.ee=function(a,b){return a+Ub+b+Ha};var Hj=function(a){eval(a)};Gj.prototype.Sa=function(a,b){z(Xb,Hj,h);this.Xd=a.replace(Ha,m);b&&(this.ee=b);Fg(this.$d,function(a){this.Sf(a)},this);Hg(this.$d)};
Gj.prototype.jg=function(a,b,c){var d=this.Zd,f=this.Bf;d[a]||(d[a]={});if(c)d[a][b]=c;else if(f[a]){for(b=0;b<f[a].length;++b)(0,f[a][b][1])(d[a][f[a][b][0]]);delete f[a];delete this.Dc[a]}};Gj.prototype.Sf=function(a){gi(function(){if(!this.Zd[a]){var b=this.ee(this.Xd,a),c;a:{c=this.Dc;for(var d in c)if(c[d]==b){c=i;break a}c=l}this.Dc[a]=b;c||(b=xh(Ze,{type:wf,src:b}),document.body.appendChild(b))}},0,this)};var Ij=function(){this.ma=[]};x=Ij.prototype;x.T=0;x.la=0;x.ob=function(a){this.ma[this.la++]=a};x.va=function(){if(this.T!=this.la){var a=this.ma[this.T];delete this.ma[this.T];this.T++;return a}};x.o=function(){return this.la-this.T};x.isEmpty=function(){return 0==this.la-this.T};x.clear=function(){this.la=this.T=this.ma.length=0};x.remove=function(a){a=Eg(this.ma,a);if(0>a)return l;a==this.T?this.va():(Ig(this.ma,a),this.la--);return i};x.w=function(){return this.ma.slice(this.T,this.la)};var Jj=function(a,b){this.jd=a||0;this.ub=b||10;this.jd>this.ub&&e(Error("[goog.structs.Pool] Min can not be greater than max"));this.X=new Ij;this.ca=new Hh;this.Zb=0;this.uc=k;this.qb()};D(Jj,Jh);x=Jj.prototype;x.rb=function(){var a=rg();if(!(this.uc!=k&&a-this.uc<this.Zb)){var b=this.Cf();b&&(this.uc=a,this.ca.add(b));return b}};x.$b=function(a){return this.ca.remove(a)?(this.yc(a),i):l};
x.Cf=function(){for(var a;0<this.qd()&&!(a=this.X.va(),this.dc(a));)this.qb();!a&&this.o()<this.ub&&(a=this.ec());return a};x.yc=function(a){this.ca.remove(a);this.dc(a)&&this.o()<this.ub?this.X.ob(a):this.mb(a)};x.qb=function(){for(var a=this.X;this.o()<this.jd;)a.ob(this.ec());for(;this.o()>this.ub&&0<this.qd();)this.mb(a.va())};x.ec=function(){return{}};x.mb=function(a){if(typeof a.D==u)a.D();else for(var b in a)a[b]=k};x.dc=function(a){return typeof a.Jg==u?a.Jg():i};
x.o=function(){return this.X.o()+this.ca.o()};x.Ie=function(){return this.ca.o()};x.qd=function(){return this.X.o()};x.isEmpty=function(){return this.X.isEmpty()&&this.ca.isEmpty()};x.d=function(){Jj.e.d.call(this);0<this.Ie()&&e(Error("[goog.structs.Pool] Objects not released"));delete this.ca;for(var a=this.X;!a.isEmpty();)this.mb(a.va());delete this.X};var Kj=function(a,b){this.ue=a;this.Fc=b};Kj.prototype.getKey=function(){return this.ue};Kj.prototype.N=function(){return new Kj(this.ue,this.Fc)};var Lj=function(a){this.H=[];a&&this.Qf(a)};x=Lj.prototype;x.Jd=function(a,b){var c=this.H;c.push(new Kj(a,b));this.Rf(c.length-1)};x.Qf=function(a){var b,c;if(a instanceof Lj){if(b=a.aa(),c=a.w(),0>=a.o()){for(var a=this.H,d=0;d<b.length;d++)a.push(new Kj(b[d],c[d]));return}}else b=Rg(a),c=Qg(a);for(d=0;d<b.length;d++)this.Jd(b[d],c[d])};x.remove=function(){var a=this.H,b=a.length,c=a[0];if(!(0>=b))return 1==b?Hg(a):(a[0]=a.pop(),this.Df(0)),c.Fc};
x.Df=function(a){for(var b=this.H,c=b.length,d=b[a];a<c>>1;){var f=this.Ef(a),g=this.Gf(a),f=g<c&&b[g].getKey()<b[f].getKey()?g:f;if(b[f].getKey()>d.getKey())break;b[a]=b[f];a=f}b[a]=d};x.Rf=function(a){for(var b=this.H,c=b[a];0<a;){var d=this.Lf(a);if(b[d].getKey()>c.getKey())b[a]=b[d],a=d;else break}b[a]=c};x.Ef=function(a){return 2*a+1};x.Gf=function(a){return 2*a+2};x.Lf=function(a){return a-1>>1};x.w=function(){for(var a=this.H,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].Fc);return b};
x.aa=function(){for(var a=this.H,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};x.O=function(a){return Gg(this.H,function(b){return b.getKey()==a})};x.N=function(){return new Lj(this)};x.o=function(){return this.H.length};x.isEmpty=function(){return 0==this.H.length};x.clear=function(){Hg(this.H)};var Mj=function(){Lj.call(this)};D(Mj,Lj);Mj.prototype.ob=function(a,b){this.Jd(a,b)};Mj.prototype.va=function(){return this.remove()};var Nj=function(a,b){this.tb=new Mj;Jj.call(this,a,b)};D(Nj,Jj);x=Nj.prototype;x.rb=function(a,b){if(!a){var c=Nj.e.rb.call(this);c&&this.Zb&&(this.Je=y.setTimeout(C(this.Eb,this),this.Zb));return c}this.tb.ob(b||100,a);this.Eb()};x.Eb=function(){for(var a=this.tb;0<a.o();){var b=this.rb();if(b)a.va().apply(this,[b]);else break}};x.yc=function(a){Nj.e.yc.call(this,a);this.Eb()};x.qb=function(){Nj.e.qb.call(this);this.Eb()};
x.d=function(){Nj.e.d.call(this);y.clearTimeout(this.Je);this.tb.clear();this.tb=k};var Oj=function(a,b,c){Nj.call(this,b,c);this.bc=a};D(Oj,Nj);Oj.prototype.ec=function(){var a=new O,b=this.bc;b&&Eh(b,function(b,d){a.headers.set(d,b)});return a};Oj.prototype.mb=function(a){a.D()};Oj.prototype.dc=function(a){return!a.Cc&&!a.dg()};var Pj=function(a,b,c,d,f){this.ac=a!==h?a:1;this.sa=f!==h?Math.max(0,f):0;this.ta=new Oj(b,c,d);this.C=new Fh;this.sb=new Aj(this)};D(Pj,di);var Qj=[Qe,s,tf,kd,jc,xf];x=Pj.prototype;x.qc=function(a){this.sa=Math.max(0,a)};x.send=function(a,b,c,d,f,g,j,n){this.C.get(a)&&e(Error("[goog.net.XhrManager] ID in use"));b=new Rj(b,C(this.qf,this,a),c,d,f,j,n!==h?n:this.ac);this.C.set(a,b);this.ta.rb(C(this.pf,this,a),g);return b};
x.abort=function(a,b){var c=this.C.get(a);if(c){var d=c.Ka;c.lf(i);b&&(this.wd(d,c.hb),Wh(d,Qe,function(){this.ta.$b(d)},l,this),this.C.remove(a));d&&d.abort()}};x.pf=function(a,b){var c=this.C.get(a);c&&!c.Ka?(this.Re(b,c.hb),b.qc(this.sa),c.Ka=c.bh=b,this.dispatchEvent(new Sj(Qe,this,a,b)),this.ud(a,b),c.gd&&b.abort()):this.ta.$b(b)};
x.qf=function(a,b){var c=b.target;switch(b.type){case Qe:this.ud(a,c);break;case s:return this.Nf(a,c,b);case tf:this.Pf(a,c);break;case xf:case kd:this.Of(a,c);break;case jc:this.Mf(a,c)}return k};x.ud=function(a,b){var c=this.C.get(a);c&&!c.ld&&!c.kc()?(c.Ve(),b.send(c.getUrl(),c.He,c.getContent(),c.bc)):(c&&(this.wd(b,c.hb),this.C.remove(a)),this.ta.$b(b))};
x.Nf=function(a,b,c){var d=this.C.get(a);if(7==b.qa||b.Ta()||d.kc())if(this.dispatchEvent(new Sj(s,this,a,b)),d&&(d.mf(i),d.Xb))return d.Xb.call(b,c);return k};x.Mf=function(a,b){this.dispatchEvent(new Sj(jc,this,a,b))};x.Pf=function(a,b){this.dispatchEvent(new Sj(tf,this,a,b))};x.Of=function(a,b){this.C.get(a).kc()&&this.dispatchEvent(new Sj(kd,this,a,b))};x.wd=function(a,b,c){this.sb.Gd(a,c||Qj,b)};x.Re=function(a,b,c){this.sb.Hc(a,c||Qj,b)};
x.d=function(){Pj.e.d.call(this);this.ta.D();this.ta=k;this.sb.D();this.sb=k;var a=this.C;Eh(a,function(a){a.D()});a.clear();this.C=k};var Sj=function(a,b,c,d){K.call(this,a,b);this.id=c;this.Ka=d};D(Sj,K);Sj.prototype.d=function(){Sj.e.d.call(this);delete this.id;this.Ka=k};var Rj=function(a,b,c,d,f,g,j){this.kf=a;this.He=c||sb;this.hf=d;this.bc=f||k;this.ac=j!==h?j:1;this.Qd=0;this.gd=this.ld=l;this.hb=b;this.Xb=g;this.Ka=k};D(Rj,Jh);x=Rj.prototype;x.getUrl=function(){return this.kf};
x.getContent=function(){return this.hf};x.Ve=function(){this.Qd++};x.kc=function(){return this.Qd>this.ac};x.mf=function(a){this.ld=a};x.lf=function(a){this.gd=a};x.d=function(){Rj.e.d.call(this);delete this.hb;delete this.Xb};var Uj=function(a,b,c){var d=a.ownerDocument,a=Tj(d,a,t,Df),a=Tj(d,a,t,Ef),a=Tj(d,a,t,Ff),a=Tj(d,a,t,Cf),f=Tj(d,a,t,fe),b=b._GetHelper(),g=b._GetData();f.appendChild(d.createTextNode(g[fe]));var a=Tj(d,a,hc,gd),j=b._GenerateWidgetMetadata();a.setAttribute(Id,j.quickEditUrl);a.target=Oc;a.onclick=function(){return c._PopupConfig(d.getElementById(j.instanceId))};a.appendChild(d.createTextNode(g[ed]))},Tj=function(a,b,c,d){a=a.createElement(c);a.className=d;b.appendChild(a);return a};function Vj(a,b,c,d,f,g){this.Aa=a;this.Qe=b;this.td=d||k;this.data=f||k;g?(this.ic=g,g==dd||g==ad||g==bd||g==cd||e("bad display mode: "+g)):this.ic=cd;this.ib=l}Vj.prototype.Ng=function(){return this.Aa};function Wj(a){this.t=a;this.Gb=k}x=Wj.prototype;x.zf=function(a){this.Gb=a};x.pg=function(){return this.t.data};x.tf=function(a){return this.t.data=a};x.Af=function(a){return this.t.ib=a};
x.mg=function(){var a={};a.type=this.Gb.Kd;a.instanceId=this.t.Aa;a.sectionId=this.t.Qe;a.actionUrl=X.cc;a.quickEditUrl=X.pd+va+this.Gb.Kd+ua+this.t.Aa+ma+X.md;return a};x.rc=function(a,b,c,d){X.rc(a,b||{},this.t.Aa,this.Gb.Kd,c,d)};function X(){}X.tg=function(a,b,c){X.Y={};X.pd=a;X.cc=b;X.dh=c;X.mc={};X.Bb=new Pj;X.sd=0;X.xc=0;N(X.Bb,Qe,function(){X.xc++});N(X.Bb,s,function(){X.xc--})};X.hg=function(a){a=X.kg(a.document);document.body.appendChild(a)};
X.Fg=function(a){X.hg(window);if(window.parent==window){var b=Ib;a&&(b=a);a=X.gg(window.document,b);document.body.appendChild(a[0]);document.body.appendChild(a[1])}};X.Yf=Oc;X.Xf=Oc;X.md="editWidget";X.og=function(){return X.cc};X.Dg=function(a,b,c){X.Jc=a;X.Jf=b;X.If=c};X.rg=function(){return X.Jc};X.Eg=function(a){X.$g=a};X.le=function(){return X.$g};X.Cg=function(a){X.mc=a};
X.ng=function(){var a={},b;for(b in X.mc){var c=X.mc[b];a[c.name]=c.data}c={};for(b in X.Y)c[b]=X.Y[b].q.t.data;a.widgets=c;return a};X.fe=function(a,b){var c=new Wj(b),d=new window[a](c);c.zf(d);X.Y[b.Aa]=d;X.de(d);return d};X.Ag=function(a,b){var c=X.fe(a,b);c.q.Af(i);return c};X.de=function(a){a.q.t.ic!=cd&&(a.q.eh=l)};X.Ba=function(a){return X.Y?X.Y[a]:k};
X.vc=function(a,b,c,d,f){var g=m;d&&(g=ua+d);a=X.pd+ma+a+ta+b+va+c+g;if(window.name==f)return window.location.replace(a),window.focus(),window;f=window.open(a,f,Jf);f.focus();return f};X.yg=function(a){var b=a.getAttribute(Qd),c=X.Ba(b);if(c){var d=c.q.ya;if(d!=k&&!d.closed)return d.focus(),l}a=X.vc(X.md,a.parentNode.getAttribute(Qd),a.getAttribute(Hf),b,Vc+b);c&&(c.q.ya=a);return l};X.zg=function(a){X.vc(X.Xf,a.parentNode.getAttribute(Qd),a.getAttribute(Hf),a.getAttribute(Qd),X.Yf);return l};
X.lg=function(a,b,c){X.Z(c,c.LayoutsMessages.DELETING,X.Ec);X.ge(Yc,{},a,b)};Wj.prototype.$e=function(a,b){X.Z(b,b.LayoutsMessages.SAVING,X.Ec);this.rc(Wc,a)};X.af=function(a,b,c){a.sectionid=document.getElementById($e).value;X.Z(c,c.LayoutsMessages.SAVING,X.Ec);X.ge(nc,a,m,b)};X.hh=function(a,b,c){E(c!=k,se);var d=X.Ba(b);E(d!=k,te+b);d.q.t.ib?X.af(a,c,window):d.q.$e(a,window)};X.rc=function(a,b,c,d,f,g){X.he(X.cc,a,b,c,d,f,g)};
X.ge=function(a,b,c,d,f){X.Jc&&(b.pageToken=X.Jf,b.security_token=X.If,X.he(X.Jc,a,b,c,d,f))};
X.he=function(a,b,c,d,f,g,j){var b=[mc+encodeURIComponent(b),Gf+encodeURIComponent(d),If+encodeURIComponent(f),Ve],n;for(n in c)if(typeof c[n]==xe){d=c[n];for(f=0;f<d.length;++f)b.push(encodeURIComponent(n)+q+encodeURIComponent(d[f]))}else b.push(encodeURIComponent(n)+q+encodeURIComponent(c[n]));var r=g||Xj(),c=function(){r(this.a)&&window.eval(this.jf())};j==sb?(a=0<=a.indexOf(ib)?a+p:a+ib,X.Bb.send(m+X.sd++,a+b.join(p),sb,h,k,k,c)):X.Bb.send(m+X.sd++,a,Gb,b.join(p),k,k,c)};
X.Bg=function(a,b){if(a){var c=X.Ba(a);c&&(c.q.ya=b)}};X.zb=function(a,b){0==X.xc?window.setTimeout(function(){a.close()},b):window.setTimeout(function(){X.zb(a,b)},200)};X.ug=function(a,b){a&&(X.zb(a,100),X.$f(a,b))};X.$f=function(a,b){if(a){var c=a.document.getElementById(mf);c&&(c=c.innerHTML);c&&a&&a.opener.parent&&a.opener.parent.editor&&a.opener.parent.editor.SetSaveMessage(c,b)}};
X.Hd=function(a,b,c){var d=X.Y[a];c.errors!=k?((a=d?d.q.ya:k)||(a=window),X.Z(a,c.errors,X.od),d&&d.Ab?d.Ab(b,c,a):X.Ab(c,a)):(E(d!=k,te+a),d.Hd(b,c))};X.Ab=function(a,b){var c=a[ld],d;for(d in c)Yj(d,c[d],b.document)};Wj.prototype.fh=function(a){X.Z(this.ya,a[lf],X.Ua);X.ed(this.t.Aa,Vb,function(b){window.opener._WidgetManager._OnWidgetConfigured(b,a)})};X.vg=function(a,b){window.parent&&window.parent.editor&&b?X.wg(a,b):window.location.replace(window.location.href)};
X.wg=function(a,b){var c=X.Ba(a);c.q.tf(b.data);for(var d=document.getElementById(a),f;f=d.firstChild;)d.removeChild(f);Uj(d,c,X);c.q.ya=k};
X.sg=function(a,b,c){var d=c[lf];if(c.errors!=k)X.Z(window,c.errors,X.od),X.Ab(c,window);else if(b==nc){var f;X.hc(window)&&(window.opener&&window.opener.parent&&(f=window.opener.parent),f&&f.editor&&f.editor.HandleAddNewWidget(c));X.Z(window,d,X.Ua);window.opener==k?window.location=Oa+c.blogID:f&&f._WidgetManager?f._WidgetManager._KillPopupDelay(window):X.zb(window,100)}else c=X.Y[a],E(c!=k),b==Yc&&(X.Z(c.q.ya,d,X.Ua),X.ed(a,Wb))};
X.xg=function(a){var b=X.Ba(a);b&&(b.q.t.ic==bd?top.editor.HandleDeleteWidget(b.q.t.td):(b=b.q.t.td,b.parentNode.removeChild(b)),delete X.Y[a])};X.ed=function(a,b,c){if(X.hc(window)){var d=window.opener;c||(c=d._WidgetManager[b]);c(a);d._WidgetManager?d._WidgetManager._KillPopupDelay(window,a):X.zb(window,100)}else a=X.le()+jb+a,window.location.replace(a+(oa+encodeURIComponent(b)))};X.hc=function(a){var b=l;try{if(a.opener){var c=Pb+a.opener.document.domain;c&&c!=Pb&&(b=i)}}catch(d){}return b};
X.Ua="status-msg status-msg-yellow-on-white";X.Ec=X.Ua;X.od=X.Ua;X.Z=function(a,b,c){a||(a=self);var d=a.document.getElementById(mf);d&&(d.innerHTML=b);if(a=a.document.getElementById(lf))a.className=c};X.gh=function(a){a&&0<a.length&&a.substring(0,4)!=Jd&&(a=Kd+a);return a};X.qg=function(a,b){if(0<=Eg(rh(a),b))return a;if(a)for(var c=a.childNodes.length,d=0;d<c;d++){var f=X.qg(a.childNodes.item(d),b);if(f)return f}return k};
X.kg=function(a){a=a.createElement(t);a.className=Dc;a.style.position=kc;a.style.top=Qa;a.style.left=Qa;a.style.width=Ta;a.style.height=Ta;H&&!I(7)&&(a.style.height=qd);a.style.zIndex=Sa;a.style.cursor=Xc;a.onclick=X.Lc;a.onmousedown=X.Lc;a.onmouseup=X.Lc;a.style.background=Bf;a.style.filter=qc;a.style.opacity=Fa;a.innerHTML=ra;return a};
X.gg=function(a,b){var c=X.xe(a,b),d=X.xe(a,b);c.style.backgroundColor=ia;c.style.border=Va;c.style.zIndex=11;H&&(c.style.filter=ea);c.style.opacity=Ga;d.style.border=Wa;c.style.zIndex=12;return[c,d]};
X.xe=function(a,b){var c=a.createElement(t);c.style.position=kc;c.style.top=bb;c.style.left=Da;c.style.width=ab;c.style.padding=Ua;c.style.fontSize=Ya;c.style.textAlign=Lc;c.style.color=ja;c.style.fontFamily=wa;H&&(c.style.top=Ca,c.style.left=Ca,c.style.filter=da);c.style.MozTransform=Ye;c.style.MozTransformOrigin=Za;c.style.WebkitTransform=Ye;c.style.WebkitTransformOrigin=Za;c.innerHTML=b;return c};
X.Lc=function(a){a||(a=window.event);a&&(a.cancelBubble=i,a.stopPropagation&&a.stopPropagation());return l};var Zj=function(a,b){b||(b=document);return b.getElementById(od+a)},$j=function(a){if(a=Zj(a))a.innerHTML=m,a.className=nd},Yj=function(a,b,c){if(a=Zj(a,c))a.innerHTML=b,a.className=md};z("_WidgetManager",X,h);X._Init=X.tg;X._SetPageActionUrl=X.Dg;X._GetPageActionUrl=X.rg;X._SetWidgetRefreshUrl=X.Eg;X._GetWidgetRefreshUrl=X.le;X._GetCallbackUrl=X.og;X._DeleteWidgetFromPage=X.lg;
X._DisplayWidget=X.de;X._GetWidget=X.Ba;X._HandleControllerResult=X.Hd;X._HandlePageActionResult=X.sg;X._IsOpenerReachable=X.hc;X._SetConfigWin=X.Bg;X._SetDataContext=X.Cg;X._SetupPreview=X.Fg;X._RegisterWidget=X.fe;X._RegisterNewWidget=X.Ag;X._PopupPaneFromParams=X.vc;X._PopupConfig=X.yg;X._PopupToolbox=X.zg;X._KillPopupDelay=X.ug;X._OnWidgetConfigured=X.vg;X._OnWidgetDeleted=X.xg;z("_WidgetInfo",Vj,h);Vj.prototype._getInstanceId=Vj.prototype.Ng;Wj.prototype._GetData=Wj.prototype.pg;
Wj.prototype._GenerateWidgetMetadata=Wj.prototype.mg;X._GetAllData=X.ng;z("widget_module_provide",function(a,b,c){Gj.ag().jg(a,b,c)},h);function Xj(a){return function(b){var c=-1;try{c=b.status}catch(d){}return 500<=c?(b.responseText.length?document.body.innerHTML=b.responseText:window.alert(LayoutsMessages.SERVER_ERROR),l):a?a(b):i}};function Y(a,b,c,d,f,g,j,n){this.r=a;this.Tc=b!=ue?b:k;this.Rc=c;this.Uc=d;this.Sc=f;this.Wc=g;this.Vc=j;this.Ae=n;this.ab=this.pa=-1;this.Kb=k;this.Ia=300;this.Nb=Xa;this.v=document.getElementById(this.r+gc);this.bb=document.getElementById(this.r+Zb);this.cb=document.getElementById(this.r+$b);this.Jb=document.getElementById(this.r+cc);this.Qc=document.getElementById(this.r+dc);this.f=document.getElementById(this.r+bc);this.Ha=document.getElementById(this.r+fc);this.Pc=window.frames[this.r+Yb];this.Lb=
0;this.n=new Image;this.n.onload=C(this.Ce,this);this.n.onerror=C(this.Be,this);this.Oc=l;this.ra=this.p=this.eb=k;this.Mb=l}x=Y.prototype;
x.Ce=function(){this.Lb=0;$j(this.r+ec);$j(this.r+ac);if(!this.Jb.checked||0==this.pa)this.pa=this.n.width,this.ab=this.n.height,this.Kb=this.n.src;var a=1,b=1;this.n.width>this.Ia&&(a=this.Ia/this.n.width);this.n.height>this.Ia&&(b=this.Ia/this.n.height);a=Math.min(a,b);this.v.style.width=Math.round(this.n.width*a)+Oe;this.v.style.height=Math.round(this.n.height*a)+Oe;this.v.src=this.n.src;this.v.style.display=m;this.cb.style.display=v;this.bb.style.display=m;this.f.disabled=i;this.Rc&&this.Rc.call({},
this.v.src,this.Kb,this.pa,this.ab)};x.La=function(a,b,c,d){a?(Yj(this.r+ac,b),$j(this.r+ec)):(Yj(this.r+ec,b),$j(this.r+ac));this.v.style.display=v;this.cb.style.display=m;this.bb.style.display=v;this.f.disabled=l;this.Uc&&this.Uc.call({},c,d)};x.Be=function(){if(2>this.Lb){this.Lb++;var a=this.n.src;this.n.src=m;this.Oa(a)}else this.La(this.Jb.checked,WidgetMessages.SIV_INVALID_URL,this.v.src,[])};x.Oa=function(a){this.Bd();this.n.src=a};
x.Kg=function(a){a=a||window.event;window.event?(a.returnValue=l,a.cancelBubble=i):(a.preventDefault(),a.stopPropagation());this.v.style.display=v;this.bb.style.display=v;this.cb.style.display=m;this.f.disabled=l;this.Ha.value=m;this.hd();this.Mb=i;this.Sc&&this.Sc.call({})};x.Pg=function(){this.Jb.checked=zf;this.Ha.value=m;this.Bd();this.gf();this.Oc=i;try{this.p.submit()}catch(a){this.La(i,WidgetMessages.SIV_INVALID_URL,this.p.value,[])}this.ff()};
x.Kc=function(){var a=this.Pc.document.result;if(a)if(a.hasErrors)0<a.errors.length?this.La(i,a.errors[0].message,this.f.value,a.errors):this.La(i,WidgetMessages.SIV_INVALID_URL,this.f.value,a.errors);else{var b=Math.max(a.origWidth,a.origHeight),c=this.fd();0!=this.pa&&-1!=c&&b>c?(b=c/b,this.pa=Math.round(a.origWidth*b),this.ab=Math.round(a.origHeight*b)):(this.pa=a.origWidth,this.ab=a.origHeight);this.Kb=a.mainSrc;this.Oa(a.thumbSrc)}else this.La(i,WidgetMessages.SIV_INVALID_URL,this.f.value,[])};
x.Qg=function(a){if(9!=(a||window.event).keyCode)this.Qc.checked=zf,this.eb!=k&&(window.clearTimeout(this.eb),this.eb=k),a=C(this.Uf,this),this.eb=window.setTimeout(a,1E3)};x.Uf=function(){if(this.Mb||this.n.src!=this.Ha.value)this.hd(),this.Oa(this.Ha.value);this.Mb=l};x.Sg=function(a){this.Qc.checked=i;this.Ha.value=a;this.Oa(a)};x.Bd=function(){this.v.src=Ld;this.v.style.width=this.Nb;this.v.style.height=this.Nb;this.v.style.display=m;this.cb.style.display=v;this.bb.style.display=v};
x.gf=function(){if(!this.p){this.p=document.createElement(yd);this.p.action=Wd;this.p.method=Gb;this.p.target=this.Pc.name;this.p.encoding=oe;this.p.style.display=v;if(this.Tc){var a=document.createElement(ae);a.type=Hd;a.name=Cc;a.value=this.Tc;this.p.appendChild(a)}a=document.createElement(ae);a.type=Hd;a.name=af;a.id=af;this.p.appendChild(a);a=document.createElement(ae);a.type=Hd;a.name=bf;a.value=this.Ae;this.p.appendChild(a);document.body.appendChild(this.p)}a=this.fd();-1==a&&(a=1600);document.getElementById(af).value=
a;this.ra={parent:this.f.parentNode,nextSibling:this.f.nextSibling};this.f.parentNode.removeChild(this.f);this.p.appendChild(this.f)};x.Zg=function(a){this.Ia=a;this.Nb=a+Oe};x.ff=function(){this.p.removeChild(this.f);this.ra&&this.ra.nextSibling?this.ra.parent.insertBefore(this.f,this.ra.nextSibling):this.ra.parent.appendChild(this.f)};
x.hd=function(){var a=document.createElement(ae);a.type=ud;a.name=this.f.name;a.id=this.f.id;a.onchange=this.f.onchange;var b=this.f.nextSibling;b==k?this.f.parentNode.appendChild(a):this.f.parentNode.insertBefore(a,b);this.f.parentNode.removeChild(this.f);this.f=a};x.fd=function(){return-1==this.Wc&&this.Vc?this.Vc():this.Wc};function Z(){this.Nc={}}var ak=new Z;Z.prototype.Lg=function(a,b,c,d,f,g,j,n){this.Nc[a]=new Y(a,b,eval(c),eval(d),eval(f),g,eval(j),n);return this.Nc[a]};Z.prototype.pe=function(a){return this.Nc[a]};
Z.prototype.Kc=function(a){(a=this.pe(a))&&a.Oc&&a.Kc()};z("_UploadSimpleImage",ak,h);Z.prototype._createUsiContainer=Z.prototype.Lg;Z.prototype._getUsiContainer=Z.prototype.pe;Z.prototype._channelResultArrived=Z.prototype.Kc;Y.prototype._changeImage=Y.prototype.Kg;Y.prototype._imgUrlFileOnChange=Y.prototype.Pg;Y.prototype._imgUrlTextOnKeyUp=Y.prototype.Qg;Y.prototype._loadInitialUrl=Y.prototype.Sg;Y.prototype._loadImageFromUrl=Y.prototype.Oa;Y.prototype._setPreviewSize=Y.prototype.Zg; })()
