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