function e(a){throw a;}var j=true,k=null,l=false,q;var aa=aa||{},ba=this,t=function(a,b,c){var d=a.split("."),f=c||ba;!(d[0]in f)&&f.execScript&&f.execScript("var "+d[0]);for(var g;d.length&&(g=d.shift());)if(!d.length&&r(b))f[g]=b;else f=f[g]?f[g]:(f[g]={})},ca=function(a,b){for(var c=a.split("."),d=b||ba,f;f=c.shift();)if(d[f])d=d[f];else return k;return d},da=function(){},ea=function(a){a.eb=function(){return a.Zt||(a.Zt=new a)}},fa=function(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array||!(a instanceof Object)&&Object.prototype.toString.call(a)==
"[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(!(a instanceof Object)&&(Object.prototype.toString.call(a)=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call")))return"function"}else return"null";else if(b=="function"&&typeof a.call=="undefined")return"object";return b},r=function(a){return a!==undefined},
ga=function(a){return a===k},ha=function(a){return a!=k},ia=function(a){return fa(a)=="array"},ja=function(a){var b=fa(a);return b=="array"||b=="object"&&typeof a.length=="number"},y=function(a){return typeof a=="string"},ka=function(a){return typeof a=="number"},la=function(a){return fa(a)=="function"},ma=function(a){var b=fa(a);return b=="object"||b=="array"||b=="function"},pa=function(a){if(a.hasOwnProperty&&a.hasOwnProperty(na))return a[na];a[na]||(a[na]=++oa);return a[na]},qa=function(a){"removeAttribute"in
a&&a.removeAttribute(na);try{delete a[na]}catch(b){}},na="closure_hashCode_"+Math.floor(Math.random()*2147483648).toString(36),oa=0,sa=function(a){var b=fa(a);if(b=="object"||b=="array"){if(a.ua)return a.ua.call(a);var c=b=="array"?[]:{};for(var d in a)c[d]=sa(a[d]);return c}return a},z=function(a,b){var c=b||ba;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var f=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(f,d);return a.apply(c,f)}}else return function(){return a.apply(c,
arguments)}},ta=function(a){var b=Array.prototype.slice.call(arguments,1);return function(){var c=Array.prototype.slice.call(arguments);c.unshift.apply(c,b);return a.apply(this,c)}},ua=Date.now||function(){return(new Date).getTime()},va=function(a,b,c){a[b]=c},A=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(a){if(arguments.length>1){var b=Array.prototype.slice.call(arguments,1);b.unshift(this,a);return z.apply(k,b)}else return z(this,a)};Function.prototype.partial=function(){var a=Array.prototype.slice.call(arguments);a.unshift(this,k);return z.apply(k,a)};Function.prototype.inherits=function(a){A(this,a)};Function.prototype.mixin=function(a){var b=a;for(var c in b)this.prototype[c]=b[c]};var wa=function(a,b){return a.indexOf(b)==0},xa=function(a,b){var c=a.length-b.length;return c>=0&&a.lastIndexOf(b,c)==c},ya=function(a){for(var b=1;b<arguments.length;b++){var c=String(arguments[b]).replace(/\$/g,"$$$$");a=a.replace(/\%s/,c)}return a},za=function(a){return/^[\s\xa0]*$/.test(a)},Ba=function(a){return za(Aa(a))},Ca=function(a){return!/[^\t\n\r ]/.test(a)},Da=function(a){return!/[^a-zA-Z]/.test(a)},Ea=function(a){return!/[^a-zA-Z0-9]/.test(a)},Fa=function(a){return a.replace(/(\r\n|\r|\n)+/g,
" ")},Ga=function(a){return a.replace(/\xa0|[ \t]+/g," ")},Ha=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ia=function(a){return a.replace(/^[\s\xa0]+/,"")},Ja=/^[a-zA-Z0-9\-_.!~*'()]*$/,Ka=function(a){a=String(a);if(!Ja.test(a))return encodeURIComponent(a);return a},La=function(a){return decodeURIComponent(a.replace(/\+/g," "))},Ra=function(a,b){if(b)return a.replace(Ma,"&amp;").replace(Na,"&lt;").replace(Oa,"&gt;").replace(Pa,"&quot;");else{if(!Qa.test(a))return a;if(a.indexOf("&")!=
-1)a=a.replace(Ma,"&amp;");if(a.indexOf("<")!=-1)a=a.replace(Na,"&lt;");if(a.indexOf(">")!=-1)a=a.replace(Oa,"&gt;");if(a.indexOf('"')!=-1)a=a.replace(Pa,"&quot;");return a}},Ma=/&/g,Na=/</g,Oa=/>/g,Pa=/\"/g,Qa=/[&<>\"]/,Va=function(a){if(Sa(a,"&"))return"document"in ba&&!Sa(a,"<")?Ta(a):Ua(a);return a},Ta=function(a){var b=ba.document.createElement("a");b.innerHTML=a;b.normalize&&b.normalize();a=b.firstChild.nodeValue;b.innerHTML="";return a},Ua=function(a){return a.replace(/&([^;]+);/g,function(b,
c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if(c.charAt(0)=="#"){var d=Number("0"+c.substr(1));if(!isNaN(d))return String.fromCharCode(d)}return b}})},Wa=function(a,b){for(var c=b.length,d=0;d<c;d++){var f=c==1?b:b.charAt(d);if(a.charAt(0)==f&&a.charAt(a.length-1)==f)return a.substring(1,a.length-1)}return a},Xa=function(a,b,c){if(c)a=Va(a);if(a.length>b)a=a.substring(0,b-3)+"...";if(c)a=Ra(a);return a},Ya=function(a,b,c){if(c)a=Va(a);if(a.length>
b){var d=Math.floor(b/2),f=a.length-d;d+=b%2;a=a.substring(0,d)+"..."+a.substring(f)}if(c)a=Ra(a);return a},Za={"\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\x0B",'"':'\\"',"'":"\\'","\\":"\\\\"},Sa=function(a,b){return a.indexOf(b)!=-1},$a=function(a,b){return(new Array(b+1)).join(a)},bb=function(a,b,c){var d=r(c)?a.toFixed(c):String(a),f=d.indexOf(".");if(f==-1)f=d.length;return $a("0",Math.max(0,b-f))+d},Aa=function(a){return a==k?"":String(a)},cb=function(){return Array.prototype.join.call(arguments,
"")},db=function(){return Math.floor(Math.random()*2147483648).toString(36)+(Math.floor(Math.random()*2147483648)^(new Date).getTime()).toString(36)},fb=function(a,b){for(var c=0,d=Ha(String(a)).split("."),f=Ha(String(b)).split("."),g=Math.max(d.length,f.length),h=0;c==0&&h<g;h++){var i=d[h]||"",m=f[h]||"",n=new RegExp("(\\d*)(\\D*)","g"),o=new RegExp("(\\d*)(\\D*)","g");do{var p=n.exec(i)||["","",""],s=o.exec(m)||["","",""];if(p[0].length==0&&s[0].length==0)break;var u=p[1].length==0?0:parseInt(p[1],
10),v=s[1].length==0?0:parseInt(s[1],10);c=eb(u,v)||eb(p[2].length==0,s[2].length==0)||eb(p[2],s[2])}while(c==0)}return c},eb=function(a,b){if(a<b)return-1;else if(a>b)return 1;return 0},gb=ua(),hb=function(){return"goog_"+gb++};var ib={},jb=function(){this.laa=ua()},kb=new jb;jb.prototype.G=function(a){this.laa=a};jb.prototype.reset=function(){this.G(ua())};jb.prototype.z=function(){return this.laa};var lb=function(a){this.AFa=a||"";this.UMa=kb};lb.prototype.cda=j;lb.prototype.uMa=j;lb.prototype.nMa=j;lb.prototype.xT=l;
var nb=function(a){var b=new Date(a.Q3());return mb(b.getFullYear()-2000)+mb(b.getMonth()+1)+mb(b.getDate())+" "+mb(b.getHours())+":"+mb(b.getMinutes())+":"+mb(b.getSeconds())+"."+mb(Math.floor(b.getMilliseconds()/10))},mb=function(a){if(a<10)return"0"+a;return String(a)},ob=function(a,b){var c=a.Q3()-b,d=c/1000,f=d.toFixed(3),g=0;if(d<1)g=2;else for(;d<100;){g++;d*=10}for(;g-- >0;)f=" "+f;return f},pb=function(a){lb.call(this,a)};A(pb,lb);
pb.prototype.oqa=function(a){var b=[];b.push(this.AFa," ");this.cda&&b.push("[",nb(a),"] ");this.uMa&&b.push("[",ob(a,this.UMa.z()),"s] ");this.nMa&&b.push("[",a.JN(),"] ");b.push(a.Vj(),"\n");this.xT&&a.kN()&&b.push(a.msa(),"\n");return b.join("")};var qb=function(a){return a[a.length-1]},rb=function(a,b,c){if(a.indexOf)return a.indexOf(b,c);if(Array.indexOf)return Array.indexOf(a,b,c);for(var d=c==k?0:c<0?Math.max(0,a.length+c):c,f=d;f<a.length;f++)if(f in a&&a[f]===b)return f;return-1},C=function(a,b,c){if(a.forEach)a.forEach(b,c);else if(Array.forEach)Array.forEach(a,b,c);else for(var d=a.length,f=y(a)?a.split(""):a,g=0;g<d;g++)g in f&&b.call(c,f[g],g,a)},sb=function(a,b,c){if(a.filter)return a.filter(b,c);if(Array.filter)return Array.filter(a,
b,c);for(var d=a.length,f=[],g=0,h=y(a)?a.split(""):a,i=0;i<d;i++)if(i in h){var m=h[i];if(b.call(c,m,i,a))f[g++]=m}return f},tb=function(a,b,c){if(a.map)return a.map(b,c);if(Array.map)return Array.map(a,b,c);for(var d=a.length,f=[],g=0,h=y(a)?a.split(""):a,i=0;i<d;i++)if(i in h)f[g++]=b.call(c,h[i],i,a);return f},ub=function(a,b,c,d){if(a.reduce)return d?a.reduce(z(b,d),c):a.reduce(b,c);var f=c;C(a,function(g,h){f=b.call(d,f,g,h,a)});return f},vb=function(a,b,c){if(a.some)return a.some(b,c);if(Array.some)return Array.some(a,
b,c);for(var d=a.length,f=y(a)?a.split(""):a,g=0;g<d;g++)if(g in f&&b.call(c,f[g],g,a))return j;return l},wb=function(a,b,c){if(a.every)return a.every(b,c);if(Array.every)return Array.every(a,b,c);for(var d=a.length,f=y(a)?a.split(""):a,g=0;g<d;g++)if(g in f&&!b.call(c,f[g],g,a))return l;return j},yb=function(a,b,c){var d=xb(a,b,c);return d<0?k:y(a)?a.charAt(d):a[d]},xb=function(a,b,c){for(var d=a.length,f=y(a)?a.split(""):a,g=0;g<d;g++)if(g in f&&b.call(c,f[g],g,a))return g;return-1},zb=function(a,
b){if(a.contains)return a.contains(b);return rb(a,b)>-1},Ab=function(a){if(!ia(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0},Db=function(a,b){var c=rb(a,b),d;if(d=c!=-1)Bb(a,c);return d},Bb=function(a,b){return Array.prototype.splice.call(a,b,1).length==1},Eb=function(a,b,c){var d=xb(a,b,c);if(d>=0){Bb(a,d);return j}return l},Fb=function(a){if(ia(a))return a.concat();else{for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b}},Gb=function(a){if(ia(a))return a.concat();return Fb(a)},Hb=
function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];if(ja(c)){c=Gb(c);a.push.apply(a,c)}else a.push(c)}},Jb=function(a){return Array.prototype.splice.apply(a,Ib(arguments,1))},Ib=function(a,b,c){return arguments.length<=2?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},Lb=function(a,b,c){var d;a:{var f=a,g=b,h=c;if(!ja(f)||!ja(g)||f.length!=g.length)d=l;else{for(var i=f.length,m=h||Kb,n=0;n<i;n++)if(!m(f[n],g[n])){d=l;break a}d=j}}return d},Mb=function(a,b){return a>
b?1:a<b?-1:0},Kb=function(a,b){return a===b},Nb=function(){for(var a=[],b=0;b<arguments.length;b++){var c=arguments[b];ia(c)?a.push.apply(a,Nb.apply(k,c)):a.push(c)}return a};var Ob="StopIteration"in ba?ba.StopIteration:Error("StopIteration"),Pb=function(){};Pb.prototype.mc=function(){e(Ob)};Pb.prototype.Lk=function(){return this};
var Qb=function(a){if(a instanceof Pb)return a;if(typeof a.Lk=="function")return a.Lk(l);if(ja(a)){var b=0,c=new Pb;c.mc=function(){for(;1;){if(b>=a.length)e(Ob);if(b in a)return a[b++];else b++}};return c}e(Error("Not implemented"))},Rb=function(a,b,c){if(ja(a))try{C(a,b,c)}catch(d){if(d!==Ob)e(d)}else{a=Qb(a);try{for(;1;)b.call(c,a.mc(),undefined,a)}catch(f){if(f!==Ob)e(f)}}},Sb=function(a,b,c){a=Qb(a);var d=new Pb;d.mc=function(){for(;1;){var f=a.mc();if(b.call(c,f,undefined,a))return f}};return d},
Tb=function(a,b,c){a=Qb(a);try{for(;1;)if(b.call(c,a.mc(),undefined,a))return j}catch(d){if(d!==Ob)e(d)}return l},Ub=function(){var a=arguments,b=a.length,c=0,d=new Pb;d.mc=function(){try{if(c>=b)e(Ob);var f=Qb(a[c]);return f.mc()}catch(g){if(g!==Ob||c>=b)e(g);else{c++;return this.mc()}}};return d};var Vb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},Wb=function(a,b,c){var d={};for(var f in a)if(b.call(c,a[f],f,a))d[f]=a[f];return d},Xb=function(a,b,c){var d={};for(var f in a)d[f]=b.call(c,a[f],f,a);return d},Yb=function(a,b,c){for(var d in a)if(!b.call(c,a[d],d,a))return l;return j},Zb=function(a){for(var b in a)return b},$b=function(a){var b=[],c=0;for(var d in a)b[c++]=a[d];return b},ac=function(a){var b=[],c=0;for(var d in a)b[c++]=d;return b},bc=function(a,b){for(var c in a)if(a[c]==
b)return j;return l},cc=function(a){for(var b in a)return l;return j},ec=function(a){for(var b=ac(a),c=b.length-1;c>=0;c--)dc(a,b[c])},dc=function(a,b){var c;if(c=b in a)delete a[b];return c},fc=function(a,b,c){if(b in a)e(Error('The object already contains the key "'+b+'"'));a[b]=c},gc=function(a,b,c){if(b in a)return a[b];return c},hc=function(a){var b={};for(var c in a)b[c]=a[c];return b},ic=function(a){var b={};for(var c in a)b[a[c]]=c;return b},jc=["constructor","hasOwnProperty","isPrototypeOf",
"propertyIsEnumerable","toLocaleString","toString","valueOf"],lc=function(a){for(var b,c,d=1;d<arguments.length;d++){c=arguments[d];for(b in c)a[b]=c[b];for(var f=0;f<jc.length;f++){b=jc[f];if(Object.prototype.hasOwnProperty.call(c,b))a[b]=c[b]}}},mc=function(){var a=arguments.length;if(a==1&&ia(arguments[0]))return mc.apply(k,arguments[0]);if(a%2)e(Error("Uneven number of arguments"));for(var b={},c=0;c<a;c+=2)b[arguments[c]]=arguments[c+1];return b},nc=function(){var a=arguments.length;if(a==1&&
ia(arguments[0]))return nc.apply(k,arguments[0]);for(var b={},c=0;c<a;c++)b[arguments[c]]=j;return b};var oc=function(a){if(typeof a.ma=="function")return a.ma();if(ja(a)||y(a))return a.length;var b,c=0;for(var d in a)c++;return b=c},pc=function(a){if(typeof a.Hd=="function")return a.Hd();if(y(a))return a.split("");if(ja(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return $b(a)},qc=function(a){if(typeof a.vb=="function")return a.vb();if(typeof a.Hd=="function")return undefined;if(ja(a)||y(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(d);return b}return ac(a)},rc=function(a,b){if(typeof a.contains==
"function")return a.contains(b);if(typeof a.ns=="function")return a.ns(b);if(ja(a)||y(a))return zb(a,b);return bc(a,b)},tc=function(a){if(typeof a.Ea=="function")return a.Ea();if(ja(a)||y(a))return a.length==0;return cc(a)},uc=function(a,b,c){if(typeof a.forEach=="function")a.forEach(b,c);else if(ja(a)||y(a))C(a,b,c);else for(var d=qc(a),f=pc(a),g=f.length,h=0;h<g;h++)b.call(c,f[h],d&&d[h],a)},vc=function(a,b,c){if(typeof a.some=="function")return a.some(b,c);if(ja(a)||y(a))return vb(a,b,c);for(var d=
qc(a),f=pc(a),g=f.length,h=0;h<g;h++)if(b.call(c,f[h],d&&d[h],a))return j;return l},wc=function(a,b,c){if(typeof a.every=="function")return a.every(b,c);if(ja(a)||y(a))return wb(a,b,c);for(var d=qc(a),f=pc(a),g=f.length,h=0;h<g;h++)if(!b.call(c,f[h],d&&d[h],a))return l;return j};var xc=function(a){this.vc={};this.ob=[];var b=arguments.length;if(b>1){if(b%2)e(Error("Uneven number of arguments"));for(var c=0;c<b;c+=2)this.G(arguments[c],arguments[c+1])}else a&&this.UB(a)};q=xc.prototype;q.Z=0;q.pi=0;q.ma=function(){return this.Z};q.Hd=function(){this.mw();for(var a=[],b=0;b<this.ob.length;b++){var c=this.ob[b];a.push(this.vc[c])}return a};q.vb=function(){this.mw();return this.ob.concat()};q.me=function(a){return yc(this.vc,a)};
q.ns=function(a){for(var b=0;b<this.ob.length;b++){var c=this.ob[b];if(yc(this.vc,c)&&this.vc[c]==a)return j}return l};q.jc=function(a,b){if(this===a)return j;if(this.Z!=a.ma())return l;var c=b||zc;this.mw();for(var d,f=0;d=this.ob[f];f++)if(!c(this.z(d),a.z(d)))return l;return j};var zc=function(a,b){return a===b};q=xc.prototype;q.Ea=function(){return this.Z==0};q.clear=function(){this.vc={};this.pi=this.Z=this.ob.length=0};
q.remove=function(a){if(yc(this.vc,a)){delete this.vc[a];this.Z--;this.pi++;this.ob.length>2*this.Z&&this.mw();return j}return l};q.mw=function(){if(this.Z!=this.ob.length){for(var a=0,b=0;a<this.ob.length;){var c=this.ob[a];if(yc(this.vc,c))this.ob[b++]=c;a++}this.ob.length=b}if(this.Z!=this.ob.length){var d={};for(b=a=0;a<this.ob.length;){c=this.ob[a];if(!yc(d,c)){this.ob[b++]=c;d[c]=1}a++}this.ob.length=b}};q.z=function(a,b){if(yc(this.vc,a))return this.vc[a];return b};
q.G=function(a,b){if(!yc(this.vc,a)){this.Z++;this.ob.push(a);this.pi++}this.vc[a]=b};q.UB=function(a){var b,c;if(a instanceof xc){b=a.vb();c=a.Hd()}else{b=ac(a);c=$b(a)}for(var d=0;d<b.length;d++)this.G(b[d],c[d])};q.ua=function(){return new xc(this)};q.Lk=function(a){this.mw();var b=0,c=this.ob,d=this.vc,f=this.pi,g=this,h=new Pb;h.mc=function(){for(;1;){if(f!=g.pi)e(Error("The map has changed since the iterator was created"));if(b>=c.length)e(Ob);var i=c[b++];return a?i:d[i]}};return h};
var yc=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Ac=function(a){this.vc=new xc;a&&this.UB(a)},Bc=function(a){var b=typeof a;return b=="object"&&a||b=="function"?"o"+pa(a):b.substr(0,1)+a};q=Ac.prototype;q.ma=function(){return this.vc.ma()};q.add=function(a){this.vc.G(Bc(a),a)};q.UB=function(a){for(var b=pc(a),c=b.length,d=0;d<c;d++)this.add(b[d])};q.jb=function(a){for(var b=pc(a),c=b.length,d=0;d<c;d++)this.remove(b[d])};q.remove=function(a){return this.vc.remove(Bc(a))};q.clear=function(){this.vc.clear()};q.Ea=function(){return this.vc.Ea()};
q.contains=function(a){return this.vc.me(Bc(a))};q.b7=function(a){for(var b=new Ac,c=pc(a),d=0;d<c.length;d++){var f=c[d];this.contains(f)&&b.add(f)}return b};q.Hd=function(){return this.vc.Hd()};q.ua=function(){return new Ac(this)};q.jc=function(a){return this.ma()==oc(a)&&this.$Aa(a)};q.$Aa=function(a){var b=oc(a);if(this.ma()>b)return l;if(!(a instanceof Ac)&&b>5)a=new Ac(a);return wc(this,function(c){return rc(a,c)})};q.Lk=function(){return this.vc.Lk(l)};var Cc=function(a,b){var c=new Ac,d=[],f=function(g,h){var i=h+"  ",m=function(p){return p.replace(/\n/g,"\n"+h)};try{if(r(g))if(ga(g))d.push("NULL");else if(y(g))d.push('"'+m(g)+'"');else if(la(g))d.push(m(String(g)));else if(ma(g))if(c.contains(g))d.push("*** reference loop detected ***");else{c.add(g);d.push("{");for(var n in g)if(!(!b&&la(g[n]))){d.push("\n");d.push(i);d.push(n+" = ");f(g[n],i)}d.push("\n"+h+"}")}else d.push(g);else d.push("undefined")}catch(o){d.push("*** "+o+" ***")}};f(a,"");
return d.join("")},Ec=function(a,b){try{var c,d=a,f=ca("window.location.href");c=typeof d=="string"?{message:d,name:"Unknown error",lineNumber:"Not available",fileName:f,stack:"Not available"}:!d.lineNumber||!d.fileName||!d.stack?{message:d.message,name:d.name,lineNumber:d.lineNumber||d.line||"Not available",fileName:d.fileName||d.filename||d.sourceURL||f,stack:d.stack||"Not available"}:d;var g="Message: "+Ra(c.message)+'\nUrl: <a href="view-source:'+c.fileName+'" target="_new">'+c.fileName+"</a>\nLine: "+
c.lineNumber+"\n\nBrowser stack:\n"+Ra(c.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+Ra(Dc(b)+"-> ");return g}catch(h){return"Exception trying to expose exception! You win, we lose. "+h}},Dc=function(a){return Fc(a||arguments.callee.caller,[])},Fc=function(a,b){var c=[];if(zb(b,a))c.push("[...circular reference...]");else if(a&&b.length<50){c.push(Gc(a)+"(");for(var d=a.arguments,f=0;f<d.length;f++){f>0&&c.push(", ");var g,h=d[f];switch(typeof h){case "object":g=h?"object":"null";break;case "string":g=
h;break;case "number":g=String(h);break;case "boolean":g=h?"true":"false";break;case "function":g=(g=Gc(h))?g:"[fn]";break;case "undefined":default:g=typeof h;break}if(g.length>40)g=g.substr(0,40)+"...";c.push(g)}b.push(a);c.push(")\n");try{c.push(Fc(a.caller,b))}catch(i){c.push("[exception trying to get caller]\n")}}else a?c.push("[...long stack...]"):c.push("[end]");return c.join("")},Gc=function(a){var b=String(a);if(!Hc[b]){var c=/function ([^\(]+)/.exec(b);if(c){var d=c[1];Hc[b]=d}else Hc[b]=
"[Anonymous]"}return Hc[b]},Hc={};var Kc=function(a,b,c,d,f){this.PVa=typeof f=="number"?f:Ic++;this.JNa=d||ua();this.Eq=a;this.eDa=b;this.lCa=c};Kc.prototype.s1=k;Kc.prototype.r1=k;var Ic=0;q=Kc.prototype;q.JN=function(){return this.lCa};q.kN=function(){return this.s1};q.PJa=function(a){this.s1=a};q.msa=function(){return this.r1};q.QJa=function(a){this.r1=a};q.Yp=function(){return this.Eq};q.or=function(a){this.Eq=a};q.Vj=function(){return this.eDa};q.Q3=function(){return this.JNa};var Lc=function(a){this.Qb=a;this.$a=k;this.Tc={};this.UE=[]};Lc.prototype.Eq=k;var Mc=function(a,b){this.name=a;this.value=b};Mc.prototype.toString=function(){return this.name};new Mc("OFF",Infinity);var Nc=new Mc("SHOUT",1200),Oc=new Mc("SEVERE",1000),Pc=new Mc("WARNING",900),Qc=new Mc("INFO",800),Rc=new Mc("CONFIG",700),Sc=new Mc("FINE",500),Tc=new Mc("FINER",400),Vc=new Mc("FINEST",300);new Mc("ALL",0);q=Lc.prototype;q.gb=function(){return this.Qb};q.MX=function(a){this.UE.push(a)};
q.NGa=function(a){return Db(this.UE,a)};q.yb=function(){return this.$a};q.or=function(a){this.Eq=a};q.Yp=function(){return this.Eq};q.TP=function(a){if(this.Eq)return a.value>=this.Eq.value;if(this.$a)return this.$a.TP(a);return l};q.log=function(a,b,c){this.TP(a)&&this.iCa(this.rta(a,b,c))};q.rta=function(a,b,c){var d=new Kc(a,String(b),this.Qb);if(c){d.PJa(c);d.QJa(Ec(c,arguments.callee.caller))}return d};q.vk=function(a,b){this.log(Nc,a,b)};q.za=function(a,b){this.log(Oc,a,b)};
q.S=function(a,b){this.log(Pc,a,b)};q.C=function(a,b){this.log(Qc,a,b)};q.RZ=function(a,b){this.log(Rc,a,b)};q.Bc=function(a,b){this.log(Sc,a,b)};q.gM=function(a,b){this.log(Tc,a,b)};q.tD=function(a,b){this.log(Vc,a,b)};q.iCa=function(a){if(this.TP(a.Yp()))for(var b=this;b;){b.Gka(a);b=b.yb()}};q.Gka=function(a){for(var b=0;b<this.UE.length;b++)this.UE[b](a)};q.kA=function(a){this.$a=a};q.tha=function(a,b){this.Tc[a]=b};
var Wc={},Xc=k,Yc=function(){if(!Xc){Xc=new Lc("");Wc[""]=Xc;Xc.or(Rc)}},Zc=function(){Yc();return Xc},D=function(a){Yc();return a in Wc?Wc[a]:$c(a)},$c=function(a){var b=new Lc(a),c=a.split("."),d=c[c.length-1];c.length-=1;var f=c.join("."),g=D(f);g.tha(d,b);b.kA(g);return Wc[a]=b};var ad=function(){this.P$=z(this.cia,this);this.xD=new pb;this.xD.cda=l;this.i7=this.xD.xT=l;this.hCa=""};ad.prototype.xsa=function(){return this.xD};ad.prototype.rJa=function(a){if(a!=this.i7){var b=Zc();if(a)b.MX(this.P$);else{b.NGa(this.P$);this.jVa=""}this.i7=a}};
ad.prototype.cia=function(a){var b=this.xD.oqa(a);if(window.console&&window.console.firebug)switch(a.Yp()){case Nc:window.console.info(b);break;case Oc:window.console.error(b);break;case Pc:window.console.warn(b);break;default:window.console.debug(b);break}else if(window.console)window.console.log(b);else if(window.opera)window.opera.postError(b);else this.hCa+=b};var bd="A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff",cd="\u0000- !-@[-`{-\u00bf\u00d7\u00f7\u02b9-\u02ff\u2000-\u2bff",dd="\u0591-\u07ff\ufb1d-\ufdff\ufe70-\ufefc",ed=/<[^>]*>|&[^;]+;/g,fd=new RegExp("["+dd+"]"),gd=function(a){return fd.test(a)},hd=gd,id=new RegExp("^[^"+dd+"]*["+bd+"]"),jd=new RegExp("^[^"+bd+"]*["+dd+"]"),kd=new RegExp("^["+cd+"]*$|^http://"),ld=function(a,b){return jd.test(b?a.replace(ed," "):a)},md=ld,nd=function(a,
b){return id.test(b?a.replace(ed," "):a)},od=nd,pd={ar:j,fa:j,he:j,"// id-Arab":j,iw:j,ku:j,ps:j,sd:j,ug:j,ur:j,yi:j},qd=/(\([^\)]*\))|(\[[^\]]*\])|({[^}]*})|(&lt;[^&]*&gt;)/g,rd=/(\([^\)]*\))|(\[[^\]]*\])|({[^}]*})|(<[^>]*>)/g,sd=function(a){var b=gd(a)?"\u200f":"\u200e";return a.replace(rd,b+"$&"+b)},td=0.4;var wd=function(a){var b=String(a),c;var d=b;if(/^\s*$/.test(d))c=l;else{var f=/\\["\\\/bfnrtu]/g,g=/"[^"\\\n\r\u2028\u2029\x00-\x08\x10-\x1f\x80-\x9f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,h=/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,i=/^[\],:{}\s\u2028\u2029]*$/;c=i.test(d.replace(f,"@").replace(g,"]").replace(h,""))}if(c)try{return eval("("+b+")")}catch(m){}e(Error("Invalid JSON string: "+b))},yd=function(a){return(new xd).serialize(a)},xd=function(){};
xd.prototype.serialize=function(a){var b=[];this.IS(a,b);return b.join("")};xd.prototype.IS=function(a,b){switch(typeof a){case "string":this.Aba(a,b);break;case "number":this.NIa(a,b);break;case "boolean":b.push(a);break;case "undefined":b.push("null");break;case "object":if(a==k){b.push("null");break}if(ia(a)){this.LIa(a,b);break}this.OIa(a,b);break;case "function":break;default:e(Error("Unknown type: "+typeof a))}};
var zd={'"':'\\"',"\\":"\\\\","/":"\\/","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\u000b"},Ad=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;xd.prototype.Aba=function(a,b){b.push('"',a.replace(Ad,function(c){if(c in zd)return zd[c];var d=c.charCodeAt(0),f="\\u";if(d<16)f+="000";else if(d<256)f+="00";else if(d<4096)f+="0";return zd[c]=f+d.toString(16)}),'"')};xd.prototype.NIa=function(a,b){b.push(isFinite(a)&&!isNaN(a)?a:"null")};
xd.prototype.LIa=function(a,b){var c=a.length;b.push("[");for(var d="",f=0;f<c;f++){b.push(d);this.IS(a[f],b);d=","}b.push("]")};xd.prototype.OIa=function(a,b){b.push("{");var c="";for(var d in a)if(a.hasOwnProperty(d)){var f=a[d];if(typeof f!="function"){b.push(c);this.Aba(d,b);b.push(":");this.IS(f,b);c=","}}b.push("}")};var Bd=/^(?:([^:\/?#]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/?#:@]*)(?::([0-9]+))?)?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,Cd=function(a){return a.match(Bd)},Dd=/#|$/;var Ed=function(a,b){var c;if(a instanceof Ed){this.Zu(b==k?a.Rsa():b);this.rr(a.Hl());this.TH(a.k5());this.mo(a.Ih());this.to(a.Hn());this.pr(a.gg());this.lA(a.Dl().ua());this.oo(a.Ri())}else if(a&&(c=Cd(String(a)))){this.Zu(!!b);this.rr(c[1]||"",j);this.TH(c[2]||"",j);this.mo(c[3]||"",j);this.to(c[4]);this.pr(c[5]||"",j);this.sca(c[6]||"",j);this.oo(c[7]||"",j)}else{this.Zu(!!b);this.Qe=new Fd(k,this,this.ck)}};q=Ed.prototype;q.jm="";q.zv="";q.Gs="";q.yu=k;q.xu="";q.Ys="";q.TAa=l;q.ck=l;
q.toString=function(){if(this.xh)return this.xh;var a=[];this.jm&&a.push(Gd(this.jm,Hd),":");if(this.Gs){a.push("//");this.zv&&a.push(Gd(this.zv,Hd),"@");a.push(Id(this.Gs));this.yu!=k&&a.push(":",String(this.Hn()))}this.xu&&a.push(Gd(this.xu,Jd));var b=String(this.Qe);b&&a.push("?",b);this.Ys&&a.push("#",Gd(this.Ys,Kd));return this.xh=a.join("")};
q.$G=function(a){var b=this.ua(),c=a.my();if(c)b.rr(a.Hl());else c=a.Hya();if(c)b.TH(a.k5());else c=a.ly();if(c)b.mo(a.Ih());else c=a.Aya();var d=a.gg();if(c)b.to(a.Hn());else if(c=a.ZO()){if(d.charAt(0)!="/")if(this.ly()&&!this.ZO())d="/"+d;else{var f=b.gg().lastIndexOf("/");if(f!=-1)d=b.gg().substr(0,f+1)+d}d=Ld(d)}if(c)b.pr(d);else c=a.Bya();if(c)b.sca(a.Ura());else c=a.xya();c&&b.oo(a.Ri());return b};
q.ua=function(){var a,b=this.jm,c=this.zv,d=this.Gs,f=this.yu,g=this.xu,h=this.Qe.ua(),i=this.Ys,m=new Ed(k,this.ck);b&&m.rr(b);c&&m.TH(c);d&&m.mo(d);f&&m.to(f);g&&m.pr(g);h&&m.lA(h);i&&m.oo(i);return a=m};q.Hl=function(){return this.jm};q.rr=function(a,b){this.Li();delete this.xh;if(this.jm=b?Md(a):a)this.jm=this.jm.replace(/:$/,"");return this};q.my=function(){return!!this.jm};q.k5=function(){return this.zv};q.TH=function(a,b){this.Li();delete this.xh;this.zv=b?Md(a):a;return this};q.Hya=function(){return!!this.zv};
q.Ih=function(){return this.Gs};q.mo=function(a,b){this.Li();delete this.xh;this.Gs=b?Md(a):a;return this};q.ly=function(){return!!this.Gs};q.Hn=function(){return this.yu};q.to=function(a){this.Li();delete this.xh;if(a){a=Number(a);if(isNaN(a)||a<0)e(Error("Bad port number "+a));this.yu=a}else this.yu=k;return this};q.Aya=function(){return this.yu!=k};q.gg=function(){return this.xu};q.pr=function(a,b){this.Li();delete this.xh;this.xu=b?Md(a):a;return this};q.ZO=function(){return!!this.xu};
q.Bya=function(){return this.Qe.toString()!==""};q.lA=function(a,b){this.Li();delete this.xh;if(a instanceof Fd){this.Qe=a;this.Qe.ab=this;this.Qe.Zu(this.ck)}else{b||(a=Gd(a,Nd));this.Qe=new Fd(a,this,this.ck)}return this};q.sca=function(a,b){return this.lA(a,b)};q.hsa=function(){return this.Qe.toString()};q.Ura=function(){return this.Qe.MNa()};q.Dl=function(){return this.Qe};q.Aua=function(){return this.hsa()};q.$=function(a,b){this.Li();delete this.xh;this.Qe.G(a,b);return this};
q.FH=function(a,b){this.Li();delete this.xh;ia(b)||(b=[String(b)]);this.Qe.zLa(a,b);return this};q.mua=function(a){return this.Qe.Hd(a)};q.Hf=function(a){return this.Qe.z(a)};q.Ri=function(){return this.Ys};q.oo=function(a,b){this.Li();delete this.xh;this.Ys=b?Md(a):a;return this};q.xya=function(){return!!this.Ys};q.P8=function(){this.Li();this.$("zx",db());return this};q.removeParameter=function(a){this.Li();this.Qe.remove(a);return this};q.Li=function(){if(this.TAa)e(Error("Tried to modify a read-only Uri"))};
q.Zu=function(a){this.ck=a;this.Qe&&this.Qe.Zu(a)};q.Rsa=function(){return this.ck};
var Od=function(a,b){return a instanceof Ed?a.ua():new Ed(a,b)},Ld=function(a){if(a==".."||a==".")return"";else if(!Sa(a,"./")&&!Sa(a,"/."))return a;else{for(var b=wa(a,"/"),c=a.split("/"),d=[],f=0;f<c.length;){var g=c[f++];if(g==".")b&&f==c.length&&d.push("");else if(g==".."){if(d.length>1||d.length==1&&d[0]!="")d.pop();b&&f==c.length&&d.push("")}else{d.push(g);b=j}}return d.join("/")}},Md=function(a){return a?decodeURIComponent(a):""},Id=function(a){if(y(a))return encodeURIComponent(a);return k},
Pd=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/,Gd=function(a,b){var c=k;if(y(a)){c=a;Pd.test(c)||(c=encodeURI(a));if(c.search(b)>=0)c=c.replace(b,Qd)}return c},Qd=function(a){var b=a.charCodeAt(0);return"%"+(b>>4&15).toString(16)+(b&15).toString(16)},Hd=/[#\/\?@]/g,Jd=/[\#\?]/g,Nd=/[\#\?@]/g,Kd=/#/g,Fd=function(a,b,c){this.sl=a||k;this.ab=b||k;this.ck=!!c};
Fd.prototype.Mi=function(){if(!this.lc){this.lc=new xc;if(this.sl)for(var a=this.sl.split("&"),b=0;b<a.length;b++){var c=a[b].indexOf("="),d=k,f=k;if(c>=0){d=a[b].substring(0,c);f=a[b].substring(c+1)}else d=a[b];d=La(d);d=this.Cn(d);this.add(d,f?La(f):"")}}};
var Rd=function(a,b,c){var d=qc(a);if(typeof d=="undefined")e(Error("Keys are undefined"));var f,g=d,h=pc(a),i=b,m=c;if(g.length!=h.length)e(Error("Mismatched lengths for keys/values"));for(var n=new Fd(k,i,m),o=0;o<g.length;o++)n.add(g[o],h[o]);return f=n};q=Fd.prototype;q.lc=k;q.Z=k;q.ma=function(){this.Mi();return this.Z};q.add=function(a,b){this.Mi();this.$t();a=this.Cn(a);if(this.me(a)){var c=this.lc.z(a);ia(c)?c.push(b):this.lc.G(a,[c,b])}else this.lc.G(a,b);this.Z++;return this};
q.remove=function(a){this.Mi();a=this.Cn(a);if(this.lc.me(a)){this.$t();var b=this.lc.z(a);if(ia(b))this.Z-=b.length;else this.Z--;return this.lc.remove(a)}return l};q.clear=function(){this.$t();this.lc&&this.lc.clear();this.Z=0};q.Ea=function(){this.Mi();return this.Z==0};q.me=function(a){this.Mi();a=this.Cn(a);return this.lc.me(a)};q.ns=function(a){var b=this.Hd();return zb(b,a)};
q.vb=function(){this.Mi();for(var a=this.lc.Hd(),b=this.lc.vb(),c=[],d=0;d<b.length;d++){var f=a[d];if(ia(f))for(var g=0;g<f.length;g++)c.push(b[d]);else c.push(b[d])}return c};q.Hd=function(a){this.Mi();var b;if(a){var c=this.Cn(a);if(this.me(c)){var d=this.lc.z(c);if(ia(d))return d;else{b=[];b.push(d)}}else b=[]}else{var f=this.lc.Hd();b=[];for(var g=0;g<f.length;g++){var h=f[g];ia(h)?Hb(b,h):b.push(h)}}return b};
q.G=function(a,b){this.Mi();this.$t();a=this.Cn(a);if(this.me(a)){var c=this.lc.z(a);if(ia(c))this.Z-=c.length;else this.Z--}this.lc.G(a,b);this.Z++;return this};q.z=function(a,b){this.Mi();a=this.Cn(a);if(this.me(a)){var c=this.lc.z(a);return ia(c)?c[0]:c}else return b};q.zLa=function(a,b){this.Mi();this.$t();a=this.Cn(a);if(this.me(a)){var c=this.lc.z(a);if(ia(c))this.Z-=c.length;else this.Z--}if(b.length>0){this.lc.G(a,b);this.Z+=b.length}};
q.toString=function(){if(this.sl)return this.sl;if(!this.lc)return"";for(var a=[],b=0,c=this.lc.vb(),d=0;d<c.length;d++){var f=c[d],g=Ka(f),h=this.lc.z(f);if(ia(h))for(var i=0;i<h.length;i++){b>0&&a.push("&");a.push(g,"=",Ka(h[i]));b++}else{b>0&&a.push("&");a.push(g,"=",Ka(h));b++}}return this.sl=a.join("")};q.MNa=function(){if(!this.ys)this.ys=Md(this.toString());return this.ys};q.$t=function(){delete this.ys;delete this.sl;this.ab&&delete this.ab.xh};
q.ua=function(){var a=new Fd;if(this.ys)a.ys=this.ys;if(this.sl)a.sl=this.sl;if(this.lc)a.lc=this.lc.ua();return a};q.Cn=function(a){var b=String(a);if(this.ck)b=b.toLowerCase();return b};q.Zu=function(a){var b=a&&!this.ck;if(b){this.Mi();this.$t();uc(this.lc,function(c,d){var f=d.toLowerCase();if(d!=f){this.remove(d);this.add(f,c)}},this)}this.ck=a};q.extend=function(){for(var a=0;a<arguments.length;a++){var b=arguments[a];uc(b,function(c,d){this.add(d,c)},this)}};var E=function(a,b){function c(){}c.prototype=b.prototype;a.e=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.prototype.VR=a},G=function(a){if(!a.Zt)a.Zt=new a;return a.Zt};t("knol.getSingleton",G,undefined);var Sd=function(a,b,c){for(var d in b)if(c||!(d in a))a[d]=b[d]};(function(){})();var Td=function(a,b,c){if(a.length!=b.length)return k;this.aNa(a,c);this.XOa=b};Td.prototype.aNa=function(a,b){this.UFa=a;for(var c=1;c<a.length;c++)if(a[c]==k)a[c]=a[c-1]+1;else if(b)a[c]+=a[c-1]};Td.prototype.Bja=function(a){var b=this.jta(a);if(b<0)return k;return this.XOa[b]};Td.prototype.jta=function(a){for(var b=this.UFa,c=0,d=b.length;d-c>8;){var f=d+c>>1;if(b[f]<=a)c=f;else d=f}for(;c<d;++c)if(a<b[c])break;return c-1};var Ud=5,Vd=6,Wd=7,$d=k,ae=function(a,b){if(a==10&&b==11)return l;if(a==1||a==10||a==11)return j;if(b==1||b==10||b==11)return j;if(a==Ud&&(b==Ud||b==Vd||b==8||b==9))return l;if((a==8||a==Vd)&&(b==Vd||b==Wd))return l;if((a==9||a==Wd)&&b==Wd)return l;if(b==2)return l;return j},be=function(a){if(44032<=a&&a<=55203){if(a%28==16)return 8;return 9}else{$d||($d=new Td([0,10,1,2,1,18,95,33,13,1,594,112,275,7,263,45,1,1,1,2,1,2,1,1,56,4,12,11,48,20,17,1,101,7,1,7,2,2,1,4,33,1,1,1,30,27,91,11,58,9,269,2,1,
56,1,1,3,8,4,1,3,4,13,2,29,1,2,56,1,1,1,2,6,6,1,9,1,10,2,29,2,1,56,2,3,17,30,2,3,14,1,56,1,1,3,8,4,1,20,2,29,1,2,56,1,1,2,1,6,6,11,10,2,30,1,59,1,1,1,12,1,9,1,41,3,58,3,5,17,11,2,30,2,56,1,1,1,1,2,1,3,1,5,11,11,2,30,2,58,1,2,5,7,11,10,2,30,2,70,6,2,6,7,19,2,60,11,5,5,1,1,8,97,13,3,5,3,6,74,2,27,1,1,1,1,1,4,2,49,14,1,5,1,2,8,45,9,1,100,2,4,1,6,1,2,2,2,23,2,2,4,3,1,3,2,7,3,4,13,1,2,2,6,1,1,1,112,96,72,82,357,1,946,3,29,3,29,2,30,2,64,2,1,7,8,1,2,11,9,1,45,3,155,1,118,3,4,2,9,1,6,3,116,17,7,2,77,2,3,
228,4,1,47,1,1,5,1,1,5,1,2,38,9,12,2,1,30,1,4,2,2,1,121,8,8,2,2,392,64,523,1,2,2,24,7,49,16,96,33,3311,32,554,6,105,2,30164,4,9,2,388,1,3,1,4,1,23,2,2,1,88,2,50,16,1,97,8,25,11,2,213,6,2,2,2,2,12,1,8,1,1,434,11172,9082,1,737,16,16,7,216,1,158,2,89,3,513,1,2051,15,40,8,50981,1,1,3,3,1,5,8,8,2,7,30,4,148,3,798140,255],[1,11,1,10,1,0,1,0,1,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,1,0,2,0,2,0,2,0,2,1,2,0,2,0,2,0,1,0,2,0,2,0,2,0,2,0,2,4,0,2,0,4,2,4,2,0,2,0,2,0,2,4,0,2,0,2,4,2,4,2,0,2,0,2,0,2,4,0,2,4,2,0,2,0,2,4,
0,2,0,4,2,4,2,0,2,0,2,4,0,2,0,2,4,2,4,2,0,2,0,2,0,2,4,2,4,2,0,2,0,4,0,2,4,2,0,2,0,4,0,2,0,4,2,4,2,4,2,4,2,0,2,0,4,0,2,4,2,4,2,0,2,0,4,0,2,4,2,4,2,4,0,2,0,3,2,0,2,0,2,0,3,0,2,0,2,0,2,0,2,0,2,0,4,0,2,4,2,0,2,0,2,0,2,0,4,2,4,2,4,2,4,2,0,4,2,0,2,0,4,0,4,0,2,0,2,4,2,4,2,0,4,0,5,6,7,0,2,0,2,0,2,0,2,0,2,0,1,4,2,4,2,4,2,0,2,0,2,0,2,0,2,4,2,4,2,4,2,0,4,0,4,0,2,4,0,2,4,0,2,4,2,4,2,4,2,4,0,2,0,2,4,0,4,2,4,2,4,0,4,2,4,2,0,2,0,1,2,1,0,1,0,1,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,4,2,4,0,4,0,4,2,0,2,0,2,4,0,2,4,
2,4,2,0,2,0,2,4,0,9,0,2,0,2,0,2,0,1,0,2,0,1,0,2,0,2,0,2,0,2,4,2,0,4,2,1,2,0,2,0,2,0,2,0,1,2],j));return $d.Bja(a)}},ce=function(a,b,c){var d=be(a),f=be(b);return ae(d,f)&&!(c&&(d==3||f==4))};var de,ee,fe,ge,he,ie,je,ke,le,me,ne=function(){return ba.navigator?ba.navigator.userAgent:k},qe=function(){return ba.navigator};ie=he=ge=fe=ee=de=l;var re;if(re=ne()){var se=qe();de=re.indexOf("Opera")==0;ee=!de&&re.indexOf("MSIE")!=-1;ge=(fe=!de&&re.indexOf("WebKit")!=-1)&&re.indexOf("Mobile")!=-1;ie=(he=!de&&!fe&&se.product=="Gecko")&&se.vendor=="Camino"}var te=de,I=ee,J=he,ue=fe,ve=ge,we,xe=qe(),ye=we=xe&&xe.platform||"";je=Sa(ye,"Mac");ke=Sa(ye,"Win");le=Sa(ye,"Linux");
me=!!qe()&&Sa(qe().appVersion||"","X11");var ze=je,Ae=ke,Be=le,Ce=me,De,Ee="",Ke;if(te&&ba.opera){var Le=ba.opera.version;Ee=typeof Le=="function"?Le():Le}else{if(J)Ke=/rv\:([^\);]+)(\)|;)/;else if(I)Ke=/MSIE\s+([^\);]+)(\)|;)/;else if(ue)Ke=/WebKit\/(\S+)/;if(Ke){var Me=Ke.exec(ne());Ee=Me?Me[1]:""}}var Ne=De=Ee,Oe={},Pe=function(a){return Oe[a]||(Oe[a]=fb(Ne,a)>=0)};var Re=function(a,b,c){var d=c||10;if(d>a.length)return a;for(var f=[],g=0,h=0,i=0,m=0,n=0;n<a.length;n++){var o=m;m=a.charCodeAt(n);var p=m>=768&&!b(o,m,j);if(g>=d&&m>32&&!p){f.push(a.substring(i,n),Qe);i=n;g=0}if(h)if(m==62&&h==60)h=0;else{if(m==59&&h==38){h=0;g++}}else if(m==60||m==38)h=m;else if(m<=32)g=0;else g++}f.push(a.substr(i));return f.join("")},Qe=ue?"<wbr></wbr>":te?"&shy;":"<wbr>";var Te=function(a,b){var c=b||Se;if(!r(a))return"undefined";if(a==k)return"NULL";var d=[];for(var f in a)if(!c(f,a[f])){var g=f+" = ";try{g+=a[f]}catch(h){g+="*** "+h+" ***"}d.push(g)}return d.join("\n")},Ue=function(a,b){var c=b||Se,d=new Ac,f=[],g=0,h=function(i,m,n){var o=m+"\u00a0\u00a0",p=function(w){return w?w.replace(/\n/g,"\n"+m):""};try{if(r(i))if(ga(i))f.push("NULL");else if(y(i))f.push('"'+p(i)+'"');else if(la(i))f.push(p(String(i)));else if(ma(i))if(d.contains(i))f.push("*** reference loop detected ***");
else if(g>100)f.push("...");else{++g;d.add(i);if(pa(i)){f.push("{");if("Node"in ba&&i instanceof Node){f.push("\n");if("innerHTML"in i)f.push("<pre>"+i.innerHTML+"</pre>");else"innerText"in i?f.push(i.innerText):f.push("*** cannot expose Node type objects ***")}else if(i instanceof xc)for(var s in i){if(!c(n+"."+s,i.z(s))){f.push("\n");f.push(o);f.push(s+" = ");h(i.z(s),o,n+"."+s)}}else for(var u in i)if(!c(n+"."+u,i[u])){f.push("\n");f.push(o);f.push(u+" = ");h(i[u],o,n+"."+u)}f.push("\n"+m+"}")}else f.push("*** cannot hash ***")}else f.push(i);
else f.push("undefined")}catch(v){f.push("*** "+v+" ***")}};h(a,"","");return f.join("")},Ve=/closure_hashCode_/i,Se=function(a,b){return la(b)||a.search(Ve)!=-1};var We,Xe=function(){var a=Math.random()+ua()/1000000;return a-Math.floor(a)},Ye=function(a){if(ma(a)&&!la(a)){function b(){}b.prototype=a.constructor.prototype;b.constructor=a.constructor;var c=ia(a)?[]:new b;for(var d in a)c[d]=Ye(a[d]);return c}return a},Ze=function(a){return Ra(Aa(a))},$e=ba._knol_evaluated_results_||{},af=$e.ssjsConfig,bf=function(a){if(!We){var b={},c=af,d=D("knol.Common");if(c)for(var f=c.split(","),g=0;g<f.length;g++){var h=f[g];if(h.length){var i=h.split("=");if(i[0])b[i[0]]=
i[1]}}else d.S("ssjsConfig missing!");We=b}return We[a]},cf=function(){var a=bf("buildMessage");if(!a||a.match(/build/))return 31337;try{return Number(a.match(/\d+/)[0])}catch(b){var c=D("knol.Common");c.S("Invalid build string: "+a);return k}},df=function(){return bf("defaultDomainPrefix")||"/"},ef=function(){var a=df();if(xa(a,"/"))a=a.substring(0,a.length-1);return a},ff=function(a){var b=[{IP:I,version:"6.0"},{IP:J,version:"1.8.1"},{IP:ue,version:"526"}];return vb(b,function(c){return c.IP&&(!a||
Pe(c.version))})},gf=l,hf=function(){gf=j},jf=function(a){return a?a.replace(/<[^>]*>/g,""):""},kf=function(a,b){if(!a||a.length<=b)return a||"";a=Ha(Ga(a.replace(/\xa0|\s/g," ")));if(a.length<=b)return a;var c=a.substring(0,b);c=Ha(c);if(c.length<b)return c+"...";if(a[b]==" ")return c+"...";for(var d=Math.ceil(2*c.length/3),f=c.length-1;f>d;f--)if(c[f]==" ")return c.substring(0,f)+"...";return c+"..."},lf=function(a){if(!a)return"";return a=Re(a,ce,20)},of=function(a,b,c){if(!a)return"";if(b)a=Xa(a,
b);a=Ze(a);c||(a=lf(a));return a},pf=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,6}$/i,qf=function(a){var b=yd(a);return b=b.replace(/</g,"\\u003C").replace(/>/g,"\\u003E")},tf=function(a){var b=a?rf(a):sf();window.location=b},rf=function(a){var b=new Ed(a),c=b.gg();c==ef()&&b.pr(c+"/");var d=new Ed(sf());d.$("continue",b.toString());return d.toString()},wf=function(a){var b=K(a);if(b){var c="",d="";if(b instanceof uf){c=b.Wi();d=b.Sj()}else if(b instanceof vf){c=b.Mh();d=b.ea()}else return"";var f=N({b:"a",
href:d,d:c});return f}return""},xf=function(a){var b="<!-- google_ad_section_start";if(a)b+="(weight=ignore)";b+=" --\>";return b},yf=function(a){var b=(new Date).getTime(),c=(a instanceof Date?a:new Date(a)).getTime(),d=b-c;if(d<=3600000){var f=Math.floor(d/60000);if(f<=1)return"One minute ago";else{var g=f+" minutes ago";return g}}else if(d<=86400000){var h=Math.floor(d/3600000);if(h<=1)return"One hour ago";else{var i=h+" hours ago";return i}}else if(d<=604800000){var m=Math.floor(d/86400000);if(m<=
1)return"One day ago";else{var n=m+" days ago";return n}}else return""},zf=function(a,b){var c=bf("jstimingSampling");if(c){c=Number(c);c==0||Math.random()>=c||window.setTimeout(function(){try{window.jstiming.report(a,b)}catch(d){var f=D("knol.Common");f.S("Failed to report timings",d)}},0)}},Af=function(){var a=new Ed(document.location.href),b=a.Hf("gl");if(b)return b.toUpperCase();return _reqCountry},Bf=function(a){return a+"_OFFLINE"},Cf=function(a,b,c){var d=new Ed(sf());if(I){var f=c||b,g=new Ed(a);
g.$(f,"1");a=g.toString()}else a+="#"+b;d.$("continue",a);return d.toString()},Df=function(a,b){if(a&&wa(a,b))return a.replace(b,"");return k};var Ef=function(){},Ff=function(){return D("knol.Persistent")},O=function(a,b,c){if(!a||!b||!c)Ff().za("bad params to  knol.Persistent.registerGetter -  ctor:"+a+" func:"+b+" name:"+c);if(!a.yB)a.yB={};a.yB[c]=b;Gf(a,c)},Gf=function(a,b){if(!a||!b)Ff().za("bad params to  knol.Persistent.registerProperty -  ctor:"+a+" name:"+b);if(!a.IB)a.IB=[];a.IB.push(b)},Hf=function(a,b){if(!a||!b)Ff().za("bad params to  knol.Persistent.registerJsonProperty -  ctor:"+a+" name:"+b);if(!a.BB)a.BB=[];a.BB.push(b)};
Ef.prototype.serialize=k;Ef.prototype.parse=k;Ef.prototype.I7=j;
var Jf=function(a){var b=Ff();if(!a)return a;var c,d=a?a.VR||a.constructor:k;if(If(d))c=a;else if(d==Array){c=[];for(var f=0;f<a.length;f++)c.push(Jf(a[f]))}else if(typeof a==="function")return undefined;else if(a instanceof Ef||a.I7)c=la(a.serialize)?a.serialize():Kf(a);else if(d==Object){c={};for(var g in a)g.search(Ve)!=-1||(c[g]=Jf(a[g]))}else{b.S("serializing an object that is not persistent");c=a}return c},If=function(a){return!a||a==Number||a==String||a==Boolean},Kf=function(a){Ff();for(var b=
{},c=a.constructor;c;){for(var d=c.IB||a.IB||[],f=c.yB||a.yB||{},g=0;g<d.length;g++){var h=d[g],i=undefined;i=h in f?f[h].apply(a):a[h];if(r(i)){var m=Jf(i);if(r(m))b[h]=m}}for(var n=c.BB||a.BB||[],o=0;o<n.length;o++){for(var p=n[o],s=p.split("."),u=s[s.length-1],v=a,w=0;w<s.length;w++)if(s[w]in v)v=v[s[w]];else{v=k;break}if(y(v))b[u]=wd(v);else if(v)b[u]=sa(v)}c=c.e?c.e.constructor:k}return b},Lf=function(a,b){var c=Ff();if(la(a.R))try{a.R(b)}catch(d){c.za("could not deserialize",d)}else Sd(a,b,
j)};var Mf=function(){this.I7=j},Nf=new Mf;window.manifest={serverBase:"/c"};
var Of=function(a){var b=D("knol.Global");try{for(var c=["evaluations","authorId","author","knolMetaId","knolMeta","knolId","knol","knolPageVersion","userId","baseUri","knolCanonicalUri","knolBaseUri","signInUrl","pubSignOutUrl","unpubSignOutUrl","locale","pageType"],d=0;d<c.length;d++)if(a[c[d]])Nf[c[d]]=a[c[d]]}catch(f){b.za("could not deserialize global data",f)}},Rf=function(a,b,c,d,f){if(a>0&&a<3){Nf.evaluations||(Nf.evaluations=[]);Nf.evaluations[a]||(Nf.evaluations[a]=[]);var g,h=b,i=c,m=d,
n=f,o="";if(h){if(!Pf(h))e("Invalid constructor name: "+h);var p=Qf(i);o+="new "+h+"("+p+")"}if(m){if(h)o+=".";if(!Pf(m))e("Invalid function name: "+m);p=Qf(n);o+=m+"("+p+")"}g=o;Nf.evaluations[a].push(g)}else e(new Error("bad evaluation type"))},Sf=/^[a-zA-Z0-9()\._ ]+$/,Pf=function(a){if(!Sf.test(a))return l;if(xa(a,")"))return l;return j},Qf=function(a){var b=[];a&&C(a,function(c){b.push(Tf(c))});return b.join(",")},Tf=function(a){if(r(a))if(ga(a))return"null";else if(y(a))return'"'+Uf(a)+'"';
else if(typeof a=="boolean"||ka(a))return a+"";else if(ia(a)){var b=[];C(a,function(c){b.push(Tf(c))});return"["+b.join(",")+"]"}else e("Invalid parameter type");else return"undefined"},Uf=function(a){if(!a)return a;for(var b=[],c=0;c<a.length;c++)b.push(Vf(a[c]));return b.join("")},Wf={},Vf=function(a){if(a in Wf)return Wf[a];var b=a.charCodeAt(0),c=b.toString(16).toUpperCase(),d="\\u"+$a("0",Math.max(0,4-c.length))+c;return Za[a]=d},Yf=function(a){if(a>0&&a<3){Xf()[a]||(Nf.evaluations[a]=[]);return Nf.evaluations[a]}},
Xf=function(){Nf.evaluations||(Nf.evaluations=[]);return Nf.evaluations};O(Mf,Xf,"evaluations");var Zf=function(a){Nf.evaluations&&delete Nf.evaluations[a]},bg=function(){var a=ag();return a?K(a):k};O(Mf,bg,"author");var ag=function(){return Nf.authorId||k};O(Mf,ag,"authorId");var P=function(){var a=cg();return a?K(a):k};O(Mf,P,"knolMeta");var cg=function(){return Nf.knolMetaId||k};O(Mf,cg,"knolMetaId");var fg=function(){var a=dg(),b=eg();return a?K({nodeId:a,version:b}):k};O(Mf,fg,"knol");
var dg=function(){return Nf.knolId||k};O(Mf,dg,"knolId");var eg=function(){return Nf.knolPageVersion||0};O(Mf,eg,"knolPageVersion");var Q=function(){var a=gg();return a?K(a):k},gg=function(){return Nf.userId||k},hg=function(){return req.user?"":k},ig=function(){return Nf.baseUri||k};O(Mf,ig,"baseUri");var jg=function(){return Nf.knolBaseUri||k};O(Mf,jg,"knolBaseUri");var kg=function(){return Nf.knolCanonicalUri||k};O(Mf,kg,"knolCanonicalUri");
var sf=function(){var a=Nf.signInUrl;if(a){var b=new Ed(a),c=b.Hf("continue");if(c){c=new Ed(String(c));var d=new Ed(window.location.href);if(c.Ih()!=d.Ih()||c.Hn()!=d.Hn()){c.mo(d.Ih());c.to(d.Hn());b.$("continue",c.toString());a=b.toString()}}}return a||k};O(Mf,sf,"signInUrl");var lg=function(){return Nf.pubSignOutUrl||k};O(Mf,lg,"pubSignOutUrl");var mg=function(){return Nf.unpubSignOutUrl||k};O(Mf,mg,"unpubSignOutUrl");var ng=function(){return Nf.newGaiaAccountUrl||k};O(Mf,ng,"newGaiaAccountUrl");
var og=function(){return Nf.locale||"en"};O(Mf,og,"locale");var pg=function(){return Nf.pageType};O(Mf,pg,"pageType");
var qg=function(){var a=og();return a!="en"?"_"+a:""},sg=function(){var a=rg();if(a)return"_"+a;return qg()},tg=function(a){var b=a||og();return undefined!=pd[b]},vg=function(a){var b=a||og();return zb(ug,b)},wg=["SA","IQ","EG","LY","DZ","MA","TN","OM","YE","SY","JO","LB","KW","BH","QA"],ug=["IN","PK"],xg=function(a){var b=a||Af();return b=="IL"||b=="PK"||zb(wg,b)},yg=function(a){var b=a||Af();return zb(ug,b)},zg=function(a){var b=k;b=window.location.href;var c=new Ed(b),d=a||dg(),f=d?K(d):k;if(!d||
!f)e(new Error("there is no known knol from which to obtain a canonical URL"));c.pr(f.Dx());c.lA(k);c.oo("");return c.toString()},rg=function(){var a;a=window.location.href;var b=new Ed(a),c=b.Hf("country_domain");if(c)return c.toLowerCase();var d=window.location.hostname,f=d.lastIndexOf(".");if(f>=0){var g=d.substring(f+1);return g.length==2?g.toLowerCase():k}};var Ag,Bg=function(){if(Ag)return Ag;Ag=this;this.zWa=Qc;this.u=Zc();var a=typeof window!="undefined"&&window.navigator.userAgent;if(a){if(window.console){this.UZ=new ad;this.UZ.rJa(j);this.UZ.xsa().xT=j}}else this.u.MX(z(this.jCa,this))};t("gsites.Logger",Bg,undefined);q=Bg.prototype;q.message=function(a,b,c){this.u.log(a,b,c)};q.C=function(a,b){this.message(Qc,a,b)};q.S=function(a,b){this.message(Pc,a,b)};q.za=function(a,b){b||(b=new Error("unknown error"));this.message(Oc,a,b)};
q.tb=function(a,b){this.za(a,b)};q.jCa=function(a){try{var b=a.Yp().value;jot.lib.knol.jslog(b,a.JN(),a.Vj(),String(a.kN()),dg(),gg())}catch(c){var d=[a.Yp().value,a.JN(),a.Vj(),a.kN(),c];jot.lib.admin.log(d.join(" "))}};var Cg=function(){xc.call(this)};E(Cg,xc);Cg.prototype.add=function(a,b){if(this.me(a))e(Error('The collection already contains the key "'+a+'"'));else this.G(a,b)};var Dg=function(a){xc.call(this);if(a){var b=a;this.qw=function(){};this.qw.prototype=b.prototype;this.qw.constructor=b}};E(Dg,Cg);Sd(Dg.prototype,Ef.prototype);Dg.prototype.serialize=function(){for(var a={},b=this.vb(),c=0;c<b.length;c++)a[b[c]]=Jf(this.z(b[c]));return a};Dg.prototype.ina=function(){return this.qw?new this.qw:k};
Dg.prototype.R=function(a){if(this.ma()!=0)e(new Error("cannot deserialize a map representation into a map that has "+this.ma()+" items."));if(a)for(var b in a)if(b.search(Ve)==-1){var c=k;if(this.qw){c=this.ina();c.R?c.R(a[b]):Sd(c,a[b],j)}else c=a[b];this.G(b,c)}};var Eg,Fg,Gg="ScriptEngine"in ba;Fg=(Eg=Gg&&ba.ScriptEngine()=="JScript")?ba.ScriptEngineMajorVersion()+"."+ba.ScriptEngineMinorVersion()+"."+ba.ScriptEngineBuildVersion():"0";var Hg=Eg,Ig=Fg;var Jg=function(a){this.rd=Hg?[]:"";a!=k&&this.Xa.apply(this,arguments)};Jg.prototype.G=function(a){this.clear();this.Xa(a)};if(Hg){Jg.prototype.cK=0;Jg.prototype.Xa=function(a,b){if(b==k)this.rd[this.cK++]=a;else{this.rd.push.apply(this.rd,arguments);this.cK=this.rd.length}return this}}else Jg.prototype.Xa=function(a,b){this.rd+=a;if(b!=k)for(var c=1;c<arguments.length;c++)this.rd+=arguments[c];return this};Jg.prototype.clear=function(){if(Hg)this.cK=this.rd.length=0;else this.rd=""};
Jg.prototype.J3=function(){return this.toString().length};Jg.prototype.toString=function(){if(Hg){var a=this.rd.join("");this.clear();a&&this.Xa(a);return a}else return this.rd};var Kg={pQa:7,OSa:6,SQa:5,wga:4,rB:3,VQa:2,eTa:1},Mg=function(a){this.type=a||Lg().type;this.CC=this.type==3||this.type==6?l:j;this.Zr=this.type==4||this.type==7?2:3};E(Mg,Ef);var Ng=new Mg(1),Og=new Mg(5);Mg.prototype.CC=j;Mg.prototype.Zr=3;var Lg=function(){switch(rg()){case "kr":return Og;default:return Ng}};
Mg.prototype.toString=function(){switch(this.type){case 2:return"copyright";case 1:case 4:case 3:case 5:case 7:case 6:var a=new Jg("by");this.CC||a.Xa("-nc");switch(this.Zr){case 1:a.Xa("-nd");break;case 2:a.Xa("-sa");break}var b=this.TM();if(b){a.Xa("-");a.Xa(b.toUpperCase())}return a.toString()}};Mg.prototype.serialize=function(){return this.toString()};
var Pg=function(a){if(!a)return new Mg;var b=a.split("-");switch(b[0]){case "copyright":return new Mg(2);case "by":var c;if(b.length&&b[b.length-1]=="KR"){c=new Mg(5);if(zb(b,"nc")){c=new Mg(6);c.CC=l}if(zb(b,"nd"))c.Zr=1;else if(zb(b,"sa")){c=new Mg(7);c.Zr=2}}else{c=new Mg(1);if(zb(b,"nc")){c=new Mg(3);c.CC=l}if(zb(b,"nd"))c.Zr=1;else if(zb(b,"sa")){c=new Mg(4);c.Zr=2}}return c;default:e(new Error("Invalid license code: "+a))}};q=Mg.prototype;
q.parse=function(a){if(a){var b=Pg(a.replace(/"/g,""));Sd(this,b,j)}};
q.Uj=function(a){switch(this.type){case 2:return"All Rights Reserved.";case 3:if(a)return"Some Rights Reserved (CC-by-NC). Creative Commons Attribution-Noncommercial 3.0 License";return"Creative Commons Attribution-Noncommercial 3.0 License";case 4:return"Creative Commons Attribution-Share Alike 3.0 License";case 5:if(a)return"Some Rights Reserved (CC-by). Creative Commons Attribution 2.0 Korea License";return"Creative Commons Attribution 2.0 Korea License";case 6:if(a)return"Some Rights Reserved (CC-by-NC). Creative Commons Attribution-Noncommercial 2.0 Korea License";
return"Creative Commons Attribution-Noncommercial 2.0 Korea License";case 7:return"Creative Commons Attribution-Share Alike 2.0 Korea License";default:if(a)return"Some Rights Reserved (CC-by). Creative Commons Attribution 3.0 License";return"Creative Commons Attribution 3.0 License"}};q.mta=function(){return""};
q.K3=function(){switch(this.type){case 2:return"";default:var a=this.toString(),b=this.TM();if(b){var c=a.lastIndexOf("-"+b.toUpperCase());if(c>=0)a=a.substr(0,c)}var d="http://creativecommons.org/licenses/"+a+"/"+this.Kra();if(b)d+="/"+b;return d}};q.Kra=function(){switch(this.TM()){case "kr":return"2.0";default:return"3.0"}};q.TM=function(){switch(this.type){case 5:case 6:case 7:return"kr";default:return k}};var Qg={lRa:0,XQa:1,pRa:2,ySa:3,XRa:4,NSa:5,mQa:6,kRa:7,nRa:8,jRa:9,MQa:10,oQa:11,STa:12,oTa:13,BSa:14,TTa:15,ZRa:16,tRa:17,HQa:18,BRa:19,KQa:20,ATa:21},Rg=function(){};E(Rg,Ef);Rg.prototype.R=function(a){var b=new Sg,c=new Sg;Sd(b,a.spentCounts,j);this.spentCounts=b;Sd(c,a.exhaustionCounts,j);this.exhaustionCounts=c;for(var d=["lastUpdated","quotaOverride","quotaType"],f=0;f<d.length;f++){var g=d[f];this[g]=a[g]}};var Wg=1,Xg=7;
Rg.prototype.Rx=function(){this.spentCounts||(this.spentCounts=new Sg);return this.spentCounts};O(Rg,Rg.prototype.Rx,"spentCounts");Rg.prototype.lN=function(){this.exhaustionCounts||(this.exhaustionCounts=new Sg);return this.exhaustionCounts};O(Rg,Rg.prototype.lN,"exhaustionCounts");Rg.prototype.HE=function(a){var b=this.Rx();if(!(a in b))return 0;return b[a]||0};Rg.prototype.$va=function(a){var b=this.lN();if(!(a in b))return 0;return b[a]||0};Rg.prototype.pKa=function(a){this.lastUpdated=a};
Rg.prototype.H3=function(){return this.lastUpdated||0};O(Rg,Rg.prototype.H3,"lastUpdated");var ch=function(a){switch(a){case 1:return new Yg;case 2:return new Zg;case 3:return new $g;case 4:return new ah}return new bh};Rg.prototype.dq=function(){return this.quotaType};Rg.prototype.yOa=function(){};O(Rg,Rg.prototype.dq,"quotaType");Rg.prototype.t4=function(){return ch(this.dq())};Rg.prototype.Eua=function(){var a=this.quotaOverride;return!!(a&&!ma(a))};O(Rg,Rg.prototype.Eua,"quotaOverride");q=Rg.prototype;
q.awa=function(a){if(!(a in this.t4()))return 0;return this.t4()[a]};q.s2=function(a){D("knol.Quota");this.uHa();var b=this.IM(a),c=this.HE(a);return Math.max(0,b-c)};q.IM=function(a){return this.J2(a)*Xg};q.gpa=function(a,b){var c=this.HE(a);this.Rx()[a]=Math.min(c+(b?b:1),this.IM(a))};q.lza=function(a){var b=this.$va(a);this.lN()[a]=b+1};q.uHa=function(){D("knol.Quota");var a=this.getUTCMilliseconds(),b=this.aDa(a),c=Math.max(0,b-this.H3());if(c>0){for(var d in Qg){var f=Qg[d];this.vHa(f,c)}this.pKa(b)}};
q.getUTCMilliseconds=function(){return ua()};q.vHa=function(a,b){var c=this.HE(a);if(c&&b>0){var d=Math.min(this.IM(a),this.HE(a));d-=b*this.J2(a);if(d>0)this.Rx()[a]=d;else delete this.Rx()[a]}};q.J2=function(a){return this.awa(a)*Wg};q.aDa=function(a){return Math.floor(a/86400000)};var Sg=function(){};E(Sg,Ef);Gf(Sg,String(1));Gf(Sg,String(2));Gf(Sg,String(3));Gf(Sg,String(4));Gf(Sg,String(5));Gf(Sg,String(6));Gf(Sg,String(8));Gf(Sg,String(9));Gf(Sg,String(10));Gf(Sg,String(11));Gf(Sg,String(13));
Gf(Sg,String(16));Gf(Sg,String(17));Gf(Sg,String(18));Gf(Sg,String(19));var bh=function(){this[1]=3;this[2]=75;this[3]=5;this[4]=5;this[5]=5;this[6]=150;this[8]=30;this[9]=10000;this[10]=10000;this[11]=10;this[13]=5;this[16]=2;this[17]=2;this[18]=3;this[19]=0};E(bh,Sg);var Yg=function(){this[1]=10;this[2]=150;this[3]=10;this[4]=15;this[5]=15;this[6]=300;this[8]=100;this[9]=1000000;this[10]=1000000;this[11]=30;this[13]=15;this[16]=10;this[17]=7;this[18]=3;this[19]=1};E(Yg,Sg);
var $g=function(){this[1]=1;this[2]=5;this[3]=1;this[4]=1;this[5]=1;this[6]=10;this[8]=5;this[9]=100000;this[10]=100000;this[11]=1;this[13]=1;this[16]=1;this[17]=1;this[18]=2;this[19]=0};E($g,Sg);var ah=function(){this[1]=0;this[2]=0;this[3]=0;this[4]=0;this[5]=0;this[6]=0;this[8]=2;this[9]=0;this[10]=0;this[11]=0;this[13]=0;this[16]=0;this[17]=0;this[18]=0;this[19]=0};E(ah,Sg);
var Zg=function(){this[1]=10000;this[2]=10000;this[3]=10000;this[4]=10000;this[5]=10000;this[6]=10000;this[8]=10000;this[9]=10000000;this[10]=10000000;this[11]=10000;this[13]=10000;this[16]=10000;this[17]=10000;this[18]=10;this[19]=1};E(Zg,Sg);var dh=function(a){if(a!="open"&&a!="moderated"&&a!="managed"&&a!="closed")a="moderated";this.policyType=a};E(dh,Ef);dh.prototype.serialize=function(){var a={},b=this.vE();if(b){a.policyType=b;return a}else return k};dh.prototype.R=function(a){if(a&&a.policyType)this.policyType=a.policyType};
dh.prototype.uM=function(a){if(!this.Vo){var b=new Dg;this.Vo=b;var c=[{lk:4,Jj:[[5,4],[9,4],[2,4],[10,4],[20,4],[12,4],[14,4],[15,4],[21,4]]},{lk:3,Jj:[[5,2],[9,1],[2,4],[10,a?1:4],[20,4],[12,4],[14,4],[15,4],[21,3]]},{lk:5,Jj:[[5,1],[9,1],[2,4],[10,1],[20,4],[12,4],[14,4],[15,4],[21,4]]},{lk:1,Jj:[[1,1],[2,1],[5,1],[9,1],[10,1],[20,1],[11,1],[12,1],[14,1],[15,1],[21,1]]}];eh(b,c);var d=this.vE();if(d=="moderated"||d=="open"){c=[{lk:1,Jj:[[2,3],[20,3],[5,2],[21,3]]}];eh(b,c)}if(d=="open"){c=[{lk:1,
Jj:[[1,4],[2,4],[20,4],[5,4],[11,4],[21,4]]}];eh(b,c)}if(d=="managed"){c=[{lk:4,Jj:[[5,4],[9,4],[2,6],[20,6],[10,4],[12,4],[14,1],[15,1],[21,6]]},{lk:3,Jj:[[5,2],[9,1],[2,6],[20,6],[10,a?1:4],[12,4],[14,1],[15,1],[21,6]]},{lk:5,Jj:[[5,1],[9,1],[2,4],[20,4],[10,1],[12,4],[14,4],[15,4],[21,4]]},{lk:1,Jj:[[20,1],[2,1],[5,1],[21,1]]}];eh(b,c)}}return this.Vo};dh.prototype.vE=function(){return this.policyType||k};O(dh,dh.prototype.vE,"policyType");
var gh=function(a,b,c,d){if(a){if(a.bg())return 4;if(b instanceof fh&&a.wb())return 4}var f;var g=a,h=b,i=c,m=d;if(ia(h)){for(var n=4,o=0;o<h.length;o++){var p=gh(g,h[o],i);n=n==1||p==1?1:n==5||p==5?5:Math.min(n,p)}f=n}else{if(g&&!(g instanceof uf)||!(h instanceof R)||!ka(i))e(new Error("bad params in getAccess"));var s=g?h.Lh(g.n()):1,u=h instanceof S&&h.va(),v=new dh(h.jf()),w=v?v.uM(u):new Dg;if(s==6)f=4;else if(s==7){var x=hh(g,w,h,i,3,m),B=hh(g,w,h,i,5,m),H,F=x,M=B;if(F==dh.Aga)F=1.5;else if(F==
dh.Ufa)F=3.5;if(M==dh.Aga)M=1.5;else if(M==dh.Ufa)M=3.5;H=F<M?-1:F>M?1:0;f=H>0?x:B}else f=hh(g,w,h,i,s,m)}if(a&&a.wb()&&f==1&&c==12)return 5;return f},hh=function(a,b,c,d,f,g){if(a&&!b.Ea()){var h=b.z(a.n()),i=h==4&&d==2,m=h==1,n=h==5&&d==12;if(i||m||n)return h}if(g&&c.V7(g))return 5;var o=f+"-"+d,p=b.Ea()?k:b.z(o);return p||1},ih=function(a){var b=a.split("-");if(b.length==1)return k;for(var c in Kg)if(Kg[c]==b[0])return Kg[c];return k},eh=function(a,b){C(b,function(c){C(c.Jj,function(d){a.G(c.lk+
"-"+d[0],d[1])})})};var jh=function(){};jh.prototype.Wp=function(){return this.l("image")};jh.prototype.Xi=function(){return this.l("thumbnail")};var kh=function(a){if(!y(a))e(new Error("nodeId not string"));this.BKa(a)};E(kh,Ef);kh.prototype.l=function(a,b,c,d){var f=a in this,g,h;if(c&&f){g=ua();h="ts_"+a;var i=this[h];if(!i||g-i>=c)f=l}if(!f){var m;try{m=K(this.fg())}catch(n){if(!lh(n))e(n)}var o;o=m?b?la(b)?b.call(m):m[b]():m.l(a):d;if(h)this[h]=g;this[a]=o}return this[a]};kh.prototype.$j=function(){return this.l("timestamp")};O(kh,kh.prototype.$j,"timestamp");kh.prototype.oA=function(a){this.timestamp=a};kh.prototype.fg=function(){return this.l("nodeId")};
O(kh,kh.prototype.fg,"nodeId");q=kh.prototype;q.BKa=function(a){this.nodeId=a};q.ad=function(){return this.l("title",function(){return this.ad()})};q.Mh=function(a){if(!r(this.pv)){var b=a||250;this.pv=of(this.ad(),b)||"Untitled"}return this.pv};q.Wp=function(){return this.l("image",function(){return this.Wp()})};q.Xi=function(){return this.l("thumbnail",function(){return this.Xi()})};var mh=function(a,b){kh.call(this,a);this.type=b};E(mh,kh);var nh=function(a){kh.call(this,a)};E(nh,kh);
nh.prototype.Zc=function(){return this.l("firstOwner",function(){var a=this.Zc();return K(a)})};nh.prototype.ox=function(){var a=this;return this.l("firstOwnerName",function(){return a.Zc().gb()})};O(nh,nh.prototype.ox,"firstOwnerName");nh.prototype.px=function(){var a=this;return this.l("firstOwnerUrl",function(){return a.Zc().Sj()})};O(nh,nh.prototype.px,"firstOwnerUrl");nh.prototype.Dn=function(){return this.l("knolUrl",function(){return this.$c().ea()})};O(nh,nh.prototype.Dn,"knolUrl");
nh.prototype.B3=function(){return this.l("knolDate",function(){return this.$c().bN()})};O(nh,nh.prototype.B3,"knolDate");nh.prototype.Ca=function(){return this.l("knolId",function(){return this.Ca()})};O(nh,nh.prototype.Ca,"knolId");var oh=function(a){kh.call(this,a)};E(oh,kh);oh.prototype.Qj=function(){return K(this.fg())};oh.prototype.Yw=function(){return this.l("authorUrl",uf.prototype.Sj)};O(oh,oh.prototype.Yw,"authorUrl");oh.prototype.gb=function(){var a=this.Qj();return a?a.gb():k};
oh.prototype.kt=function(){var a=this.Qj();return a?a.kt():this.l("disambiguation")};O(oh,oh.prototype.kt,"disambiguation");oh.prototype.rn=function(){var a=this.Qj();if(a)if(a.rn())return a.rn();var b=this.kt(),c=b.split("\n");return c};oh.prototype.CD=function(){return this.authorPosition||0};O(oh,oh.prototype.CD,"authorPosition");oh.prototype.i2=function(){var a=this.Qj();return a?a.Sqa():l};var ph=function(a){kh.call(this,a)};E(ph,nh);var qh=function(a){kh.call(this,a)};E(qh,kh);
qh.prototype.Qj=function(){var a=K(this.fg());if(a){var b=a.Qj();return b}else return k};qh.prototype.Yw=function(){return this.Qj().Sj()};qh.prototype.getDate=function(){return this.l("date",function(){return this.bN()})};O(qh,qh.prototype.getDate,"date");var rh=function(a){kh.call(this,a)};E(rh,nh);var sh=function(a){kh.call(this,a)};E(sh,kh);sh.prototype.Qp=function(){return this.l("editorId",function(){return this.Qp()})};O(sh,sh.prototype.Qp,"editorId");
sh.prototype.Cc=function(){return this.l("state",function(){return this.Cc()})};O(sh,sh.prototype.Cc,"state");sh.prototype.gx=function(){return this.l("contentVersion",function(){return this.gx()})};O(sh,sh.prototype.gx,"contentVersion");sh.prototype.rt=function(){return this.l("knolContentVersion",function(){return this.rt()})};O(sh,sh.prototype.rt,"knolContentVersion");sh.prototype.Xj=function(){return this.l("snippet",function(){return this.Xj()})};O(sh,sh.prototype.Xj,"snippet");
sh.prototype.jt=function(){return this.l("diffCount",function(){return this.jt()})};O(sh,sh.prototype.jt,"diffCount");sh.prototype.Ea=function(){return!this.jt()};sh.prototype.mE=function(){return this.l("magnitude",function(){return this.mE()})};O(sh,sh.prototype.mE,"magnitude");var th=function(a){kh.call(this,a)};E(th,kh);var uh=function(a){kh.call(this,a);this.$Ja(k);this.xJa(0);this.GKa(j);this.$u(k)};E(uh,oh);uh.prototype.$Ja=function(a){this.gaiaId=a};Gf(uh,"gaiaId");uh.prototype.xJa=function(a){this.contribution=a};Gf(uh,"contribution");uh.prototype.PM=function(){return this.contribution};uh.prototype.GKa=function(a){this.paid=a};Gf(uh,"paid");uh.prototype.lua=function(){return this.paid};uh.prototype.$u=function(a){this.location=a};Gf(uh,"location");Gf(uh,"INVAL_FREQ");var vh=function(){this.nLa(ua())};E(vh,Ef);vh.prototype.serialize=function(){var a={},b=this.$s();if(b!=[]){a.timeCreated=this.c5();a.showAds=this.vr();for(var c=[],d=0;d<b.length;d++)c[d]=Jf(b[d]);a.allocations=c;return a}else return k};
vh.prototype.R=function(a){if(a){if(this.$s().length!=0)e(new Error("cannot deserialize a map representation into an already populated Adsense object"));for(var b=a.allocations,c=0;b&&c<b.length;c++){var d=new wh;Sd(d,b[c],j);this.DX(d)}this.showAds=a.showAds;this.timeCreated=a.timeCreated}};vh.prototype.$s=function(){this.allocations||(this.allocations=[]);return this.allocations};O(vh,vh.prototype.$s,"allocations");
vh.prototype.DX=function(a){this.allocations||(this.allocations=[]);this.allocations.push(a);this.showAds=j};vh.prototype.vr=function(){this.showAds||(this.showAds=l);return this.showAds};O(vh,vh.prototype.vr,"showAds");vh.prototype.eLa=function(a){this.showAds=a};vh.prototype.c5=function(){this.timeCreated||this.mLa();return this.timeCreated};O(vh,vh.prototype.c5,"timeCreated");vh.prototype.nLa=function(a){this.timeCreated=a};vh.prototype.mLa=function(){this.timeCreated=ua()-2419200000};
var wh=function(a,b,c,d){this.nodeId=a;this.adSenseId=b;this.share=c||1;this.charitable=d};E(wh,Ef);wh.prototype.fg=function(){return this.nodeId||k};O(wh,wh.prototype.fg,"nodeId");wh.prototype.Tw=function(){return this.adSenseId||k};O(wh,wh.prototype.Tw,"adSenseId");wh.prototype.gq=function(){this.share||(this.share=1);return this.share};O(wh,wh.prototype.gq,"share");wh.prototype.ora=function(){return Boolean(this.charitable)};O(wh,wh.prototype.ora,"charitable");
wh.prototype.QM=function(){return this.contributionLevel||k};O(wh,wh.prototype.QM,"contributionLevel");q=vh.prototype;q.h4=function(a){if(!this.vr())return k;var b=this.Tva(),c=this.wE(),d=this.Lqa(b,c);if(!d)return k;return d.QM()?this.Dqa(a||k,d.QM()):d.Tw()?d.Tw():d.fg()?this.j5(d.fg()):k};
q.Dqa=function(a,b){if(!(a instanceof S))e(new Error("adsense expected knolMeta"));a.E2(b);var c=a.E2(b,j);if(c.jU<=0)return k;for(var d=this.wE()*c.jU,f=0;f<c.rQ.length;f++){var g=c.rQ[f],h=g.PM();if(d<h)return this.j5(g.nodeId);d-=h}return k};
q.j5=function(a){var b=K({nodeId:a,type:uf});if(!b)return k;for(var c=b.ln(),d=c.$s(),f=0,g=[],h=0;h<d.length;++h){var i=d[h];if(i.gq()>0&&i.Tw()){f+=i.gq();g.push([i.Tw(),i.gq()])}}if(f<=0)return k;var m=this.wE()*f;for(h=0;h<g.length;h++){var n=g[h];if(m<n[1])return n[0];m-=n[1]}return k};q.Tva=function(){for(var a=0,b=this.$s(),c=0;c<b.length;c++){var d=b[c];a+=Math.max(0,d.gq())}return a};
q.Lqa=function(a,b){if(a<=0)return k;b*=a;for(var c=this.$s(),d=0;d<c.length;d++){var f=c[d];if(b<f.gq())return f;b-=Math.max(0,f.gq())}return k};q.wE=function(){return this.TFa?this.TFa.wE():Xe()};var xh={"105":"Sorry, but the provided email address does not correspond to an AdSense account.  Did you want to create a new account instead?","112":"The phone number and postal code do not correspond to the AdSense account requested.","205":"This AdSense account has been disapproved.","303":"The email address you provided is already in use.  Did you mean to sign up using an existing AdSense account?","313":"The website url is not a valid website.","315":"You must accept the Terms and Conditions to create a new AdSense account.",
"317":"The email address you provided is already in use.  Did you mean to sign up using an existing AdSense account?","321":"The provided email address is not valid.","323":"The postal code is not in a valid format.  Please use the five digit postal code of the account.","324":"The phone number is not in a valid format.  Please use the last five digits of your phone number.","325":"You must provide at least one of either your phone number or postal code","327":"The locale is not supported.","9999":"Please publish at least one knol or collection to sign up for a new AdSense account"};
xh.KSa="9999";var yh=function(){this.Pm={}};yh.prototype.zX=function(a){if(a){var b=y(a)?wd(a):a,c=ac(b);if(c.length==1&&!b[c[0]].name)b=b[c[0]];for(var d in b)this.Pm[d]=b[d]}};yh.prototype.j2=function(){return ac(this.Pm)};yh.prototype.QAa=function(a){return this.Pm[a]&&!this.Pm[a].notPromo};yh.prototype.serialize=function(){return yd(this.Pm)};var zh=function(a){if(!a)return"";return a.replace(/["\/\\&<>'.,*\s#:\(\)?]/g,"")};var Ah=function(a,b){this.x=r(a)?a:0;this.y=r(b)?b:0};Ah.prototype.ua=function(){return new Ah(this.x,this.y)};var Bh=function(a,b){return new Ah(a.x-b.x,a.y-b.y)};var Ch=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};Ch.prototype.ua=function(){return new Ch(this.top,this.right,this.bottom,this.left)};Ch.prototype.contains=function(a){var b;b=!this||!a?l:a instanceof Ch?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom;return b};
Ch.prototype.expand=function(a,b,c,d){if(ma(a)){this.top-=a.top;this.right+=a.right;this.bottom+=a.bottom;this.left-=a.left}else{this.top-=a;this.right+=b;this.bottom+=c;this.left-=d}return this};var Dh=function(a,b){if(a==b)return j;if(!a||!b)return l;return a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left};var Eh=function(a,b){this.width=a;this.height=b},Fh=function(a,b){if(a==b)return j;if(!a||!b)return l;return a.width==b.width&&a.height==b.height};q=Eh.prototype;q.ua=function(){return new Eh(this.width,this.height)};q.wja=function(){return this.width*this.height};q.vY=function(){return this.width/this.height};q.Ea=function(){return!this.wja()};q.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
q.wD=function(a){return this.width<=a.width&&this.height<=a.height};q.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};q.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};q.scale=function(a){this.width*=a;this.height*=a;return this};q.gba=function(a){var b=this.vY()>a.vY()?a.width/this.width:a.height/this.height;return this.scale(b)};var Gh=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};Gh.prototype.ua=function(){return new Gh(this.left,this.top,this.width,this.height)};Gh.prototype.b7=function(a){var b=Math.max(this.left,a.left),c=Math.min(this.left+this.width,a.left+a.width);if(b<=c){var d=Math.max(this.top,a.top),f=Math.min(this.top+this.height,a.top+a.height);if(d<=f){this.left=b;this.top=d;this.width=c-b;this.height=f-d;return j}}return l};
Gh.prototype.contains=function(a){return a instanceof Gh?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};Gh.prototype.getSize=function(){return new Eh(this.width,this.height)};var Hh=function(a){return a*Math.PI/180};var Ih={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",
darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",
ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",
lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",
moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",
seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var Nh=function(a){var b={};a=String(a);var c=a.charAt(0)=="#"?a:"#"+a;if(Jh.test(c)){b.Pt=Kh(c);b.type="hex";return b}else{var d;a:{var f=a.match(Lh);if(f){var g=Number(f[1]),h=Number(f[2]),i=Number(f[3]);if(g>=0&&g<=255&&h>=0&&h<=255&&i>=0&&i<=255){d=[g,h,i];break a}}d=[]}if(d.length){b.Pt=Mh(d[0],d[1],d[2]);b.type="rgb";return b}else if(Ih){var m=Ih[a.toLowerCase()];if(m){b.Pt=m;b.type="named";return b}}}e(Error(a+" is not a valid color string"))},Oh=/#(.)(.)(.)/,Kh=function(a){if(!Jh.test(a))e(Error("'"+
a+"' is not a valid hex color"));if(a.length==4)a=a.replace(Oh,"#$1$1$2$2$3$3");return a.toLowerCase()},Ph=function(a){a=Kh(a);var b=parseInt(a.substr(1,2),16),c=parseInt(a.substr(3,2),16),d=parseInt(a.substr(5,2),16);return[b,c,d]},Mh=function(a,b,c){a=Number(a);b=Number(b);c=Number(c);if(isNaN(a)||a<0||a>255||isNaN(b)||b<0||b>255||isNaN(c)||c<0||c>255)e(Error('"('+a+","+b+","+c+'") is not a valid RGB color'));var d=Rh(a.toString(16)),f=Rh(b.toString(16)),g=Rh(c.toString(16));return"#"+d+f+g},Jh=
/^#(?:[0-9a-f]{3}){1,2}$/i,Lh=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,Rh=function(a){return a.length==1?"0"+a:a};var Sh=function(){this.kC=this.Rt=this.cs="";this.uA=l;this.$y="";this.fv=l};E(Sh,Ef);var Th=function(){return new Sh};q=Sh.prototype;q.serialize=function(){var a={};a.backgroundColor=this.cs;a.highlightColor=this.Rt;a.bannerUrl=this.kC;a.showBanner=this.uA;a.logoUrl=this.$y;a.showLogo=this.fv;return a};q.R=function(a){if(a){this.Lba(a.backgroundColor||"");this.bca(a.highlightColor||"");this.mJa(a.bannerUrl||"");this.fLa(!!a.showBanner);this.jca(a.logoUrl||"");this.Bca(!!a.showLogo)}};q.bra=function(){return this.cs};
q.Lba=function(a){this.cs=a?Uh(a,this.cs):""};q.Esa=function(){return this.Rt};q.bca=function(a){this.Rt=a?Uh(a,this.Rt):""};var Uh=function(a,b){try{var c=Nh(a);return c.Pt}catch(d){var f=D("knol.Branding");f.S("Invalid color: "+a);return b}};q=Sh.prototype;q.mJa=function(a){this.kC=a};q.fLa=function(a){this.uA=a};q.tta=function(){return this.$y};q.jca=function(a){this.$y=a};q.qva=function(){return this.fv};q.Bca=function(a){this.fv=a};
q.jc=function(a){return this.cs==a.cs&&this.Rt==a.Rt&&this.uA==a.uA&&(!this.uA||this.kC==a.kC)&&this.fv==a.fv&&(!this.fv||this.$y==a.$y)};var Vh=function(a,b,c,d,f,g,h){this.gc=a||"";this.SA=b||0;this.wz=c||0;this.Zv=d||"";this.EA=f||0;this.FA=g||"";this.Jd=!!h};E(Vh,Ef);q=Vh.prototype;q.serialize=function(){var a={};a.knolId=this.Ca();a.timestamp=this.$j();a.order=this.Ui();a.annotation=this.Ip();a.submittedTimestamp=this.jO();a.submitterId=this.Xg();a.hidden=this.xn();return a};q.R=function(a){if(a){this.Pf(a.knolId);this.oA(a.timestamp);this.cT(a.order);this.LS(a.annotation);this.lT(a.submittedTimestamp);this.LH(a.submitterId);this.vH(a.hidden)}};
q.Ca=function(){return this.gc};q.$j=function(){return this.SA};q.Ui=function(){return this.wz};q.Ip=function(){return this.Zv};q.jO=function(){return this.EA};q.Xg=function(){return this.FA};q.xn=function(){return this.Jd};q.Pf=function(a){this.gc=a};q.oA=function(a){this.SA=a};q.cT=function(a){this.wz=a};q.LS=function(a){this.Zv=a};q.lT=function(a){this.EA=a};q.LH=function(a){this.FA=a};q.vH=function(a){this.Jd=!!a};q.Za=function(){return!!this.Ca()};
q.jc=function(a){return this.Ca()==a.Ca()&&this.Ui()==a.Ui()&&this.Ip()==a.Ip()&&this.Xg()==a.Xg()&&this.xn()==a.xn()};var Wh=function(){this.Pa={}};E(Wh,Ef);var Xh=function(){return new Wh};q=Wh.prototype;q.serialize=function(){return Xb(this.Pa,Jf)};q.R=function(a){for(var b in a){this.Pa[b]=new Vh;this.Pa[b].R(a[b])}};q.z=function(a){return this.Pa[a]||k};q.G=function(a,b){this.Pa[a]=b};q.mf=function(){return this.Pa};q.getSize=function(){var a=ac(this.Pa);return a.length};
q.XZ=function(a){var b=this.z(a.Ca());if(!b)return l;return a.jc(b)};q.jc=function(a){var b=this.mf(),c=a.mf(),d=Yb(b,this.XZ,a);return d&&Yb(c,this.XZ,this)};var Yh=function(a,b,c,d){this.description=a||k;this.url=b||k;this.anchorText=c||k;this.pubmedId=d||k};E(Yh,Ef);Yh.prototype.n=function(){var a=this.id||String(Math.floor(Math.random()*4294967295));return this.id=a};O(Yh,Yh.prototype.n,"id");Yh.prototype.Ff=function(){return this.description};O(Yh,Yh.prototype.Ff,"description");Yh.prototype.PS=function(a){this.description=a};Yh.prototype.ea=function(){return this.url};O(Yh,Yh.prototype.ea,"url");Yh.prototype.sLa=function(a){this.url=a};
Yh.prototype.Oj=function(){return this.anchorText};O(Yh,Yh.prototype.Oj,"anchorText");Yh.prototype.YIa=function(a){this.anchorText=a};Yh.prototype.Fx=function(){return this.pubmedId};O(Yh,Yh.prototype.Fx,"pubmedId");q=Yh.prototype;q.Woa=function(a){return this.Ff()===a.Ff()&&this.ea()===a.ea()&&this.Oj()===a.Oj()&&this.Fx()===a.Fx()};q.jc=function(a){return this.Woa(a)&&this.n()===a.n()};q.Ej=function(a){this.description=a.Ff();this.url=a.ea();this.anchorText=a.Oj();this.id=a.n();this.pubmedId=a.Fx()};
q.serialize=function(){var a={};a.description=this.Ff();a.url=this.ea();a.anchorText=this.Oj();a.id=this.n();a.pubmedId=this.Fx();return a};q.R=function(a){if(a){this.description=a.description||k;this.url=a.url||k;this.anchorText=a.anchorText||k;this.id=a.id||k;this.pubmedId=a.pubmedId||k}};var Zh=function(){this.citations=[]};E(Zh,Ef);q=Zh.prototype;q.jc=function(a){return Lb(this.He(),a.He(),function(b,c){return b.jc(c)})};q.reset=function(){Ab(this.He())};
q.Ea=function(){return this.He().length>0};q.Ej=function(a){if(a){var b=a.citations,c=this.citations;Ab(this.citations);for(var d=b.length,f=0;f<d;f++){var g=new Yh;g.Ej(b[f]);c.push(g)}}};q.serialize=function(){var a={},b=this.He();if(b.length>0){for(var c=[],d=0;d<b.length;d++)c[d]=Jf(b[d]);a.citations=c;return a}else return k};
q.R=function(a){if(a){if(this.He().length!=0)e(new Error("cannot deserialize a map representation into an already populated References object"));var b=a.citations;if(b)for(var c=0;c<b.length;c++){var d=new Yh;d.R(b[c]);this.Uv(d)}}};q.He=function(){return this.citations||[]};O(Zh,Zh.prototype.He,"citations");q=Zh.prototype;q.Uv=function(a){this.He().push(a)};q.Epa=function(a){for(var b=this.He(),c=0;c<b.length;c++)if(b[c].n()==a.n())return c;return-1};
q.Fpa=function(a){var b=a-1,c=this.He();if(c.length<b)return k;return c[b].n()};q.dG=function(a,b,c,d){var f=this.He();if(f.length>a){var g=f[a];g.PS(b);g.sLa(c);g.YIa(d)}else e(new Error("Invalid index of the citation: "+a))};q.i0=function(a){var b=ub(this.He(),function(c,d,f){zb(a,f)||c.push(d);return c},[]);this.citations=b};
q.XFa=function(a){var b=tb(this.He(),function(d,f){var g=a[f+1]||Number.MAX_VALUE;return{citation:d,number:g}});Array.prototype.sort.call(b,function(d,f){return Mb(d.number,f.number)}||Mb);var c=tb(b,function(d){return d.citation});this.citations=c};var $h=k,ai=k,bi=k,ci=k;var di=function(a,b){if(a<0||a>=1)e(new Error("expected number in [0, 1): "+a));for(var c="",d=0;d<b;d++){a*=36;var f=Math.floor(a);c+=f.toString(36);a-=f}return c},ei=/^(path\:)?\/?/,fi=function(a){var b=a.split("."),c={};c.webspace=b.shift();c.path=b.join("/");return c},gi=function(a){var b=a.split("."),c={};c.webspace=b.shift();c.path="";var d=b.length;if(d>1){for(var f=0;f<b.length-1;f++){if(f>0)c.path+="/";c.path+=b[f]}c.path+="."+b[b.length-1]}else c.path=b.join("/");return c},ii=function(a){if(!a.webspace||
!a.path)e(new Error("need webspace and path"));var b=a[hi.xga].replace(ei,"");b=b.replace(/\//g,".");var c=a[hi.CJ]+"."+b;return c},ji=function(a){var b=a[hi.Pr];return b},ki=function(a){a=a.replace(ei,"");a=a.replace(/\//g,".");var b="knol."+a;return b};var li=function(){this.yh=[];this.RL=[];this.zh=l;this.result=this.GA=k},mi;q=li.prototype;q.k=function(a,b){if(typeof a!="function")e("Callback must be a function");if(b)a=z(a,b);this.yh.push(a);this.zh&&this.GA&&this.HG(this.result)};q.w=function(a,b){if(typeof a!="function")e("Errback must be a function");if(b)a=z(a,b);this.RL.push(a);this.zh&&!this.GA&&this.I$(this.result)};q.sa=function(a){if(this.zh)e("Deferred has already been called");this.GA=this.zh=j;this.HG(a)};
q.HG=function(a){this.result=a;if(this.yh.length){var b=this.yh.shift();try{ib&&this.vt().C("Passing result to callback handler");var c=b(a)}catch(d){ib&&this.vt().S("Got error running callback with result: "+Ue(a));this.zh=l;this.Ja(d);return}if(c instanceof li){ib&&this.vt().C("Callback returned Deferred, waiting for result");c.k(this.HG,this);c.w(this.Ja,this)}else if(this.yh.length){ib&&this.vt().C(this.yh.length+" callbacks remaining.");this.HG(c)}else this.result=c}};
q.Ja=function(a){ib&&this.vt().C("Got error: "+a,a);if(this.zh)e("Deferred has already been called");this.zh=j;this.GA=l;this.I$(a)};q.I$=function(a){this.result=a;var b;if(this.RL.length)for(;b=this.RL.shift();)try{b(a)}catch(c){}else ib&&this.vt().za("Unhandled error: "+a,a)};q.vt=function(){mi||(mi=D("goog.deferred.Deferred"));return mi};var ni=function(){};ni.prototype.tp=l;ni.prototype.rF=function(){return this.tp};ni.prototype.m=function(){if(!this.tp){this.tp=j;this.o()}};ni.prototype.o=function(){};var oi=function(a,b){this.type=a;this.currentTarget=this.target=b};A(oi,ni);q=oi.prototype;q.o=function(){delete this.type;delete this.target;delete this.currentTarget};q.bo=l;q.Ju=j;q.stopPropagation=function(){this.bo=j};q.preventDefault=function(){this.Ju=l};var pi=function(a,b){a&&this.Yb(a,b)};A(pi,oi);var qi=[1,4,2];q=pi.prototype;q.type=k;q.target=k;q.relatedTarget=k;q.offsetX=0;q.offsetY=0;q.clientX=0;q.clientY=0;q.screenX=0;q.screenY=0;q.button=0;q.keyCode=0;q.charCode=0;q.ctrlKey=l;q.altKey=l;q.shiftKey=l;q.metaKey=l;q.Eh=k;
q.Yb=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(J)try{d=d.nodeName&&d}catch(f){}}else if(c=="mouseover")d=a.fromElement;else if(c=="mouseout")d=a.toElement;this.relatedTarget=d;this.offsetX=typeof a.layerX=="number"?a.layerX:a.offsetX;this.offsetY=typeof a.layerY=="number"?a.layerY:a.offsetY;this.clientX=typeof a.clientX=="number"?a.clientX:a.pageX;this.clientY=typeof a.clientY=="number"?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=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.Eh=a;delete this.Ju;delete this.bo};q.zy=function(a){return I?this.type=="click"?a==0:!!(this.Eh.button&qi[a]):this.Eh.button==a};q.stopPropagation=function(){this.bo=j;if(this.Eh.stopPropagation)this.Eh.stopPropagation();else this.Eh.cancelBubble=j};
q.preventDefault=function(){this.Ju=l;if(this.Eh.preventDefault)this.Eh.preventDefault();else{this.Eh.returnValue=l;try{this.Eh.keyCode=-1}catch(a){}}};q.Tg=function(){return this.Eh};q.o=function(){pi.e.o.call(this);this.Eh=k};var ri=function(a,b){this.Jq=b;this.Fe=[];this.Ema(a)};A(ri,ni);q=ri.prototype;q.FK=k;q.C0=k;q.fA=function(a){this.FK=a};q.pf=function(){if(this.Fe.length)return this.Fe.pop();return this.bl()};q.Re=function(a){this.Fe.length<this.Jq?this.Fe.push(a):this.nl(a)};q.Ema=function(a){if(a>this.Jq)e(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var b=0;b<a;b++)this.Fe.push(this.bl())};q.bl=function(){return this.FK?this.FK():{}};
q.nl=function(a){if(this.C0)this.C0(a);else if(la(a.m))a.m();else for(var b in a)delete a[b]};q.o=function(){ri.e.o.call(this);for(var a=this.Fe;a.length;)this.nl(a.pop());delete this.Fe};var si=function(){},ti=0;q=si.prototype;q.ga=0;q.Eu=l;q.fK=l;q.Yb=function(a,b,c,d,f,g){if(la(a))this.s7=j;else if(a&&a.handleEvent&&la(a.handleEvent))this.s7=l;else e(Error("Invalid listener argument"));this.lu=a;this.N$=b;this.src=c;this.type=d;this.jw=!!f;this.pq=g;this.fK=l;this.ga=++ti;this.Eu=l};q.handleEvent=function(a){if(this.s7)return this.lu.call(this.pq||this.src,a);return this.lu.handleEvent.call(this.lu,a)};var ui,vi,wi,xi,yi,zi,Ai,Bi,Ci,Di,Ei;
(function(){var a=Hg&&!(fb(Ig,"5.7")>=0);function b(){return{Z:0,kj:0}}function c(){return[]}var d;zi=function(s){d=s};function f(){var s=function(u){return d.call(s.src,s.ga,u)};return s}function g(){return new si}function h(){return new pi}if(a){ui=function(){return i.pf()};vi=function(s){i.Re(s)};wi=function(){return m.pf()};xi=function(s){m.Re(s)};yi=function(){return n.pf()};Ai=function(){n.Re(f())};Bi=function(){return o.pf()};Ci=function(s){o.Re(s)};Di=function(){return p.pf()};Ei=function(s){p.Re(s)};
var i=new ri(0,600);i.fA(b);var m=new ri(0,600);m.fA(c);var n=new ri(0,600);n.fA(f);var o=new ri(0,600);o.fA(g);var p=new ri(0,600);p.fA(h)}else{ui=b;vi=da;wi=c;xi=da;yi=f;Ai=da;Bi=g;Ci=da;Di=h;Ei=da}})();var Fi={},Gi={},Hi={},Ii="on",Ji={},U=function(a,b,c,d,f){if(b)if(ia(b)){for(var g=0;g<b.length;g++)U(a,b[g],c,d,f);return k}else{var h=!!d,i=Gi;b in i||(i[b]=ui());i=i[b];if(!(h in i)){i[h]=ui();i.Z++}i=i[h];var m=pa(a),n,o;i.kj++;if(i[m]){n=i[m];for(g=0;g<n.length;g++){o=n[g];if(o.lu==c&&o.pq==f){if(o.Eu)break;return n[g].ga}}}else{n=i[m]=wi();i.Z++}var p=yi();p.src=a;o=Bi();o.Yb(c,p,a,b,h,f);var s=o.ga;p.ga=s;n.push(o);Fi[s]=o;Hi[m]||(Hi[m]=wi());Hi[m].push(o);if(a.addEventListener){if(a==ba||
!a.O_)a.addEventListener(b,p,h)}else a.attachEvent(Ki(b),p);return s}else e(Error("Invalid event type"))},Li=function(a,b,c,d,f){if(ia(b)){for(var g=0;g<b.length;g++)Li(a,b[g],c,d,f);return k}var h=U(a,b,c,d,f),i=Fi[h];i.fK=j;return h},Mi=function(a,b,c,d,f){if(ia(b)){for(var g=0;g<b.length;g++)Mi(a,b[g],c,d,f);return k}var h=!!d,i=Ni(a,b,h);if(!i)return l;for(g=0;g<i.length;g++)if(i[g].lu==c&&i[g].jw==h&&i[g].pq==f)return Oi(i[g].ga);return l},Oi=function(a){if(!Fi[a])return l;var b=Fi[a];if(b.Eu)return l;
var c=b.src,d=b.type,f=b.N$,g=b.jw;if(c.removeEventListener){if(c==ba||!c.O_)c.removeEventListener(d,f,g)}else c.detachEvent&&c.detachEvent(Ki(d),f);var h=pa(c),i=Gi[d][g][h];if(Hi[h]){var m=Hi[h];Db(m,b);m.length==0&&delete Hi[h]}b.Eu=j;i.r9=j;Pi(d,g,h,i);delete Fi[a];return j},Pi=function(a,b,c,d){if(!d.Wn)if(d.r9){for(var f=0,g=0;f<d.length;f++)if(d[f].Eu){var h=d[f].N$;h.src=k;Ai(h);Ci(d[f])}else{if(f!=g)d[g]=d[f];g++}d.length=g;d.r9=l;if(g==0){xi(d);delete Gi[a][b][c];Gi[a][b].Z--;if(Gi[a][b].Z==
0){vi(Gi[a][b]);delete Gi[a][b];Gi[a].Z--}if(Gi[a].Z==0){vi(Gi[a]);delete Gi[a]}}}},Qi=function(a,b,c){var d=0,f=a==k,g=b==k,h=c==k;c=!!c;if(f)Vb(Hi,function(p){for(var s=p.length-1;s>=0;s--){var u=p[s];if((g||b==u.type)&&(h||c==u.jw)){Oi(u.ga);d++}}});else{var i=pa(a);if(Hi[i])for(var m=Hi[i],n=m.length-1;n>=0;n--){var o=m[n];if((g||b==o.type)&&(h||c==o.jw)){Oi(o.ga);d++}}}return d},Ni=function(a,b,c){var d=Gi;if(b in d){d=d[b];if(c in d){d=d[c];var f=pa(a);if(d[f])return d[f]}}return k},Ri=I?"focusin":
"DOMFocusIn",Ki=function(a){if(a in Ji)return Ji[a];return Ji[a]=Ii+a},Ti=function(a,b,c,d){var f=Gi;if(b in f){f=f[b];if(c in f)return Si(f[c],a,b,c,d)}return j},Si=function(a,b,c,d,f){var g=1,h=pa(b);if(a[h]){a.kj--;var i=a[h];if(i.Wn)i.Wn++;else i.Wn=1;try{for(var m=i.length,n=0;n<m;n++){var o=i[n];if(o&&!o.Eu)g&=Ui(o,f)!==l}}finally{i.Wn--;Pi(c,d,h,i)}}return Boolean(g)},Ui=function(a,b){var c=a.handleEvent(b);a.fK&&Oi(a.ga);return c},Vi=function(a,b){if(!Fi[a])return j;var c=Fi[a],d=c.type,f=
Gi;if(!(d in f))return j;f=f[d];var g,h;if(I){var i=b||ca("window.event"),m=j in f,n=l in f;if(m){if(i.keyCode<0||i.returnValue!=undefined)return j;a:{var o=i,p=l;if(o.keyCode==0)try{o.keyCode=-1;break a}catch(s){p=j}if(p||o.returnValue==undefined)o.returnValue=j}}var u=Di();u.Yb(i,this);g=j;try{if(m){for(var v=wi(),w=u.currentTarget;w;w=w.parentNode)v.push(w);h=f[j];h.kj=h.Z;for(var x=v.length-1;!u.bo&&x>=0&&h.kj;x--){u.currentTarget=v[x];g&=Si(h,v[x],d,j,u)}if(n){h=f[l];h.kj=h.Z;for(x=0;!u.bo&&
x<v.length&&h.kj;x++){u.currentTarget=v[x];g&=Si(h,v[x],d,l,u)}}}else g=Ui(c,u)}finally{if(v){v.length=0;xi(v)}u.m();Ei(u)}return g}var B=new pi(b,this);try{g=Ui(c,B)}finally{B.m()}return g};zi(Vi);var Xi=/\s*;\s*/,Yi=function(a,b){for(var c=a+"=",d=String(document.cookie).split(Xi),f=0,g;g=d[f];f++)if(g.indexOf(c)==0)return g.substr(c.length);return b};var Zi=function(){};A(Zi,ni);q=Zi.prototype;q.O_=j;q.AR=k;q.tE=function(){return this.AR};q.GH=function(a){this.AR=a};q.addEventListener=function(a,b,c,d){U(this,a,b,c,d)};q.removeEventListener=function(a,b,c,d){Mi(this,a,b,c,d)};
q.dispatchEvent=function(a){var b;var c=a;if(y(c))c=new oi(c,this);else if(c instanceof oi)c.target=c.target||this;else{var d=c;c=new oi(c.type,this);lc(c,d)}var f=1,g,h=c.type,i=Gi;if(h in i){i=i[h];var m=j in i,n;if(m){g=[];for(var o=this;o;o=o.tE())g.push(o);n=i[j];n.kj=n.Z;for(var p=g.length-1;!c.bo&&p>=0&&n.kj;p--){c.currentTarget=g[p];f&=Si(n,g[p],c.type,j,c)&&c.Ju!=l}}var s=l in i;if(s){n=i[l];n.kj=n.Z;if(m)for(p=0;!c.bo&&p<g.length&&n.kj;p++){c.currentTarget=g[p];f&=Si(n,g[p],c.type,l,c)&&
c.Ju!=l}else for(var u=this;!c.bo&&u&&n.kj;u=u.tE()){c.currentTarget=u;f&=Si(n,u,c.type,l,c)&&c.Ju!=l}}b=Boolean(f)}else b=j;return b};q.o=function(){Zi.e.o.call(this);Qi(this);this.AR=k};var aj=function(a,b){this.uq=a||1;this.RA=b||$i;this.bK=z(this.HNa,this);this.mQ=ua()};A(aj,Zi);aj.prototype.Dw=l;var $i=ba.window,bj=0.8;q=aj.prototype;q.xd=k;q.setInterval=function(a){this.uq=a;if(this.xd&&this.Dw){this.stop();this.start()}else this.xd&&this.stop()};q.HNa=function(){if(this.Dw){var a=ua()-this.mQ;if(a>0&&a<this.uq*bj)this.xd=this.RA.setTimeout(this.bK,this.uq-a);else{this.loa();if(this.Dw){this.xd=this.RA.setTimeout(this.bK,this.uq);this.mQ=ua()}}}};q.loa=function(){this.dispatchEvent("tick")};
q.start=function(){this.Dw=j;if(!this.xd){this.xd=this.RA.setTimeout(this.bK,this.uq);this.mQ=ua()}};q.stop=function(){this.Dw=l;if(this.xd){this.RA.clearTimeout(this.xd);this.xd=k}};q.o=function(){aj.e.o.call(this);this.stop();delete this.RA};var cj=function(a,b,c){if(la(a)){if(c)a=z(a,c)}else if(a&&typeof a.handleEvent=="function")a=z(a.handleEvent,a);else e(Error("Invalid listener argument"));return b>2147483647?-1:$i.setTimeout(a,b||0)},dj=function(a){$i.clearTimeout(a)};var ej=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};var fj=function(){if(J){this.Nm={};this.MI={};this.bI=[]}};q=fj.prototype;q.u=D("goog.net.xhrMonitor");q.JG=function(a){if(J){var b=y(a)?a:ma(a)?pa(a):"";this.u.tD("Pushing context: "+a+" ("+b+")");this.bI.push(b)}};q.CG=function(){if(J){var a=this.bI.pop();this.u.tD("Popping context: "+a);this.lOa(a)}};q.gAa=function(a){if(!J)return j;var b=this.Nm[y(a)?a:ma(a)?pa(a):""];this.u.Bc("Context is safe : "+a+" - "+b);return!b};
q.ICa=function(a){if(J){var b=pa(a);this.u.Bc("Opening XHR : "+b);for(var c=0;c<this.bI.length;c++){var d=this.bI[c];this.XB(this.Nm,d,b);this.XB(this.MI,b,d)}}};q.HCa=function(a){if(J){var b=pa(a);this.u.Bc("Closing XHR : "+b);delete this.MI[b];for(var c in this.Nm){Db(this.Nm[c],b);this.Nm[c].length==0&&delete this.Nm[c]}}};
q.lOa=function(a){var b=this.MI[a],c=this.Nm[a];if(b&&c){this.u.tD("Updating dependent contexts");C(b,function(d){C(c,function(f){this.XB(this.Nm,d,f);this.XB(this.MI,f,d)},this)},this)}};q.XB=function(a,b,c){a[b]||(a[b]=[]);zb(a[b],c)||a[b].push(c)};var gj=new fj;var ij=function(){return hj()},hj=k,jj=k,kj=k,mj=function(){var a=lj();return a?new ActiveXObject(a):new XMLHttpRequest},nj=function(){var a=lj(),b={};if(a){b[0]=j;b[1]=j}return b},oj=nj;hj=mj;jj=oj;var pj=kj=k,lj=function(){if(!pj&&typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){for(var a=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],b=0;b<a.length;b++){var c=a[b];try{new ActiveXObject(c);return pj=c}catch(d){}}e(Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed"))}return pj};var qj=function(){this.headers=new xc};A(qj,Zi);qj.prototype.u=D("goog.net.XhrIo");var rj=[],tj=function(a,b,c,d,f,g){var h=new qj;rj.push(h);b&&U(h,"complete",b);U(h,"ready",ta(sj,h));g&&h.PH(g);h.send(a,c,d,f)},sj=function(a){a.m();Db(rj,a)};q=qj.prototype;q.yd=l;q.bc=k;q.LI=k;q.Wl="";q.j8="";q.rg=0;q.Vn="";q.SL=l;q.jF=l;q.pP=l;q.rq=l;q.Bk=0;q.Fo=k;q.PH=function(a){this.Bk=Math.max(0,a)};
q.send=function(a,b,c,d){if(this.yd)e(Error("[goog.net.XhrIo] Object is active with another request"));var f=b||"GET";this.Wl=a;this.Vn="";this.rg=0;this.j8=f;this.SL=l;this.yd=j;this.bc=new ij;this.LI=kj||(kj=jj());gj.ICa(this.bc);this.bc.onreadystatechange=z(this.X9,this);try{this.u.Bc(this.xl("Opening Xhr"));this.pP=j;this.bc.open(f,a,j);this.pP=l}catch(g){this.u.Bc(this.xl("Error opening Xhr: "+g.message));this.Ns(5,g);return}var h=c||"",i=this.headers.ua();d&&uc(d,function(n,o){i.G(o,n)});f==
"POST"&&!i.me("Content-Type")&&i.G("Content-Type","application/x-www-form-urlencoded;charset=utf-8");uc(i,function(n,o){this.bc.setRequestHeader(o,n)},this);try{if(this.Fo){$i.clearTimeout(this.Fo);this.Fo=k}if(this.Bk>0){this.u.Bc(this.xl("Will abort after "+this.Bk+"ms if incomplete"));this.Fo=$i.setTimeout(z(this.sh,this),this.Bk)}this.u.Bc(this.xl("Sending request"));this.jF=j;this.bc.send(h);this.jF=l}catch(m){this.u.Bc(this.xl("Send error: "+m.message));this.Ns(5,m)}};
q.dispatchEvent=function(a){if(this.bc){gj.JG(this.bc);try{return qj.e.dispatchEvent.call(this,a)}finally{gj.CG()}}else return qj.e.dispatchEvent.call(this,a)};q.sh=function(){if(typeof aa!="undefined")if(this.bc){this.Vn="Timed out after "+this.Bk+"ms, aborting";this.rg=8;this.u.Bc(this.xl(this.Vn));this.dispatchEvent("timeout");this.abort(8)}};q.Ns=function(a,b){this.yd=l;if(this.bc){this.rq=j;this.bc.abort();this.rq=l}this.Vn=b;this.rg=a;this.v0();this.xC()};
q.v0=function(){if(!this.SL){this.SL=j;this.dispatchEvent("complete");this.dispatchEvent("error")}};q.abort=function(a){if(this.bc){this.u.Bc(this.xl("Aborting"));this.yd=l;this.rq=j;this.bc.abort();this.rq=l;this.rg=a||7;this.dispatchEvent("complete");this.dispatchEvent("abort");this.xC()}};q.o=function(){if(this.bc){if(this.yd){this.yd=l;this.rq=j;this.bc.abort();this.rq=l}this.xC(j)}qj.e.o.call(this)};q.X9=function(){!this.pP&&!this.jF&&!this.rq?this.uEa():this.W9()};q.uEa=function(){this.W9()};
q.W9=function(){if(this.yd)if(typeof aa!="undefined")if(this.LI[1]&&this.Gx()==4&&this.Zj()==2)this.u.Bc(this.xl("Local request error detected and ignored"));else if(this.jF&&this.Gx()==4)$i.setTimeout(z(this.X9,this),0);else{this.dispatchEvent("readystatechange");if(this.Cy()){this.u.Bc(this.xl("Request complete"));this.yd=l;if(this.gk()){this.dispatchEvent("complete");this.dispatchEvent("success")}else{this.rg=6;this.Vn=this.U4()+" ["+this.Zj()+"]";this.v0()}this.xC()}}};
q.xC=function(a){if(this.bc){this.bc.onreadystatechange=this.LI[0]?da:k;var b=this.bc;this.LI=this.bc=k;if(this.Fo){$i.clearTimeout(this.Fo);this.Fo=k}if(!a){gj.JG(b);this.dispatchEvent("ready");gj.CG()}gj.HCa(b)}};q.ce=function(){return this.yd};q.Cy=function(){return this.Gx()==4};q.gk=function(){switch(this.Zj()){case 0:case 200:case 204:case 304:return j;default:return l}};q.Gx=function(){return this.bc?this.bc.readyState:0};
q.Zj=function(){try{return this.Gx()>2?this.bc.status:-1}catch(a){this.u.S("Can not get status: "+a.message);return-1}};q.U4=function(){try{return this.Gx()>2?this.bc.statusText:""}catch(a){this.u.Bc("Can not get status: "+a.message);return""}};q.I3=function(){return String(this.Wl)};q.Wj=function(){return this.bc?this.bc.responseText:""};q.Gl=function(){return this.bc?wd(this.bc.responseText):undefined};q.getResponseHeader=function(a){return this.bc&&this.Cy()?this.bc.getResponseHeader(a):undefined};
q.xx=function(){return this.rg};q.E3=function(){return y(this.Vn)?this.Vn:String(this.Vn)};q.xl=function(a){return a+" ["+this.j8+" "+this.Wl+" "+this.Zj()+"]"};var uj=function(){this.headers=new xc};A(uj,qj);var vj=function(a,b,c,d,f,g,h){var i=new uj;b&&U(i,"success",b);if(c){U(i,"error",c);U(i,"timeout",c);U(i,"abort",c)}U(i,"ready",i.m,l,i);i.send(a,d,f,g,h)};t("gsites.Xhr.send",vj,undefined);uj.prototype.send=function(a,b,c,d,f){var g=new Ed(a),h=Yi("jotxtok");h&&g.$("jot.xtok",h);if(f)for(var i in f)g.$(i,f[i]);uj.e.send.call(this,g.toString(),b,c,d)};var wj,xj=function(){return D("knol.ServerProxy")},yj=["blockUser","blockUserFromDiscussion","getAdSenseLocaleList","getBlockList","isBlocked","setAnalyticsCode","setLocalePreferences","knol.ui.DiscussionView.isBlockable","knol.ui.Knol.getPubmedCitation","knol.ui.Knol.getRRNCitation","setNodeLicense"],zj=l,Cj=function(a,b,c,d){xj();var f=new Fd;f.add("node",a);f.add("method",b);f.add("args",qf(Jf(c)));"about to post to args: "+f.z("args");var g=Aj(a);return Bj(f,g,d,zj)},V=function(a,b,c,d){xj();
var f=new Fd;f.add("func",a);f.add("args",qf(Jf(b)));"about to post to args: "+f.z("args");var g=d||Aj(gg());return Bj(f,g,c,zj)},Dj=function(){var a=new window.jstiming.Timer;a.name="rpc";return a},Ej=function(a,b){a.tick("ol");zf(a,{rpc:b})},Aj=function(a){xj();var b=gg();a||(a=b);var c=a?fi(a).webspace:"knol",d=new Ed(document.location.href),f=d.Hf("webspace");if(f)c=f;var g=l;try{g=Q()instanceof Fj}catch(h){e(new Error("Exception when trying to get the user node, node not in cache"))}if(a==b&&
g)c="knol";return c},Gj=function(a){if(a&&a.Zj()==302){var b=a.getResponseHeader("Location"),c=function(d){return d.replace(/\?.*/,"")};if(c(sf())==c(b)){window.location=sf();return j}}return l};var Hj=function(a,b,c,d){if(!(a instanceof R))if(a)e(new Error("object of wrong type"));else e(new Error("object is not valid and is: "+a));if(!y(b)||c&&!y(c)||!la(d))e(new Error("bad parameters to new Relation"));this.lb=a;this.jj=b;this.CP=c;if(!d)e(new Error("no inverse type"));this.YUa=d;this.vc=k},Ij={WU:"about",Afa:"acknowledgedGroups",Ifa:"attachedTo",Jfa:"attachments",dV:"authored",SI:"authors",Xfa:"contributed",sV:"contributors",BV:"discussed",$I:"discussions",IW:"pendingDiscussed",HB:"pendingDiscussions",
qRa:"editing",LRa:"groups",pga:"knolTemplates",wSa:"members",wW:"messagesAbout",sga:"messagesReceived",tga:"messagesSent",GW:"owned",oJ:"owners",OW:"recipients",sJ:"relatedKnols",mX:"unrelatedKnols",SW:"reviewAbout",Dga:"reviewTemplates",Eg:"reviews",WW:"sender",vh:"suggestions",Pga:"suggested",Yga:"translations",mV:"bunched",Wfa:"containingBunch"},Jj="properties.",Kj={},Lj=function(a,b,c,d,f,g,h,i){if(!y(a)||!la(b)||!la(g)||c&&!la(c)||d==3||d!=0&&i!=0)e(new Error("bad params declaring relation "+
a));this.nz=a;this.xDa=b;this.zGa=c;this.Vda=d;Kj[a]=this;this.yDa=g;i!=3&&g&&a&&Hf(g,Jj+a);if(f){this.n9=f;this.EVa=h;this.bNa=i;f in Kj||new Lj(f,g,h,i,a,b,c,d)}else if(i!=3)e(new Error("expected storage type of NONE"))};Lj.prototype.nDa=function(a){if(!(a instanceof this.yDa))e(new Error("node is wrong type for relation "+this.nz));var b=this.zGa||Hj,c=new b(a,this.nz,this.n9,this.xDa);c.n0(this.nz);return c};q=Hj.prototype;q.XP=function(){return this.LD().Vda==2};
q.q0=function(a){this.XP()&&this.tb("this is a remote relation, cannot call "+a)};q.Fl=function(){return this.vc};q.gb=function(){return this.jj};q.y_=function(a){return new this.ok(a)};q.ok=kh;q.n0=function(a){var b=this.ok;this.vc=this.lb.fc(a,function(){return new Dg(b)},j)};q.VOa=function(a){var b=this.LD();if(b.Vda==1||b.bNa==1){var c=fi(this.lb.n()).webspace,d=fi(a).webspace;c!=d&&this.tb("this is a local relation, cannot add "+a)}};
q.add=function(a){this.q0("add");return this.e$(a,function(b,c,d){b.VOa(d);var f=b.y_(d);f&&!(f instanceof kh)&&this.tb("add type error");c.G(d,f);f.oA(ua());return f})};q.remove=function(a){this.q0("remove");this.e$(a,Mj)};var Mj=function(a,b,c){b.remove(c)};q=Hj.prototype;q.e$=function(){return k};q.Xsa=function(a){return Nj(a,this.CP)};q.jb=function(){uc(this.Xb(),function(a){this.remove(a)},this)};q.archive=function(){};q.save=function(){};
q.replace=function(a){this.lb.Cu&&delete this.lb.Cu[this.jj];this.lb.oj(this.jj,a)};var Nj=function(a,b){if(!(a instanceof R))e(new Error("get relation "+b+" type error, expected Node, saw "+a));if(!a.Cu)a.Cu=[];var c=a.Cu[b];if(!c){if(!(b in Kj))e(new Error('nonexistent relation "'+b+'"'));c=Kj[b].nDa(a);if(!(c instanceof Hj))e(new Error("relation "+b+", not derived from knol.Relation"));a.Cu[b]=c}return c};q=Hj.prototype;q.LD=function(){return Kj[this.jj]};q.contains=function(a){return this.Fl().me(a)};
q.Ea=function(){return this.Fl().Ea()};q.w4=function(a){return this.Fl().z(a,k)};q.ma=function(){return this.Fl().ma()};q.Xb=function(){return this.Fl().vb()};q.zx=function(){var a=[];uc(this.Xb(),function(b){a.push(K(b))},this);return a};q.vva=function(a,b,c){var d=this.Fl().Hd();d=a?Oj(d,a):this.sort(d);return d=d.slice(b||0,c||d.length)};q.sort=function(a){return a};q.Qi=function(){var a=this.Xb();return a.length>0?a[0]:k};q.vsa=function(){var a=this.zx();return a.length>0?a[0]:k};
q.tb=function(a){a+=", relation = "+this.jj;a+=this.CP?", inverse = "+this.CP:" [one sided]";a+="\nRelation: "+Ue(this);e(new Error(a))};q.AOa=function(a,b){y(b)||this.tb("invalid search result");var c=new Dg(this.ok),d=b,f=c,g=Ff();if(d)try{var h=wd(d);Lf(f,h)}catch(i){g.S("could not parse and mix: "+d,i)}for(var m=this.vc,n=c.vb(),o=0;o<n.length;o++){var p=n[o],s=m.z(p);if(r(s)){var u=c.z(p);r(u)&&Sd(u,s,j)}}};q.Ova=function(){return"rel_ts_"+this.LD().nz};
q.Lua=function(){var a=l;if(this.XP())a=10000;return a};q.zu=function(){var a=this.lb.n();D("knol.Relation");var b=this.LD(),c=b.nz,d=b.n9,f=this.XP(),g=this.Lua(),h,i;if(ka(g)){h=ua();i=this.Ova();var m=this.lb.l(i);if(m&&h-m<g)return this}else return this;var n=function(s){if(f){this.lb.gLa(c,s);this.n0(c);this.lb.aZ(c,this)}else this.AOa(c,s);i&&this.lb.setProperty(i,h);return this},o=f?"knol.Relation.nodeInRelation":"knol.Relation.nodeHasRelation",p=V(o,[a,c,d]);p.k(n,this);return p};
var Pj=function(a,b){return a.sort(function(c,d){var f=d.$j()-c.$j();return b?-f:f})},Oj=function(a,b){var c=a.length;return a.sort(function(d,f){var g=b in d?d[b]:c,h=b in f?f[b]:c;return g-h})},Qj=function(a,b,c,d){Hj.call(this,a,b,c,d)};E(Qj,Hj);Qj.prototype.ok=oh;Qj.prototype.Xb=function(){for(var a=this.vva("authorPosition"),b=[],c=0;c<a.length;c++)b.push(a[c].nodeId);return b};var Rj=function(a,b,c,d){Hj.call(this,a,b,c,d)};E(Rj,Hj);
Rj.prototype.y_=function(a){var b=K(a);if(b.type==undefined)e(new Error("type error"));return new mh(a,b.type)};var Sj=function(a,b,c,d){Hj.call(this,a,b,c,d)};E(Sj,Hj);Sj.prototype.ok=qh;var Tj=function(a,b,c,d){Hj.call(this,a,b,c,d)};E(Tj,Hj);Tj.prototype.ok=ph;var Uj=function(a,b,c,d){Hj.call(this,a,b,c,d)};E(Uj,Hj);Uj.prototype.ok=rh;var Vj=function(a,b,c,d){Hj.call(this,a,b,c,d)};E(Vj,Hj);Vj.prototype.ok=uh;var Wj=function(a,b,c,d){Hj.call(this,a,b,c,d)};E(Wj,Hj);Wj.prototype.ok=sh;
Wj.prototype.sort=Pj;var Xj=function(a,b){var c=df(),d=b||"/system/knol/images/";d=d.replace(/^\//,"");return c+"knol/"+d+a},Yj=function(a,b){var c=encodeURIComponent||escape,d=df(),f="_/captcha?";f+="captchaEmail="+c(a);f+="&captchaToken="+c(b);return d+"knol/"+f},Zj=function(){return Xj("cleardot.gif","/system/app/images/")},$j=$e["/system/app/embed/icons/icon-cal-address.png"],ak=$e["/system/static_files/ifpc_relay.html"],bk=function(a,b){var c=b||l,d=df(),f=d+"knol/"+a;if(c)f+=qg();return f},ck=function(a){var b;
try{b=new Ed(a)}catch(c){return k}var d=b.gg();if(!d)return k;d=d.split("/");var f=d.length;if(f<6)return k;var g=5,h=d[g-1],i=d[g];if(g+1<f)i+="/"+d[g+1];return h+"."+i},dk=function(a){var b;try{b=new Ed(a)}catch(c){return k}var d=b.gg();d=d.split("/");if(d.length<4)return k;for(var f=b.Ih()+"/"+d[1]+"/-/-",g=2;g<d.length;g++)f+="/"+d[g];return ck(f)};var ek=function(a){ia(a)||(a=[]);this.Jb=a||[]};E(ek,Ef);q=ek.prototype;q.serialize=function(){var a={};a.omit=this.pE();return a};q.R=function(a){a&&this.DH(a.omit)};q.pE=function(){return this.Jb||[]};q.DH=function(a){this.Jb=a||[]};q.contains=function(a){return zb(this.pE(),a)};
var gk=function(a,b){for(var c=0;c<fk.length;c++){var d=fk[c];if(a.contains(d.value)!=b.contains(d.value))return l}return j},hk=new ek([9,8]),fk=[{D:"Numbering",value:1},{D:"Snippet",value:2},{D:"Author",value:3},{D:"Thumbnail",value:4},{D:"Star Ratings",value:5},{D:"Statistics (like pageviews)",value:6},{D:"Last Modified Information",value:7},{D:"Awards and Badges",value:8},{D:"Version Number",value:9},{D:"Accepted Date (into collection)",value:10}];var ik=function(){};E(ik,Ef);var jk=10;ik.prototype.FKa=function(a){this.ownerId=a};ik.prototype.g4=function(){return this.ownerId||k};O(ik,ik.prototype.g4,"ownerId");ik.prototype.fi=function(a){this.type=a};ik.prototype.ha=function(){return this.type||k};O(ik,ik.prototype.ha,"type");ik.prototype.refresh=function(){this.expirationTime=ua()+jk*60*1000};ik.prototype.osa=function(){return this.expirationTime||k};O(ik,ik.prototype.osa,"expirationTime");
ik.prototype.hpa=function(){this.expirationTime=ua()};ik.prototype.Du=function(a,b){if(this.g4()==a&&this.ha()==b){this.FKa(k);this.fi(k);this.hpa();return j}else return l};var kk=function(){};E(kk,Ef);kk.prototype.serialize=function(){if(!this.PAa())return k;var a={};a.label=this.ux();a.country=this.SM();a.language=this.getLanguage();return a};kk.prototype.R=function(a){if(a){if(y(a))a=wd(a);this.label=a.label;this.country=a.country;this.language=a.language}};kk.prototype.PAa=function(a,b){var c=this.ux();if(c&&a)c=this.getLanguage()==a;if(c&&b)c=this.SM()==b;return!!c};kk.prototype.ux=function(){return this.label||""};O(kk,kk.prototype.ux,"label");
kk.prototype.SM=function(){return this.country||""};O(kk,kk.prototype.SM,"country");kk.prototype.getLanguage=function(){return this.language||""};O(kk,kk.prototype.getLanguage,"language");var lk=function(){};E(lk,Ef);var mk={qTa:"revisions",vh:"suggestions",Eg:"reviews",Em:"comments",nTa:"replies"};lk.prototype.serialize=function(){var a={};if(this.Bx()){var b=this.Bx();a.notificationSettings=b.serialize();return a}else return k};lk.prototype.R=function(a){if(a){var b=new Dg;b.R(a.notificationSettings);b.Ea()||(this.notificationSettings=b)}};lk.prototype.Bx=function(){return this.notificationSettings||k};O(lk,lk.prototype.Bx,"notificationSettings");q=lk.prototype;
q.DKa=function(a){this.notificationSettings=a};q.Ax=function(a){var b=this.Bx()||nk();return parseInt(b.z(a,-1),10)};q.Qf=function(a,b){var c=this.Bx()||nk();c.G(a,b);this.DKa(c)};q.Tx=function(a){if(a=="comments")return this.Ax(10);else if(a=="replies")return this.Ax(60);else if(a=="reviews")return this.Ax(30);else if(a=="revisions")return this.Ax(20);else if(a=="suggestions")return this.Ax(40);else e(new Error("unknown symbolicEvent: "+a))};
q.jLa=function(a,b){if(a=="comments"){this.Qf(10,b);this.Qf(11,b);this.Qf(12,b)}else if(a=="replies")this.Qf(60,b);else if(a=="reviews"){this.Qf(30,b);this.Qf(31,b);this.Qf(32,b)}else if(a=="revisions"){this.Qf(20,b);this.Qf(21,b);this.Qf(22,b)}else if(a=="suggestions"){this.Qf(40,b);this.Qf(41,b);this.Qf(42,b);this.Qf(50,b);this.Qf(51,b)}};var ok=k,nk=function(){if(ga(ok)){ok=new Dg;for(var a in pk)ok.G(pk[a],24)}return ok};var qk=function(a,b,c,d){if(a)if(y(a)){a.toString();this.nodeId=a}else if(ma(a)&&!la(a))Sd(this,a);else e(new Error("type error"));if(b){if(!ka(b))e(new Error("version must be number"));this.version=b}if(c){if(!la(c))e(new Error("type must be function"));this.type=c}if(d)this.hS=d},rk=function(a,b,c,d){this.nodeId=a;if(b)this.version=b;if(c)this.type=c;if(d)this.hS=d},sk=function(a,b,c,d){return new rk(a,b,c,d)};var tk=function(a){li.call(this);this.t8=this.Z=r(a)?a:1;this.Uaa=[];if(this.Z<0)e(new Error("out of bounds"));this.Z||li.prototype.sa.call(this)};E(tk,li);q=tk.prototype;q.BU=function(a,b){this.Z+=a;this.t8=Math.max(this.t8,this.Z);if(this.Z<0)e(new Error("out of bounds"));a<0&&r(b)&&this.Uaa.push(b);a<0&&this.Z==0&&!this.zh&&li.prototype.sa.call(this,this.Uaa)};q.ma=function(){return this.Z};q.sa=function(a){this.BU(-1,a)};q.Ja=function(a){this.zh||li.prototype.Ja.call(this,a)};
q.Iha=function(a){this.BU(1);a.k(this.sa,this);a.w(this.Ja,this)};var uk=function(){this.Qq=new Cg},vk=function(){return D("knol.NodeFetcher")},wk=function(a,b){if(a.search(/ /)!=-1)e(new Error("given nodeId: "+a+" must not contain spaces"));return a+" "+b};q=uk.prototype;q.h$=function(a){if(!(a instanceof qk))e(new Error("type error"));if(!y(a.nodeId))e(new Error("non-string nodeId of: "+a.nodeId+" is not valid"));if(!r(a.version))a.version=-2;if(a.version<-3)e(new Error("bad knol.NodeFetcher.VersionType specified"));this.Qq.G(wk(a.nodeId,a.version),a)};
q.aea=function(a,b){this.rp=new tk(this.Qq.ma());a&&this.rp.k(a);b&&this.rp.w(b);this.YHa();this.ZHa();this.$Ha();return this.rp};q.ma=function(){return this.rp?this.rp.ma():0};q.oM=function(a){for(var b=this.Qq.vb(),c=0;c<b.length;c++){var d=b[c],f=this.Qq.z(d);f.V5||a.call(this,d,f)}};q.YHa=function(){vk();this.oM(function(a,b){if(b.version!=-3){var c=a.split(" ")[0],d=b.version>0?b.version:k,f=xk.z(c,d);if(f){var g=f.Kn();if(g!=f.yx())if(b.version==-2)f=k;if(f){b.V5=j;b.node=f;this.sM(b)}}}})};
q.ZHa=function(){this.oM(function(a,b){var c=this.m4(a);if(c){vk();b.V5=j;c.hK.push(z(function(d,f){var g=this.Qq.z(d);g.node=f;this.sM(g)},this));c.QL.push(z(this.bM,this))}})};var yk=function(){Dg.call(this)};E(yk,Dg);
uk.prototype.$Ha=function(){var a=k;this.oM(function(c,d){a||(a=new yk);a.G(c,[d.nodeId,d.version||k,d.type||k,d.hS||l,d.node?Jf(d.node):k]);this.hia(c,d);vk()});if(a){var b=V("knol.NodeFetcher.fulfillOnServer",[a]);b.k(function(c){a.clear();Lf(a,c);for(var d=a.vb(),f=0;f<d.length;f++){var g=d[f],h,i=a.z(g),m=new qk(i[0],i[1],i[2],i[3]);if(i[4])m.node=K({Mf:i[4]});h=m;if(!h)e(new Error("missing order"));var n=h.node;this.Qq.G(g,h);var o=g.split(" ")[0];vk();if(n){var p=n.Kn();xk.reset(o,p,n)}else xk.reset(o,
h.version,k);this.sM(h,g)}},this);b.w(function(c){var d=vk();d.za("server request failed",c);for(var f=a.vb(),g=0;g<f.length;g++)this.Maa(f[g],k,c);this.bM(c)},this)}};uk.prototype.sM=function(a,b){if(a.wqa)e(new Error("order already fulfilled"));a.wqa=j;a.hS&&!a.node&&this.bM("failed to fulfill order "+Te(a));b&&this.Maa(b,a.node,k);this.rp.sa()};uk.prototype.bM=function(a){this.rp.Ja(a)};var zk=new Cg;uk.prototype.m4=function(a){return zk?zk.z(a):k};
uk.prototype.hia=function(a,b){var c=Ye(b);c.hK=[];c.QL=[];zk.G(a,c)};uk.prototype.Maa=function(a,b,c){vk();var d=this.m4(a);if(d){zk.remove(a);if(c)for(var f=0;f<d.QL.length;f++)d.QL[f](c);else for(f=0;f<d.hK.length;f++)d.hK[f](a,b)}};uk.prototype.Ui=function(a,b){r(b)||(b=-2);return this.Qq.z(wk(a,b))};var Ak=function(a,b,c,d,f){if(!y(a))e(new Error("expected string nodeId, saw "+Ue(a)));var g=new uk;g.h$(new qk(a,b,c,undefined));g.aea(function(){d(g.Ui(a,b).node)},f)};var Ck=function(a,b){Bk+=1;try{a();Bk-=1}catch(c){var d=D("knol.RetryEnv");if(c instanceof li){var f=c;f.k(function(){Bk-=1;Ck(a,b)});f.w(function(g){d.S("deferred failed",g);Bk-=1;b&&b(g)})}if(c instanceof qk)Ak(c.nodeId,c.version,c.type,function(){Bk-=1;Ck(a,b)},function(){d.S("failed to get node",c);Bk-=1;b&&b(c)});else{Bk-=1;if(b)b(c);else e(c)}}},Bk=0,Dk=function(a){var b=new li;Ck(function(){var c=a();if(c instanceof li){c.k(b.sa,b);c.w(b.Ja,b)}else b.sa(c)},z(b.Ja,b));return b};var Ek=function(a){this.$a=a;this.Tc=[];a.k(this.Lb,this);a.w(this.Ms,this)};Ek.prototype.Lb=function(a){for(var b;b=this.Tc.shift();)b.sa(a);return a};Ek.prototype.Ms=function(a){for(var b;b=this.Tc.shift();)b.Ja(a);return a};Ek.prototype.e4=function(){var a=new li;if(this.$a.zh)this.$a.GA?a.sa(this.$a.result):a.Ja(this.$a.result);else this.Tc.push(a);return a};var Fk=function(a,b,c){this.Kb=1;this.sh=c||0;if(a!=k&&(!ma(a)||la(a)))e(new Error("rpc that type error"));if(b&&!y(b)&&!la(b))e(new Error("rpc method type error"));this.wm=a;this.ik=b};q=Fk.prototype;
q.la=function(a,b,c,d){D("knol.RPC");this.xja=a=a||[];if(!ia(a))e(new Error("args type error"));if(!la(b))e(new Error("cb type error"));if(!la(c))e(new Error("eb type error"));this.Kb=2;this.Lb=b;this.Ms=c;b=z(this.QT,this);c=z(this.opa,this);this.wh=new tk(1);this.Lw=new uk;this.sh>0&&window.setTimeout(z(this.KNa,this),this.sh);this.PQ(this.wm);this.PQ(a);this.wh.k(function(){this.Kb=3;this.kS(this.wm);this.kS(a);this.Kb=4;if(this.ik){var f;if(this.wm instanceof rk){if(!y(this.ik))e(new Error("Rpc method must be a string for remote nodes"));
if(d&&this.Z5()){f=this.hra();if(f instanceof Ek)f=f.e4()}else{f=Cj(this.wm.nodeId,this.ik,a);if(d)if(f instanceof li){var g=new Ek(f);f=g.e4();this.$Y(g)}else this.$Y(f)}}else{if(y(this.ik))this.ik=this.wm[this.ik];f=this.ik.apply(this.wm,a)}if(f instanceof li){f.k(b);f.w(c)}else this.QT(f,l)}else this.QT(a,j)},this);this.wh.w(c);this.Lw.aea(z(this.wh.sa,this.wh),z(this.wh.Ja,this.wh))};q.QT=function(a,b){if(this.Kb!=6){this.Kb=4;return b?this.Lb.apply(k,a):this.Lb(a)}};
q.opa=function(a){if(this.Kb!=6){this.Kb=5;return this.Ms(a)}};q.KNa=function(){if(this.JAa()){this.Kb=6;this.Ms("timeout")}};q.JAa=function(){return this.Kb!=6&&this.Kb!=4&&this.Kb!=5};q.PQ=function(a,b,c){if(ia(a))for(var d=0;d<a.length;d++)this.PQ(a[d],a,d);else if(a instanceof qk)this.Lw.h$(a);else if(a instanceof li){this.wh.BU(1);a.k(z(function(f,g,h){if(f)f[g]=h;else this.wm=h;this.wh.sa();return h},this,b,c));a.w(this.wh.Ja,this.wh)}};
q.kS=function(a,b,c){if(ia(a))for(var d=0;d<a.length;d++)this.kS(a[d],a,d);else if(a instanceof qk){var f=this.Lw.Ui(a.nodeId,a.version);if(b)b[c]=f.node;else this.wm=f.node}};q.ma=function(){var a=this.wh?this.wh.ma():0;a+=this.Lw?this.Lw.ma():0;return a};var Gk=k;Fk.prototype.GM=function(){if(!this.ZY){var a={jWa:this.wm,method:this.ik,args:this.xja};this.ZY=yd(a)}return this.ZY};Fk.prototype.$Y=function(a){Gk||(Gk=new xc);var b=this.GM();Gk.G(b,a)};Fk.prototype.Z5=function(){return!!Gk&&Gk.me(this.GM())};
Fk.prototype.hra=function(){var a=this.GM();if(!this.Z5())e(new Error("No cached result for "+a));return Gk.z(a)};var Hk=function(){this.XS(0)};E(Hk,Ef);Hk.prototype.Uua=function(){return this.result};O(Hk,Hk.prototype.Uua,"result");Hk.prototype.jsa=function(){return this.error_code};O(Hk,Hk.prototype.jsa,"error_code");Hk.prototype.XS=function(a){this.error_code=a};Hk.prototype.mra=function(){return this.captcha_token};O(Hk,Hk.prototype.mra,"captcha_token");Hk.prototype.GCa=function(){this.XS(2)};var Ik=function(a){this.D=a;this.XS(0)};E(Ik,Hk);var Jk=function(){return k};var Kk=function(a){this.Rc=a;this.De={};this.Pl={}};q=Kk.prototype;q.Dpa=function(a){if(!(a in this.Pl)){if(!a in this.De)e(new Error("No revisions exist for the given key: "+a));this.Pl[a]=-Infinity;for(var b in this.De[a]){b=Number(b);if(b>this.Pl[a])this.Pl[a]=b}}return this.Pl[a]};q.add=function(a,b,c){this.Cm(a,b,c);if(a in this.De&&b in this.De[a])e(new Error("cannot re-add identical key = "+a+" and version = "+b));this.De[a]||(this.De[a]={});this.De[a][b]=c};
q.reset=function(a,b,c){this.Cm(a,b,c);a in this.De&&b in this.De[a]&&this.remove(a,b);this.add(a,b,c)};q.Cm=function(a,b,c){if(!y(a))e(new Error("invalid key "+a));if(!ka(b))e(new Error("invalid versionNumber "+b));if(c!=k&&!(c instanceof this.Rc))e(new Error("cannot cache item "+Ue(c)+" that is not of type: "+this.Rc))};q.jb=function(a){delete this.De[a];delete this.Pl[a]};q.remove=function(a,b){if(!(!a in this.De||!this.De[a]))if(b in this.De[a]){delete this.De[a][b];b==this.Pl[a]&&delete this.Pl[a]}};
q.z=function(a,b){if(!a in this.De||!this.De[a])return undefined;var c=r(b)&&!ga(b)?b:this.Dpa(a);return this.De[a][c]};q.vb=function(){return ac(this.Pl)};var R=function(a,b){var c=new qk(a);c.pza=b||l;var d;if(c.page){c.nodeId=ii(c.page);if(c.nodeId){c.version=c.page.revision;d=xk.z(c.nodeId,c.version);if(r(d))return d}d=this.WZ(c);d.B5()}else if(c.Mf){c.nodeId=ji(c.Mf);if(c.nodeId){c.version=c.Mf[hi.BJ];d=xk.z(c.nodeId,c.version);if(r(d))return d}d=this.Vla(c)}else d=c.nodeId?this.Ula(c):this.Tla(c);d&&d.VD()&&d.n()&&!c.oVa&&d.Tk();return d};E(R,Ef);var xk=new Kk(R);R.prototype.Tk=function(){xk.reset(this.n(),this.Kn(),this)};
var K=function(a){var b=new R(a,j);return b.VD()?b:k},Pk=function(a){var b=new Error("Failure trying to fetch node order("+Ue(a)+") on client side, use RetryEnv or NodeFetcher instead");return b},lh=function(a){return a&&a.message&&y(a.message)&&a.message.indexOf("Failure trying to fetch node")==0};q=R.prototype;q.Ula=function(a){if(!y(a.nodeId))e(new Error("expected string nodeId "+a.nodeId));var b=a.version>=0?a.version:k,c=xk.z(a.nodeId,b);if(r(c))return c;if(Bk>0)e(a);else e(Pk(a))};
q.Tla=function(a){if(a.pza)return this;if(!this.Fr)e(new Error("expected typeName"));var b=a.nodeId?fi(a.nodeId):{};if(this.Mka())b.webspace="";else if(!b.webspace)e(new Error("new node "+a.nodeId+" must specify webspace"));for(var c=b.path,d=0;d<3;){if(!c||!c.length){b.path=di(Xe(),6);b.webspace+"."+di(Xe(),6)}b.properties={"main/text":""};b.properties[Qk.Pv]="/system/knol/templates/"+this.Fr;b.addRevisionEntry=l;a.page=jot.lib.savePage(b);break}return this.WZ(a)};
q.Mka=function(){return this.Fr=="Knol"||this.Fr=="User"||this.Fr=="Group"};q.WZ=function(a){var b=this,c=this.Y3(a.page);if(Rk(c)){var d=Sk[c];if(this.constructor!=d){var f=function(){};f.prototype=d.prototype;f.prototype.constructor=d;b=new f}}b.lGa(a);a.type&&!(b instanceof a.type)&&b.tb("unexpected page type");return b};
q.Vla=function(a){if(a&&r(a.Mf)){var b=this,c=a.Mf[hi.Nv];if(Rk(c)){var d=Sk[c];if(this.constructor!=d){var f=function(){};f.prototype=d.prototype;f.prototype.constructor=d;b=new f}}Lf(b,a.Mf);a.type&&!(b instanceof a.type)&&b.tb("unexpected page type");return b}};var Rk=function(a){var b=Sk[a];return b&&b.prototype instanceof R};R.prototype.B5=function(){};
var Qk={Rr:"main/text",Ro:"language",jJ:"license",RI:"adSensePolicy",QI:"accessPolicy",oB:"accessType",HV:"emailPolicy",zJ:"title",XI:"createUser",Pv:"sys/template",tW:"logicalVersion",yW:"nextChild",QW:"redFlags",fV:"blacklisted",vW:"mailEventsId",CW:"nvc",cga:"effk",bga:"efd",MV:"enableContributorsList",RV:"enableTableOfContents",TV:"enableUnsolicitedReviews",IV:"enableAlsoWrote",PV:"enableRelatedKnols",JV:"enableCategories",OV:"enableReaderCategories",KV:"enableComments",LV:"enableCommentApproval",
NV:"enableModeratorList"},hi={Nv:"nodeType",Pr:"id",nX:"url",CJ:"webspace",WTa:"wuid",xga:"path",HW:"pathEncoded",BJ:"versionNumber",qW:"latestVersionNumber",GV:"editTime",cJ:"editTimeMs",uV:"createTime",vV:"createTimeMs",WV:"exists"};R.prototype.R=function(a){for(var b in a)if(this.bu(Qk,b)||this.bu(Ij,b)){var c=a[b]?a[b].VR||a[b].constructor:k;if(If(c))typeof a[b]=="boolean"?this.Qu(b,a[b]):this.setProperty(b,a[b]);else this.E6(b,a[b])}else if(this.bu(hi,b))this[b]=a[b]};
var Tk=function(a,b,c){for(var d in c)if(b.bu(a,d)){var f=c[d]?c[d].VR||c[d].constructor:k;if(If(f))typeof c[d]=="boolean"?b.Qu(d,c[d]):b.setProperty(d,c[d]);else b.E6(d,c[d])}};R.prototype.bu=function(a,b){if(b.search(Ve)!=-1)return l;for(var c in a)if(a[c]==b)return j;return l};R.prototype.Rb=function(a){this.vla();Lf(this,a)};var Uk=function(){return D("knol.Node")};R.prototype.ae=function(){return Uk()};var Sk={},Vk=function(a,b,c){E(a,b);a.prototype.Fr=c;Sk[c]=a};R.prototype.remove=function(){};
R.prototype.MGa=function(a,b){for(var c=a.Xb(),d=0;d<c.length;d++){var f=c[d],g=K(f),h=k;if(g)h=a.Xsa(g);else this.ae().S("missing counterpart of "+this.n()+" in relation = "+Ue(a));a.remove(f);if(h&&h.Ea())if(la(b))b.call(this,g);else if(b==2)g.remove();else!b||b==1||this.tb("removeFromRelation, unknown policy "+b)}};R.prototype.Y3=function(a){var b;if(!this[hi.Nv]){b=a?a.flatData[Qk.Pv]:this.l(Qk.Pv);this[hi.Nv]=y(b)?b.indexOf("/system/knol/templates")!=0?k:b.split("/").pop():k}return this[hi.Nv]};
O(R,R.prototype.Y3,hi.Nv);q=R.prototype;q.l=function(a,b){y(a)||this.tb("invalid property "+a);return this.Lq&&a in this.Lq?this.Lq[a]:this.properties&&a in this.properties?this.properties[a]:r(b)?b:k};q.removeProperty=function(a){this.uh&&delete this.uh[a];this.properties&&delete this.properties[a];this.Lq&&delete this.Lq[a]};q.setProperty=function(a,b){y(a)||this.tb("invalid property "+a);if(!this.Lq)this.Lq={};this.uh&&delete this.uh[a];this.properties&&delete this.properties[a];this.Lq[a]=b};
q.ub=function(a,b){var c=this.l(a,b?1:0);return Boolean(c&&c!="0")};q.Qu=function(a,b){this.setProperty(a,b&&b!="0"?1:0)};q.f5=function(){if(!this.uh)this.uh={}};q.fc=function(a,b,c){Uk();y(a)||this.tb("invalid property");this.f5();if(!(a in this.uh)){var d={};if(b)d=b.call(k);var f,g=this.l(a);f=g;var h=k;if(f)h=f.value?f.value:f;if(h){if(la(d.parse))d.parse(qf(h));else if(ma(h))Lf(d,h);else e(new Error("unknown property type for: "+a));this.uh[a]=d}else if(c)this.uh[a]=d}return this.uh[a]};
q.oj=function(a,b){this.dLa(a,cc(b)?k:Jf(b))};q.dLa=function(a,b){this.aZ(a,b);this.gT(a,cc(b)?k:b)};q.gT=function(a,b){y(a)||this.tb("invalid property name: "+a);b&&!ma(b)&&this.tb("invalid property("+a+") value: "+b);var c=b?b:k;this.setProperty(a,c)};q.gLa=function(a,b){this.gT(a,wd(b))};q.E6=function(a,b){y(a)||this.tb("invalid property");this.removeProperty(a);this.gT(a,b);this.uh&&delete this.uh[a]};q.aZ=function(a,b){y(a)||this.tb("invalid property");this.f5();this.uh[a]=b};
q.vla=function(){delete this.uh;delete this.nB;delete this.Cu;this.FZ()};q.oLa=function(a,b){if(!this.nB)this.nB={};this.nB[a]=b};q.VH=function(){};q.Qva=function(a){return this.nB?this.nB[a]||k:k};q.xwa=function(a,b,c){Uk();var d=this.Qva(a);if(d)return d;if((d=this.l(a,b))&&!y(d))if(c)if(typeof d=="object")d=d.toXmlString();else this.tb("unexpected type of value ("+typeof d+") for property: "+a);else d=d.toHtml();this.oLa(a,d);return d};q.yE=function(a){var b=this.l(a);return b?K(b):k};
q.s3=function(a,b,c){var d=this.fc(a,c);if(d){var f=b.call(d);if(f)return f}var g=this.eE();if(g)return g.s3(a,b);return k};q.eE=function(){return k};q.ea=function(){return this[hi.nX]};O(R,R.prototype.ea,hi.nX);R.prototype.Dx=function(){return this.ea()};R.prototype.VD=function(){return this[hi.WV]};O(R,R.prototype.VD,hi.WV);R.prototype.Bl=function(a){return this.xwa(Qk.Rr,k,a)};R.prototype.zH=function(a){delete this.mCa;delete this.YF;this.VH(Qk.Rr,a,l,l)};
R.prototype.nE=function(){if(!r(this.YF)){var a;this.Bl();this.n();this.YF=a=k}return this.YF};R.prototype.n=function(){r(this[hi.Pr])||(this[hi.Pr]=this.path?ii(this):k);return this[hi.Pr]};O(R,R.prototype.n,hi.Pr);R.prototype.Ll=function(){return this[hi.CJ]};O(R,R.prototype.Ll,hi.CJ);R.prototype.oua=function(){return this[hi.HW]};O(R,R.prototype.oua,hi.HW);R.prototype.Pta=function(){return this.l(Qk.yW,1)};O(R,R.prototype.Pta,Qk.yW);R.prototype.Kn=function(){return this[hi.BJ]||1};
O(R,R.prototype.Kn,hi.BJ);R.prototype.yx=function(){return this[hi.qW]};O(R,R.prototype.yx,hi.qW);var Wk={iTa:"read",VTa:"write",dQa:"addChild",cQa:"addAttachment",wga:"owner"};q=R.prototype;q.jKa=function(a,b){this.setProperty("sys/permission/"+a,b)};q.ALa=function(a){var b=["write","addChild","addAttachment","owner"];C(b,function(c){this.setProperty("sys/permission/"+c,a)},this)};q.BGa=function(){for(var a in Wk)this.removeProperty("sys/permission/"+a)};q.addRevisionEntry=function(){return l};
q.save=function(){};q.getLanguage=function(){return this.l(Qk.Ro)};O(R,R.prototype.getLanguage,Qk.Ro);R.prototype.$M=function(){return Nj(this,Ij.$I)};R.prototype.l4=function(){return Nj(this,Ij.HB)};R.prototype.P3=function(){return Nj(this,Ij.wW)};R.prototype.En=function(){var a=this.l(Qk.jJ);return a?Pg(a.replace(/"/g,"")):new Mg};O(R,R.prototype.En,Qk.jJ);R.prototype.ica=function(a){this.setProperty(Qk.jJ,a.toString())};R.prototype.ln=function(){return this.fc(Qk.RI,function(){return new vh})};
O(R,R.prototype.ln,Qk.RI);R.prototype.Cba=function(a){this.oj(Qk.RI,a)};R.prototype.jf=function(){var a,b=this.l(Qk.QI);if(b){var c=this.fc(Qk.QI,function(){return new dh("moderated")});a=c.vE()}r(a)||(a=this.l(Qk.oB,"moderated"));return a};O(R,R.prototype.jf,Qk.oB);R.prototype.JS=function(a){this.oj(Qk.QI,k);this.setProperty(Qk.oB,a)};R.prototype.a3=function(){return this.fc(Qk.HV,function(){return new lk},j)};O(R,R.prototype.a3,Qk.HV);R.prototype.ad=function(){return this.l(Qk.zJ)};
O(R,R.prototype.ad,Qk.zJ);q=R.prototype;q.Sf=function(a){this.setProperty(Qk.zJ,a);this.FZ()};q.Mh=function(){if(!r(this.pv))this.pv=of(this.ad(),250)||"Untitled";return this.pv};q.FZ=function(){delete this.pv};q.ak=function(){return this.ad()||"Untitled"};q.vta=function(){return this.l(Qk.vW)};O(R,R.prototype.vta,Qk.vW);R.prototype.bN=function(){return this[hi.GV]};O(R,R.prototype.bN,hi.GV);R.prototype.ix=function(){return this[hi.cJ]};O(R,R.prototype.ix,hi.cJ);R.prototype.Ira=function(){return this[hi.uV]};
O(R,R.prototype.Ira,hi.uV);R.prototype.UM=function(){return this[hi.vV]};O(R,R.prototype.UM,hi.vV);R.prototype.Jra=function(){return this.l(Qk.XI)};O(R,R.prototype.Jra,Qk.XI);R.prototype.yJa=function(a){this.setProperty(Qk.XI,a)};R.prototype.sta=function(){return this.l(Qk.tW,0)};O(R,R.prototype.sta,Qk.tW);q=R.prototype;q.X3=function(){return this.ub(Qk.CW,l)};q.bT=function(a){this.Qu(Qk.CW,a);if(a){this.setProperty(Qk.QW,k);this.oJa(l)}};
q.Iua=function(){return this.fc(Qk.QW,function(){return new Dg},j)};q.L7=function(){for(var a=this.Iua(),b=a.vb(),c=0;c<b.length;c++){var d=b[c];if(d!="102"&&a.z(d))return j}return l};q.l2=function(){return this.l(Qk.fV)=="1"};q.oJa=function(a){this.setProperty(Qk.fV,a?"1":"0")};q.UD=function(){return this.ub(Qk.cga)};q.lx=function(){return this.ub(Qk.bga)};q.Lh=function(){Uk().za("this node does not specify permission levels");this.tb("type error")};q.gN=function(){return this.ub(Qk.MV,j)};
O(R,R.prototype.gN,Qk.MV);R.prototype.RD=function(){return this.ub(Qk.RV,j)};O(R,R.prototype.RD,Qk.RV);R.prototype.SD=function(){return this.ub(Qk.TV,j)};O(R,R.prototype.SD,Qk.TV);R.prototype.eN=function(){return this.ub(Qk.IV,j)};O(R,R.prototype.eN,Qk.IV);R.prototype.iN=function(){return this.ub(Qk.PV,j)};O(R,R.prototype.iN,Qk.PV);R.prototype.fN=function(){return this.ub(Qk.JV,j)};O(R,R.prototype.fN,Qk.JV);R.prototype.QD=function(){return this.ub(Qk.OV,j)};O(R,R.prototype.QD,Qk.OV);
R.prototype.nt=function(){return this.ub(Qk.KV,j)};O(R,R.prototype.nt,Qk.KV);R.prototype.jx=function(){return this.ub(Qk.LV,l)};O(R,R.prototype.jx,Qk.LV);R.prototype.hN=function(){return this.ub(Qk.NV,j)};O(R,R.prototype.hN,Qk.NV);R.prototype.tb=function(a){a=this.Fr+" nodeId: "+this.n()+" "+a;var b=Uk();b.za(a);var c=new Error(a);c.D=a;e(c)};R.prototype.S=function(a){a=this.Fr+" nodeId: "+this.n()+" "+a;var b=Uk();b.S(a)};R.prototype.Hva=function(){return this.l(Qk.Pv)};O(R,R.prototype.Hva,Qk.Pv);
q=R.prototype;q.lGa=function(){};q.log=function(){};q.removeNode=function(){};q.V7=function(){return l};q.purgeCache=function(){};q.dua=function(){return Xk(Bf(this.n()))};var Yk={},Xk=function(a){var b,c=a,d=Yk,f,g;if(y(c)){f=c;g=k}else{f=c.nodeId;g=c.type;delete c.type}if(!(f in d))try{d[f]=K(c)}catch(h){if(lh(h))e(h);else d[f]=k}var i=d[f];if(i&&g&&!(i instanceof g)){var m=Uk();m.za("Wrong type of offline node found at key = "+f);i=k}return b=i};
R.prototype.Zp=function(a,b){var c=this.dua();if(c){var d=c.l(a,b);if(d)return d}return this.l(a,b)};var Zk=function(a){return R.call(this,a)};Vk(Zk,R,"Attachment");Zk.prototype.remove=function(){};Zk.prototype.attach=function(){};Zk.prototype.detach=function(){};var $k=function(a){return R.call(this,a)};Vk($k,Zk,"ImageAttachment");$k.prototype.attach=function(){};$k.prototype.detach=function(){};var al=function(a){return R.call(this,a)};Vk(al,R,"ChatLogNode");al.prototype.$d=function(){return this.n().substring(0,this.n().length-8)};al.prototype.Ca=function(){return this.l("knolId")};al.prototype.Pf=function(a){return this.setProperty("knolId",a)};var bl=function(a){a&&this.CR(a)};E(bl,Ef);q=bl.prototype;q.CR=function(a){var b=wd(a);this.yUa=b.daily;this.dPa=b.weekly;this.kU=b.total;this.Hz=b.quantile;this.md=b.history};q.wO=function(){return this.dPa};q.pO=function(){return this.kU};q.s4=function(){return this.Hz};q.rN=function(){return this.md};var cl=function(a){a&&y(a)&&this.CR(a)};E(cl,Ef);
cl.prototype.CR=function(a){this.ji=wd(a);this.bw=0;this.iUa="";for(var b=ac(this.ji),c=0;c<b.length;c++){var d=b[c];if(d=="score")this.LVa=this.ji[d];else if(d=="quantile"){this.Hz=this.ji[d];if(this.Hz>this.bw){this.bw=this.Hz;this.dka="all"}}else{var f=this.ji[d],g=f.quantile;if(g>this.bw){this.bw=g;this.dka=d}}}};cl.prototype.s4=function(){return this.Hz};cl.prototype.dra=function(){return this.bw};var dl=function(a){return R.call(this,a)};Vk(dl,R,"KnolOffline");var el={ye:"knolId",si:"knolMetaId",Sv:"webContentDuplicates",Rv:"ttsVersion",Qv:"ttsBlobstoreId",Cga:"restrictSearch",sJ:"relatedKnols",Ro:"langidLanguageCode",oga:"knolRQ",DB:"knolQQ",Dg:"pageviews",Em:"comments",Eg:"reviews",So:"ratings",vh:"suggestions",Iv:"badges",mW:"knolTemplateCount",UW:"reviewTemplateCount",Iga:"spamScore",gTa:"zipitRatingAvg",hTa:"zipitRatingCount",dX:"titleUrl",eX:"titleUrlTimestamp"};
dl.prototype.R=function(a){Tk(el,this,a);dl.e.R.call(this,a)};dl.prototype.Ca=function(){return this.l(el.ye)};O(dl,dl.prototype.Ca,el.ye);dl.prototype.Pf=function(a){return this.setProperty(el.ye,a)};dl.prototype.$d=function(){var a=this.n();return a.substring(0,a.length-8)};O(dl,dl.prototype.$d,el.si);dl.prototype.KE=function(){return this.l(el.Sv)};O(dl,dl.prototype.KE,el.Sv);dl.prototype.lO=function(){return this.l(el.Rv,0)};O(dl,dl.prototype.lO,el.Rv);dl.prototype.kO=function(){return this.l(el.Qv)};
O(dl,dl.prototype.kO,el.Qv);dl.prototype.getLanguage=function(){return this.l(el.Ro)};dl.prototype.C3=function(){return this.l(el.DB)};dl.prototype.Gn=function(){var a=this.l(el.Dg);return new bl(a)};O(dl,dl.prototype.Gn,el.Dg);dl.prototype.JD=function(){var a=this.l(el.Em);return new bl(a)};O(dl,dl.prototype.JD,el.Em);dl.prototype.ZN=function(){var a=this.l(el.Eg);return new bl(a)};O(dl,dl.prototype.ZN,el.Eg);dl.prototype.xE=function(){var a=this.l(el.So);return new bl(a)};O(dl,dl.prototype.xE,el.So);
dl.prototype.DE=function(){var a=this.l(el.vh);return new bl(a)};O(dl,dl.prototype.DE,el.vh);dl.prototype.dta=function(){return this.l(el.mW,0)};O(dl,dl.prototype.dta,el.mW);dl.prototype.Wua=function(){return this.l(el.UW,0)};O(dl,dl.prototype.Wua,el.UW);dl.prototype.R4=function(){return this.l(el.Iga,0)};dl.prototype.oO=function(){return this.l(el.dX)};O(dl,dl.prototype.oO,el.dX);dl.prototype.Pva=function(){return this.l(el.eX)};O(dl,dl.prototype.Pva,el.eX);var fl=function(a,b){this.Da=a;this.Yka=b||[]},gl=[],hl={},il=function(a){var b=new a;gl.push(b);hl[b.n()]=b};fl.prototype.n=function(){return this.Da};fl.prototype.lra=function(){return this.Yka};fl.prototype.Sn=function(){return j};fl.prototype.rP=j;var jl=function(){};E(jl,Ef);var kl={XTa:"yes",RSa:"p_yes",ESa:"neutral",QSa:"p_no",HSa:"no",MSa:""};q=jl.prototype;q.serialize=function(){var a={};a.question=this.yt();a.rating=this.El();a.canned=this.FD();a.detail=this.ht();return a};
q.R=function(a){this.LG=hl[a.question]||k;this.uca(a.rating||"");this.hw=a.canned||k;this.Vba(a.detail||"")};q.jc=function(a){return!!a&&this.Za()&&a.Za()&&this.yt()==a.yt()&&this.El()==a.El()&&this.FD()==a.FD()&&this.ht()==a.ht()};q.Za=function(){return!!this.LG&&rc(kl,this.dm)&&(!this.hw||zb(this.LG.lra(),this.hw))};q.yt=function(){return this.LG.n()};q.El=function(){return this.dm};q.uca=function(a){this.dm=a};q.oya=function(){return!!this.hw};q.FD=function(){return this.hw};
q.ht=function(){return this.oya()?k:this.p0};q.Vba=function(a){this.p0=Xa(a,300)};q.Ea=function(){return(this.El()=="neutral"||this.El()=="")&&!this.FD()&&!this.ht()};var ll=function(){this.Pk={}};E(ll,Ef);var ml=function(){return new ll};q=ll.prototype;q.serialize=function(){var a={};a.answers=tb(pc(this.Pk),Jf);return a};q.R=function(a){C(a.answers,function(b){var c=new jl;c.R(b);this.Hba(c)},this)};
q.jc=function(a){return!!a&&this.Pk&&a.Pk&&oc(this.Pk)==oc(a.Pk)&&wc(this.Pk,function(b){return b.jc(a.Pk[b.yt()])},this)};q.f2=function(a){return this.Pk[a]||k};q.Qqa=function(a){return this.f2(a.n())};q.Hba=function(a){if(a.Za())this.Pk[a.yt()]=a};q.Ea=function(){for(var a,b=[],c=gl,d=0;d<c.length;d++)c[d].rP&&b.push(c[d]);a=b;for(var f=0;f<a.length;f++){var g=this.Qqa(a[f]);if(g&&!g.Ea())return l}return j};var nl=function(a){return R.call(this,a)};Vk(nl,R,"KnolScores");nl.prototype.bu=function(a,b){var c;var d=b;c=wa(d,"userScores_")?d.replace("userScores_","").replace(/_/g,"."):k;if(c)return j;return nl.e.bu.call(this,a,b)};nl.prototype.$d=function(){return this.n().substring(0,this.n().length-7)};var ol=function(a){this.Ef=this.Ef||3;return R.call(this,a)};Vk(ol,R,"Message");var pl=1296000000,ql=function(){return D("knol.Message")};q=ol.prototype;q.type=0;q.remove=function(){this.ae();this.Mx().jb();this.u4().jb();this.Sw().jb();ol.e.remove.call(this)};q.cka=function(){this.Cc()!=6&&this.Bb(5)};
q.send=function(a,b,c){ql();this.Cc()!=1&&this.tb("message already sent!");var d=this.Mx(),f=this.u4(),g=this.Sw();a&&d.add(a);b&&f.add(b);c&&g.add(c);d.Ea()&&this.tb("message has no sender!");this.Cm();Jk(z(function(){this.Bb(2);this.fs()&&this.Pja();d.save();f.save();g.save()},this))};q.fs=function(){if(this.w3())return l;else{var a=gh(K(this.Mx().Qi()),this.Sw().zx(),this.Ef);return a==4}};q.Cm=function(){};q.Pja=function(){ql();this.W$();this.$G(1,this.Mx().Qi(),"")};
q.Vd=function(){var a=this.Cc();if(a==1||a==2){this.cka();return j}else return l};q.W$=function(){this.Bb(3)};q.$G=function(a,b,c){ql();this.Cc()==3&&a==1&&this.NA();this.Bb(4);this.WKa(a);var d=this.Mx().Qi();if(d!=b){var f=new ol(this.Ll());f.zH(c||"");f.send(b,d,this.n())}};q.NA=function(){};q.Mx=function(){return Nj(this,Ij.WW)};q.u4=function(){return Nj(this,Ij.OW)};q.Sw=function(){return Nj(this,Ij.WU)};q.Cc=function(){var a=this.l("messageState",1);return a?Number(a):k};
O(ol,ol.prototype.Cc,"messageState");ol.prototype.Bb=function(a){return this.setProperty("messageState",a)};ol.prototype.Rua=function(){var a=this.l("messageResolution");return a?Number(a):k};O(ol,ol.prototype.Rua,"messageResolution");ol.prototype.WKa=function(a){return this.setProperty("messageResolution",a)};ol.prototype.Yp=function(){var a=this.l("messageLevel");return a?Number(a):k};O(ol,ol.prototype.Yp,"messageLevel");ol.prototype.or=function(a){return this.setProperty("messageLevel",a)};
ol.prototype.w3=function(){return!!this.l("inhibitResolvePref")};O(ol,ol.prototype.w3,"inhibitResolvePref");ol.prototype.rf=function(){var a=this.l("messageToken");if(!a){a=di(Xe(),5)+di(Xe(),5)+di(Xe(),5);this.wo(a)}return a};O(ol,ol.prototype.rf,"messageToken");ol.prototype.wo=function(a){return this.setProperty("messageToken",a)};var rl=function(a){return R.call(this,a)};Vk(rl,R,"AuthorMailAcks");var pk={kSa:10,bSa:11,fSa:12,nSa:20,eSa:21,hSa:22,mSa:30,dSa:31,gSa:32,lSa:40,cSa:41,RQa:42,BTa:50,zTa:51,WQa:60};var sl=function(a){return R.call(this,a)};Vk(sl,R,"NodeMailEvents");var tl=function(a,b){return R.call(this,a,b)};Vk(tl,R,"SubCollectionSuggestions");q=tl.prototype;q.$d=function(){return this.n().substring(0,this.n().length-25)};q.Ca=function(){return this.l("knolId")};q.Pf=function(a){return this.setProperty("knolId",a)};q.CE=function(){return this.fc("submissions",ul,j)};q.kT=function(a){this.oj("submissions",a)};q.iq=function(){return this.fc("suggestions",vl,j)};q.mT=function(a){this.oj("suggestions",a)};var wl=function(){};E(wl,Ef);q=wl.prototype;
q.serialize=function(){return{}};q.R=function(){};q.mf=function(){var a=this.VN();return ac(a)};q.getSize=function(){return this.mf().length};q.VN=function(){return{}};q.Dn=function(a){return a.knolUrl};var xl=function(){};E(xl,wl);var vl=function(){return new xl};xl.prototype.serialize=function(){return this.JA||{}};xl.prototype.R=function(a){this.JA=a||{}};xl.prototype.VN=function(){return this.JA};
xl.prototype.Dn=function(a){if(a instanceof Array&&a.length>0)a=a[0];return wl.prototype.Dn.call(this,a)};var yl=function(){};E(yl,wl);var ul=function(){return new yl};yl.prototype.serialize=function(){return this.wk||{}};yl.prototype.R=function(a){this.wk=a||{}};yl.prototype.VN=function(){return this.wk};var zl=function(a,b,c,d,f,g,h){this.gc=a;this.Rc=b;this.wz=c;this.Zv=d;this.EA=g;this.FA=h;this.Jd=f};E(zl,Ef);q=zl.prototype;q.serialize=function(){var a={};a.knolId=this.Ca();a.type=this.ha();a.order=this.Ui();a.annotation=this.Ip();a.submittedTimestamp=this.jO();a.submitterId=this.Xg();a.hidden=this.xn();return a};q.R=function(a){if(a){this.Pf(a.knolId);this.fi(a.type);this.cT(a.order);this.LS(a.annotation);this.lT(a.submittedTimestamp);this.LH(a.submitterId);this.vH(a.hidden)}};
q.jc=function(a){return!!a&&this.Za()&&a.Za()&&this.Ca()==a.Ca()&&this.ha()==a.ha()&&this.Ui()==a.Ui()&&this.Ip()==a.Ip()&&this.Xg()==a.Xg()&&this.xn()==a.xn()};q.Ca=function(){return this.gc};q.ha=function(){return this.Rc};q.Ui=function(){return this.wz};q.Ip=function(){return this.Zv};q.jO=function(){return this.EA};q.Xg=function(){return this.FA};q.xn=function(){return this.Jd};q.Pf=function(a){this.gc=a};q.fi=function(a){this.Rc=a};q.cT=function(a){this.wz=a};q.LS=function(a){this.Zv=a};
q.lT=function(a){this.EA=a};q.LH=function(a){this.FA=a};q.vH=function(a){this.Jd=a};q.Za=function(){return!!this.Ca()&&!!this.ha()};q.Sn=function(a){if(!this.Za())return l;var b=a.z(this.Ca());return this.ha()=="add"?!b:!!b};var Al=function(){this.uC=[]};E(Al,Ef);var Bl=function(){return new Al};q=Al.prototype;q.serialize=function(){return tb(this.uC,Jf)};q.R=function(a){if(ia(a))for(var b=0;b<a.length;b++){var c=new zl;c.R(a[b]);c.Za()&&this.uC.push(c)}};q.mf=function(){return this.uC};
q.yH=function(a){this.uC=a||[]};q.Ea=function(){return!this.mf().length};q.ua=function(){var a=Bl();a.yH(this.mf().concat());return a};q.Rb=function(a){var b=l;if(a){for(var c=this.mf(),d=[],f=0;f<c.length;f++)if(c[f].Sn(a))d.push(c[f]);else b=j;b&&this.yH(d)}return b};q.t2=function(a,b){for(var c=this.mf(),d=0;d<c.length;d++)if(c[d].ha()==b&&c[d].Ca()==a)return c[d];return k};var Cl=function(a,b){return R.call(this,a,b)};Vk(Cl,R,"Submissions");q=Cl.prototype;q.$d=function(){return this.n().substring(0,this.n().length-12)};q.Ca=function(){return this.l("knolId")};q.Pf=function(a){return this.setProperty("knolId",a)};q.CE=function(){return this.fc("submissions",Bl,j)};q.kT=function(a){this.oj("submissions",a)};q.getMerged=function(){return this.ub("merged")};q.vKa=function(a){this.Qu("merged",a)};
q.OCa=function(){if(!this.getMerged()){for(var a=this.CE(),b=a.mf(),c=K(this.$d()),d=c&&c.iq(),f=d&&d.Xb()||[],g=0;g<f.length;g++){var h=K(f[g]);if(!(!h||h.Cc()!=1))for(var i=h.vra().mf(),m=0;m<i.length;m++){i[m].LH(h.Qp());b.push(i[m])}}this.vKa(j);this.kT(a)}};q.nwa=function(a){for(var b=this.CE().mf(),c=Bl(),d=c.mf(),f=0;f<b.length;f++)b[f].Xg()==a&&d.push(b[f]);return c};q.Rb=function(a){var b=this.CE();if(b.Rb(a)){this.kT(b);this.save()}};
var Dl=function(a,b,c,d,f){this.xf=a;this.Gm=b;this.tC=c;this.jaa=d;this.WQ=f;this.SA=ua()};E(Dl,Ef);q=Dl.prototype;q.serialize=function(){var a={};a.token=this.rf();a.accept=this.Aqa();var b=this.t2();if(b)a.change=b.serialize();var c=this.Mua();if(c)a.relatedChanges=c.serialize();a.moderatorId=this.Bta();a.timestamp=this.$j();return a};
q.R=function(a){if(a){this.wo(a.token);this.SIa(a.accept);var b=new zl;b.R(a.change);this.sJa(b);var c=Bl();c.R(a.relatedChanges);this.SKa(c);this.zKa(a.moderatorId);this.oA(a.timestamp)}};q.Za=function(){return!!this.xf&&!!this.tC&&this.tC.Za()&&!!this.WQ&&r(this.Gm)};q.rf=function(){return this.xf};q.wo=function(a){this.xf=a};q.Aqa=function(){return this.Gm};q.SIa=function(a){this.Gm=a};q.t2=function(){return this.tC};q.sJa=function(a){this.tC=a};q.Mua=function(){return this.jaa};
q.SKa=function(a){this.jaa=a};q.Bta=function(){return this.WQ};q.zKa=function(a){this.WQ=a};q.$j=function(){return this.SA};q.oA=function(a){this.SA=a};var El=function(){this.Pa={}};E(El,Ef);q=El.prototype;q.bb=function(a){if(a&&a.Za())this.Pa[a.rf()]=a};q.eo=function(a){a&&delete this.Pa[a]};q.contains=function(a){return ha(this.Pa[a])};q.serialize=function(){return Xb(this.Pa,Jf)};q.R=function(a){if(ma(a))for(var b in a){var c=new Dl;c.R(a[b]);if(c.Za())this.Pa[b]=c}};q.mf=function(){return this.Pa};
q.yH=function(a){this.Pa=a||{}};var Fl=function(a){return R.call(this,a)};Vk(Fl,R,"Suggestion");Sd(Fl.prototype,Ef.prototype);var Gl={bJ:"editorId",ye:"knolId",WI:"contentVersion",gJ:"knolContentVersion",Ov:"subtitle",To:"references",Hv:"abstract",wJ:"state",Uo:"snippet",yV:"diffCount",uW:"magnitude",Sfa:"collectionChanges",Sr:"moderatedCollection"};Fl.prototype.R=function(a){Tk(Gl,this,a);Fl.e.R.call(this,a)};Fl.prototype.remove=function(){};Fl.prototype.Yb=function(a,b){this.KJa(b);this.Pf(a);this.gca(K(this.Ca()).Tj())};
Fl.prototype.Et=function(){return this.l(Gl.Ov)};O(Fl,Fl.prototype.Et,Gl.Ov);Fl.prototype.Hx=function(){return this.fc(Gl.To,function(){return new Zh},j)};O(Fl,Fl.prototype.Hx,Gl.To);Fl.prototype.wca=function(a){this.oj(Gl.To,a)};Fl.prototype.yD=function(){return this.l(Hl.Hv)};O(Fl,Fl.prototype.yD,Gl.Hv);q=Fl.prototype;q.Tz=function(){var a=this.gla();if(a!=0)return a;this.Bb(2);var b=this.Fa(),c=b.iq();c.remove(this.n());return a};q.accept=function(){D("knol.Suggestion");return 199};
q.Uk=function(){var a=hg(),b=this.Fa();return gh(K(a),b,14)==4};q.gla=function(a,b){D("knol.Suggestion");if(this.Cc()!=1)return 103;else if(a&&a!=this.Kn())return 102;else if(b&&b!=K(this.Ca()).Tj())return 109;return 0};q.Bb=function(a){this.kza();this.setProperty(Gl.wJ,a)};q.Cc=function(){return this.l(Gl.wJ)||1};O(Fl,Fl.prototype.Cc,Gl.wJ);Fl.prototype.KJa=function(a){this.setProperty(Gl.bJ,a)};Fl.prototype.Qp=function(){return this.l(Gl.bJ)};O(Fl,Fl.prototype.Qp,Gl.bJ);
Fl.prototype.Pf=function(a){this.setProperty(Gl.ye,a)};Fl.prototype.Ca=function(){return this.l(Gl.ye)};O(Fl,Fl.prototype.Ca,Gl.ye);Fl.prototype.Fa=function(){return K(this.Ca()).Fa()};Fl.prototype.kza=function(){this.setProperty(Gl.WI,this.gx()+1)};Fl.prototype.gx=function(){return this.l(Gl.WI)||1};O(Fl,Fl.prototype.gx,Gl.WI);Fl.prototype.gca=function(a){this.setProperty(Gl.gJ,a)};Fl.prototype.rt=function(){return this.l(Gl.gJ)};O(Fl,Fl.prototype.rt,Gl.gJ);q=Fl.prototype;
q.zH=function(a){this.VH(Qk.Rr,a,j,j);delete this.mCa;delete this.YF};q.c6=function(){var a=this.l(Qk.Rr);return y(a)&&!a.length};q.Bl=function(){return this.c6()?k:Fl.e.Bl.call(this,j)};q.nE=function(){return this.c6()?k:Fl.e.nE.call(this)};q.Cca=function(a){this.setProperty(Gl.Uo,a)};q.Xj=function(){return this.l(Gl.Uo)};O(Fl,Fl.prototype.Xj,Gl.Uo);Fl.prototype.jt=function(){return parseInt(this.l(Gl.yV,0),10)};O(Fl,Fl.prototype.jt,Gl.yV);
Fl.prototype.mE=function(){return parseInt(this.l(Gl.uW,0),10)};O(Fl,Fl.prototype.mE,Gl.uW);Fl.prototype.Lh=function(a){if(a==this.Qp())return 4;else{var b=K(this.Ca()),c=1;if(b)c=b.Lh(a);return c}};Fl.prototype.vra=function(){return this.fc(Gl.Sfa,Bl,j)};Fl.prototype.zta=function(){return this.l(Gl.Sr)};O(Fl,Fl.prototype.zta,Gl.Sr);var S=function(a){return R.call(this,a)};Vk(S,R,"KnolMeta");
var Il={fJ:"homeOf",ye:"knolId",Mv:"knolPageVersionMap",rJ:"publishedVersionMap",qJ:"publishedVersion",FV:"editLock",qB:"attachmentsSize",Sv:"webContentDuplicates",Rv:"ttsVersion",Qv:"ttsBlobstoreId",Cga:"restrictSearch",sJ:"relatedKnols",mX:"unrelatedKnols",Ro:"langidLanguageCode",oga:"knolRQ",pSa:"knolRS",DB:"knolQQ",oSa:"knolQS",YV:"featuredTime",ZV:"featuredVersion",ega:"featuredBy",Dg:"pageviews",ITa:"uniqueVisits",cX:"templateId",pW:"labels",Iv:"badges",dTa:"promotion",wRa:"eifs",vRa:"efp",
rV:"collectionType",aJ:"editorialCollection",pV:"collectionBranding",Jv:"collectionDisplay",Po:"collectionSort",Nr:"collectionReverse",pX:"verifiedWebsite",cW:"guidelinesUrl",KTa:"unpubFeedToken",hX:"translatedFromKnol",iX:"translatedFromLang",dW:"hasChatLog",tJ:"rrnid",Qr:"knolUrl",qV:"collectionReviewFor",DV:"editorialAuthors",EV:"editorialCollectionType",xJ:"submissionCount",yJ:"subCollectionSuggestionCount",CB:"knolPermanentUrl"};q=S.prototype;q.R=function(a){Tk(Il,this,a);S.e.R.call(this,a)};
q.remove=function(){};q.$c=function(a){var b;if(a)if(a==-1){b=this.$c();if(b.Kn()<b.yx())b=K({nodeId:this.Ca(),version:b.yx()})}else b=K({nodeId:this.Ca(),version:a});else b=K(this.Ca());return b};q.st=function(){return Xk({nodeId:Bf(this.n()),type:dl})};q.Ca=function(){return this.l(Il.ye)};O(S,S.prototype.Ca,Il.ye);S.prototype.Pf=function(a){return this.setProperty(Il.ye,a)};S.prototype.Rqa=function(){return parseInt(this.l(Il.qB),10)};O(S,S.prototype.Rqa,Il.qB);q=S.prototype;
q.Ona=function(a){D("knol.KnolMeta");var b=parseInt(this.l(Il.qB),10)-a;if(b<0){"Warning: negative accumulated attachment size on knol ID: "+this.l(Il.ye);b=0}this.setProperty(Il.qB,b)};q.Th=function(a){if(!a)return l;var b=new Ac(this.Kh().Xb());if(b.contains(a))return j;return l};q.h7=function(){return l};q.Zb=function(a){if(!a)return l;var b=new Ac(this.Zw().Xb());b.UB(this.Kh().Xb());if(b.contains(a))return j;return l};q.Z2=function(){new Dg;var a=this.fc(Il.DV,function(){return new Dg},j);return a};
O(S,S.prototype.Z2,Il.DV);S.prototype.Ey=function(a){var b=this.Z2();return b?r(b.z(a)):l};S.prototype.j7=function(a){return this.getContributors().contains(a)};S.prototype.fx=function(){return this.l(Il.qV)};O(S,S.prototype.fx,Il.qV);S.prototype.Lh=function(a,b){y(a)||this.tb("getPermissionsLevel, bad type");if(pf.test(a))return 1;var c=this.Gf(),d=l;if(c&&this.Ey(a))d=j;if(this.Th(a))return d?6:4;if(this.Zb(a))return d?7:3;if(d)return 5;if(b&&this.j7(a))return 2;return 1};
S.prototype.jf=function(){var a=this.RN(),b=this.Rp();if(b==4)a="managed";return a};O(S,S.prototype.jf,Qk.oB);q=S.prototype;q.RN=function(){return S.e.jf.call(this)};q.Kh=function(){return Nj(this,Ij.oJ)};q.Zw=function(){return Nj(this,Ij.SI)};q.getContributors=function(){return Nj(this,Ij.sV)};q.Jx=function(){return Nj(this,Ij.SW)};q.iq=function(){return Nj(this,Ij.vh)};q.Zta=function(){var a=this.iq(),b=a.Xb(),c=[];b&&C(b,function(d){a.w4(d).jt()!=0&&c.push(d)});return c};
q.b4=function(){return(this.Zta()||[]).length};q.ON=function(){if(this.Yc()==0)return 0;return this.l(Il.xJ,0)};q.Yta=function(){return this.ON(j)};O(S,S.prototype.Yta,Il.xJ);S.prototype.W4=function(){if(!this.Iy())return 0;return this.l(Il.yJ,0)};S.prototype.Ava=function(){return this.W4(j)};O(S,S.prototype.Ava,Il.yJ);q=S.prototype;q.Fva=function(a,b){var c=b||1,d=this.iq();if(!d.Ea())for(var f=d.Xb(),g=0;g<f.length;g++){var h=d.w4(f[g]);if(h.Qp()==a&&h.Cc()==c)return h}return k};
q.Cva=function(a){if(this.va()){var b;var c=this.n(),d=c+"_SUBMISSIONS",f=K(d);if(f)b=f;else{var g=d,h=new Cl(g,j);h[hi.Pr]=g;h.Pf(K(h.$d()).Ca());h.OCa();b=h}if(b)return b.nwa(a)}return Bl()};q.Nj=function(a,b,c){var d=gh(a,this,b);if(d==1)return d;if(b==2&&r(c)&&c<this.Al())return 1;if(a&&this.hg()==-2&&!a.bg()&&!this.Zb(a.n()))return 1;return d};q.Kka=function(a,b){return!this.va()&&(!this.Gf()||this.Gf()==b)&&!!a&&(this.Zb(a.n())||this.Ey(a.n())||a.wb())};q.Zc=function(){return this.Kh().Qi()};
q.eE=function(){var a=this.Zc();return a?K(a):Jl};q.a_=function(a){var b=this.iE();return parseInt(b.z(String(a)),10)};q.ZEa=function(a){a=parseInt(a,10);for(var b=this.iE(),c=b.vb(),d=-1,f=0;f<c.length;f++){var g=parseInt(c[f],10),h=parseInt(b.z(c[f]),10);if(a>=h&&(d<=g||d==-1))d=g}return d};q.Al=function(){for(var a=this.iE(),b=a.vb(),c=1,d=0;d<b.length;d++){var f=parseInt(b[d],10);if(f>c)c=f}return c};
q.fva=function(a,b,c){D("knol.KnolMeta");var d=this.hg();if(!c&&d==-2)return[-2,-1];var f=this.Al();if(!ka(a)||a<0||a>f)a=r(b)?this.ZEa(b):f;if(!r(b)&&!r(a))b=this.a_(Number(a));return[a,b]};q.jK=function(){var a=this.hg()==-2;return!a&&!this.MP()&&!this.d2()};q.wBa=function(){return this.$c().L7()};q.vBa=function(){return this.$c().l2()};q.MP=function(){if(!r(this.q7))this.q7=this.Fka();return this.q7};q.d2=function(){if(!r(this.jY))this.jY=this.Eka();return this.jY};
q.Eka=function(){var a=this.Kh().Xb();for(var b in a){var c=K(a[b]),d=c.bt();if(d){if(!d.o3())return l}else return l}return j};q.Fka=function(){if(this.$c().X3())return l;var a=l,b=this.st();if(b){if(b.R4()>=0.99)a=j;var c=K(this.Zc()),d=c.cq().dq();if(d==4)a=j}if(a&&!this.Eya())return j;var f=this.Kh().Xb();for(var g in f){c=K(f[g]);if(c.Vw())return j;var h=c.bt();if(h)if(h.p3())return j}return this.wBa()||this.vBa()};q.Eya=function(){var a=this.Kh().Xb();for(var b in a){var c=K(a[b]);if(c.Yj())return j}return l};
q.iE=function(){var a=this.fc(Il.Mv,function(){return new Dg},j);a.Ea()&&a.G(String(1),1);var b=this.$c();if(!b.KAa()&&!b.H7()){for(var c=b.yx(),d=a.vb(),f=l,g=0;g<d.length;g++){var h=parseInt(d[g],10),i=parseInt(a.z(d[g]),10);if(i>c){this.ae().S("found page version mapped: "+i+" which is larger than the latest: "+c);a.remove(d[g]);f=j}if(c==b.Kn()&&h>b.Tj()){this.ae().S("found content version mapped: "+h+" which is larger than the latest: "+b.Tj());a.remove(d[g]);f=j}}f&&this.mKa(a)}return a};
O(S,S.prototype.iE,Il.Mv);S.prototype.mKa=function(a){this.oj(Il.Mv,a)};S.prototype.jE=function(){return this.l(Il.pW)||[]};O(S,S.prototype.jE,Il.pW);S.prototype.Dia=function(a,b,c){var d=c||1;if(b==-1)a.G(String(this.Al()),d);else if(b>0)a.G(String(b),d);else a.z(String(this.Al()))&&d==3&&a.G(String(this.Al()),d);return a};S.prototype.r4=function(){var a=this.fc(Il.rJ,function(){return new Dg},j);if(a.Ea()){a=this.Dia(a,this.hg());this.PKa(a)}return a};O(S,S.prototype.r4,Il.rJ);
S.prototype.PKa=function(a){this.oj(Il.rJ,a)};S.prototype.hg=function(){var a=this.l(Il.qJ,-1);return a};O(S,S.prototype.hg,Il.qJ);S.prototype.OKa=function(a){if(a!=-1&&a!=-2)e(new Error("policy argument to setPublishedVersion must be a member of: knol.PublishedVersion"));this.setProperty(Il.qJ,a)};S.prototype.Isa=function(){return this.l(Il.fJ)};O(S,S.prototype.Isa,Il.fJ);S.prototype.dsa=function(){return this.fc(Il.FV,function(){return new ik},j)};O(S,S.prototype.dsa,Il.FV);q=S.prototype;q.Zy=function(){return k};
q.refresh=function(a){return this.Zy(a,l)};q.uU=function(){return k};q.sN=function(){return this.yE(Il.fJ)};q.E2=function(a,b){var c=this.getContributors().Fl(),d=c.vb(),f={};f.jU=0;f.rQ=[];for(var g=0;g<d.length;g++){var h=d[g],i=c.z(h);i instanceof uh||this.tb("contribution type error");if(!(b&&!i.lua())){if(a==4){if(!this.Th(i.fg()))continue}else if(a==3)if(!this.Zb(i.fg()))continue;if(!(i.PM()<=0)){f.rQ.push(i);f.jU+=i.PM()}}}return f};q.ad=function(){return this.$c().ad()};q.Wp=function(){return this.$c().Wp()};
q.Xi=function(){return this.$c().Xi()};q.log=function(a){R.prototype.log.call(this,a);this.purgeCache()};q.purgeCache=function(){var a=this.$c();a&&a.purgeCache()};q.KE=function(){return this.Zp(el.Sv)};O(S,S.prototype.KE,Il.Sv);q=S.prototype;q.V7=function(a){return this.Cqa(a)!=k};q.Cqa=function(a){if(!a)return k;this.P3().zu();for(var b=this.P3().Fl().Hd(),c=0;c<b.length;c++)if(ua()-b[c].$j()<=pl){var d=K(b[c].fg());if(d.rf()==a&&(d.Cc()==2||d.Cc()==3))return d}return k};
q.UD=function(){if(S.e.UD.call(this))return j;var a=K(this.Zc());if(!a)return j;return a.UD()};q.lx=function(){if(S.e.lx.call(this))return j;var a=K(this.Zc());if(!a)return j;return a.lx()};q.h3=function(){return this.l(Il.YV)};q.SJa=function(a){this.setProperty(Il.YV,a)};q.psa=function(){return this.l(Il.ZV)};q.TJa=function(a){this.setProperty(Il.ZV,a)};q.RJa=function(a){this.setProperty(Il.ega,a)};q.lO=function(){return this.Zp(el.Rv,0)};O(S,S.prototype.lO,Il.Rv);S.prototype.kO=function(){return this.Zp(el.Qv)};
O(S,S.prototype.kO,Il.Qv);S.prototype.getLanguage=function(){return this.Zp(el.Ro)};O(S,S.prototype.getLanguage,Il.Ro);S.prototype.C3=function(){return this.Zp(el.DB)};S.prototype.fea=function(){return k};S.prototype.Gn=function(){var a=this.Zp(el.Dg);return new bl(a)};O(S,S.prototype.Gn,Il.Dg);S.prototype.jra=function(){var a=this.st();if(!a)return l;var b=this.sua(a);return this.kra(b)};
S.prototype.kra=function(a){if(bf("trustAllAuthors")=="true")return j;if(this.lx())return l;var b=K(this.Zc());if(!b)return l;if(b.Yj())return j;if(b.cq().dq()==4)return l;var c=b.bt();if(!c)return l;var d=this.st();if(!d)return l;var f=c.CM();if(!f||f<a.Jja)return l;var g=d.C3();if(!g||g<a.zBa||d.R4()>a.ABa)return l;return j};S.prototype.sua=function(){var a={};a.Jja=0.5;a.fUa=0.75;a.zBa=0.8;a.gVa=0.85;a.ABa=0.75;return a};S.prototype.Kva=function(){return this.l(Il.cX)};O(S,S.prototype.Kva,Il.cX);
S.prototype.DD=function(){var a=new yh;a.zX(this.l(Il.Iv));return a};O(S,S.prototype.DD,Il.Iv);S.prototype.Yc=function(){return this.l(Il.rV,0)};O(S,S.prototype.Yc,Il.rV);S.prototype.va=function(){return this.Yc()!=0};S.prototype.Ld=function(){var a=this.Yc();return a>=2};S.prototype.Iy=function(){var a=this.Yc();return a==4};S.prototype.Gf=function(){return this.l(Il.aJ)};O(S,S.prototype.Gf,Il.aJ);S.prototype.LJa=function(a){this.setProperty(Il.aJ,a)};
S.prototype.Rp=function(){var a=this.l(Il.EV);if(!a)return k;return a};O(S,S.prototype.Rp,Il.EV);S.prototype.dt=function(){return this.fc(Il.Jv,function(){return new ek},j)};O(S,S.prototype.dt,Il.Jv);S.prototype.Lp=function(){return this.l(Il.Po,19)};O(S,S.prototype.Lp,Il.Po);S.prototype.Nba=function(a){this.setProperty(Il.Po,a)};S.prototype.Kp=function(){return this.ub(Il.Nr)};O(S,S.prototype.Kp,Il.Nr);S.prototype.tJa=function(a){this.Qu(Il.Nr,a)};
S.prototype.LM=function(){return this.fc(Il.pV,Th,j)};O(S,S.prototype.LM,Il.pV);S.prototype.JE=function(){return this.l(Il.pX)};O(S,S.prototype.JE,Il.pX);S.prototype.rx=function(){return this.l(Il.cW)};O(S,S.prototype.rx,Il.cW);S.prototype.Uva=function(){return this.l(Il.hX)};O(S,S.prototype.Uva,Il.hX);S.prototype.Vva=function(){return this.l(Il.iX)};O(S,S.prototype.Vva,Il.iX);S.prototype.a6=function(){return this.ub(Il.dW)};O(S,S.prototype.a6,Il.dW);S.prototype.eva=function(){return this.l(Il.tJ)};
O(S,S.prototype.eva,Il.tJ);S.prototype.cta=function(a,b){var c=this.$c(),d=this.l(Il.Qr);d||(d=c.l(Hl.Qr));if(a||b){var f=Rd(b||{});r(a)&&f.G("version",String(a));var g=f.toString();return d+(g?"?"+g:"")}return d};O(S,S.prototype.cta,Il.CB);S.prototype.nKa=function(a){this.setProperty(Il.Qr,a)};var Kl=function(a){return R.call(this,a)};Vk(Kl,R,"KnolHistory");Sd(Kl.prototype,Ef.prototype);Kl.prototype.getTime=function(){return this.l("time")};O(Kl,Kl.prototype.getTime,"time");Kl.prototype.setTime=function(a){this.setProperty("time",a)};Kl.prototype.eta=function(){return this.l("knolVersion")};O(Kl,Kl.prototype.eta,"knolVersion");Kl.prototype.rt=function(){return this.l("knolContentVersion")};O(Kl,Kl.prototype.rt,"knolContentVersion");
Kl.prototype.gca=function(a){this.setProperty("knolContentVersion",a)};Kl.prototype.Lra=function(){return this.l("creatorId")};O(Kl,Kl.prototype.Lra,"creatorId");Kl.prototype.Cta=function(){return this.l("modificationType")};O(Kl,Kl.prototype.Cta,"modificationType");Kl.prototype.Eta=function(){return this.fc("modifierMap",function(){return new Dg},j)};O(Kl,Kl.prototype.Eta,"modifierMap");Kl.prototype.Ca=function(){return this.l(Il.ye)};O(Kl,Kl.prototype.Ca,"knolId");
Kl.prototype.Pf=function(a){return this.setProperty(Il.ye,a)};Kl.prototype.Dta=function(){return this.fc("modifiedMap",function(){return new Dg},j)};O(Kl,Kl.prototype.Dta,"modifiedMap");Kl.prototype.Vua=function(){return this.fc("revertsMap",function(){return new Dg},j)};O(Kl,Kl.prototype.Vua,"revertsMap");Kl.prototype.addRevisionEntry=function(){return j};var vf=function(a){return R.call(this,a)};Vk(vf,R,"Knol");Sd(vf.prototype,jh.prototype);Sd(vf.prototype,Ef.prototype);var Hl={Hv:"abstract",ZU:"affiliation",jV:"bootstrapKnol",kW:"keywords",lW:"knolContentVersionNumber",hJ:"knolHistoryId",si:"knolMetaId",Uo:"snippet",Ov:"subtitle",To:"references",sSa:"mainTextMd5Sum",Tfa:"collectionItems",Qr:"knolUrl",CB:"knolPermanentUrl",nW:"knolTitleUrl"};q=vf.prototype;q.R=function(a){Tk(Hl,this,a);vf.e.R.call(this,a)};
q.log=function(a){vf.e.log.call(this,a);this.purgeCache();var b=this.Fa(),c=K(b.Zc());c.purgeCache()};q.remove=function(){};q.KAa=function(){return this.H7()||r(this.iWa)};q.H7=function(){return r(this.hWa)};q.Tj=function(){return this.l(Hl.lW,1)};O(vf,vf.prototype.Tj,Hl.lW);vf.prototype.$d=function(){return this.l(Hl.si)};O(vf,vf.prototype.$d,Hl.si);vf.prototype.hca=function(a){this.setProperty(Hl.si,a)};vf.prototype.Fa=function(){return this.F=K({nodeId:this.$d(),type:S})};
vf.prototype.st=function(){return Xk({nodeId:Bf(this.$d()),type:dl})};vf.prototype.zN=function(){return this.l(Hl.hJ)};O(vf,vf.prototype.zN,Hl.hJ);vf.prototype.kKa=function(a){this.setProperty(Hl.hJ,a)};vf.prototype.bta=function(){return this.tBa=K({nodeId:this.zN(),type:Kl})};vf.prototype.Sf=function(a){vf.e.Sf.call(this,a);this.Qea()};vf.prototype.Et=function(){return this.l(Hl.Ov)};O(vf,vf.prototype.Et,Hl.Ov);vf.prototype.Hx=function(){return this.fc(Hl.To,function(){return new Zh},j)};
O(vf,vf.prototype.Hx,Hl.To);q=vf.prototype;q.wca=function(a){this.oj(Hl.To,a)};q.Bl=function(){var a=vf.e.Bl.call(this,j);return a};q.zH=function(a){vf.e.VH.call(this,Qk.Rr,a,j,j);this.Qea()};q.wta=function(){var a=this.Bl();if(!a||!a.length)return j;return l};q.Fqa=function(){return this.l(Hl.ZU)};O(vf,vf.prototype.Fqa,Hl.ZU);vf.prototype.ata=function(){return this.l(Hl.kW)};O(vf,vf.prototype.ata,Hl.kW);vf.prototype.Xj=function(){return this.l(Hl.Uo)};O(vf,vf.prototype.Xj,Hl.Uo);
vf.prototype.Cca=function(a){this.setProperty(Hl.Uo,a)};vf.prototype.Qea=function(){var a=this.yD();if(!a){a=this.Bl()||"";var b=a;if(b){b=b.replace(/<[^>]*>/g," ");a=b.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")}else a=b;a=Va(Aa(a))}a=kf(a,125);this.Cca(a);this.jGa()};vf.prototype.yD=function(){return this.l(Hl.Hv)};O(vf,vf.prototype.yD,Hl.Hv);vf.prototype.n2=function(){return this.ub(Hl.jV,l)};O(vf,vf.prototype.n2,Hl.jV);
vf.prototype.B5=function(){if(!this.$d()){this.ae();this.Tk();D("knol.Group");var a=k;if(!a){a=k;a.JS("closed")}var b;if(this.$d())b=this.Fa();else{b=new S(this.Ll());this.hca(b.n());b.Pf(this.n());b.yJa(a.n());b.JS("closed");this.sOa("closed")}var c;if(this.zN())c=this.bta();else{c=new Kl(this.Ll());this.kKa(c.n());c.Pf(this.n())}b.Kh().add(a.n());a.save([this,b,c])}};vf.prototype.ea=function(){return this.l(Hl.Qr)};O(vf,vf.prototype.ea,Hl.Qr);vf.prototype.Dx=function(){return this.l(Hl.CB)};
O(vf,vf.prototype.Dx,Hl.CB);vf.prototype.oO=function(){return this.l(Hl.nW)};O(vf,vf.prototype.oO,Hl.nW);
vf.prototype.sOa=function(a){D("knol.Knol");var b=this.Fa(),c=b&&b.va(),d=(new dh(a)).uM(c);if(d){var f=[],g=[],h=d.vb();C(h,function(n){var o=[],p=ih(n);if(p==k)o.push(n);else if(p==4)o=b.Kh().Xb();else if(p==3)o=b.Zw().Xb();else if(p==2)o=b.getContributors().Xb();else p==1&&o.push("#registered");var s=d.z(n);C(o,function(u){if(s==1)!zb(f,u)&&!zb(g,u)&&g.push(u);else if(!zb(f,u)){f.push(u);zb(g,u)&&Db(g,u)}},this)},this);var i=[];C(f,function(n){i.push(n.indexOf("#")==0?n:"")},this);C(g,function(n){i.push("-"+
(n.indexOf("#")==0?n:""))},this);for(var m=0;m<i.length;m++)if(i[m]=="-#registered")i[m]="#registered";this.ALa(i);this.Fa().jKa("addAttachment",i)}else this.BGa()};vf.prototype.Nua=function(){return this.cS=this.cS||yf(this.ix())};vf.prototype.TKa=function(a){this.cS=a};vf.prototype.Lh=function(a,b){var c=this.Fa();if(c)return c.Lh(a,b);return 1};
var Ll=function(a,b){var c;if(a){var d=a.ad()||a.Mh();c=d;var f=a.Fa(),g=K(f.Zc());if(g){var h=g.gb();h=Xa(h,100);if(f.va()){var i=d+(" - a collection by  "+h);c=i}else{var m=d+(" - a knol by "+h);c=m}}}else if(b){h=Xa(b.gb(),100);var n=h+" - Knol: a unit of knowledge";c=n}else if(req.args.QFa){var o="Units of knowledge for: "+req.args.QFa;c=o}else c="Knol - a unit of knowledge: share what you know, publish your expertise.";return c};
vf.prototype.jGa=function(){var a=this.Fa();if(a){var b=a.Zc();if(b){var c=K(b);c.gb()}}this.ad();var d;this.n();d="";a.nKa(d);return d};vf.prototype.addRevisionEntry=function(){return j};vf.prototype.dx=function(){return this.fc(Hl.Tfa,Xh,j)};var Ml=function(a,b){var c=a+(" "+b);return c},Nl=function(a,b){switch(b){case 1:return a%4==0&&(a%100!=0||a%400==0)?29:28;case 5:case 8:case 10:case 3:return 30}return 31},Ol=function(a,b,c,d,f,g){if(y(a)){var h=a,i=b;this.qi=h=="y"?i:0;this.Zh=h=="m"?i:0;this.Bh=h=="d"?i:0;this.Kd=h=="h"?i:0;this.Ne=h=="n"?i:0;this.Te=h=="s"?i:0}else{this.qi=a||0;this.Zh=b||0;this.Bh=c||0;this.Kd=d||0;this.Ne=f||0;this.Te=g||0}};
Ol.prototype.TA=function(a){var b=Math.min(this.qi,this.Zh,this.Bh,this.Kd,this.Ne,this.Te),c=Math.max(this.qi,this.Zh,this.Bh,this.Kd,this.Ne,this.Te);if(b<0&&c>0)return k;if(!a&&b==0&&c==0)return"PT0S";var d=[];b<0&&d.push("-");d.push("P");if(this.qi||a)d.push(Math.abs(this.qi)+"Y");if(this.Zh||a)d.push(Math.abs(this.Zh)+"M");if(this.Bh||a)d.push(Math.abs(this.Bh)+"D");if(this.Kd||this.Ne||this.Te||a){d.push("T");if(this.Kd||a)d.push(Math.abs(this.Kd)+"H");if(this.Ne||a)d.push(Math.abs(this.Ne)+
"M");if(this.Te||a)d.push(Math.abs(this.Te)+"S")}return d.join("")};Ol.prototype.jc=function(a){return a.qi==this.qi&&a.Zh==this.Zh&&a.Bh==this.Bh&&a.Kd==this.Kd&&a.Ne==this.Ne&&a.Te==this.Te};Ol.prototype.ua=function(){return new Ol(this.qi,this.Zh,this.Bh,this.Kd,this.Ne,this.Te)};Ol.prototype.add=function(a){this.qi+=a.qi;this.Zh+=a.Zh;this.Bh+=a.Bh;this.Kd+=a.Kd;this.Ne+=a.Ne;this.Te+=a.Te};
var Pl=function(a,b,c){if(ka(a)){this.O=new Date(a,b||0,c||1);this.OQ(c||1)}else if(ma(a)){this.O=new Date(a.getFullYear(),a.getMonth(),a.getDate());this.OQ(a.getDate())}else{this.O=new Date;this.O.setHours(0);this.O.setMinutes(0);this.O.setSeconds(0);this.O.setMilliseconds(0)}};q=Pl.prototype;q.fn=0;q.Vs=3;q.ua=function(){var a=new Pl(this.O);a.fn=this.fn;a.Vs=this.Vs;return a};q.getFullYear=function(){return this.O.getFullYear()};q.LE=function(){return this.getFullYear()};q.getMonth=function(){return this.O.getMonth()};
q.getDate=function(){return this.O.getDate()};q.getTime=function(){return this.O.getTime()};q.getDay=function(){return this.O.getDay()};q.Zsa=function(){return(this.getDay()+6)%7};q.wwa=function(){return(this.Zsa()-this.fn+7)%7};q.getUTCFullYear=function(){return this.O.getUTCFullYear()};q.getUTCMonth=function(){return this.O.getUTCMonth()};q.getUTCDate=function(){return this.O.getUTCDate()};q.getUTCDay=function(){return this.O.getDay()};q.getUTCHours=function(){return this.O.getUTCHours()};
q.getUTCMinutes=function(){return this.O.getUTCMinutes()};q.l3=function(){return this.fn};q.c4=function(){return Nl(this.getFullYear(),this.getMonth())};q.vwa=function(){var a,b=this.getFullYear(),c=this.getMonth(),d=this.getDate(),f=new Date(b,c,d),g=this.Vs||3,h=this.fn||0,i=(f.getDay()+6)%7,m=(i-h+7)%7,n=(g-h+7)%7,o=f.valueOf()+(n-m)*86400000,p=(new Date((new Date(o)).getFullYear(),0,1)).valueOf();return a=Math.floor(Math.round((o-p)/86400000)/7)+1};q.getTimezoneOffset=function(){return this.O.getTimezoneOffset()};
q.nO=function(){var a,b=this.getTimezoneOffset();if(b==0)a="Z";else{var c=Math.abs(b)/60,d=Math.floor(c),f=(c-d)*60;a=(b>0?"-":"+")+bb(d,2)+":"+bb(f,2)}return a};q.G=function(a){this.O=new Date(a.getFullYear(),a.getMonth(),a.getDate())};q.setFullYear=function(a){this.O.setFullYear(a)};q.setMonth=function(a){this.O.setMonth(a)};q.setDate=function(a){this.O.setDate(a)};q.setTime=function(a){this.O.setTime(a)};q.setUTCFullYear=function(a){this.O.setUTCFullYear(a)};q.setUTCMonth=function(a){this.O.setUTCMonth(a)};
q.setUTCDate=function(a){this.O.setUTCDate(a)};q.VJa=function(a){this.fn=a};q.WJa=function(a){this.Vs=a};
q.add=function(a){if(a.qi||a.Zh){var b=this.getMonth()+a.Zh+a.qi*12,c=this.LE()+Math.floor(b/12);b%=12;if(b<0)b+=12;var d=Nl(c,b),f=Math.min(d,this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(f)}if(a.Bh){var g=new Date(this.LE(),this.getMonth(),this.getDate(),12),h=new Date(g.getTime()+a.Bh*86400000);this.setDate(1);this.setFullYear(h.getFullYear());this.setMonth(h.getMonth());this.setDate(h.getDate());this.OQ(h.getDate())}};
q.TA=function(a,b){var c=[this.getFullYear(),bb(this.getMonth()+1,2),bb(this.getDate(),2)];return c.join(a?"-":"")+(b?this.nO():"")};q.jc=function(a){return this.LE()==a.LE()&&this.getMonth()==a.getMonth()&&this.getDate()==a.getDate()};q.toString=function(){return this.TA()};q.OQ=function(a){if(this.getDate()!=a){var b=this.getDate()<a?1:-1;this.O.setUTCHours(this.O.getUTCHours()+b)}};q.valueOf=function(){return this.O.valueOf()};
var Ql=function(a,b,c,d,f,g,h){this.O=ka(a)?new Date(a,b||0,c||1,d||0,f||0,g||0,h||0):new Date(a?a.getTime():ua())};A(Ql,Pl);q=Ql.prototype;q.getHours=function(){return this.O.getHours()};q.getMinutes=function(){return this.O.getMinutes()};q.getSeconds=function(){return this.O.getSeconds()};q.getMilliseconds=function(){return this.O.getMilliseconds()};q.getUTCDay=function(){return this.O.getUTCDay()};q.getUTCHours=function(){return this.O.getUTCHours()};q.getUTCMinutes=function(){return this.O.getUTCMinutes()};
q.getUTCSeconds=function(){return this.O.getUTCSeconds()};q.getUTCMilliseconds=function(){return this.O.getUTCMilliseconds()};q.setHours=function(a){this.O.setHours(a)};q.setMinutes=function(a){this.O.setMinutes(a)};q.setSeconds=function(a){this.O.setSeconds(a)};q.setMilliseconds=function(a){this.O.setMilliseconds(a)};q.setUTCHours=function(a){this.O.setUTCHours(a)};q.setUTCMinutes=function(a){this.O.setUTCMinutes(a)};q.setUTCSeconds=function(a){this.O.setUTCSeconds(a)};q.setUTCMilliseconds=function(a){this.O.setUTCMilliseconds(a)};
q.add=function(a){Pl.prototype.add.call(this,a);a.Kd&&this.setHours(this.O.getHours()+a.Kd);a.Ne&&this.setMinutes(this.O.getMinutes()+a.Ne);a.Te&&this.setSeconds(this.O.getSeconds()+a.Te)};q.TA=function(a,b){var c=Pl.prototype.TA.call(this,a);if(a)return c+" "+bb(this.getHours(),2)+":"+bb(this.getMinutes(),2)+":"+bb(this.getSeconds(),2)+(b?this.nO():"");return c+"T"+bb(this.getHours(),2)+bb(this.getMinutes(),2)+bb(this.getSeconds(),2)+(b?this.nO():"")};q.jc=function(a){return this.getTime()==a.getTime()};
q.toString=function(){return this.TA()};q.ua=function(){var a=new Ql(this.O);a.fn=this.fn;a.Vs=this.Vs;return a};var Rl=function(a){return R.call(this,a)};Vk(Rl,R,"AuthorFeedEvents");var Sl=function(a){this.kU=a.total;this.md=a.history;this.tWa=a.update_timestamp};E(Sl,Ef);Sl.prototype.pO=function(){return this.kU};Sl.prototype.rN=function(){return this.md};Sl.prototype.wO=function(){if(!this.md||this.md.length==0)return k;for(var a=Math.min(this.md.length,7),b=0,c=0;c<a;c++)b+=this.md[c];return b};var Tl=function(a){return R.call(this,a)};Vk(Tl,R,"AuthorOffline");var Ul={kga:"gaiaDisabled",jga:"gaiaDeleted",lga:"gradsSpamScoreBeta",PQa:"clusterScore",Nfa:"authorRQ",sB:"authorQQ",Dg:"pageviews",Mfa:"authorEventsPageviewTotal",Kfa:"authorEventsPageviewHistory",Lfa:"authorEventsPageviewHistoryTimestamp",Em:"comments",Eg:"reviews",So:"ratings",vh:"suggestions",Iv:"badges",QQa:"collectionCategories"};q=Tl.prototype;q.R=function(a){Tk(Ul,this,a);Tl.e.R.call(this,a)};q.p3=function(){return this.ub(Ul.kga)};
q.o3=function(){return this.ub(Ul.jga)};q.CM=function(){return this.l(Ul.sB)};q.Gn=function(){var a=this.l(Ul.Dg),b=this.l(Ul.Mfa,0),c=this.l(Ul.Lfa,ua()),d=this.l(Ul.Kfa,"[]"),f=wd(d),g,h=b,i=c,m=f;a&&a.length>0&&new bl(a);var n={};n.total=h;n.update_timestamp=i||0;n.history=m;return g=new Sl(n)};O(Tl,Tl.prototype.Gn,Ul.Dg);Tl.prototype.JD=function(){var a=this.l(Ul.Em);return new bl(a)};O(Tl,Tl.prototype.JD,Ul.Em);Tl.prototype.ZN=function(){var a=this.l(Ul.Eg);return new bl(a)};
O(Tl,Tl.prototype.ZN,Ul.Eg);Tl.prototype.xE=function(){var a=this.l(Ul.So);return new bl(a)};O(Tl,Tl.prototype.xE,Ul.So);Tl.prototype.DE=function(){var a=this.l(Ul.vh);return new bl(a)};O(Tl,Tl.prototype.DE,Ul.vh);Tl.prototype.DD=function(){var a=this.l(Ul.Iv),b=new yh;b.zX(a);return b};var Vl=function(a){return R.call(this,a)};Vk(Vl,vf,"Review");Sd(Vl.prototype,Ef.prototype);var Wl={oW:"knolVersionNumber",VW:"reviewType",TW:"reviewDetails"};q=Vl.prototype;q.R=function(a){Tk(Wl,this,a);Vl.e.R.call(this,a)};q.yya=function(){return!this.Fa().Jx().Ea()};q.$c=function(){var a=this.Fa().Jx();if(!a.Ea())return K(a.Qi()).$c();return k};q.Nka=function(a){if(!this.yya())return l;if(this.Fa().Zb(a))return l;return!this.Fa().Jx().vsa().Zb(a)};
q.oAa=function(){return Ba(this.Et())&&this.wta()&&this.y4().Ea()};q.fta=function(){return this.l(Wl.oW)};O(Vl,Vl.prototype.fta,Wl.oW);Vl.prototype.Xua=function(){return this.l(Wl.VW)};O(Vl,Vl.prototype.Xua,Wl.VW);Vl.prototype.y4=function(){return this.fc(Wl.TW,ml,j)};O(Vl,Vl.prototype.y4,Wl.TW);var uf=function(a){return R.call(this,a)};Vk(uf,R,"Author");Sd(uf.prototype,jh.prototype);Sd(uf.prototype,Ef.prototype);
var Xl={pB:"admin",UI:"authName",zV:"disambiguation",dJ:"homeKnol",eJ:"homeKnolUrl",zW:"nickName",JW:"profile",LW:"publishNewKnols",NW:"quota",oX:"useAuth",YU:"adsensePublisherId",eQa:"adsenseSetupDate",lga:"gradsSpamScoreBeta",GQa:"canIndex",Dfa:"allOKB",Cfa:"allOCB",RW:"rto",XU:"activeTimeMS",Nfa:"authorRQ",sQa:"authorRS",sB:"authorQQ",rQa:"authorQS",aV:"awa",$U:"aai",aSa:"ktd",UQa:"ctd",CQa:"blocksMade",BQa:"blocksConfirmed",aQa:"abuseReportsMade",AQa:"blocksAgainst",$Pa:"abuseReportsAgainst",
qQa:"authorMailAcksId",$V:"feedEventsId",ERa:"flagged",FRa:"flaggedCorrectly",GRa:"flaggedIncorrectly",Jv:"collectionDisplay",Po:"collectionSort",Nr:"collectionReverse",AV:"disambiguationArray"};uf.prototype.R=function(a){Tk(Xl,this,a);uf.e.R.call(this,a)};uf.prototype.yl=function(){return this.l(Xl.YU)};O(uf,uf.prototype.yl,Xl.YU);q=uf.prototype;q.Oqa=function(){return this.l(Xl.aV)==1};q.Gba=function(a){this.setProperty(Xl.aV,a?1:0)};q.Mqa=function(){return this.l(Xl.$U)==1};
q.Fba=function(a){this.setProperty(Xl.$U,a?1:0)};q.Vw=function(){return this.ub(Xl.Dfa)};q.Kqa=function(){var a=this.UM(),b=l;if(a<1235071979220)b=this.Vw();return b||this.ub(Xl.Cfa)};q.Yua=function(){var a=this.Zua();if(a!=0)return a;if(this.Yj())return 1;if(this.cq().dq()==4)return-1;var b=this.bt();if(!b)return 0;var c=b.CM();if(c>0.99)return 1;return 0};q.Zua=function(){return parseInt(this.l(Xl.RW,0),10)};q.JH=function(a){this.setProperty(Xl.RW,a)};
q.a2=function(){return parseInt(this.l(Xl.XU,0),10)};q.TIa=function(a){this.setProperty(Xl.XU,a)};q.CM=function(){return this.Zp(Ul.sB)};q.remove=function(){};q.Gma=function(){return k};q.getAdSensePending=function(){return k};q.cq=function(){var a=this.fc(Xl.NW,function(){return new Rg},j);a.yOa(this);return a};q.QKa=function(a){this.oj(Xl.NW,a)};q.gua=function(){return Nj(this,Ij.GW)};q.Yqa=function(){return Nj(this,Ij.dV)};q.Gsa=function(){return this.yE(Xl.dJ)};q.Hsa=function(){return this.l(Xl.dJ)};
O(uf,uf.prototype.Hsa,Xl.dJ);uf.prototype.Sj=function(){return this.l(Xl.eJ)||""};O(uf,uf.prototype.Sj,Xl.eJ);uf.prototype.lta=function(){return this.l(Xl.eJ)};uf.prototype.eE=function(){return Jl};var Jl={};Jl.Sl=l;Jl.fc=function(a){if(!this.Sl){this.Sl=j;this.adsensePolicy=new vh;this.license=new Mg;this.accessType=new "moderated"}return this[a]};Jl.s3=function(a,b){var c=this.l(a);return c?b.call(c):k};uf.prototype.g2=function(){return this.l(Xl.UI)};O(uf,uf.prototype.g2,Xl.UI);
uf.prototype.Jba=function(a){this.setProperty(Xl.UI,a);this.ula()};uf.prototype.W3=function(){var a=this.wn();if(a)return a&&(a.fullName||a.nickName);return this.l(Xl.zW)};O(uf,uf.prototype.W3,Xl.zW);uf.prototype.uO=function(){return this.ub(Xl.oX,j)};O(uf,uf.prototype.uO,Xl.oX);uf.prototype.zua=function(){return Boolean(this.l(Xl.LW,j))};O(uf,uf.prototype.zua,Xl.LW);q=uf.prototype;
q.gb=function(a){var b;if(this.uO())b=this.g2();if(!b||!b.length)b=this.W3();if(a)return b||"";if(!y(b)||!b.length)b="Anonymous";return b};q.Wi=function(){if(!r(this.dU))this.dU=of(this.gb(),100);return this.dU};q.ula=function(){delete this.dU};q.Sqa=function(){if(this.uO())return this.u3()=="verified";return l};q.wn=function(){return k};var Yl=function(){return k};uf.prototype.yua=function(){return this.l(Xl.JW)};O(uf,uf.prototype.yua,Xl.JW);Jl.eE=function(){return k};q=uf.prototype;q.Xi=function(){return this.Wp()};
q.Wp=function(){var a=jh.prototype.Xi.call(this);if(!a){var b=window.manifest.serverBase,c=this.wn();a=c&&c.photo?b+c.photo:b+"/static/images/NoPicture.gif"}return a};q.u3=function(){var a=this.wn(),b="";if(a){b=a.idvStatus;r(b)||(b="")}return b};q.bua=function(){var a=this.wn();return a?a.occupation:""};q.kE=function(){var a=this.wn();return a?a.location:""};q.kt=function(){var a=this.wn();if(a){var b=this.rn();return b.join("\n")}else return this.l(Xl.zV)};O(uf,uf.prototype.kt,Xl.zV);
uf.prototype.rn=function(){var a=this.wn();if(a){var b=[];if(a.occupation&&a.currentCompany){var c=a.occupation+(" at "+a.currentCompany);b[0]=c}else if(a.occupation)b[0]=a.occupation;else if(a.currentCompany)b[0]=a.currentCompany;if(a.location)b[1]=a.location;return b}else return this.l(Xl.AV)};O(uf,uf.prototype.rn,Xl.AV);q=uf.prototype;q.uwa=function(){var a=this.wn();return a?a.websites:[]};q.bg=function(){return l};q.wb=function(){return l};q.bt=function(){return Xk({nodeId:Bf(this.n()),type:Tl})};
q.Qka=function(a,b){if(!a)return l;var c=a.Fa();if(!c)return l;var d=a instanceof Vl;if(b){if(!d)return l}else{if(d)return l;if(!(a instanceof vf))return l}if(c.Zb(this.n()))return j;if(c.hg()!=-1)return l;var f=a.En();if(f.type==2)return l;return j};q.Tqa=function(){return this.l(Xl.$V)};O(uf,uf.prototype.Tqa,Xl.$V);uf.prototype.Yj=function(){return l};uf.prototype.dt=function(){return this.fc(Xl.Jv,function(){return hk},j)};O(uf,uf.prototype.dt,Xl.Jv);
uf.prototype.Lp=function(){return this.l(Xl.Po,19)};O(uf,uf.prototype.Lp,Xl.Po);uf.prototype.Nba=function(a){this.setProperty(Xl.Po,a)};uf.prototype.Kp=function(){return this.ub(Xl.Nr)};O(uf,uf.prototype.Kp,Xl.Nr);var Zl,X={};X.G=function(a,b){a.className=b};X.z=function(a){var b=a.className;return b&&typeof b.split=="function"?b.split(" "):[]};X.add=function(a){var b=X.z(a),c=Ib(arguments,1),d=X.$X(b,c);a.className=b.join(" ");return d};X.remove=function(a){var b=X.z(a),c=Ib(arguments,1),d=X.Oz(b,c);a.className=b.join(" ");return d};X.$X=function(a,b){for(var c=0,d=0;d<b.length;d++)if(!zb(a,b[d])){a.push(b[d]);c++}return c==b.length};
X.Oz=function(a,b){for(var c=0,d=0;d<a.length;d++)if(zb(b,a[d])){Jb(a,d--,1);c++}return c==b.length};X.tNa=function(a,b,c){for(var d=X.z(a),f=l,g=0;g<d.length;g++)if(d[g]==b){Jb(d,g--,1);f=j}if(f){d.push(c);a.className=d.join(" ")}return f};X.nia=function(a,b,c){var d=X.z(a);if(y(b))Db(d,b);else ia(b)&&X.Oz(d,b);if(y(c)&&!zb(d,c))d.push(c);else ia(c)&&X.$X(d,c);a.className=d.join(" ")};X.Zi=function(a,b){return zb(X.z(a),b)};X.Ub=function(a,b,c){c?X.add(a,b):X.remove(a,b)};
X.qv=function(a,b){var c=!X.Zi(a,b);X.Ub(a,b,c);return c};var $l="A",am="P";var dm=function(a){return a?new bm(cm(a)):Zl||(Zl=new bm)},em=function(a){return y(a)?document.getElementById(a):a},Y=em,gm=function(a,b,c){return fm(document,a,b,c)},fm=function(a,b,c,d){var f=d||a,g=b&&b!="*"?b.toLowerCase():"";if(f.querySelectorAll&&(g||c)&&(!ue||hm(a)||Pe("528"))){var h=g+(c?"."+c:"");return f.querySelectorAll(h)}if(c&&f.getElementsByClassName){var i=f.getElementsByClassName(c);if(g){for(var m={},n=0,o=0,p;p=i[o];o++)if(g==p.nodeName.toLowerCase())m[n++]=p;m.length=n;return m}else return i}i=
f.getElementsByTagName(g||"*");if(c){m={};for(o=n=0;p=i[o];o++){var s=p.className;if(typeof s.split=="function"&&zb(s.split(" "),c))m[n++]=p}m.length=n;return m}else return i},im=gm,km=function(a,b){Vb(b,function(c,d){if(d=="style")a.style.cssText=c;else if(d=="class")a.className=c;else if(d=="for")a.htmlFor=c;else if(d in jm)a.setAttribute(jm[d],c);else a[d]=c})},jm={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",
usemap:"useMap",frameborder:"frameBorder",type:"type"},lm=function(a){var b;var c=a||window,d=c.document;if(ue&&!Pe("500")&&!ve){if(typeof c.innerHeight=="undefined")c=window;var f=c.innerHeight,g=c.document.documentElement.scrollHeight;if(c==c.top)if(g<f)f-=15;b=new Eh(c.innerWidth,f)}else{var h=hm(d)&&(!te||te&&Pe("9.50"))?d.documentElement:d.body;b=new Eh(h.clientWidth,h.clientHeight)}return b},mm=function(a){var b=a||ba||window;return dm(b.document).Pp()},nm=function(a){return!ue&&hm(a)?a.documentElement:
a.body},pm=function(a){return a?om(a):window},om=function(a){if(a.parentWindow)return a.parentWindow;if(ue&&!Pe("500")&&!ve){var b=a.createElement("script");b.innerHTML="document.parentWindow=window";var c=a.documentElement;c.appendChild(b);c.removeChild(b);return a.parentWindow}return a.defaultView},rm=function(){return qm(document,arguments)},qm=function(a,b){var c=b[0],d=b[1];if(I&&d&&(d.name||d.type)){var f=["<",c];d.name&&f.push(' name="',Ra(d.name),'"');if(d.type){f.push(' type="',Ra(d.type),
'"');d=sa(d);delete d.type}f.push(">");c=f.join("")}var g=a.createElement(c);if(d)if(y(d))g.className=d;else km(g,d);if(b.length>2){function h(n){if(n)g.appendChild(y(n)?a.createTextNode(n):n)}for(var i=2;i<b.length;i++){var m=b[i];ja(m)&&!(ma(m)&&m.nodeType>0)?C(sm(m)?Fb(m):m,h):h(m)}}return g},tm=rm,vm=function(a){return um(document,a)},um=function(a,b){var c=a.createElement("div");c.innerHTML=b;if(c.childNodes.length==1)return c.firstChild;else{for(var d=a.createDocumentFragment();c.firstChild;)d.appendChild(c.firstChild);
return d}},hm=function(a){return a.compatMode=="CSS1Compat"},wm=function(a,b){a.appendChild(b)},xm=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},ym=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b)},zm=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)},Z=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):k},Am=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)},Bm=function(a){var b,c=a.parentNode;if(c&&c.nodeType!=11)if(a.removeNode)return a.removeNode(l);
else{for(;b=a.firstChild;)c.insertBefore(b,a);return Z(a)}},Dm=function(a){return Cm(a.firstChild,j)},Cm=function(a,b){for(;a&&a.nodeType!=1;)a=b?a.nextSibling:a.previousSibling;return a},Em=ue&&Pe("522"),Fm=function(a,b){if(typeof a.contains!="undefined"&&!Em&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a},Im=function(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&
2?1:-1;if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=a.nodeType==1,d=b.nodeType==1;if(c&&d)return a.sourceIndex-b.sourceIndex;else{var f=a.parentNode,g=b.parentNode;if(f==g)return Gm(a,b);if(!c&&Fm(f,b))return-1*Hm(a,b);if(!d&&Fm(g,a))return Hm(b,a);return(c?a.sourceIndex:f.sourceIndex)-(d?b.sourceIndex:g.sourceIndex)}}var h=cm(a),i,m;i=h.createRange();i.selectNode(a);i.collapse(j);m=h.createRange();m.selectNode(b);m.collapse(j);return i.compareBoundaryPoints(ba.Range.START_TO_END,
m)},Hm=function(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return Gm(d,a)},Gm=function(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1},Jm=function(){var a,b=arguments.length;if(b){if(b==1)return arguments[0]}else return k;var c=[],d=Infinity;for(a=0;a<b;a++){for(var f=[],g=arguments[a];g;){f.unshift(g);g=g.parentNode}c.push(f);d=Math.min(d,f.length)}var h=k;for(a=0;a<d;a++){for(var i=c[0][a],m=1;m<b;m++)if(i!=c[m][a])return h;h=i}return h},
cm=function(a){return a.nodeType==9?a:a.ownerDocument||a.document},Km=function(a){var b;return b=ue?a.document||a.contentWindow.document:a.contentDocument||a.contentWindow.document},Lm=function(a,b){if("textContent"in a)a.textContent=b;else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{xm(a);var c=cm(a);a.appendChild(c.createTextNode(b))}},Mm=function(a){if("outerHTML"in a)return a.outerHTML;else{var b=cm(a),c=b.createElement("div");
c.appendChild(a.cloneNode(j));return c.innerHTML}},Om=function(a,b){var c=[],d=Nm(a,b,c,j);return d?c[0]:undefined},Pm=function(a,b){var c=[];Nm(a,b,c,l);return c},Nm=function(a,b,c,d){if(a!=k)for(var f=0,g;g=a.childNodes[f];f++){if(b(g)){c.push(g);if(d)return j}if(Nm(g,b,c,d))return j}return l},Qm={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Rm={IMG:" ",BR:"\n"},Sm=function(a){var b=a.getAttributeNode("tabindex");if(b&&b.specified){var c=a.tabIndex;return ka(c)&&c>=0}return l},Tm=function(a,b){if(b)a.tabIndex=
0;else a.removeAttribute("tabIndex")},Vm=function(a){var b;if(I&&"innerText"in a)b=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var c=[];Um(a,c,j);b=c.join("")}b=b.replace(/\xAD/g,"");b=b.replace(/ +/g," ");if(b!=" ")b=b.replace(/^\s*/,"");return b},Wm=function(a){var b=[];Um(a,b,l);return b.join("")},Um=function(a,b,c){if(!(a.nodeName in Qm))if(a.nodeType==3)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Rm)b.push(Rm[a.nodeName]);else for(var d=
a.firstChild;d;){Um(d,b,c);d=d.nextSibling}},sm=function(a){if(a&&typeof a.length=="number")if(ma(a))return typeof a.item=="function"||typeof a.item=="string";else if(la(a))return typeof a.item=="function";return l},Ym=function(a,b,c){return Xm(a,function(d){return(!b||d.nodeName==b)&&(!c||X.Zi(d,c))},j)},Xm=function(a,b,c,d){if(!c)a=a.parentNode;for(var f=d==k,g=0;a&&(f||g<=d);){if(b(a))return a;a=a.parentNode;g++}return k},bm=function(a){this.Wc=a||ba.document||document};q=bm.prototype;q.L=dm;
q.K=function(){return this.Wc};q.f=function(a){return y(a)?this.Wc.getElementById(a):a};q.Hk=bm.prototype.f;q.OD=function(a,b,c){return fm(this.Wc,a,b,c)};q.zfa=bm.prototype.OD;q.rwa=function(a){return lm(a||this.ia())};q.h=function(){return qm(this.Wc,arguments)};q.Xe=bm.prototype.h;q.createElement=function(a){return this.Wc.createElement(a)};q.createTextNode=function(a){return this.Wc.createTextNode(a)};q.Xya=function(a){return um(this.Wc,a)};q.qF=function(){return hm(this.Wc)};q.ia=function(){return om(this.Wc)};
q.V2=function(){return nm(this.Wc)};q.Pp=function(){var a,b=nm(this.Wc);return a=new Ah(b.scrollLeft,b.scrollTop)};q.appendChild=wm;q.removeChildren=xm;q.Rza=ym;q.wy=zm;q.removeNode=Z;q.replaceNode=Am;q.jM=Bm;q.m3=Dm;q.contains=Fm;q.f4=cm;q.Hpa=Pm;q.a5=Vm;var Zm="javascript:void(0)",$m={AREA:j,BASE:j,BASEFONT:j,BR:j,COL:j,FRAME:j,HR:j,IMG:j,INPUT:j,ISINDEX:j,LINK:j,META:j,PARAM:j},an={IMG:[{name:"alt",value:""}]},bn={c:"class"},cn={d:k,b:k,children:k},hn=function(a,b,c,d){this.name=a;this.attributes=b||[];this.text=c||"";this.children=d||[];this.pia()},jn="___FRAGMENT___";hn.prototype.OP=function(){return this.name==jn};var kn="___TEXT_NODE___";q=hn.prototype;q.AF=function(){return this.name==kn};q.se=function(){return Boolean(this.children.length)};
q.pia=function(){var a=this.name.toUpperCase(),b=an[a];b&&C(b,function(c){ga(this.Xw(c.name))&&this.fd(ln(c.name,c.value))},this)};q.YAa=function(){return!!(this.name&&this.name.toLowerCase()=="img"&&this.Xw("sprite"))};
q.PMa=function(){var a=this.Xw("src");if(a){var b=a.lastIndexOf("/");if(b!=-1)a=a.substring(b+1);b=a.lastIndexOf(".");if(b!=-1)a=a.substring(0,b);var c=this.Xw("sprite");a="knol-sprite-"+c+"-"+a;var d=this.Xw("class");if(d)d+=" "+a;else d=a;this.fd(ln("class",d));var f=Zj();this.fd(ln("src",f));this.removeAttribute("sprite")}};
q.fd=function(a){if(this.OP()||this.AF())e(new Error("cannot add attributes to a fragment"));if(a)if(a instanceof mn){this.removeAttribute(a.name);this.attributes.push(a)}else e(new Error("invalid attribute specified: "+a));return this};q.removeAttribute=function(a){Eb(this.attributes,function(b){return b.name==a})};
q.Xw=function(a){if(this.OP()||this.AF())e(new Error("cannot get attributes from a fragment"));for(var b=0;b<this.attributes.length;b++)if(this.attributes[b].name==a)return this.attributes[b].value;return k};q.addElement=function(a){if(this.AF())e(new Error("cannot add elements to a text node"));if(a)if(y(a))this.children.push(N({b:kn,d:a}));else ma(a)&&!la(a)&&this.children.push(N(a))};q.N=function(){this.addElement(N({b:"br"}))};var nn=function(){return N({b:"div",c:"knol-clearer-div"})};
hn.prototype.ka=function(){this.addElement(nn())};hn.prototype.v=function(){var a=[],b=this.OP()||this.AF(),c=$m[this.name.toUpperCase()];this.YAa()&&this.PMa();if(!b){a.push("<"+this.name);for(var d=0;d<this.attributes.length;d++)a.push(" "+this.attributes[d].v());c&&a.push(" /");a.push(">")}if(!c){a.push(this.Vsa());b||a.push("</"+this.name+">")}return a.join("")};hn.prototype.Ri=function(){return vm(this.v())};
hn.prototype.Vsa=function(){var a=[];a.push(this.text);for(var b=0;b<this.children.length;b++)a.push(this.children[b].v());return a.join("")};var on=/^[a-zA-Z][a-zA-Z0-9\-\_\:\.]*$/,mn=function(a,b){if(!on.test(a))e(new Error("illegal html attribute name: "+a+" with value: "+b));this.name=a;this.yLa(b)};mn.prototype.yLa=function(a){if(this.BAa())if(a)this.value=this.name;else delete this.value;else this.value=Ze(a)};
var pn=["compact","checked","declare","readonly","disabled","selected","defer","ismap","nohref","noshade","nowrap","multiple","noresize"];mn.prototype.BAa=function(){return zb(pn,this.name)};mn.prototype.v=function(){return r(this.value)?this.name+'="'+this.value+'"':""};
var qn=function(a){var b=a||new hn(jn);if(b instanceof hn)return b;var c=b.children||[],d=b.b||k,f=b.d||k,g;if(d)g=new hn(d,k,f,k);else e(new Error("cannot create an HTML element without a tag name"));for(var h in b)h in cn||g.fd(ln(h,b[h]));for(var i=0;i<c.length;i++){var m=k;try{m=N(c[i])}catch(n){D("knol.ui.HTML").S("could not create element from: "+Ue(c[i]),n)}g.addElement(m)}return g},N=qn,ln=function(a,b){var c=bn[a]||a;if(c)return new mn(c,b)},rn=function(a,b){return ln(a,b)},sn=function(a,
b){var c=a||Zm,d={b:"a",href:c};if(y(b))d.d=b;else if(ma(b)&&!la(b))d.children=[N(b)];else e(new Error('cannot create inner text or children from: "'+b+'" of type "'+Cc(typeof b)+'"'));return N(d)};var tn=function(){},un=l;q=tn.prototype;q.k7=function(){return l};q.M7=function(a){return a!="gadget"};q.b3=function(){return"full"};q.gsa=function(a){var b=new Ed(document.location.href);return String(b.Hf("embed."+a))};q.uAa=function(){return this.b3()=="full"};
var wn=function(){window.jstiming.load.tick("prt");vn(Yf(2));Zf(2);un=j},xn=function(){vn(Yf(1));Zf(1);var a=window.jstiming.load,b=pg();if(b)a.name=b;zf(a)},vn=function(a){for(var b=D("knol.ui.Component"),c=0;c<a.length;c++){var d=a[c];try{eval(d)}catch(f){b.za('failed to eval "'+d+'"',f)}}};q=tn.prototype;q.create=function(){};q.write=function(a){if(!this.Le)this.Le=[];a&&this.Le.push(a.toString())};q.$m=function(a,b,c,d){Rf(2,a,b,c,d)};q.Ij=function(a,b,c,d){Rf(1,a,b,c,d)};
q.J=function(a){if(a&&a instanceof hn){if(!this.Le)this.Le=[];this.Le.push(a.v())}};q.JI=function(a,b,c,d,f){this.J(this.Ac(a,b,c,d,f))};q.Ac=function(a,b,c,d,f){if(!b||!b.length)b="Untitled";var g=sn(a,b.toString());c&&g.fd(ln("target",c));d&&g.fd(ln("name",d));f&&g.fd(ln("class",f));return g};q.Le=k;q.BZ=function(){this.Le=[]};q.Si=function(){this.BZ();this.create();return this.nBa()};q.nBa=function(){if(!this.Le)return k;var a="",b=this.Le.join(a);delete this.Le;return b};
q.qd=function(){var a=D("knol.ui.Component");if(this.M7(this.b3()))try{Ck(z(function(){var c=this.Si();if(this.f())this.f().innerHTML=c;this.Cv()},this))}catch(b){if(wa(String(b.javaException),"com.google.jotspot.server.ui.RedirectException"))a.C("Redirect");else{a.za("failed to writeHTML:"+a.gb(),b);if(this.k7())e(b)}}};q.Cv=function(){};var yn=function(){};E(yn,tn);var zn=[{id:"knol-manage-page-manage-general",Mn:j,ep:j},{id:"knol-manage-page-manage-events",Mn:j,ep:l,b$:["ar"]},{id:"knol-manage-page-manage-collection",Mn:j,ep:l,j$:j,tT:j},{id:"knol-manage-page-manage-owners",Mn:l,ep:l,j$:j},{id:"knol-manage-page-manage-authors",Mn:l,ep:l},{id:"knol-manage-page-manage-reviewers",Mn:l,ep:l,tT:l},{id:"knol-manage-page-manage-unpublish",Mn:l,ep:j}];
yn.prototype.create=function(){var a=N({b:"div",id:"knol-manage"});a.addElement(An());this.write(a.v())};
var An=function(){var a=N({b:"div"});a.addElement({b:"div",id:"knol-manage-pane"});for(var b=0;b<zn.length;b++){var c=zn[b];Bn(c,fg(),P(),Q())&&a.addElement({b:"div",id:c.id})}return a},Bn=function(a,b,c,d){if(a.j$){if(!d)return l;if(!d.bg()&&!b.Fa().Th(d.n()))return l}var f=b instanceof Vl,g=f&&!!c.fx(),h=c.Yc()!=0;if(f&&(!a.ep||g))return l;if(a.tT!=undefined&&!!a.tT^h)return l;if(a.b$&&!zb(a.b$,og()))return l;return j},Cn=function(a){var b="/"+a;return"/k/-/-"+b},Dn=function(a,b){var c=df()+"-/-/"+
a;if(b){if(b.charAt(0)!="_")c+="_";c+=b}return c};var En=function(a){this.fha=a||"moderated"};E(En,tn);
var Fn=function(a){if(!a)return j;return a.Rp()!=4||a.RN()=="open"},Gn=function(a){if(!a)return j;return a.Rp()!=4||a.RN()=="open"},Hn=[{name:"open",rA:"Open collaboration",label:"Open collaboration model",Ic:"All signed in users may edit the knol",aL:"All signed in users may edit the collection",$K:"All signed in users may edit the knol or the collection",type:"open",hb:"icons/open_collaboration.png",PF:Cn("si57lahl1w25/3#Open_Collaboration"),visible:Fn,DG:Gn},{name:"moderated",label:"Moderated collaboration model",
rA:"Moderated collaboration",Ic:"All signed in users can suggest edits to the knol, but these need approval from an author before being published",aL:"All signed in users can suggest edits and make submissions to the collection, but these need approval from an owner or a moderator before being published",$K:"All signed in users can suggest edits to the knol and make submissions to the collection, but these need approval from an owner, an author, or a moderator of the knol or the collection before being published",
type:"moderated",hb:"icons/moderated_collaboration.png",PF:Cn("si57lahl1w25/3#Moderated_Collaboration"),visible:Fn,DG:Gn},{name:"closed",label:"Closed collaboration model",rA:"Closed collaboration",Ic:"Only owners and authors may edit the knol",aL:"Only owners and moderators may edit the collection",$K:"Only owners, authors, and moderators may edit the knol or the collection",type:"closed",hb:"icons/closed_collaboration.png",PF:Cn("si57lahl1w25/3#Closed_Collaboration"),visible:Fn,DG:Gn},{name:"managed",
label:"Moderator-centric collection collaboration model",rA:"Moderator-centric collection collaboration",Ic:"Owners and authors of the knol can suggest edits to the knol, but these edits will need the approval by moderators of the collection it belongs to.",type:"managed",hb:"icons/closed_collaboration.png",PF:Cn("si57lahl1w25/3#Managed_Collaboration"),visible:function(a){if(!a)return l;return a.Rp()==4},DG:function(a){if(!a)return l;return a.Rp()==4}}];
En.prototype.create=function(){var a=N({b:"div"});a.addElement(this.Jg());this.J(a)};En.prototype.qd=function(){tn.prototype.qd.call(this)};En.prototype.Rb=function(){Y("knol-access-badge").parentNode.innerHTML=this.Jg().v()};
En.prototype.Jg=function(){var a=In(this.fha);N({b:"span",c:"knol-access-badge-type",d:a.rA});return N({b:"div",id:"knol-access-badge",children:[N({b:"img",c:"knol-access-badge-icon",sprite:"main",src:Xj(a.hb)}),N({b:"span",c:"knol-access-badge-desc",children:[N({b:"span",c:"knol-access-badge-type",children:[{b:"a",href:a.PF,d:a.rA}]})]})]})};var In=function(a){for(var b=Hn,c=0;c<b.length;c++)if(a==b[c].type)return b[c];return k};var Jn=function(a){this.nVa=!!a;var b=Q();this.ZUa=b&&b.wb()};E(Jn,tn);
var Kn=[{D:"title",value:1},{D:"subtitle",value:2},{D:"keywords",value:4,ADa:j},{D:"summary",value:8},{D:"author names",value:16},{D:"contents",value:32},{D:"affiliation",value:64,ADa:j},{D:"category",value:128},{D:"references",value:256}],Ln=[{YC:j,D:"Search all documents",ZQ:"Search all authors"},{D:"Search only my documents",ZQ:"Search only my coauthors",kCa:j},{GY:j},{wa:j}],Mn=[{YC:j,D:"Knols"},{D:"Reviews"},{D:"Comments"},{D:"Authors"},{D:"Knol Templates",Yo:l},{D:"Review Templates",Yo:j},{D:"Collections"},
{D:"Moderated collections"},{D:"Strictly knols, no collections",Yo:j}],Nn=[{YC:j,D:"last modified",id:1},{D:"creation date",id:2},{D:"page views",id:4},{D:"alphabetical",id:8}];(new Mg(1)).Uj();(new Mg(3)).Uj();(new Mg(4)).Uj();(new Mg(2)).Uj();(new Mg(5)).Uj();(new Mg(6)).Uj();(new Mg(7)).Uj();
var On=[{D:"Calendar",value:1},{D:"Document",value:2},{D:"Picasa Slideshow",value:4},{D:"Presentation",value:8},{D:"Spreadsheet",value:16},{D:"Spreadsheet Form",value:32},{D:"Video",value:64},{D:"Equation",value:128}],Pn=[{D:"page views",value:1},{D:"unique visitors",value:2,Yo:j},{D:"Comments",value:4},{D:"Reviews",value:8},{D:"Ratings",value:16,Yo:l},{D:"Suggestions",value:32,Yo:j},{D:"Top pick",value:64}];Jn.prototype.create=function(){};
Jn.prototype.Ff=function(a,b,c){var d=b||"knol-advancedsearch-description",f=N({b:"div",c:"knol-advancedsearch-query-desc",children:[{b:"div",c:d,d:a}]});c&&f.fd(ln("id",c));return f};var Qn=function(a,b){if(r(a)){for(var c=parseInt(a,10),d=0;d<b.length;d++)if(c==b[d].id)return d;if(c>=0&&c<b.length)return c}return undefined};Jn.prototype.iva=function(a,b,c){var d=N({b:"input",type:"text",name:a,size:30,maxlength:2000,value:b,c:"knol-advancedsearch-input-box"});c&&d.fd(ln("id",c));return d};
Jn.prototype.Tua=function(a,b,c){if(this.FY&&!this.bs)this.bs=wf(this.FY);var d=N({b:"div",id:"knol-restrict-radio-list"});d.addElement(this.Ff("What do you want to search? "));d.N();for(var f="restrict",g=Qn(b,Ln),h=0;h<Ln.length;h++){var i=Ln[h];if(!(i.kCa&&!Q()))if(!(i.GY&&!this.bs)){var m="knol-advancedsearch-restrict-"+h,n="knol-advancedsearch-restrict",o=r(g)?g==h:i.YC,p=i.D;if(a==3&&i.ZQ)p=i.ZQ;if(i.GY){var s=this.bs.v();if(a!=3){var u="Search only documents by the author(s) of "+s;p=u}else{var v=
"Search only the author(s) of "+s;p=v}}if(i.wa){var w="url",x=c||"";s=N({b:"span",children:[this.iva(w,x,"knol-restrict-url")]}).v();if(a!=3){var B="Search only documents by the author(s) of this knol (enter the address of the knol): "+s;p=B}else{var H="Search only the author(s) of this knol (enter the address of the knol): "+s;p=H}}if(p){d.addElement({b:"input",type:"radio",id:m,c:n,checked:o,name:f,value:""+h});d.addElement({b:"label","for":m,d:p,c:"knol-advancedsearch-restrict"});d.ka()}}}return d};var Rn=function(){},Sn={reverse:"reverse",bGa:"flag1",eka:"flag2",Lya:"flag3",lya:"flag4",aC:"unpub",RJ:"pub",c$:"onlytts",linkExact:"linkExact",n6:"holiday08",SU:"weekly",QMa:"ssoutput",uea:"translateFrom",collected:"collected",collections:"collections"},Tn={start:"start",eH:"num",ci:"restrict",sort:"sort",O$:"pubdate",U0:"editdate",r_:"createdate",Ria:"op1",qc:"doctype",p8:"license",JZ:"collab",ZPa:"zipitRating",YPa:"zipitNum",cp:"authorType",Foa:"editedstarttime",pna:"createdstarttime",Doa:"editedendtime",
nna:"createdendtime",Sia:"op2"},Un={zpa:"lb1",Bpa:"ub1",Apa:"lb2",Cpa:"ub2"},Vn={bm:"q",jC:"back",RFa:"qexact",SR:"qor1",TR:"qor2",UR:"qor3",RR:"qneg",wa:"url",a1:"num2",language:"language",uBa:"knolId",link:"link",IG:"promo",templateId:"templateId",template:"templateUrl",locale:"locale",Eoa:"editedstart",ona:"createdstart",Coa:"editedend",mna:"createdend"};q=Rn.prototype;q.bm="";q.start=0;q.eH=10;q.admin=0;q.userId="";q.groups="";q.Nw=k;q.ci=0;q.SR="";q.TR="";q.UR="";q.RR="";q.as="";q.locale="";
q.sort=0;q.reverse=0;q.O$=0;q.U0=0;q.r_=0;q.Ria=0;q.zpa=0;q.Bpa=0;q.Sia=0;q.Apa=0;q.Cpa=0;q.bGa="";q.eka="";q.Lya="";q.a1="";q.language="";q.qc=0;q.p8=0;q.JZ=0;q.ZPa=0;q.YPa=0;q.lya="";q.cp=0;q.c$="";q.embeds=k;q.aC=0;q.RJ=1;q.UA=k;q.SU=0;q.uBa="";q.templateRestrict=0;q.link="";q.linkExact=0;q.IG="";q.templateId="";q.QHa="";q.Ila="";q.collected=0;q.collections=0;q.Fla=0;q.rpa=0;q.jC="";q.wa="";q.RFa="";q.n6=0;q.template="";q.QMa="";q.uea=0;q.Eoa="";q.Foa=0;q.Coa="";q.Doa=0;q.ona="";q.pna=0;
q.mna="";q.nna=0;var Wn=[{ga:"pageviews",oi:j,zm:l,pj:j,JT:0,knol:{hb:"top_viewed",D:"Top Viewed Knol Award",ij:el.Dg,Ic:"Award given to knols or authors that have the highest pageviews."},Af:{hb:"top_viewed",D:"Top Viewed Author Award",ij:Ul.Dg,Ic:"Award given to knols or authors that have the highest pageviews."}},{ga:"comments",oi:l,zm:l,pj:j,JT:2,knol:{hb:"water_cooler",D:"Most Discussed Award",ij:el.Em,Ic:"Award given to knols or authors that have the highest number of comments."},Af:{hb:"commenter",D:"Most Comments Award",
ij:Ul.Em,Ic:"Award given to knols or authors that have the highest number of comments."}},{ga:"reviews",oi:l,zm:l,pj:j,JT:3,knol:{hb:"",D:"",ij:el.Eg,Ic:"Award given to authors that have reviewed the highest number of knols."},Af:{hb:"top_reviewer",D:"Top Reviewer Award",ij:Ul.Eg,Ic:"Award given to authors that have reviewed the highest number of knols."}},{ga:"ratings",oi:l,zm:l,pj:j,knol:{hb:"top_rated",D:"Top Rated Award",ij:el.So,Ic:"Award given to knols or authors that have the highest ratings."},
Af:{hb:"top_rated",D:"Top Rated Award",ij:Ul.So,Ic:"Award given to knols or authors that have the highest ratings."}},{ga:"suggestions",oi:l,zm:l,pj:j,knol:{hb:"refined",D:"Most Suggestions Award",ij:el.vh,Ic:"Award given to knols or authors that have the most collaboration going on."},Af:{hb:"editor",D:"Most Suggestions Award",ij:Ul.vh,Ic:"Award given to knols or authors that have the most collaboration going on."}},{ga:"quality",oi:j,zm:l,pj:j,JT:6,sDa:j,knol:{hb:"quality",D:"Top Pick Knol Award",
OR:el.DB,NR:el.zga,Ic:"Award given to knols or authors that have the highest quality of work."},Af:{hb:"quality",D:"Top Pick Author Award",OR:Ul.sB,NR:Ul.zga,Ic:"Award given to knols or authors that have the highest quality of work."}},{ga:"risingStar",oi:l,zm:l,pj:l,knol:{hb:"rising_star",D:"Up and Coming Award",Ic:"Award given to knols or authors that are new and promising."},Af:{hb:"rising_star",D:"Up and Coming Award",Ic:"Award given to knols or authors that are new and promising."}},{ga:"peopleChoice",
oi:l,zm:l,pj:l,knol:{hb:"people_choice",D:"People's Choice Award",Ic:"Award given to knols or authors because readers repeatedly told us they deserved it."},Af:{hb:"people_choice",D:"People's Choice Award",Ic:"Award given to knols or authors because readers repeatedly told us they deserved it."}},{ga:"holiday08",oi:j,QOa:l,zm:l,Ry:["en"],pj:l,aI:"http://knol.google.com/k/holiday-knols/holiday-crafts/qvhc9i31ndek/1",knol:{hb:"holiday08",D:"Holiday 2008",Ic:"Knols in the 2008 Knol Holiday Crafts contest."},
Af:{hb:"",D:"",Ic:"Knols in the 2008 Knol Holiday Crafts contest."}},{ga:"dummies",oi:j,QOa:l,zm:l,Ry:["en"],GC:["us"],pj:l,aI:"http://www.google.com/landing/knolfordummies/",knol:{hb:"dummies",D:"Knols for Dummies.com",Ic:"How-to knols for our Knol for Dummies.com contest"},Af:{hb:"",D:"",Ic:"How-to knols for our Knol for Dummies.com contest"}}],Xn={holiday08:8,peopleChoice:7,risingStar:6,dummies:9,pageviews:0,quality:5},Yn=function(a){var b=Xn[a];if(ha(b)){var c=Wn[b];if(c)return c}return k},Zn=
function(a,b){if(a.aI)return a.aI;var c=bk("system/knol/pages/Badges");return c+"#"+("badge-"+a.ga+(b?"knol":"author"))},$n=function(a,b){return Xj("icons/"+(b?a.knol.hb:a.Af.hb)+"_badge.png")},bo=function(a,b,c,d){var f=d||Yn(a);if(ha(f)){if(f&&f.oi&&(!f.Ry||zb(f.Ry,og()))&&(!f.GC||zb(f.GC,Af().toLowerCase()))){var g=$n(f,b),h=b?f.knol.D:f.Af.D,i=Zn(f,b);if(h&&i){var m=N();m.addElement({b:"div",c:"knol-badge-item-msg-knol",children:[{b:"img",c:"knol-badge-img",sprite:"main",title:h,alt:h,src:g},
{b:"a",href:i,d:h}]});if(!c){var n=N({b:"a",href:Zm,c:"knol-author-toolbox-change",d:"Remove",id:"knol-badge-remove-"+f.ga});m.addElement(n)}m.ka();return m}}}else return ao(a,c);return k},co=function(a,b,c){if(!a)return k;var d=N({b:"div"}),f=l;if(b&&a instanceof dl||!b&&a instanceof Tl)for(var g=0;g<Wn.length;g++){var h=Wn[g];if(h.pj){var i;var m=a,n=b,o=h,p=c;if(!m||!(n&&m instanceof dl)&&!(!n&&m instanceof Tl)||o.sDa&&p&&(p.Yj()||p.Vw()))i=l;else{var s=0,u=n?o.knol.ij:o.Af.ij,v=n?o.knol.OR:o.Af.OR,
w=n?o.knol.NR:o.Af.NR;if(u){var x=m.l(u),B=new bl(x);if(B){var H=B.s4();if(H){var F=H.all||0,M=H[og()]||0;s=M>F?M:F}}}else if(w){x=m.l(w);B=new cl(x);if(x&&B)s=B.dra();else if(v)s=m.l(v)}else if(v)s=m.l(v);i=s>0.99?j:l}if(i){var W=bo(h.ga,b,j,h);if(W){f=j;d.addElement(W)}}}}if(f)return d;return k},go=function(a,b,c,d){var f=b.promo;if(f&&d){var g=eo(f,d);var h=a,i=g;if(i){var m=i.promoLanguage||"",n=i.promoCountry||"",o=(!m||m==og())&&(!n||n==Af().toLowerCase());if(o){var p=i.promoIcon||"";p=fo(p);
var s=i.promoTooltip||"",u=i.promoUrl||"",v=u?"a":"div";p&&h.addElement({b:v,c:"knol-search-knol-info knol-search-knol-info-badges",href:u,children:[{b:"img",c:"knol-badge-small",src:p,alt:s,title:s}]})}}a=h}for(var w=0;w<Wn.length;w++){g=Wn[w];var x=l;if(g.pj){var B=b[g.ga+"Top"];x=g.oi&&B&&(y(B)&&(Sa(B,"all")||Sa(B,og()))||ia(B)&&(zb(B,"all")||zb(B,og())))}else{var H=f&&Sa(f,g.ga);x=g.oi&&H&&(!g.Ry||zb(g.Ry,og()))&&(!g.GC||zb(g.GC,Af().toLowerCase()))}if(x){var F=$n(g,c),M=c?g.knol.D:g.Af.D;a.addElement({b:"a",
c:"knol-search-knol-info knol-search-knol-info-badges",href:Zn(g,c),children:[{b:"img",c:"knol-badge-small",sprite:"main",src:F,alt:M,title:M}]})}}return a},fo=function(a){if(a)a+=Sa(a,"?")?"&":"?";return a},eo=function(a,b){if(!b)return k;for(var c=ac(b),d=0,f=-1,g=0;g<c.length;g++){var h=b[c[g]],i=h.promoLabel||"",m=h.promoLanguage||"",n=h.promoCountry||"",o=n==Af().toLowerCase(),p=m==og(),s=i==a,u=n&&!o||m&&!p||i&&!s?0:s*(o*2+p+1);if(u>d)f=g}if(f<0)return k;return b[c[f]]},ao=function(a,b){var c=
jot.lib.knol.search.promotionSearch(a);if(!c)return k;var d=wd(c);if(!d)return k;var f=eo(a,d);if(!f)return k;var g=f.promoIcon||"";g=fo(g);var h=f.promoTooltip||"",i=f.promoUrl||"",m=f.promoName||"";if(m&&i&&g){var n=N();n.addElement({b:"div",c:"knol-badge-item-msg-knol",children:[{b:"img",c:"knol-badge-img",title:h,alt:h,src:g},{b:"a",href:i,d:m}]});if(!b){var o=N({b:"a",href:Zm,c:"knol-author-toolbox-change",d:"Remove",id:"knol-badge-remove-"+a});n.addElement(o)}return n}return k};var ho=function(a){return R.call(this,a)};Vk(ho,R,"AuthorPlonk");var io=function(a){return R.call(this,a)};Vk(io,uf,"User");Sd(io.prototype,Ef.prototype);
var jo={IRa:"gaiaId",pB:"admin",rW:"limitedAdmin",Lv:"email",sW:"locale",QV:"enableRtl",SV:"enableTransliteration",ZW:"staff",Yfa:"createRole",pTa:"reviewRole",bW:"groupMemberships",XV:"favoriteKnols",iJ:"labelBrowser",cV:"analyticsCode",nga:"human",IQa:"captchaAttempts",Efa:"apCompactK",Gfa:"apSortK",Ffa:"apCompactR",Hfa:"apSortR"},ko=function(a){var b="Blocking a user will prevent that user from commenting on, editing, or making suggestions or submissions to any knol which you own. It will also remove existing comments by this user. <br><br> You cannot block co-owners' write access to a knol you jointly own. <br><br> Blocking is permanent, but can be reversed by going to the Preferences > Blocked Users panel, and unblocking the user by name. <br><br> <a href=\""+(Cn("si57lahl1w25/81")+
('">Learn more about blocking.</a> <br><br>Do you wish to block '+(a+"?")));return b},lo=function(a){var b="The user "+(a+" is now blocked.<br><br> You can unblock users on the Preferences > Blocked Users panel.");return b},mo=function(a){var b="Unblock "+a;return b},no=function(a){var b="Would you like to unblock "+(a+" from your knols?");return b},oo=function(a){var b="Unable to block "+(a+(". This is normally because "+(a+(" is unblockable or "+(a+" is already blocked.")))));return b};q=io.prototype;
q.R=function(a){Tk(jo,this,a);io.e.R.call(this,a)};q.remove=function(a){this.ae();io.e.remove.call(this,a)};q.BK=function(){return k};q.Lh=function(a){y(a)||this.tb("getPermissionsLevel, bad type");if(this.n()==a)return 4;return 1};q.ENa=function(a,b,c){var d=c||1,f=this.cq(),g=f.s2(a);if(g<d){if(!b){f.lza(a);this.eKa(l)}}else f.gpa(a,d);this.QKa(f);this.TIa(ua());this.save();if(!b&&g<d){var h=new Ik;h.GCa();e(h)}return j};q.JIa=function(){return l};q.N3=function(){return String(this.l(jo.sW))};
O(io,io.prototype.N3,jo.sW);io.prototype.aO=function(){return this.ub(jo.QV,l)};O(io,io.prototype.aO,jo.QV);io.prototype.GE=function(){return this.ub(jo.SV,l)};O(io,io.prototype.GE,jo.SV);io.prototype.Yj=function(){return this.ub(jo.ZW,l)};O(io,io.prototype.Yj,jo.ZW);io.prototype.eKa=function(a){this.Qu(jo.nga,a)};io.prototype.bg=function(){return this.ub(jo.pB,l)};O(io,io.prototype.bg,jo.pB);io.prototype.wb=function(){var a=this.ub(jo.pB,l)||this.ub(jo.rW,l);return a};O(io,io.prototype.wb,jo.rW);
io.prototype.Ix=function(){return String(this.l(jo.Lv,""))};O(io,io.prototype.Ix,jo.Lv);io.prototype.sendEmail=function(){return l};io.prototype.Hra=function(){return this.yE(jo.Yfa)||this};io.prototype.Bsa=function(){return this.l(jo.bW,"")};O(io,io.prototype.Bsa,jo.bW);io.prototype.nN=function(){var a=this.l(jo.XV,"");return a&&a.length?wd(a):[]};O(io,io.prototype.nN,jo.XV);q=io.prototype;q.Uqa=function(){return this.ub(jo.Efa,j)};q.Wqa=function(){return parseInt(this.l(jo.Gfa,0),10)};
q.Vqa=function(){return this.ub(jo.Ffa,l)};q.Xqa=function(){return parseInt(this.l(jo.Hfa,0),10)};q.AN=function(){return this.l(jo.iJ,"")};O(io,io.prototype.AN,jo.iJ);io.prototype.oKa=function(a){this.setProperty(jo.iJ,a)};io.prototype.AD=function(){return this.l(jo.cV,"")};O(io,io.prototype.AD,jo.cV);io.prototype.listUsersSites=function(){};var fh=function(a){return R.call(this,a)};Vk(fh,R,"Discussion");Sd(fh.prototype,Ef.prototype);fh.prototype.Rb=function(){};fh.prototype.zH=function(a){this.VH(Qk.Rr,"<div>"+a+"</div>",j,j)};fh.prototype.remove=function(){};fh.prototype.removeNode=function(){};var po={rB:"author",nJ:"nodeHidden",AW:"nodeApproved",si:"knolMetaId"};q=fh.prototype;q.R=function(a){Tk(po,this,a);fh.e.R.call(this,a)};q.$ra=function(){return Nj(this,Ij.BV)};q.qua=function(){return Nj(this,Ij.IW)};
q.vH=function(a){this.setProperty(po.nJ,a)};q.Gy=function(){return this.l(po.nJ)==j};O(R,fh.prototype.Gy,po.nJ);fh.prototype.$za=function(){return this.l(po.AW)==j};O(R,fh.prototype.$za,po.AW);fh.prototype.$d=function(){return this.l(po.si)};O(fh,fh.prototype.$d,po.si);fh.prototype.hca=function(a){this.setProperty(po.si,a)};fh.prototype.U2=function(){var a=this.$ra().Qi();a||(a=this.qua().Qi());return a};fh.prototype.Qj=function(){return this.yE(po.rB)};fh.prototype.BM=function(){return this.l(po.rB)};
O(fh,fh.prototype.BM,po.rB);q=fh.prototype;q.bAa=function(){return this.Qj().Kqa()};q.Lh=function(a){var b=1,c=this.Qj();if(c)b=Math.max(b,c.Lh(a));var d=this.U2();if(d){var f=K(d);if(f)b=Math.max(b,f.Lh(a))}return b};q.log=function(a){R.prototype.log.call(this,a);this.purgeCache()};q.purgeCache=function(){var a=this.U2();if(a){var b=K(a);b&&b.purgeCache&&b.purgeCache()}};q.Pka=function(){return(this.X3()||!this.L7()&&!this.l2())&&!this.bAa()&&!this.Gy()};q.addRevisionEntry=function(){return j};var qo=function(){};E(qo,tn);qo.prototype.create=function(){};
qo.prototype.dha=function(a,b,c,d,f,g,h,i,m){var n=N({b:"a",d:"instructions for notification of copyright infringement",href:"http://www.google.com/dmca_knol.html"}),o="If you believe this content infringes upon your copyright, please see our "+(n.v()+"."),p=N({b:"div",id:"knol-report-div-"+a+"-abuse",style:c,c:b}),s="knol-report-div-"+a;if(d)s="";d?p.addElement({b:"h1",c:"knol-settings-title",d:"Report abusive content"}):p.addElement({b:"b",d:"Report abusive content"});p.N();var u=sg(),v=Dn("si57lahl1w25/12",
u),w=Dn("si57lahl1w25/13",u),x="Google takes abuse of its services very seriously. In the fields below, please provide us with information about the knol, collection or comment that you believe is in violation of our "+('<a href="'+v+'">'+("Terms of Service"+("</a>"+(" or "+('<a href="'+w+'">Content Policy</a>. We will investigate your report and will follow up with you if we require more information or we have additional information to share.'))))),B=N({b:"div",style:"margin:1.5em 1em;",d:x});p.addElement(B);
var H=N({b:"div",id:"error_msg"});i?H.addElement({b:"span",c:"knol-report-error",id:s+"submiterror",name:s+"submiterror",d:"There was an error in submitting the form."}):H.addElement({b:"span",c:"knol-report-error",id:s+"submiterror",name:s+"submiterror",style:"display: none",d:"There was an error in submitting the form."});g?H.addElement({b:"span",c:"knol-report-error",id:s+"typeerror",name:s+"typeerror",d:"Please select an issue."}):H.addElement({b:"span",c:"knol-report-error",id:s+"typeerror",
name:s+"typeerror",style:"display: none",d:"Please select an issue."});h?H.addElement({b:"span",c:"knol-report-error",id:s+"quotaerror",name:s+"quotaerror",d:"Sorry! you have reached your daily limit for sending abuse reports. Please try again tomorrow!"}):H.addElement({b:"span",c:"knol-report-error",id:s+"quotaerror",name:s+"quotaerror",style:"display: none",d:"Sorry! you have reached your daily limit for sending abuse reports. Please try again tomorrow!"});p.addElement(H);var F=N({b:"table",border:"0",
width:580,c:"knol-abuse-table"}),M=N({b:"tr"}),W=N({b:"td",width:"30%",c:"knol-top-aligned-td"}),ra=N({b:"div",align:"right"}),T=N({b:"td"});W.addElement(ra);M.addElement(W);M.addElement(T);F.addElement(M);M=N({b:"tr"});W=N({b:"td",align:"right",c:"knol-top-aligned-td"});W.addElement(N({b:"p",d:"Why are you reporting this content? This content contains:"}));T=N({b:"td",c:"knol-top-aligned-td"});T.addElement({b:"input",type:"radio",name:s+"type",id:s+"type_sexually_explicit",title:"Sexually explicit content",
value:"SEXUALLY_EXPLICIT",style:""});T.addElement({b:"span",d:"Sexually explicit content"});T.N();T.addElement({b:"input",type:"radio",name:s+"type",id:s+"type_hate_speech",title:"Violent or hateful speech",value:"HATE_SPEECH",style:""});T.addElement({b:"span",d:"Violent or hateful speech"});T.N();T.addElement({b:"input",type:"radio",name:s+"type",id:s+"type_general_abuse",title:"Objectionable or abusive content",value:"GENERAL_ABUSE",style:""});T.addElement({b:"span",d:"Objectionable or abusive content"});
T.N();T.addElement({b:"input",type:"radio",name:s+"type",id:s+"type_impersonation",title:"Content that impersonates me",value:"IMPERSONATION",style:""});T.addElement({b:"span",d:"Content that impersonates me"});T.N();T.addElement({b:"input",type:"radio",name:s+"type",id:s+"type_spam",title:"Spam or malicious code",value:"SPAM",style:""});T.addElement({b:"span",d:"Spam or malicious code"});T.N();T.addElement({b:"input",type:"radio",name:s+"type",id:s+"type_other",title:"Other (additional information required below)",
value:"OTHER",style:""});T.addElement({b:"span",d:"Other (additional information required below)"});T.N();T.N();M.addElement(W);M.addElement(T);F.addElement(M);M=N({b:"tr"});W=N({b:"td",width:"30%",c:"knol-top-aligned-td"});ra=N({b:"div",align:"right"});ra.addElement(N({b:"p",d:"Additional information (please be specific): "}));W.addElement(ra);T=N({b:"td",c:"knol-top-aligned-td"});T.addElement({b:"textarea",type:"radio",id:s+"body",name:s+"body",cols:"45",rows:"7",style:""});M.addElement(W);M.addElement(T);
F.addElement(M);if(m){M=N({b:"tr"});W=N({b:"td",width:"30%",c:"knol-top-aligned-td"});T=N({b:"td",c:"knol-top-aligned-td"});T.addElement({b:"div",id:"knol-abuse-block-div-"+a,children:[{b:"input",type:"checkbox",name:s+"block",id:s+"block"},{b:"span",d:"Also block this user"}]});M.addElement(W);M.addElement(T);F.addElement(M)}M=N({b:"tr"});W=N({b:"td"});T=N({b:"td",c:"knol-top-aligned-td"});if(d){T.addElement({b:"input",type:"submit",c:"knol-abuse-button",value:"Send"});T.addElement({b:"input",type:"button",
onclick:"window.location='"+f+"';",c:"knol-abuse-button",value:"Cancel"})}else{T.addElement({b:"a",id:"knol-report-send-link-"+a,name:"knol-report-send-link-"+a,href:Zm,d:"Send"});T.N()}M.addElement(W);M.addElement(T);F.addElement(M);M=N({b:"tr"});W=N({b:"td"});T=N({b:"td",c:"knol-top-aligned-td"});T.N();T.addElement({b:"p",d:o});M.addElement(W);M.addElement(T);F.addElement(M);p.addElement(F);if(d){p.addElement({b:"input",type:"hidden",name:"nId",id:"nId",value:a});p.addElement({b:"input",type:"hidden",
name:"action",id:"action",value:"SUBMIT"});p.addElement({b:"input",type:"hidden",name:"jot.xtok",id:"jot.xtok"});this.$m(k,k,"knol.ui.AbuseReport.initOnLoad",[])}p.N();return p};qo.prototype.vMa=function(a){var b=Y("knol-report-div-"+a+"-abuse");b.style.display=""};qo.prototype.Rya=function(a){var b=Y("knol-report-div-"+a+"-abuse");b.style.display="none"};var ro=function(){Y("jot.xtok").value=Yi("jotxtok")};t("knol.ui.AbuseReport.initOnLoad",ro,undefined);var so=function(a,b,c){if(!(a instanceof R))e(new Error("type error"));this.lb=a;this.dr=b;this.fp=c;if(!c)this.ai=-1};E(so,tn);q=so.prototype;q.ae=function(){return D("knol.ui.NodeList")};q.lb=k;q.dr="";q.s9=l;q.xpa=l;q.f9=1;q.eI=0;q.ai=5;q.ZLa=50;q.jj=k;q.kDa=function(){return this.s9};q.mca=function(){this.s9=j};q.create=function(){this.GPa(this.eI,this.ai);if(this.kDa()){var a=[this.xb(),this.lb.n(),this.fp,"div","f7f7f7",this.xpa];this.$m(k,k,"knol.ui.client.NodeList.initPage",a)}};
q.LHa=function(){if(!this.ii)this.ii=this.uva()};q.$H=k;q.uva=function(){this.jj=Nj(this.lb,this.dr);var a=this.jj.zu();if(a instanceof li)e(a);this.jj=a;var b=this.jj.Fl().Hd();if(this.$H)b.sort(this.$H);else b=this.jj.sort(b);return b};
q.ila=function(a,b,c){var d,f,g,h=function(){d=a.length;f=Math.max(b<0?d+b:b,0);g=c<0?d:Math.min(f+c,d)};h();for(var i=0;i<g;i++){var m=l;try{m=this.oa(a[i])}catch(n){this.ae().S("exception caught while calling isVisible on "+(a[i]&&a[i].nodeId||"(unknown node)"),n)}if(!m){a.splice(i,1);h();i--}}this.Pd=d;this.rm=f;this.kD=g;this.uu=g-f};
q.GPa=function(a,b){var c=this.ae();this.LHa();this.ila(this.ii,a,b);if(this.Pd>=this.f9||this.fD){this.Dv(this.ii);for(var d,f=0,g=this.rm;g<this.kD;g++){var h=this.Le.length,i=this.ii[g];try{this.Mr(i)}catch(m){this.Le.length=h;if(m instanceof qk)e(m);var n=m.toString();if(d!=n){d=n;c.S("failed to writeItem: "+Ue(i),m)}else f+=1}}f>0&&c.S(f+" similar warnings suppressed");this.No(this.ii)}};q.vfa=function(a){this.J(N({b:"h3",c:this.LNa,d:a}))};q.fD=l;q.LNa=k;q.Dv=function(){};q.No=function(){};
q.Mr=function(a){if(!(a instanceof kh))e(new Error("type error"));this.write("<p>"+a.Mh()+"</p>")};
q.HPa=function(){if(!this.fp||!this.xb()||this.ai<=0)e(new Error("Unable to write to write page links."));var a=this.rm>0,b=this.kD<this.Pd,c=a||b,d=this.uu>this.ai,f=c||d;f&&this.IPa();if(c){if(a){var g=Math.max(this.rm-this.ai,0);this.write(this.xG(g,this.ai,this.q4()));this.write(this.p4())}this.write(this.kua(this.TMa(this.rm+1),this.wDa(this.kD),this.XNa(this.Pd)));if(b){this.write(this.T3());this.write(this.xG(this.kD,this.ai,this.U3()))}if(this.fja()){this.write(this.L4());this.OOa?this.J(N({b:"a",
href:this.OOa(),d:this.dO()})):this.write(this.xG(0,this.Pd,this.dO()))}}else d&&this.write(this.xG(this.eI,this.ai,this.I4(String(this.ai))));if(f){this.JPa();this.J(this.XEa([this.YEa(this.rm,this.uu)]));this.mca()}};q.xG=function(a,b,c){return N({b:"a",href:Zm,c:"knol-nodelist-pagination-"+this.sE(a,b),d:c}).v()};q.XEa=function(a){return N({b:"span",id:"knol-nodelist-page-key-"+this.xb(),children:a})};q.YEa=function(a,b){return N({b:"span",c:"knol-nodelist-page-key-"+this.sE(a,b)})};
q.sE=function(a,b){return a+"_"+b};q.i4=function(a){return"_"+a};q.uZ=function(a){return a.charAt(0)=="_"?a.substring(1):k};q.IPa=function(){this.write('<div class="knol-nodelist-pagination">')};q.JPa=function(){this.write("</div>")};q.xb=function(){return""};q.kua=function(a,b,c){var d=a+(" - "+(b+(" of "+c)));return d};q.TMa=function(a){return N({b:"span",id:"knol-nodelist-start-"+this.xb(),d:String(a)}).v()};q.wDa=function(a){return N({b:"span",id:"knol-nodelist-items-"+this.xb(),d:String(a)}).v()};
q.XNa=function(a){return N({b:"span",id:"knol-nodelist-total-"+this.xb(),d:String(a)}).v()};q.fja=function(){return this.Pd<=this.ZLa};q.L4=function(){return" "};q.dO=function(){return"Show all"};q.I4=function(a){var b="Show first "+a;return b};q.q4=function(){return"<b>&#xAB;</b>"};q.p4=function(){return" "};q.U3=function(){return"<b>&#xBB;</b>"};q.T3=function(){return" "};q.oa=function(){return j};q.OPa=function(a,b){this.J(this.Pua(a,b))};
q.Pua=function(a,b){var c=N({b:"div",style:"display: none"});c.addElement({b:"a",rel:"nofollow",c:"knol-less-important-small-link",href:Zm,d:"Remove from list",id:this.xb()+"-"+a});this.Ij(k,k,b,[a,this.xb()]);return c};var to=function(a,b,c){var d=b||Ij.$I,f=c||"knol.ui.DiscussionView";so.call(this,a,d,f);this.wq=xa(window.location.pathname,"/knol/Help")};E(to,so);q=to.prototype;q.Wh="knol-comment-list";q.ai=10;q.eI=0;q.fD=j;q.un=function(){return P().nt()};q.create=function(){this.cb=this.un();this.ofa();if(this.cb){this.rfa();this.Kla();this.TPa();to.e.create.call(this)}};q.$H=function(a,b){return b.$j()-a.$j()};q.xb=function(){return this.Wh};q.Dv=function(){this.write('<div id="'+this.xb()+'">')};
q.No=function(){this.HPa();this.write("</div>")};q.oa=function(a){return uo(a)};var uo=function(a){var b=K(a.nodeId);if(!b||!b.Pka())return l;return j};q=to.prototype;q.dO=function(){return this.wq?"Show all questions":"Show all comments"};q.L4=function(){return" &#xA0; "};q.I4=function(a){var b="Show newest "+(a+" comments only"),c="Show newest "+(a+" questions only");return this.wq?c:b};q.q4=function(){return"&#xAB; "+(this.wq?"Newer questions":"Newer comments")};q.p4=function(){return" &#xA0; "};
q.U3=function(){return(this.wq?"Older questions":"Older comments")+" &#xBB;"};q.T3=function(){return" &#xA0; "};
q.ofa=function(){var a="",b=P();if(b.nt()){this.J(N({b:"h3",id:"knol-comment-header",d:this.wq?"Questions and Answers":"Comments"}));if(b.jx()){a=b.va()?"Comments are moderated, and will not be visible until one of the owners or moderators of this collection approves.":"Comments are moderated, and will not be visible until one of the authors of this knol approves.";this.J(N({b:"p",c:"knol-comment-moderated",d:a}))}}else{a=b.va()?"Comments have been disabled on this collection":"Comments have been disabled on this knol";
this.J(N({b:"p",d:a}))}};
q.rfa=function(){var a=P(),b=N({b:"div",id:"knol-comment-new",style:"display: none",c:"knol-comment knol-element-toggle-level-0 knol-comment"});b.addElement(N({b:"h4",id:"knol-comment-new-show",children:[{b:"a",href:Zm,d:this.wq?"Ask a Question &#9660;":"Write New Comment &#9660;"}]}));b.addElement(N({b:"h4",c:"knol-element-toggle-threshold-1",style:"display: none",d:this.wq?"Ask a Question":"Write New Comment"}));var c=N({b:"div",c:"knol-element-toggle-threshold-1",style:"display: none"});c.addElement(N({b:"div",
c:"knol-comment-new-title",children:[{b:"input",id:"knol-comment-new-title",type:"text",maxlength:250}]}));c.addElement(N({b:"div",c:"knol-comment-new-text",children:[vo("knol-comment-new-text")]}));var d=N({b:"div",c:"knol-comment-new-submit"});d.addElement(N({b:"div",id:"knol-comment-new-spinner",c:"knol-spinner knol-comment-spinner goog-inline-block"}));d.addElement(N({b:"a",id:"knol-comment-new-submit",href:Zm,c:"knol-link-disabled",d:a&&a.va()?"Submit comment to this collection":"Submit comment to this knol"}));
c.addElement(d);b.addElement(c);this.J(b);this.J(N({b:"div",id:"knol-comment-pending-list"}))};q.TPa=function(){this.J(N({b:"div",id:"knol-comment-new-sign-in",style:"display: none",c:"knol-comment",children:[{b:"a",href:sf(),d:"Sign in to write a comment"}]}))};
q.Kla=function(){var a=P(),b=a&&a.va()?"Sorry! This collection's owner(s) have blocked you from editing, making submissions, or commenting here.":"Sorry! This knol's owner(s) have blocked you from editing, making suggestions, or commenting here.";this.J(N({b:"div",style:"display: none",id:"knol-comments-not-permitted",c:"knol-comment",children:[{b:"p",d:b}]}))};var vo=function(a){var b={b:"textarea",id:a,cols:"40",rows:"5"},c;if(c=k){b.c="knol-comment-lorem-ipsum";b.children=[{b:kn,d:Ze(c)}]}return N(b)};
to.prototype.Mr=function(){D("knol.ui.DiscussionView");var a;D("knol.ui.DiscussionView");a=k;this.J(a)};var wo=function(a){var b=l;return(new qo).dha(a,"knol-abuse-form","display: none",l,"",l,l,l,b)};var yo=function(a,b,c){for(var d=new Ac(b),f=new Ac(c),g=!!(b&&c),h=N({b:"span"}),i=l,m=0;m<a.length;m++){if(!i&&hd(a[m])){i=j;h.fd(ln("dir","rtl"))}m&&h.addElement({b:jn,d:", "});if(f.contains(a[m]))h.addElement({b:"span",c:"knol-labels-voted-down",title:"You voted against this category",d:of(a[m])});else if(g){var n=N({b:"span",c:"knol-labels-wrapper"});n.addElement(xo(a[m]));n.addElement({b:"a",href:Zm,c:"knol-labels-flagdown goog-inline-block",title:"Cast negative vote for this category"});d.contains(a[m])||
n.addElement({b:"a",href:Zm,c:"knol-labels-voteup goog-inline-block",title:"Cast positive vote for this category"});h.addElement(n)}else h.addElement(xo(a[m]))}return h},zo=function(a){for(var b=N({b:jn}),c=0;c<a.length;c++){var d=N({b:"div"});d.addElement(xo(a[c]));d.addElement({b:"span",c:"knol-labels-delete",children:[{b:"a",href:Zm,c:"knol-less-important-small-link",d:"Remove"}]});b.addElement(d);b.ka()}var f=N({b:"div"});f.addElement({b:"div",c:"knol-labels-add-text",style:"display: none",children:[{b:"input",
c:"knol-labels-add-input"},{b:"button",c:"knol-labels-add-button",d:"Add"},{b:"br"},{b:"span",d:"Separate individual categories with commas."}]});f.addElement({b:"div",c:"knol-labels-add",children:[{b:"a",href:Zm,c:"knol-labels-adder goog-inline-block"},{b:"a",href:Zm,d:"Add a category"}]});b.addElement(f);return b},xo=function(a){var b=bk("Search")+"?q=incategory%3A"+Ka(Ao(a)),c=dg();if(c)b+="&back="+c;return N({b:"a",href:b,target:"_blank",c:"knol-labels-title",d:of(a)})},Ao=function(a){if(!a)return"";
if(Sa(a," ")&&!Sa(a,'"'))a='"'+a+'"';return a};var Bo=function(a,b){this.co=a||"";this.cd=b};E(Bo,tn);
Bo.prototype.create=function(){if(this.cd.Dya()){this.J(N({b:"span",id:"knol-label-browser-hide",children:[{b:"a",href:Zm,c:"knol-labels-deleter goog-inline-block"}]}));this.J(N({b:"div",c:"knol-label-browser-title",d:"Categories"}));this.J(N({b:"div",c:"knol-label-browser-subtitle",d:"Click individual categories to expand"}));this.J(this.ana());this.J(N({b:"div",children:[{b:"a",c:"knol-label-browser-link",href:Cn("3vd571esbn0f5/18"),d:"Learn more about categories"}]}));Rf(2,k,k,"knol.ui.client.LabelBrowser.initLabelBrowser",
[this.co,this.cd.jE(),this.cd.Nqa()])}};
Bo.prototype.ana=function(){var a=N({b:"div",id:"knol-label-browser"}),b=Zj(),c=new Ed(bk("Search"));c.$("q",this.co);a.addElement({b:"div",c:"goog-tree-row",children:[{b:"img",c:"goog-tree-icon goog-tree-expanded-folder-icon",src:b},{b:"a",c:"goog-tree-item-label",href:c.toString(),d:Ze(this.co)}]});for(var d=this.cd.jE()||[],f=0;f<d.length;f++){var g=d[f][1];c.$("q",this.co+" incategory:"+Ao(g));a.addElement({b:"div",c:"goog-tree-row",children:[{b:"img",c:f==d.length-1?"goog-tree-icon goog-tree-expand-icon goog-tree-expand-icon-l":
"goog-tree-icon goog-tree-expand-icon goog-tree-expand-icon-t",src:b},{b:"img",c:"goog-tree-icon goog-tree-collapsed-folder-icon",src:b},{b:"a",c:"goog-tree-item-label",href:c.toString(),d:Ze(g)}]})}return a};Bo.prototype.oa=function(){return!this.U7()&&!this.t7()};Bo.prototype.Vj=function(){if(this.U7())return this.fwa();if(this.t7())return this.t3();return""};var Co=/(^|\s)allin(title|author|comment|owner|review|category):/;Bo.prototype.U7=function(){return Co.test(this.co)};
Bo.prototype.t7=function(){var a=Q();return a instanceof io&&a.AN()=="hide"};Bo.prototype.fwa=function(){var a=N({b:"span",c:"knol-label-browser-unsupported",d:"Category browser does not apply for special searches"});return a.v()};Bo.prototype.t3=function(){var a=N({b:"a",href:Zm,id:"knol-label-browser-show",d:"&#xAB; Browse categories"});return a.v()};var Do=function(a,b,c){this.Rja=a;this.Z=b;var d=c||"ffffff";if(d.charAt(0)=="#")d=d.substring(1);this.Uja=d.toLowerCase()};Do.prototype.bda=function(){return this.Z>=5};Do.prototype.j_=function(){for(var a=N({b:"span",c:"zzAggregateRating"}),b=0;b<5;b++)a.addElement({b:"img",c:"zzSmallStar",src:this.xva(this.Rja-b)});return a};Do.prototype.xva=function(a){var b=a<0.25?"empty":a>=0.75?"full":"half";return"http://www.google.com/reviews/images/small_star_"+b+"-"+this.Uja+".gif"};var Eo=function(){};
E(Eo,Do);var Fo=function(a,b,c,d,f,g,h,i,m){var n="",o="";if(i)o="_unpublish";return n=m?N({b:"a",href:a+"&"+m+"start="+c+"&"+m+"num="+d+g,c:f+"_"+c+"_"+d+o,d:b}):h?N({b:"a",href:a,c:f+"_"+c+"_"+d+o,d:b}):N({b:"a",href:a+"&start="+c+"&num="+d+g,d:b})};var Go=function(){this.sda=j};E(Go,tn);var Ho={},Io=function(a){return a.replace("-zipit-display-","-zipit-count-display-")},Jo=function(){return""};
Go.prototype.create=function(){var a=[],b="",c=new Eo(cg());a.push(c.j_());c.bda()||(b="display: none");var d=[{b:"div",style:b,d:"Article rating:"}],f=[{b:"div",style:b,children:[{b:"span",id:"knol-zipit-article",children:a},{b:"span",id:"knol-zipit-count"}]}];if(this.sda){d.push({b:"div",d:"Your rating:"});f.push({b:"div",children:[{b:"span",id:"knol-zipit-user"},{b:"div",id:"knol-zipit-user-desc"}]})}this.J(N({b:"div",c:"g-section g-tpl-33-67",id:"knol-zipit-container",children:[{b:"div",c:"g-unit g-first",
children:d},{b:"div",c:"g-unit",children:f}]}));this.Ij(k,k,"knol.getSingleton(knol.ui.client.Zipit).constructor.constructor",[])};var Ko=function(){};E(Ko,Go);
Ko.prototype.create=function(){var a=N({b:"div",id:"knol-review-zipit-container"});a.addElement({b:"div",id:"knol-review-zipit-ratings"});a.addElement({b:"span",children:[{b:"span",id:"knol-review-zipit-user-msg",d:"Did you find this review helpful?",style:"display:none"},{b:"span",id:"knol-review-zipit-user"}]});this.J(a);this.Ij(k,k,"knol.getSingleton(knol.ui.client.ReviewZipit).constructor.constructor",[])};var Lo=function(a){if(a=="admin"){var b=Q();a=b&&b.wb()}this.xj=!!a;this.Jb=[];this.J0=this.rDa=l};E(Lo,tn);Lo.prototype.OZ="knol-search-";Lo.prototype.UOa=l;var Mo=function(){return D("knol.ui.SearchResults")};Lo.prototype.search=function(a){this.oF(a);this.qd()};Lo.prototype.oF=function(a){this.xz=a;var b=new Rn;this.Oe=b;this.setStart(a.start);this.YKa(a.pVa);b.ci=a.ci};Lo.prototype.Zqa=function(a){var b=K(a),c;return c=b?b.Wi():"(Unknown)"};
Lo.prototype.create=function(){this.ZVa&&this.RPa();var a=this.Wy&&this.Wy.Si();if(a){var b=!this.Wy.oa||this.Wy.oa();this.write('<div class="g-section g-tpl-25-75">');this.write('<div id="knol-search-left-side" class="g-unit g-first"');b||this.write(' style="display: none"');this.write(">");this.write(a);this.write("</div>");this.write('<div id="knol-search-contents"');b&&this.write(' class="g-unit"');this.write(">")}var c=this.Oe;if(this.zda){if(this.TVa){this.Jb[100]||this.sfa(j);this.J(nn())}}else{this.write('<div class="knol-search-top">');
var d,f;if(this.x4())if(this.UOa){f=this.Zqa(c.nodeId);var g=f+"'s knols:";d=g}else d="My knols:";else d="Search Results:";var h=N({b:"div",c:"knol-search-results-title",d:d});this.J(h);var i=(new No).Gu(),m=N({b:"div",id:"knol-search-write-knol"});m.addElement(i);this.J(m);this.Jb[100]||this.sfa();this.write('<div id="knol-search-message"');var n=!b&&a&&this.Wy.Vj&&this.Wy.Vj();if(n){this.write(">");this.write(n);this.write("</div>")}else this.write(' style="display: none"></div>');if(c.jC){this.J(nn());
var o;var p=wf(c.jC);if(p){var s="Return to: "+p.v(),u=N({b:"div"});u.addElement(N({b:"div",c:"knol-back-link",d:s}));u.ka();o=u}else o=k;this.J(o)}this.write("</div>")}this.J(nn());if(this.qNa){var v=this.i5(["q","SSO"]),w=v.wa+v.pD;w+="&q="+this.qNa;var x=N({b:"a",href:w,d:this.cWa}),B="Did you mean "+(x.v()+"?");this.J(N({b:"div",c:"knol-search-promo",d:B}))}if(this.Iu>0){if(this.xj){var H=N({b:"div",c:"knol-search-selectors"});H.addElement(N({b:"a",c:"knol-fake-link",href:Zm,id:"knol-search-select-all",
d:"Select all"}));H.addElement(N({b:"span",d:" "}));H.addElement(N({b:"a",c:"knol-fake-link",href:Zm,id:"knol-search-select-none",d:"Select none"}));this.J(H)}this.write('<div id="knol-searchresults-id">');this.write("<ul>");for(var F=0;F<this.Iu;F++)if(this.cd&&this.cd[F])try{this.J(this.QPa(this.cd[F]))}catch(M){Mo().za("Error writing the "+F+"th result: "+M+" "+Ue(this.cd[F]))}this.write("</ul>");this.write("</div>")}else this.wda||this.UU();if(this.xda)this.SVa&&this.tfa();else{this.tfa();if(!this.VVa){this.write("<br />");
this.write(this.DPa().v())}this.write("<br />");this.WVa||this.write(this.zPa().v())}a&&this.write("</div></div>")};var Oo=function(a){for(var b="",c=0;c<a.length;c++){var d=a[c],f=d[0];if(f&&f!="0")b+=" "+("&lt;"+Ze(d[1])+"&gt;")}return b};q=Lo.prototype;
q.Bua=function(){var a=this.Oe,b=this.Cua();b=b?N({b:"span",c:"knol-search-query",d:b}).v():"";if(a.IG||a.n6&&og()=="en"){var c=a.IG?a.IG:"holiday08",d=Yn(c),f,g,h;if(ha(d)){g=$n(d,j);f=d.knol.D;h=Zn(d,j)}else if(c&&this.L$)if(d=this.L$[c]){g=fo(d.promoIcon);f=d.promoName;h=d.promoUrl}if(f&&g&&h){var i=N({b:"a",href:h,children:[{b:"img",src:g,alt:f,c:"knol-badge-small",title:f}]});b+=" "+i.v()}}if(a.link){b+=" <i>";var m=K(a.link);b+=m&&m instanceof vf?m.ea():Ze(a.link);b+="</i>"}if(a.SR)b+=" OR ("+
Ze(a.SR)+")";if(a.TR)b+=" OR ("+Ze(a.TR)+")";if(a.UR)b+=" OR ("+Ze(a.UR)+")";if(a.RR)for(var n=a.RR.split(" "),o=0;o<n.length;o++){var p=Ha(n[o]);if(p.length>0)b+=" -"+Ze(p)}if(a.qc){var s,u=Mn[a.qc];if(s=u?u.D:"")b+=" "+("&lt;"+Ze(s)+"&gt;")}var v="";if(a.language){var w=jot.lib.knol.locale.getLanguageName(a.language,og());w=w?wd(w):{};if(w.displayName)v=w.displayName}b+=Oo([[a.O$,"published date"],[a.U0,"edit date"],[a.r_,"creation date"],[a.language,of(v)],[a.p8,"license"],[a.JZ,"collaboration mode"],
[a.c$,"audio"],[a.embeds,"embeddings"],[a.UA&&!a.SU,"top stats"],[a.UA&&a.SU,"week's top stats"],[a.templateId,"template"],[a.collected,"collected"],[a.collections||a.Fla,"collections"],[a.uea,"translation"]]);this.kJa();var x;if(a.as)x=a.as.split(",");else if(a.ci)x=a.userId;if(x){var B=Po(x,j);if(B)b+=" <i>"+B+"</i>"}b||(b="&lt;No query&gt;");if(a.collected){var H=this.kwa(),F=b+(" - "+('<a href="'+H+'">Search all of Knol</a>'));b=F}return b};
q.sfa=function(a){var b=this.Oe;this.UVa&&this.J(this.ava(!!b.QHa));this.RVa&&this.J(this.Bra(!!b.Ila));this.GMa&&this.J(this.tva(this.GMa,b.sort));this.Ola&&this.J(this.Dra(this.Ola,this.compact));if(this.DMa){var c,d=this.DMa,f=undefined,g=this.xz||this.Oe||req.args,h={};if(g instanceof Rn)h=g;else{var i=new Qo(l);h=i.tIa(g,j)}var m=N({b:"div",c:f?"":"knol-search-visibility",id:d});m.addElement({b:"span",c:"knol-search-visibility-label",d:"Show results that are:"});var n=r(h.aC)?!!h.aC:undefined,
o=r(h.RJ)?!!h.RJ:j,p=N({b:"input",type:"checkbox",c:"knol-search-checkbox",checked:o,name:"pub",id:d+"-published"});m.addElement(p);m.addElement(N({b:"span",d:"Published"}));var s=N({b:"input",type:"checkbox",c:"knol-search-checkbox",checked:n,name:"unpub",id:d+"-unpublished"});m.addElement(s);m.addElement(N({b:"span",d:"Unpublished"}));c=m;this.J(c)}this.J(nn());var u=a?"":this.Bua();if(this.qI>0){var v=b.start+1,w=Math.min(b.start+b.eH,this.qI),x;if(u){var B="Results "+(v+("-"+(w+(" of about "+
(this.qI+(" for "+u))))));x=B}else{var H="Results "+(v+("-"+(w+(" of about "+this.qI))));x=H}var F=N({b:"div",c:"knol-search-results-count",d:x});this.J(F)}else{if(u){var M="No results found for "+u;x=M}else x="No results found";var W=N({b:"div",c:"knol-no-search-results",d:x});this.J(W)}};
q.QPa=function(a){var b=a["sys/template"],c=b?xa(b,"Discussion"):this.wWa,d=b?xa(b,"User")||xa(b,"Group"):this.vWa,f=a.umst?l:this.ROa;if(d)return this.qPa(a);if(this.SOa&&!a.publish)a=this.ewa(a);var g="/",h="";if(this.OBa)h="_blank";var i=a.title,m=120;if(this.Wya)m=50;var n=of(i,m);if(!n)i=n="Untitled";if(f)n=i;var o=a.authorInfo,p=a.multiAuthorInfo,s="",u="",v="",w="",x="",B=a.id,H=a["sys/reserved/editTime"],F=this.tj?a["timestamp"+this.tj]:"",M=this.lda&&this.tj?a["chatLogModeratorTimestamp"+
this.tj]:"",W=this.lda&&this.tj?a["chatLogEntryTimestamp"+this.tj]:"",ra=r(a.knolContentVersionNumber)?a.knolContentVersionNumber:1,T=a.hasTTS,ab=a.firstImage,sc=!a.eifs,ud=l;if(this.tj)ud=this.KZ&&ha(this.KZ[B])?this.KZ[B]:a["hidden"+this.tj]=="true";if(typeof o!=="undefined"){v=o.name;u=of(v,100);var Cb=a.author||a.knolprimaryOwner;if(Cb)s="";if(o.thumbnail){var oe=window.manifest.serverBase;w=oe+o.thumbnail}}if(!v)u=v="Anonymous";var mf="ffffff",Xd=!!a.useBackground||ud||!!ra&&!a.publish&&!c&&
!f,vd="";if(Xd){mf="FFF5E5";vd="knol-search-background";if(ud){vd+=" knol-search-hidden";mf="EEEEEE"}a.publish||(vd+=" unpublished")}if(B)if(c){g="";g+="#comment-"+B}else g=a.titleUrl&&!this.J0&&a.publish?a.titleUrl:a.knolUrl?a.knolUrl:"";else if(f&&a.titleUrl&&!this.J0&&a.publish)g=a.titleUrl;else if(f&&a.knolUrl)g=a.knolUrl;if(!c&&g&&a["new"])g+="#edit";if(this.LZ){var Fe=undefined;if(this.pUa)Fe=this.jG;var Yd=undefined,pe=undefined;if(this.rUa)Yd=this.Oe.sort;if(this.qUa)pe=this.Oe.reverse;var Tg=
this.LZ,Zd=Fe,Jc=Yd,Ge=pe,He=this.xWa;if(g)if(Tg){var $f=new Ed(g);if(ha(He))$f.$("submissionId",He);else{$f.$("collectionId",Tg);ha(Zd)&&$f.$("position",Zd);ha(Jc)&&$f.$("sort",Jc);if(ha(Ge))y(Ge)?$f.$("reverse",Ge=="on"?"on":"off"):$f.$("reverse",Ge?"on":"off")}g=$f.toString()}else g=g;else g=""}var Ie={b:"div",d:n,c:"knol-search-knol-title"};if(!this.C9){Ie.b="a";Ie.href=g;Ie.target=h;if(c)Ie.rel="nofollow"}var Lk=N({b:"div",c:"knol-title-wrapper",children:[Ie]}),Qh="";if(!this.Jb[2]&&(a.snippet||
c&&a["main/text"]))if(x=c?"":this.ROa?a.snippet:of(a.snippet,125))Qh=N({b:"div",c:"knol-search-knol-snippet",d:x});var Je=N({b:"div",c:"knol-search-knol-author"}),Ug;if(!this.Jb[4]){var Mk=Xa(n,15),Wi="",dn="knol-search-knol-image knol-search-knol-image-sized";if(ab&&sc){Wi=ab+"?width=48&height=48";dn="knol-search-knol-image"}else Wi=w?w:Xj("authors/thumbnail-default-48.png");Ug=N({b:"div",c:"knol-search-knol-image-c",children:[{b:"img",c:dn,src:Wi,alt:Mk,title:n}]})}if(u||p&&!c)if(!this.Jb[3])if(c){Je.addElement({b:"span",
d:"by",c:"knol-search-by"});Je.addElement({b:"a",href:s,d:u,target:h})}else{var rq;(rq=p?Ro(p,undefined,this.C9||this.Gja):Po(B,undefined,this.C9||this.Gja))&&Je.addElement({b:"span",d:rq})}var kc=N({b:"div",c:"knol-search-knol-author"});kc=this.ufa(kc,a,!this.compact);kc=this.APa(kc,H,ra,a.publish,F,M,W);kc=this.WPa(kc,B,a.zipitRatingAvg,a.zipitRatingCount,mf);if(this.kda)kc=this.CPa(kc,a.license);kc=this.UPa(kc,T);this.Jb[8]||(kc=go(kc,a,j,this.L$));if(this.xj&&!this.Jb[102]&&!this.Jb[6])kc=this.nfa(kc,
a,!this.compact);var Vg;if(this.xj){Vg=N({b:"div",c:"knol-search-cb"});var sq=undefined,wB=N({b:"input",type:"checkbox",c:"knol-search-checkbox",checked:sq,id:"knol-search-cb-"+B});Vg.addElement(wB);var en=Q();if(en&&en.wb()){var Nk=K(B);if(Nk&&Nk instanceof vf){var xB=Nk.Fa();if(xB&&xB.MP()){Vg.N();Vg.addElement({b:"span",style:"font-size: 0.6em",d:""})}}}}var yB="knol-search-knol";if(vd)yB+=" "+vd;var Uc=N({b:"div",c:yB});if(this.rWa||this.compact){Uc.addElement(Lk);Ug&&Uc.addElement(Ug);Je.se()&&
Uc.addElement(Je);Uc.addElement(kc);Qh&&Uc.addElement(Qh);Uc.ka()}else if(this.Wya){var nf="knol-search-horizontal-",zB=N({b:"div",c:nf+"top"}),fn=N({b:"div",c:nf+"left"}),Ok=N({b:"div",c:nf+"right"});zB.addElement(Lk);Ug&&fn.addElement(Ug);Je.se()&&Ok.addElement(Je);Ok.addElement(kc);Uc.addElement(zB);Uc.ka();Uc.addElement(fn);Uc.addElement(Ok)}else{nf=this.OZ;fn=N({b:"div",c:nf+"left"});var tq=N({b:"div",c:nf+"mid"});Ok=N({b:"div",c:nf+"right"});Ug&&fn.addElement(Ug);tq.addElement(Lk);Je.se()&&
tq.addElement(Je);Qh&&tq.addElement(Qh);Ok.addElement(kc);this.xj&&Uc.addElement(Vg);if(this.jG){var AB=N({b:"div",c:nf+"number"});this.FPa(AB,B,this.jG++);Uc.addElement(AB)}Uc.addElement(fn);Uc.addElement(tq);Uc.addElement(Ok);var uq=N({b:"div",c:"knol-search-far-right"});if(this.q9){var BB=N({b:"div",c:nf+"remove"});this.NPa(BB,B);uq.addElement(BB)}if(this.o9){var gn=N({b:"div",c:nf+"hide knol-"+(ud?"hide":"show")});this.pfa(gn,B,j);uq.addElement(gn);gn=N({b:"div",c:nf+"show knol-"+(ud?"show":"hide")});
this.pfa(gn,B,l);uq.addElement(gn)}if(this.o9||this.q9)Uc.addElement(uq);Uc.ka()}var Qu=N({b:"li",c:"knol-search-bullet"});this.p9&&Qu.fd(ln("id","knol-searchresults-item-"+B));Qu.addElement(Uc);return Qu};
q.qPa=function(a){var b=N({b:"li",c:"knol-search-bullet"}),c=N({b:"div",c:"knol-search-knol"}),d="";if(this.OBa)d="_blank";var f="",g="",h="",i="",m=a.id,n=a["sys/reserved/creationTime"];if(typeof a!=="undefined"){var o=a.authName?Ha(a.authName):"",p=a.nickName?Ha(a.nickName):"";if(o&&(a.useAuth==undefined||a.useAuth||!p)){h=o;g=of(h,100)}else if(p){h=p;g=of(h,100)}if(!h)g=h="Anonymous";if(a.thumbnail){var s=window.manifest.serverBase;i=s+a.thumbnail}}if(m)f="";var u=N({b:"div",c:"knol-search-knol-author"}),
v,w=N({b:"div",c:"knol-search-knol-author"});if(!this.Jb[4]){var x;x=i?i:Xj("authors/thumbnail-default-48.png");var B=Xa(g,15);v=N({b:"div",c:"knol-search-knol-image-c",children:[{b:"img",c:"knol-search-knol-image knol-search-knol-image-sized",src:x,alt:B,title:g}]})}g&&u.addElement({b:"a",href:f,d:g,target:d,c:"knol-search-knol-title"});var H=a.disambiguation;H&&u.addElement({b:"div",c:"knol-search-knol-snippet",d:Ze(H)});this.Jb[6]||(w=this.ufa(w,a,!this.compact));w=this.xPa(w,n);this.Jb[8]||(w=
go(w,a,l,k));if(this.xj&&!this.Jb[102]&&!this.Jb[6])w=this.nfa(w,a,!this.compact);var F=this.OZ,M=N({b:"div",c:F+"left"}),W=N({b:"div",c:F+"mid"}),ra=N({b:"div",c:F+"right"});v&&M.addElement(v);u.se()&&W.addElement(u);ra.addElement(w);if(this.xj){var T=N({b:"div",c:"knol-search-cb"});c.addElement(T)}c.addElement(M);c.addElement(W);c.addElement(ra);c.ka();b.addElement(c);return b};
q.WPa=function(a,b,c,d,f){if(!this.Jb[5]){var g=this.g$||"knol-searchresults-id",h;var i=g+"-zipit-display-"+b;if(Ho[i])h=i+"-zipit-disambiguator-"+Ho[i]++;else{Ho[i]=1;h=i}var m=N({b:"span",c:"knol-search-knol-zipit",id:h}),n=j,o=f||"ffffff",p=new Do(Number(c)||0,Number(d)||0,o);(n=p.bda())&&m.addElement(p.j_());var s="";this.Jb[101]||(s=N({b:"span",c:"knol-zipit-count-display",id:Io(h)}));var u=ha(this.rR)?this.rR:"knol-search-knol-info";a.addElement({b:"div",c:u,children:n?[m,s]:[]});this.compact||
a.ka()}return a};q.UPa=function(a,b){if(b=="TTS"&&!this.Jb[8]){var c=Xj("icons/play-tts.png");a.addElement({b:"div",c:"knol-search-knol-info knol-search-knol-info-tts",children:[{b:"img",src:c,alt:"Text to Speech",title:"Text to Speech"}]})}return a};
q.ufa=function(a,b,c){var d=b.pageviews,f=b.eventsPageviewsTotal,g=b.authorEventsPageviewTotal,h=b.comments;if(!this.Jb[6]){if(f&&f>0)d=f;else if(g&&g>0)d=g;if(d){var i=Number(d);isNaN(i)||i<10||(d=i<100?Math.floor(i/10)*10:i<1000?Math.floor(i/100)*100:Math.floor(i/1000)*1000);var m=N({b:"span",c:"knol-search-knol-info-details",d:d}),n="Views: "+m.v();a.addElement({b:"div",c:"knol-search-knol-info knol-search-knol-info-pageviews",d:n});c&&a.ka()}if(h){m=N({b:"span",c:"knol-search-knol-info-details",
d:h});var o="Comments: "+m.v();a.addElement({b:"div",c:"knol-search-knol-info knol-search-knol-info-comments",d:o});c&&a.ka()}}return a};q.nfa=function(){return k};
q.APa=function(a,b,c,d,f,g,h){var i="knol-search-knol-info knol-search-knol-info-edited",m="knol-search-knol-info-details";if(this.lda){var n=(new Date(h)).getTime(),o=(new Date(g)).getTime(),p=n-o;if(p>0){a.addElement({b:"span",c:m,d:'<span class="knol-search-new">New</span> private comments'});this.compact||a.ka()}}if(b)b=yf(b);if(b&&(!r(this.vT)||this.vT)){this.compact||a.ka();if(c&&!this.Jb[9]){var s=N({b:"span",c:m,d:c}),u;if(d){var v="Published version: "+s.v();u=v}else{var w="Unpublished version: "+
s.v();u=w}a.addElement({b:"span",c:"knol-search-knol-info knol-search-knol-info-version",d:u});this.compact||a.ka()}if(!this.Jb[7]){s=N({b:"span",c:m,d:b});var x="Edited: "+s.v();a.addElement({b:"span",c:i,d:x});this.compact||a.ka()}}if(!this.Jb[10]&&f)if(f=yf(f)){s=N({b:"span",c:m,d:f});var B="Accepted: "+s.v();a.addElement({b:"span",c:i,d:B});this.compact||a.ka()}return a};
q.xPa=function(a,b){if((b=yf(b))&&(!r(this.vT)||this.vT)){this.compact||a.ka();if(!this.Jb[7]){var c=N({b:"span",c:"knol-search-knol-info-details",d:b}),d="Joined: "+c.v();a.addElement({b:"span",c:"knol-search-knol-info knol-search-knol-info-joined",d:d});this.compact||a.ka()}}return a};q.CPa=function(a,b){if(b&&this.kda){var c="knol-search-knol-info knol-search-knol-info-edited";if(b!=this.kda)c+=" knol-license-different";var d=(new So(Pg(b))).Jg();a.addElement({b:"div",c:c,children:[d]});a.ka()}return a};
q.FPa=function(a,b,c){var d=this.Jb[4]&&this.Jb[3]&&this.Jb[2]?"0":"1em 0";a.fd(ln("style","padding:"+d));var f=this.Jb[1]?"display:none":"width: 4em";a.addElement({b:"span",style:f,id:"knol-searchresults-number-"+b,c:"knol-search-item-number",d:String(c)+"."});a.addElement({b:"input",id:"knol-searchresults-numberbox-"+b,c:"knol-search-item-number-box",autocomplete:"off",value:String(c)});return a};
q.NPa=function(a,b){a.addElement({b:"a",id:"knol-searchresults-remove-"+b,href:Zm,children:[{b:"img",src:"../images/icons/delete.png",sprite:"main",alt:"Remove"}]});return a};
q.pfa=function(a,b,c){var d,f,g,h;if(c){d="Hide the knol from collection view but keep collection properties";f="Hide";g="../images/icons/hide.png";h="knol-searchresults-hide-"}else{d="Show the knol in the collection view";f="Show";g="../images/icons/show.png";h="knol-searchresults-show-"}a.addElement({b:"a",id:h+b,href:Zm,children:[{b:"img",src:g,sprite:"main",title:d,alt:f}]});return a};q.b9="Search";
q.i5=function(a){for(var b=this.b9||"Search",c=bk(b)+"?",d=this.xz||req.args,f="",g=qc(d),h=0;h<g.length;h++){var i=g[h];zb(a,i)||(f+="&"+i+"="+Ka(d[i]))}return{wa:c,pD:f}};
q.tfa=function(){var a="",b=this.Oe;a=this.aFa?{wa:this.aFa,pD:this.vVa||""}:this.$Ea?{wa:Zm,pD:""}:this.i5(["num","start","SSO","show"]);var c,d=ka(this.ppa)?this.ppa:b.start,f=ka(this.qpa)?this.qpa:this.qI,g=b.eH,h=a.wa,i="knol-search-knol-pagination",m=a.pD,n=this.$Ea,o=this.uVa,p=!!b.aC,s=this.tVa;f=Math.min(f,this.wVa||800);var u=N({b:"div",c:"knol-search-pagination"});o&&u.fd(ln("id",o));var v=i+"-prev",w=i+"-next",x=i+"-link",B=i+"-curr",H=l;if(d>0){H=j;var F=Math.max(0,d-g),M=Fo(h,"Previous",
F,g,i,m,n,p,s);u.addElement({b:"div",c:v,children:[M]})}if(f>g){H=j;for(var W=Math.max(0,d/g-10),ra=Math.min(d/g+10,f/g),T=W;T<ra;T++)if(T!=d/g){M=Fo(h,""+(T+1),T*g,g,i,m,n,p,s);u.addElement({b:"div",c:x,children:[M]})}else{u.addElement({b:"div",c:B,d:" "+(T+1)});o&&n&&u.addElement({b:"span",id:o+"-current-page-start",style:"display: none",d:String(d)})}}if(d+g<f){H=j;F=Math.min(f,d+g);M=Fo(h,"Next",F,g,i,m,n,p,s);u.addElement({b:"div",c:w,children:[M]})}H&&u.N();c=u;this.J(c)};
q.zPa=function(){if(this.x4())return N({b:"span"});var a=N({b:"div",c:"knol-search-promo"}),b=N({b:"span",d:"Know someone who knows something?"});a.addElement(b);a.addElement({b:"span",d:" "});a.addElement({b:"a",id:"knol-invite-new-knol-promo",href:Zm,d:"Suggest an author"});return a};
q.DPa=function(){var a=this.xz||req.args,b=this.Oe||new Rn;if(this.cd.length<=0||ha(a.cx)||b.qc==3||b.qc==2||this.TUa)return N();var c=this.cd[0],d=c.knolUrl||"",f,g=a||req.args,h=new Ed(d);h.$("navSearch","on");h.$("position",this.Oe.start+1||0);ha(g.ci)&&g.ci=="general"&&h.$("fields",-1);for(var i=ac(g),m=0;m<i.length;m++){var n=i[m];if(bc(Sn,n)||bc(Tn,n)||bc(Un,n)||bc(Vn,n)||wa(n,"loc")||wa(n,"embed")||wa(n,"top")||wa(n,"promo"))h.$(n,g[n])}f=h.toString();return N({b:"div",c:"knol-search-navigation-link",
children:[{b:"a",href:f,d:"View this list one knol at a time"}]})};q.zza=function(){var a=this.Oe,b=["knol-searchresults-id","div","ffffff"];this.$m(k,k,"knol.ui.client.ZipitDisplay.initContainer",b);var c=this.xz||req.args,d=c.inviteAuthorRedirect=="1";this.$m("knol.ui.client.SearchResults",[a.bm,d],k,k);this.$m(k,k,"knol.ui.client.CreateKnol",[])};q.qd=function(){Lo.e.qd.call(this);this.zza()};
q.kJa=function(){var a=this.Oe;if(a.as)a.ci=2;else{a.as="";if(a.ci==2||a.ci==3){var b="";if(a.ci==2)b=a.jC;else{a.ci=2;b=ck(a.wa)||""}var c=K(b);if(c instanceof vf){var d=c.Fa(),f=d.Kh().Xb(),g=d.Zw().Xb();f=f.concat(g);a.as=f.join(",")}else if(c instanceof uf)a.as=b}}};
var Po=function(a,b,c){var d=[];if(ia(a))for(var f=0;f<a.length;f++){var g=K(a[f]);if(g){var h=g.gb();d.push({name:h,id:a[f]})}}else if(g=K(a))if(g instanceof vf){var i=g,m=i.Fa(),n=m.Kh().Xb(),o=m.Zw().Xb(),p=n.concat(o);for(f=0;f<p.length;f++){h="";if(f<4){var s=K(p[f]);h=s.gb()}d.push({name:h,id:p[f]})}}else if(g instanceof io){h=g.gb();d.push({name:h,id:a})}return Ro(d,b,c)};Lo.prototype.Nqa=function(){return this.xj};Lo.prototype.jE=function(){return this.hVa};
Lo.prototype.Dya=function(){return this.Iu>0};
var Ro=function(a,b){for(var c,d=[],f=function(B){var H=B.name;if(!H&&B.id){var F=K(B.id);if(F)H=F.gb()}H||(H="Anonymous");var M=of(H,100);return"<span>"+M+"</span>"},g=Math.min(4,a.length),h=0;h<g;h++)d[h]=f(a[h]);switch(a.length){case 0:if(b)return"";else c="By authors unknown";break;case 1:if(b){var i="knols by "+d[0];c=i}else{var m="By "+d[0];c=m}break;case 2:if(b){var n="knols by "+(d[0]+(" or "+d[1]));c=n}else{var o="By "+(d[0]+(" and "+d[1]));c=o}break;case 3:if(b){var p="knols by "+(d[0]+
(", "+(d[1]+(" or "+d[2]))));c=p}else{var s="By "+(d[0]+(", "+(d[1]+(" and "+d[2]))));c=s}break;case 4:if(b){var u="knols by "+(d[0]+(", "+(d[1]+(", "+(d[2]+(", or "+d[3]))))));c=u}else{var v="By "+(d[0]+(", "+(d[1]+(", "+(d[2]+(", and "+d[3]))))));c=v}break;case 5:default:if(b){var w="knols by "+(d[0]+(", "+(d[1]+(", "+(d[2]+(", "+(d[3]+(" or other related authors ("+(""+(a.length+" authors)"))))))))));c=w}else{var x="By "+(d[0]+(", "+(d[1]+(", "+(d[2]+(", "+(d[3]+(" et al ("+(""+(a.length+" authors)"))))))))));
c=x}}return c};q=Lo.prototype;q.Jb=[];q.DH=function(a){this.Jb=[];for(var b=0;b<a.length;b++)this.Jb[a[b]]=1};
q.UU=function(){var a=N({b:"div",c:"knol-empty-results-title",id:"knol-searchresults-id",d:"Suggestions:"}),b=N({b:"ul"});b.addElement({b:"li",d:"Make sure all words are spelled correctly.",c:"knol-empty-results-suggestions"});b.addElement({b:"li",d:"Try different keywords.",c:"knol-empty-results-suggestions"});b.addElement({b:"li",d:"Try more general keywords.",c:"knol-empty-results-suggestions"});a.N();a.N();a.addElement(b);this.J(a)};q.Cua=function(){return of(this.Oe.bm,2000)};
q.setStart=function(a){a=parseInt(a,10);this.Oe.start=a&&a>=0?a:0;this.rDa=this.Oe.start>=30};q.YKa=function(a){a=(a=parseInt(a,10))&&a>0?a:10;a=Math.min(a,50);this.Oe.eH=a};q.x4=function(){return!ha(this.Oe.ci)};
q.tva=function(a,b){var c=N({b:"div",c:"knol-authorpage-sortlabel",d:"Sort by:"}),d=Nn,f=Qn(b,d),g,h=d,i=f,m=undefined,n="knol-advancedsearch-dropdown",o=N({b:"select",name:a,id:"knol-advancedsearch-"+a,c:n});if(m){o.fd(ln("type","hidden"));o.fd(ln("style","visibility:hidden;"))}for(var p=Q(),s=p&&p.wb(),u=0;u<h.length;u++){var v=h[u],w=r(v.D)?v.D:"",x=r(i)?i==u:v.YC;if(!v.Yo||s){var B=v.id||u,H=N({b:"option",value:""+B,d:w,selected:x});m&&H.fd(ln("type","hidden"));o.addElement(H)}}g=o;var F=N({b:"div",
c:"knol-authorpage-sort"});F.addElement(c);F.addElement(g);return F};q.Dra=function(a,b){var c=N({b:"div",c:"knol-authorpage-compact"}),d=N({b:"input",type:"checkbox",c:"knol-search-checkbox",checked:b,name:"unpub",id:a});c.addElement(d);c.addElement(N({b:"span",d:"Compact"}));return c};
q.ava=function(a){var b=N({b:"div",c:"knol-reviews-about"}),c="knol-reviews-by";b.addElement({b:"input",type:"radio",name:"knol-reviews-about-selector",id:c,value:"by",checked:a?undefined:"checked"});b.addElement({b:"label","for":c,d:"Reviews by this author"});c="knol-reviews-about";b.addElement({b:"input",type:"radio",name:"knol-reviews-about-selector",id:c,value:"about",checked:a?"checked":undefined});b.addElement({b:"label","for":c,d:"Reviews about this author's knols"});return b};
q.Bra=function(a){var b=N({b:"div",c:"knol-comments-to"}),c="knol-comments-by";b.addElement({b:"input",type:"radio",name:"knol-comments-to-selector",id:c,value:"by",checked:a?undefined:"checked"});b.addElement({b:"label","for":c,d:"Comments by this author"});c="knol-comments-to";b.addElement({b:"input",type:"radio",name:"knol-comments-to-selector",id:c,value:"about",checked:a?"checked":undefined});b.addElement({b:"label","for":c,d:"Comments written to this author"});return b};
q.RPa=function(){var a=Q();if(a&&a.wb()){this.write('<textarea cols="120" rows="'+(this.Iu+1)+'">');this.write("\n");for(var b=0;b<this.Iu;b++)if(this.cd&&this.cd[b])try{this.write(this.SPa(this.cd[b]))}catch(c){Mo().za("Error writing the "+b+"th result: "+c+" "+Ue(this.cd[b]))}this.write("</textarea><br /><br />")}};
q.SPa=function(a){var b=a.authorInfo,c="";if(typeof b!=="undefined")c=b.name;var d=a.knolUrl||"";d=jot.lib.knol.getBaseUrl()+d;var f="";f+=this.Bv(d);f+=this.Bv(of(a.title,undefined,j));f+=this.Bv(of(c,undefined,j));f+=this.Bv(a.eventsPageviewsTotal);f+=this.Bv(a.knolRQ);f+=this.Bv(a.knolRS);return f+"\n"};q.Bv=function(a){a=""+(a||"");var b,c=a,d=new RegExp(String(",").replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g");b=c.replace(d,"");return b+","};
q.ewa=function(a){var b="Unpublished knol";if(a["new"])b="New knol";if(a.unknown)b="Unknown knol";var c={"sys/template":a["sys/template"]||"/system/knol/templates/Knol",id:a.id,knolUrl:a.knolUrl,title:b,publish:undefined,authorInfo:a.authorInfo,author:a.author,multiAuthorInfo:a.multiAuthorInfo,useBackground:1};if(a["new"])c["new"]=a["new"];if(this.tj)c["hidden"+this.tj]=a["hidden"+this.tj];return c};
q.kwa=function(a){var b=new Ed(a||String(req.uri)),c="collected",d=b.mua(c);d&&d=="on"?b.FH(c,"off"):b.FH(c,"on");return of(b.toString(),undefined,j)};var Qo=function(a){Lo.call(this,a)};E(Qo,Lo);q=Qo.prototype;q.Oe=k;q.b9="system/knol/pages/SearchToolkit";q.tIa=function(a,b){var c=a||req.args,d=new Rn;this.xz=c;var f=function(g,h,i){for(var m in g){var n=c[g[m]];if(r(n))h[m]=i(n)}};f(Sn,d,To);f(Tn,d,Uo);f(Un,d,Vo);f(Vn,d,Wo);this.hFa(d,c);this.fFa(d,c);this.jFa(d,c);this.iFa(d);b||this.sIa(d,j);return d};q.sIa=function(){};
q.UU=function(){if(this.mWa){var a=N({b:"div",c:"knol-empty-results-title",id:"knol-searchresults-id",d:"Your query is too general, please restrict it.  Some suggestions: "}),b=N({b:"ul"});b.addElement({b:"li",d:"Add a word or phrase to your search.",c:"knol-empty-results-suggestions"});b.addElement({b:"li",d:"Try searching only the authors you care about by adding a url of one of their knols",c:"knol-empty-results-suggestions"});b.addElement({b:"li",d:"Try filtering results by time (within the last day)",
c:"knol-empty-results-suggestions"});a.N();a.N();a.addElement(b);this.J(a)}else Lo.prototype.UU.call(this)};q.hFa=function(a,b){if(r(b.Nw))a.Nw=Uo(b.Nw);else for(var c=a.Nw=0;c<Kn.length;c++){var d=b["loc"+c];if(r(d)&&d=="on")a.Nw+=parseInt(Kn[c].value,10)}};q.fFa=function(a,b){if(r(b.embeds))a.embeds=Uo(b.embeds);else for(var c=a.embeds=0;c<On.length;c++){var d=b["embed"+c];if(r(d)&&d=="on")a.embeds+=parseInt(On[c].value,10)}};
q.jFa=function(a,b){if(r(b.tops))a.UA=Uo(b.tops);else for(var c=a.UA=0;c<Pn.length;c++){var d=b["top"+c];if(r(d)&&d=="on")a.UA+=parseInt(Pn[c].value,10)}};q.iFa=function(a){var b=a.promo;if(ha(b))a.promo=zh(b)};
var Wo=function(a){return a?""+a:""},Uo=function(a){return r(a)?parseInt(a,10):0},Vo=function(a){return r(a)?parseFloat(a):0},To=function(a){return a=="on"?1:0},Xo=function(a){var b={show:"off",loc0:"on",loc1:"on",loc2:"on",loc3:"on",loc4:"on",loc5:"on",loc6:"on",loc7:"on",loc8:"on"};for(var c in a)b[c]=a[c];var d=[bk("system/knol/pages/SearchToolkit")+"?"];for(c in b)d.push(c+"="+b[c]+"&");return d.join("")};
Qo.prototype.LR=function(a){if(a.rpa&&a.IMa){for(var b=a.IMa.split(","),c=0;c<this.cd.length;c++){var d=this.cd[c],f=d.id;if(f){var g=rb(b,f);if(g>=0)b[g]=k}}for(c=0;c<b.length&&c<50;c++)if(f=b[c]){var h={id:f,unknown:1,knolUrl:"",multiAuthorInfo:[{id:"",name:"(Unknown)"}]};Jb(this.cd,c,0,h)}}};var Yo=function(a,b){this.Qa=a;this.HF=b;this.L9=a.Tj()<b.Al()},Zo=[{sort:19,D:"custom"},{sort:21,D:"star ratings"},{sort:4,D:"page views"},{sort:8,D:"alphabetical"},{sort:29,D:"accepted date"},{sort:1,D:"last modified"},{sort:2,D:"creation date"}];Yo.prototype.Sn=function(){return!!this.HF&&this.HF.Yc()!=0};
Yo.prototype.Zma=function(a,b,c){var d=c||"",f=N({b:"div"}),g=N({b:"div",id:"knol-collection-panel"});g.addElement({b:"span",id:"knol-collection-sort-label",d:"Sort by: "});g.addElement({b:"span",id:"knol-collection-sort-default",d:"Default sorting method:  "});for(var h=N({b:"select",id:"knol-collection-sort"+d,autocomplete:"off"}),i=r(a)?a||19:this.HF.Lp(),m=0;m<Zo.length;m++){var n=Zo[m];h.addElement({b:"option",value:String(n.sort),d:n.D,selected:n.sort==i})}g.addElement(h);var o=r(b)?!!b:this.HF.Kp();
g.addElement({b:"input",type:"checkbox",id:"knol-collection-reverse"+d,checked:o,autocomplete:"off"});g.addElement({b:"label","for":"knol-collection-reverse",d:"Reverse sort"});f.addElement(g);return f};
var $o=[[],[],["The visual appearance of your knol is controlled by the collection."],["The visual appearance of your knol is controlled by the collection.","You are giving the moderators of the collection editorial access to your knol."],["<b>You are transferring control of your knol to the moderators of the collection</b>.","The visual appearance of your knol is controlled by the collection.","You are giving the moderators of the collection editorial access to your knol.","Future edits you make to this knol will be moderated by the collection moderators.  Your knol will automatically be closed to general public edits.",
"You will lose the ability to unpublish or delete your knol and must request removal from a moderator to remove your knol from the collection."]],ap=function(a,b,c){var d=N({b:"ul",c:b||""}),f=$o[a];if(!f)return N();for(var g=0;g<f.length;g++){var h=f[g];d.addElement({b:"li",d:h,c:c||""})}return d},bp=function(a,b){if(!a)return N();wa(a,"http://")||(a="http://"+a);var c="Be sure to read the "+('<a href="'+a+'" target="_blank">additional guidelines</a> of this moderated collection.'),d=N({b:"div",
c:b||"",d:c});return d};var cp=function(a,b){if(b.ha()==2)a.Uv(b.mn());else if(b.ha()==0)a.i0([b.ZM()]);else if(b.ha()==1){var c=b.mn();a.dG(a.Epa(c),c.Ff(),c.ea(),c.Oj())}},dp=function(a,b){this.Uba(a);this.Dba(b);if(this.Np()&&this.mn())this.fi(1);else if(!this.Np()&&this.mn())this.fi(2);else if(this.Np()&&!this.mn())this.fi(0);else e(new Error("change constructor must be provided at least the deletion or addition"))};E(dp,Ef);q=dp.prototype;
q.R=function(a){if(a){var b=a.addition;if(b){var c=new Yh;c.R(b);this.Dba(c)}var d=a.deletion;if(d){var f=new Yh;f.R(d);this.Uba(f)}this.fi(a.type);this.BJa(a.deletionPos)}};q.serialize=function(){var a={};a.addition=this.mn()?this.mn().serialize():k;a.deletion=this.Np()?this.Np().serialize():k;a.type=this.ha();a.deletionPos=this.ZM();return a};q.Np=function(){return this.deletion||k};q.Uba=function(a){if(a)this.deletion=a};q.mn=function(){return this.addition||k};
q.Dba=function(a){if(a)this.addition=a};q.ha=function(){return r(this.type)?this.type:k};q.fi=function(a){this.type=a};q.ZM=function(){return r(this.deletionPos)?this.deletionPos:k};q.BJa=function(a){this.deletionPos=a};var ep=function(a,b,c){this.jQ=a||"";this.OK=b||0;this.EJ=c||0;this.dc=[]};E(ep,Ef);q=ep.prototype;q.dc=[];q.eB=0;q.OK=0;q.EJ=0;q.bS="";q.NF=0;q.Gz=0;q.Rz=-1;q.kI="";q.UT=0;q.content=k;q.title=k;q.cU=k;q.iI=k;q.PT=k;q.NB=k;q.vX=k;q.Jz=k;q.Z$=k;q.Tz=k;q.PR=l;q.IA="";q.Xaa=0;q.Xk=k;q.pM=l;q.xU=l;
q.serialize=function(){var a={};a.knId=this.jQ;a.changes=this.MIa();a.updated=this.eB;a.current=this.OK;a.acknowledged=this.EJ;a.relative=this.bS;a.latest=this.NF;a.published=this.Gz;a.resolution=this.Rz;a.content=this.content;a.editable=this.Bw;a.suggestionId=this.kI;a.suggestionVersion=this.UT;a.title=this.title;a.titleSuggestion=this.cU;a.subtitle=this.iI;a.subtitleSuggestion=this.PT;a["abstract"]=this.NB;a.abstractSuggestion=this.vX;a.references=this.Jz;a.referencesSuggestion=this.Z$;a.review=
this.Tz;a.publish=this.PR;a.suggestion=this.IA;a.revert=this.Xaa;a.collection=this.Xk;a.forceupdate=this.pM;a.updateCollection=this.xU;return a};q.MIa=function(){for(var a=[],b=0;b<this.dc.length;b++)a.push(this.dc[b].serialize());return a};
q.R=function(a){this.jQ=a.knId;this.Zna(a.changes);this.eB=a.updated;this.EJ=a.acknowledged;this.OK=a.current;this.bS=a.relative;this.NF=a.latest;this.Gz=a.published;this.Rz=a.resolution;this.content=a.content;this.Bw=a.editable;this.kI=a.suggestionId;this.UT=a.suggestionVersion;this.title=a.title;this.cU=a.titleSuggestion;this.iI=a.subtitle;this.PT=a.subtitleSuggestion;this.NB=a["abstract"];this.Jz=a.references;this.Z$=a.referencesSuggestion;this.Tz=a.review;this.PR=a.publish;this.IA=a.suggestion;
this.Xaa=a.revert;this.Xk=a.collection;this.pM=a.forceupdate;this.xU=a.updateCollection};q.Zna=function(a){this.dc=[];for(var b=0;b<a.length;b++){var c,d=a[b];if(d[0]==2048&&d[1]&&d[1][0]){var f=new Zh;f.R(d[1][0]);d[1][0]=f}var g=new fp(d[0],d[1]);g.RT=d[2];g.vK=d[3];g.result=d[4];g.mD=d[5];g.RU=d[6];c=g;this.dc.push(c)}};q.rya=function(){for(var a=0;a<this.dc.length;a++)if(this.dc[a].vK)return j;return l};q.VE=function(){for(var a=0;a<this.dc.length;a++)if(!this.dc[a].RT)return j;return l};
q.bP=function(){for(var a=0;a<this.dc.length;a++)if(this.dc[a].RU)return j;return l};q.Ea=function(){return this.dc.length<=0};q.D3=function(){for(var a=0,b=0;b<this.dc.length;b++)if(this.dc[b].mD>a)a=this.dc[b].mD;return a};q.twa=function(){for(var a=0,b=0;b<this.dc.length;b++)a|=this.dc[b].RU;return a};q.esa=function(a){for(var b=0;b<this.dc.length;b++){var c=this.dc[b];if(c.i9==a)return c.args[0]}return k};q.Y2=function(){return this.esa(16)};q.Nd=function(){};
var fp=function(a,b){this.i9=a;this.args=b||[];this.mD=0};E(fp,Ef);fp.prototype.RT=j;fp.prototype.vK=l;fp.prototype.result=k;fp.prototype.serialize=function(){return[this.i9,this.args,this.RT,this.vK,this.result,this.mD,this.RU]};var gp={};gp.ae=function(){return D("knol.Featured")};gp.JB=7;gp.fga=10;gp.Zfa=90;gp.yga={ar:30,it:30};gp.CRa=gp.JB*gp.fga*3;gp.Mva=function(a,b){var c=new Pl,d=gp.K2();c.setTime(d[0].getTime());if(b)g=new Ol("d",gp.JB);else var f=gp.Gta(a),g=new Ol("d",-f);c.add(g);return c};gp.DVa=function(){return 0};gp.tV=3;
gp.KUa=function(a){var b=hg();if(!b||!gp.jZ(b,a))return l;var c=K(a),d=c.Fa(),f=K(b);if(!f.wb()&&!f.Yj()&&!f.ENa(19,j,gp.tV))return l;d.SJa((new Pl).getTime());var g=d.fva(c.Tj(),c.Kn());d.TJa(g[1]);d.RJa(b);d.save();d.log({event:"featureKnol",user:hg()});jot.lib.knol.purgeCache("/k/knol/Home");return j};
gp.jZ=function(a,b){var c=K(b),d=c.Fa(),f=K(a);if(!f)return l;if(f.wb())return j;if(!gp.iK(d))return l;var g=d.h3();if(g){var h=d.getLanguage(),i=gp.Mva(h,l),m=i.getTime();if(g>m)return l}if(f.Yj())return j;if(!d.jra())return l;if(d.Zb(f.n()))return l;if(f.Yua()<=0)return l;if(f.cq().s2(19)<gp.tV)return l;return j};gp.Gta=function(a){return gp.yga[a]||gp.Zfa};
gp.EHa=function(a){var b=wd(a);if(!b||!b.results)e(new Error("Missing results"));return tb(b.results,function(c){var d=K(c.id);if(!d)return k;var f=d.Fa(),g=f.psa();return g&&g>=0?K({nodeId:d.n(),version:g}):d})};gp.AVa=function(a,b,c){for(var d=a.length,f=0;f<d;f++){var g=Math.floor(Math.random()*a.length),h=a[g];Bb(a,g);var i=h.Fa();if(gp.iK(i))if(!(b.contains(h.n())||c.contains(i.Zc())))return h}return k};
gp.SUa=function(a){gp.ae();var b=gp.K2(),c=gp.Jpa(b[0].getTime(),b[1].getTime(),a),d=gp.EHa(c);if(!d)e(new Error("Failed to find queued knols"));return gp.oka(b[0],d)};gp.K2=function(){var a=new Pl,b=new Ol("d",gp.JB),c=new Pl;c.setTime(a.getTime());c.add(b);return[a,c]};
gp.oka=function(a,b){gp.ae();for(var c=[],d=0;d<gp.JB;d++){var f=sb(b,function(g){if(!g)return l;var h=g.Fa(),i=h.h3();if(!i)return l;if(!gp.iK(h))return l;var m=new Pl;m.setTime(i);var n=new Pl;n.setTime(a.getTime());var o=new Ol("d",d);n.add(o);return n.jc(m)});c[d]=f}return c};gp.PUa=function(){return""};gp.iK=function(a){if(a.UD()||a.lx()||!a.jK())return l;var b=K(a.Zc());if(b&&b.Yj())return l;return j};gp.Jpa=function(){return""};var hp={};hp.Bfa=1024;hp.Ofa=512;hp.ae=function(){return D("knol.Labels")};hp.MUa=function(a){var b=hg();return jot.lib.knol.labels.fetchLabels(a,b)};hp.KVa=function(a,b){var c=K(a),d=c.Fa();hp.ae();var f=hg();if(f&&!d.h7(f)){var g=K(f),h=1;if(g&&g.wb())h=hp.Bfa;else if(d.Zb(f))h=hp.Ofa;for(var i in b){var m=b[i]==0?0:b[i]>0?1:-1;b[i]=m*h}var n=jot.lib.knol.labels.saveLabels(a,f,b);c.purgeCache();return n}else return k};
hp.saveQueryLabels=function(a,b,c){var d=hg();return jot.lib.knol.labels.saveQueryLabels(a,d,b,c)};var ip=function(a){this.Ef=0;return ol.call(this,a)};Vk(ip,ol,"Edit");Sd(ip.prototype,Ef.prototype);ip.prototype.type=1;var jp=function(a){this.Ef=0;return ol.call(this,a)};Vk(jp,ol,"EditBunch");Sd(jp.prototype,Ef.prototype);jp.prototype.type=32;jp.prototype.remove=function(){this.MGa(this.fra(),2);jp.e.remove.call(this)};jp.prototype.fra=function(){return Nj(this,Ij.mV)};var kp=function(a,b,c,d){Hj.call(this,a,b,c,d)};E(kp,Hj);kp.prototype.ok=th;kp.prototype.sort=Pj;var lp=function(a){return R.call(this,a)};Vk(lp,uf,"Group");Sd(lp.prototype,Ef.prototype);q=lp.prototype;q.R=function(a){lp.e.R.call(this,a)};q.remove=function(){this.ae();lp.e.remove.call(this)};q.Zza=function(){return l};q.zAa=function(){return l};q.Lh=function(a){y(a)||this.tb("bad type");if(this.Zza(a))return 4;if(this.zAa(a))return 3;return 1};(function(){new Lj(Ij.GW,S,k,2,Ij.oJ,uf,Qj,0);new Lj(Ij.dV,S,k,2,Ij.SI,uf,Qj,0);new Lj(Ij.Xfa,S,k,2,Ij.sV,uf,Vj,0);new Lj(Ij.sJ,S,Uj,0,k,S,k,3);new Lj(Ij.mX,vf,k,0,k,S,k,3);new Lj(Ij.Yga,S,k,0,k,S,k,3);new Lj(Ij.Eg,S,Tj,0,Ij.SW,S,k,1);new Lj(Ij.pga,vf,k,0,k,uf,k,3);new Lj(Ij.Dga,vf,k,0,k,uf,k,3);new Lj(Ij.Afa,lp,Qj,0,k,io,k,3);new Lj(Ij.tga,ol,Rj,2,Ij.WW,uf,k,0);new Lj(Ij.sga,ol,Rj,2,Ij.OW,uf,k,0);new Lj(Ij.wW,ol,Rj,1,Ij.WU,R,k,0);new Lj(Ij.$I,fh,Sj,1,Ij.BV,R,k,0);new Lj(Ij.HB,fh,Sj,1,Ij.IW,R,k,0);
new Lj(Ij.Jfa,Zk,k,1,Ij.Ifa,R,k,0);new Lj(Ij.vh,Fl,Wj,0,Ij.Pga,S,k,1);new Lj(Ij.mV,ip,kp,0,Ij.Wfa,jp,k,1)})();var mp=function(){fl.call(this,"expertise")};E(mp,fl);il(mp);var np=function(){fl.call(this,"originality")};E(np,fl);il(np);var op=function(){fl.call(this,"useful")};E(op,fl);il(op);var pp=function(){fl.call(this,"complete")};E(pp,fl);il(pp);pp.prototype.Sn=function(a){return K(a).Bl().length>=1000};var qp=function(){fl.call(this,"readable")};E(qp,fl);il(qp);qp.prototype.Sn=function(a){return K(a).Bl().length>=1000};var rp=function(){fl.call(this,"referenced")};E(rp,fl);il(rp);rp.prototype.Sn=function(){return j};
var sp=function(){fl.call(this,"constrast")};E(sp,fl);il(sp);var tp=function(){fl.call(this,"commercial")};E(tp,fl);il(tp);var up=function(){fl.call(this,"collectionSubmission")};E(up,fl);il(up);up.prototype.Sn=function(){return l};up.prototype.rP=l;var vp=function(){fl.call(this,"feature")};E(vp,fl);il(vp);vp.prototype.Sn=function(a,b){return gp.jZ(b,a)};vp.prototype.rP=l;var wp=function(a){this.Ef=13;return ol.call(this,a)};Vk(wp,ol,"CollectionReviewRequest");wp.prototype.type=128;wp.prototype.NA=function(){return l};wp.prototype.fs=function(){return l};wp.prototype.$N=function(){return this.l("reviewerEmail")};O(wp,wp.prototype.$N,"reviewerEmail");wp.prototype.ut=function(){return this.l("locale")};O(wp,wp.prototype.ut,"locale");wp.prototype.Ca=function(){return this.l("knolId")};O(wp,wp.prototype.Ca,"knolId");
wp.prototype.Pf=function(a){this.setProperty("knolId",a)};wp.prototype.xra=function(){return this.l("collectionId")};O(wp,wp.prototype.xra,"collectionId");var xp=function(a){this.Ef=16;return ol.call(this,a)};Vk(xp,ol,"InviteFriend");ol.prototype.type=64;q=xp.prototype;q.NA=function(){return l};q.fs=function(){return l};q.eg=function(){return this.l("email")};q.TS=function(a){this.setProperty("email",a)};q.ut=function(){return this.l("locale")};var yp=function(a){R.call(this,a)};Vk(yp,R,"KnolEvents");var zp={ye:"knolId",si:"knolMetaId",Dg:"pageviews"};yp.prototype.R=function(a){Tk(zp,this,a);yp.e.R.call(this,a)};yp.prototype.Ca=function(){return this.l(zp.ye)};O(yp,yp.prototype.Ca,zp.ye);yp.prototype.$d=function(){var a=this.n();return a.substring(0,a.length-7)};O(yp,yp.prototype.$d,zp.si);yp.prototype.Gn=function(){var a=this.fc(zp.Dg);return new Sl(a)};O(yp,yp.prototype.Gn,zp.Dg);var Ap=function(a){return ol.call(this,a)};E(Ap,ol);q=Ap.prototype;q.type=2;q.Cm=function(){var a=this.wt();if(!a||!a.ma())this.tb("null operation");var b=a.vb();uc(b,function(c){pf.test(c)||K(c)instanceof uf||this.tb("offer expects Author types")},this)};q.forEach=function(a){var b=this.wt().vb();uc(b,function(c){uc(this.Sw().Xb(),function(d){a(this,c,d)},this)},this)};q.remove=function(){Ap.e.remove.call(this)};q.GAa=function(){return!this.N7()};q.N7=function(){return this.ub("isRequest",l)};
O(Ap,Ap.prototype.N7,"isRequest");Ap.prototype.wt=function(){return this.fc("map",function(){return new Dg},j)};O(Ap,Ap.prototype.wt,"map");Ap.prototype.fs=function(){if(!ol.prototype.fs.call(this))return l;return this.GAa()?!this.Yza():j};Ap.prototype.Yza=function(){var a=this.wt(),b=a.z(this.eg());if(b>=3)return j;return l};var Bp=function(a){this.Ef=5;return ol.call(this,a)};Vk(Bp,Ap,"OfferOwnership");q=Bp.prototype;q.Cm=function(){Bp.e.Cm.call(this);this.forEach(function(a,b,c){var d=K(c);d instanceof S||this.tb("cannot change ownership for non-knols.")});this.Hoa()&&this.tb("cannot eliminate all owners")};q.Hoa=function(){for(var a=this.Sw().Xb(),b=0;b<a.length;b++)if(!this.mDa(a[b]))return j;return l};
q.mDa=function(a){for(var b=this.wt(),c=K({nodeId:a,type:S}),d=c.Kh().Xb(),f=d.length,g=0,h=b.vb(),i=0;i<h.length;i++){var m=h[i],n=b.z(m);if(n==4){g++;this.or(3)}else if(rb(d,m)>=0){f--;this.or(3)}}return f+g};q.NA=function(){};q.send=function(a,b,c){Ap.prototype.send.call(this,a,b,c)};q.eg=function(){return this.l("email")};O(Bp,Bp.prototype.eg,"email");Bp.prototype.TS=function(a){this.setProperty("email",a)};Bp.prototype.cua=function(){return this.l("offerLevel")};O(Bp,Bp.prototype.cua,"offerLevel");
Bp.prototype.ut=function(){return this.l("locale")};O(Bp,Bp.prototype.ut,"locale");var Cp=function(a){this.Ef=13;return ol.call(this,a)};Vk(Cp,ol,"ReviewRequest");Cp.prototype.type=4;Cp.prototype.NA=function(){};Cp.prototype.fs=function(){return l};Cp.prototype.$N=function(){return this.l("reviewerEmail")};O(Cp,Cp.prototype.$N,"reviewerEmail");Cp.prototype.ut=function(){return this.l("locale")};O(Cp,Cp.prototype.ut,"locale");var Dp=function(a){this.or(0);this.eUa={};this.pWa=[];return ol.call(this,a)};Vk(Dp,ol,"TransactionMessage");var Fj=function(a){for(var b in Ep){var c=Ep[b];this[c]=a[c]}this.Tk()};Vk(Fj,io,"UserStub");var Ep={AJ:"stubType",BW:"nodeId",xW:"name",Lv:"email"},Fp=function(a){var b={};b[Ep.AJ]="UserStub";b[Ep.BW]=a;b[Ep.xW]="";b[Ep.Lv]=req.user?req.user.primaryEmail:"";return b};Fj.prototype.n=function(){return this[Ep.BW]};Fj.prototype.gb=function(){return this[Ep.xW]};Fj.prototype.Ix=function(){return this[Ep.Lv]};Fj.prototype.VD=function(){return j};var Gp=function(a,b){this.Pb=a;this.xf=b};E(Gp,tn);Gp.prototype.qd=function(){tn.prototype.qd.call(this)};Gp.prototype.create=function(){};var Hp=function(a){this.kba=a};E(Hp,tn);Hp.prototype.create=function(){};var Ip=function(a){if(a){D("knol.ui.AdSense");this.F=a;this.e8=a.st();if(r(a)&&!(a.$c()instanceof Vl))if(this.GJ=this.F.ln())this.BT=this.GJ.vr()&&this.cla();if(this.BT){var b=bg(),c=!b||!b.Mqa();this.Tna=c&&j;this.hha=this.GJ.h4();this.ls=!this.Tna?this.KM(this.hha,l,this.iha):this.iMa?N({b:"div",c:"knol-box",id:"knol-adsense-pending-ad"}).v():"";this.BT=!!this.ls}}};E(Ip,tn);Ip.prototype.create=function(){this.J(this.Jg())};
Ip.prototype.Rb=function(){var a=this.Jg().v(),b=Y("knol-adsense");if(a&&b)b.innerHTML=a};Ip.prototype.qd=function(){tn.prototype.qd.call(this)};Ip.prototype.Jg=function(){if(!this.F)return k;D("knol.ui.AdSense");if(this.BT&&this.ls){var a=N({b:"div",id:this.mPa,c:"knol-box knol-sidebar-box"}),b=N({b:"div",id:this.Da});b.addElement(this.ls);a.addElement(b);return a}else return k};var Jp=["wikipedia.org"];q=Ip.prototype;
q.cla=function(){var a=bg();if(a&&a.Oqa())return j;var b;if(this.e8)b=this.e8.KE();var c={};if(b)c=wd(b);for(var d=c.site||[],f=0;f<d.length;f++){var g=d[f].siteName;if(g&&rb(Jp,g)!=-1){var h=d[f].sharingFraction||0;if(h>=0.5)return l}}return j};
q.KM=function(a,b,c){var d=b||bf("adSenseSandbox")=="true";if(!a)return k;var f=a.substring(3),g=this.Ala;g=g.replace("~1",f);var h="pub-1358271515413561";g=g.replace("~2",h);var i=d?'google_adtest="on";\n':"";g=g.replace("~3",i);var m=c||"text_image";return g=g.replace(/~6/g,m)};q.iMa=j;q.Da="knol-adsense-code";q.mPa="knol-adsense";q.iha="text_image";q.Ala='<script type="text/javascript">\ngoogle_ad_client = "~1";\ngoogle_ad_host = "~2";\ngoogle_ad_width = 250;\ngoogle_ad_height = 250;\ngoogle_ad_format="250x250_as";\ngoogle_ad_type="~6";\ngoogle_color_border = "FFFFFF";\ngoogle_color_bg = "FFFFFF";\ngoogle_color_link = "3366CC";\ngoogle_color_url = "3366CC";\ngoogle_color_text = "54494C";\n~3<\/script>\n<script type="text/javascript"\n  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">\n<\/script>\n';var Lp=function(a){var b=Q(),c=b&&b.wb();if(a=="author"){if(c||dg()==gg())Kp("unpub",a);c&&Kp("admin",a)}if(a=="knol"){b=Q();var d=P();if(b&&d&&(b.wb()||d.Zb(b.n())))Kp("unpub",a)}};t("knol.ui.FeedLinks.addPrivateFeedLinks",Lp,undefined);
var Kp=function(a,b){var c;c=b=="author"?Cj(gg(),"getUnpublishedFeedUrl",[ag(),a=="admin"]):Cj(cg(),"getUnpublishedFeedUrl",[]);c.k(function(d){if(d){var f,g=d,h=a,i=b,m;if(h=="public")m="Public activity feed";else if(h=="unpub")m="Private activity feed";else if(h=="admin")m="Admin activity feed";var n=N(),o=N({b:"a",id:"knol-feedlinks-rss-icon-"+h,c:"knol-feedlinks-icon-"+i,href:g}),p=Xj("icons/feed-"+h+".gif");o.addElement({b:"img",src:p,sprite:"indexed",alt:m});n.addElement(o);var s=i=="knol"?
" knol-custom-bg-link":"",u=N({b:"a",id:"knol-feedinks-rss-"+h,c:"knol-feedlinks-link"+s,href:g});u.addElement({b:"span",d:m});n.addElement(u);f=n;var v=Y("knol-feedlinks-"+b);if(v&&f){var w=tm("div");w.innerHTML=f.v();v.appendChild(w)}}})};var Mp=$e["credit-card"],Np=$e.ssn,Op=$e["korean-rrn"],Pp=function(a){return a.replace("knol-settings-page-","")};var Qp=function(a,b,c,d){this.Zq=c;this.kk=a.n();so.call(this,a,b,d)};E(Qp,so);var Rp=0;q=Qp.prototype;q.Wha=l;q.oia=l;q.Dv=function(){this.write("<div>");this.J(N({b:"h3",d:this.Zq}));this.write('<ul id="'+this.xb()+'">')};q.No=function(){this.write("</ul>");this.write("</div>")};q.xb=function(){return k};q.Kx=function(){return k};q.v8=function(){return k};
q.Mr=function(a){var b=this.Kx(a.nodeId),c=this.v8();this.write("<li"+(b?' id="'+b+'"':"")+(c?' class="'+c+'"':"")+">");var d="knol-author-index-"+Rp++;this.write('<div class="knol-author '+d+'">');this.rPa(a);this.write('<div class="knol-author-desc">');this.pPa(a);this.mfa(a);this.Wha&&this.yPa(a.nodeId);this.oia&&this.OPa(a.nodeId,"knol.ui.client.AuthorListHelper.setupRemoveLinks");this.write("</div>");this.J(nn());this.write("</div>");this.write("</li>")};q.mfa=function(){};
q.rPa=function(a){var b=a.Xi();b||(b=Xj("authors/thumbnail-default-48.png"));var c=a.Yw(),d=a.gb(),f=N({b:"img",src:b,c:"knol-author-image",alt:d,id:"knol-author-image-"+a.nodeId});this.JI(c,f.v(),this.YJ);if(!pf.test(a.nodeId)){var g=V("knol.ui.AuthorList.getThumbnailItemFromId",[a.nodeId]);g.k(z(function(h){var i=Y("knol-author-image-"+a.nodeId);if(i&&h)i.src=h},this))}};q.YJ="";
q.pPa=function(a){var b=a.Yw();this.write('<div class="knol-author-name">');var c=of(a.gb(),100);this.JI(b,c,this.YJ);this.write("</div>");var d=a.rn();if(d){d=sb(d,function(h){return!!h});var f=d.join(", ");f=of(f,250);this.J(N({b:"div",c:"knol-author-disambiguation",d:f}))}var g=a.i2();g&&this.J(N({b:"div",style:"display: none",c:"knol-author-profile-wrapper",children:[{b:"div",c:"knol-author-profile-badge-border-top"},{b:"a",c:"knol-author-profile-link",href:Dn("3vd571esbn0f5/1",rg()),title:"This author's name has been verified. Click on the badge to learn more",
d:"Verified"},{b:"div",c:"knol-author-profile-badge-border-bottom"}]}))};q.yPa=function(a){var b=K(this.kk),c=b&&b instanceof S&&b.va(),d=N({b:"div",c:"knol-author-list-invite",style:"display: none"});d.addElement({b:"a",c:"knol-less-important-small-link",href:"#manage-authors-"+jot.lib.knol.encodeInvitation(a,this.kk),d:c?"Invite as moderator":"Invite as author"});this.J(d);if(!this.MLa){this.MLa=j;this.Ij(k,k,"knol.ui.client.AuthorListHelper.setupInviteLinks",[this.xb()])}};
q.$H=function(a,b){return a.CD()-b.CD()};var Sp=function(){this.pz="No items in this list."};E(Sp,tn);q=Sp.prototype;q.create=function(){var a=N({b:"div",c:"knol-author-list-wrapper"}),b=og(),c=this.uaa(this.AM(b,0),1,a,10),d=0;if(c<10&&b!="en")d=this.uaa(this.AM("en",0),c+1,a,10-c);c+d==0&&a.addElement(N({b:"div",c:"knol-author-list-infomessage",d:this.pz}));this.J(a)};q.AM=function(){return[]};q.y1=function(){return{name:"",bioUri:"",occupation:"",location_:"",rankDifference:"",rankDiffType:0,thumbnailUrl:""}};
q.uaa=function(a,b,c,d){if(!a)return 0;for(var f=0,g=0;g<a.length;g++){if(d)if(f>=d)break;this.ZGa(a[g],f+b,c)&&++f}return f};
q.ZGa=function(a,b,c){var d=this.y1(a);if(!d)return l;var f=N({b:"div",c:"knol-author-list-entry"});f.addElement(N({b:"span",c:"knol-author-list-rank",d:b}));var g=N({b:"span",c:"knol-author-list-midcolumn"}),h=N({b:"div",c:"knol-author-list-name",d:d.name});if(d.bioUri){var i=N({b:"a",href:d.bioUri});i.addElement(h);g.addElement(i)}else g.addElement(h);g.addElement(N({b:"div",c:"knol-author-list-occupation",d:d.occupation}));g.addElement(N({b:"div",c:"knol-author-list-location",d:d.location_}));
f.addElement(g);var m,n=d.rankDiffType;switch(n){case -1:m="localized/kr/icons/down.gif";break;case 0:m="localized/kr/icons/not-changed.gif";break;case 1:m="localized/kr/icons/up.gif";break}var o=N({b:"span",children:[n!=2?{b:"img",c:"knol-author-list-rdimage",src:Xj(m)}:{},{b:"span",d:d.rankDifference+""}],c:n!=2?"knol-author-list-rankdifference":"knol-author-list-new"}),p=N({b:"table",c:"knol-author-list-picwrapper",children:[{b:"tr",children:[{b:"td",c:"knol-author-list-td1",children:[{b:"img",
c:"knol-author-list-thumbnail",src:d.thumbnailUrl}]},{b:"td",children:[o]}]}]});f.addElement(p);f.ka();c.addElement(f);return j};var Tp=function(a){this.ie=a};E(Tp,tn);var Up=[{id:"knol-author-page-knols",D:"Knols",qc:8,cp:undefined,iB:l},{id:"knol-author-page-collections",D:"Collections",qc:6,cp:undefined,iB:l},{id:"knol-author-page-reviews",D:"Reviews",qc:1,cp:undefined,iB:l},{id:"knol-author-page-comments",D:"Comments",qc:2,cp:undefined,iB:l},{id:"knol-author-page-collaborators",D:"Collaborators",qc:3,cp:0,iB:j}];
Tp.prototype.create=function(){this.doa();this.J(N({b:"div",id:"knol-author-page-tabs"}));this.SGa();for(var a=0;a<Up.length;a++)this.rHa(Up[a]);this.J(N({b:"div",id:"knol-author-page-favorites"}))};Tp.prototype.doa=function(){this.ie&&this.ie.Vw()&&Vp(l)};Tp.prototype.SGa=function(){};
Tp.prototype.rHa=function(a){this.write('<div id="'+a.id+'" style="display: none">');var b=Q(),c=l,d=this.ie?this.ie.n():"";a.qc==2&&b&&b.n()==d;if(a.qc!=3)if(a.qc==0||a.qc==8||a.qc==6||a.qc==1)if(b){(c=a.qc==1)?b.Vqa():b.Uqa();c?b.Xqa():b.Wqa()}b&&b.n()==d;var f;this.ie.n();this.ie.Sj();f="";this.write(f);this.$m(k,k,"knol.ui.client.ZipitDisplay.initContainer",[a.id,"div","#fff"]);this.write("</div>")};var Wp=function(a){this.ie=a};E(Wp,tn);q=Wp.prototype;q.create=function(){var a=this.ie?this.ie.bt():k;if(a&&!a.o3()&&!a.p3()){this.$Ga();this.XGa();this.bMa()&&this.YGa()}};q.bMa=function(){var a=this.ie.a2();return a!=0||l};
q.YGa=function(){var a=N({b:"div",id:"knol-author-stats-section",c:"knol-box knol-sidebar-box"});a.addElement({b:"h3",d:"Author's statistics"});var b;({date:this.ie.UM()});b="";var c="Author since: "+b;a.addElement(c);a.N();var d=this.ie.a2();if(d){a.addElement("Last active: ");a.N()}this.J(a)};
q.XGa=function(){var a=this.ie.uwa()||[],b=this.ie.lta();if(!zb(a,b)){var c=this.ie.Gsa();if(c){var d=c.Fa();if(d.jK()){var f=bk("system/app/images/favicon.png",j),g={url:b,title:"My bio",favicon:f};Jb(a,0,0,g)}}}this.write('<div id="knol-author-page-favorites-short" class="knol-author-page-links" style="display: none;"> </div>');this.J(nn());if(a.length>0){this.write('<div id="knol-pivot-sections" class="knol-author-page-links">');this.write('<div class="knol-sidebar">');this.write("<h3>"+this.ie.Wi()+
" "+Ze("on the web")+"</h3>");C(a,function(h){this.Ac(h)},this);this.write("</div>");this.write("</div>")}};q.Ac=function(a){var b=N({b:"div"}),c=(new Ed(a.url)).toString(),d=of(a.title||a.url,250),f=a.favicon||"http://www.google.com/s2/favicons?domain_url="+escape(c);b.addElement({b:"img",c:"knol-author-page-links-favicon",src:f,alt:""});b.addElement({b:"a",c:"knol-author-page-links-link",href:c,d:d});this.J(b)};
q.$Ga=function(){var a=N({b:"div",id:"knol-author-award-section",c:"knol-sidebar knol-author-page-links"});a.addElement({b:"h3",d:"Author's awards"});var b=this.ie.bt(),c=co(b,l,this.ie);if(c){a.addElement(c);this.J(a)}};var Xp=function(a){if(!a.Cg)return l;var b=a.bk();if(b.$g()&&b.hu(b.Ie()))return j;return l},Yp=function(a){if(!a.Cg)return l;var b=a.bk();if(b.$g()&&!b.hu(b.Ie()))return j;return l},Zp=function(a){if(!a.Cg)return l;var b=a.bk();if(b.$g()||b.$q==-1)return l;return j},$p=function(a){if(!a.Cg||a.bh)return l;var b=a.bk();if(b.$g()||b.$q==-2)return l;return j};var So=function(a){if(!a)e(new Error("License type is not specified."));this.Fq=a};E(So,tn);So.prototype.create=function(){var a=N({b:"div"});a.addElement(this.Jg());this.J(a)};So.prototype.qd=function(){tn.prototype.qd.call(this)};So.prototype.Rb=function(){Y("knol-license").parentNode.innerHTML=this.Jg().v()};
So.prototype.Jg=function(){var a=this.Fq.toString(),b=Xj("license/"+a+".png"),c=this.Fq.Uj(),d=this.Fq.K3(),f;return f=d?N({b:"div",id:"knol-license",children:[{b:"img",id:"knol-license-icon",alt:"",src:b,sprite:"main"},{b:"a",href:d,d:c}]}):N({b:"div",id:"knol-license",children:[{b:"img",id:"knol-license-icon",alt:"",src:b,sprite:"main"},{b:"span",d:c}]})};var aq=function(a,b){this.Yb(a,b)};E(aq,tn);q=aq.prototype;q.Yb=function(a,b){var c=a?a:dg();if(b){var d=parseInt(b,10);if(ka(d)&&d>0){var f=K(c).Fa(),g=parseInt(f.a_(d),10);if(ka(g)&&g>0)this.Qa=K({nodeId:c,version:g})}}else this.Qa=K(c);if(this.Qa){this.F=this.Qa.Fa();this.FJ=this.UC=this.Qa.Tj();this.OF=this.F.Al();this.$q=this.F.hg()}};q.gha=function(a){var b=this.FJ;this.FJ=a;return a-b};q.create=function(){this.J(this.createElement())};
q.Rb=function(){Y("knol-last-edit-version-info").innerHTML=this.createElement().v()};
q.createElement=function(){var a=this.Qa,b=this.Ie(),c=N({b:"div",id:"knol-last-edit-version-info"}),d=N({b:"div",c:"knol-last-edit-version-info-cls"});d.addElement("Version: ");d.addElement(b+"");c.addElement(d);var f=a.Nua(),g=N({b:"div",c:"knol-last-edit-version-info-cls"});g.addElement(" Last edited: ");g.addElement(" "+f);g.addElement(".");var h=N({b:"a",href:"#revisions",id:"knol-menu-item-revisions",c:"knol-author-toolbox-change",d:"Versions"});c.addElement(h);c.addElement(g);return c};
q.Gy=function(){return this.F.hg()==-2};q.$g=function(){return this.Ie()<this.OF};q.hu=function(a){return a?this.kBa(a):this.$q!=-1&&this.Ie()>this.lsa()};q.kBa=function(a){var b=this.F.r4();return!b.z(a)};q.lsa=function(){var a=this.OF,b=this.$q;if(b==-1)b=a;return b};q.Ie=function(){return this.UC};q.tM=function(){return this.FJ};q.w7=function(){return this.F.va()};var bq=function(a,b,c,d,f){this.gc=a;this.wi=b;this.Oa=c;this.xf=d;this.pi=f;this.Qa=K(this.gc);this.F=this.Qa.Fa();this.ib=this.F.va();this.Pb=this.F.n();this.H=K(this.Oa);var g=this.F.jf();this.yAa=this.H&&this.H.wb();this.zya=this.H&&(this.H.bg()||this.F.Th(this.Oa));this.Y5=this.H&&(this.H.bg()||this.F.Zb(this.Oa));this.pya=this.F.Nj(this.H,10)==4;this.A7=g=="moderated"||g=="managed";this.Zka=this.zya||this.Y5||this.A7||this.xf;this.fAa=(this.ve=this.Qa instanceof Vl)&&!!this.F.fx();this.dWa=
this.GUa=0;this.Wja=[];this.mya=this.H&&(this.yAa||this.F.Zb(this.Oa))};E(bq,tn);q=bq.prototype;q.create=function(){if(!this.fAa){var a=N({b:"div",id:"knol-author-toolbox-container"});a.addElement(this.Jg(j));this.J(a)}};q.Rb=function(a,b){var c=Y("knol-author-toolbox-container");if(c&&(a||this.Zka)){var d=V("knol.ui.AuthorToolbox.refreshElement",[this.gc,this.wi,this.Oa,this.xf,this.pi]);d.k(function(f){var g=f[0],h=f[1];c.innerHTML=g;b&&b.call(k,h)},this)}};
q.Gza=function(){this.Q={};this.Q.knol=this.Qa;this.Q.user=K(this.Oa);this.Q.Me=this.F;this.Q.o6=this.Q.Me.sN();this.Q.We=this.Q.Me.Th(this.Oa);this.Q.Cg=this.Q.Me.Zb(this.Oa);this.Q.bk=cq;if(this.Q.user&&this.Q.user.bg()){this.Q.We=j;this.Q.Cg=j}if(!dg()){Nf.knolId=this.gc;var a=this.F.n();Nf.knolMetaId=a;Nf.authorId=this.wi}};
q.Jg=function(a){var b=cq(),c=a||!this.Y5,d=a||!this.pya,f=N({b:"div",c:"knol-box knol-author-toolbox-box "+(c?"knol-author-toolbox-public":"knol-author-toolbox-private")});f.addElement(this.EPa(c));f.addElement(this.PPa(a));c||f.addElement(this.LPa());b.$g()||this.Aia(f,a);f.addElement(this.vPa(d));f.addElement(this.MPa(d));f.addElement(this.uPa(d));f.ka();f.addElement(this.BPa(d));f.ka();f.addElement(this.sPa(d));f.ka();var g=this.tPa(a||!this.mya);if(g){f.addElement(g);f.ka()}f.addElement(this.VU(c));
f.ka();return f};q.EPa=function(a){if(!a&&!this.ve){var b=cq();if(b.Ie()==1&&!b.$g()){var c=N({b:"div",c:"knol-toolbox-message"});c.addElement({b:"div",c:"knol-toolbox-message-title",d:this.ib?"Welcome to your new collection":"Welcome to your new knol"});return c}}return""};q.PPa=function(a){var b="";if(this.xf)if(req.user){if(!a){b=N({b:"div",c:"knol-author-toolbox-container",id:"knol-author-toolbox-response"});var c=k;c&&b.addElement(c)}}else tf(this.Qa.ea(undefined,req.args));return b};
q.Aia=function(a,b){b||this.A7&&this.Bia(a)};q.Bia=function(a){var b=this.F.Fva(this.Oa),c=this.F.Cva(this.Oa);if(b||!c.Ea()){var d=N({b:"div",c:"knol-author-toolbox-container"});d.addElement({b:"span",c:"knol-author-toolbox-item",d:"Your version is pending"});d.addElement({b:"a",c:"knol-author-toolbox-change",href:"#edit",d:"Edit"});a.addElement(d);a.ka();a.addElement(this.Zra())}};
var cq=function(){return G(dq)},eq=function(a,b){var c=cq(),d,f;if(c.$g())if(c.hu(b)){d="This old version is unpublished.";f=Xj("icons/not_published.png")}else{d="This old version is published.";f=Xj("icons/published.png")}else if(c.hu()){d=c.w7()?"This collection is unpublished.":"This knol is unpublished.";f=Xj("icons/not_published.png")}else{d=c.w7()?"This collection is published.":"This knol is published.";f=Xj("icons/published.png")}var g=[N({b:"img",src:f,sprite:"main",c:"knol-author-toolbox-icon"})],
h=[N({b:"span",id:"knol-author-toolbox-publish-sub",c:"knol-author-toolbox-view",d:d})];g.push(N({b:"div",children:h}));return g};q=bq.prototype;
q.vPa=function(a){if(this.F.va()){var b="",c="";switch(this.F.Yc()){case 2:b="Author-centric collection";c="icons/author-centric-collection.png";break;case 3:b="Shared-authorship collection";c="icons/shared-authorship-collection.png";break;case 4:b="Moderator-centric collection";c="icons/moderator-centric-collection.png";break;default:b="";break}if(b){var d=N({b:"div",c:"knol-author-toolbox-container3"}),f=N({b:"img",sprite:"main",c:"knol-toolbox-settings-icon",src:Xj(c),alt:""});d.addElement(f);
var g=N({b:"a",c:"knol-toolbox-settings-desc",d:b,href:Cn("si57lahl1w25/259")});d.addElement(g);a||d.ka();return d}}return N()};
q.MPa=function(a){var b=cq(),c=[],d,f;if(a)return N();c=eq(this.gc,this.pi);if(b.$g()){Xp(this.Q);var g=Yp(this.Q),h=N({b:"a",href:Zm,d:g?"Unpublish this version":"Publish this version",id:g?"knol-author-toolbox-unpublish-old":"knol-author-toolbox-publish-old"});f=[N({b:"tr"}),N({b:"tr"})];f[1].addElement({b:"td",valign:"center"});f[1].addElement({b:"td",valign:"center",children:[h]})}else{var i=Zp(this.Q),m=$p(this.Q);if(i){var n=N({b:"span",c:"knol-author-toolbox-change-btn",children:[{b:"input",
name:"publish",type:"button",value:"Publish",id:"knol-author-toolbox-publish-button"}]});c.push(n)}else if(m){h=N({b:"a",href:Zm,c:"knol-author-toolbox-change",d:this.JM(),id:"knol-author-toolbox-un-publish-change"});c.push(h)}f=[N({b:"tr"})]}for(var o=0;o<c.length;o++)f[0].addElement({b:"td",valign:"center",children:[c[o]]});d=c.length?N({b:"table",width:"100%",cellpadding:0,children:f}):N();var p=N({b:"div",children:[d],id:"knol-author-toolbox-publish"});p.ka();return p};
q.sPa=function(a){if(a)return N();var b=N({b:"div",c:"knol-author-toolbox-container"}),c=N({b:"img",c:"knol-toolbox-settings-icon",src:Xj("icons/settings.gif"),sprite:"indexed",alt:""});b.addElement(c);var d=N({b:"span",c:"knol-toolbox-settings-desc",d:this.ib?"You have permission to manage this collection":"You have permission to manage this knol"});b.addElement(d);var f=N({b:"a",href:"#manage",c:"knol-author-toolbox-change",d:"Settings",id:"knol-menu-item-manage"});b.addElement(f);return b};
q.uPa=function(a){var b=(new En(this.F.jf())).Jg(),c=N({b:"div",c:"knol-author-toolbox-container"});c.addElement(b);if(!a&&!this.ve){var d=this.Q.Cg&&!!this.Q.user&&!!this.Q.knol&&!(this.Q.knol instanceof Vl),f=N({b:"a",href:Zm,c:"knol-author-toolbox-change",d:this.JM(),disabled:!d,id:"knol-author-toolbox-collaboration-change"});c.addElement(f)}return c};
q.BPa=function(a){var b=(new So(this.Qa.En())).Jg(),c=N({b:"div",c:"knol-author-toolbox-container"});c.addElement(b);if(!a){var d=this.Q.We&&!!this.Q.user&&!!this.Q.knol,f=N({b:"a",href:Zm,c:"knol-author-toolbox-change",d:this.JM(),disabled:!d,id:"knol-author-toolbox-license-change"});c.addElement(f)}return c};
q.tPa=function(a){if(!this.F||this.F.d2())return k;var b=N({b:"div",c:"knol-author-toolbox-container"}),c=this.F;if(c){var d=c.DD();if(d)for(var f=d.j2(),g=0;g<f.length;g++){var h=f[g];this.Wja.push(h);var i=bo(h,j,a);i&&b.addElement(i)}var m=c.st();if(m)(i=co(m,j,bg()))&&b.addElement(i)}return b.children.length?b:k};q.VU=function(){var a=cq().createElement(),b=N({b:"div",c:"knol-author-toolbox-container2"});b.addElement(a);return b};
q.LPa=function(){return N({b:"div",id:"knol-publish-toolbox-c",style:"display: none"})};q.JM=function(){return"Change"};q.Zra=function(){return N({b:"div",c:"knol-author-toolbox-delimiter"})};var fq=function(){var a=dg();this.R6="knol-inline-announce-"+a;this.vy="knol-inline-announce-message-"+a;this.S6="knol-inline-announce-version-"+a};E(fq,tn);var gq=function(){return D("knol.ui.BannerAnnouncement")};q=fq.prototype;q.create=function(){var a=this.nma();this.wPa(a)};q.wPa=function(a){if(a.se()||1)this.J(a)};
q.nma=function(a){var b;gq();if(Y(this.vy))b=Y(this.vy).innerHTML;var c=N({b:"div",id:this.R6,c:"knol-inline-announce"});if(b||a){var d=N({b:"span",id:this.vy,c:"knol-inline-announce-message"});c.addElement(d);this.lja(c,b)}var f=bf("buildMessage");if(f&&b){var g="Version: "+f;c.addElement({b:"div",id:this.S6,c:"knol-inline-announce-version"});this.VU(c,g)}return c};
q.lja=function(a,b){if(b)if(!a||!a.children.length)gq().S("no "+this.vy+" to append the announcement");else if(a.children[0].text)a.children[0].text+=b;else a.children[0].text=b};q.VU=function(a,b){if(b)if(!a||a.children.length<2)gq().S("no "+this.S6+" to write the version");else a.children[1].text=b};q.Si=function(){return tn.prototype.Si.call(this)};var hq=function(){};E(hq,tn);hq.prototype.create=function(){var a=N({b:"div",id:"knol-chatlog",style:"display: none"});this.J(a);this.Ij(k,k,"knol.ui.client.ChatLog.init",k)};var iq=function(){};E(iq,tn);iq.prototype.K8=function(){return k};var jq=k,kq=function(){jq={};jq.yes="Yes";jq.no="No";jq.neutral="Neutral";jq[""]="No opinion"};jq||kq();var lq=jq[""];if(!lq){var mq=D("knol.ReviewTexts");mq.za('Missing text for ""')};var nq=function(){};E(nq,tn);nq.prototype.create=function(){var a=N({b:"div",id:"knol-collection-submission-reviews",style:"display: none"});this.J(a);this.Ij(k,k,"knol.ui.client.CollectionSubmissionReviews.init",k)};var oq=65,pq=67,qq=86,vq=88,wq=90,xq=function(a){if(a.altKey&&!a.ctrlKey||a.metaKey||a.keyCode>=112&&a.keyCode<=123)return l;switch(a.keyCode){case 18:case 16:case 17:case 19:case 20:case 27:case 33:case 34:case 36:case 35:case 37:case 39:case 38:case 40:case 45:case 144:case 93:case 44:return l;default:return j}},zq=function(a,b,c,d){if(!I&&!(ue&&Pe("525")))return j;if(I&&!c&&(b==17||b==18))return l;if(I&&d&&b==a)return l;switch(a){case 13:return j;case 27:return!ue}return yq(a)},yq=function(a){if(a>=
48&&a<=57)return j;if(a>=96&&a<=106)return j;if(a>=oq&&a<=wq)return j;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return j;default:return l}};var Aq,Bq=function(a,b){if(J||Aq){a.setAttribute("role",b);a.HVa=b}},Cq=function(a,b,c){if(J||Aq)a.setAttribute("aria-"+b,c)};var Dq=function(a){this.U=a};A(Dq,ni);var Eq=new ri(0,100);q=Dq.prototype;q.g=function(a,b,c,d,f){if(ia(b))for(var g=0;g<b.length;g++)this.g(a,b[g],c,d,f);else{var h=U(a,b,c||this,d||l,f||this.U||this);this.aGa(h)}return this};q.aGa=function(a){if(this.ob)this.ob[a]=j;else if(this.dj){this.ob=Eq.pf();this.ob[this.dj]=j;this.dj=k;this.ob[a]=j}else this.dj=a};
q.Db=function(a,b,c,d,f){if(this.dj||this.ob)if(ia(b))for(var g=0;g<b.length;g++)this.Db(a,b[g],c,d,f);else{var h;a:{var i=c||this,m=f||this.U||this,n=!!(d||l),o=Ni(a,b,n);if(o)for(var p=0;p<o.length;p++)if(o[p].lu==i&&o[p].jw==n&&o[p].pq==m){h=o[p];break a}h=k}if(h){var s=h.ga;Oi(s);if(this.ob)dc(this.ob,s);else if(this.dj==s)this.dj=k}}return this};q.jb=function(){if(this.ob){for(var a in this.ob){Oi(a);delete this.ob[a]}Eq.Re(this.ob);this.ob=k}else this.dj&&Oi(this.dj)};
q.o=function(){Dq.e.o.call(this);this.jb()};q.handleEvent=function(){e(Error("EventHandler.handleEvent not implemented"))};var Fq,Gq,Hq,Iq,Jq,Kq;Kq=Jq=Iq=Hq=Gq=Fq=l;var Lq=ne();if(Lq)if(Lq.indexOf("Firefox")!=-1)Fq=j;else if(Lq.indexOf("Camino")!=-1)Gq=j;else if(Lq.indexOf("iPhone")!=-1||Lq.indexOf("iPod")!=-1)Hq=j;else if(Lq.indexOf("Android")!=-1)Iq=j;else if(Lq.indexOf("Chrome")!=-1)Jq=j;else if(Lq.indexOf("Safari")!=-1)Kq=j;var Nq=function(a,b,c){y(b)?Mq(a,c,b):Vb(b,ta(Mq,a))},Mq=function(a,b,c){a.style[Oq(c)]=b},Pq=function(a,b){return a.style[Oq(b)]},Qq=function(a,b){var c=cm(a);if(c.defaultView&&c.defaultView.getComputedStyle){var d=c.defaultView.getComputedStyle(a,"");if(d)return d[b]}return k},Rq=function(a,b){return a.currentStyle?a.currentStyle[b]:k},Sq=function(a,b){return Qq(a,b)||Rq(a,b)||a.style[b]},Tq=function(a){return Sq(a,"position")},Uq=function(a,b,c){var d,f,g=J&&(ze||Ce)&&Pe("1.9");if(b instanceof
Ah){d=b.x;f=b.y}else{d=b;f=c}a.style.left=typeof d=="number"?(g?Math.round(d):d)+"px":d;a.style.top=typeof f=="number"?(g?Math.round(f):f)+"px":f},Vq=function(a){var b;b=a?a.nodeType==9?a:cm(a):document;if(I&&!dm(b).qF())return b.body;return b.documentElement},Wq=function(a){var b=a.getBoundingClientRect();if(I){var c=a.ownerDocument;b.left-=c.documentElement.clientLeft+c.body.clientLeft;b.top-=c.documentElement.clientTop+c.body.clientTop}return b},Xq=function(a){if(I)return a.offsetParent;for(var b=
cm(a),c=Sq(a,"position"),d=c=="fixed"||c=="absolute",f=a.parentNode;f&&f!=b;f=f.parentNode){c=Sq(f,"position");d=d&&c=="static"&&f!=b.documentElement&&f!=b.body;if(!d&&(f.scrollWidth>f.clientWidth||f.scrollHeight>f.clientHeight||c=="fixed"||c=="absolute"))return f}return k},$q=function(a){for(var b=new Ch(0,Infinity,Infinity,0),c=dm(a),d=c.V2(),f,g=a;g=Xq(g);)if((!I||g.clientWidth!=0)&&(g.scrollWidth!=g.clientWidth||g.scrollHeight!=g.clientHeight)&&Sq(g,"overflow")!="visible"){var h=Yq(g),i;var m=
g;if(J&&!Pe("1.9")){var n=parseFloat(Qq(m,"borderLeftWidth"));if(Zq(m)){var o=m.offsetWidth-m.clientWidth-n-parseFloat(Qq(m,"borderRightWidth"));n+=o}i=new Ah(n,parseFloat(Qq(m,"borderTopWidth")))}else i=new Ah(m.clientLeft,m.clientTop);h.x+=i.x;h.y+=i.y;b.top=Math.max(b.top,h.y);b.right=Math.min(b.right,h.x+g.clientWidth);b.bottom=Math.min(b.bottom,h.y+g.clientHeight);b.left=Math.max(b.left,h.x);f=f||g!=d}var p=d.scrollLeft,s=d.scrollTop;if(ue){b.left+=p;b.top+=s}else{b.left=Math.max(b.left,p);b.top=
Math.max(b.top,s)}if(!f||ue){b.right+=p;b.bottom+=s}var u=c.rwa();b.right=Math.min(b.right,p+u.width);b.bottom=Math.min(b.bottom,s+u.height);return b.top>=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:k},Yq=function(a){var b,c=cm(a),d=Sq(a,"position"),f=J&&c.getBoxObjectFor&&!a.getBoundingClientRect&&d=="absolute"&&(b=c.getBoxObjectFor(a))&&(b.screenX<0||b.screenY<0),g=new Ah(0,0),h=Vq(c);if(a==h)return g;if(a.getBoundingClientRect){b=Wq(a);var i=dm(c).Pp();g.x=b.left+i.x;g.y=b.top+i.y}else if(c.getBoxObjectFor&&
!f){b=c.getBoxObjectFor(a);var m=c.getBoxObjectFor(h);g.x=b.screenX-m.screenX;g.y=b.screenY-m.screenY}else{var n=a;do{g.x+=n.offsetLeft;g.y+=n.offsetTop;if(n!=a){g.x+=n.clientLeft||0;g.y+=n.clientTop||0}if(ue&&Tq(n)=="fixed"){g.x+=c.body.scrollLeft;g.y+=c.body.scrollTop;break}n=n.offsetParent}while(n&&n!=a);if(te||ue&&d=="absolute")g.y-=c.body.offsetTop;for(n=a;(n=Xq(n))&&n!=c.body&&n!=h;){g.x-=n.scrollLeft;if(!te||n.tagName!="TR")g.y-=n.scrollTop}}return g},br=function(a,b){var c=new Ah(0,0),d=pm(cm(a)),
f=a;do{var g=d==b?Yq(f):ar(f);c.x+=g.x;c.y+=g.y}while(d&&d!=b&&(f=d.frameElement)&&(d=d.parent));return c},cr=function(a,b){var c=ar(a),d=ar(b);return new Ah(c.x-d.x,c.y-d.y)},ar=function(a){var b=new Ah;if(a.nodeType==1)if(a.getBoundingClientRect){var c=Wq(a);b.x=c.left;b.y=c.top}else{var d=dm(a).Pp(),f=Yq(a);b.x=f.x-d.x;b.y=f.y-d.y}else{b.x=a.clientX;b.y=a.clientY}return b},dr=function(a,b,c){var d=Yq(a);if(b instanceof Ah){c=b.y;b=b.x}var f=b-d.x,g=c-d.y;Uq(a,a.offsetLeft+f,a.offsetTop+g)},er=
function(a,b,c){var d;if(b instanceof Eh){d=b.height;b=b.width}else{if(c==undefined)e(Error("missing height argument"));d=c}a.style.width=typeof b=="number"?Math.round(b)+"px":b;a.style.height=typeof d=="number"?Math.round(d)+"px":d},fr=function(a){var b=te&&!Pe("10");if(Sq(a,"display")!="none")return b?new Eh(a.offsetWidth||a.clientWidth,a.offsetHeight||a.clientHeight):new Eh(a.offsetWidth,a.offsetHeight);var c=a.style,d=c.display,f=c.visibility,g=c.position;c.visibility="hidden";c.position="absolute";
c.display="inline";var h,i;if(b){h=a.offsetWidth||a.clientWidth;i=a.offsetHeight||a.clientHeight}else{h=a.offsetWidth;i=a.offsetHeight}c.display=d;c.position=g;c.visibility=f;return new Eh(h,i)},gr=function(a){var b=Yq(a),c=fr(a);return new Gh(b.x,b.y,c.width,c.height)},hr={},Oq=function(a){return hr[a]||(hr[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))},ir=function(a,b){var c=a.style;if("opacity"in c)c.opacity=b;else if("MozOpacity"in c)c.MozOpacity=b;else if("filter"in
c)c.filter=b===""?"":"alpha(opacity="+b*100+")"},$=function(a,b){a.style.display=b?"":"none"},kr=function(a,b){var c=dm(b),d=k;if(I){d=c.K().createStyleSheet();jr(d,a)}else{var f=c.OD("head")[0];if(!f){var g=c.OD("body")[0];f=c.h("head");g.parentNode.insertBefore(f,g)}d=c.h("style");jr(d,a);c.appendChild(f,d)}return d},jr=function(a,b){if(I)a.cssText=b;else{var c=ue?"innerText":"innerHTML";a[c]=b}},Zq=function(a){return"rtl"==Sq(a,"direction")},lr=J?"MozUserSelect":ue?"WebkitUserSelect":k,mr=function(a){if(lr)return a.style[lr].toLowerCase()==
"none";else if(I||te)return a.getAttribute("unselectable")=="on";return l},nr=function(a,b,c){var d=!c?a.getElementsByTagName("*"):k;if(lr){var f=b?"none":"";a.style[lr]=f;if(d)for(var g=0,h;h=d[g];g++)h.style[lr]=f}else if(I||te){f=b?"on":"";a.setAttribute("unselectable",f);if(d)for(g=0;h=d[g];g++)h.setAttribute("unselectable",f)}},rr=function(a){var b=cm(a),c=I&&a.currentStyle;if(c&&dm(b).qF()&&c.width!="auto"&&c.height!="auto"&&!c.kUa){var d=or(a,c.width,"width","pixelWidth"),f=or(a,c.height,"height",
"pixelHeight");return new Eh(d,f)}else{var g=new Eh(a.offsetWidth,a.offsetHeight),h=pr(a,"padding"),i=qr(a);return new Eh(g.width-i.left-h.left-h.right-i.right,g.height-i.top-h.top-h.bottom-i.bottom)}},or=function(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);else{var f=a.style[c],g=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;var h=a.style[d];a.style[c]=f;a.runtimeStyle[c]=g;return h}},sr=function(a,b){return or(a,Rq(a,b),"left","pixelLeft")},pr=function(a,b){if(I){var c=
sr(a,b+"Left"),d=sr(a,b+"Right"),f=sr(a,b+"Top"),g=sr(a,b+"Bottom");return new Ch(f,d,g,c)}else{c=Qq(a,b+"Left");d=Qq(a,b+"Right");f=Qq(a,b+"Top");g=Qq(a,b+"Bottom");return new Ch(parseFloat(f),parseFloat(d),parseFloat(g),parseFloat(c))}},tr={thin:2,medium:4,thick:6},ur=function(a,b){if(Rq(a,b+"Style")=="none")return 0;var c=Rq(a,b+"Width");if(c in tr)return tr[c];return or(a,c,"left","pixelLeft")},qr=function(a){if(I){var b=ur(a,"borderLeft"),c=ur(a,"borderRight"),d=ur(a,"borderTop"),f=ur(a,"borderBottom");
return new Ch(d,c,f,b)}else{b=Qq(a,"borderLeftWidth");c=Qq(a,"borderRightWidth");d=Qq(a,"borderTopWidth");f=Qq(a,"borderBottomWidth");return new Ch(parseFloat(d),parseFloat(c),parseFloat(f),parseFloat(b))}},vr=function(a){var b=cm(a),c="";if(b.createTextRange){var d=b.body.createTextRange();d.moveToElementText(a);c=d.queryCommandValue("FontName")}if(!c){c=Sq(a,"fontFamily");if(te&&Be)c=c.replace(/ \[[^\]]*\]/,"")}var f=c.split(",");if(f.length>1)c=f[0];return Wa(c,"\"'")},wr=/[^\d]+$/,xr={cm:1,"in":1,
mm:1,pc:1,pt:1},yr={em:1,ex:1},zr=function(a){var b=Sq(a,"fontSize"),c,d=b.match(wr);c=d&&d[0]||k;if(b&&"px"==c)return parseInt(b,10);if(I)if(c in xr)return or(a,b,"left","pixelLeft");else if(a.parentNode&&a.parentNode.nodeType==1&&c in yr){var f=a.parentNode,g=Sq(f,"fontSize");return or(f,b==g?"1em":b,"left","pixelLeft")}var h=rm("span",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(h);b=h.offsetHeight;Z(h);return b},Ar=function(a){return a.style[I?
"styleFloat":"cssFloat"]||""};var Br=function(){};ea(Br);Br.prototype.oz=0;Br.prototype.Uta=function(){return":"+(this.oz++).toString(36)};Br.eb();var Dr=function(a){this.T=a||dm();this.Vz=Cr};A(Dr,Zi);Dr.prototype.aza=Br.eb();var Cr=k,Er=function(a,b){switch(a){case 1:return b?"disable":"enable";case 2:return b?"highlight":"unhighlight";case 4:return b?"activate":"deactivate";case 8:return b?"select":"unselect";case 16:return b?"check":"uncheck";case 32:return b?"focus":"blur";case 64:return b?"open":"close";default:}e(Error("Invalid component state"))};q=Dr.prototype;q.Da=k;q.T=k;q.kg=l;q.B=k;q.Vz=k;q.UQ=k;q.$a=k;q.Tc=k;q.Ai=k;q.ifa=l;
q.n=function(){return this.Da||(this.Da=this.aza.Uta())};q.ei=function(a){if(this.$a&&this.$a.Ai){dc(this.$a.Ai,this.Da);fc(this.$a.Ai,a,this)}this.Da=a};q.f=function(){return this.B};q.tf=function(a){this.B=a};q.Ka=function(){return this.Jt||(this.Jt=new Dq(this))};q.jA=function(a){if(this==a)e(Error("Unable to set parent component"));if(a&&this.$a&&this.Da&&this.$a.pn(this.Da)&&this.$a!=a)e(Error("Unable to set parent component"));this.$a=a;Dr.e.GH.call(this,a)};q.yb=function(){return this.$a};
q.GH=function(a){if(this.$a&&this.$a!=a)e(Error("Method not supported"));Dr.e.GH.call(this,a)};q.L=function(){return this.T};q.Nb=function(){return this.kg};q.h=function(){this.B=this.T.createElement("div")};q.Y=function(a){this.XG(a)};q.XG=function(a,b){if(this.kg)e(Error("Component already rendered"));this.B||this.h();a?a.insertBefore(this.B,b||k):this.T.K().body.appendChild(this.B);if(!this.$a||this.$a.Nb())this.Na()};
q.Ua=function(a){if(this.kg)e(Error("Component already rendered"));else if(a&&this.je(a)){this.ifa=j;if(!this.T||this.T.K()!=cm(a))this.T=dm(a);this.Wd(a);this.Na()}else e(Error("Invalid element to decorate"))};q.je=function(){return j};q.Wd=function(a){this.B=a};q.Na=function(){this.kg=j;this.qe(function(a){!a.Nb()&&a.f()&&a.Na()})};q.Xc=function(){this.qe(function(a){a.Nb()&&a.Xc()});this.Jt&&this.Jt.jb();this.kg=l};
q.o=function(){Dr.e.o.call(this);this.kg&&this.Xc();if(this.Jt){this.Jt.m();delete this.Jt}this.qe(function(a){a.m()});!this.ifa&&this.B&&Z(this.B);this.$a=this.UQ=this.B=this.Ai=this.Tc=k};q.xt=function(){return this.UQ};q.yKa=function(a){this.UQ=a};q.Uf=function(a,b){this.Xo(a,this.Vg(),b)};
q.Xo=function(a,b,c){if(a.kg&&(c||!this.kg))e(Error("Component already rendered"));if(b<0||b>this.Vg())e(Error("Child component index out of bounds"));if(!this.Ai||!this.Tc){this.Ai={};this.Tc=[]}if(a.yb()==this){var d=a.n();this.Ai[d]=a;Db(this.Tc,a)}else fc(this.Ai,a.n(),a);a.jA(this);Jb(this.Tc,b,0,a);if(a.kg&&this.kg&&a.yb()==this){var f=this.Ba();f.insertBefore(a.f(),f.childNodes[b+1]||k)}else if(c){this.B||this.h();var g=this.Ge(b+1);a.XG(this.Ba(),g?g.B:k)}else this.kg&&!a.kg&&a.B&&a.Na()};
q.Ba=function(){return this.B};q.de=function(){if(this.Vz==k)this.Vz=Zq(this.kg?this.B:this.T.K().body);return this.Vz};q.uo=function(a){if(this.kg)e(Error("Component already rendered"));this.Vz=a};q.se=function(){return!!this.Tc&&this.Tc.length!=0};q.Vg=function(){return this.Tc?this.Tc.length:0};q.pn=function(a){return this.Ai&&a?gc(this.Ai,a)||k:k};q.Ge=function(a){return this.Tc?this.Tc[a]||k:k};q.qe=function(a,b){this.Tc&&C(this.Tc,a,b)};q.Vt=function(a){return this.Tc&&a?rb(this.Tc,a):-1};
q.removeChild=function(a,b){if(a){var c=y(a)?a:a.n();a=this.pn(c);if(c&&a){dc(this.Ai,c);Db(this.Tc,a);if(b){a.Xc();a.B&&Z(a.B)}a.jA(k)}}if(!a)e(Error("Child is not in parent component"));return a};q.SG=function(a,b){return this.removeChild(this.Ge(a),b)};q.removeChildren=function(a){for(;this.se();)this.SG(0,a)};var Fr=function(){},Gr;ea(Fr);var Hr=function(a,b){var c=new a;c.W=function(){return b};return c};q=Fr.prototype;q.Gh=function(){return undefined};q.h=function(a){return a.L().h("div",this.dg(a).join(" "),a.getContent())};q.Ba=function(a){return a};q.iD=function(a,b,c){var d=a.f?a.f():a;if(d)if(I&&!Pe("7")){var f=this.yM(X.z(d),b);f.push(b);var g=c?X.add:X.remove;ta(g,d).apply(k,f)}else X.Ub(d,b,c)};q.c1=function(a,b,c){this.iD(a,b,c)};q.je=function(){return j};
q.Ua=function(a,b){b.id&&a.ei(b.id);var c=this.Ba(b);c&&c.firstChild?a.Tu(c.firstChild.nextSibling?Fb(c.childNodes):c.firstChild):a.Tu(k);var d=0,f=this.W(),g=this.hq(),h=l,i=l,m=l,n=X.z(b);C(n,function(s){if(!h&&s==f){h=j;if(g==f)i=j}else if(!i&&s==g)i=j;else d|=this.hO(s)},this);a.Fca(d);if(!h){n.push(f);if(g==f)i=j}i||n.push(g);var o=a.g3();o&&n.push.apply(n,o);if(I&&!Pe("7")){var p=this.yM(n);if(p.length>0){n.push.apply(n,p);m=j}}if(!h||!i||o||m)X.G(b,n.join(" "));return b};
q.lg=function(a){a.de()&&this.uo(a.f(),j);a.X()&&this.xg(a,a.oa())};q.Iba=function(a){if(J){var b=this.Gh();b&&Bq(a,b)}};q.cA=function(a,b){nr(a,!b,!I&&!te)};q.uo=function(a,b){this.iD(a,this.hq()+"-rtl",b)};q.fk=function(a){var b;if(a.qg(32)&&(b=a.Zd()))return Sm(b);return l};q.xg=function(a,b){var c;if(a.qg(32)&&(c=a.Zd())){if(!b&&a.r7()){try{c.blur()}catch(d){}a.r7()&&a.Ph(k)}Sm(c)!=b&&Tm(c,b)}};q.M=function(a,b){$(a,b)};
q.Bb=function(a,b,c){var d=a.f();if(d){var f=this.bx(b);f&&this.iD(a,f,c);this.tv(d,b,c)}};q.tv=function(a,b,c){if(J){Gr||(Gr=mc(1,"disabled",4,"pressed",8,"selected",16,"checked",64,"expanded"));var d=Gr[b];d&&Cq(a,d,c)}};q.Nd=function(a,b){var c=this.Ba(a);if(c){xm(c);if(b)if(y(b))Lm(c,b);else{function d(f){if(f){var g=cm(c);c.appendChild(y(f)?g.createTextNode(f):f)}}if(ia(b))C(b,d);else ja(b)&&!("nodeType"in b)?C(Fb(b),d):d(b)}}};q.Zd=function(a){return a.f()};q.W=function(){return"goog-control"};
q.Osa=function(){return[]};q.hq=function(){return this.W()};q.dg=function(a){var b=this.W(),c=[b],d=this.hq();d!=b&&c.push(d);var f=this.v2(a.Cc());f&&c.push.apply(c,f);var g=a.g3();g&&c.push.apply(c,g);I&&!Pe("7")&&c.push.apply(c,this.yM(c));return c};q.yM=function(a,b){var c=[];if(b)a=a.concat([b]);C(this.Osa(),function(d){if(wb(d,ta(zb,a))&&(!b||zb(d,b)))c.push(d.join("_"))});return c};q.v2=function(a){if(a){for(var b=[],c=1;a;c<<=1)if(a&c){b.push(this.bx(c));a&=~c}return b}return k};
q.bx=function(a){this.wC||this.m_();return this.wC[a]};q.hO=function(a){this.Rda||this.$ma();var b=parseInt(this.Rda[a],10);return isNaN(b)?0:b};q.m_=function(){var a=this.hq();this.wC=mc(1,a+"-disabled",2,a+"-hover",4,a+"-active",8,a+"-selected",16,a+"-checked",32,a+"-focused",64,a+"-open")};q.$ma=function(){this.wC||this.m_();this.Rda=ic(this.wC)};var Ir=function(){};A(Ir,Fr);ea(Ir);q=Ir.prototype;q.Gh=function(){return"button"};q.tv=function(a,b,c){if(J)b==16?Cq(a,"pressed",c):Ir.e.tv.call(this,a,b,c)};q.h=function(a){var b=Ir.e.h.call(this,a),c=a.ig();c&&this.rh(b,c);var d=a.ca();d&&this.Sa(b,d);a.qg(16)&&this.tv(b,16,l);return b};q.Ua=function(a,b){b=Ir.e.Ua.call(this,a,b);a.xLa(this.ca(b));a.QH(this.ig(b));a.qg(16)&&this.tv(b,16,l);return b};q.ca=da;q.Sa=da;q.ig=function(a){return a.title};q.rh=function(a,b){if(a)a.title=b||""};q.W=function(){return"goog-button"};var Jr=function(a){a&&this.attach(a)};A(Jr,Zi);q=Jr.prototype;q.B=k;q.FF=k;q.hQ=k;q.GF=k;q.Uy=-1;q.iu=-1;
var Kr={"3":13,"12":144,"63232":38,"63233":40,"63234":37,"63235":39,"63236":112,"63237":113,"63238":114,"63239":115,"63240":116,"63241":117,"63242":118,"63243":119,"63244":120,"63245":121,"63246":122,"63247":123,"63248":44,"63272":46,"63273":36,"63275":35,"63276":33,"63277":34,"63289":144,"63302":45},Lr={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},Mr={61:187,
59:186},Nr=I||ue&&Pe("525");q=Jr.prototype;q.Qh=function(a){if(Nr&&!zq(a.keyCode,this.Uy,a.shiftKey,a.ctrlKey))this.handleEvent(a);else this.iu=J&&a.keyCode in Mr?Mr[a.keyCode]:a.keyCode};q.Bxa=function(){this.iu=this.Uy=-1};
q.handleEvent=function(a){var b=a.Tg(),c,d;if(I&&a.type=="keypress"){c=this.iu;d=c!=13&&c!=27?b.keyCode:0}else if(ue&&a.type=="keypress"){c=this.iu;d=b.charCode>=0&&b.charCode<63232&&yq(c)?b.charCode:0}else if(te){c=this.iu;d=yq(c)?b.keyCode:0}else{c=b.keyCode||this.iu;d=b.charCode||0;if(ze&&d==63&&!c)c=191}var f=c,g=b.keyIdentifier;if(c)if(c>=63232&&c in Kr)f=Kr[c];else{if(c==25&&a.shiftKey)f=9}else if(g&&g in Lr)f=Lr[g];var h=f==this.Uy;this.Uy=f;var i=new Or(f,d,h,b);try{this.dispatchEvent(i)}finally{i.m()}};
q.attach=function(a){this.GF&&this.detach();this.B=a;this.FF=U(this.B,"keypress",this);this.hQ=U(this.B,"keydown",this.Qh,l,this);this.GF=U(this.B,"keyup",this.Bxa,l,this)};q.detach=function(){if(this.FF){Oi(this.FF);Oi(this.hQ);Oi(this.GF);this.GF=this.hQ=this.FF=k}this.B=k;this.Uy=-1};q.o=function(){Jr.e.o.call(this);this.detach()};var Or=function(a,b,c,d){d&&this.Yb(d,undefined);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c};A(Or,pi);var Qr=function(a){for(var b,c;a;){b=pa(a);if(c=Pr[b])break;a=a.e?a.e.constructor:k}if(c)return la(c.eb)?c.eb():new c;return k},Sr=function(a,b){if(!a)e(Error("Invalid class name "+a));if(!la(b))e(Error("Invalid decorator function "+b));Rr[a]=b},Pr={},Rr={};var Tr=function(a,b,c){Dr.call(this,c);this.Ga=b||Qr(this.constructor);this.Tu(a)};A(Tr,Dr);q=Tr.prototype;q.zc=k;q.Kb=0;q.KA=39;q.hC=255;q.gI=0;q.pd=j;q.Lj=k;q.PO=j;q.lY=l;q.vAa=function(){return this.PO};q.YS=function(a){this.Nb()&&a!=this.PO&&this.e1(a);this.PO=a};q.Zd=function(){return this.Ga.Zd(this)};q.gE=function(){return this.uc||(this.uc=new Jr)};q.Gd=function(){return this.Ga};q.fT=function(a){if(this.Nb())e(Error("Component already rendered"));this.f()&&this.tf(k);this.Ga=a};q.g3=function(){return this.Lj};
q.Hm=function(a){if(a){if(this.Lj)zb(this.Lj,a)||this.Lj.push(a);else this.Lj=[a];this.Ga.c1(this,a,j)}};q.DGa=function(a){if(a&&this.Lj){Db(this.Lj,a);if(this.Lj.length==0)this.Lj=k;this.Ga.c1(this,a,l)}};q.iD=function(a,b){b?this.Hm(a):this.DGa(a)};q.h=function(){var a=this.Ga.h(this);this.tf(a);this.Ga.Iba(a);this.EP()||this.Ga.cA(a,l);this.oa()||this.Ga.M(a,l)};q.Ba=function(){return this.Ga.Ba(this.f())};q.je=function(a){return this.Ga.je(a)};
q.Wd=function(a){a=this.Ga.Ua(this,a);this.tf(a);this.Ga.Iba(a);this.EP()||this.Ga.cA(a,l);this.pd=a.style.display!="none"};q.Na=function(){Tr.e.Na.call(this);this.Ga.lg(this);if(this.KA&-2){this.vAa()&&this.e1(j);if(this.qg(32)){var a=this.Zd();if(a){var b=this.gE();b.attach(a);this.Ka().g(b,"key",this.Id).g(a,"focus",this.dy).g(a,"blur",this.Ph)}}}};
q.e1=function(a){var b=this.Ka(),c=this.f();if(a){b.g(c,"mouseover",this.Ol).g(c,"mousedown",this.Nl).g(c,"mouseup",this.oq).g(c,"mouseout",this.nq);I&&b.g(c,"dblclick",this.s5)}else{b.Db(c,"mouseover",this.Ol).Db(c,"mousedown",this.Nl).Db(c,"mouseup",this.oq).Db(c,"mouseout",this.nq);I&&b.Db(c,"dblclick",this.s5)}};q.Xc=function(){Tr.e.Xc.call(this);this.uc&&this.uc.detach();this.oa()&&this.X()&&this.Ga.xg(this,l)};
q.o=function(){Tr.e.o.call(this);if(this.uc){this.uc.m();delete this.uc}delete this.Ga;this.Lj=this.zc=k};q.getContent=function(){return this.zc};q.Nd=function(a){this.Ga.Nd(this.f(),a);this.Tu(a)};q.Tu=function(a){this.zc=a};q.Jp=function(){var a=this.getContent();if(!a||y(a))return a;var b=ia(a)?tb(a,Vm).join(""):Vm(a);return b&&Ha(b)};q.jr=function(a){this.Nd(a)};q.uo=function(a){Tr.e.uo.call(this,a);var b=this.f();b&&this.Ga.uo(b,a)};q.EP=function(){return this.lY};
q.cA=function(a){this.lY=a;var b=this.f();b&&this.Ga.cA(b,a)};q.oa=function(){return this.pd};q.M=function(a,b){if(b||this.pd!=a&&this.dispatchEvent(a?"show":"hide")){var c=this.f();c&&this.Ga.M(c,a);this.X()&&this.Ga.xg(this,a);this.pd=a;return j}return l};q.X=function(){return!this.aj(1)};q.IAa=function(){var a=this.yb();return!!a&&typeof a.X=="function"&&!a.X()};q.aa=function(a){if(!this.IAa()&&this.zq(1,!a)){if(!a){this.setActive(l);this.yg(l)}this.oa()&&this.Ga.xg(this,a);this.Bb(1,!a)}};
q.yg=function(a){this.zq(2,a)&&this.Bb(2,a)};q.ce=function(){return this.aj(4)};q.setActive=function(a){this.zq(4,a)&&this.Bb(4,a)};q.Ly=function(){return this.aj(8)};q.Rf=function(a){this.zq(8,a)&&this.Bb(8,a)};q.By=function(){return this.aj(16)};q.wg=function(a){this.zq(16,a)&&this.Bb(16,a)};q.r7=function(){return this.aj(32)};q.$ba=function(a){this.zq(32,a)&&this.Bb(32,a)};q.isOpen=function(){return this.aj(64)};q.Oc=function(a){this.zq(64,a)&&this.Bb(64,a)};q.Cc=function(){return this.Kb};
q.aj=function(a){return!!(this.Kb&a)};q.Bb=function(a,b){if(this.qg(a)&&b!=this.aj(a)){this.Ga.Bb(this,a,b);this.Kb=b?this.Kb|a:this.Kb&~a}};q.Fca=function(a){this.Kb=a};q.qg=function(a){return!!(this.KA&a)};q.vf=function(a,b){if(this.Nb()&&this.aj(a)&&!b)e(Error("Component already rendered"));!b&&this.aj(a)&&this.Bb(a,l);this.KA=b?this.KA|a:this.KA&~a};q.Zg=function(a){return!!(this.hC&a)&&this.qg(a)};q.lJa=function(a,b){this.hC=b?this.hC|a:this.hC&~a};
q.RS=function(a,b){this.gI=b?this.gI|a:this.gI&~a};q.zq=function(a,b){return this.qg(a)&&this.aj(a)!=b&&(!(this.gI&a)||this.dispatchEvent(Er(a,b)))&&!this.rF()};q.Ol=function(a){a.relatedTarget&&!Fm(this.f(),a.relatedTarget)&&this.dispatchEvent("enter")&&this.X()&&this.Zg(2)&&this.yg(j)};q.nq=function(a){if(a.relatedTarget&&!Fm(this.f(),a.relatedTarget)&&this.dispatchEvent("leave")){this.Zg(4)&&this.setActive(l);this.Zg(2)&&this.yg(l)}};
q.Nl=function(a){if(this.X()){this.Zg(2)&&this.yg(j);if(a.zy(0)){this.Zg(4)&&this.setActive(j);this.Ga.fk(this)&&this.Zd().focus()}}!this.EP()&&a.zy(0)&&a.preventDefault()};q.oq=function(a){if(this.X()){this.Zg(2)&&this.yg(j);this.ce()&&this.bi(a)&&this.Zg(4)&&this.setActive(l)}};q.s5=function(a){this.X()&&this.bi(a)};
q.bi=function(a){this.Zg(16)&&this.wg(!this.By());this.Zg(8)&&this.Rf(j);this.Zg(64)&&this.Oc(!this.isOpen());var b=new oi("action",this);if(a)for(var c=["altKey","ctrlKey","metaKey","shiftKey"],d,f=0;d=c[f];f++)b[d]=a[d];return this.dispatchEvent(b)};q.dy=function(){this.Zg(32)&&this.$ba(j)};q.Ph=function(){this.Zg(4)&&this.setActive(l);this.Zg(32)&&this.$ba(l)};q.Id=function(a){if(this.oa()&&this.X()&&this.Ml(a)){a.preventDefault();a.stopPropagation();return j}return l};
q.Ml=function(a){return a.keyCode==13&&this.bi(a)};var Ur=Tr,Vr=Fr;if(!la(Ur))e(Error("Invalid component class "+Ur));if(!la(Vr))e(Error("Invalid renderer class "+Vr));var Wr=pa(Ur);Pr[Wr]=Vr;Sr("goog-control",function(){return new Tr(k)});var Xr=function(){};A(Xr,Ir);ea(Xr);q=Xr.prototype;q.Gh=function(){return undefined};q.h=function(a){this.Lca(a);return a.L().h("button",{"class":this.dg(a).join(" "),disabled:!a.X(),title:a.ig()||"",value:a.ca()||""},a.Jp()||"")};q.je=function(a){return a.tagName=="BUTTON"||a.tagName=="INPUT"&&(a.type=="button"||a.type=="submit"||a.type=="reset")};q.Ua=function(a,b){this.Lca(a);b.disabled&&X.add(b,this.bx(1));return Xr.e.Ua.call(this,a,b)};q.lg=function(a){a.Ka().g(a.f(),"click",a.bi)};q.cA=da;
q.uo=da;q.fk=function(a){return a.X()};q.xg=da;q.Bb=function(a,b,c){Xr.e.Bb.call(this,a,b,c);var d=a.f();if(d&&b==1)d.disabled=c};q.ca=function(a){return a.value};q.Sa=function(a,b){if(a)a.value=b};q.tv=da;q.Lca=function(a){a.YS(l);a.lJa(255,l);a.vf(32,l)};var Yr=function(a,b,c){Tr.call(this,a,b||Xr.eb(),c)};A(Yr,Tr);q=Yr.prototype;q.ca=function(){return this.xc};q.Sa=function(a){this.xc=a;this.Gd().Sa(this.f(),a)};q.xLa=function(a){this.xc=a};q.ig=function(){return this.Er};q.rh=function(a){this.Er=a;this.Gd().rh(this.f(),a)};q.QH=function(a){this.Er=a};q.o=function(){Yr.e.o.call(this);delete this.xc;delete this.Er};q.Na=function(){Yr.e.Na.call(this);if(this.qg(32)){var a=this.Zd();a&&this.Ka().g(a,"keyup",this.Ml)}};
q.Ml=function(a){if(a.keyCode==13&&a.type=="key"||a.keyCode==32&&a.type=="keyup")return this.bi(a);return a.keyCode==32};Sr("goog-button",function(){return new Yr(k)});var Zr=function(){};A(Zr,Ir);ea(Zr);q=Zr.prototype;q.h=function(a){var b=this.dg(a),c={"class":"goog-inline-block "+b.join(" "),title:a.ig()||""};return a.L().h("div",c,this.rs(a.getContent(),a.L()))};q.Ba=function(a){return a&&a.firstChild.firstChild};q.rs=function(a,b){return b.h("div","goog-inline-block "+(this.W()+"-outer-box"),b.h("div","goog-inline-block "+(this.W()+"-inner-box"),a))};q.je=function(a){return a.tagName=="DIV"};
q.nya=function(a,b){var c=a.L().m3(b);if(c&&c.className.indexOf(this.W()+"-outer-box")!=-1){var d=a.L().m3(c);if(d&&d.className.indexOf(this.W()+"-inner-box")!=-1)return j}return l};q.Ua=function(a,b){$r(b,j);$r(b,l);this.nya(a,b)||b.appendChild(this.rs(b.childNodes,a.L()));X.add(b,"goog-inline-block",this.W());return Zr.e.Ua.call(this,a,b)};q.W=function(){return"goog-custom-button"};
var $r=function(a,b){if(a)for(var c=b?a.firstChild:a.lastChild,d;c&&c.parentNode==a;){d=b?c.nextSibling:c.previousSibling;if(c.nodeType==3){var f=c.nodeValue;if(Ha(f)=="")a.removeChild(c);else{c.nodeValue=b?Ia(f):f.replace(/[\s\xa0]+$/,"");break}}else break;c=d}};var as=function(a,b,c){Yr.call(this,a,b||Zr.eb(),c)};A(as,Yr);Sr("goog-custom-button",function(){return new as(k)});var No=function(){};E(No,tn);No.prototype.qd=function(){tn.prototype.qd.call(this)};No.prototype.create=function(){this.J(this.Gu())};No.prototype.Gu=function(){var a=N({b:"div",id:"knol-create-invite",c:"knol-invite-box goog-inline-block"}),b=N({b:"div",c:"knol-invite-box-middle goog-inline-block"});b.addElement({b:"a",id:"knol-create-knol",href:bk("system/services/createKnol"),rel:"nofollow",d:"Write a knol"});a.addElement(b);return a};
var bs=function(a){var b="knol-create-knol",c=Y(b);if(c){var d=c.firstChild&&c.firstChild.nodeName=="DIV";if(!a&&!d){var f=c.innerHTML;c.innerHTML="";c.style.textDecoration="none";var g=new as(f);g.Y(c)}return c}else return k};var cs=function(){};E(cs,No);
cs.prototype.Gu=function(){var a=N({b:"a",id:"knol-invite-kr",href:bk("system/services/createKnol"),rel:"nofollow",c:"knol-invite-box-kr"}),b=Xj("icons/write-a-knol.gif"),c=N({b:"img",src:b,sprite:"indexed",id:"knol-write-a-knol-kr-img"});a.addElement(c);var d=Xj("localized/kr/icons/write-a-knol-text.gif"),f=N({b:"img",src:d,sprite:"indexed",id:"knol-write-a-knol-text-kr-img"});a.addElement(f);a.addElement({b:"div",id:"knol-write-a-knol-desc-kr",d:"Share your knowledge in Knol"});return a};var ds=function(a){var b=fg();if(b&&b instanceof Vl)return"";var c=b.Fa();if(c.va())return"";if(!c.SD()){var d=N({b:"div",id:"knol-unsol-review-disabled",d:"Unsolicited reviews are disabled."});return d}var f;f=a?"Be the first to review this knol":"Review This Knol";var g=N({b:"div",id:"knol-review-invite"}),h=rf("/k/knol/system/services/createReview?knolId="+dg());g.addElement({b:"a",id:"knol-create-review",target:"_blank",rel:"nofollow",href:h,d:f});return g};var es=function(){};E(es,tn);var fs="knol-diff-";q=es.prototype;q.K8=function(a,b,c){var d=N();if(b.length>0){var f=N({b:"div",c:"knol-content",id:"references",children:[N({b:"h3",d:"References"}),N({b:"ol",id:"knol-references",children:c?this.I8(b,c):this.yQ(b)})]});d.addElement(f);d.ka()}return d};q.yQ=function(a){var b=[];if(a.length>0)for(var c=0;c<a.length;c++)b.push(this.H8(a[c]));return b};
q.I8=function(a,b){if(!b||b.Ea())return this.yQ(a);var c=[],d=[];uc(b,function(m){if(m.ha()==0)d[m.ZM()]=m.Np()},this);if(a.length>0)for(var f=0;f<a.length;f++){var g=a[f],h=b.z(g.n()),i=f+1;if(h&&h.ha()==2)c.push(this.nCa(g,i));else h&&h.ha()==1?c.push(this.oCa(h.mn(),h.Np(),i)):c.push(this.H8(g,i));d[f]&&c.push(this.qCa(d[f],i))}return c};q.H8=function(a,b){var c=gs(a),d=N({b:"li",d:c}),f=hs(a);if(f){c.length>0&&d.N();d.addElement(f)}r(b)&&d.fd(rn("value",b.toString()));return d};
q.oCa=function(a,b,c){var d,f=[],g=gs(b),h=gs(a);if(g!=h){(g=g?N({b:"del",c:fs+c,d:g}):k)&&f.push(g);(h=h?N({b:"ins",c:fs+c,d:h}):k)&&f.push(h);d=N({b:"li",children:f})}else d=h?N({b:"li",d:h}):N({b:"li"});if(b.ea()!=a.ea()||b.Oj()!=a.Oj()){var i=hs(b,0,c),m=hs(a,2,c);if(i||m){if(f.length!=1)d.addElement({b:"br"});else if(h)d.addElement(is());else g&&d.addElement(N({b:"br",c:"knol-hidden-del-format"}));i&&d.addElement(i);m&&d.addElement(m)}}else{f.length>0&&d.addElement({b:"br"});d.addElement(hs(a))}d.fd(rn("value",
c.toString()));return d};q.nCa=function(a,b){return this.J8(a,2,b)};q.qCa=function(a,b){return this.J8(a,0,b)};q.J8=function(a,b,c){var d=gs(a),f=b==2?"ins":"del",g=N({b:"li",c:fs+c+" knol-hidden-"+f+"-format",children:[{b:f,c:fs+c,d:d}]}),h=hs(a,b,c);if(h){d.length>0&&g.addElement(is());g.addElement(h)}g.fd(rn("value",c.toString()));return g};
var gs=function(a){var b=a.Ff();return of(b,2000)},hs=function(a,b,c){if(a.ea()){var d=new Ed(a.ea()),f=d.toString();if(d.my()&&d.Hl()!="http"&&d.Hl()!="https")f="";var g=a.Oj();g=of(g,2000);if(f&&g)if(r(b)){var h=b==2?"ins":"del";return N({c:fs+c+" knol-"+h+"-format",b:"a",href:f,children:[{b:h,c:fs+c,d:g}]})}else return N({b:"a",href:f,d:g})}else return k},is=function(){return N({b:"br",c:"knol-hidden-ins-format"})};var js=function(){};E(js,tn);js.prototype.k7=function(){return j};js.prototype.create=function(){};js.prototype.M7=function(){return j};var ks=function(){};E(ks,tn);q=ks.prototype;q.qd=function(){tn.prototype.qd.call(this)};q.create=function(){this.J(this.Gu())};q.Gu=function(){var a=N({b:"div",id:"knol-edit-invite",c:"knol-invite-box goog-inline-block"}),b=N({b:"div",style:"display: none",id:"knol-edit-invite-middle",c:"knol-invite-box-middle goog-inline-block"});if(dg()){var c=P(),d=c&&c.va();b.addElement({b:"a",id:"knol-edit-knol",href:"#edit",d:d?"Edit this collection":"Edit this knol"})}a.addElement(b);return a};
q.uT=function(a){var b=Y("knol-edit-invite-middle");if(b)b.style.display=a?"":"none"};q.Yma=function(){this.uT(j);var a="knol-edit-knol",b=Y(a);if(b){var c=b.firstChild&&b.firstChild.nodeName=="DIV";if(!c){var d=b.innerHTML;b.innerHTML="";b.style.textDecoration="none";var f=new as(d);f.Y(b)}return b}else return k};var ls=function(){};E(ls,tn);ls.prototype.create=function(){this.write(N({b:"div",id:"knol-history"}).v())};var ms=function(){};E(ms,tn);ms.prototype.create=function(){this.J(this.Y())};ms.prototype.Y=function(){var a=N({b:"div",id:"knol-display-languages",style:"display: none"});this.$m(k,k,"knol.ui.client.LanguageOptions",[]);return a};var ns=function(a){this.Oa=a||""};E(ns,tn);q=ns.prototype;q.create=function(){D("knol.ui.MyKnolsList");if(this.Oa){var a=K(this.Oa);if(a){this.nHa(a);var b=N({b:"div",id:"knol-my-knols-knol-list"});b.addElement(N({b:"div",id:"knol-my-knols-heading",d:Ze("My Knols")}));this.fS(a,b);var c=Ze("See more of my knols")+" &#xBB;",d=bk("Search"),f=N({b:"div",id:"knol-my-knols-see-more",children:[{b:"a",d:c,href:d}]});b.addElement(f);this.J(b)}else this.J(N({b:"div",id:"knol-my-knols-no-user-space",d:Ze("Your knol space has not been created yet. Please write a knol to create one.")}))}};
q.nHa=function(a){var b=a.Wi(),c=a.Sj(),d=a.Wp(),f=N({b:"div",id:"knol-my-knols-profile"});f.addElement({b:"img",id:"knol-my-knols-profile-photo",src:d});var g=N({b:"div",id:"knol-my-knols-profile-desc"});g.addElement({b:"a",id:"knol-my-knols-profile-name",href:c,d:b});for(var h=a.rn(),i=0;i<h.length;i++){var m=h[i];if(m){m=of(m,250);g.addElement({b:"div",c:"knol-my-knols-profile-disambiguation",d:m})}}g.addElement(N({b:"div",id:"knol-author-profile-button"}));f.addElement(g);f.ka();this.J(f)};
q.fS=function(a,b){for(var c=a.gua().zu().Xb(),d=c.length,f=0,g=0;f<d&&g<5;){var h=this.t_(c[f]);if(h){b.addElement(h);g++}f++}if(g<5){c=a.Yqa().zu().Xb();d=c.length;var i=5-g;for(g=f=0;f<d&&g<i;){if(h=this.t_(c[f])){b.addElement(h);g++}f++}}};
q.t_=function(a){D("knol.ui.MyKnolsList");var b=K(a);if(!b)return k;var c=b.$c(),d=c.Mh(),f=c.ea(),g=c.n(),h=c.ix(),i=c.Xj(),m=b.$M(),n=m?m.ma():0,o=N({b:"div",c:"knol-my-knols-knol"}),p={b:"div",c:"knol-my-knols-title-wrapper",children:[{b:"a",href:f,d:d,id:"knol-my-knols-title-"+g,c:"knol-my-knols-title"}]};o.addElement({b:"div",children:[k,p,{b:"div",c:"knol-clearer-div"}]});var s=N({b:"div",c:"knol-my-knols-bubble-content"});s.addElement({b:"span",c:"knol-my-knols-date",d:String(h)});s.addElement({b:"img",
c:"knol-my-knols-comments-icon",sprite:"indexed",src:Xj("localized/kr/icons/comments.gif")});var u=n+" comment(s)";s.addElement({b:"span",c:"knol-my-knols-num-comments",d:u});s.ka();if(i){i=of(i,125);s.addElement({b:"div",c:"knol-my-knols-knol-snippet",d:i})}o.addElement(this.gma(s,g));return o};
q.gma=function(a,b){var c=N({b:"div",id:"knol-my-knols-bubble-"+b,c:"knol-my-knols-bubble"});c.addElement({b:"div",c:"knol-my-knols-bubble-hor-line1"});c.addElement({b:"div",c:"knol-my-knols-bubble-hor-line2"});c.addElement({b:"div",c:"knol-my-knols-bubble-hor-line3"});c.addElement({b:"div",c:"knol-my-knols-bubble-hor-line3"});c.addElement(a);c.addElement({b:"div",c:"knol-my-knols-bubble-hor-line3"});c.addElement({b:"div",c:"knol-my-knols-bubble-hor-line3"});c.addElement({b:"div",c:"knol-my-knols-bubble-hor-line2"});
c.addElement({b:"div",c:"knol-my-knols-bubble-hor-line1"});for(var d=9;d>=0;d--)c.addElement({b:"div",style:"width: "+d+"px; position: relative; left: 20px; top: -1px; height: 1px; background-color: #fff; overflow: hidden; border-left: 1px solid #b7cfe2; border-right: 1px solid #b7cfe2;"});c.addElement({b:"div",style:"width: 1px; position: relative; left: 20px; top: -1px; overflow: hidden; height: 1px; background-color: #b7cfe2;"});return c};q.Si=function(){return""};var os=function(){Sp.call(this);this.pz="There are no popular authors now."};E(os,Sp);var ps=function(){return D("knol.ui.PopularAuthorList")};
os.prototype.AM=function(a,b){var c=ps();b=(b||"0")+"";for(var d=3-b.length,f=0;f<d;++f)b="0"+b;var g="/authorrank_"+a+"_"+b+"_OFFLINE",h;var i=g,m=ps(),n=jot.pages[i];if(n){var o=n.popularAuthorList;if(o)h=o;else{m.S("popularAuthorList property does not exist");h=k}}else{m.S(i+" node does not exist");h=k}if(!h)return k;var p;try{p=wd(h)}catch(s){c.S("JSON-parsing of the property popularAuthorList failed");return k}var u=p.popularAuthorListObject;if(!u){c.S("popularAuthorListObject field does not exist");
return k}return u};
os.prototype.y1=function(a){var b=ps(),c={},d=a.id||"",f=a.rank_difference||0;f=Number(f);var g;if(f>=10000){g=2;f="New!"}else if(f==0)g=0;else if(f>0)g=1;else{g=-1;f=Math.abs(f)}c.rankDifference=f;c.rankDiffType=g;var h=K(d);if(!h){b.S("Author does not exist. node id = "+d);return k}if(h.Vw())return k;if(h.Yj())return k;c.bioUri=h.Sj();var i=h.Xi();if(wa(i,"/c/photos/private/"))i=window.manifest.serverBase+"/static/images/NoPicture.gif";c.thumbnailUrl=i;c.name=h.Wi();c.occupation=Ze(h.bua());c.location_=
Ze(h.kE());return c};var qs=function(){this.lfa="knol-list";this.pz="No items in this list."};E(qs,tn);q=qs.prototype;q.create=function(){this.J(this.gS(0))};q.gS=function(a){var b=N({b:"div",c:"knol-list-wrapper",id:this.lfa}),c=og()||"en",d=this.hHa(this.A3(c,a),b,15);if(d==0)b.addElement(N({b:"div",c:"knol-list-infomessage",d:this.pz}));else{var f=this.waa(a);f&&b.addElement(f)}return b};q.waa=function(){return k};q.A3=function(){return[]};
q.z1=function(){return{thumbnailUrl:"",knolUri:"",title:"",authorName:"",editTime:"",snippet:"",numDiscussion:0,knolId:""}};q.hHa=function(a,b,c){if(!a)return 0;for(var d=0,f=0;f<a.length;f++){if(c)if(d>=c)break;this.iHa(a[f],b)&&++d}return d};
q.iHa=function(a,b){var c=this.z1(a);if(!c)return l;var d=N({b:"div",c:"knol-list-entry"});if(c.thumbnailUrl){var f=N({b:"table",c:"knol-list-thumbtable",children:[{b:"tr",children:[{b:"td",children:[{b:"a",href:c.knolUri,children:[{b:"img",c:"knol-list-thumbnail",src:c.thumbnailUrl}]}]}]}]}),g=N({b:"span",c:"knol-list-thumbframe"});g.addElement(f);d.addElement(g)}var h=N({b:"span",c:"knol-list-rcolumn"+(c.thumbnailUrl?"":"knol-list-nothumb")}),i=N({b:"div"});i.addElement(N({b:"a",href:c.knolUri,
children:[{b:"span",c:"knol-list-title",d:c.title}]}));i.addElement(N({b:"span",c:"knol-list-author-separator",d:"- "}));i.addElement(N({b:"span",c:"knol-list-author",d:c.authorName}));var m,n=c.editTime;n instanceof Date||(n=new Date(n));var o=(new Date).getTime();m=o-n.getTime()>86400000;i.addElement(N({b:"span",c:"knol-list-edittime-separator",d:" - ",style:m?"display: none":""}));m?i.addElement(N({b:"span",c:"knol-list-editdate",d:String(c.editTime),style:"display: none"})):i.addElement(N({b:"span",
c:"knol-list-reltime",d:yf(c.editTime)}));h.addElement(i);var p=N({b:"div"});p.addElement(N({b:"span",c:"knol-list-snippet",d:c.snippet}));h.addElement(p);var s=N({b:"div"});s.addElement(N({b:"img",sprite:"indexed",src:Xj("localized/kr/icons/comments.gif")}));var u=c.numDiscussion+" comments";s.addElement(N({b:"span",c:"knol-list-comments",d:u}));s.addElement(k);h.addElement(s);d.addElement(h);d.addElement(N({b:"div",c:"knol-list-end"}));b.addElement(d);return j};var rs=function(){qs.call(this);this.lfa="knol-popular-knol-list";this.pz="There are no popular knols now."};E(rs,qs);var ss=function(){return D("knol.ui.PopularKnolList")};rs.prototype.create=function(){qs.prototype.create.call(this)};var ts=function(a){var b=ss(),c;ii({webspace:"knol",path:a});c=k;if(!c){b.S(a+" node does not exist");return k}var d=c.popularKnolList;if(!d){b.S("popularKnolList property does not exist");return k}return d};
rs.prototype.waa=function(a){var b,c=og()||"en",d="/knolrank_"+c+"_OFFLINE";b=parseInt(ts(d),10);if(b<=1)return k;var f=N({b:"div",c:"knol-list-popular-pagenav-c"});a>0?f.addElement(N({b:"a",c:"knol-list-popular-pagenav",id:"knol-list-popular-pagenav-prev",href:"javascript:void(0)",d:"Prev"})):f.addElement(N({b:"span",c:"knol-list-popular-pagenav",id:"knol-list-popular-pagenav-prev",d:"Prev"}));for(var g=1;g<=b;++g)g==a+1?f.addElement(N({b:"span",c:"knol-list-popular-pagenav",id:"knol-list-popular-pagenav-"+
g,d:g})):f.addElement(N({b:"a",c:"knol-list-popular-pagenav",id:"knol-list-popular-pagenav-"+g,href:"javascript:void(0)",d:g}));a<b-1?f.addElement(N({b:"a",c:"knol-list-popular-pagenav",id:"knol-list-popular-pagenav-next",href:"javascript:void(0)",d:"Next"})):f.addElement(N({b:"span",c:"knol-list-popular-pagenav",id:"knol-list-popular-pagenav-next",d:"Next"}));return f};
rs.prototype.A3=function(a,b){var c=ss();b=(b||"0")+"";for(var d=3-b.length,f=0;f<d;++f)b="0"+b;var g="/knolrank_"+a+"_"+b+"_OFFLINE",h=ts(g);if(!h)return k;var i;try{i=wd(h)}catch(m){c.S("JSON-parsing of the property popularKnolList failed");return k}var n=i.popularKnolListObject;if(!n){c.S("popularKnolListObject field does not exist");return k}return n};
rs.prototype.z1=function(a){var b=ss(),c={},d=a.knol_id||"";c.knolId=d;var f=a.rank_difference||0;f=Number(f);c.thumbnailUrl=a.thumbnail_url||"";var g=K(d);if(!g){b.S("Knol does not exist. knol id = "+d);return k}var h=g.Fa();if(!h){b.S("KnolMeta does not exist. knol id = "+d);return k}var i=K(h.Zc());if(!i){b.S("Author does not exist. knol id = "+d);return k}if(!h.jK())return k;c.title=g.Mh()||"";c.editTime=g.ix()||"";var m=g.Xj()||"";m=Ze(m);m=kf(m,105);c.snippet=m;var n=h.$M();c.numDiscussion=
n?n.ma():0;c.knolUri=g.ea();var o=Xa(i.Wi(),100),p=h.Kh(),s=h.Zw(),u=p?p.ma():0,v=s?s.ma():0;if(u+v>1){var w=o+" et al.";o=w}c.authorName=o;return c};var us=function(){};E(us,tn);q=us.prototype;
q.create=function(){var a=N({b:"div",id:"knol-home-kr-welcome-outer"}),b=N({b:"div",id:"knol-home-kr-welcome-c"}),c=N({b:"div",id:"knol-home-kr-welcome"});c.addElement({b:"h1",d:"Share your knowledge in Knol, a new knowledge sharing service."});c.addElement({b:"span",d:"Knol makes it easy for you to write, share and manage knols from anywhere using a web browser.<br />We store the knols and make them searchable."});b.addElement(c);b.addElement((new cs).Gu());b.ka();a.addElement(b);this.J(a);var d=
"knol-home-kr",f=N({b:"div",id:d});f.ka();var g=N({b:"div"});f.addElement(g);var h=N({b:"div",id:"knol-home-kr-right-pane"});h.addElement(this.fS());h.addElement(this.pHa());g.addElement(h);var i=N({b:"div",id:"knol-home-kr-left-pane"});i.addElement(this.WGa());i.addElement(this.qHa());g.addElement(i);g.ka();this.$m("knol.ui.client.HomePageKr",[],k,k);this.J(f)};
q.WGa=function(){var a="knol.KrAnnouncement"+qg(),b=K(a);if(!b)return k;var c=b.nE();if(!c)return k;var d=b.Fa();if(!d){D("knol.ui.HomePageKr").S("KnolMeta for KrAnnouncement knol does not exist. knol id = "+a);return k}if(d.hg()==-2)return k;var f=N({b:"div",id:"knol-home-kr-announcement",c:"knol-home-kr-components"}),g=N({b:"div",c:"knol-home-kr-components-title"}),h=N({b:"div",id:"knol-home-kr-announcement-body",c:"knol-home-kr-components-body"});g.addElement(N({b:"h1",d:"Announcement"}));h.addElement(c);
f.addElement(g);f.addElement(h);return f};
q.qHa=function(){var a=N({b:"div",id:"knol-home-kr-knol-list",c:"knol-home-kr-components"}),b=N({b:"div",c:"knol-home-kr-components-title"}),c=N({b:"div",c:"knol-home-kr-components-body",id:"knol-popular-knol-list"});b.addElement(N({b:"h1",d:"Popular Knols"}));var d=N({id:"knol-home-kr-tab-c-popular-knols",b:"div",d:G(rs).Si()}),f=N({id:"knol-home-kr-tab-c-recent-knols",b:"div",style:"display: none"});c.addElement(d);c.addElement(f);a.addElement(b);a.addElement(c);return a};
q.pHa=function(){var a=N({b:"div",id:"knol-home-kr-author-list",c:"knol-home-kr-components"}),b=N({b:"div",c:"knol-home-kr-components-title"}),c=N({b:"div",c:"knol-home-kr-components-body",id:"knol-popular-author-list"});b.addElement(N({b:"h1",d:"Popular Authors"}));c.addElement(N({b:"div",d:G(os).Si()}));a.addElement(b);a.addElement(c);return a};
q.fS=function(){var a=N({b:"div",c:"knol-home-kr-components"}),b=N({b:"div",c:"knol-home-kr-components-body",id:"knol-my-knols-list-id"});b.addElement(N({b:"div",d:(new ns).Si()}));a.addElement(b);return a};var vs=function(){};E(vs,tn);var ws=["US","KR"],xs=function(){var a=Af();if(a&&zb(ws,a))return j;return l},ys=["KR"],zs=function(){var a=Af();if(a&&zb(ys,a))return j;return l};vs.prototype.qd=function(){tn.prototype.qd.call(this)};vs.prototype.create=function(){D("knol.ui.IdvCheck");var a=N({b:"div",id:"idv-real-name-badge",c:"knol-box"}),b=Q(),c=b.u3();"author="+Ue(b);if(c){a.addElement({b:"span",d:"Real Name"});a.N()}this.J(a)};
var As=function(a){return a?a.replace(/^\s+/,"").replace(/\s+$/,""):a},Bs=function(a){return a?a.replace(/\s+/g,""):a},Cs=function(a,b,c,d,f,g,h,i,m,n,o,p,s,u,v,w,x){D("knol.ui.IdvCheck");a=As(a);b=As(b);c=As(c);d=As(d);f=As(f);g=As(g);h=Bs(h);i=As(i);m=As(m);n=As(n);o=As(o);p=As(p);s=As(s);u=As(u);var B=/^[\w \t#.,'-]+$/;if(!a)return"First name is required";if(!B.test(a))return"First name has invalid characters";if(!b)return"Last name is required";if(!B.test(b))return"Last name has invalid characters";
if(!m)return"Address must have street";if(!B.test(m))return"Street has invalid characters";if(!n)return"Address must have city";if(!B.test(n))return"City has invalid characters";if(!o)return"Address must have state";if(!B.test(o))return"State has invalid characters";if(!p)return"Address must have zip code";var H=/^\d{5}$/;if(!H.test(p))return"Zip code must have five digits";if(!s)return"Address must have country";if(!B.test(s))return"Country name has invalid characters";if(!u)return"Invalid input";
if(u.toLowerCase()=="creditcard"){if(w)return"Invalid input";if(!v)return"Invalid input";if(!d)return"Credit card number required";if(x){var F=/^\d{13,19}$/;if(!F.test(d))return"Credit card number can only contain 13 to 19 digits"}}else if(u.toLowerCase()=="clicktocall"){if(!h)return"Phone number is required";var M=/^\+?[\d()-]+$/;if(!M.test(h))return"Phone number contains invalid characters.";if(!i)return"Invalid input";if(!H.test(i))return"Invalid input"}else if(u.toLowerCase()=="ssn"){if(w)return"Invalid input";
if(!v)return"Invalid input";if(!d)return"Social Security number is required";if(x){var W=/^\d{9,9}$/,ra=d;if(!W.test(ra))return"Social security number must contain exactly 9 digits."}}else return"Invalid input";return""};var Ds={};Ds.ae=function(){return D("knol.ui.IdvCheckKr")};
Ds.Cm=function(a,b,c,d,f){Ds.ae();a=As(a);b=As(b);c=Bs(c);d=Bs(d);f=As(f);if(!a)return"First name is required";if(!b)return"Last name is required";if(!f)return"Invalid input";if(f.toLowerCase()=="koreanrrn"){if(!c||!d)return"RRN (Resident Registration Number) required";var g=/^\d{6}$/;if(!g.test(c))return"The first part of an RRN (Resident Registration Number) must be exactly 6 digits";var h=/^\d{7}$/;if(!h.test(d))return'The second part (after "dash") of an RRN (Resident Registration Number) must be exactly 7 digits'}else return"Invalid input";return""};
Ds.BUa=function(){return k};var Es=function(){};E(Es,tn);Es.prototype.create=function(){var a=N({b:"div",id:"knol-scores-container",style:"display: none"});this.J(a);this.Ij(k,k,"knol.ui.client.KnolScores.init",[])};var Fs=function(a){var b=N(),c=0,d=P();if(!d)return b;var f=d.Yc();if(a==2){if(f==0)return b;c=d.ON()}else if(a==3){if(!d.Iy())return b;c=d.W4()}else c=d.b4();var g="",h="",i="";if(a==2){h="submissions";var m=Xj("icons/collect.png");i=N({b:"img",src:m,sprite:"main",c:"knol-suggestions-top-icon"});if(c==0)g="There are no pending collection submissions";else if(c==1){var n="There is "+("<b>"+("1"+("</b>"+(" "+('<a href="#'+h+'">pending collection submission</a>')))));g=n}else{var o="There are "+("<b>"+
(c+("</b>"+(" "+('<a href="#'+h+'">pending collection submissions</a>')))));g=o}}else if(a==3){h="subsuggestions";i=N({b:"img",sprite:"main",c:"knol-suggestions-top-icon",src:Xj("icons/closed_collaboration.png")});if(c==0)return b;else if(c==1){var p="There is "+("<b>"+("1"+("</b>"+(" knol in this collection with "+('<a href="#'+h+'">pending edits</a>')))));g=p}else{var s="There are "+("<b>"+(c+("</b>"+(" knols in this collection with "+('<a href="#'+h+'">pending edits</a>')))));g=s}}else{h="edit-suggestions";
i=N({b:"img",sprite:"main",c:"knol-suggestions-top-icon",src:Xj("icons/moderated_collaboration.png")});if(c==0){if(f!=0)return b;g="There are no pending text suggestions from your readers"}else if(c==1){var u="There are "+('<a href="#'+h+'">pending text suggestions</a> from <b>1</b> reader');g=u}else{var v="There are "+('<a href="#'+h+'">'+("pending text suggestions"+("</a>"+(" from "+("<b>"+(c+"</b> readers"))))));g=v}}b=N({b:"div"});i?b.addElement(i):b.addElement(N({b:"span",c:"knol-suggestions-top-icon"}));
b.addElement(N({b:"span",c:"knol-suggestions-top-docked",d:g}));b.ka();return b};var Gs=function(a,b){this.H=b;so.call(this,a,Ij.HB,"knol.ui.PendingDiscussionView")};E(Gs,to);Gs.prototype.Wh="knol-pending-comment-list";Gs.prototype.un=function(){return Hs(this.lb,this.H)};var Hs=function(a,b){if(!a||!b)return l;if(!a.nt())return l;var c=b.n(),d=a.l4();if(d.Qi()){if(b.wb()||a.Zb(c))return j}else return l;return vc(d.Xb(),function(f){var g=K(f);return g.BM()==c})};
Gs.prototype.ofa=function(){if(this.cb){var a=this.lb,b;if(a.Zb(this.H.n())||this.H.wb()){var c="Comments awaiting your approval: "+a.l4().ma();b=c}else b="Your comments awaiting approval";this.J(N({b:"h3",id:"knol-pending-comment-header",d:b}))}};Gs.prototype.No=function(){this.write("</div>");if(this.cb&&this.lb&&this.lb.$M().Qi()){this.J(N({b:"br"}));this.J(N({b:"h3",id:"knol-approved-comment-header",d:"Approved comments"}))}};Gs.prototype.rfa=function(){};
Gs.prototype.oa=function(a){var b=uo(a);if(!b)return l;var c=this.H||Q();if(!c)return l;if(c.wb())return j;if(!this.lb)return l;if(this.lb.Zb(c.n()))return j;var d=K(a.nodeId);if(c.n()==d.BM())return j;return l};var Is=function(a,b,c,d){if(b){this.Oa=b;this.H=K(b)}this.GL=a||k;this.Sja=c;this.hG=d};E(Is,tn);Is.prototype.Ev=function(a){if(this.iM)this.iM=l;else{var b="&#160;|&#160;";a?a.addElement(b):this.write(b)}};
Is.prototype.create=function(){this.iM=j;var a=this.H&&this.H[Ep.AJ]=="UserStub",b="knol-header-menu-login",c=this.GL||"",d="knol-header-menu-email",f=d+"-c";this.write('<span id="'+f+'"><span id="'+d+'" class="'+b+'">'+c+"</span>");if(this.H&&!a)if(this.H.bg())this.J(N({b:"sup",d:"Admin",c:"knol-header-new-link-superscript"}));else this.H.wb()&&this.J(N({b:"sup",d:"Limited-Admin",c:"knol-header-new-link-superscript"}));this.write("</span>");if(this.hG&&this.hG.length==2){var g=this.hG[0],h=this.hG[1];
if(g!=h){var i=N({b:"a",href:g,d:Ze(h),id:"knol-header-new-link",c:"knol-header-new-link knol-custom-bg-link"});this.Ev();this.J(i);this.J(N({b:"sup",d:"New!",c:"knol-header-new-link-superscript",title:h}));this.Ev()}}else this.iM=l;var m=this.ara(),n=this.H&&!a?this.H.Sj()+"#knols":"",o=this.Oa?"":"display: none",p=N({b:"span",style:o,id:"knol-header-my-profile-link-c"});if(n){p.addElement({b:"a",c:"knol-custom-bg-link",href:n,d:"My knols",id:"knol-header-my-profile-link"});this.Ev(p)}if(n||a){var s=
bk("Settings")+(m?"?back="+m:"");p.addElement({b:"a",href:s,id:"knol-header-prefs-link",c:"knol-custom-bg-link",d:"Preferences"});this.Ev(p)}this.J(p);var u,v=df()||"";u=xa(v,"/")?v.substring(0,v.length-1):v;this.JI(u,"Home",k,k,"knol-custom-bg-link");this.Ev();var w=bk("knol/Help")+sg();this.JI(w,"Help",k,"knol-header-menu-help","knol-custom-bg-link");this.Ev();var x=this.Oa?"":"display: none",B=new N({b:"span",id:"knol-signout-link",style:x});B.addElement(Js());this.J(B);if(!this.Oa){var H=sf(),
F=N({b:"a",href:H,c:"knol-custom-bg-link",d:"Sign in",id:"knol-signin-link"});this.J(F)}this.write("&#160;")};Is.prototype.ara=function(){var a=(new Ed(document.location.href)).Hf("back"),b=dg();return b||a||this.Sja};var Js=function(){var a,b=P(),c=b&&-1==b.hg();a=c||pg()=="user"?lg():mg();return new N({b:"a",c:"knol-custom-bg-link",href:a,d:"Sign out"})};var Ks=function(){};E(Ks,tn);q=Ks.prototype;q.Yb=function(a,b,c,d,f,g){this.AC="knol.ui.client.PropertyEditor";this.Y0=a;this.Goa=b;this.yp=c;this.M$=d;this.OFa=f;this.nodeId=g;this.Qw=this.B7=l;this.Kq=1000};
q.create=function(){var a=P(),b=a&&a.va(),c=this.ca(),d=c?"":' style="display: none"',f=b?'Click on the "Edit this collection" button to switch to edit mode and change this field.':'Click on the "Edit this knol" button to switch to edit mode and change this field.',g,h;var i=P();h=!i||!i.getLanguage()?k:i.getLanguage();g=h?tg(h):k;var m="knol-inline-editor knol-content-"+(g?"rtl":"ltr");this.write('<div class="'+m+'"><'+this.Y0+' id="'+this.yp+'" class="'+this.Goa+'" title="'+Ze(f)+'" '+d+">");this.Qw&&
this.write(xf());if(c){var n=of(c,this.Kq);if(this.Jy())n=n.replace(/\n/g,"<br />");this.write(n)}else this.write("&#160;");this.write("</"+this.Y0+">");if(this.uAa())if(this.Jy())this.write('<textarea id="'+this.yp+'-input" style="display: none"></textarea>');else{var o=this.Kq?' maxlength="'+this.Kq+'"':"";this.write('<input id="'+this.yp+'-input" type="text" style="display: none"'+o+" />")}this.Qw&&this.write("<!-- google_ad_section_end --\>");this.write("</div>");this.X()&&this.Ij(k,k,"knol.getSingleton("+
this.AC+").initOnClient",[])};q.X=function(){var a=this.Fn();if(a instanceof vf)a=a.Fa();var b=a instanceof S?a.Nj(Q(),20):gh(Q(),a,20);return!!cg()&&b!=1&&b!=5};q.Jy=function(){return this.B7};q.ca=function(){return this.Fn().l(this.M$)};q.Fn=function(){if(!this.node)this.node=K(this.nodeId);return this.node};
var Ls=function(){var a="",b=P();a=b&&b.Yc()!=0?"Collection title":"Title";Ks.prototype.Yb.call(this,"h1","knol-title","knol-title","title",a,dg());this.AC="knol.ui.client.TitleEditor";this.Kq=250;this.Qw=j};E(Ls,Ks);Ls.prototype.X=function(){if(this.Fn()instanceof Vl)return l;return Ls.e.X.call(this)};var Ms=function(){Ks.prototype.Yb.call(this,"h2","knol-subtitle","knol-subtitle","subtitle","Subtitle",dg());this.AC="knol.ui.client.SubtitleEditor";this.Kq=250;this.Qw=j};E(Ms,Ks);
Ms.prototype.X=function(){if(this.Fn()instanceof Vl){var a=this.Fn().Fa();if(a&&a.fx())return l}return Ms.e.X.call(this)};var Ns=function(){Ks.prototype.Yb.call(this,"h2","knol-abstract","knol-abstract","abstract","Summary",dg());this.AC="knol.ui.client.AbstractEditor";this.B7=j;this.Kq=3000;this.Qw=j};E(Ns,Ks);Ns.prototype.create=function(){if(!(this.Fn()instanceof Vl))return Ns.e.create.call(this)};Ns.prototype.X=function(){if(this.Fn()instanceof Vl)return l;return Ns.e.X.call(this)};var Os=function(a){if(!a.Jx().Ea()){this.pS=a;a=K(a.Jx().Qi())}so.call(this,a,Ij.Eg,"knol.ui.ReviewList");this.mca()};E(Os,so);q=Os.prototype;q.f9=0;q.Dv=function(){this.write('<div id="'+this.xb()+'" class="knol-box knol-sidebar-box">');this.pS?this.vfa("More reviews"):this.vfa("Reviews");this.write("<ul>")};q.No=function(){this.write("</ul>");this.write("</div>");var a=ds(this.Pd==0);if(a){this.Ij(k,k,"knol.ui.client.CreateReview.swapReviewLink",["knol-create-review"]);this.write(a.v())}};
q.xb=function(){return"knol-reviews"};q.oa=function(a){if(this.pS)if(a.fg()==this.pS.n())return l;var b=K(a.nodeId);if(!b)return l;if(b.hg()==-2)return l;if(b.MP())return l;var c=P();if(c&&c.h7(b.Zc()))return l;var d=b.$c();if(!(d instanceof Vl)||d.oAa())return l;return j};
q.Mr=function(a){var b=a.Dn(),c=K(a.fg()),d=c.$c(),f=of(d.Et(),22)||of(d.Xj(),22)||"Untitled Review",g=a.px(),h=of(a.ox(),20),i=a.Zc().Xi(),m=Jo(this.xb(),d),n=N({b:"li"}),o=N({b:"div",c:"knol-review"});o.addElement({b:"div",c:"g-section g-tpl-75-25",children:[{b:"div",c:"g-unit g-first",children:[{b:"div",c:"knol-review-author-image",children:[{b:"img",src:i,alt:"",id:"knol-review-image-"+a.nodeId}]},{b:"div",c:"knol-review-mid",children:[{b:"div",children:[{b:"a",href:b,d:f,c:"knol-review-snippet"}]},
{b:"div",c:"knol-review-author",children:[{b:"span",d:"by "},{b:"a",href:g,d:h}]}]}]},{b:"div",c:"g-unit",children:[{b:"div",id:m,c:"knol-review-zipit"}]}]});o.ka();n.addElement(o);this.J(n);if(!pf.test(a.nodeId)){var p=V("knol.ui.AuthorList.getThumbnailItemFromId",[a.Zc().n()]);p.k(z(function(s){var u=Y("knol-review-image-"+a.nodeId);if(u&&s)u.src=s},this))}};var Ps=function(){};E(Ps,tn);Ps.prototype.create=function(){this.write(N({b:"div",style:"display: none",id:"knol-revision-compare"}).v())};var Qs=function(a){if(!ha(a))return"linked to this page";var b="linked to this page ("+(a+")");return b},Rs=function(a){if(!ha(a))return"collected this page";var b="collected this page ("+(a+")");return b},Ss=function(a){if(!ha(a))return"used this page as a template";var b="used this page as a template ("+(a+")");return b},Ts=[{name:"option-link",lC:{back:j,link:j,language:"0"},Je:Qs},{name:"option-collect",lC:{back:j,collections:"on",language:"0"},Je:Rs},{name:"option-template",lC:{back:j,templateId:j,
language:"0"},Je:Ss}],Us=function(a,b){if(!a||!b)return k;var c=Xb(a.lC,function(d){return typeof d=="boolean"?b:d});return c};var Vs=function(){};E(Vs,tn);Vs.prototype.create=function(){var a=N({b:"div",id:"knol-sub-collection-suggestions",style:"display: none"}),b="Pending edits for knols in this collection: "+fg().Mh();a.addElement({b:"h2",c:"knol-menu-heading-h2",d:b});a.addElement({b:"div",c:"knol-menu-heading-backlink-container",children:[{b:"a",c:"knol-menu-heading-backlink",href:"#view",d:"&#xAB; Back to viewing the collection"}]});a.N();a.addElement({b:"div",id:"knol-sub-collection-suggestions-list"});this.J(a)};var Ws=function(){};E(Ws,tn);
Ws.prototype.create=function(){var a=N({b:"div",id:"knol-submissions",style:"display: none"}),b="Submissions for the collection: "+fg().Mh();a.addElement({b:"h2",c:"knol-menu-heading-h2",d:b});a.addElement({b:"div",c:"knol-menu-heading-backlink-container",children:[{b:"a",c:"knol-menu-heading-backlink",href:"#view",d:"&#xAB; Back to viewing the collection"}]});if(P().Iy()){var c;c=P().hg()!=-2?"Note: any knols or collections not already published will be published upon acceptance into this collection.":"Note: Once this collection is published, any accepted knol or collection not already published will be published.";
a.addElement({b:"div",style:"display: none",id:"knol-menu-heading-extra-note",d:c})}a.addElement({b:"div",id:"knol-submissions-list"});a.addElement({b:"div",id:"knol-submissions-empty",style:"display: none",d:"There are no submissions for this collection."});this.J(a)};var Xs=function(){};E(Xs,tn);var Ys={truncated:0,nItems:0,dispLevel:0,nonemptyLevels:[],htmlCode:""};Xs.prototype.un=function(){if(this.gsa("embed.toc")=="false")return l;var a=P();if(!a.RD())return l;return j};Xs.prototype.create=function(){if(this.un()){var a=fg();this.J(this.BCa(a.nE(),0))}};Xs.prototype.BCa=function(){return k};var Zs=function(a,b,c,d,f){Dr.call(this,d);this.ab=new Ed(f||"http://chart.apis.google.com/chart");this.ML="";this.pp=[];this.NS=[];this.wH=[];this.XPa=[];this.LBa=[];this.SHa=[];this.jDa=[];this.hDa={};this.fDa={};this.iDa={};this.gDa={};this.fi(a);this.zg(b,c);this.gz=this.LAa()?0:Infinity};A(Zs,Dr);q=Zs.prototype;q.NOa=2048;q.ywa=0;q.zwa=0;q.aG=-Infinity;q.Ve=k;q.MBa=k;q.H9=k;
q.h=function(){var a=this.getSize();this.tf(this.L().h("img",{src:this.tO(),"class":"goog-serverchart-image",width:a[0],height:a[1]}))};q.Wd=function(a){a.src=this.tO();this.tf(a)};q.tO=function(){this.Pla();return this.ab};q.fi=function(a){this.ab.$("cht",a)};q.ha=function(){return this.ab.Hf("cht")};q.zg=function(a,b){var c=[a||300,b||150].join("x");this.ab.$("chs",c)};q.getSize=function(){var a=this.ab.Hf("chs");return a.split("x")};q.wKa=function(a){this.gz=a};
q.LAa=function(){var a=this.ha();return a=="p"||a=="p3"||a=="pc"};q.isMap=function(){var a=this.ha();return a=="t"||a=="tuss"||a=="twoc"};q.$=function(a,b){this.ab.$(a,b)};q.removeParameter=function(a){this.ab.removeParameter(a)};q.Sf=function(a){this.Ve=a;this.ab.$("chtt",this.Ve.replace(/\n/g,"|"))};
q.Eha=function(a,b,c){var d=this.zja(a);if(d<this.gz)this.gz=d;var f=this.yja(a);if(f>this.aG)this.aG=f;if(r(c)){if(this.wH.length<this.pp.length)e(Error("Cannot start adding legends text after first element."));this.wH.push(c);this.ab.$("chdl",this.wH.join("|"))}this.pp.push(a);this.NS.push(b);this.ab.$("chco",this.NS.join(","))};q.getData=function(a){if(r(a))return this.pp[a];return this.pp};q.Pla=function(){var a;if(this.ML!="")a=this.uK(this.ML);else(a=this.uK("e"))||(a=this.uK("s"));a||this.dispatchEvent(new $s(this.ab.toString()))};
q.uK=function(a){for(var b=[],c=0,d=this.pp.length;c<d;++c)b[c]=this.pra(this.pp[c],this.gz,this.aG,a);var f=a=="t"?"|":",";b=b.join(f);var g;g=this.H9==k?cb(a,":",b):cb(a,this.H9,":",b);this.ab.$("chd",g);return this.ab.toString().length<this.NOa};var at=Math.pow(64,2)-1;q=Zs.prototype;
q.Gra=function(a,b,c,d){if(b>c)e(Error("minValue is greater than maxValue"));var f=d=="e";if(!ha(a)||isNaN(a))return f?"__":"_";if(d=="t")return String(a);var g=0.5;if(c>b)g=(a-b)/(c-b);if(f){var h=64,i=at,m=Math.floor(g*i/h),n=Math.floor(g*i%h),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-.";return o.charAt(m)+o.charAt(n)}var p=Math.round(g*61);return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(p)};
q.pra=function(a,b,c,d){for(var f=[],g=0,h=a.length;g<h;++g)f.push(this.Gra(a[g],b,c,d));return f.join(this.ML=="t"?",":"")};q.zja=function(a){for(var b=Infinity,c=0,d=a.length;c<d;++c){var f=a[c];if(f!=k&&f<b)b=f}return b};q.yja=function(a){for(var b=-Infinity,c=0,d=a.length;c<d;++c){var f=a[c];if(f!=k&&f>b)b=f}return b};
q.o=function(){Zs.e.o.call(this);delete this.XPa;delete this.LBa;delete this.SHa;delete this.ywa;delete this.zwa;delete this.NS;delete this.wH;delete this.pp;this.ab=k;delete this.gz;delete this.aG;this.Ve=k;delete this.jDa;delete this.hDa;delete this.fDa;delete this.iDa;delete this.gDa;this.MBa=k};var $s=function(a){oi.call(this,"uritoolong");this.uri=a};A($s,oi);var bt=function(a){if(a){this.I9=K(Bf(a));this.Zoa=K(a+"_EVENTS");this.GP=this.I9 instanceof Tl;if(!this.GP)this.ib=K(a).va()}};E(bt,tn);
bt.prototype.create=function(){D("knol.ui.UsageStats");var a=this.I9,b=this.Zoa;if(a){var c=N({b:"div",id:"knol-usage-stats",c:"knol-box knol-sidebar-box"}),d=this.GP?"Activity for this author":this.ib?"Activity for this collection":"Activity for this knol",f=!this.GP?b:a,g=f?f.Gn():k,h=[{label:"pageviews",value:g},{label:"comments",value:a.JD(),link:"#comments"},{label:"ratings",value:a.xE()},{label:"suggestions",value:a.DE()}],i=new N({b:"div"});i.addElement({b:"h4",d:"This week:"});var m=l;C(h,
function(p){if(p.value&&p.value.wO()){i.addElement({b:"span",c:"knol-usage-stats-value",d:p.value.wO()});var s=k;s=p.link?N({b:"a",href:p.link,d:p.label}):N({b:"span",d:p.label});i.addElement({b:"span",c:"knol-usage-stats-label",children:[s]});p.value.rN()&&i.addElement(this.fHa(p.value.rN()));i.N();m=j}},this);var n=new N({b:"div"});n.addElement({b:"h4",d:"Totals:"});var o=l;C(h,function(p){if(p.value&&p.value.pO()){n.addElement({b:"span",c:"knol-usage-stats-value",d:p.value.pO()});n.addElement({b:"span",
c:"knol-usage-stats-label",d:p.label});n.N();o=j}});if(m||o){c.addElement({b:"h3",d:d});m&&c.addElement(i);o&&c.addElement(n);c.addElement({b:"div",id:"knol-usage-stats-analytics"});this.Ij(k,k,"knol.ui.client.UsageStats.init",[]);this.J(c)}}};
bt.prototype.fHa=function(a){if(!a||!a.length)return k;var b=new Zs("ls"),c=Math.min(7,a.length);b.Eha(a.slice(0,c).reverse(),"0077cc");b.zg(75,15);b.wKa(0);var d=new Ed(b.tO());d.$("chco","0077cc");d.$("chm","B,e6f2fa,0,0,0");d.$("chf","bg,s,ffffff");var f=N({b:"img",c:"knol-usage-stats-graph",src:d.toString()});return f};var ct=function(a){return"knol-authorpage-visibility-"+a.substring(17)};var dt={JRa:"GenericError",ISa:"NodeHasBeenDeleted",JSa:"NodeNotFound",LSa:"NoNodesFound",UTa:"WebspaceNotFound",jSa:"KnolNotPublished",iSa:"KnolFlagged",PSa:"PageViewLimitExceeded",YRa:"InviteHasExpired",bQa:"AccountClosed"};t("knol.Errors.Error",dt,undefined);
var et=function(a){switch(a){case "NodeHasBeenDeleted":return"The requested knol has been deleted by one of its owners.";case "NoNodesFound":case "NodeNotFound":case "WebspaceNotFound":return"The requested knol could not be found.";case "KnolNotPublished":return"The requested knol is currently not published.";case "KnolFlagged":return"The requested knol has been flagged and is no longer available.";case "AccountClosed":return"The author's Google Account has been closed and the requested knol is no longer available.";
case "PageViewLimitExceeded":return"We are sorry, but this IP address has exceeded its page view limit at this time. Please try again later.";case "InviteHasExpired":return"Your invitation to access this knol has expired.";default:return"Oops... We are experiencing some technical difficulty at the moment.  Please try again later."}};t("knol.Errors.getMessage",et,undefined);var ft={index:j,follow:l,odp:l},Vp=function(a){ft.index=a};var gt={};gt={};gt.Sc={};if(typeof ht=="undefined")var ht=[];if(typeof it=="undefined")var it=[];gt.Sc.Uga="";gt.Sc.FB={rga:"m",bha:"w",qga:"l",$ga:"u"};gt.Sc.zB={FW:"g",sX:"r"};gt.Sc.fua=function(){var a=gt.Sc.FB.$ga;if(Ae)a=gt.Sc.FB.bha;else if(ze)a=gt.Sc.FB.rga;else if(Be)a=gt.Sc.FB.qga;return a};gt.Sc.usa=function(a){var b=[];b.push(gt.Sc.fua());for(var c=0;c<a.length;++c){var d=new Date(a[c]);b.push(d.getTimezoneOffset()|0)}return gt.Sc.Roa(b)};
t("gsites.date.TimeZone.getFingerprint",gt.Sc.usa,undefined);gt.Sc.Roa=function(a){var b=a.length;if(b<2)return gt.Sc.Uga;for(var c=[a[0]],d=a[1],f=d,g=1,h=2;h<b;){f=a[h++];if(f!==d){c.push(gt.Sc.zB.FW+gt.Sc.XC(d)+gt.Sc.zB.sX+gt.Sc.XC(g));d=f;g=1}else g++}c.push(gt.Sc.zB.FW+gt.Sc.XC(f)+gt.Sc.zB.sX+gt.Sc.XC(g));return c.join("")};gt.Sc.XC=function(a){if(a>=0)return a.toString(16).toUpperCase();else{var b=-a;return"-"+b.toString(16).toUpperCase()}};var jt=function(a){this.B=a;var b=I?"focusin":"focus",c=I?"focusout":"blur";this.RBa=U(this.B,b,this,!I);this.SBa=U(this.B,c,this,!I)};A(jt,Zi);jt.prototype.handleEvent=function(a){var b=a.Tg(),c=new pi(b);c.type=a.type=="focusin"||a.type=="focus"?"focusin":"focusout";try{this.dispatchEvent(c)}finally{c.m()}};jt.prototype.o=function(){jt.e.o.call(this);Oi(this.RBa);Oi(this.SBa);delete this.B};var kt=function(a,b,c){this.target=a;this.BO=b||a;this.pQ=c||new Gh(NaN,NaN,NaN,NaN);this.Wc=cm(a);this.j=new Dq(this);U(this.BO,"mousedown",this.Ida,l,this)};A(kt,Zi);var lt=I||J&&Pe("1.9.3");q=kt.prototype;q.screenX=0;q.screenY=0;q.Pda=0;q.Qda=0;q.As=0;q.Bs=0;q.cb=j;q.Um=l;q.t6=0;q.TCa=0;q.eza=l;var mt=function(a){a.preventDefault()};q=kt.prototype;q.un=function(){return this.cb};q.aa=function(a){this.cb=a};
q.o=function(){kt.e.o.call(this);Mi(this.BO,"mousedown",this.Ida,l,this);this.j.m();delete this.target;delete this.BO;delete this.j};q.Ida=function(a){if(this.cb&&!this.Um&&(a.type!="mousedown"||a.zy(0))){if(this.t6==0){this.N6(a);if(this.Um)a.preventDefault();else return}else a.preventDefault();this.KLa();this.screenX=this.Pda=a.screenX;this.screenY=this.Qda=a.screenY;this.As=this.target.offsetLeft;this.Bs=this.target.offsetTop;this.Bz=dm(this.Wc).Pp();this.TCa=ua()}};
q.KLa=function(){this.j.g(this.Wc,"mousemove",this.UCa,j);this.j.g(this.Wc,"mouseup",this.jD,j);if(lt){this.Wc.documentElement.setCapture(l);this.j.g(this.Wc.documentElement,"losecapture",this.jD,j)}else this.j.g(pm(this.Wc),"blur",this.jD);I&&this.eza&&this.j.g(this.Wc,"dragstart",mt,l);this.qIa&&this.j.g(this.qIa,"scroll",this.xEa,j)};q.N6=function(a){var b=this.dispatchEvent(new nt("start",this,a.clientX,a.clientY,a));if(b!==l)this.Um=j};
q.jD=function(a,b){this.j.jb();if(this.Um){this.Um=l;var c=this.r8(this.As),d=this.s8(this.Bs);this.dispatchEvent(new nt("end",this,a.clientX,a.clientY,a,c,d,b))}};
q.UCa=function(a){if(this.cb){var b=a.screenX-this.screenX,c=a.screenY-this.screenY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.Um){var d=this.Pda-this.screenX,f=this.Qda-this.screenY,g=d*d+f*f;if(g>this.t6){this.N6(a);if(!this.Um){this.jD(a);return}}}var h=this.dZ(b,c),i=h.x,m=h.y;if(this.Um){var n=this.dispatchEvent(new nt("beforedrag",this,a.clientX,a.clientY,a,i,m));if(n!==l){this.G0(a,i,m,l);a.preventDefault()}}}};
q.dZ=function(a,b){var c=dm(this.Wc).Pp();a+=c.x-this.Bz.x;b+=c.y-this.Bz.y;this.Bz=c;this.As+=a;this.Bs+=b;var d=this.r8(this.As),f=this.s8(this.Bs);return new Ah(d,f)};q.xEa=function(a){var b=this.dZ(0,0);a.clientX=this.Bz.x-this.screenX;a.clientY=this.Bz.x-this.screenY;this.G0(a,b.x,b.y,j)};q.G0=function(a,b,c){this.Pna(b,c);this.dispatchEvent(new nt("drag",this,a.clientX,a.clientY,a,b,c))};
q.r8=function(a){var b=this.pQ,c=!isNaN(b.left)?b.left:k,d=!isNaN(b.width)?b.width:0,f=c!=k?c+d:Infinity,g=c!=k?c:-Infinity;return Math.min(f,Math.max(g,a))};q.s8=function(a){var b=this.pQ,c=!isNaN(b.top)?b.top:k,d=!isNaN(b.height)?b.height:0,f=c!=k?c+d:Infinity,g=c!=k?c:-Infinity;return Math.min(f,Math.max(g,a))};q.Pna=function(a,b){this.target.style.left=a+"px";this.target.style.top=b+"px"};
var nt=function(a,b,c,d,f,g,h,i){oi.call(this,a);this.clientX=c;this.clientY=d;this.lUa=f;this.left=r(g)?g:b.As;this.top=r(h)?h:b.Bs;this.T0=b;this.CUa=!!i};A(nt,oi);var pt=function(a,b,c){Dr.call(this,c);this.Bf=a||"modal-dialog";this.LU=!!b;this.zi=ot;this.hn=new jt(this.L().K())};A(pt,Dr);q=pt.prototype;q.LU=l;q.iz=j;q.S0=j;q.Tja=0.3;q.Ve="";q.zc="";q.zi=k;q.Hs=k;q.pd=l;q.D0=l;q.Ud=k;q.Ad=k;q.th=k;q.Ck=k;q.bU=k;q.Cr=k;q.Hg=k;q.Ae=k;q.Sf=function(a){this.Ve=a;this.Ck&&Lm(this.Ck,a)};q.ad=function(){return this.Ve};q.Nd=function(a){this.zc=a;if(this.Hg)this.Hg.innerHTML=a};q.getContent=function(){return this.zc};q.Ba=function(){this.Hg||this.Y();return this.Hg};
q.d5=function(){this.Nb()||this.Y();return this.th};q.ax=function(){this.Nb()||this.Y();return this.Ae};q.S2=function(){this.Nb()||this.Y();return this.f()};q.xKa=function(a){this.iz=a;this.GQ()};q.tma=function(){var a=new kt(this.f(),this.th);X.add(this.th,this.Bf+"-title-draggable");return a};
q.h=function(){this.GQ();var a=this.L();this.tf(a.h("div",{className:this.Bf,tabIndex:0},this.th=a.h("div",{className:this.Bf+"-title",id:this.n()},this.Ck=a.h("span",this.Bf+"-title-text",this.Ve),this.Cr=a.h("span",this.Bf+"-title-close")),this.Hg=a.h("div",this.Bf+"-content"),this.Ae=a.h("div",this.Bf+"-buttons"),this.gea=a.h("span",{tabIndex:0})));this.bU=this.th.id;Bq(this.f(),"dialog");Cq(this.f(),"labelledby",this.bU||"");if(this.zc)this.Hg.innerHTML=this.zc;$(this.f(),l);this.zi&&this.zi.XJ(this.Ae)};
q.GQ=function(){if(this.LU&&this.iz&&!this.Ad){var a,b=this.L();this.Ad=a=b.h("iframe",{frameborder:0,style:"border: 0; vertical-align: bottom",src:'javascript:""'});this.Ad.className=this.Bf+"-bg";$(this.Ad,l);ir(this.Ad,0)}else if((!this.LU||!this.iz)&&this.Ad){Z(this.Ad);this.Ad=k}if(this.iz&&!this.Ud){this.Ud=this.L().h("div",this.Bf+"-bg");ir(this.Ud,this.Tja);$(this.Ud,l)}else if(!this.iz&&this.Ud){Z(this.Ud);this.Ud=k}};
q.Y=function(a){if(this.Nb())e(Error("Component already rendered"));this.f()||this.h();var b=a||this.L().K().body;this.vaa(b);pt.e.Y.call(this,b)};q.vaa=function(a){this.Ad&&a.appendChild(this.Ad);this.Ud&&a.appendChild(this.Ud)};q.je=function(a){return a&&a.tagName&&a.tagName=="DIV"&&pt.e.je.call(this,a)};
q.Wd=function(a){pt.e.Wd.call(this,a);X.add(this.f(),this.Bf);var b=this.Bf+"-content";if(this.Hg=im(k,b,this.f())[0])this.zc=this.Hg.innerHTML;else{this.Hg=this.L().h("div",b);if(this.zc)this.Hg.innerHTML=this.zc;this.f().appendChild(this.Hg)}var c=this.Bf+"-title",d=this.Bf+"-title-text",f=this.Bf+"-title-close";if(this.th=im(k,c,this.f())[0]){this.Ck=im(k,d,this.th)[0];this.Cr=im(k,f,this.th)[0]}else{this.th=this.L().h("div",c);this.f().insertBefore(this.th,this.Hg)}if(this.Ck)this.Ve=Vm(this.Ck);
else{this.Ck=this.L().h("span",d,this.Ve);this.th.appendChild(this.Ck)}Cq(this.f(),"labelledby",this.bU||"");if(!this.Cr){this.Cr=this.L().h("span",f);this.th.appendChild(this.Cr)}var g=this.Bf+"-buttons";if(this.Ae=im(k,g,this.f())[0]){this.zi=new qt(this.L());this.zi.Ua(this.Ae)}else{this.Ae=this.L().h("div",g);this.f().appendChild(this.Ae);this.zi&&this.zi.XJ(this.Ae)}this.GQ();this.vaa(cm(this.f()).body);$(this.f(),l)};
q.Na=function(){pt.e.Na.call(this);if(this.S0&&!this.Hs)this.Hs=this.tma();this.Ka().g(this.Cr,"click",this.FEa).g(this.hn,"focusin",this.ZDa);Bq(this.f(),"dialog");this.Ck.id!==""&&Cq(this.f(),"labelledby",this.Ck.id)};q.Xc=function(){this.oa()&&this.M(l);if(this.Hs){this.Hs.m();this.Hs=k}pt.e.Xc.call(this)};
q.M=function(a){if(a!=this.pd){var b=this.L().K(),c=pm(b)||window;this.Nb()||this.Y(b.body);if(a){this.Gaa();this.qb();this.Ka().g(this.f(),"keydown",this.rG,j).g(c,"resize",this.Y9,j)}else this.Ka().Db(this.f(),"keydown",this.rG,j).Db(c,"resize",this.Y9,j);this.Ad&&$(this.Ad,a);this.Ud&&$(this.Ud,a);$(this.f(),a);if(a){J&&this.f().focus();if(this.lf()){var d=this.lf().qn();if(d)for(var f=this.Ae.getElementsByTagName("button"),g=0,h;h=f[g];g++)if(h.name==d){try{if(ue||te){var i=b.createElement("input");
i.style.cssText="position:fixed;width:0;height:0";this.f().appendChild(i);i.focus();this.f().removeChild(i)}h.focus()}catch(m){}break}}}if(this.pd=a)this.Ka().g(this.Ae,"click",this.M9);else{this.Ka().Db(this.Ae,"click",this.M9);this.dispatchEvent("afterhide");this.D0&&this.m()}}};q.oa=function(){return this.pd};
q.Gaa=function(){this.Ad&&$(this.Ad,l);this.Ud&&$(this.Ud,l);var a=this.L().K(),b=pm(a)||window,c=lm(b),d=a.body.scrollWidth,f=Math.max(a.body.scrollHeight,c.height);if(this.Ad){$(this.Ad,j);er(this.Ad,d,f)}if(this.Ud){$(this.Ud,j);er(this.Ud,d,f)}if(this.S0){var g=fr(this.f());this.Hs.pQ=new Gh(0,0,d-g.width,f-g.height)}};
q.qb=function(){var a=this.L().K(),b=pm(a)||window;if(Tq(this.f())=="fixed")var c=0,d=0;else{var f=this.L().Pp();c=f.x;d=f.y}var g=fr(this.f()),h=lm(b),i=Math.max(c+h.width/2-g.width/2,0),m=Math.max(d+h.height/2-g.height/2,0);Uq(this.f(),i,m)};q.FEa=function(){var a=this.lf(),b=a&&a.q2();if(b){var c=a.z(b);this.dispatchEvent(new rt(b,c))&&this.M(l)}else this.M(l)};q.Yba=function(a){this.D0=a};
q.o=function(){pt.e.o.call(this);if(this.hn){this.hn.m();this.hn=k}if(this.Ud){Z(this.Ud);this.Ud=k}if(this.Ad){Z(this.Ad);this.Ad=k}this.gea=this.Ae=this.Cr=k};q.Ru=function(a){this.zi=a;if(this.Ae)if(this.zi)this.zi.XJ(this.Ae);else this.Ae.innerHTML=""};q.lf=function(){return this.zi};q.M9=function(a){var b=this.Ipa(a.target);if(b&&!b.disabled){var c=b.name,d=this.lf().z(c);this.dispatchEvent(new rt(c,d))&&this.M(l)}};
q.Ipa=function(a){for(var b=a;b!=k&&b!=this.Ae;){if(b.tagName=="BUTTON")return b;b=b.parentNode}return k};
q.rG=function(a){var b=l,c=l,d=this.lf(),f=a.target;if(a.keyCode==27){var g=d&&d.q2(),h=f.tagName=="SELECT"&&!f.disabled;if(g&&!h){c=j;var i=d.z(g);b=this.dispatchEvent(new rt(g,i))}else h||(b=j)}else if(a.keyCode==13){var m;if(f.tagName=="BUTTON")m=f.name;else if(d){var n=d.qn(),o=n&&d.Ug(n);h=(f.tagName=="TEXTAREA"||f.tagName=="SELECT")&&!f.disabled;if(o&&!o.disabled&&!h)m=n}if(m){c=j;b=this.dispatchEvent(new rt(m,String(d.z(m))))}}else if(a.keyCode==9&&a.shiftKey&&f==this.f())c=j;if(b||c){a.stopPropagation();
a.preventDefault()}b&&this.M(l)};q.Y9=function(){this.Gaa()};q.ZDa=function(a){this.gea==a.target&&cj(this.Wpa,0,this)};q.Wpa=function(){I&&this.L().K().body.focus();this.f().focus()};var rt=function(a,b){this.type="dialogselect";this.ga=a;this.caption=b};A(rt,oi);var qt=function(a){this.T=a||dm();xc.call(this)},ot,st;A(qt,xc);q=qt.prototype;q.VK=k;q.B=k;q.ke=k;q.G=function(a,b,c,d){xc.prototype.G.call(this,a,b);if(c)this.VK=a;if(d)this.ke=a;return this};q.XJ=function(a){this.B=a;this.Y()};
q.Y=function(){if(this.B){this.B.innerHTML="";var a=dm(this.B);uc(this,function(b,c){this.B.appendChild(a.h("button",{name:c},b))},this)}};q.Ua=function(a){if(!(!a||a.nodeType!=1)){this.B=a;for(var b=this.B.getElementsByTagName("button"),c=0,d,f,g;d=b[c];c++){f=d.name||d.id;g=Vm(d)||d.value;f&&this.G(f,g,c==0,d.name=="cancel")}}};q.rH=function(a){this.VK=a};q.qn=function(){return this.VK};q.q2=function(){return this.ke};
q.Ug=function(a){for(var b=this.Jqa(),c=0,d;d=b[c];c++)if(d.name==a||d.id==a)return d;return k};q.Jqa=function(){return this.B.getElementsByTagName("BUTTON")};(function(){st=(new qt).G("ok","OK",j);ot=(new qt).G("ok","OK",j).G("cancel","Cancel",l,j);(new qt).G("yes","Yes",j).G("no","No",l,j);(new qt).G("yes","Yes").G("no","No",j).G("cancel","Cancel",l,j);(new qt).G("continue","Continue").G("save","Save").G("cancel","Cancel",j,j)})();var tt=function(){this.nK=[]};A(tt,Fr);ea(tt);q=tt.prototype;q.et=function(a){var b=this.nK[a];if(!b){switch(a){case 0:b=this.hq()+"-highlight";break;case 1:b=this.hq()+"-checkbox";break;case 2:b=this.hq()+"-content";break}this.nK[a]=b}return b};q.Gh=function(){return"menuitem"};q.h=function(a){var b=a.L().h("div",this.dg(a).join(" "),this.q_(a.getContent(),a.L()));this.US(a,b,a.qg(8)||a.qg(16));return b};q.Ba=function(a){return a&&a.firstChild};
q.Ua=function(a,b){this.sya(b)||b.appendChild(this.q_(b.childNodes,a.L()));if(X.Zi(b,"goog-option")){a.eA(j);this.eA(a,b,j)}return tt.e.Ua.call(this,a,b)};q.Nd=function(a,b){var c=this.Ba(a),d=this.YO(a)?c.firstChild:k;tt.e.Nd.call(this,a,b);if(d&&!this.YO(a))c.insertBefore(d,c.firstChild||k)};q.sya=function(a){var b=Dm(a),c=this.et(2);return!!b&&b.className.indexOf(c)!=-1};q.q_=function(a,b){var c=this.et(2);return b.h("div",c,a)};
q.hT=function(a,b,c){if(b){Bq(b,c?"menuitemradio":this.Gh());this.US(a,b,c)}};q.eA=function(a,b,c){if(b){Bq(b,c?"menuitemcheckbox":this.Gh());this.US(a,b,c)}};q.YO=function(a){var b=this.Ba(a);if(b){var c=b.firstChild,d=this.et(1);return!!c&&!!c.className&&c.className.indexOf(d)!=-1}return l};q.US=function(a,b,c){if(c!=this.YO(b)){X.Ub(b,"goog-option",c);var d=this.Ba(b);if(c){var f=this.et(1);d.insertBefore(a.L().h("div",f),d.firstChild||k)}else d.removeChild(d.firstChild)}};
q.bx=function(a){switch(a){case 2:return this.et(0);case 16:case 8:return"goog-option-selected";default:return tt.e.bx.call(this,a)}};q.hO=function(a){var b=this.et(0);switch(a){case "goog-option-selected":return 16;case b:return 2;default:return tt.e.hO.call(this,a)}};q.W=function(){return"goog-menuitem"};var ut=function(a,b,c,d){Tr.call(this,a,d||tt.eb(),c);this.Sa(b)};A(ut,Tr);ut.prototype.ca=function(){var a=this.xt();return a!=k?a:this.Jp()};ut.prototype.Sa=function(a){this.yKa(a)};ut.prototype.hT=function(a){this.vf(8,a);this.By()&&!a&&this.wg(l);var b=this.f();b&&this.Ga.hT(this,b,a)};ut.prototype.eA=function(a){this.vf(16,a);var b=this.f();b&&this.Ga.eA(this,b,a)};Sr("goog-menuitem",function(){return new ut(k)});var vt={Wga:0,fX:2,EQa:1,kV:3,gX:4,Vga:6,lV:5,Qfa:7},xt=function(a,b,c,d,f,g,h,i){var m,n=c.offsetParent;if(n){var o=n.tagName=="HTML"||n.tagName=="BODY";if(!o||Tq(n)!="static"){m=Yq(n);o||(m=Bh(m,new Ah(n.scrollLeft,n.scrollTop)))}}var p,s=a,u=gr(s),v=$q(s);v&&u.b7(new Gh(v.left,v.top,v.right-v.left,v.bottom-v.top));var w=p=u,x=dm(a),B=dm(c);if(x.K()!=B.K()){var H=x.K().body,F=br(H,B.ia());F=Bh(F,Yq(H));if(I&&!x.qF())F=Bh(F,x.Pp());w.left+=F.x;w.top+=F.y}var M=(b&4&&Zq(a)?b^2:b)&-5,W=new Ah(M&2?
p.left+p.width:p.left,M&1?p.top+p.height:p.top);if(m)W=Bh(W,m);if(f){W.x+=(M&2?-1:1)*f.x;W.y+=(M&1?-1:1)*f.y}var ra;if(h)if((ra=$q(c))&&m){ra.top=Math.max(0,ra.top-m.y);ra.right-=m.x;ra.bottom-=m.y;ra.left=Math.max(0,ra.left-m.x)}return wt(W,c,d,g,ra,h,i)},wt=function(a,b,c,d,f,g,h){a=a.ua();var i=0,m=(c&4&&Zq(b)?c^2:c)&-5,n=fr(b),o=h?h.ua():n;if(d||m!=0){if(m&2)a.x-=o.width+(d?d.right:0);else if(d)a.x+=d.left;if(m&1)a.y-=o.height+(d?d.bottom:0);else if(d)a.y+=d.top}if(g){i=f?yt(a,o,f,g):256;if(i&
496)return i}Uq(b,a);Fh(n,o)||er(b,o);return i},yt=function(a,b,c,d){var f=0;if(a.x<c.left&&d&1){a.x=c.left;f|=1}if(a.x<c.left&&a.x+b.width>c.right&&d&16){b.width-=a.x+b.width-c.right;f|=4}if(a.x+b.width>c.right&&d&1){a.x=Math.max(c.right-b.width,c.left);f|=1}if(d&2)f|=(a.x<c.left?16:0)|(a.x+b.width>c.right?32:0);if(a.y<c.top&&d&4){a.y=c.top;f|=2}if(a.y>=c.top&&a.y+b.height>c.bottom&&d&32){b.height-=a.y+b.height-c.bottom;f|=8}if(a.y+b.height>c.bottom&&d&4){a.y=Math.max(c.bottom-b.height,c.top);f|=
2}if(d&8)f|=(a.y<c.top?64:0)|(a.y+b.height>c.bottom?128:0);return f};var zt=function(){};zt.prototype.qb=function(){};var At=function(a,b){this.Aa=a;this.qs=b};A(At,zt);At.prototype.qb=function(a,b,c){xt(this.Aa,this.qs,a,b,undefined,c)};var Bt=function(a,b,c){At.call(this,a,b);this.Qia=c};A(Bt,At);Bt.prototype.qb=function(a,b,c,d){var f=xt(this.Aa,this.qs,a,b,k,c,10,d)&496;if(f)if(f=xt(this.Aa,b,a,this.qs,k,c,10,d)&496)this.Qia?xt(this.Aa,this.qs,a,b,k,c,5,d):xt(this.Aa,this.qs,a,b,k,c,0,d)};var Ct=function(a,b){this.FC=a instanceof Ah?a:new Ah(a,b)};A(Ct,zt);Ct.prototype.qb=function(a,b,c,d){var f=Vq(a),g=new Ah(this.FC.x+f.scrollLeft,this.FC.y+f.scrollTop);xt(f,0,a,b,g,c,k,d)};var Dt=function(a,b){Ct.call(this,a,b)};A(Dt,Ct);Dt.prototype.qb=function(a,b,c,d){var f=Vq(a),g=$q(f),h=dm(a).V2(),i=new Ah(this.FC.x+h.scrollLeft,this.FC.y+h.scrollTop),m=10,n=b,o=wt(i,a,n,c,g,m,d);if((o&496)!=0){if(o&16||o&32)n^=2;if(o&64||o&128)n^=1;o=wt(i,a,n,c,g,m,d);(o&496)!=0&&wt(i,a,b,c,g,undefined,d)}};var Et=function(a,b){this.U=new Dq(this);this.NJa(a||k);b&&this.fi(b)};A(Et,Zi);q=Et.prototype;q.B=k;q.DY=j;q.CY=k;q.Aq=l;q.YLa=l;q.m8=-1;q.h8=-1;q.i6=l;q.Koa=j;q.Rc="toggle_display";q.ha=function(){return this.Rc};q.fi=function(a){this.Rc=a};q.f=function(){return this.B};q.NJa=function(a){this.PL();this.B=a};q.Kba=function(a){this.PL();this.DY=a};q.aca=function(a){this.PL();this.i6=a};q.PL=function(){if(this.Aq)e(Error("Can not change this state of the popup while showing."))};q.oa=function(){return this.Aq};
q.M=function(a){a?this.vA():this.Qt()};q.qb=function(){};
q.vA=function(){if(!this.Aq)if(this.DDa()){if(!this.B)e(Error("Caller must call setElement before trying to show the popup"));this.qb();var a=cm(this.B);this.i6&&this.U.g(a,"keydown",this.TDa,j);if(this.DY){this.U.g(a,"mousedown",this.R9,j);if(I){for(var b=a.activeElement;b&&b.nodeName=="IFRAME";){try{var c=Km(b)}catch(d){break}a=c;b=a.activeElement}this.U.g(a,"mousedown",this.R9,j);this.U.g(a,"deactivate",this.P9)}else this.U.g(a,"blur",this.P9)}if(this.Rc=="toggle_display")this.sMa();else this.Rc==
"move_offscreen"&&this.qb();this.Aq=j;this.nR()}};q.Qt=function(a){if(!this.Aq||!this.CDa(a))return l;this.U&&this.U.jb();if(this.Rc=="toggle_display")this.YLa?cj(this.k6,0,this):this.k6();else this.Rc=="move_offscreen"&&this.YCa();this.Aq=l;this.bEa(a);return j};q.sMa=function(){this.B.style.visibility="visible";$(this.B,j)};q.k6=function(){this.B.style.visibility="hidden";$(this.B,l)};q.YCa=function(){this.B.style.left="-200px";this.B.style.top="-200px"};q.DDa=function(){return this.dispatchEvent("beforeshow")};
q.nR=function(){this.m8=ua();this.h8=-1;this.dispatchEvent("show")};q.CDa=function(a){return this.dispatchEvent({type:"beforehide",target:a})};q.bEa=function(a){this.h8=ua();this.dispatchEvent({type:"hide",target:a})};q.R9=function(a){var b=a.target;if(!Fm(this.B,b)&&(!this.CY||Fm(this.CY,b))&&!this.$ca())this.Qt(b)};q.TDa=function(a){if(a.keyCode==27)if(this.Qt(a.target)){a.preventDefault();a.stopPropagation()}};
q.P9=function(a){if(this.Koa){var b=cm(this.B);if(I||te){var c=b.activeElement;if(c&&Fm(this.B,c))return}else if(a.target!=b)return;this.$ca()||this.Qt()}};q.$ca=function(){return ua()-this.m8<150};q.o=function(){Et.e.o.call(this);this.U.m();delete this.B;delete this.U};var Ft=function(a,b){this.A$=4;this.IR=b||undefined;Et.call(this,a)};A(Ft,Et);var Gt=vt;Ft.prototype.eT=function(a){this.A$=a;this.oa()&&this.qb()};Ft.prototype.setPosition=function(a){this.IR=a||undefined;this.oa()&&this.qb()};Ft.prototype.qb=function(){if(this.IR){var a=!this.oa()&&this.ha()!="move_offscreen",b=this.f();if(a){b.style.visibility="hidden";$(b,j)}this.IR.qb(b,this.A$,this.cz);a&&$(b,l)}};var Ht=At,It=Bt;var Jt=function(){};A(Jt,Fr);ea(Jt);Jt.prototype.h=function(a){return a.L().h("div",this.W())};Jt.prototype.Ua=function(a,b){if(b.tagName=="HR"){var c=b;b=this.h(a);ym(b,c);Z(c)}else X.add(b,this.W());return b};Jt.prototype.Nd=function(){};Jt.prototype.W=function(){return"goog-menuseparator"};var Kt=function(a,b){Tr.call(this,k,a||Jt.eb(),b);this.vf(1,l);this.vf(2,l);this.vf(4,l);this.vf(32,l);this.Fca(1)};A(Kt,Tr);Kt.prototype.Na=function(){Kt.e.Na.call(this);Bq(this.f(),"separator")};Sr("goog-menuseparator",function(){return new Kt});var Lt=function(){};ea(Lt);var Mt=function(a,b){var c=new a;c.W=function(){return b};return c};q=Lt.prototype;q.Gh=function(){return undefined};q.Fya=function(a){if(a){var b=a.getAttributeNode("tabindex");if(b&&b.specified){var c=a.tabIndex;return ka(c)&&c>=0}}return l};q.KL=function(a,b){if(a)a.tabIndex=b?0:-1};q.h=function(a){return a.L().h("div",this.dg(a).join(" "))};q.Ba=function(a){return a};q.je=function(a){return a.tagName=="DIV"};
q.Ua=function(a,b){b.id&&a.ei(b.id);var c=this.W(),d=l,f=X.z(b);f&&C(f,function(g){if(g==c)d=j;else g&&this.iT(a,g,c)},this);d||X.add(b,c);this.Nna(a,b);return b};q.iT=function(a,b,c){if(b==c+"-disabled")a.aa(l);else if(b==c+"-horizontal")a.EH("horizontal");else b==c+"-vertical"&&a.EH("vertical")};
q.Nna=function(a,b){if(b)for(var c=b.firstChild,d;c&&c.parentNode==b;){d=c.nextSibling;if(c.nodeType==1){var f=this.hx(c);if(f){f.tf(c);a.X()||f.aa(l);a.Uf(f);f.Ua(c)}}else if(!c.nodeValue||Ha(c.nodeValue)=="")b.removeChild(c);c=d}};q.hx=function(a){var b;a:{for(var c,d=X.z(a),f=0,g=d.length;f<g;f++)if(c=d[f]in Rr?Rr[d[f]]():k){b=c;break a}b=k}return b};q.lg=function(a){var b=a.f();nr(b,j,J);if(I)b.hideFocus=j;var c=this.Gh();c&&Bq(b,c)};q.Zd=function(a){return a.f()};q.W=function(){return"goog-container"};
q.dg=function(a){var b=this.W(),c=a.QN()=="horizontal",d=[b,c?b+"-horizontal":b+"-vertical"];a.X()||d.push(b+"-disabled");return d};q.O2=function(){return"vertical"};var Nt=function(a,b,c){Dr.call(this,c);this.Ga=b||Lt.eb();this.nd=a||this.Ga.O2()};A(Nt,Dr);q=Nt.prototype;q.EF=k;q.uc=k;q.Ga=k;q.nd=k;q.pd=j;q.cb=j;q.Fp=j;q.ld=-1;q.fe=k;q.XQ=l;q.Zia=l;q.Lm=k;q.Zd=function(){return this.EF||this.Ga.Zd(this)};q.gE=function(){return this.uc||(this.uc=new Jr(this.Zd()))};q.Gd=function(){return this.Ga};q.fT=function(a){if(this.f())e(Error("Component already rendered"));this.Ga=a};q.h=function(){this.tf(this.Ga.h(this))};q.Ba=function(){return this.Ga.Ba(this.f())};
q.je=function(a){return this.Ga.je(a)};q.Wd=function(a){this.tf(this.Ga.Ua(this,a));if(a.style.display=="none")this.pd=l};
q.Na=function(){Nt.e.Na.call(this);this.qe(function(b){b.Nb()&&this.faa(b)},this);var a=this.f();this.Ga.lg(this);this.M(this.pd,j);this.Ka().g(this,"enter",this.HO).g(this,"highlight",this.KO).g(this,"unhighlight",this.XO).g(this,"open",this.Lxa).g(this,"close",this.Vwa).g(a,"mousedown",this.Nl).g(cm(a),"mouseup",this.gxa).g(a,["mousedown","mouseup","mouseover","mouseout"],this.Swa);this.fk()&&this.d1(j)};
q.d1=function(a){var b=this.Ka(),c=this.Zd();a?b.g(c,"focus",this.dy).g(c,"blur",this.Ph).g(this.gE(),"key",this.Id):b.Db(c,"focus",this.dy).Db(c,"blur",this.Ph).Db(this.gE(),"key",this.Id)};q.Xc=function(){this.uf(-1);this.fe&&this.fe.Oc(l);this.XQ=l;Nt.e.Xc.call(this)};q.o=function(){Nt.e.o.call(this);if(this.uc){this.uc.m();this.uc=k}this.Ga=this.fe=this.Lm=k};q.HO=function(){return j};
q.KO=function(a){var b=this.Vt(a.target);if(b>-1&&b!=this.ld){var c=this.yn();c&&c.yg(l);this.ld=b;c=this.yn();this.DAa()&&c.setActive(j);if(this.fe&&c!=this.fe)c.qg(64)?c.Oc(j):this.fe.Oc(l)}Cq(this.f(),"activedescendant",a.target.f().id)};q.XO=function(a){if(a.target==this.yn())this.ld=-1;Cq(this.f(),"activedescendant","")};q.Lxa=function(a){var b=a.target;if(b&&b!=this.fe&&b.yb()==this){this.fe&&this.fe.Oc(l);this.fe=b}};q.Vwa=function(a){if(a.target==this.fe)this.fe=k};
q.Nl=function(a){this.cb&&this.po(j);var b=this.Zd();this.Ga.Fya(b)?b.focus():a.preventDefault()};q.gxa=function(){this.po(l)};q.Swa=function(a){var b=this.hua(a.target);if(b)switch(a.type){case "mousedown":b.Nl(a);break;case "mouseup":b.oq(a);break;case "mouseover":b.Ol(a);break;case "mouseout":b.nq(a);break}};q.hua=function(a){if(this.Lm)for(var b=this.f();a&&a.parentNode&&a!=b;){var c=a.id;if(c in this.Lm)return this.Lm[c];a=a.parentNode}return k};q.dy=function(){};
q.Ph=function(){this.uf(-1);this.po(l);this.fe&&this.fe.Oc(l)};q.Id=function(a){if(this.X()&&this.Vg()!=0&&this.Ml(a)){a.preventDefault();a.stopPropagation();return j}return l};
q.Ml=function(a){var b=this.yn();if(b&&typeof b.Id=="function"&&b.Id(a))return j;if(this.fe&&this.fe!=b&&typeof this.fe.Id=="function"&&this.fe.Id(a))return j;switch(a.keyCode){case 27:if(this.fk())this.Zd().blur();else return l;break;case 36:this.fP();break;case 35:this.Uya();break;case 38:if(this.nd=="vertical")this.hP();else return l;break;case 37:if(this.nd=="horizontal")this.de()?this.gP():this.hP();else return l;break;case 40:if(this.nd=="vertical")this.gP();else return l;break;case 39:if(this.nd==
"horizontal")this.de()?this.hP():this.gP();else return l;break;default:return l}return j};q.faa=function(a){var b=a.f(),c=b.id||(b.id=a.n());if(!this.Lm)this.Lm={};this.Lm[c]=a};q.Uf=function(a,b){Nt.e.Uf.call(this,a,b)};q.Xo=function(a,b,c){a.RS(2,j);a.RS(64,j);if(this.fk()||!this.sAa())a.vf(32,l);a.YS(l);Nt.e.Xo.call(this,a,b,c);c&&this.Nb()&&this.faa(a);b<=this.ld&&this.ld++};
q.removeChild=function(a,b){var c=this.Vt(a);if(c!=-1)if(c==this.ld)a.yg(l);else c<this.ld&&this.ld--;var d=a.f();d&&d.id&&dc(this.Lm,d.id);a=Nt.e.removeChild.call(this,a,b);a.YS(j);return a};q.QN=function(){return this.nd};q.EH=function(a){if(this.f())e(Error("Component already rendered"));this.nd=a};q.oa=function(){return this.pd};
q.M=function(a,b){if(b||this.pd!=a&&this.dispatchEvent(a?"show":"hide")){this.pd=a;var c=this.f();if(c){$(c,a);this.fk()&&this.Ga.KL(this.Zd(),this.cb&&this.pd);this.pd&&!b&&this.dispatchEvent("aftershow")}return j}return l};q.X=function(){return this.cb};
q.aa=function(a){if(this.cb!=a&&this.dispatchEvent(a?"enable":"disable")){if(a){this.cb=j;this.qe(function(b){if(b.jfa)delete b.jfa;else b.aa(j)})}else{this.qe(function(b){if(b.X())b.aa(l);else b.jfa=j});this.cb=l;this.po(l)}this.fk()&&this.Ga.KL(this.Zd(),a&&this.pd)}};q.fk=function(){return this.Fp};q.xg=function(a){a!=this.Fp&&this.Nb()&&this.d1(a);this.Fp=a;this.cb&&this.pd&&this.Ga.KL(this.Zd(),a)};q.sAa=function(){return this.Zia};q.qN=function(){return this.ld};
q.uf=function(a){var b=this.Ge(a);if(b)b.yg(j);else this.ld>-1&&this.yn().yg(l)};q.yg=function(a){this.uf(this.Vt(a))};q.yn=function(){return this.Ge(this.ld)};q.fP=function(){this.aF(function(a,b){return(a+1)%b},this.Vg()-1)};q.Uya=function(){this.aF(function(a,b){a--;return a<0?b-1:a},0)};q.gP=function(){this.aF(function(a,b){return(a+1)%b},this.ld)};q.hP=function(){this.aF(function(a,b){a--;return a<0?b-1:a},this.ld)};
q.aF=function(a,b){var c=b<0?this.Vt(this.fe):b,d=this.Vg();c=a(c,d);for(var f=0;f<=d;){var g=this.Ge(c);if(g&&this.hZ(g)){this.$S(c);return j}f++;c=a(c,d)}return l};q.hZ=function(a){return a.oa()&&a.X()&&a.qg(2)};q.$S=function(a){this.uf(a)};q.DAa=function(){return this.XQ};q.po=function(a){this.XQ=a};var Ot=function(){};A(Ot,Lt);ea(Ot);q=Ot.prototype;q.Gh=function(){return"menu"};q.je=function(a){return a.tagName=="UL"||Ot.e.je.call(this,a)};q.hx=function(a){return a.tagName=="HR"?new Kt:Ot.e.hx.call(this,a)};q.Dj=function(a,b){return Fm(a.f(),b)};q.W=function(){return"goog-menu"};q.lg=function(a){Ot.e.lg.call(this,a);var b=a.f();Cq(b,"haspopup","true")};var Pt=function(a){Kt.call(this,Jt.eb(),a)};A(Pt,Kt);Sr("goog-menuseparator",function(){return new Kt});var Qt=function(a,b){Nt.call(this,"vertical",b||Ot.eb(),a);this.xg(l)};A(Qt,Nt);q=Qt.prototype;q.ap=j;q.$ia=l;q.W=function(){return this.Gd().W()};q.Dj=function(a){if(this.Gd().Dj(this,a))return j;for(var b=0,c=this.Vg();b<c;b++){var d=this.Ge(b);if(typeof d.Dj=="function"&&d.Dj(a))return j}return l};q.bb=function(a){this.Uf(a,j)};q.Im=function(a,b){this.Xo(a,b,j)};q.eo=function(a){var b=this.removeChild(a,j);b&&b.m()};q.er=function(a){var b=this.SG(a,j);b&&b.m()};q.zn=function(a){return this.Ge(a)};
q.An=function(){return this.Vg()};q.fE=function(){return this.Tc||[]};q.setPosition=function(a,b){var c=this.oa();c||$(this.f(),j);dr(this.f(),a,b);c||$(this.f(),l)};q.jo=function(a){(this.ap=a)&&this.xg(j)};q.M=function(a,b){var c=Qt.e.M.call(this,a,b);c&&a&&this.Nb()&&this.ap&&this.Zd().focus();return c};q.HO=function(a){this.ap&&this.Zd().focus();return Qt.e.HO.call(this,a)};q.hZ=function(a){return(this.$ia||a.X())&&a.oa()&&a.qg(2)};var Rt=function(a){Qt.call(this,a);this.jo(j);this.M(l,j);this.zk=new xc};A(Rt,Qt);q=Rt.prototype;q.UNa=l;q.i8=0;q.L_=k;q.Wd=function(a){Rt.e.Wd.call(this,a);var b=a.getAttribute("for")||a.htmlFor;b&&this.attach(this.L().f(b),1)};q.Na=function(){Rt.e.Na.call(this);uc(this.zk,this.zY,this);var a=this.Ka();a.g(this,"action",this.hR);a.g(this.L().K(),"mousedown",this.O9,j);ue&&a.g(this.L().K(),"contextmenu",this.O9,j)};
q.attach=function(a,b,c,d,f){if(!this.e7(a)){var g=this.dma(a,b,c,d,f);this.Nb()&&this.zY(g)}};q.dma=function(a,b,c,d,f){if(!a)return k;var g={B:a,YT:b,SQ:c,UL:d?"contextmenu":"mousedown",cz:f};this.zk.G(pa(a),g);return g};q.e7=function(a){return a?this.zk.me(pa(a)):l};q.zY=function(a){this.Ka().g(a.B,a.UL,this.Z9)};q.detach=function(a){if(!this.e7(a))e(Error("Menu not attached to provided element, unable to detach."));var b=pa(a);this.Nb()&&this.aoa(this.zk.z(b));this.zk.remove(b)};
q.aoa=function(a){this.Ka().Db(a.B,a.UL,this.Z9)};q.YH=function(a,b,c){var d=this.oa();if((d||this.aPa())&&this.UNa)this.bd();else if(this.dispatchEvent("beforeshow")){var f=r(a.YT)?new Bt(a.B,a.YT):new Dt(b,c),g=r(a.SQ)?a.SQ:4;if(!d)this.f().style.visibility="hidden";$(this.f(),j);f.qb(this.f(),g,a.cz);if(!d)this.f().style.visibility="visible";this.L_=a.B;this.uf(-1);this.M(j)}};q.aMa=function(a,b,c){this.YH({SQ:c},a,b)};q.bd=function(){this.M(l);if(!this.oa()){this.i8=ua();this.L_=k}};
q.aPa=function(){return ua()-this.i8<150};q.hR=function(){this.bd()};q.Z9=function(a){for(var b=this.zk.vb(),c=0;c<b.length;c++){var d=this.zk.z(b[c]);if(d.B==a.currentTarget){this.YH(d,a.clientX,a.clientY);a.preventDefault();a.stopPropagation();return}}};q.O9=function(a){this.oa()&&!this.Dj(a.target)&&this.bd()};q.Ph=function(a){Rt.e.Ph.call(this,a);this.bd()};q.o=function(){Rt.e.o.call(this);if(this.zk){this.zk.clear();delete this.zk}};var Tt=function(a){return St(a,j)[0]},St=function(a,b){var c=0,d=0;if(Ut(a)){c=a.selectionStart;d=b?-1:a.selectionEnd}else if(I){var f,g=a,h=g.ownerDocument||g.document,i=h.selection.createRange(),m;if(g.type=="textarea"){m=h.body.createTextRange();m.moveToElementText(g)}else m=g.createTextRange();f=[m,i];var n=f[0],o=f[1];if(n.inRange(o)){n.setEndPoint("EndToStart",o);if(a.type=="textarea"){var p;for(var s=n,u=b,v=o.duplicate(),w=s.text,x=w,B=v.text,H=B,F=l;!F;)if(s.compareEndPoints("StartToEnd",
s)==0)F=j;else{s.moveEnd("character",-1);if(s.text==w)x+="\r\n";else F=j}if(u)p=[x.length,-1];else{for(var M=l;!M;)if(v.compareEndPoints("StartToEnd",v)==0)M=j;else{v.moveEnd("character",-1);if(v.text==B)H+="\r\n";else M=j}p=[x.length,x.length+H.length]}return p}c=n.text.length;d=b?-1:n.text.length+o.text.length}}return[c,d]},Vt=function(a,b){if(Ut(a)){a.selectionStart=b;a.selectionEnd=b}else if(I){var c=b;if(a.type=="textarea"){var d=a.value.substring(0,c);c=d.replace(/(\r\n|\r|\n)/g,"\n").length}b=
c;var f=a.createTextRange();f.collapse(j);f.move("character",b);f.select()}},Ut=function(a){try{return typeof a.selectionStart=="number"}catch(b){return l}};var Wt=function(a){this.B=a;var b=I?"propertychange":ue&&a.tagName=="TEXTAREA"&&!Pe("531")?"keypress":"input";this.UF=U(this.B,b,this)};A(Wt,Zi);Wt.prototype.handleEvent=function(a){var b=a.Tg();if(b.type=="propertychange"&&b.propertyName=="value"||b.type=="input"||b.type=="keypress"){if(I||te){var c=b.srcElement;if(c!=cm(c).activeElement)return}var d=new pi(b);d.type="input";try{this.dispatchEvent(d)}finally{d.m()}}};Wt.prototype.o=function(){Wt.e.o.call(this);Oi(this.UF);delete this.B};var Xt=function(){};A(Xt,Ir);ea(Xt);q=Xt.prototype;q.h=function(a){var b=this.dg(a),c={"class":"goog-inline-block "+b.join(" "),title:a.ig()||""};return a.L().h("div",c,a.getContent())};q.je=function(a){return a.tagName=="DIV"};q.Ua=function(a,b){X.add(b,"goog-inline-block");return Xt.e.Ua.call(this,a,b)};q.ca=function(){return k};q.W=function(){return"goog-flat-button"};Sr("goog-flat-button",function(){return new Yr(k,Xt.eb())});var Yt=function(a,b,c,d){Bt.call(this,a,b,c);this.CHa=d};A(Yt,Bt);Yt.prototype.qb=function(a,b,c,d){this.CHa?xt(this.Aa,this.qs,a,b,k,c,33,d):Yt.e.qb.call(this,a,b,c,d)};var Zt=function(){};A(Zt,Zr);ea(Zt);if(J)Zt.prototype.Nd=function(a,b){var c=Zt.e.Ba.call(this,a&&a.firstChild);c&&Am(this.createCaption(b,dm(a)),c)};Zt.prototype.Ba=function(a){var b=Zt.e.Ba.call(this,a&&a.firstChild);if(J&&b&&b.__goog_wrapper_div)b=b.firstChild;return b};Zt.prototype.Ua=function(a,b){var c=im("*","goog-menu",b)[0];if(c){$(c,l);var d=cm(c).body;d.appendChild(c);var f=new Qt;f.Ua(c);a.rk(f)}return Zt.e.Ua.call(this,a,b)};
Zt.prototype.rs=function(a,b){return Zt.e.rs.call(this,[this.createCaption(a,b),this.KC(b)],b)};Zt.prototype.createCaption=function(a,b){return $t(a,this.W(),b)};var $t=function(a,b,c){return c.h("div","goog-inline-block "+(b+"-caption"),a)};Zt.prototype.KC=function(a){return a.h("div","goog-inline-block "+(this.W()+"-dropdown"),"\u00a0")};Zt.prototype.W=function(){return"goog-menu-button"};var au=function(a,b,c,d){Yr.call(this,a,c||Zt.eb(),d);this.vf(64,j);b&&this.rk(b);this.xd=new aj(500)};A(au,Yr);q=au.prototype;q.PJ=j;q.AS=l;q.tAa=l;q.Na=function(){au.e.Na.call(this);this.da&&this.fC(this.da,j);Cq(this.f(),"haspopup","true")};q.Xc=function(){au.e.Xc.call(this);if(this.da){this.Oc(l);this.da.Xc();this.fC(this.da,l);var a=this.da.f();a&&Z(a)}};q.o=function(){au.e.o.call(this);if(this.da){this.da.m();delete this.da}this.xd.m()};
q.Nl=function(a){au.e.Nl.call(this,a);if(this.ce()){this.Oc(!this.isOpen());this.da&&this.da.po(this.isOpen())}};q.oq=function(a){au.e.oq.call(this,a);this.da&&!this.ce()&&this.da.po(l)};q.bi=function(){this.setActive(l);return j};q.GO=function(a){this.da&&this.da.oa()&&!this.Dj(a.target)&&this.Oc(l)};q.Dj=function(a){return a&&Fm(this.f(),a)||this.da&&this.da.Dj(a)||l};
q.Ml=function(a){var b=a.keyCode==32?"keyup":"key";if(a.type!=b)return l;if(this.da&&this.da.oa()){var c=this.da.Id(a);if(a.keyCode==27){this.Oc(l);return j}return c}if(a.keyCode==40||a.keyCode==38||a.keyCode==32){this.Oc(j);return j}return l};q.mq=function(){this.Oc(l)};q.Dxa=function(){this.ce()||this.Oc(l)};q.Ph=function(a){this.NP()||this.Oc(l);au.e.Ph.call(this,a)};q.fb=function(){this.da||this.rk(new Qt(this.L()));return this.da||k};
q.rk=function(a){var b=this.da;if(a!=b){if(b){this.Oc(l);this.Nb()&&this.fC(b,l);delete this.da}if(a){this.da=a;a.jA(this);a.M(l);a.jo(this.NP());this.Nb()&&this.fC(a,j)}}return b};q.bb=function(a){this.fb().Uf(a,j)};q.Im=function(a,b){this.fb().Xo(a,b,j)};q.eo=function(a){var b=this.fb().removeChild(a,j);b&&b.m()};q.er=function(a){var b=this.fb().SG(a,j);b&&b.m()};q.zn=function(a){return this.da?this.da.Ge(a):k};q.An=function(){return this.da?this.da.Vg():0};
q.M=function(a,b){var c=au.e.M.call(this,a,b);c&&!this.oa()&&this.Oc(l);return c};q.aa=function(a){au.e.aa.call(this,a);this.X()||this.Oc(l)};q.d7=function(){return this.PJ};q.NP=function(){return this.tAa};q.YH=function(){this.Oc(j)};
q.Oc=function(a){au.e.Oc.call(this,a);if(this.da&&this.aj(64)==a){if(a){this.da.Nb()||this.da.Y();this.ffa=$q(this.f());this.WY=gr(this.f());this.FR();this.da.uf(-1)}else{this.setActive(l);this.da.po(l);if(ha(this.wG)){this.wG=undefined;var b=this.da.f();b&&er(b,"","")}}this.da.M(a);this.Dja(a)}};
q.FR=function(){var a=this.d7()?5:7,b=new Yt(this.f(),a,!this.AS,this.AS),c=this.da.f();if(!this.da.oa()){c.style.visibility="hidden";$(c,j)}if(!this.wG&&this.AS)this.wG=fr(c);var d=this.d7()?4:6;b.qb(c,d,k,this.wG);if(!this.da.oa()){$(c,l);c.style.visibility="visible"}};q.DEa=function(){var a=gr(this.f()),b=$q(this.f()),c;var d=this.WY;c=d==a?j:!d||!a?l:d.left==a.left&&d.width==a.width&&d.top==a.top&&d.height==a.height;if(!c||!Dh(this.ffa,b)){this.WY=a;this.ffa=b;this.FR()}};
q.fC=function(a,b){var c=this.Ka(),d=b?c.g:c.Db;d.call(c,a,"action",this.mq);d.call(c,a,"highlight",this.KO);d.call(c,a,"unhighlight",this.XO)};q.KO=function(a){Cq(this.f(),"activedescendant",a.target.f().id)};q.XO=function(){this.da.yn()||Cq(this.f(),"activedescendant","")};q.Dja=function(a){var b=this.Ka(),c=a?b.g:b.Db;c.call(b,this.L().K(),"mousedown",this.GO,j);this.NP()&&c.call(b,this.da,"blur",this.Dxa);c.call(b,this.xd,"tick",this.DEa);a?this.xd.start():this.xd.stop()};
Sr("goog-menu-button",function(){return new au(k)});var bu=function(){};A(bu,Xt);ea(bu);q=bu.prototype;q.h=function(a){var b=this.dg(a),c={"class":"goog-inline-block "+b.join(" "),title:a.ig()||""};return a.L().h("div",c,[this.createCaption(a.getContent(),a.L()),this.KC(a.L())])};q.Ba=function(a){return a&&a.firstChild};
q.Ua=function(a,b){var c=im("*","goog-menu",b)[0];if(c){$(c,l);a.L().K().body.appendChild(c);var d=new Qt;d.Ua(c);a.rk(d)}var f=im("*",this.W()+"-caption",b)[0];f||b.appendChild(this.createCaption(b.childNodes,a.L()));var g=im("*",this.W()+"-dropdown",b)[0];g||b.appendChild(this.KC(a.L()));return bu.e.Ua.call(this,a,b)};q.createCaption=function(a,b){return b.h("div","goog-inline-block "+(this.W()+"-caption"),a)};q.KC=function(a){return a.h("div","goog-inline-block "+(this.W()+"-dropdown"),"\u00a0")};
q.W=function(){return"goog-flat-menu-button"};Sr("goog-flat-menu-button",function(){return new au(k,k,bu.eb())});var cu=function(a,b,c){ut.call(this,a,b,c);this.hT(j)};A(cu,ut);cu.prototype.bi=function(){return this.dispatchEvent("action")};Sr("goog-option",function(){return new cu(k)});var fu=function(a,b,c,d,f,g){var h=(d?d+" ":"")+"modal-dialog";pt.call(this,h,j);this.Yba(j);D("knol.ui.client.Dialog");this.Sf(a);var i=N({b:"div",c:"knol-dialog-content"});i.addElement({b:"div",c:"knol-dialog-message",d:b});this.Nd(i.v());g&&this.Ru(g);f&&U(this,"dialogselect",function(m){du=j;return f(m)});U(this,"afterhide",function(){du=eu=l})};E(fu,pt);var eu=l,du=l;
fu.prototype.M=function(a){if(a&&eu){var b=D("knol.ui.client.Dialog");b.S("Dialog box already shown")}pt.prototype.M.call(this,a);eu=a};var gu=function(a,b,c,d){var f=N({b:"div"}),g=new qt;g.G("ok","OK",j);fu.call(this,"An error has occurred",a,f.v(),"knol-dialog knol-dialog-error",d,g)};E(gu,fu);
var hu=function(){return D("knol.ui.client.ErrorDialog")},iu=function(a,b,c,d){if(!a){var f=new Jg;f.Xa("We are experiencing technical difficulties at the moment.  We're sorry for the inconvenience and  hope you'll try again later.<br /><br />");f.Xa(sn(bk("knol/Help",j),"Help").v());a=f.toString()}if(eu){a&&hu().S("suppressed : "+a);b&&hu().S("suppressed : "+b);c&&hu().S("suppressed : "+c)}else(new gu(a,b,c,d)).M(j)},ju=function(a,b){iu(k,a,b)},ku=function(a,b,c,d,f,g){var h=new qt;h.G("yes",d,!!g);
h.G("no",f,!g,j);fu.call(this,a,b,k,"knol-dialog knol-dialog-confirm",c,h)};E(ku,fu);
var lu=function(a,b,c,d,f){var g=new ku(a,b,c,d||"Yes",f||"No");g.M(j);return g},mu=function(a,b,c,d,f,g,h){lu(a,b,function(i){if(c&&i.ga=="yes")c.call(f);else d&&i.ga=="no"&&d.call(f)},g,h)},nu=function(a,b){var c=N({b:"p",d:"To help keep Knol free of spam, we want to make sure it's still you behind the keyboard."}),d=N({b:"p",d:"To continue on Knol, please type the characters you see below."}),f=N({b:"input",id:"knol-captcha-input",name:"guess",size:15,value:""}),g=N({b:"img",id:"knol-captcha-img",
src:Yj(Q().Ix(),a)}),h=N({b:"div"});h.addElement(c);h.addElement(d);h.addElement(f);h.addElement({b:"br"});h.addElement(g);ku.call(this,"Before you continue...",h.v(),b,"Continue","Quit",j)};E(nu,ku);
var ou=[],pu=[],qu=function(a,b){var c=new nu(a,b);c.M(j);return c},ru=function(a,b,c){if(eu){ou.push(b);ou.push(c)}else{eu=j;qu(a,function(d){if(b&&d.ga=="yes"){var f=Y("knol-captcha-input").value,g=V("knol.User.checkCaptchaAnswer",[a,f]);g.k(function(){pu=[];for(b.call(k);ou.length>0;){var i=ou.shift();i.call()}})}else if(c&&d.ga=="no"){ou=[];for(c.call(k);pu.length>0;){var h=pu.shift();h.call()}}})}},su=function(a,b){fu.call(this,a,b,k,"knol-dialog knol-dialog-success",k,st)};E(su,fu);
var tu=function(a,b){(new su(a,b)).M(j)},uu=function(a,b,c){for(var d="A save has completed, but there are some potentially unexpected modifications that were made while saving version "+(c+"."),f=Cn("si57lahl1w25/217"),g="If you want to take a look at how your content will appear when updated with the latest changes, "+('<a href="'+b+'" target="_blank">'+("view version "+(c+(" in a new window"+("</a>"+(". "+('<a href="'+f+'" target="_blank">Learn more</a>'))))))),h=N({b:"ul"}),i=0;i<a.length;i++)h.addElement({b:"li",
d:a[i]});var m=N({b:"div"});m.addElement({b:"p",d:d});m.addElement(h);m.addElement({b:"p",d:g});var n=m.v(),o=new qt;o.G("ok","OK",j);fu.call(this,"HTML contents have been unexpectedly modified",n,k,"knol-dialog knol-dialog-error",k,o)};E(uu,fu);
var vu=function(a){var b=G(dq),c=b.Ie()+1,d=new Ed(window.location),f=d.Dl();f.G("version",c);d.lA(f);d.oo("");var g=d.toString();(new uu(a,g,c)).M(j)},wu=function(a,b,c){var d=b-a+1,f="Your changes could not be automatically integrated with content from "+(d+" other version(s) saved by another author. <br /><br />You can save your changes anyway, and choose between your changes or the newer version of the knol where they might conflict.<br /><br />"),g=N({b:"a",href:fg().ea()+"#revisions",target:"revisions",
d:"View versions"}),h=f+g.v()+".",i=new qt;i.G("mine","Prefer My Changes",j);i.G("latest","Prefer Other(s) Changes",l);i.G("cancel","Cancel",l,j);fu.call(this,"Editing conflict detected",h,undefined,"knol-dialog knol-dialog-confirm",c,i)};E(wu,fu);
var xu=function(a,b,c){(new wu(a,b,c)).M(j)},yu=function(a,b,c,d){if(a){X.add(a,c);var f=N({b:"div",c:d,d:b});a.appendChild(vm(f.v()))}},zu=function(a,b,c){if(a){X.remove(a,b);var d=Pm(a,function(f){return f.className==c});C(d,function(f){a.removeChild(f)})}},Au=function(a,b){yu(a,b,"knol-inline-notification","knol-inline-notification-message")},Bu=function(a){zu(a,"knol-inline-notification","knol-inline-notification-message")},Cu=function(a){yu(Y("knol-inline-notifications"),a,"knol-toolbar-inline-notification",
"knol-toolbar-inline-notification-message")},Du=function(){zu(Y("knol-inline-notifications"),"knol-toolbar-inline-notification","knol-toolbar-inline-notification-message")},Eu=function(a){Au(Y("knol-inline-statements"),a)},Fu=function(){Bu(Y("knol-inline-statements"))};var Gu=function(a,b){this.Yla=a;this.eZ=b;this.SLa()},Hu=function(){return D("knol.ui.client.FileUpload")};
Gu.prototype.KOa=function(a,b){Hu();var c=Y("knol-fileupload-input"),d=Y("upload_target"),f=z(function(){var g=Km(d).body.innerHTML;b&&b.m();if(g){var h=eval("("+g+")");if(h&&h[0]=="ok")window.location=h[1];else{var i=h[1];if(i.indexOf("upload empty")!=-1)new iu("File upload not successful. The file is empty or missing.",i);else new iu("File upload not successful. Cannot extract contents from selected file as it is in an unsupported document format.",i)}}else new iu("Upload not successful. Please try again later.")},
this);if(c.value.length>0){a&&a.preventDefault();U(d,"load",f);document.forms["knol-fileupload-form"].submit()}};
Gu.prototype.SLa=function(){Hu();var a=Cn("si57lahl1w25/6"),b=N({b:"a",href:a,d:"Learn more"}),c="Select the file to import content from.  "+b.v(),d=tm("div");d.appendChild(vm(c));d.appendChild(vm("<br/><br/>"));var f;var g=" Supported file types include Microsoft Word documents (doc), Microsoft Excel spreadsheets (xls), PDF documents (pdf), text files (txt) and many others.";f=gd(g)?g.replace(qd,"<span dir=rtl>$&</span>"):g.replace(qd,"<span dir=ltr>$&</span>");d.appendChild(vm(f));var h=tm("div",
{id:"knol-ui-upload"});h.appendChild(d);var i=tm("form",{d:d,method:"POST",name:"knol-fileupload-form",id:"knol-fileupload-form",enctype:"multipart/form-data",encoding:"multipart/form-data",target:"upload_target",action:df()+"knol/system/services/knolUploadFile"}),m=tm("input",{type:"file",id:"knol-fileupload-input",size:"40",name:"file"});i.appendChild(m);var n=tm("input",{type:"hidden",id:"knol-fileupload-insertid",name:"insertId"});i.appendChild(n);var o=tm("input",{type:"hidden",name:"jot.xtok",
value:Yi("jotxtok")});i.appendChild(o);h.appendChild(i);var p=tm("iframe",{id:"upload_target",name:"upload_target",src:"#",style:"width:0;height:0;border:0px solid #fff"});h.appendChild(p);this.Yla.appendChild(h);var s=Y("knol-fileupload-input");U(s,"change",this.eZ);U(s,"keyup",this.eZ)};var Iu=function(){if(Y("knol-throbber"))e("Throbber already bound to page");var a=N({b:"div",id:"knol-throbber",style:"display: none"});a.addElement({b:"div",id:"knol-throbber-message"});var b=vm(a.v()),c=Y("knol-throbber-c")||document.body;this.aU=c.appendChild(b);this.PCa=this.aU.firstChild;this.QB=0;this.cG=[]};Iu.prototype.Nea=function(){var a=qb(this.cG)||"";this.PCa.innerHTML=a};Iu.prototype.LMa=function(a){this.QB++;a&&this.cG.push(a);this.Nea();this.aU.style.display=""};var Ju=function(a){G(Iu).LMa(a)};
Iu.prototype.stop=function(a){this.QB&&this.QB--;if(a){var b;a:{var c=this.cG,d=a,f=c.length-1;if(c.lastIndexOf)b=c.lastIndexOf(d,f);else if(Array.lastIndexOf)b=Array.lastIndexOf(c,d,f);else{if(f<0)f=Math.max(0,c.length+f);for(var g=f;g>=0;g--)if(g in c&&c[g]===d){b=g;break a}b=-1}}b!=-1&&Bb(this.cG,b)}this.Nea();if(!this.QB)this.aU.style.display="none"};var Ku=function(a){G(Iu).stop(a)};var Lu=function(a){this.Qb=a};Lu.prototype.load=function(a){this.SP||(this.Ob()?a():this.x8(a))};Lu.prototype.iZ=function(){return j};Lu.prototype.Ob=function(){return l};var Mu=/jot_client_localized_client_base(__\w\w)?\.js/,Nu=/jot_client_client_base\.js/;Lu.prototype.hva=function(){for(var a=document.getElementsByTagName("script"),b=0;b<a.length;b++)if(a[b].src&&(a[b].src.match(Nu)||a[b].src.match(Mu)))return a[b].src.replace("base",this.Qb);e(new Error("Base script not found"))};
Lu.prototype.x8=function(a){if(this.Ob()){this.SP=l;Ku();var b=V("knol.User.noop",[]);b.k(a)}else{if(!this.SP){this.SP=j;Ju();var c=this.hva();window.setTimeout(z(function(){var d=z(function(){var g=rm("script",{type:"text/javascript",src:c}),h=["load","error","readystatechange"];U(g,h,function(i){if((i.type!="readystatechange"||g.readyState=="loaded")&&!this.Ob()){Ku();ju("Failed to load script: "+i.type+" "+g.readyState)}},l,this);document.body.appendChild(g)},this),f=z(function(){this.iZ()?d():
window.setTimeout(f,100)},this);f()},this),0)}window.setTimeout(z(this.x8,this,a),100)}};var Ou=function(){this.Qb="edit"};E(Ou,Lu);Ou.prototype.Ob=function(){try{return r(Pu)}catch(a){return l}};Ou.prototype.iZ=function(){try{eval("document.namespaces");return j}catch(a){return l}};var Ru=l,Bj=function(a,b,c,d){var f=xj(),g=new li;a.add("version",String(cf()));var h=a.z("func")||a.z("method"),i=a.z("args");if(h=="knol.User.noop"&&i=="[false]"){g.sa(undefined);return g}var m=Dj(),n=function(v){Ku();var w=v.target.Gl(),x=w.result,B=w.error_code;if(r(x))g.sa(x);else if(r(B))switch(B){case 3:iu("You are no longer logged in or your session expired.  Please refresh the page and try again.");g.Ja(B);break;case 1:d||iu("The Knol service was recently updated.  Please refresh the page and try again. We're sorry for the inconvenience.");
g.Ja(B);break;case 2:iu("Sorry! You have reached your daily quota for the action you are performing. Please try again tomorrow.");g.Ja(B);break;case 5:var H=w.captcha_token;ru(H,function(){var W=Bj(a,b,c,d);W.k(g.sa,g);W.w(g.Ja,g)},function(W){g.Ja(W)});break;case 6:iu("Sorry! You have exceeded the number of CAPTCHA attempts that we allow. Please try again tomorrow.");g.Ja(B);break;default:var F="Unknown error: "+(B+".  Please refresh the page and try again. We're sorry for the inconvenience."),M=
"rpc: "+h+" upon node: "+a.z("node");iu(F,M);g.Ja(B);break}else{f.S("Server returned no response");if(a.z("func"))g.Ja("No response received for function call to: "+a.z("func"));else a.z("method")?g.Ja("No response received for server-side method call to: "+a.z("method")+" upon node: "+a.z("node")):g.Ja("No response received for unknown server-side call")}Ej(m,h)},o=function(v){Ku();var w=v.target.E3();if(!gf){var x;var B=v.target;if(gm("base").length){var H=B.xx();x=H==1||H==5}else x=l;if(x)f.S("Security warning, not showing error: "+
w);else Gj(v.target)||g.Ja("HTTP error: "+w)}Ej(m,h)},p=df()+b+(c?"/system/services/CXhrSwitch":"/system/services/XhrSwitch");if(zb(yj,h)){p=df()+b+"/system/services/RpcSwitch";a.add("webspace",b)}Ju();var s={},u;if(u=a.z("func"))s.func=u;if(u=a.z("method"))s.method=u;if(c){if(u=a.z("node"))s.node=u;if(u=a.z("args"))s.args=u;if(u=a.z("version"))s.version=u}s.hl=og();s.gl=Af();s.country_domain=rg();if(Ru)s.debug="1";vj(p,n,o,"POST",a.toString(),k,s);return g},Tu=function(a,b,c){var d=Yi("jotxtok");
if(d)a&&a.call(c);else{var f;f=I?window.location.pathname==ef():l;if(f)Su(a,b,c);else{var g=V("knol.User.noop",[j]);g.k(function(){if(Yi("jotxtok"))a&&a.call(c);else b&&b.call(c)});g.w(b,c)}}},Su=function(a,b,c){var d=document.createElement("iframe");d.style.position="absolute";d.style.top="-5000px";d.style.left="-5000px";d.src=bk("system/knol/pages/Null");document.body.appendChild(d);var f=function(){Oi(i);ba.clearTimeout(m);Z(d)},g=function(){f();a&&a.call(c)},h=function(){f();b&&b.call(c)},i=U(d,
"load",function(){var n=d.contentWindow.document.cookie,o=/jotxtok=([^;]+)\s*;?/.exec(n);if(o&&o[1]){var p="jotxtok",s=o[1],u=undefined,v=undefined,w=undefined;if(/[;=]/.test(p))e(Error('Invalid cookie name "'+p+'"'));if(/;/.test(s))e(Error('Invalid cookie value "'+s+'"'));r(u)||(u=-1);var x=w?";domain="+w:"",B=v?";path="+v:"",H;if(u<0)H="";else if(u==0){var F=new Date(1970,1,1);H=";expires="+F.toUTCString()}else{var M=new Date((new Date).getTime()+u*1000);H=";expires="+M.toUTCString()}document.cookie=
p+"="+s+x+B+H;g()}else h()},l),m=ba.setTimeout(h,5000)};var Uu=function(a,b,c,d,f){this.Lb=la(a)?a:function(){};this.Ms=la(b)?b:function(){};if(this.H=Q()){var g=this;this.Gk=d||[];this.iC=c;var h=z(g.ek,g);if(!f&&!this.Gk.length>0){var i=Cj(this.H.n(),"listUsersSites",[]);i.k(function(m){this.Gk=m;h()},this);i.w(h)}else h()}};E(Uu,fu);
Uu.prototype.ek=function(){var a=N({b:"div",id:"knol-website-verify-form"}),b=Cn("si57lahl1w25/259"),c=N({b:"a",target:"_blank",href:b,d:"Learn more"}),d="In order to create a moderated collection, we require you to verify that you own a website. "+c.v();a.addElement({b:"div",c:"knol-create-suboption",d:d});var f=N({b:"a",target:"_blank",href:"http://www.google.com/webmasters/tools",d:"Google Webmaster Tools"});if(this.Gk&&this.Gk.length>0){a.N();Vu(a,this.Gk)}else{this.a8=j;var g="Please go to "+
(f.v()+" to verify ownership of a website.");a.addElement({b:"div",c:"knol-create-suboption",d:g})}a.ka();var h=this.al(),i="knol-dialog",m=z(this.Yz,this),n=a.v();fu.call(this,"Verify website ownership",n,k,i,m,h);this.M(j);var o=Y("knol-website-verify-dropdown");o&&U(o,["click","change"],z(this.Pea,this));this.Pea()};
var Vu=function(a,b,c){if(b&&b.length>0){var d=c||"knol-create-suboption",f=N({b:"a",target:"_blank",href:"http://www.google.com/webmasters/tools",d:"Google Webmaster Tools"}),g="Please select one of the websites you are already verified for through "+(f.v()+":");a.addElement({b:"div",d:g,c:d});var h=N({b:"select",name:"website-verify",c:d,id:"knol-website-verify-dropdown"});h.addElement(N({b:"option",value:k,d:"Select a website..."}));for(var i=0;i<b.length;i++){var m=b[i],n=N({b:"option",value:m,
d:m});h.addElement(n)}a.addElement(h)}};Uu.prototype.Yz=function(a){if(a.ga=="ok"){var b=this.lf().Ug("ok");if(b.disabled)a.preventDefault();else if(this.a8)window.location=Cn("si57lahl1w25/259");else this.Lb(this.od)}else a.ga=="continue"&&this.iC?this.iC():this.Ms()};Uu.prototype.Pea=function(){this.od=k;if(this.a8&&!this.iC)this.rc(j);else{var a=Y("knol-website-verify-dropdown");if(a){var b=a.value;if(b)this.od=b}this.od?this.rc(j):this.rc(l)}};
Uu.prototype.al=function(){var a=new qt;this.Sk=a;this.iC&&a.G("continue","<< Back",l);a.G("ok","Create Collection",l);a.G("cancel","Cancel",l,j);return a};Uu.prototype.rc=function(a){var b=this.lf().Ug("ok");if(b)b.disabled=!a};var Wu=function(a,b,c,d,f){new Uu(a,b,c,d,f)};var Xu=function(a){var b=Q();this.$Ta=[];this.PA=k;this.MR=l;this.hp=0;this.oP=l;this.Gk=a||[];this.e6=!!a;if(b){var c=this,d=function(){Ck(z(c.ek,c))},f=function(){if(c.Gk.length==0){var i=Cj(b.n(),"listUsersSites",[]);i.k(function(m){c.Gk=m;c.e6=j})}d()},g=function(){f()};Tu(g,ju,k)}else{var h=new Ed(sf());window.location=Cf(h.Hf("continue"),"createknol")}};E(Xu,fu);q=Xu.prototype;
q.ek=function(){Yu();var a=Q();this.IVa=a.Hra();var b=N({b:"div",id:"knol-create-knol-form"}),c=this.Wf(Zu.gV,j,this.fka);b.addElement(c);var d=Cn("si57lahl1w25/102"),f=N({b:"span",id:"knol-create-knol-learn",children:[{b:"a",target:"_blank",href:d,d:"Learn more about templates"}]});c=this.Wf(Zu.uB,l,this.lla);c.addElement(f);var g="display:none";c.addElement({b:"div",c:"knol-create-suboption",style:g,d:"Select a template or search for a template. You may also enter a knol address:"});c.addElement(N({b:"div",
style:g,c:"knol-selector-search",id:"knol-create-knol-search"}));b.addElement(c);b.ka();var h=this.Wf(Zu.VI,l,"Create a new <span class='knol-create-emphasis'>collection</span> of knols.");d=Cn("si57lahl1w25/238");f=N({b:"span",id:"knol-create-knol-learn",children:[{b:"a",target:"_blank",href:d,d:"Learn more about collections"}]});h.addElement(f);h.addElement({b:"div",style:g,c:"knol-create-suboption",d:"A collection is a list of knols that you organize."});var i=N({b:"div",style:g,c:"knol-create-suboption-col",
id:"knol-create-sub-collection-option"}),m="Moderated Collection (requires a verified website).  "+('<a href="'+Cn("si57lahl1w25/259")+'" id="knol-create-knol-learn" target="_blank">Learn more</a>'),n=this.Wf(Zu.Sr,l,m,"sub-collection",l,"checkbox");n.addElement({b:"div",style:g,d:"This type of collection allows you to customize the appearance of the knols in the collection.",c:"knol-create-suboption"});var o=N({b:"div",style:g,c:"knol-create-suboption",id:"knol-create-sub-mod-col-option"}),p=this.Wf(Zu.TI,
j,"<span class='knol-create-emphasis'>Author-Centric</span> Collection.","sub-mod-col");p.addElement({b:"div",d:"Edits to the knols in the collection are approved only by the original authors of the knols.",c:"knol-create-sub-desc"});o.addElement(p);var s=this.Wf(Zu.uJ,l,"<span class='knol-create-emphasis'>Shared-Authorship</span> Collection.","sub-mod-col");s.addElement({b:"div",d:"Edits to the knols in the collection are approved by both the original authors of the knols and the moderators of the collection.",
c:"knol-create-sub-desc"});o.addElement(s);var u=this.Wf(Zu.mJ,l,"<span class='knol-create-emphasis'>Moderator-Centric</span> Collection.","sub-mod-col");u.addElement({b:"div",d:"Once accepted into the collection, edits to the knols in the collection are approved only by the moderators of the collection.",c:"knol-create-sub-desc"});o.addElement(u);n.addElement(o);i.addElement(n);h.addElement(i);b.addElement(h);b.ka();if(a instanceof Fj||a.cq().dq()!=4){var v=this.Wf(Zu.AB,l,"<span class='knol-create-emphasis'>Import</span> a file as a new knol.");
v.addElement(N({b:"div",style:g,c:"knol-create-suboption",id:"knol-create-knol-import"}));b.addElement(v);b.ka()}if(!this.ve&&a&&a.wb()){c=this.Wf(Zu.KW,l,"Create a new promotion.");c.addElement({b:"div",c:"knol-create-knol-text",d:"A promotion creates a label.  Knols can then join the promotion and be searchable under its label.  They will also show icons when viewed in search results."});c.N();c.addElement({b:"div",id:"knol-create-knol-inline"});c.addElement(this.PC("Label: ","knol-create-knol-promo-label",
30));c.addElement(this.PC("Language Restrict: ","knol-create-knol-promo-language",5,"(if applicable)"));c.addElement(this.PC("Country Restrict: ","knol-create-knol-promo-country",3,"(if applicable)"));b.addElement(c);b.N()}var w=this.al(),x="knol-dialog",B=z(this.Yz,this),H=b.v();fu.call(this,this.Ve,H,k,x,B,w);this.M(j);this.Mk()};
q.Mk=function(){this.vz={};for(var a in Zu){var b=Zu[a],c=Y(this.Rn+"-"+b)||Y("sub-collection-"+b)||Y("sub-mod-col-"+b);if(c){this.vz[b]=c;U(c,"click",z(this.Ko,this))}}var d=Y("knol-create-knol-import");if(d)this.G1=new Gu(d,z(this.jza,this))};q.jza=function(){this.jH(Zu.AB);this.Ko(k)};q.DNa=function(a,b){var c=this.Br.ea();a&&this.jH(Zu.uB);var d=c&&b?z(this.QC,this):k;this.Ko(d)};q.Yz=function(a){if(a.ga=="ok"){var b=this.lf().Ug("ok");b.disabled?a.preventDefault():this.Ko(z(this.QC,this,a))}};
q.al=function(){var a=new qt;this.Sk=a;a.G("ok",this.Ig,j,l);a.G("cancel","Cancel",l,j);return a};q.Wf=function(a,b,c,d,f,g){b=b?"true":undefined;var h=N({b:"div",c:"knol-create-knol-radio-option"}),i=d||this.Rn,m=i+"-"+a;h.addElement({b:"input",type:g||"radio",c:"knol-create-knol-option",name:i,id:m,value:a,checked:b,disabled:f?f:undefined});h.addElement({b:"label","for":m,d:c,id:m+"-label",c:f?"knol-create-knol-disable":""});return h};
q.PC=function(a,b,c,d){var f="display:none",g=N({b:"div",c:"knol-create-suboption",style:f});g.addElement({b:"div",d:a,c:"knol-create-knol-opt-desc"});var h=N({b:"input",type:"text",name:b,size:c,maxlength:c,id:b,value:"",c:"knol-create-knol-textbox"});g.addElement(h);d&&g.addElement(d);g.ka();return g};
q.QC=function(a){var b=k,c=gg(),d=c;if(this.PA)b=this.PA.n();var f,g,h;Yu();var i,m,n;if(this.MR){for(var o=["knol-create-knol-promo-label","knol-create-knol-promo-language","knol-create-knol-promo-country"],p=[],s=0;s<o.length;s++){var u=o[s],v=Y(u);if(v)p[s]=v.value}i=p[0];n=p[1];m=p[2];b="knol.promotion"}if(i){var w=zh(i);if(w!=i){var x=Y("knol-create-knol-promo-label");if(x)x.value=w;a&&a.preventDefault();var B=Y("knol-create-knol-inline");if(B){Bu(B);Au(B,"You must not use special characters in your label, try again with the corrected label:")}return}}if(m)m=
m.toLowerCase();var H=function(){f&&window.history.back()},F=z(iu,k,k,"create knol",k,H),M=z(function(W){var ra=new Fk(sk(d),"createKnol");ra.la([c,b,k,k,g,h,k,i,n,m,this.hp,k,W],function(T){var ab=K({Mf:T}),sc=ab.ea();sc+="#edit";if(f)window.location.replace(sc);else window.location=sc},F)},this);if(this.hp>=2){a&&a.preventDefault();this.M(l);Wu(M,function(){},z(function(){new Xu(this.Gk)},this),this.Gk,this.e6)}else this.oP&&this.G1?this.G1.KOa(a,this):M.call(this)};var Yu=function(){return D("knol.ui.client.CreateKnolDialog")};
q=Xu.prototype;q.ZFa=function(){var a=Y("knol-create-knol-search");if(a)if(this.Br){var b=V("knol.ui.AdvancedSearchResults.getDefaultTemplateResults",[pg()=="user"?k:dg(),gg(),this.ve]);b.k(function(c){this.Br.fca(c)},this)}};
q.Ko=function(a){Yu();var b=la(a)?a:function(){},c;for(var d in Zu){var f=Zu[d],g=this.vz[f];if(g&&g.checked&&g.parentNode.parentNode&&g.parentNode.parentNode.style.display!="none")c=f;var h=f==c,i=new $u(g,l,l,2);Rb(i,function(s){if(r(s.className)&&(s.className=="knol-create-suboption"||s.className=="knol-selector-search"||s.className=="knol-create-suboption-col")){s.style.visibility=h?"visible":"hidden";s.style.display=h?"":"none"}})}var m=k,n=l;this.oP=this.MR=l;this.hp=0;switch(c){case Zu.gV:break;
case Zu.uB:var o=G(Ou);o.load(z(function(){if(!this.Br){var s=Y("knol-create-knol-search");this.Br=new av(s,this.ve,z(this.DNa,this));this.ZFa()}if(this.Br){var u=this.Br.ea();if(u)m=ck(u);else{var v=this.Br.Ft();m=ck(v)}n=!m}},this));break;case Zu.VI:this.hp=1;break;case Zu.Sr:case Zu.TI:this.hp=2;break;case Zu.uJ:this.hp=3;break;case Zu.mJ:this.hp=4;break;case Zu.KW:this.MR=j;break;case Zu.AB:this.oP=j;var p=Y("knol-fileupload-input");n=!p||p.value.length==0;break}this.ro(c);this.PA=k;if(n){this.rc(l);
b()}else if(m)Ck(z(function(){var s=l;if(m){var u=K(m),v=Q();if(v&&u&&v.Qka(u,this.ve)){this.PA=u;s=j}}this.rc(s);b(this.PA)},this),z(function(){this.rc(l);b()},this));else{this.rc(j);b()}};q.rc=function(a){var b=this.lf().Ug("ok");if(b)b.disabled=!a};q.ro=function(a){if(this.o_){var b=this.lf().Ug("ok");if(b){var c=this.Ig;if(a==Zu.VI)c=this.o_;else if(a==Zu.AB)c=this.Dma;else if(a==Zu.Sr||a==Zu.TI||a==Zu.uJ||a==Zu.mJ)c="Continue";b.innerHTML=c}}};q.Ve="How do you want to start?";q.fka="<span class='knol-create-emphasis'>Create</span> a new knol. This is the default.";
q.lla="<span class='knol-create-emphasis'>Copy</span> an existing knol.";q.Ig="Create Knol";q.o_="Create Collection";q.Dma="Upload";q.Rn="knol-create";var Zu={gV:"option-blank",uB:"option-choose",VI:"option-collect",KW:"option-promo",AB:"option-import",Sr:"option-moderated-collection",TI:"option-author-centric",uJ:"option-shared-authorship",mJ:"option-moderator-centric"};Xu.prototype.jH=function(a){for(var b in Zu){var c=Zu[b],d=Y(this.Rn+"-"+c);if(d)d.checked=c==a}};Xu.prototype.ve=l;var bv=function(a,b,c,d){if(!ia(a)||!ia(b))e(Error("Start and end parameters must be arrays"));if(a.length!=b.length)e(Error("Start and end points must be the same length"));this.hv=a;this.Toa=b;this.gD=c;this.wX=d;this.coords=[]};A(bv,Zi);var cv={},dv=k,ev=function(){$i.clearTimeout(dv);var a=ua();for(var b in cv)cv[b].U_(a);dv=cc(cv)?k:$i.setTimeout(ev,20)},fv=function(a){var b=pa(a);delete cv[b];if(dv&&cc(cv)){$i.clearTimeout(dv);dv=k}};q=bv.prototype;q.Kb=0;q.V1=0;q.kh=0;q.Ag=k;q.k1=k;q.lQ=k;
q.play=function(a){if(a||this.Kb==0){this.kh=0;this.coords=this.hv}else if(this.Kb==1)return l;fv(this);this.Ag=ua();if(this.Kb==-1)this.Ag-=this.gD*this.kh;this.k1=this.Ag+this.gD;this.lQ=this.Ag;this.kh||this.rz();this.qEa();this.Kb==-1&&this.vEa();this.Kb=1;var b=pa(this);b in cv||(cv[b]=this);dv||(dv=$i.setTimeout(ev,20));this.U_(this.Ag);return j};q.stop=function(a){fv(this);this.Kb=0;if(a)this.kh=1;this.AU(this.kh);this.BEa();this.oG()};
q.pause=function(){if(this.Kb==1){fv(this);this.Kb=-1;this.pEa()}};q.o=function(){this.Kb!=0&&this.stop(l);this.RDa();bv.e.o.call(this)};q.o0=function(){this.m()};q.U_=function(a){this.kh=(a-this.Ag)/(this.k1-this.Ag);if(this.kh>=1)this.kh=1;this.V1=1000/(a-this.lQ);this.lQ=a;la(this.wX)?this.AU(this.wX(this.kh)):this.AU(this.kh);if(this.kh==1){this.Kb=0;fv(this);this.YDa();this.oG()}else this.Kb==1&&this.iR()};
q.AU=function(a){this.coords=new Array(this.hv.length);for(var b=0;b<this.hv.length;b++)this.coords[b]=(this.Toa[b]-this.hv[b])*a+this.hv[b]};q.iR=function(){this.kl("animate")};q.rz=function(){this.kl("begin")};q.RDa=function(){this.kl("destroy")};q.oG=function(){this.kl("end")};q.YDa=function(){this.kl("finish")};q.pEa=function(){this.kl("pause")};q.qEa=function(){this.kl("play")};q.vEa=function(){this.kl("resume")};q.BEa=function(){this.kl("stop")};
q.kl=function(a){this.dispatchEvent(new gv(a,this))};var gv=function(a,b){oi.call(this,a);this.coords=b.coords;this.x=b.coords[0];this.y=b.coords[1];this.CWa=b.coords[2];this.gD=b.gD;this.kh=b.kh;this.RUa=b.V1;this.Bg=b.Kb;this.dUa=b};A(gv,oi);var hv=function(a,b,c,d,f){bv.call(this,b,c,d,f);this.Aa=a};A(hv,bv);hv.prototype.zI=da;hv.prototype.iR=function(){this.zI();hv.e.iR.call(this)};hv.prototype.oG=function(){this.zI();hv.e.oG.call(this)};hv.prototype.rz=function(){this.zI();hv.e.rz.call(this)};var iv=function(a,b,c){if(b.length!=2||c.length!=2)e(Error("Start and end points must be 2D"));hv.apply(this,arguments)};A(iv,hv);
iv.prototype.zI=function(){this.Aa.style.left=Math.round(this.coords[0])+"px";this.Aa.style.top=Math.round(this.coords[1])+"px"};var jv=function(a,b,c,d){var f=[a.offsetLeft,a.offsetTop];iv.call(this,a,f,b,c,d)};A(jv,iv);jv.prototype.rz=function(){this.hv=[this.Aa.offsetLeft,this.Aa.offsetTop];jv.e.rz.call(this)};var mv=function(a,b){var c=kv(a);if(b<0||b>c)e(new Error("Accordion bounds exceeded"));var d="knol-element-toggle-level-"+b,f=/knol-element-toggle-level-\d+/;if(f.exec(a.className))a.className=a.className.replace(f,d);else a.className+=" "+d;Pm(a,function(g){if(g.className){var h=lv(g.className,"knol-element-toggle-threshold-");if(h)g.style.display=b>=h?"":"none"}})},lv=function(a,b){var c=(new RegExp(b+"(\\d+)")).exec(a);return c?parseInt(c[1],10):undefined},nv=function(a){return lv(Y(a).className,
"knol-element-toggle-level-")||0},kv=function(a){return lv(a.className,"knol-element-toggle-level-max-")||Number.MAX_VALUE},ov=function(a,b){if(a)a.style.display="";if(b)b.style.display="none"},qv=function(a,b,c){var d=Y(a),f=d,g=nv(f.id);g+=1;mv(f,g);pv(d);ov(b?Y(b):k,c?Y(c):k)},rv=function(a,b,c){var d=Y(a),f=nv(d.id);f+=-1;mv(d,f);ov(b?Y(b):k,c?Y(c):k)},sv=function(a){var b=a.parentNode,c=a.value||a.innerHTML,d=a.disabled;Z(a);var f=new as(c);f.Y(b);f.aa(!d);return f},tv=function(a,b,c){var d=
c||ba||window,f=d.document,g=0,h=0;if(!ue&&f.compatMode=="CSS1Compat"){if(a!=k){g=a-f.documentElement.scrollLeft;f.documentElement.scrollLeft=a}if(b!=k){h=b-f.documentElement.scrollTop;f.documentElement.scrollTop=b}}else{if(a!=k){g=a-f.body.scrollLeft;f.body.scrollLeft=a}if(b!=k){h=b-f.body.scrollTop;f.body.scrollTop=b}}return new Ah(g,h)},uv=function(a,b,c){var d=mm(c).y;if(a<d)return tv(k,a,c).y;else{var f=d+lm(c).height;if(b>f){var g=Math.min(a,d+b-f);return tv(k,g,c).y}}return 0},pv=function(a){var b=
Yq(a).y,c=b+fr(a).height;return uv(b,c)},vv=function(a,b){if(I&&(b||!Pe("7")))ba.setTimeout(function(){if(y(a))a=Y(a);if(a)a.className=a.className},0)},wv=function(a,b){if(I){a.style.overflow="visible";a.style.padding="0 "+(b||"5px")}},xv=function(a){if(a&&I){var b=im("iframe","map_embed",a);if(b.length){var c=rm("div",{style:"display: none"});document.appendChild(c);for(var d=0;d<b.length;d++)c.appendChild(b[d]);ba.setTimeout(function(){Z(c)},10000)}}};var yv=function(a,b,c,d,f,g,h,i,m,n){this.Qb=n?"-"+n:"";this.Ve=a;this.H=b;this.IF=c;this.DA=d;this.nZ=f;this.QEa=g;this.FL=h||this.IF.Mh();this.tG=i;this.WH=!m;this.qR=m;var o=this.wma(),p=this.jma(o);U(p[0],p[1],z(function(s){if(!this.WH||s.ga=="ok"){var u=Y("knol-inline-error"+this.Qb);zu(u,"knol-inline-error","knol-inline-error-message");var v=this.Hua();if(!v)return l;this.DA(v,this.Bva(),this.Xra(),this.lwa(),this.gra());if(this.WH)this.m();else this.qR.innerHTML="";return j}},this))};
E(yv,fu);var zv=function(a){var b=k;if(a)try{b=a.Fa()}catch(c){}return!!b&&b.va()};q=yv.prototype;q.Wo=function(a){var b=N({b:"tr",children:[{b:"td",c:"spacer"}]});a.addElement(b)};q.Fma=function(a){var b=N({b:"div",id:"knol-inline-error"+this.Qb});a.addElement(b)};
q.xma=function(a){if(!this.H||this.H.n()!=gg()){var b=D("knol.ui.client.EmailDialog");b.za("Email user not set or does not match current user.")}else{var c=this.H&&this.H.Ix();if(c){var d=N({b:"span",id:"knol-email-from-tag",d:c}).v(),f="From: "+d;a.addElement({b:"tr",children:[{b:"td",c:"label",d:f}]});this.Wo(a)}}};
q.fna=function(a){var b=this.QEa||"To: ",c=N({b:"tr",children:[{b:"td",c:"label",d:b}]}),d=N({b:"tr",children:[{b:"td",children:[{b:"textarea",rows:"1",cols:"70",c:"knol-email-text-box",id:"knol-email-recipients"+this.Qb,name:"recipients"}]}]}),f=N({b:"tr",children:[{b:"td",c:"inote",children:[{b:"i",d:"Separate email addresses with commas"}]}]});a.addElement(c);a.addElement(d);a.addElement(f)};q.AK=function(a,b){this.zK(a,"http://"+window.location.host+this.IF.Dx(),this.IF.Dx(),b)};
q.zK=function(a,b,c,d,f,g){var h=N({b:"input",id:"knol-email-subject"+this.Qb,c:"knol-email-text-box",name:"subject",value:this.FL}),i={b:"span",id:"knol-email-subject"+this.Qb,c:"knol-fixed-email-subject",d:"<br />"+of(this.FL)},m=N({b:"tr",children:[{b:"td",children:[d?h:i]}]});a.addElement(m);if(this.tG){var n=Ze(this.tG).replace(/\n/g,"<br />"),o=n.indexOf("http://");if(o>=0){var p=n.indexOf(". ",o);c=n.substring(o,p);n=n.substring(0,o)+N({b:"a",href:c,d:c}).v()+n.substring(p)}var s=N({b:"tr",
children:[{b:"td",c:"indent knol-fixed-email-body",d:n}]}),u="http://"+window.location.host+c;if(ga(b))b=u;var v=N({b:"tr",children:[{b:"td",c:"indent knol-fixed-email-link",children:[{b:"a",href:u,d:b}]}]}),w="";this.Wo(a);a.addElement(s);this.Wo(a);a.addElement(v);this.Wo(a);if(f&&g){var x=Ze(f).replace(/\n/g,"<br />"),B=N({b:"tr",children:[{b:"td",c:"indent knol-fixed-email-body",d:x}]});a.addElement(B);this.Wo(a);w=N({b:"tr",children:[{b:"td",c:"indent knol-fixed-email-link",children:[{b:"a",
target:"_blank",href:g,d:g}]}]});a.addElement(w);this.Wo(a)}}};q.hna=function(a){var b=N({b:"tr",children:[{b:"td",c:"note",d:"You may also type an additional message."}]}),c=N({b:"tr",children:[{b:"td",children:[{b:"textarea",rows:"8",cols:"70",c:"knol-email-text-box",id:"knol-email-message"+this.Qb,name:"message"}]}]});a.addElement(b);a.addElement(c)};
q.kma=function(a){var b=N({b:"tr"});b.addElement({b:"td",children:[{b:"input",type:"checkbox",id:"knol-email-ccMe"+this.Qb,name:"ccMe"},{b:"span",c:"note",d:"Send me a carbon copy (CC) of this email."}]});a.addElement(b)};q.H4=function(){return"Send Request"};q.r2=function(){return"Cancel"};q.al=function(){var a=new qt;a.G("ok",this.H4(),l);a.G("cancel",this.r2(),l,j);return a};q.Mpa=function(a,b){var c="knol-dialog knol-email-dialog";fu.call(this,this.Ve,a.v(),k,c,k,b);this.M(l);return[this,"dialogselect"]};
q.ima=function(a){var b=N({b:"span",c:"knol-manage-button",children:[{b:"input",type:"button",value:this.H4(),id:"knol-email-button-send"+this.Qb}]}),c=N({b:"span",c:"knol-manage-button",children:[{b:"input",type:"button",value:this.r2(),id:"knol-email-button-cancel"+this.Qb}]});a.addElement(b);a.addElement(c);this.qR.innerHTML=a.v();var d=Y("knol-email-button-send"+this.Qb);if(d)d=sv(d);var f=Y("knol-email-button-cancel"+this.Qb);if(f){f=sv(f);U(f,"action",z(function(){this.nZ&&this.nZ();this.qR.innerHTML=
""},this))}return[d,"action"]};q.wma=function(){var a=N({b:"div",id:"knol-email-form"+this.Qb});this.Fma(a);var b=Q().cq().dq(),c=l;if(b!=0&&b!=3&&b!=4)c=j;var d=N({b:"table",c:"knol-email-table"});this.xma(d);this.fna(d);this.Wo(d);this.AK(d,c);c&&this.hna(d);this.kma(d);a.addElement(d);return a};q.jma=function(a){var b;if(this.WH){var c=this.al();b=this.Mpa(a,c)}else b=this.ima(a);return b};
q.Hua=function(){var a=Y("knol-email-recipients"+this.Qb).value;a=a.replace(/\s+/g,"");var b=a.split(","),c=0;for(Av=0;Av<b.length;++Av){var d=b[Av];if(d.length!=0){if(!pf.test(d)){var f="The email address "+('"'+Ze(b[Av])+'" is not recognized. Please correct it and try again.');Bv(f,this.Qb);return k}c++}}if(c){if(c>10){Bv("The maximum number of allowed recipients is: 10",this.Qb);return k}}else{Bv("Please specify at least one recipient.",this.Qb);return k}return b};
q.Bva=function(){var a=Y("knol-email-subject"+this.Qb).value;a=kf(a,250);if(!Ha(Aa(a)))a=this.FL;return a};q.lwa=function(){var a=Y("knol-email-message"+this.Qb),b;if(a)b=a.value;else return"";if(b)b=kf(b,1500);else return"";var c="Message from "+(this.H.gb()+(":"+("\n"+b)));return c};q.Xra=function(){return this.tG?this.tG.replace(/<wbr \/>/g,""):""};q.gra=function(){return Y("knol-email-ccMe"+this.Qb).checked};q.Cb=function(){this.WH&&this.M(j)};
var Cv=function(a,b,c,d,f){var g=a.gb()+(' requests a review of the knol "'+(b.ak()+'"')),h="Hello,\n\nYou are invited by "+(a.gb()+(" to write a review for the knol: "+(b.ak()+". Click the following link where you can read the knol and decide to accept or decline the request.")));yv.call(this,"Request a review of this Knol",a,b,c,d,"Request reviewers:",g,h,f,"review")};E(Cv,yv);
var Dv=function(a,b,c,d,f,g){this.Hb=c;var h='Request a review of "'+(b.Mh()+'"'),i=a.gb()+(' requests a review of the knol "'+(b.ak()+('" considered for submission to the collection "'+(c.ak()+'"')))),m="Hello,\n\nYou are invited by "+(a.gb()+(' to write a review for the knol "'+(b.ak()+('" considered for submission to the collection "'+(c.ak()+'". Click the following link to view the knol and express your opinion on whether to accept or reject the knol into the collection.')))));yv.call(this,h,
a,b,d,f,"Enter email address of reviewer:",i,m,g,"collectionreview")};E(Dv,yv);Dv.prototype.AK=function(a,b){var c=bk("system/services/createReview")+"?knolId="+this.IF.n()+"&collectionId="+this.Hb.n();this.zK(a,"http://"+window.location.host+c,c,b)};
var Bv=function(a,b){var c=Y("knol-inline-error"+b);yu(c,a,"knol-inline-error","knol-inline-error-message")},Ev=function(a,b,c,d,f){var g=a.gb(),h=b.ak(),i="http://"+window.location.host,m=g+(' invites you to co-own a knol entitled "'+(h+'"')),n=g+(' invites you to co-own a collection entitled "'+(h+'"')),o="Hello,\n\nYou are invited by "+(g+(" to co-own the knol: "+(h+(". Learn more about what being an owner entails here: "+(i+Cn("si57lahl1w25/7")+".  Click the following link where you can read the knol and decide to accept or decline the request."))))),
p="Hello,\n\nYou are invited by "+(g+(" to co-own the collection: "+(h+(". Learn more about what being an owner entails here: "+(i+Cn("si57lahl1w25/7")+".  Click the following link where you can view the collection and decide to accept or decline the request."))))),s=zv(b);yv.call(this,s?"Offer ownership for this collection":"Offer ownership for this knol",a,b,c,d,"Invite owners:",s?n:m,s?p:o,f,"owner")};E(Ev,yv);
var Fv=function(a,b,c,d,f){var g=a.gb(),h=b.ak(),i="http://"+window.location.host,m=g+(' invites you to co-author a knol entitled "'+(h+'"')),n=g+(' invites you to become a moderator of a collection entitled "'+(h+'"')),o="Hello,\n\nYou are invited by "+(g+(" to co-author the knol: "+(h+(". Learn more about what being a co-author entails here: "+(i+Cn("si57lahl1w25/8")+".  Click the following link where you can read the knol and decide to accept or decline the request."))))),p="Hello,\n\nYou are invited by "+
(g+(" to become a moderator of the collection: "+(h+(". Learn more about what being a moderator entails here: "+(i+Cn("si57lahl1w25/353")+".  Click the following link where you can view the collection and decide to accept or decline the request."))))),s=zv(b);yv.call(this,s?"Moderator invitation for this collection":"Offer authorship for this knol",a,b,c,d,s?"Invite moderators:":"Invite authors:",s?n:m,s?p:o,f,"author")};E(Fv,yv);
var Hv=function(a,b,c){var d=Q();if(d){var f=k;if(b&&a)f=Yn(a);if(b&&!f)b=l;var g;if(b&&f){var h=d.gb()+(" wants you to write a knol for our "+(f.knol.D+" event."));g=h}else if(!b&&a){var i=d.gb()+(' wants you to write a knol about "'+(a+'".'));g=i}else{var m=d.gb()+" wants you to write a knol.";g=m}var n="";if(b){var o="Hello,\n\n"+(d.gb()+(" recommended you as a knol author for our "+(f.knol.D+(" event. A knol is an authoritative article about a specific topic. Get started creating a knol for our "+
(f.knol.D+" event by clicking on the following links:")))));n=o}else{var p="Hello,\n\n"+(d.gb()+" recommended you as a knol author.  A knol is an authoritative article about a specific topic.  Click on the following link and see how easy it is to share what you know with the world:");n=p}this.J7=b;this.co=a;this.$J=f;if(this.J7&&this.$J){var s="To find out more about the "+(this.$J.knol.D+" event follow this link:");this.l9=s;this.Wea=this.$J.aI}var u=z(Gv,k,a,b,this.l9,this.Wea);yv.call(this,"Invite someone to write a knol",
d,k,u,k,"Invite authors:",g,n,c,"invitenewauthor");c||this.M(j)}else window.location=Cf(""+window.location,"invite-author","inviteAuthorRedirect")};E(Hv,yv);Hv.prototype.AK=function(a,b){var c=bk("system/services/createKnol");if(this.J7&&this.co)c+="?label="+this.co;this.zK(a,k,c,b,this.l9,this.Wea)};
var Kv=function(a,b,c){if(Iv()=="invite-author"||I&&c){Jv("#done");Q()&&window.setTimeout(function(){new Hv(a,b)},0)}},Gv=function(a,b,c,d,f,g,h,i,m){Mo();var n=z(ju,"There was an error when sending the invitation.","invite new author"),o=new Fk(sk(gg()),"inviteFriend"),p=[];p=b&&a?[f,m,g,h,i,a,c,d]:[f,m,g,h,i];o.la(p,function(s){b||new Lv(a);if(!s)e(new Error("invite friend had errors"))},n)},Mv=function(a,b,c){var d=a.gb(),f=b.ak(),g=d+(' invites you to view a knol entitled "'+(f+'"')),h=d+(' invites you to view a collection entitled "'+
(f+'"')),i="Hello,\n\n"+(d+(" would like you to view the knol: "+(f+". Click the following link where you can read the knol."))),m="Hello,\n\n"+(d+(" would like you to view the collection: "+(f+". Click the following link where you can view the collection."))),n=zv(b);yv.call(this,n?"Email a link to this collection":"Email a link to this knol",a,b,c,k,"Recipients:",n?h:g,n?m:i)};E(Mv,yv);var Nv=function(){};E(Nv,es);Nv.prototype.Rb=function(a,b,c,d){var f=c||"references",g=Y(f),h=a||fg().Hx(),i=h.He();if(i.length>0){var m=Y(d||"knol-content-body");if(m)if(g){var n="knol-references",o=Y(n);xm(o);for(var p=b?this.I8(i,b):this.yQ(i),s=0;s<p.length;s++)o.appendChild(vm(p[s].v()))}else{var u=fg(),v=this.K8(u,i,b),w=vm(v.v());w.id=f;m.appendChild(w)}}else if(g){var x=Cm(g.nextSibling,j);Z(g);Z(x)}};Nv.prototype.f=function(){return Y("references")};var Ov=["knol-title","knol-subtitle","knol-abstract"],Pv=[k,k,k,k,k],Uv=function(a,b){D("knol.ui.client.RevisionCompare");var c=V("knol.ui.RevisionCompare.markupDifference",[dg(),cg(),a,b]);c.k(function(d){if(Qv()){Rv(l);Sv();Y("knol-revision-compare").innerHTML=d[0];for(var f=0;f<Ov.length;f++)if(d[f+1]){var g=Y(Ov[f]);if(g){Pv[f]=g.innerHTML;g.innerHTML=d[f+1]}}if(d[d.length-2]){var h=new Zh;h.R(d[d.length-2][0]);var i=new Dg(dp);i.R(d[d.length-2][1]);G(Nv).Rb(h,i,"knol-revision-compare-diff-ref",
"knol-revision-compare-diff")}if(d[d.length-1]){var m=vm(d[d.length-1]);zm(m,Y("knol-revision-compare-diff"))}Tv()}});c.w(function(d){iu(k,"Error encountered while comparing version: "+a+" and version: "+b,d)});return c},Vv=function(a){var b=a.split("-");if(b.length>1)if(b[1]=="compare")if(b.length>3){var c=parseInt(b[2],10),d=parseInt(b[3],10);if(ka(c)&&ka(d)&&c<d&&c>=1)return[c,d]}return k},Yv=function(a,b){var c=Y("knol-revision-compare"),d="none";if(a)if(b){if(Vv(b)){d="";Wv(j)}}else{d="";Wv(j)}d==
"none"&&Qv()&&Xv();c.style.display=d},Qv=function(){var a=Y("knol-revision-compare");return a.style.display!="none"},Xv=function(){for(var a=0;a<Ov.length;a++){var b=Y(Ov[a]);if(Pv[a]){if(b)b.innerHTML=Pv[a];Pv[a]=k}G(Nv).Rb();var c=Y("references");if(c){zm(Y("references"),Y("knol-content-body"));c.style.display="none"}}},Zv=k,Tv=function(){Sv();var a=new Dq,b=Y("knol-revision-compare-collection-paginate");b&&a.g(b,"click",$v);Zv=a},Sv=function(){if(Zv){Zv.jb();Zv=k}},$v=function(a){var b=a.target;
if(b&&(b.nodeName==$l||(b=b.parentNode)&&b.nodeName==$l))for(var c=X.z(b),d=0;d<c.length;d++){var f;if(f=Df(c[d],"knol-search-knol-pagination")){var g=f.split("_"),h=parseInt(g[1],10),i=parseInt(g[2],10);aw(h,i);return}}},aw=function(a,b){var c=Y("knol-revision-compare-collection"),d;if(c&&(d=Df(c.className,"knol-revision-compare-collection-versions-"))){var f=d.split("_"),g=parseInt(f[0],10),h=parseInt(f[1],10),i=V("knol.ui.RevisionCompare.markupCollectionItems",[dg(),g,h,a,b]);i.k(function(m){var n=
Y("knol-revision-compare-collection");if(n&&m){Sv();n.innerHTML=m;Tv()}});i.w(function(m){ju(k,m)});return i}return k};var dq=function(){this.Yb(undefined,undefined)};E(dq,aq);dq.prototype.refresh=function(){this.Rb()};dq.prototype.create=function(){this.Rb()};dq.prototype.Mea=function(a){D("knol.ui.client.VersionInfo");var b=0;if(!a.VE()){fg().TKa(a.bS);var c=this.UC;this.UC=a.eB;this.gha(a.eB);b=a.eB-c}this.OF=a.NF;this.$q=a.Gz;G(bw).$$();return b};var cw,dw={},ew=0,fw=0,hw=function(a){var b=a[0],c=a[1],d=a[2];D("knol.ui.client.History");var f=["top","bottom"],g={tX:["knol-history-pagination-earlier",Math.max(d-1,1)],gUa:["knol-history-pagination-later",Math.min(25+c,b)]};for(var h in g)C(f,function(i){var m=Y(g[h][0]+"-"+i);m&&U(m,"click",z(function(n){gw("revisions",n)},k,g[h][1]))})},jw=function(){var a=tb(["knol-revision-compare-button-top","knol-revision-compare-button-bottom"],Y);C(a,function(b){var c=new as("Compare checked");c.Y(b);
U(c,"action",iw);b.style.display=""});vv("knol-history",j)},kw=function(){var a=gm("a","knol-revision-plonk-class");C(a,function(b){var c=b.id.replace("knol-revision-plonk-id-","");U(b,"click",function(){lu("Block user",ko(b.name),function(){var d=new Fk(sk(gg()),"blockUser");d.la([c,l,cg()],function(f){f?tu("User blocked",lo(b.name)):tu("Block user",oo(b.name))},function(){tu("Block user",oo(b.name))})})})})},pw=function(){var a=gm("input","knol-revision-checkbox");C(a,function(b){U(b,"click",z(function(c,
d){var f=d.target.checked,g=parseInt(c.replace(/knol-revision-checkbox-/,""),10);f?lw(g):mw(g);nw()},k,b.id))});ow()},ow=function(){if(fw||cw){var a=fw,b=cw;if(a&&Y("knol-revision-tr-"+a)){fw=0;lw(a)}if(b&&Y("knol-revision-tr-"+b)){cw=0;lw(b)}nw()}},nw=function(){var a=fw;a=a&&!Y("knol-revision-tr-"+a)?a:0;var b=cw;b=b&&!Y("knol-revision-tr-"+b)?b:0;var c=a,d=b,f=Y("knol-history-table"),g=f.createCaption();if(c||d){var h=Math.min(c,d),i=Math.max(c,d),m="Selected version "+((c||d)+" for comparison"),
n="Selected version "+(h+(" and "+(i+" for comparison")));g.style.backgroundColor="#ffffcc";g.style.fontWeight="bold";g.style.display="";g.innerHTML=c&&d?n:m}else g.style.display="none"},iw=function(){if(fw&&cw){var a=Math.min(cw,fw),b=Math.max(cw,fw);window.location="#revisions-compare-"+a+"-"+b}},lw=function(a){var b=Y("knol-revision-tr-"+a),c=Y("knol-revision-checkbox-"+a);if(b&&c){if(fw){cw&&mw(fw);cw=a}else fw=a;b.style.backgroundColor="#ffffcc";if(!c.checked)c.checked=j}},mw=function(a){var b=
Y("knol-revision-tr-"+a),c=Y("knol-revision-checkbox-"+a);if(fw==a){fw=cw;cw=0}if(cw==a)cw=0;if(b)b.style.backgroundColor="#fff";if(c&&c.checked)c.checked=l},gw=function(a,b){var c,d=Vv(a),f=(c=d?Uv(d[0],d[1]):k)||qw(b)||new li;return f},qw=function(a){var b=new li,c=G(dq).OF,d=a||c;if(dw[d])b.sa();else{b=V("knol.ui.History.createHistoryTable",[dg(),a]);b.k(function(f){dw[d]=f})}b.k(function(){Yv(l);if(ew!=d){Y("knol-history").innerHTML=dw[d][0];jw();kw();pw();hw(dw[d][1]);ew=d}Rv(j)});b.w(function(f){iu(k,
"Error encountered while fetching history table",f)});return b},Rv=function(a,b){var c=Y("knol-history"),d="none";if(a)if(b){if(b=="revisions")d=""}else d="";c.style.display=d},rw=function(){var a=Y("knol-history");return a.style.display!="none"};var bw=function(a){this.Da=a;bw.Zt=this;Ck(z(this.qza,this),function(){sw().za("could not init author utils")})};t("knol.ui.client.AuthorUtils",bw,undefined);var sw=function(){return D("knol.ui.client.AuthorUtils")};
bw.prototype.qza=function(){if(!this.Sl){sw();this.user=Q();if(dg()){this.knol=fg();if(cg()){this.Me=P();this.o6=this.Me.sN()}}if(gg()&&this.Me){this.We=this.Me.Th(gg());this.Cg=this.Me.Zb(gg())}if(this.user&&this.user.bg())this.Cg=this.We=j;this.bh=this.Me.jf()=="managed"&&this.Cg&&!this.Me.Ey(this.user.n());this.Ra=new Rt;new tw;if(this.We||this.Cg)new uw(this);else new vw;G(ww).Yb(this);this.Sl=j}};bw.prototype.bb=function(a){this.Ra.bb(a);a.Za&&a.aa(a.Za(this))};
bw.prototype.$$=function(){var a=this;this.Ra.qe(function(b){r(b.Za)&&b.aa(b.Za(a))})};bw.prototype.bk=function(){return G(dq)};var tw=function(a){var b=bs(a);if(b){U(b,"click",function(c){new Xu;c.preventDefault();return l});if(Iv()=="createknol"||I&&Od(window.location).Dl().z("createknol")){G(xw).SC="done";Jv("#done");Q()&&new Xu}}};E(tw,ut);t("knol.ui.client.CreateKnol",tw,undefined);tw.prototype.Za=function(a){return a.user};
tw.prototype.la=function(a,b,c,d,f,g,h,i){sw();var m=function(){b&&window.history.back()},n=z(iu,k,k,"create knol",k,m);if(Q()){var o=z(this.tS,this,n,b,c,d,f,g,h,i);if(i&&parseInt(i,10)>=2)o=z(Wu,this,o,m);o()}else window.location=sf()};tw.prototype.run=tw.prototype.la;
tw.prototype.tS=function(a,b,c,d,f,g,h,i,m){Tu(function(){var n=new Fk(sk(gg()),"createKnol");n.la([k,g,k,k,c,d,f,k,k,k,i,h,m],z(function(o){o||a();var p=K({Mf:o}),s=p.ea();s+="#edit";sw();var u=function(v,w){if(w)window.location.replace(v);else window.location=v};h?this.Eja(p,h,z(u,k,s,b),a):u(s,b)},this),a)},a,this)};tw.prototype.Eja=function(a,b,c,d){Ck(z(function(){if(b){var f=K(b),g=f.Fa();a&&a.n()&&f&&g&&g.Yc()!=0&&yw(a.n(),b,g.n(),new aq(b),c,d)}else d()},this),d)};
tw.prototype.DHa=function(a){if(a&&Q()){sw();var b=Cj(a,"acceptFriendInvite",[gg()]);b.k(function(){});b.w(function(){})}};tw.prototype.resolveInvite=tw.prototype.DHa;var vw=function(){};E(vw,ut);t("knol.ui.client.CreateReview",vw,undefined);vw.prototype.Za=function(a){return a.user};vw.prototype.la=function(a,b,c,d){sw();var f=z(ju,k,"create review");if(Q()){var g=z(this.tS,this,f,b,c,d);g()}else window.location=sf()};vw.prototype.run=vw.prototype.la;
vw.prototype.tS=function(a,b,c,d){var f=new Fk(sk(gg()),"createReview");f.la([dg(),k,c,d],function(g){if(g==k)a();else if(g==1)zw();else{sw();var h=K({Mf:g});if(h){var i=h.ea();i+="#edit";if(b)window.location.replace(i);else window.location=i}else a()}},a)};
var zw=function(){iu("Sorry, you cannot review knols that are owned or authored by youself.",k,k,function(){window.location.replace(zg())})},Aw=function(a){if(Q()){var b=Y(a);if(b){var c="/k/knol/system/services/createReview?knolId="+dg();b.href=c}}};t("knol.ui.client.CreateReview.swapReviewLink",Aw,undefined);var uw=function(a,b){if(!b)if(a.We||a.Cg){var c=Y("knol-create-review");if(c){c.href="#manage-reviewers";c.innerHTML="Invite more reviewers";c.target=""}}};E(uw,ut);uw.prototype.Za=function(a){return a.user};
uw.prototype.la=function(a){sw();this.H=a.user;this.Qa=a.knol;this.F=a.Me;var b=new Cv(this.H,this.Qa,z(this.submit,this),k);b.Cb()};uw.prototype.submit=function(a,b,c,d,f){sw();var g=z(ju,k,"request review"),h=new Fk(sk(gg()),"requestReview");Fu();Eu("Sending message...");h.la([this.F.n(),a,f,b,c,d],function(i){Fu();i||Eu("Failed to send message. Please try again later.")},g)};var ww=function(){};E(ww,ut);ww.prototype.Za=function(){return j};
ww.prototype.Yb=function(a){if(!this.Sl&&a.knol){var b=Y("knol-viewlinks-email");b&&U(b,"click",z(this.la,this,a));var c=Y("knol-viewlinks-email-icon");c&&U(c,"click",z(this.la,this,a));this.Sl=j}};ww.prototype.la=function(a){this.Yb(a);sw();this.H=a.user;this.Qa=a.knol;if(this.H){var b=new Mv(this.H,this.Qa,z(this.submit,this));b.Cb()}else window.location=sf()};
ww.prototype.submit=function(a,b,c,d,f){sw();var g=z(ju,k,"send email"),h=new Fk(sk(gg()),"sendEmail");h.la([this.Qa.n(),a,f,b,c,d],function(i){Fu();i||Eu("Failed to send message. Please try again later.")},g)};var Bw=function(){var a=P(),b=a&&a.va();ut.call(this,b?"Publish this collection":"Publish this knol")};E(Bw,ut);
var Ew=function(){if(G(Ou).Ob())var a=G(Pu);var b,c=G(bw);if(a&&a.ce()&&a.og()){b=a.Wz(undefined,j)||new li;b.k(Cw)}else{b=Cj(cg(),"changePublishedVersion",[-1]);b.k(function(){var d=c.bk(),f=d.Gy();d.$q=-1;P().OKa(-1);var g=G(Dw);g.Y(f);g.tm();dw={};var h=Y("knol-signout-link");if(h)h.innerHTML=Js().v();Cw()});b.w(z(ju,k,"publishing failed"))}return b},Cw=function(){var a=Y("knol-viewlinks-collect-icon");if(a)a.style.display="";if(a=Y("knol-viewlinks-collect"))a.style.display=""};
Bw.prototype.Za=function(a){return Zp(a)};Bw.prototype.la=function(){return Ew()};var Fw=function(){ut.call(this,"")};E(Fw,ut);Fw.prototype.Za=function(a){return Xp(a)};Fw.prototype.la=function(a){var b=a.bk(),c=Cj(cg(),"xPublishOldVersion",[b.Ie(),j]);c.k(function(d){var f={};f[Il.Mv]=d;P().Rb(f);var g=G(Dw);g.Y();g.tm();dw={}});c.w(z(ju,k,"Could not un-publish the old version"))};var Gw=function(){var a=P(),b=a&&a.va();ut.call(this,b?"Unpublish this Collection":"Unpublish this Knol")};E(Gw,ut);
Gw.prototype.Za=function(a){return $p(a)};Gw.prototype.la=function(){var a=Cj(cg(),"changePublishedVersion",[-2]);a.k(function(){window.location.reload(j)});a.w(z(ju,k,"Could not un-publish the knol"))};var Hw=function(){ut.call(this,"")};E(Hw,ut);Hw.prototype.Za=function(a){return Yp(a)};Hw.prototype.la=function(a){var b=a.bk(),c=Cj(cg(),"xPublishOldVersion",[b.Ie(),l]);c.k(function(d){var f={};f[Il.Mv]=d;P().Rb(f);var g=G(Dw);g.Y();g.tm();dw={}});c.w(z(ju,k,"Could not un-publish the old version"))};
var Iw=function(){var a=P(),b=a&&a.va();ut.call(this,b?"Delete this Collection":"Delete this Knol")};E(Iw,ut);Iw.prototype.Za=function(a){sw();return a.We};
Iw.prototype.la=function(a){var b=P(),c=b&&b.va();lu(c?"Delete this Collection":"Delete this Knol",c?"Deleting a collection cannot be undone. You might consider unpublishing it instead.<br /><br />Are you sure you want to delete this collection?":"Deleting a knol cannot be undone. You might consider unpublishing it instead.<br /><br />Are you sure you want to delete this knol?",z(this.UHa,this,a))};
Iw.prototype.UHa=function(a,b){if(b.ga=="yes"){sw();var c=new Fk(sk(cg()),"removeNode");c.la([],function(){Ck(function(){window.location=a.user.Sj()})},z(ju,k,"delete knol"))}};var Jw=function(){this.Qb="manage"};E(Jw,Lu);Jw.prototype.Ob=function(){try{return r(Kw)}catch(a){return l}};var Lw=function(a,b){var c=Q(),d=c?c.Ix():k,f=c?c.n():k,g=new Is(d,f,a,b),h=g.Si(),i=Y("knol-header-menu");if(i&&h)i.innerHTML=h};t("knol.ui.client.ProfileLink",Lw,undefined);var Dw=function(a,b){this.xf=a;this.pi=b;Dw.Zt=this};t("knol.ui.client.AuthorToolbox",Dw,undefined);Dw.prototype.Y=function(a){Y("knol-author-toolbox-container");var b=G(dq);if(this.pi)this.pi=b.Ie();this.xm=new bq(dg(),ag(),gg(),this.xf||"",this.pi||"");this.xm.Rb(l,z(function(c){this.xm.Gza();this.Mk(c);if(b&&!b.$g()){var d=new Mw(dg()),f=a||!b.hu()&&b.Gy();d.Y(f)}vv("knol-sidebar",j)},this))};Dw.prototype.render=Dw.prototype.Y;q=Dw.prototype;
q.Mk=function(a){this.lia();this.xha();this.aia();this.lha();this.via();this.oha(a)};
q.lia=function(){var a=Y("knol-author-toolbox-publish-button");if(a){var b=sv(a);U(b,"action",z(function(){var g=new Bw(this.xm.Q),h=g.la(this.xm.Q);h.k(function(){G(Jw).Ob()&&G(Kw).tm()});h.k(this.tm,this)},this))}var c=Y("knol-author-toolbox-un-publish-change");c&&U(c,"click",z(function(){Jv("manage-unpublish")},this));var d=Y("knol-author-toolbox-unpublish-old");d&&U(d,"click",z(function(){var g=new Hw(this.xm.Q);g.la(this.xm.Q)},this));var f=Y("knol-author-toolbox-publish-old");f&&U(f,"click",
z(function(){var g=new Fw(this.xm.Q);g.la(this.xm.Q)},this))};q.tm=function(){if(G(Jw).Ob()){var a=Y("knol-manage-publish-state");if(a){var b=Y("knol-author-toolbox-publish-sub");a.innerHTML=b.innerHTML}}};q.xha=function(){var a=Y("knol-author-toolbox-collaboration-change");a&&U(a,"click",z(function(){Jv("manage-general")},this))};q.aia=function(){var a=Y("knol-author-toolbox-license-change");a&&U(a,"click",z(function(){Jv("manage-general")},this))};
q.lha=function(){var a=Y("knol-author-toolbox-author-change");a&&U(a,"click",z(function(){Jv("manage-authors")},this))};q.via=function(){new uw(this.xm.Q,l);var a=Y("knol-action-sidebar-pane-table");if(a){var b=Y("knol-review-invite");if(b)b.style.display="none"}var c=Y("knol-author-toolbox-reviews-change");c&&U(c,"click",z(function(){Jv("manage-reviewers")},this))};q.oha=function(a){if(a){if(y(a))a=[a];for(var b=0;b<a.length;b++){var c=a[b];Nw(c)}}};
var Nw=function(a){if(a){var b="knol-badge-remove-"+a,c=Y(b);if(c){var d=Q(),f=P();if(d&&f&&(d.wb()||f.Zb(d.n()))){var g=c.parentNode;g.style.visibility="visible";g.style.display="";U(c,"click",z(function(h){var i=Cj(gg(),"removeBadge",[h,cg()]);i.k(function(){window.location.reload(j)});i.w(z(iu,k,"We could not remove the badge from the knol, please try again later","Remove badge failed"))},k,a))}}}};t("knol.ui.client.AuthorToolbox.setupRemoveLinks",Nw,undefined);var Ow=function(a,b){this.H=Q();this.Pb=a;this.xf=b};t("knol.ui.client.ActionSidebar",Ow,undefined);Ow.prototype.Y=function(){var a=V("knol.ui.ActionSidebar.getTokenedMessageHtml",[this.xf,this.Pb,this.H.n()]);a.k(z(function(b){if(b)Y("knol-action-sidebar-pane").innerHTML=b;else G(Dw).Y()},this));a.w(z(ju,k,"Failed to find relevant messages"))};Ow.prototype.render=Ow.prototype.Y;var Qw=function(a){Pw();this.gc=dg();this.wi=ag();this.kk=(this.Pb=cg())||this.wi;this.kba=a;var b=Q();if(b&&b.wb()){var c=V("knol.ui.AdminOptions.getHtml",[this.kk,this.kba]);c.k(function(d){var f=Y("knol-admin-pane");if(f&&d){f.innerHTML=d;f.style.display="";this.Y()}},this);c.w(function(){})}};t("knol.ui.client.AdminOptions",Qw,undefined);var Pw=function(){return D("knol.ui.client.AdminOptions")};q=Qw.prototype;
q.Y=function(){Pw();var a={};a["knol-admin-id-1"]=this.CNa;a["knol-admin-id-2"]=this.RGa;a["knol-admin-id-8"]=this.Kja;a["knol-admin-id-9"]=this.Rka;a["knol-admin-id-22"]=this.cpa;a["knol-admin-id-23"]=this.cja;a["knol-admin-id-28"]=this.bpa;a["knol-admin-id-29"]=this.bja;a["knol-admin-id-3"]=this.hJa;a["knol-admin-id-4"]=this.iJa;a["knol-admin-id-6"]=this.eJa;a["knol-admin-id-7"]=this.bJa;a["knol-admin-id-42"]=function(){this.JH(1)};a["knol-admin-id-43"]=function(){this.JH(0)};a["knol-admin-id-44"]=
function(){this.JH(-1)};a["knol-admin-id-16"]=function(){this.bT(1)};a["knol-admin-id-17"]=function(){this.bT(0)};a["knol-admin-id-12"]=this.Gba;a["knol-admin-id-13"]=this.FJa;a["knol-admin-id-14"]=this.Fba;a["knol-admin-id-15"]=this.EJa;a["knol-admin-id-26"]=this.dJa;a["knol-admin-id-27"]=this.fJa;a["knol-admin-id-18"]=this.Lja;a["knol-admin-id-19"]=this.Ska;a["knol-admin-id-20"]=this.uIa;a["knol-admin-id-21"]=this.Wka;a["knol-admin-id-36"]=this.dpa;a["knol-admin-id-37"]=this.aja;a["knol-admin-id-35"]=
this.nGa;a["knol-admin-id-38"]=this.epa;a["knol-admin-id-39"]=this.dja;a["knol-admin-id-31"]=this.apa;a["knol-admin-id-32"]=this.Yia;a["knol-admin-id-33"]=this.$oa;a["knol-admin-id-34"]=this.Xia;a["knol-admin-id-40"]=this.Mja;a["knol-admin-id-41"]=this.Tka;a["knol-admin-id-45"]=this.sNa;a["knol-admin-id-46"]=this.yBa;a["knol-admin-id-48"]=this.xBa;a["knol-admin-id-49"]=this.Ija;a["knol-admin-id-51"]=this.Hja;for(var b in a){var c=Y(b);c&&U(c,["click","change"],z(a[b],this))}};
q.Ta=function(a,b){this.Eaa(j);this.Eaa(l);var c=V(a,b);c.k(z(function(d){this.A0(d,"Operation")},this));c.w(z(ju,k,"Operation failed"));c.w(z(function(){this.A0(l,"Operation")},this))};q.Eaa=function(a){var b=Y(a?"knol-admin-success":"knol-admin-fail");b.innerHTML="";b.style.display="none"};q.A0=function(a,b){b+=": "+(a?"succeeded":"<b>failed</b>!");var c=Y(a?"knol-admin-success":"knol-admin-fail");c.innerHTML=b;c.style.display=""};q.CNa=function(){this.Ta("knol.ui.AdminOptions.opt1",[this.gc])};
q.RGa=function(){this.Ta("knol.ui.AdminOptions.opt2",[this.gc])};q.iJa=function(){this.Ta("knol.ui.AdminOptions.opt3",[ag()])};q.hJa=function(){this.Ta("knol.ui.AdminOptions.opt4",[ag()])};q.eJa=function(){this.Ta("knol.ui.AdminOptions.opt5",[ag()])};q.bJa=function(){this.Ta("knol.ui.AdminOptions.opt6",[ag()])};q.Kja=function(){this.Ta("knol.ui.AdminOptions.opt7",[ag(),"true"])};q.Rka=function(){this.Ta("knol.ui.AdminOptions.opt7",[ag(),"false"])};
q.JH=function(a){this.Ta("knol.ui.AdminOptions.opt9",[this.wi,a])};q.Gba=function(){this.Ta("knol.ui.AdminOptions.opt10",[ag(),"true"])};q.FJa=function(){this.Ta("knol.ui.AdminOptions.opt10",[ag(),"false"])};q.Fba=function(){this.Ta("knol.ui.AdminOptions.opt11",[ag(),"true"])};q.EJa=function(){this.Ta("knol.ui.AdminOptions.opt11",[ag(),"false"])};q.bT=function(a){this.Ta("knol.ui.AdminOptions.opt12",[this.gc,a])};q.cpa=function(){this.Ta("knol.ui.AdminOptions.opt13",[this.Pb,j])};
q.cja=function(){this.Ta("knol.ui.AdminOptions.opt13",[this.Pb,l])};q.apa=function(){this.Ta("knol.ui.AdminOptions.opt13",[this.wi,j])};q.Yia=function(){this.Ta("knol.ui.AdminOptions.opt13",[this.wi,l])};q.dJa=function(){this.Ta("knol.ui.AdminOptions.opt14",[ag(),j])};q.fJa=function(){this.Ta("knol.ui.AdminOptions.opt14",[ag(),l])};q.bpa=function(){this.Ta("knol.ui.AdminOptions.opt15",[this.Pb,j])};q.bja=function(){this.Ta("knol.ui.AdminOptions.opt15",[this.Pb,l])};
q.$oa=function(){this.Ta("knol.ui.AdminOptions.opt15",[this.wi,j])};q.Xia=function(){this.Ta("knol.ui.AdminOptions.opt15",[this.wi,l])};q.Lja=function(){this.Ta("knol.ui.AdminOptions.opt16",[ag(),"true"])};q.Ska=function(){this.Ta("knol.ui.AdminOptions.opt16",[ag(),"false"])};q.uIa=function(){var a=Rw();this.Ta("knol.ui.AdminOptions.opt18",[a,"true"])};q.Wka=function(){var a=Rw();this.Ta("knol.ui.AdminOptions.opt18",[a,"false"])};q.dpa=function(){this.Ta("knol.ui.AdminOptions.opt19",[this.Pb,j])};
q.aja=function(){this.Ta("knol.ui.AdminOptions.opt19",[this.Pb,l])};q.nGa=function(){this.Ta("knol.ui.AdminOptions.opt20",[this.Pb])};q.epa=function(){this.Ta("knol.ui.AdminOptions.opt21",[this.Pb,j])};q.dja=function(){this.Ta("knol.ui.AdminOptions.opt21",[this.Pb,l])};q.Mja=function(){this.Ta("knol.ui.AdminOptions.opt22",[ag(),"true"])};q.Tka=function(){this.Ta("knol.ui.AdminOptions.opt22",[ag(),"false"])};q.sNa=function(){this.Ta("knol.ui.AdminOptions.opt23",[ag()])};
q.yBa=function(){var a,b=Y("knol-admin-id-46");if(b)a=b.value;if(a){var c=V("knol.ui.AdminOptions.opt28",[cg(),a]);c.k(z(function(d){var f=Y("knol-admin-id-47");if(f)f.value=d},this))}};q.xBa=function(){var a,b,c=Y("knol-admin-id-46");if(c)a=c.value;if(c=Y("knol-admin-id-47"))b=c.value;a&&this.Ta("knol.ui.AdminOptions.opt29",[cg(),a,b])};
q.Ija=function(){var a,b=Y("knol-admin-id-49");if(b)a=b.value;if(a){var c=V("knol.ui.AdminOptions.opt30",[ag(),a]);c.k(z(function(d){var f=Y("knol-admin-id-50");if(f)f.value=d},this))}};q.Hja=function(){var a,b,c=Y("knol-admin-id-49");if(c)a=c.value;if(c=Y("knol-admin-id-50"))b=c.value;a&&this.Ta("knol.ui.AdminOptions.opt31",[ag(),a,b])};var Sw=function(){D("knol.ui.client.AdSense");var a=Q(),b=P(),c=a&&b&&(a.wb()||b.Zb(a.n()));if(c){var d=Y("knol-adsense-pending-ad");if(d){d.innerHTML=this.rua();d.style.visibility="visible";d.style.display=""}}};t("knol.ui.client.AdSense",Sw,undefined);Sw.prototype.rua=function(){return"Your AdSense account is under review by Knol. Once approved your ads will show here. The process can take up to 2 weeks."};var Tw=function(a,b,c,d,f){this.Se=!!b;a&&this.setPosition(a,d);this.Lg=f!=undefined?f:this.we||0;if(this.Se)this.Lg*=-1;this.DC=!c};A(Tw,Pb);q=Tw.prototype;q.node=k;q.we=k;q.IT=l;q.setPosition=function(a,b,c){if(this.node=a)this.we=ka(b)?b:this.node.nodeType!=1?0:this.Se?-1:1;if(ka(c))this.Lg=c};q.$k=function(a){this.node=a.node;this.we=a.we;this.Lg=a.Lg;this.Se=a.Se;this.DC=a.DC};q.ua=function(){return new Tw(this.node,this.Se,!this.DC,this.we,this.Lg)};
q.CT=function(){var a=this.Se?-1:1;if(this.we==a){this.we=a*-1;this.Lg+=this.we*(this.Se?-1:1)}};q.GHa=function(){var a=this.Se?1:-1;if(this.we==a){this.we=a*-1;this.Lg+=this.we*(this.Se?-1:1)}};
q.mc=function(){var a;if(this.IT){if(!this.node||this.DC&&this.Lg==0)e(Ob);a=this.node;var b=this.Se?-1:1;if(this.we==b){var c=this.Se?a.lastChild:a.firstChild;c?this.setPosition(c):this.setPosition(a,b*-1)}else{var d=this.Se?a.previousSibling:a.nextSibling;d?this.setPosition(d):this.setPosition(a.parentNode,b*-1)}this.Lg+=this.we*(this.Se?-1:1)}else this.IT=j;a=this.node;if(!this.node)e(Ob);return a};q.ZAa=function(){return this.IT};q.cQ=function(){return this.we==1};
q.o7=function(){return this.we==-1};q.jc=function(a){return a.node==this.node&&(!this.node||a.we==this.we)};q.splice=function(){var a=this.node;this.GHa();this.Se=!this.Se;Tw.prototype.mc.call(this);this.Se=!this.Se;for(var b=ja(arguments[0])?arguments[0]:arguments,c=b.length-1;c>=0;c--)zm(b[c],a);Z(a)};var $u=function(a,b,c,d){Tw.call(this,a,b,c,k,d)};A($u,Tw);$u.prototype.mc=function(){do $u.e.mc.call(this);while(this.o7());return this.node};var Uw={VV:["BC","AD"],aga:["Before Christ","Anno Domini"],uga:["J","F","M","A","M","J","J","A","S","O","N","D"],Kga:["J","F","M","A","M","J","J","A","S","O","N","D"],Tr:["January","February","March","April","May","June","July","August","September","October","November","December"],Jga:["January","February","March","April","May","June","July","August","September","October","November","December"],XW:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Mga:["Jan","Feb","Mar","Apr",
"May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],qX:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Oga:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],vJ:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Nga:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],CSa:["S","M","T","W","T","F","S"],Lga:["S","M","T","W","T","F","S"],YW:["Q1","Q2","Q3","Q4"],MW:["1st quarter","2nd quarter","3rd quarter","4th quarter"],bV:["AM","PM"],Kv:["EEEE, MMMM d, y","MMMM d, y","MMM d, y",
"M/d/yy"],LB:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],vQa:{Md:"M/d",MMMMd:"MMMM d",MMMd:"MMM d"},gga:6,rX:[5,6],hga:2},Vw=Uw;Vw=Uw;var Ww=function(){},Yw=function(a){if(typeof a=="number"){var b,c=a,d=new Ww;d.Gda=c;d.oea=Xw(c);var f;var g=c;if(g==0)f="UTC";else{var h=["UTC",g<0?"+":"-"];g=Math.abs(g);h.push(Math.floor(g/60)%100);g%=60;g!=0&&h.push(":",g);f=h.join("")}d.rU=[f,f];d.rI=[];return b=d}var i=new Ww;i.oea=a.id;i.Gda=-a.std_offset;i.rU=a.names;i.rI=a.transitions;return i},Xw=function(a){if(a==0)return"Etc/GMT";var b=["Etc/GMT",a<0?"-":"+"];a=Math.abs(a);b.push(Math.floor(a/60)%100);a%=60;a!=0&&b.push(":",bb(a,2));return b.join("")};
q=Ww.prototype;q.L2=function(a){for(var b=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate(),a.getUTCHours(),a.getUTCMinutes()),c=b/3600000,d=0;d<this.rI.length&&c>=this.rI[d];)d+=2;return d==0?0:this.rI[d-1]};q.ysa=function(a){var b,c=this.PN(a),d=["GMT"];d.push(c<=0?"+":"-");c=Math.abs(c);d.push(bb(Math.floor(c/60)%100,2),":",bb(c%60,2));return b=d.join("")};q.uta=function(a){return this.rU[this.m7(a)?3:1]};q.PN=function(a){return this.Gda-this.L2(a)};
q.Fua=function(a){var b=-this.PN(a),c=[b<0?"-":"+"];b=Math.abs(b);c.push(bb(Math.floor(b/60)%100,2),bb(b%60,2));return c.join("")};q.ova=function(a){return this.rU[this.m7(a)?2:0]};q.Nva=function(){return this.oea};q.m7=function(a){return this.L2(a)>0};var Zw=function(a){r(a);this.Mc=[];typeof a=="number"?this.dC(a):this.aw(a)},$w=[/^\'(?:[^\']|\'\')*\'/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvzZ]+/];q=Zw.prototype;q.aw=function(a){for(;a;)for(var b=0;b<$w.length;++b){var c=a.match($w[b]);if(c){var d=c[0];a=a.substring(d.length);if(b==0)if(d=="''")d="'";else{d=d.substring(1,d.length-1);d=d.replace(/\'\'/,"'")}this.Mc.push({text:d,type:b});break}}};
q.Xs=function(a,b){var c=b?(a.getTimezoneOffset()-b.PN(a))*60000:0,d=c?new Date(a.getTime()+c):a,f=d;if(b&&d.getTimezoneOffset()!=a.getTimezoneOffset()){c+=c>0?-86400000:86400000;f=new Date(a.getTime()+c)}for(var g=[],h=0;h<this.Mc.length;++h){var i=this.Mc[h].text;1==this.Mc[h].type?g.push(this.jqa(i,a,d,f,b)):g.push(i)}return g.join("")};q.dC=function(a){var b;if(a<4)b=Vw.Kv[a];else if(a<8)b=Vw.LB[a-4];else if(a<12)b=Vw.Kv[a-8]+" "+Vw.LB[a-8];else{this.dC(10);return}this.aw(b)};
q.iqa=function(a,b){var c=b.getFullYear()>0?1:0;return a>=4?Vw.aga[c]:Vw.VV[c]};q.vqa=function(a,b){var c=b.getFullYear();if(c<0)c=-c;return a==2?bb(c%100,2):String(c)};q.mqa=function(a,b){var c=b.getMonth();switch(a){case 5:return Vw.uga[c];case 4:return Vw.Tr[c];case 3:return Vw.XW[c];default:return bb(c+1,a)}};q.eqa=function(a,b){return bb(b.getHours()||24,a)};q.kqa=function(a,b){var c=b.getTime()%1000/1000;return c.toFixed(Math.min(3,a)).substr(2)+(a>3?bb(0,a-3):"")};
q.hqa=function(a,b){var c=b.getDay();return a>=4?Vw.qX[c]:Vw.vJ[c]};q.fqa=function(a,b){var c=b.getHours();return Vw.bV[c>=12&&c<24?1:0]};q.dqa=function(a,b){return bb(b.getHours()%12||12,a)};q.bqa=function(a,b){return bb(b.getHours()%12,a)};q.cqa=function(a,b){return bb(b.getHours(),a)};q.qqa=function(a,b){var c=b.getDay();switch(a){case 5:return Vw.Lga[c];case 4:return Vw.Oga[c];case 3:return Vw.Nga[c];default:return bb(c,1)}};
q.rqa=function(a,b){var c=b.getMonth();switch(a){case 5:return Vw.Kga[c];case 4:return Vw.Jga[c];case 3:return Vw.Mga[c];default:return bb(c+1,a)}};q.nqa=function(a,b){var c=Math.floor(b.getMonth()/3);return a<4?Vw.YW[c]:Vw.MW[c]};q.gqa=function(a,b){return bb(b.getDate(),a)};q.lqa=function(a,b){return bb(b.getMinutes(),a)};q.pqa=function(a,b){return bb(b.getSeconds(),a)};q.tqa=function(a,b,c){c=c||Yw(b.getTimezoneOffset());return a<4?c.Fua(b):c.ysa(b)};
q.uqa=function(a,b,c){c=c||Yw(b.getTimezoneOffset());return a<4?c.ova(b):c.uta(b)};q.sqa=function(a,b){b=b||Yw(a.getTimezoneOffset());return b.Nva()};
q.jqa=function(a,b,c,d,f){var g=a.length;switch(a.charAt(0)){case "G":return this.iqa(g,c);case "y":return this.vqa(g,c);case "M":return this.mqa(g,c);case "k":return this.eqa(g,d);case "S":return this.kqa(g,d);case "E":return this.hqa(g,c);case "a":return this.fqa(g,d);case "h":return this.dqa(g,d);case "K":return this.bqa(g,d);case "H":return this.cqa(g,d);case "c":return this.qqa(g,c);case "L":return this.rqa(g,c);case "Q":return this.nqa(g,c);case "d":return this.gqa(g,c);case "m":return this.lqa(g,
d);case "s":return this.pqa(g,d);case "v":return this.sqa(b,f);case "z":return this.uqa(g,b,f);case "Z":return this.tqa(g,b,f);default:return""}};var ax=function(a){this.Mc=[];typeof a=="number"?this.dC(a):this.aw(a)},bx=80;q=ax.prototype;
q.aw=function(a){for(var b=l,c="",d=0;d<a.length;d++){var f=a.charAt(d);if(f==" "){if(c.length>0){this.Mc.push({text:c,af:0,Wr:l});c=""}for(this.Mc.push({text:" ",af:0,Wr:l});d<a.length-1&&a.charAt(d+1)==" ";)d++}else if(b)if(f=="'")if(d+1<a.length&&a.charAt(d+1)=="'"){c+="'";d++}else b=l;else c+=f;else if("GyMdkHmsSEDahKzZvQ".indexOf(f)>=0){if(c.length>0){this.Mc.push({text:c,af:0,Wr:l});c=""}var g=this.Ota(a,d);this.Mc.push({text:f,af:g,Wr:l});d+=g-1}else if(f=="'")if(d+1<a.length&&a.charAt(d+1)==
"'"){c+="'";d++}else b=j;else c+=f}c.length>0&&this.Mc.push({text:c,af:0,Wr:l});this.FCa()};q.dC=function(a){var b;if(a>11)a=10;b=a<4?Vw.Kv[a]:a<8?Vw.LB[a-4]:Vw.Kv[a-8]+" "+Vw.LB[a-8];this.aw(b)};q.parse=function(a,b,c){var d=c||0;return this.a7(a,b,d,l)};q.cNa=function(a,b,c){var d=c||0;return this.a7(a,b,d,j)};
q.a7=function(a,b,c,d){for(var f=new cx,g=[c],h=-1,i=0,m=0,n=0;n<this.Mc.length;n++)if(this.Mc[n].af>0){if(h<0&&this.Mc[n].Wr){h=n;i=c;m=0}if(h>=0){var o=this.Mc[n].af;if(n==h){o-=m;m++;if(o==0)return 0}if(!this.Yda(a,g,this.Mc[n],o,f)){n=h-1;g[0]=i}}else{h=-1;if(!this.Yda(a,g,this.Mc[n],0,f))return 0}}else{h=-1;if(this.Mc[n].text.charAt(0)==" "){var p=g[0];this.yda(a,g);if(g[0]>p)continue}else if(a.indexOf(this.Mc[n].text,g[0])==g[0]){g[0]+=this.Mc[n].text.length;continue}return 0}return f.Aka(b,
d)?g[0]-c:0};q.Ota=function(a,b){for(var c=a.charAt(b),d=b+1;d<a.length&&a.charAt(d)==c;)d++;return d-b};q.UP=function(a){if(a.af<=0)return l;var b="MydhHmsSDkK".indexOf(a.text.charAt(0));return b>0||b==0&&a.af<3};q.FCa=function(){for(var a=l,b=0;b<this.Mc.length;b++)if(this.UP(this.Mc[b])){if(!a&&b+1<this.Mc.length&&this.UP(this.Mc[b+1])){a=j;this.Mc[b].Wr=j}}else a=l};q.yda=function(a,b){var c=a.substring(b[0]).match(/^\s+/);if(c)b[0]+=c[0].length};
q.Yda=function(a,b,c,d,f){this.yda(a,b);var g=b[0],h=c.text.charAt(0),i=-1;if(this.UP(c))if(d>0){if(g+d>a.length)return l;i=this.Dz(a.substring(0,g+d),b)}else i=this.Dz(a,b);switch(h){case "G":f.o1=this.Xn(a,b,Vw.VV);return j;case "M":return this.fNa(a,b,f,i);case "E":return this.dNa(a,b,f);case "a":f.mY=this.Xn(a,b,Vw.bV);return j;case "y":return this.hNa(a,b,g,i,c,f);case "Q":return this.gNa(a,b,f,i);case "d":f.xs=i;return j;case "S":return this.eNa(i,b,g,f);case "h":if(i==12)i=0;case "K":case "H":case "k":f.Kd=
i;return j;case "m":f.Ne=i;return j;case "s":f.Te=i;return j;case "z":case "Z":case "v":return this.kNa(a,b,f);default:return l}};q.hNa=function(a,b,c,d,f,g){var h;if(d<0){h=a.charAt(b[0]);if(h!="+"&&h!="-")return l;b[0]++;d=this.Dz(a,b);if(d<0)return l;if(h=="-")d=-d}if(!h&&b[0]-c==2&&f.af==2)g.pLa(d);else g.Dm=d;return j};q.fNa=function(a,b,c,d){if(d<0){d=this.Xn(a,b,Vw.Tr);if(d<0)d=this.Xn(a,b,Vw.XW);if(d<0)return l;c.su=d}else c.su=d-1;return j};
q.gNa=function(a,b,c,d){if(d<0){d=this.Xn(a,b,Vw.MW);if(d<0)d=this.Xn(a,b,Vw.YW);if(d<0)return l;c.su=d*3;c.xs=1;return j}return l};q.dNa=function(a,b,c){var d=this.Xn(a,b,Vw.qX);if(d<0)d=this.Xn(a,b,Vw.vJ);if(d<0)return l;c.RK=d;return j};q.eNa=function(a,b,c,d){var f=b[0]-c;d.TQ=f<3?a*Math.pow(10,3-f):Math.round(a/Math.pow(10,f-3));return j};q.kNa=function(a,b,c){if(a.indexOf("GMT",b[0])==b[0]){b[0]+=3;return this.n$(a,b,c)}return this.n$(a,b,c)};
q.n$=function(a,b,c){if(b[0]>=a.length){c.sU=0;return j}var d=1;switch(a.charAt(b[0])){case "-":d=-1;case "+":b[0]++}var f=b[0],g=this.Dz(a,b);if(g==0&&b[0]==f)return l;var h;if(b[0]<a.length&&a.charAt(b[0])==":"){h=g*60;b[0]++;f=b[0];g=this.Dz(a,b);if(g==0&&b[0]==f)return l;h+=g}else{h=g;if(h<24&&b[0]-f<=2)h*=60;else h=h%100+h/100*60}h*=d;c.sU=-h;return j};q.Dz=function(a,b){var c=a.substring(b[0]).match(/^\d+/);if(!c)return-1;b[0]+=c[0].length;return parseInt(c[0],10)};
q.Xn=function(a,b,c){for(var d=0,f=-1,g=a.substring(b[0]).toLowerCase(),h=0;h<c.length;h++){var i=c[h].length;if(i>d&&g.indexOf(c[h].toLowerCase())==0){f=h;d=i}}if(f>=0)b[0]+=d;return f};var cx=function(){};cx.prototype.pLa=function(a){var b=new Date,c=b.getFullYear()-bx,d=c%100;this.hja=a==d;a+=Math.floor(c/100)*100+(a<d?100:0);return this.Dm=a};
cx.prototype.Aka=function(a,b){if(this.o1!=undefined&&this.Dm!=undefined&&this.o1==0&&this.Dm>0)this.Dm=-(this.Dm-1);this.Dm!=undefined&&a.setFullYear(this.Dm);var c=a.getDate();a.setDate(1);this.su!=undefined&&a.setMonth(this.su);this.xs!=undefined?a.setDate(this.xs):a.setDate(c);if(this.Kd==undefined)this.Kd=a.getHours();if(this.mY!=undefined&&this.mY>0)if(this.Kd<12)this.Kd+=12;a.setHours(this.Kd);this.Ne!=undefined&&a.setMinutes(this.Ne);this.Te!=undefined&&a.setSeconds(this.Te);this.TQ!=undefined&&
a.setMilliseconds(this.TQ);if(b&&(this.Dm!=undefined&&this.Dm!=a.getFullYear()||this.su!=undefined&&this.su!=a.getMonth()||this.xs!=undefined&&this.xs!=a.getDate()||this.Kd>=24||this.Ne>=60||this.Te>=60||this.TQ>=1000))return l;if(this.sU!=undefined){var d=a.getTimezoneOffset();a.setTime(a.getTime()+(this.sU-d)*60*1000)}if(this.hja){var f=new Date;f.setFullYear(f.getFullYear()-bx);a.getTime()<f.getTime()&&a.setFullYear(f.getFullYear()+100)}if(this.RK!=undefined)if(this.xs==undefined){var g=(7+this.RK-
a.getDay())%7;if(g>3)g-=7;var h=a.getMonth();a.setDate(a.getDate()+g);if(a.getMonth()!=h)a.setDate(a.getDate()+(g>0?-7:7))}else if(this.RK!=a.getDay())return l;return j};var dx=function(a){var b;b=ma(a)?new Pl(a):new Pl;this.bPa=Vw.vJ;b.WJa(Vw.hga);b.VJa(Vw.gga);this.O=b;this.ze=this.O.ua();this.ze.setDate(1);this.GI=["","","","","","",""];this.GI[Vw.rX[0]]="goog-date-picker-wkend-start";this.GI[Vw.rX[1]]="goog-date-picker-wkend-end";this.j=new Dq(this);this.ju={}};A(dx,Zi);dx.prototype.ida=j;var ex=new Zw(0);q=dx.prototype;q.qMa=j;q.jpa=j;q.AT=j;q.rda=j;q.kY=j;q.AMa=j;q.FMa=l;q.tw=l;q.c0=k;var fx=0;q=dx.prototype;q.iAa=function(){return this.tw};
q.F$=function(){this.ze.add(new Ol("m",-1));this.Jo()};q.x9=function(){this.ze.add(new Ol("m",1));this.Jo()};q.GFa=function(){this.ze.add(new Ol("y",-1));this.Jo()};q.qDa=function(){this.ze.add(new Ol("y",1));this.Jo()};q.vba=function(){this.setDate(new Pl)};q.rba=function(){this.kY&&this.setDate(k)};q.getDate=function(){return this.O};
q.setDate=function(a){var b=l;if(a==k&&this.O!=k||a!=k&&this.O==k)b=j;else if(a==k)b=l;else if(a.getDate()!=this.O.getDate()||a.getMonth()!=this.O.getMonth()||a.getFullYear()!=this.O.getFullYear())b=j;this.O=ma(a)?new Pl(a):k;if(a){this.ze.G(this.O);this.ze.setDate(1)}this.Jo();var c=new gx("select",this,this.O?this.O:k);this.dispatchEvent(c);if(b){var d=new gx("change",this,this.O?this.O:k);this.dispatchEvent(d)}};
q.uOa=function(){if(this.DL){for(var a=this.DL;a.firstChild;)a.removeChild(a.firstChild);var b=dm(a),c,d,f;if(this.FMa){c=b.createElement("td");c.colSpan=this.AT?1:2;this.Ig(c,"\u00ab",this.F$);a.appendChild(c);c=b.createElement("td");c.colSpan=this.AT?6:5;c.className="goog-date-picker-monthyear";a.appendChild(c);this.CL=c;c=b.createElement("td");this.Ig(c,"\u00bb",this.x9);a.appendChild(c)}else{var g=Vw.Kv[0].toLowerCase();d=b.createElement("td");d.colSpan=5;this.Ig(d,"\u00ab",this.F$);this.xp=this.Ig(d,
"",this.pMa,"goog-date-picker-month");this.Ig(d,"\u00bb",this.x9);f=b.createElement("td");f.colSpan=3;this.Ig(f,"\u00ab",this.GFa);this.Cw=this.Ig(f,"",this.EMa,"goog-date-picker-year");this.Ig(f,"\u00bb",this.qDa);if(g.indexOf("y")<g.indexOf("m")){a.appendChild(f);a.appendChild(d)}else{a.appendChild(d);a.appendChild(f)}}}};
q.create=function(a){this.pe=a;var b=dm(a);a.className="goog-date-picker";var c=b.createElement("table"),d=b.createElement("thead"),f=b.createElement("tbody"),g=b.createElement("tfoot");Bq(f,"grid");f.tabIndex="0";this.hea=f;var h=b.h("tr","goog-date-picker-head");this.DL=h;this.uOa();d.appendChild(h);var i;this.Ki=[];for(var m=0;m<7;m++){h=b.createElement("tr");this.Ki[m]=[];for(var n=0;n<8;n++){i=b.createElement(n==0||m==0?"th":"td");if((n==0||m==0)&&n!=m){i.className=n==0?"goog-date-picker-week":
"goog-date-picker-wday";Bq(i,n==0?"rowheader":"columnheader")}h.appendChild(i);this.Ki[m][n]=i}f.appendChild(h)}h=b.h("tr","goog-date-picker-foot");i=b.h("td",{colSpan:2,className:"goog-date-picker-today-cont"});this.X0=this.Ig(i,"Today",this.vba);$(this.X0,this.AMa);h.appendChild(i);i=b.h("td",{colSpan:4});h.appendChild(i);i=b.createElement("td");i.colSpan=2;i.className="goog-date-picker-none-cont";this.W0=this.Ig(i,"None",this.rba);$(this.W0,this.kY);h.appendChild(i);g.appendChild(h);c.cellSpacing=
"0";c.cellPadding="0";c.appendChild(d);c.appendChild(f);c.appendChild(g);a.appendChild(c);this.tw=j;this.fGa();this.Jo();this.j.g(f,"click",this.txa);this.j.g(this.xN(a),"key",this.uxa);a.tabIndex=0};q.o=function(){dx.e.o.call(this);this.Ds();for(var a in this.ju)this.ju[a].m();delete this.ju;if(this.j){this.j.m();delete this.j}this.pe.innerHTML="";this.W0=this.X0=this.Cw=this.CL=this.xp=this.DL=this.Ki=this.pe=k};
q.txa=function(a){if(a.target.tagName=="TD"){var b,c=-2,d=-2;for(b=a.target;b;b=b.previousSibling,c++);for(b=a.target.parentNode;b;b=b.previousSibling,d++);var f=this.kd[d][c];this.setDate(f.ua())}};
q.uxa=function(a){var b,c;switch(a.keyCode){case 33:a.preventDefault();b=-1;break;case 34:a.preventDefault();b=1;break;case 37:a.preventDefault();c=-1;break;case 39:a.preventDefault();c=1;break;case 38:a.preventDefault();c=-7;break;case 40:a.preventDefault();c=7;break;case 36:a.preventDefault();this.vba();case 46:a.preventDefault();this.rba();default:return}var d;if(this.O){d=this.O.ua();d.add(new Ol(0,b,c))}else{d=this.ze.ua();d.setDate(1)}this.setDate(d)};
q.pMa=function(a){a.stopPropagation();for(var b=[],c=0;c<12;c++)b.push(Vw.Tr[c]);this.NC(this.xp,b,this.Exa,Vw.Tr[this.ze.getMonth()])};q.EMa=function(a){a.stopPropagation();for(var b=[],c=this.ze.getFullYear()-5,d=0;d<11;d++)b.push(String(c+d));this.NC(this.Cw,b,this.kya,String(this.ze.getFullYear()))};q.Exa=function(a){for(var b=a,c=-1;b;b=Cm(b.previousSibling,l),c++);this.ze.setMonth(c);this.Jo();this.xp.focus&&this.xp.focus()};
q.kya=function(a){if(a.firstChild.nodeType==3){this.ze.setFullYear(Number(a.firstChild.nodeValue));this.Jo()}this.Cw.focus()};
q.NC=function(a,b,c,d){this.Ds();var f=dm(a),g=f.h("div","goog-date-picker-menu");this.ru=k;for(var h=f.createElement("ul"),i=0;i<b.length;i++){var m=f.h("li",k,b[i]);if(b[i]==d)this.ru=m;h.appendChild(m)}g.appendChild(h);g.style.left=a.offsetLeft+a.parentNode.offsetLeft+"px";g.style.top=a.offsetTop+"px";g.style.width=a.clientWidth+"px";this.xp.parentNode.appendChild(g);this.da=g;if(!this.ru)this.ru=h.firstChild;this.ru.className="goog-date-picker-menu-selected";this.RQ=c;this.j.g(this.da,"click",
this.D5);this.j.g(this.xN(this.da),"key",this.E5);this.j.g(f.K(),"click",this.Ds);g.tabIndex=0;g.focus()};q.D5=function(a){a.stopPropagation();this.Ds();this.RQ&&this.RQ(a.target)};
q.E5=function(a){a.stopPropagation();var b,c=this.ru;switch(a.keyCode){case 35:a.preventDefault();b=c.parentNode.lastChild;break;case 36:a.preventDefault();b=c.parentNode.firstChild;break;case 38:a.preventDefault();b=c.previousSibling;break;case 40:a.preventDefault();b=c.nextSibling;break;case 13:case 9:case 0:a.preventDefault();this.Ds();this.RQ(c);break}if(b&&b!=c){c.className="";b.className="goog-date-picker-menu-selected";this.ru=b}};
q.Ds=function(){if(this.da){var a=dm(this.da);this.j.Db(this.da,"click",this.D5);this.j.Db(this.xN(this.da),"key",this.E5);this.j.Db(a.K(),"click",this.Ds);a.removeNode(this.da);delete this.da}};q.Ig=function(a,b,c,d){var f=["goog-date-picker-btn"];d&&f.push(d);var g=dm(a),h=g.createElement("button");h.className=f.join(" ");h.appendChild(g.createTextNode(b));a.appendChild(h);this.j.g(h,"click",c);return h};
q.Jo=function(){if(this.tw){var a=this.ze.ua();a.setDate(1);this.CL&&Lm(this.CL,Ml(Vw.Tr[a.getMonth()],a.getFullYear()));this.xp&&Lm(this.xp,Vw.Tr[a.getMonth()]);this.Cw&&Lm(this.Cw,String(a.getFullYear()));var b=a.wwa(),c=a.c4();a.add(new Ol("m",-1));a.setDate(a.c4()-(b-1));this.ida&&!this.jpa&&c+b<33&&a.add(new Ol("d",-7));var d=new Ol("d",1);this.kd=[];for(var f=0;f<6;f++){this.kd[f]=[];for(var g=0;g<7;g++){this.kd[f][g]=a.ua();a.add(d)}}this.eGa()}};
q.eGa=function(){if(this.tw)for(var a=this.ze.getMonth(),b=new Pl,c=b.getFullYear(),d=b.getMonth(),f=b.getDate(),g=0;g<6;g++){if(this.AT){Lm(this.Ki[g+1][0],this.kd[g][0].vwa());X.G(this.Ki[g+1][0],"goog-date-picker-week")}else{Lm(this.Ki[g+1][0],"");X.G(this.Ki[g+1][0],"")}this.hea.title=this.O?ex.Xs(this.O):"";for(var h=0;h<7;h++){var i=this.kd[g][h],m=this.Ki[g+1][h+1];if(!m.id)m.id="goog-dp-"+fx++;Bq(m,"gridcell");var n=["goog-date-picker-date"];if(this.qMa||i.getMonth()==a){i.getMonth()!=a&&
n.push("goog-date-picker-other-month");var o=(h+this.ze.l3()+7)%7;this.GI[o]&&n.push(this.GI[o]);if(i.getDate()==f&&i.getMonth()==d&&i.getFullYear()==c){n.push("goog-date-picker-today");m.title="Today"}if(this.O&&i.getDate()==this.O.getDate()&&i.getMonth()==this.O.getMonth()&&i.getFullYear()==this.O.getFullYear()){n.push("goog-date-picker-selected");Cq(this.hea,"activedescendant",m.id)}if(this.c0){var p=this.c0(i);p&&n.push(p)}Lm(m,i.getDate())}else Lm(m,"");X.G(m,n.join(" "))}if(g>=4)$(this.Ki[g+
1][0].parentNode,this.kd[g][0].getMonth()==a||this.ida)}};q.fGa=function(){if(this.tw){if(this.rda)for(var a=0;a<7;a++){var b=this.Ki[0][a+1],c=(a+this.ze.l3()+7)%7;Lm(b,this.bPa[(c+1)%7])}$(this.Ki[0][0].parentNode,this.rda)}};q.xN=function(a){var b=pa(a);b in this.ju||(this.ju[b]=new Jr(a));return this.ju[b]};var gx=function(a,b,c){oi.call(this,a);this.target=b;this.Y_=c};A(gx,oi);var hx=function(a,b){Dr.call(this,b);this.Hi=a||new dx};A(hx,Dr);q=hx.prototype;q.Hi=k;q.Ra=k;q.MF=k;q.ap=j;q.h=function(){hx.e.h.call(this);this.f().className="goog-popupdatepicker";this.Ra=new Ft(this.f())};q.Na=function(){hx.e.Na.call(this);if(!this.Hi.iAa()){var a=this.f();this.Hi.create(a);a.style.visibility="hidden";$(a,l)}this.Ka().g(this.Hi,"change",this.tz)};q.o=function(){hx.e.o.call(this);this.Hi.m();this.MF=this.Hi=k};q.je=function(){return l};q.getDate=function(){return this.Hi.getDate()};
q.setDate=function(a){this.Hi.setDate(a)};q.attach=function(a){this.Ka().g(a,"mousedown",this.nda)};q.detach=function(a){this.Ka().Db(a,"mousedown",this.nda)};q.jo=function(a){this.ap=a};q.rMa=function(a){this.MF=a;this.Ra.setPosition(new At(a,5));this.Ka().Db(this.Hi,"change",this.tz);this.Hi.setDate(k);this.dispatchEvent("show");this.Ka().g(this.Hi,"change",this.tz);this.Ra.M(j);this.ap&&this.f().focus()};q.nda=function(a){this.rMa(a.currentTarget)};
q.eP=function(){this.Ra.M(l);this.ap&&this.MF&&this.MF.focus()};q.tz=function(a){this.eP();this.dispatchEvent(a)};var ix=function(a,b,c,d){Dr.call(this,d);this.Z_=a;this.$_=b;this.vd=new hx(c,d);this.Uf(this.vd);this.vd.jo(l)};A(ix,Dr);q=ix.prototype;q.Z_=k;q.$_=k;q.vd=k;q.B$=k;q.getDate=function(){var a=this.wN(),b=this.vd.getDate();if(a&&b)a.jc(b)||this.vd.setDate(a);else this.vd.setDate(k);return a};q.setDate=function(a){this.vd.setDate(a)};q.hA=function(a){var b=this.f();if(b.ej)b.ej.Sa(a);else b.value=a};q.Xp=function(){var a=this.f();return a.ej?a.ej.ca():a.value};
q.wN=function(){var a=Ha(this.Xp());if(a){var b=new Ql;if(this.$_.cNa(a,b)>0)return b}return k};q.h=function(){this.tf(this.L().h("input",{type:"text"}));this.vd.h()};q.Na=function(){ix.e.Na.call(this);var a=this.f();(this.B$||this.L().K().body).appendChild(this.vd.f());this.vd.Na();this.vd.attach(a);this.vd.setDate(this.wN());var b=this.Ka();b.g(this.vd,"change",this.tz);b.g(this.vd,"show",this.rEa)};q.Xc=function(){ix.e.Xc.call(this);var a=this.f();this.vd.detach(a);this.vd.Xc();Z(this.vd.f())};
q.Wd=function(a){ix.e.Wd.call(this,a);this.vd.h()};q.o=function(){ix.e.o.call(this);this.vd.m();this.B$=this.vd=k};q.eP=function(){this.vd.eP()};q.rEa=function(){this.setDate(this.wN())};q.tz=function(a){this.hA(a.Y_?this.Z_.Xs(a.Y_):"")};var mx=function(a){var b=Y("knol-advancedsearch-form"),c=Y("knol-advancedsearch-button"),d=new as("Search");d.Y(b);c.value="";c.style.width=0;c.style.height=0;c.style.border="none";U(d,"action",function(){b.submit()});var f=Y("knol-advancedsearch-showhide");f&&U(f,"click",jx);var g=Y("knol-advancedsearch-selectall");g&&U(g,"click",function(){kx(j)});var h=Y("knol-advancedsearch-unselectall");h&&U(h,"click",function(){kx(l)});var i=Y("knol-advancedsearch-doctype");if(i){lx(a);U(i,"change",z(lx,k,a))}this.Fha()};
t("knol.ui.client.AdvancedSearchForm",mx,undefined);
var jx=function(){var a=Y("knol-advancedsearch-showhide"),b=Y("knol-advancedsearch-options"),c=Y("knol-advancedsearch-showhide-input");if(a&&b){var d=b.style.display!="none",f=!d;a.innerHTML=d?"Show options":"Hide options";b.style.visibility=f?"visible":"hidden";b.style.display=f?"":"none";if(c)c.value=f?"on":"off"}},kx=function(a){for(var b=0;b<Kn.length;b++){var c="knol-advancedsearch-loc-"+b,d=Y(c);if(d)d.checked=a}},lx=function(a){var b=Y("knol-advancedsearch-doctype"),c=new $u(b,l,l,1),d;Rb(c,
function(g){if(r(g.selected)&&g.selected)d=g.value});var f=d==2;nx(!f,[0,5]);ox(d,a);px(d)},nx=function(a,b){for(var c=0;c<Kn.length;c++)if(!b||!zb(b,c)){var d="knol-advancedsearch-loc-"+c,f=Y(d);if(f)f.disabled=!a}},ox=function(a,b){var c=Y("knol-restrict-radio-list"),d=new $u(c,l,l,1),f;Rb(d,function(i){if(r(i.checked)&&i.checked)f=i.value});var g=undefined,h=Y("knol-restrict-url");if(h)g=h.value;c&&Ck(z(function(i,m,n){var o=new Jn(l);o.FY=n;var p=o.Tua(m,f,g);i.innerHTML=p.v()},k,c,a,b))},px=
function(a){var b=Y("knol-advancedsearch-topstat");if(b)b.innerHTML=a==3?"Show only authors that have the most number of: ":"Show only knols that have the most number of: "};mx.prototype.Fha=function(){this.dI("knol-advancedsearch-start-dateedited");this.dI("knol-advancedsearch-end-dateedited");this.dI("knol-advancedsearch-start-datecreated");this.dI("knol-advancedsearch-end-datecreated")};
mx.prototype.dI=function(a){var b=Y(a);if(b){var c=new Zw("MM'/'dd'/'yyyy"),d=new ax("MM'/'dd'/'yyyy"),f=new ix(c,d);f.Ua(b)}};var rx=function(a){if(gg()==a){var b=qx(),c=Y("knol-author-profile-button");if(c){c.appendChild(b.Ri());c.appendChild(document.createElement("br"));var d,f=dg(),g=bk("Settings")+(f?"?back="+f:""),h=N({b:"a",href:g,d:"Edit My Preferences"});d=h;c.appendChild(d.Ri())}var i=Y("knol-author-profile-badge-unauth");i&&zs()&&Nq(i,"display","")}};t("knol.ui.client.Author",rx,undefined);
var qx=function(){var a=new Ed(document.location.href);a.oo("");a.$("profile_edited","1");var b=new Ed("http://www.google.com/s2/profiles/me/editprofile");b.$("service","knol");b.$("continue",a.toString());var c=N({b:"a",href:b.toString(),d:"Edit My Profile"});return c};var ux=function(a,b,c,d){if(a&&!b)e(Error("Can't use invisible history without providing a blank page."));var f;if(c)f=c;else{var g="history_state"+sx;document.write(ya('<input type="text" name="%s" id="%s" style="display:none" />',g,g));f=em(g)}this.oy=f;this.xe=c?pm(cm(c)):window;this.aK=this.xe.location.href.split("#")[0]+"#";this.fF=b;if(I&&!b)this.fF=window.location.protocol=="https"?"https:///":'javascript:""';this.xd=new aj(150);this.Kr=!a;this.j=new Dq(this);if(a||I&&!tx){var h;if(d)h=d;else{var i=
"history_iframe"+sx,m=this.fF?'src="'+Ra(this.fF)+'"':"";document.write(ya('<iframe id="%s" style="display:none" %s></iframe>',i,m));h=em(i)}this.zb=h;this.Bea=j}if(I&&!tx){this.j.g(this.xe,"load",this.Q9);this.ada=this.wL=l}this.Kr?this.ZS(this.rf(),j):this.Yu(this.oy.value);sx++};A(ux,Zi);ux.prototype.cb=l;ux.prototype.XF=l;ux.prototype.Vy=k;var tx=I&&document.documentMode>=8||J&&Pe("1.9.2")||ue&&Pe("532.1");q=ux.prototype;q.nu=k;q.o=function(){ux.e.o.call(this);this.j.m();this.aa(l)};
q.aa=function(a){if(a!=this.cb)if(I&&!tx&&!this.wL)this.ada=a;else if(a){if(te)this.j.g(this.xe.document,vx,this.OEa);else J&&this.j.g(this.xe,"pageshow",this.nR);if(tx&&this.Kr){this.j.g(this.xe,"hashchange",this.aEa);this.cb=j;this.dispatchEvent(new wx(this.rf()))}else if(!I||this.wL){this.j.g(this.xd,"tick",this.w$);this.cb=j;if(!I)this.Vy=this.rf();this.xd.start();this.dispatchEvent(new wx(this.rf()))}}else{this.cb=l;this.j.jb();this.xd.stop()}};
q.Q9=function(){this.wL=j;this.oy.value&&this.Yu(this.oy.value,j);this.aa(this.ada)};q.nR=function(a){if(a.Tg().persisted){this.aa(l);this.aa(j)}};q.aEa=function(){var a=this.lE(this.xe);this.IU(a)};q.rf=function(){return this.nu!==k?this.nu:this.Kr?this.lE(this.xe):this.uN()||""};q.wo=function(a,b){this.dKa(a,l,b)};q.lE=function(a){var b=a.location.href,c=b.indexOf("#");return c<0?"":b.substring(c+1)};
q.dKa=function(a,b,c){if(this.rf()!=a)if(this.Kr){this.ZS(a,b);if(!tx){I&&this.Yu(a,b,c);this.cb&&this.w$()}}else{this.Yu(a,b);this.nu=this.Vy=this.oy.value=a;this.dispatchEvent(new wx(a))}};q.ZS=function(a,b){var c=this.aK+(a||""),d=this.xe.location;if(c!=d.href)if(b)d.replace(c);else d.href=c};
q.Yu=function(a,b,c){if(this.Bea||a!=this.uN()){this.Bea=l;a=Ka(a);if(I){var d=Km(this.zb);d.open("text/html",b?"replace":undefined);d.write(ya("<title>%s</title><body>%s</body>",Ra(c||this.xe.document.title),a));d.close()}else{var f=this.fF+"#"+a,g=this.zb.contentWindow;if(g)if(b)g.location.replace(f);else g.location.href=f}}};
q.uN=function(){if(I){var a=Km(this.zb);return a.body?La(a.body.innerHTML):k}else{var b=this.zb.contentWindow;if(b){var c;try{c=La(this.lE(b))}catch(d){this.XF||this.kca(j);return k}this.XF&&this.kca(l);return c||k}else return k}};q.w$=function(){if(this.Kr){var a=this.lE(this.xe);a!=this.Vy&&this.IU(a)}if(!this.Kr||I&&!tx){var b=this.uN()||"";if(this.nu==k||b==this.nu){this.nu=k;b!=this.Vy&&this.IU(b)}}};
q.IU=function(a){this.Vy=this.oy.value=a;if(this.Kr){I&&!tx&&this.Yu(a);this.ZS(a)}else this.Yu(a);this.dispatchEvent(new wx(this.rf()))};q.kca=function(a){if(this.XF!=a)this.xd.setInterval(a?10000:150);this.XF=a};q.OEa=function(){this.xd.stop();this.xd.start()};var vx=["mousedown","keydown","mousemove"],sx=0,wx=function(a){oi.call(this,"navigate");this.token=a};A(wx,oi);var xx=function(a,b){this.ab=new Ed(a);this.Ika=b?b:"callback";this.sh=5000},yx=0;xx.prototype.VKa=function(a){this.sh=a};
xx.prototype.send=function(a,b,c,d){if(!document.documentElement.firstChild){c&&c(a);return k}var f=d||"_"+(yx++).toString(36)+ua().toString(36);ba._callbacks_||(ba._callbacks_={});var g=document.createElement("script"),h=k;if(this.sh>0){var i=zx(f,g,a,c);h=ba.setTimeout(i,this.sh)}var m=this.ab.ua(),n=a,o=m;for(var p in n)if(!n.hasOwnProperty||n.hasOwnProperty(p))o.FH(p,n[p]);if(b){var s=Ax(f,g,b,h);ba._callbacks_[f]=s;m.FH(this.Ika,"_callbacks_."+f)}km(g,{type:"text/javascript",id:f,charset:"UTF-8",
src:m.toString()});var u=document.getElementsByTagName("head")[0];u.appendChild(g);return{Da:f,sh:h}};xx.prototype.Vd=function(a){if(a&&a.Da){var b=em(a.Da);if(b&&b.tagName=="SCRIPT"&&typeof ba._callbacks_[a.Da]=="function"){a.sh&&ba.clearTimeout(a.sh);Bx(a.Da,b,l)}}};
var zx=function(a,b,c,d){return function(){Bx(a,b,l);d&&d(c)}},Ax=function(a,b,c,d){return function(){ba.clearTimeout(d);Bx(a,b,j);c.apply(undefined,arguments)}},Bx=function(a,b,c){ba.setTimeout(function(){Z(b)},0);if(ba._callbacks_[a])if(c)delete ba._callbacks_[a];else ba._callbacks_[a]=da};var Fx=function(){this.sda=j;var a=Cx(fg().n()),b={entity:{url:a,groups:["public"]},backgroundColor:"ffffff",descriptionNodeId:"knol-zipit-user-desc"};Dx("NumRatings","knol-zipit-count",b);Dx("RatingEditor","knol-zipit-user",b);tg()&&Ex("knol-zipit-user")};E(Fx,Go);t("knol.ui.client.Zipit",Fx,undefined);
var Gx="http://knol.google.com/k/-/-/",Hx=l,Cx=function(a){if(!Hx&&bf("experimentId")!="prod")Gx="http://"+window.location.host+"/k/-/-/";Hx=j;return Gx+a.replace(".","/")},Ix=new li,Jx=function(){U(window,"load",function(){if(!(typeof google=="undefined"||typeof google.annotations=="undefined")){google.annotations.setApplicationId(31);google.annotations.setInlineMode(j);Ix.sa()}})};Fx.initialize=Jx;
var Kx=l,Dx=function(){var a=arguments;Ix.k(function(){google.annotations.create.apply(google.annotations,a);if(!Kx){Kx=j;ba.setTimeout(function(){Kx=l;google.annotations.fetch()},0)}})};Fx.prototype.refresh=function(){google.annotations.fetch()};Fx.prototype.f=function(){return Y("knol-zipit-container")};
var Ex=function(a){var b=Y(a),c=b&&b.firstChild,d=c&&c.lastChild;if(d){if(d.tagName=="IMG"&&d.className=="zzRightEdge"){var f=c.firstChild;c.appendChild(f.nextSibling);c.appendChild(f);c.insertBefore(d,c.firstChild)}}else{var g=Lx[a]||0;if(++g<=10){ba.setTimeout(z(Ex,k,a),500);Lx[a]=g}}},Lx={},Mx=function(){var a=fg(),b=gg(),c=Cx(a.n()),d={entity:{url:c,groups:["public"]},backgroundColor:"ffffff",textColor:"54494C"};Dx("NumUsersFoundThisHelpful","knol-review-zipit-ratings",d);Ck(function(){var f=
a.Nka(b);if(f){var g=Y("knol-review-zipit-user-msg");g.style.display="block";Dx("VotingEditor","knol-review-zipit-user",d)}},z(ju,k,"review zipit"))};E(Mx,Ko);t("knol.ui.client.ReviewZipit",Mx,undefined);Mx.prototype.refresh=function(){google.annotations.fetch()};Mx.prototype.f=function(){return Y("knol-review-zipit-container")};var Nx=function(){},Ox=function(a,b,c){if(a&&b){var d=G(Nx);d.wka(a,b,c||"")}};t("knol.ui.client.ZipitDisplay.initContainer",Ox,undefined);
Nx.prototype.wka=function(a,b,c){var d=Y(a);if(d){var f=new $u(d);Rb(f,function(g){var h=g.id,i=a+"-zipit-display-";if(h&&wa(h,i)){var m=h.substring(i.length).split("-zipit-separator-");if(m.length==1){var n=Px(m[0]),o=Cx(n),p={entity:{url:o,groups:["public"]},backgroundColor:c,width:"70",height:"10"},s=Io(h),u=Y(s);u&&X.add(u,"knol-zipit-widget-created")&&Dx("NumRatings",s,p)}else if(m.length==2){var v=Px(m[0]),w=Px(m[1]);o=Cx(v);var x=w;p={entity:{url:o,groups:["public"],author:x},backgroundColor:c,
width:"70",height:"10"};Dx("RatingDisplay",h,p)}}})}};var Px=function(a){if(!a)return a;var b=a.indexOf("-zipit-disambiguator-");if(b>=0)return a.substring(0,b);return a};Nx.prototype.refresh=function(){google.annotations.fetch()};var Qx=function(){this.Yea={};this.mH=wa(window.location.href,"http://knol.google.com/")?this.GIa:this.HIa};q=Qx.prototype;q.GIa=function(a,b,c,d){var f=["req="+Ka(yd(b))];c!=k&&f.unshift("token="+c);tj(a,this.kPa(d),"POST",f.join("&"))};q.HIa=function(a,b,c,d){var f={req:yd(b)};if(c!=k)f.token=c;var g=new xx(a);g.send(f,d)};q.G8=function(a,b,c){var d=this;return function(f){a.call(d,f,b,c)}};q.kPa=function(a){return function(b){b.target.gk()&&a(b.target.Gl())}};
q.lookup=function(a,b,c){for(var d=[],f=0;f<a.length;f++){var g={},h=Cx(a[f]);this.Yea[h]=a[f];g.url=h;g.groups=["public"];g.includeAggregateInfo=j;d.push(g)}var i={};i.applicationId=31;i.entities=d;this.mH("http://knol.google.com/reviews/json/lookup",i,k,this.G8(this.MO,b,c))};
q.MO=function(a,b,c){this.eba(a);var d=a&&a.annotations;if(d)for(var f=0;f<d.length;f++){var g=d[f].entity,h=g&&g.url,i=h&&this.Yea[h],m=d[f].aggregateInfo;if(i&&m){var n=d[f].starRating||0,o=m&&m.starRatings,p=[0,0,0,0,0,0];if(o)for(var s=0;s<o.length;s++){var u=o[s].rating,v=o[s].count;if(u!=undefined&&v!=undefined)p[u]=v}b.call(c,i,n,p)}}};q.eba=function(a){var b=a&&a.channelHeader,c=b&&b.token;if(c)this.xf=c};
q.VFa=function(a,b,c,d){if(this.xf){var f={};f.url=Cx(a);f.groups=["public"];var g={};g.entity=f;g.starRating=b;var h={};h.applicationId=31;h.annotations=[g];this.mH("http://knol.google.com/reviews/json/write",h,this.xf,this.G8(this.iya,c,d))}};q.iya=function(a,b,c){this.eba(a);b.call(c)};var Rx=function(){this.ff=new Dq;this.Lr={};this.fm={};this.OI=new Qx};Rx.prototype.add=function(a){this.fm[a]||(this.fm[a]=new Sx(this.OI,a));if(!this.Lr[a]){var b=new Tx(this.fm[a],a);b.sGa(this.ff);this.Lr[a]=b}};Rx.prototype.iGa=function(){var a=[];for(var b in this.Lr)this.fm[b].uya()?this.Lr[b].refresh():a.push(b);a.length&&this.OI.lookup(a,this.MO,this)};Rx.prototype.jb=function(){this.Lr={};this.ff.m();this.ff=new Dq};
Rx.prototype.MO=function(a,b,c){if(this.fm[a]){this.fm[a].setData(b,c);this.Lr[a]&&this.Lr[a].refresh()}};var Sx=function(a,b){this.OI=a;this.Da=b;this.Nt=l};q=Sx.prototype;q.setData=function(a,b){this.Nt=j;this.lB=a;this.bF=b};q.uya=function(){return this.Nt};q.$qa=function(){return this.Nt?this.bF[5]:0};q.Mta=function(){return this.Nt?this.bF[1]:0};q.swa=function(){if(this.Nt)if(this.lB==5)return j;else if(this.lB==1)return l;return k};
q.gfa=function(a,b,c){if(this.Nt){var d=a?5:1;if(d!=this.lB){this.bF[this.lB]--;this.bF[d]++;this.lB=d;this.OI.VFa(this.Da,d,b,c)}}};var Tx=function(a,b){this.dm=a;this.Da=b};Tx.prototype.sGa=function(a){var b=Y("knol-comment-aye-"+this.Da);b&&a.g(b,"click",this.Jwa,l,this);var c=Y("knol-comment-nay-"+this.Da);c&&a.g(c,"click",this.Ixa,l,this)};
Tx.prototype.refresh=function(){var a=this.dm.$qa()-this.dm.Mta(),b=Y("knol-comment-votes-num-"+this.Da);if(b){b.innerHTML=(a>0?"+":"")+String(a);b.className=a>0?"knol-comment-votes-positive":a<0?"knol-comment-votes-negative":"knol-comment-votes-zero"}var c=this.dm.swa(),d="knol-comment-voted",f=Y("knol-comment-aye-"+this.Da);if(f)c==j?X.add(f,d):X.remove(f,d);var g=Y("knol-comment-nay-"+this.Da);if(g)c==l?X.add(g,d):X.remove(g,d)};Tx.prototype.Jwa=function(a){this.dm.gfa(j,this.refresh,this);a.preventDefault()};
Tx.prototype.Ixa=function(a){this.dm.gfa(l,this.refresh,this);a.preventDefault()};var Ux=function(a){var b=Cj(cg(),"getFreshProperties",[a]);b.k(function(c){P().Rb(c)});b.w(function(c){ju(k,c)});return b},Vx=function(a,b){var c=cg(),d=gg(),f=new Fk(sk(c),"isBlocked");f.la([d],function(g){g&&a.call(b)},function(){iu()},j)};var Wx=function(a,b,c,d,f,g){this.U=new Dq(this);this.Wh=a;this.kk=b;this.fp=c;this.yfa=d;this.MY=f;this.zka=g;this.oK();if(g){var h=ca(c).prototype,i=0,m=h.ai,n=h.sE(i,m);this.Gq(n,j)}};E(Wx,Zi);var Xx={},Yx=function(a,b,c,d,f,g){if(!Xx[a]){if(!b||!c)return k;Xx[a]=new Wx(a,b||"",c||"",d||"",f||"",g||l)}return Xx[a]},Zx=function(a,b,c,d,f,g){var h=Yx(a,b,c,d,f,g=="true");h.pca();Ox(h.Wh,h.yfa,h.MY);h.Eb()};t("knol.ui.client.NodeList.initPage",Zx,undefined);q=Wx.prototype;
q.pca=function(a){this.Az=a||[];var b=Y(this.Wh),c=Y("knol-nodelist-page-key-"+this.Wh),d=k;if(b&&c)for(var f=c.getElementsByTagName("span"),g=0;g<f.length;g++){var h=f[g].className;if(wa(h,"knol-nodelist-page-key-")){var i=h.substring(23);if(!zb(this.Az,i)){this.Az.push(i);if(!this.Tk[i]){d||(d=Mm(b));this.Tk[i]=d}}}}};
q.Eb=function(){var a=Y(this.Wh);if(a){for(var b=a.getElementsByTagName("a"),c=0;c<b.length;c++){var d=b[c].className;if(wa(d,"knol-nodelist-pagination-")){var f=z(this.Gq,this,d.substring(25),l);this.U.g(b[c],"click",f)}}this.dispatchEvent("listen")}};q.Nc=function(){this.dispatchEvent("unlisten");this.U.jb()};
q.Gq=function(a,b){var c=new li;if(zb(this.Az,a)){c.sa();return c}if(this.Tk[a])c.sa();else{c=V("knol.ui.NodeList.getPage",[this.kk,this.fp,a,dg()],this.zka);c.k(function(d){this.dispatchEvent("load");this.Tk[a]=d},this)}c.k(function(){var d=this.Tk[a];if(d){var f=document.createElement("div");f.innerHTML=d;var g=Y(this.Wh),h=g.parentNode,i=g.nextSibling;this.Nc();h.removeChild(g);h.insertBefore(f.firstChild,i);this.pca([a]);Ox(this.Wh,this.yfa,this.MY);this.Eb();b||this.rIa()}},this);c.w(function(d){iu("Error encountered while fetching node list",
k,d)});return c};q.iua=function(){return this.Az};q.oK=function(){this.Az=[];this.Tk={}};q.rIa=function(){pv(Y(this.Wh))};q.yva=function(){return this.aua("knol-nodelist-start-")};q.pZ=function(a){this.qZ("knol-nodelist-items-",a);this.qZ("knol-nodelist-total-",a)};q.aua=function(a){var b=Y(a+this.Wh);return b&&parseInt(b.innerHTML,10)};q.qZ=function(a,b){var c=Y(a+this.Wh);if(c)c.innerHTML=String(Math.max(0,parseInt(c.innerHTML,10)+b))};var $x=function(a,b,c){Ck(z(this.TLa,this,a,b,c))};E($x,to);t("knol.ui.client.DiscussionView",$x,undefined);$x.prototype.TLa=function(a,b,c){var d=a||P();to.call(this,d,b,c);if(this.cb=this.un()){this.U=new Dq(this);this.D9=new Dq(this);this.sq={};this.fm=new Rx;if(!(this instanceof ay))this.yVa=new ay(d,"knol-comment-pending-list",z(this.Cv,this))}};var by=function(){return D("knol.ui.client.DiscussionView")};q=$x.prototype;
q.Cv=function(){var a=Yx(this.xb());if(a){this.D9.g(a,"listen",this.yza);this.D9.g(a,"unlisten",this.TG)}this.Mk()};q.qla=function(){var a=Yx(this.xb());a&&a.oK()};q.TG=function(){this.U.jb();this.fm.jb()};q.yza=function(a){this.Mk();var b=a.target.iua()[0];if(b){var c=Iv();if(!c||c=="view"||c=="comments"||wa(c,"view-comment-")||wa(c,"comment-")){var d=this.uZ(b),f=d?"comment-"+d:"view-comment-"+b;if(c!=f||d){this.zR=f;Jv(f)}}}};
q.Mk=function(){var a=P(),b=Q(),c=k;if(b){cy(j);c=b.Wi()}else{cy(l);Y("knol-comment-new-sign-in").style.display=""}this.U.g(Y("knol-comment-new-show"),"click",z(qv,k,"knol-comment-new",k,"knol-comment-new-show"));var d=Y("knol-comment-new-submit");this.U.g(d,"click",z(this.BK,this,cg(),l,"knol-comment-new-text","knol-comment-new-title"));if(b&&c){var f="Submit comment to this knol as "+c,g="Submit comment to this collection as "+c,h=a&&a.va();d.innerHTML=h?g:f}var i=Y("knol-comment-new-title"),m=
Y("knol-comment-new-text");this.qQ([i,m],d);this.xza(m);this.kfa(m);var n=Y("comments");this.iPa(n,c);this.jPa(n);this.hPa(n);this.fPa(n);this.Moa(n);this.gPa(n)};q.xza=function(a){if(!r(this.bz))this.bz=a.className=="knol-comment-lorem-ipsum"?a.value:k};q.kfa=function(a){if(a&&this.bz){this.U.g(a,"focus",function(){if(a.className=="knol-comment-lorem-ipsum"){a.className="";a.value=""}});this.U.g(a,"blur",function(){if(!a.value){a.className="knol-comment-lorem-ipsum";a.value=this.bz}})}};
q.iPa=function(a,b){for(var c=gm("a","knol-comment-my-reply-submit",a),d=0;d<c.length;d++){var f=c[d],g=f.id.replace("knol-comment-reply-link-","");if(b!=k){var h="knol-comment-reply-"+g;this.U.g(f,"click",z(this.BK,this,g,j,h));var i=Y("knol-comment-reply-"+g);this.qQ([i],f);this.kfa(i);var m="Post reply to this comment as "+b;f.innerHTML=m}else{Z(c[d].parentNode);var n=Y("knol-comment-reply-sign-in-"+g);if(n)n.style.display=""}}};
q.jPa=function(a){for(var b=gm("a","knol-comment-replies-toggle",a),c=0;c<b.length;c++){var d=b[c],f=k,g=k,h=k;if(d.className.indexOf("knol-comment-replies-hide-toggle")!=-1){g=d.id.replace("knol-comment-replies-hide-toggle","");f=d.id.replace("knol-comment-replies-hide-toggle","knol-comment-replies-show-toggle");h=rv}else{g=d.id.replace("knol-comment-replies-show-toggle","");f=d.id.replace("knol-comment-replies-show-toggle","knol-comment-replies-hide-toggle");h=this.v1}var i="knol-comment-replies-"+
g;this.U.g(d,"click",z(h,this,i,f,d.id))}};
q.hPa=function(a){var b=gm("a","knol-comment-remove-link",a);C(b,function(c){var d=X.z(c),f=[],g=l;C(d,function(v){v.indexOf("knol-comment-authorid-")==0&&f.push(v.replace("knol-comment-authorid-",""));if(v.indexOf("knol-comment-too-many-replies-")==0)g=j});var h=Q(),i=gg(),m=c.id.replace("knol-comment-remove-link-",""),n=Y("knol-comment-edit-link-"+m),o=Y("knol-comment-save-link-"+m),p=Y("knol-comment-cancel-link-"+m);if(h&&(h.bg()||f[0]==i)){n.style.display="";this.U.g(n,"click",z(this.yoa,this,
m));this.U.g(o,"click",z(this.mOa,this,m));this.U.g(p,"click",z(this.IHa,this,m));var s=Y("knol-comment-text-editor-"+m);this.qQ([s],o)}else{Z(n);Z(o);Z(p)}if(h&&(h.wb()||!g&&f.length==1&&f[0]==i)){c.style.display="";this.U.g(c,"click",z(lu,k,"Delete Post","Are you sure you wish to delete this post?",z(this.qaa,this,m,j),undefined,undefined));var u=Y("knol-comment-hide-link"+m);u&&Z(u)}else if(g)c.style.display="none";else Z(c)},this)};
q.fPa=function(a){var b=P(),c=Q(),d=b.Zb(gg())||c&&c.wb(),f=gm("span","knol-comment-action-link-span",a);C(f,function(h){var i=h.id.replace("knol-comment-action-link-span-",""),m=Y("knol-report-link-"+i),n=Y("knol-report-hide-link-"+i),o=Y("knol-report-send-link-"+i);m&&this.U.g(m,"click",z(this.zaa,this,i));n&&this.U.g(n,"click",z(this.Aaa,this,i));o&&this.U.g(o,"click",z(this.IIa,this,i));var p=Y("knol-comment-hide-link"+i);if(p)if(d){p.style.display="";this.U.g(p,"click",z(lu,k,"Remove comment",
"Are you sure you wish to remove this item and its replies from your knol entry?",z(this.qaa,this,i,l),"Remove comment","Cancel"))}else Z(p);var s=Y("knol-comment-block-link-"+i),u=Y("knol-abuse-block-div-"+i);if(s&&s.style.display!="")if(d){var v=V("knol.ui.DiscussionView.isBlockable",[i,cg()]);v.k(function(x){if(x){var B=s.name.replace("knol-comment-block-name-","");if(s.style.display!=""){this.U.g(s,"click",z(this.v$,this,i,B));s.style.display=""}}else Z(s)},this);v.w(function(){ju()},this)}else Z(s);
else if(s){var w=s.name.replace("knol-comment-block-name-","");this.U.g(s,"click",z(this.v$,this,i,w));if(u)u.style.display=""}},this);var g=gm("a","knol-comment-approve-link",a);C(g,function(h){var i=h.id.replace("knol-comment-approve-link-","");if(d){this.U.g(h,"click",z(this.uja,this,i));h.style.display=""}},this)};q.Moa=function(a){var b=G(xw).hs(),c=gm("a","knol-comment-invite-link",a);C(c,function(d){if(b)d.style.display="";else Z(d)})};
q.gPa=function(a){var b=gm("span","knol-comment-rating",a),c=this.fm;C(b,function(d){var f=d.id;if(wa(f,"knol-comment-rating-")){f=f.replace("knol-comment-rating-","");c.add(f)}});c.iGa()};
q.v1=function(a,b,c){var d=Y(a),f;if(d){f=new li;f.sa()}else{var g=a.replace("knol-comment-replies-",""),h="knol-comment-action-spinner-"+g;if(!this.Of(h,j))return;f=V("knol.ui.DiscussionView.createRepliesAsString",[g]);f.k(function(i){this.Of(h,l);var m=tm("div");m.innerHTML=i;zm(m.firstChild,Y("comment-"+g));m.firstChild&&this.EOa(g,m.firstChild);this.TG();this.Mk()},this);f.w(function(i){this.Of(h,l);iu("Error encountered while fetching replies",k,i)},this)}f.k(function(){qv(a,b,c)})};
q.EOa=function(a,b){var c=Y("comment-"+a);if(c){var d=X.z(b),f="knol-comment-too-many-replies-"+a;Om(c,function(g){if(X.Zi(g,f)){X.remove(g,f);X.add.apply(X,[g].concat(d))}return l})}};q.Qua=function(a,b){if(b)return l;var c=K(a);if(c&&c instanceof S){var d=c;return d.jx()&&!d.Zb(gg())&&!Q().wb()}return l};q.BK=function(a,b,c,d){var f=z(this.sma,this,a,b,c,d);f()};
q.sma=function(a,b,c,d){by();var f=this.Qua(a,b),g=d?Y(d).value:k,h=this.y3(Y(c))||"";if(h||g){h=kf(h,5000);g=kf(g,250);var i=b?"knol-comment-replies-spinner-"+a:"knol-comment-new-spinner";if(this.Of(i,j)){var m=this,n=function(w){if(f)window.location.reload();else{var x=Yx(m.xb());if(x&&x.yva()!=1){x.oK();Li(x,"load",s);x.Gq(m.sE(m.eI,m.ai))}else{var B="knol.ui.DiscussionView.createDiscussionItemFromId",H=V(B,[w.n()]);H.k(function(F){var M=Y(m.xb()),W=p(F,M,M.firstChild);pv(W);x&&x.pZ(1)});H.w(u)}}},
o=function(w){var x="knol.ui.DiscussionView.createReplyItemFromId",B=V(x,[w.n()]);B.k(function(H){var F=Y("knol-comment-replies-"+a),M=Om(F,function(W){return W.className&&W.className.indexOf("knol-comment-my-reply")!=-1});p(H,M.parentNode,M).style.display=""});B.w(u)},p=function(w,x,B){var H=tm("div");H.innerHTML=w;for(var F=H.firstChild;H.firstChild;)x.insertBefore(H.firstChild,B);m.TG();m.Mk();s();return F},s=function(){var w=Y(c);w.value="";Ti(w,"change",l,k);this.bz&&Ti(w,"blur",l,k);if(d)Y(d).value=
"";b||rv("knol-comment-new","knol-comment-new-show");m.Of(i,l)},u=function(){m.Of(i,l);ju("There was an error in creating comments. This can be due to a temporary outage or the insufficient permission in making comments.")},v=new Fk(sk(gg()),"createDiscussion");v.la([a,h,g,f],function(w){var x=K({Mf:w});b?o(x):n(x)},u)}}};q.y3=function(a){if(this.bz&&a.className=="knol-comment-lorem-ipsum")return"";return a.value};
q.yoa=function(a){var b=Y("knol-comment-text-"+a),c=Wm(b),d=Y("knol-comment-text-editor-"+a);d.style.width=b.clientWidth-40+"px";d.style.height=b.clientHeight+40+"px";d.value=c;this.SS(a,j)};
q.zaa=function(a){if(Q()){var b=Y("knol-report-placeholder-"+a);if(b){this.TG();b.innerHTML=wo(a).v();b.parentNode.insertBefore(b.firstChild,b);b.parentNode.removeChild(b);this.Mk()}(new qo).vMa(a);var c=Y("knol-report-link-"+a),d=Y("knol-report-hide-link-"+a);c.style.display="none";d.style.display="";pv(d)}else{var f=window.location.href,g=f.indexOf("#");if(g>=0)f=f.substring(0,g);f+="#report-comment-"+a;tf(f)}};
q.Aaa=function(a){(new qo).Rya(a);var b=Y("knol-report-link-"+a),c=Y("knol-report-hide-link-"+a);b.style.display="";c.style.display="none"};
q.IIa=function(a){var b="knol-report-div-"+a,c=Y(b+"type_sexually_explicit"),d=Y(b+"type_hate_speech"),f=Y(b+"type_general_abuse"),g=Y(b+"type_impersonation"),h=Y(b+"type_spam"),i=Y(b+"type_other"),m=Y(b+"checkbox"),n=Y(b+"body"),o=Y(b+"typeerror");Y(b+"emailerror");Y(b+"quotaerror");o.style.display="none";var p="";if(c.checked)p=c.value;if(d.checked)p=d.value;if(g.checked)p=g.value;if(f.checked)p=f.value;if(h.checked)p=h.value;if(i.checked)p=i.value;var s=0;if(p==""){o.style.display="";s++}var u=
function(){alert("There was an error in sending your report.")};if(s==0){var v=V("knol.ui.AbuseReport.isAbuseReportQuotaReached",k);v.k(z(function(w){if(w)u();else{var x=V("knol.Discussion.reportAbuse",[a,dg(),p,n.value,m?m.checked:l]);x.k(function(){alert("Thank you. Your report has been submitted.");this.Aaa(a)},this);x.w(u)}},this));v.w(u)}};
q.mOa=function(a){var b=Y("knol-comment-text-editor-"+a).value;if(b){var c="knol-comment-action-spinner-"+a;if(this.Of(c,j)){by();var d=Y("knol-comment-text-"+a),f=V("knol.ui.DiscussionView.updateId",[a,b]),g=this,h=function(m){if(d.innerHTML!=m){d.innerHTML=m;g.nOa(a)}g.SS(a,l);g.Of(c,l)},i=function(){g.Of(c,l);ju("Failed to update comment")};f.k(h);f.w(i)}}};q.IHa=function(a){this.SS(a,l)};
q.qaa=function(a,b,c){by();if(c.ga=="yes"){var d="knol-comment-action-spinner-"+a;if(this.Of(d,j)){var f=this,g=function(m){f.Of(d,l);ju("Failed to remove comment",m)},h=function(){Cj(cg(),"cleanUpDiscussions",[]);var m=["comment-"+a,"knol-comment-replies-"+a],n=0;C(m,function(p){var s=Y(p);if(s){var u=s.parentNode;u.removeChild(s);if(!u.firstChild){var v=u.parentNode;v.removeChild(u);v.id==f.xb()&&n--}}});if(n){var o=Yx(f.xb());o&&o.pZ(n)}f.Of(d,l)};if(b){var i=new Fk(sk(a),"removeNode");i.la([],
h,g)}else{i=new Fk(sk(a),"hideNode");i.la([cg()],h,g)}}}};q.v$=function(a,b){var c=z(tu,k,"Block user",oo(b));lu("Block user",ko(b),z(function(d){if(d.ga=="yes"){var f=new Fk(sk(gg()),"blockUserFromDiscussion");f.la([a,cg()],z(function(g){if(g){var h=Cj(cg(),"cleanUpDiscussions",[]);h.k(function(){this.oaa()},this);h.w(c)}else c()},this),c)}},this))};
var cy=function(a){var b=a?"":"none",c=gg(),d=cg(),f=new Fk(sk(d),"isBlocked"),g=function(i){if(i){var m=Y("knol-comments-not-permitted");m.style.display="";b="none";for(var n=Y("comments"),o=gm("a","knol-comment-my-reply-submit",n),p=0;p<o.length;p++)o[p].parentNode.innerHTML="Sorry! This knol's owner(s) have blocked you from editing, making suggestions, or commenting here."}else{var s=Y("knol-comment-new");if(s)s.style.display=b}},h=function(){iu()};f.la([c],g,h,j)},dy=function(){var a=Y("knol-comment-new");
return!!a&&a.style.display!="none"};q=$x.prototype;q.HAa=function(a){return!!this.zR&&this.zR==a};q.rla=function(){this.zR=k};
q.mGa=function(a){var b=k,c=k,d=k;if(a)if(wa(a,"view-comment-"))b=a.substring(13);else if(wa(a,"comment-"))b=this.i4(a.substring(8));else if(wa(a,"report-comment-")){d=a.substring(15);b=this.i4(d)}var f=function(){if(d){var i=Y("comment-"+g);if(i&&i.style.display=="none")i.style.display="";this.zaa(d)}else this.Tya(a)};if(b){var g=this.uZ(b);if(!g||!Y("comment-"+g)){var h=Yx(this.xb());if(h){c=h.Gq(b,j);c.k(f,this)}}else f.call(this)}return c};
q.Tya=function(a){if(ey(a,"comment")){var b=Y(a);if(b){var c=X.z(b);if(zb(c,"knol-comment"))X.Ub(b,"knol-highlighted-comment",j);else if(zb(c,"knol-comment-reply")){var d=Ym(Y(a),"DIV","knol-comment-replies"),f=gm($l,"knol-comment-replies-toggle",Cm(d.previousSibling,l));this.v1(d.id,f[1].id,f[0].id);X.Ub(b,"knol-highlighted-reply",j)}}}};
q.SS=function(a,b){for(var c=["knol-comment-text-",!b,"knol-comment-edit-wrapper-",b,"knol-comment-edit-link-",!b,"knol-comment-save-link-",b,"knol-comment-cancel-link-",b,"knol-comment-remove-link-",!b],d=0;d<c.length;d+=2){var f=Y(c[d]+a);if(f)f.style.display=c[d+1]?"":"none"}};
q.nOa=function(a){var b=Y("knol-comment-created-time-"+a);if(b)b.style.display="none";var c=Y("knol-comment-edited-time-"+a);c.style.display="";var d=Y("knol-comment-timestamp-"+a),f=Cj(a,"getEditTime",[]);f.k(function(g){d.innerHTML=g})};q.qQ=function(a,b){var c=["keyup","change"];C(a,function(d){d&&this.U.g(d,c,function(){var f=wb(a,function(g){return!this.y3(g).length},this);X.Ub(b,"knol-link-disabled",f)})},this)};
q.Of=function(a,b){if(this.sq[a]&&b)return l;if(!!this.sq[a]!=b){this.sq[a]=b;var c=Y(a);if(c)c.style.visibility=b?"inherit":"hidden";b||this.qla()}return j};q.uja=function(a){var b=Cj(a,"approve",[]);b.k(this.oaa,this)};q.oaa=function(){var a=new Ed(fg().ea());a.$("nc",Xe());a.oo("comments");window.location=a.toString()};var fy=function(){};E(fy,Xs);Sd(fy.prototype,Dq.prototype);t("knol.ui.client.Toc",fy,undefined);var gy=l,hy=0,iy=0,jy=[],ky=k,ly=k,my=k,ny=k,oy=k,py=k;fy.prototype.uz=function(a,b,c,d){gy=a;hy=b;iy=c;jy=d;ky=Y("knol-toc-expand-handle");ly=Y("knol-toc-collapse-handle");my=Y("knol-toc");ny=Y("knol-toc-list");oy=Y("knol-content-"+dg());py=Y("knol-content-body");my&&$(my,hy>0&&hy>0);this.xH();qy()};fy.prototype.onLoadHandler=fy.prototype.uz;
var qy=function(){U(ky,"click",function(){var a=G(fy).KN();if(-1!=a){var b=G(fy).WM();if(-1==b)b=a;var c;if(gy){c=b;gy=l}else c=b+1;c=Math.min(c,a);mv(my,jy[c]);G(fy).xH()}});U(ly,"click",function(){var a=0,b=G(fy).WM(),c=Math.max(b-1,a);gy=l;mv(my,jy[c]);G(fy).xH()})};q=fy.prototype;
q.DOa=function(a){if(this.un()){var b=k;try{b=wd(a)}catch(c){D("knol.ui.client.Toc").S("could not parse jsonToc: "+a,c);b=Ys}gy=b.truncated;hy=b.nItems;iy=b.dispLevel;jy=b.nonemptyLevels;if(my)my.className="knol-element-toggle-level-max-6 knol-element-toggle-level-"+iy;if(ny)ny.innerHTML=b.htmlCode;my&&$(my,hy>0&&hy>0);this.Lza();this.xH()}};
q.Lza=function(){var a=Pm(ny,function(g){return g.tagName=="A"}),b=hy;if(a.length<b)b=a.length;if(!(b<=0)){this.paa();var c=new $u(oy),d,f=0;Rb(c,function(g){if((d=g.tagName)&&d.match(/H[1-6]/)){if(!Ba(Vm(g))){ym(tm("a",{name:a[f].hash.substring(1),"class":"knol-anchor-headings"},""),g);f++;if(f>=b)e(Ob)}c.CT()}})}};q.paa=function(){var a=py,b=Pm(a,function(c){return c.className=="knol-anchor-headings"});C(b,function(c){Z(c)})};
q.xH=function(){var a=ly,b=ky,c=this.KN(),d=this.WM();if(c==-1||hy<10){$(a,l);$(b,l);var f=G(fy).KN();if(f!=-1){gy=l;mv(my,jy[f])}}else{d==0?$(a,l):$(a,j);d==c&&!gy?$(b,l):$(b,j)}};q.KN=function(){for(var a=kv(my),b=jy.length-1;b>=0&&jy[b]>a;)b--;return b};q.WM=function(){var a=nv("knol-toc");return rb(jy,a)};var ry=function(){if(!my)return l;return Sq(my,"display")!="none"};var sy=function(){},ty,uy,vy;E(sy,js);
var wy=l,xy=function(){wy=l},Ay=function(a){var b=G(dq),c=new li;if(b.$g()||!yy(a))c.sa();else{c=V("knol.ui.Toc.getUpdatedToc",[dg(),0]);c.k(function(d){G(fy).DOa(d)});c.w(function(d){zy(k,d)})}return c},By=function(a,b,c){D("knol.ui.client.Knol");var d=b-a+1,f="Integrated latest content from "+(d+" other version(s) saved by other author(s). "),g=N({b:"a",href:fg().ea()+"#revisions",target:"versions",d:"View versions."}),h=f+g.v();if(c){Du();Cu(h)}else{Fu();Eu(h)}},Cy=function(a,b){var c=b+" and they may not be finished yet. Your changes could interfere with theirs.";
Cu(c)},Ey=function(){var a=P(),b=Q();if(b&&a.Nj(b,2)==4){var c=G(dq).Ie(),d="Rollback to version "+c,f=Y("knol-old-version-header");if(f){var g=rm("a",{"class":"knol-fake-link",id:"knol-old-version-header-link"},d);f.appendChild(g);Dy(c)}}};t("knol.ui.client.Knol.renderRevertLink",Ey,undefined);
var Dy=function(a){var b="Rollback to version "+a,c="Rolling back to version "+(a+" will edit the knol to include only the exact the contents of that version. That will effectively undo all changes made after it.<br /><br />Are you sure you want to rollback?"),d="Rolling back to version "+(a+" will edit the collection to include only the exact the contents and knols of that version. That will effectively undo all changes made after it.<br /><br />Are you sure you want to rollback?"),f=Y("knol-old-version-header-link");
if(f){var g=P(),h=g&&g.va();Li(f,"click",function(){ty=lu("Version Rollback",h?d:c,Fy,b,"Cancel")})}},Fy=function(a){var b=G(dq).Ie();if(a.ga!="yes")Dy(b);else{var c=Cj(cg(),"revertToContentVersion",[b]);c.k(function(d){ty&&ty.m();if(d==8)zy("There is no difference between the latest version and this version");else if(!d||ka(d))zy("Could not rollback to this version");else if(ma(d)){var f=new ep;f.R(d);if(f.VE())f.D3()==9?zy("You cannot rollback a moderated collection to a previous version that included a knol that does not belong to you. Please ask an author of the knol to add it back to this moderated collection."):
zy("Could not rollback to this version");else{dw={};var g=Y("knol-old-version-header-link"),h="Knol edited to contain contents of version: "+(b+"."),i="Collection edited to contain contents of version: "+(b+"."),m=rm("a",{href:"#revisions"},"Versions"),n=P(),o=n&&n.va(),p=rm("span",{id:"knol-old-version-header-link"},(o?i:h)+" View: ",m);Am(p,g)}}});c.w(function(d){ty&&ty.m();zy(k,d)})}},Gy=function(){var a="Start writing here.";return'<br /><span class="knol-starter-text">'+a+"</span><br /><br />"},
zy=function(a,b){iu(a||"Unexpected error",k,b)},Hy=function(a){var b=Y("knol-content-"+dg());xv(b);b.innerHTML=a},Iy=function(a){var b=dg(),c=["knol-old-version-header","knol-content-wrapper-"+b,"references",es.tJ,"knol-adsense-long-code","knol-review-details","knol-collection-navigation","knol-collection-navigationfooter"];C(c,function(d){var f=Y(d);if(f)f.style.display=a?"":"none"})},Wv=function(a){D("knol.ui.client.Knol");for(var b=Y("knol-article-top"),c=b.firstChild;c;c=c.nextSibling)if(c.style&&
c.id!="knol-author-heading")c.style.display=a?"":"none"},Jy=function(){var a=Y("knol-content-wrapper-"+dg());return a.style.display!="none"};var Ky=function(){},Ly=function(){var a=P();return!!a&&a.Iy()},My=function(){var a=Y("knol-sub-collection-suggestions");return!!a&&a.style.display!="none"},Ny=function(){var a=G(Ky);return a.Au()};Ky.prototype.Au=function(){var a=V("knol.ui.SubCollectionSuggestions.getListHTML",[cg()]);a.k(this.qOa,this);a.w(Oy);return a};var Oy=function(a){ju(k,a)};Ky.prototype.qOa=function(a){var b=Y("knol-sub-collection-suggestions-list");if(b)b.innerHTML=a};var Py=function(a){this.j=new Dq(this);this.sm=k;this.$n=a||""},Qy=function(){var a=G(Py);a.Yb()};t("knol.ui.client.ChatLog.init",Qy,undefined);var Ry=function(a){var b=Y(a||"knol-chatlog");if(b)b.style.display="none"};q=Py.prototype;q.Yb=function(){var a=Q(),b=P();if(a&&b){var c=new Ed(document.location.href);this.sm=c.Hf("submissionId")||k;if(b.a6()||this.sm)this.refresh()}};
q.refresh=function(a,b,c){var d=V("knol.ui.ChatLog.get",[a||cg(),b||this.sm,this.$n]);d.k(function(f){var g=f&&f[0],h=f&&f[1];if(y(h)&&g==1||g==2){var i=Y(c||"knol-chatlog");if(i){this.Nc();i.style.display="";i.innerHTML=h;this.Eb(a,c)}}},this)};
q.Eb=function(a,b){var c=Y(b||"knol-chatlog");if(c){for(var d=im(k,"knol-chatlog-submit",c),f=0;f<d.length;f++){var g=Df(d[f].id,"knol-chatlog-submit-"+this.$n);if(g)this.j.g(d[f],"click",z(this.O5,this,g,a||cg()))}var h=im(k,"knol-chatlog-stub",c);for(f=0;f<h.length;f++)(g=Df(h[f].id,"knol-chatlog-stub-"+this.$n))&&this.j.g(h[f],"click",z(this.S5,this,g,j));var i=im(k,"knol-chatlog-collapse",c);for(f=0;f<i.length;f++)(g=Df(i[f].id,"knol-chatlog-hide-"+this.$n))&&this.j.g(i[f],"click",z(this.S5,this,
g,l))}};q.Nc=function(){this.j.jb()};q.O5=function(a,b,c,d){var f=Y("knol-chatlog-input-"+this.$n+a),g=Ha(f&&f.value||"");if(g){var h=V("knol.ui.ChatLog.submit",[b,a,g]);h.k(function(i){var m=i&&i[0],n=i&&i[1];if(y(n)&&m==1||m==2){var o=Y("knol-chatlog-item-"+this.$n+a);if(o){var p=document.createElement("div");p.innerHTML=n;o.insertBefore(p.firstChild,o.lastChild);f.value=""}}d&&d.call(k)},this);h.w(function(i){d?d.call(k):ju(k,i)})}else d&&d.call(k)};
q.S5=function(a,b,c){c.preventDefault();var d=Y("knol-chatlog-stub-"+this.$n+a);if(d)d.style.display=b?"none":"";var f=Y("knol-chatlog-item-"+this.$n+a);if(f)f.style.display=b?"":"none"};var Sy=function(a,b,c,d,f){this.lK=new Py("dialog");this.Pb=a;this.MZ=b;this.Gm=c;this.Lb=d||function(){};this.Uka=f||function(){};this.Yb();this.lK.sm=this.MZ;this.lK.refresh(this.Pb,this.sm,"knol-chatlogdialog")};E(Sy,fu);
Sy.prototype.Yb=function(){var a=N({b:"div",children:[{b:"div",c:"knol-chatlogdialog-desc",d:"Optional: Leave a private comment to explain your reasoning."},{b:"div",id:"knol-chatlogdialog"}]}),b=this.al(),c="knol-dialog",d=z(this.mH,this);fu.call(this,this.Gm?"Accept knol into the collection":"Reject knol from the collection",a.v(),k,c,d,b);this.M(j);var f=b.Ug("ok");f&&wv(f)};
Sy.prototype.al=function(){var a=new qt;this.Sk=a;a.G("ok",this.Gm?"Accept knol into the collection":"Reject knol from the collection",l);a.G("cancel","Cancel",l,j);return a};Sy.prototype.mH=function(a){a.ga=="ok"?this.lK.O5(this.MZ,this.Pb,a,this.Lb):this.Uka.call(k)};var Ty=function(){this.wk=Bl();this.fG=new Dg;this.j=new Dq(this);this.Bq={};this.uu=this.rm=this.SF=0},Uy=function(){var a=P();return!!a&&a.Yc()!=0},Vy=function(){var a=Y("knol-submissions");return!!a&&a.style.display!="none"},Wy=function(){var a=G(Ty);return a.Au(l)};Ty.prototype.Au=function(a){return this.baa(a,0,50)};Ty.prototype.baa=function(a,b,c){if(b>=this.rm+this.uu)b-=this.uu-this.SF;var d=V("knol.ui.Submissions.getList",[cg(),a,b,c]);d.k(z(this.tOa,this,b,c));d.w(Xy);return d};
var Xy=function(a){ju(k,a)};q=Ty.prototype;q.tOa=function(a,b,c){var d=c&&c[0],f=c&&c[1],g=c&&c[2];if(!ha(d)||!y(f)||!ha(g))Xy();else{this.rm=a;this.uu=b;this.wk=Bl();this.wk.R(d);this.fG=new Dg;this.fG.R(g);this.Lea();var h=Y("knol-submissions-list");if(h){this.Nc();xm(h);this.sKa(h,f);this.Eb()}}};
q.Lea=function(){var a=this.wk.Ea(),b=Y("knol-submissions-list");if(b)b.style.display=a?"none":"";var c=Y("knol-menu-heading-extra-note");if(c)c.style.display=a?"none":"";var d=Y("knol-submissions-empty");if(d)d.style.display=a?"":"none"};
q.sKa=function(a,b){var c=document.createElement("div");c.innerHTML=b;var d=c.getElementsByTagName("ul")[0];if(d)for(var f=this.wk.mf(),g=d.firstChild,h=0,i=g;i;i=g){g=i.nextSibling;i.nodeName&&i.nodeName.toLowerCase()=="li"&&this.sha(f[this.rm+h++],i,a)}this.SF=h;var m=im(k,"knol-search-pagination",c)[0];if(m){this.tHa(m);a.appendChild(m)}};
q.sha=function(a,b,c){var d=this.z3(a),f=a.ha(),g=f=="delete",h=new Dq(this);this.Bq[d]=h;var i=rm("div",{id:d,"class":"knol-submissions-item-cls"});c.appendChild(i);var m=this.nra(a);i.appendChild(m);var n=this.ema();m.appendChild(n);h.g(n,"click",z(this.Mwa,this,a));var o=rm("div",{"class":"knol-submissions-wrapper"});i.appendChild(o);var p=rm("div",{"class":"knol-submissions-left"});o.appendChild(p);p.appendChild(this.jna(b));var s=rm("div",{"class":"knol-submissions-right"});o.appendChild(s);
var u=this.bma(g);s.appendChild(u);h.g(u,"click",z(this.d$,this,j,a));s.appendChild(document.createTextNode("|"));var v=this.Uma(g);s.appendChild(v);h.g(v,"click",z(this.d$,this,l,a));s.appendChild(document.createTextNode("|"));var w=this.Wma();s.appendChild(w);h.g(w,"click",z(this.NEa,this,a));var x="goog-inline-block knol-submissions-content knol-submissions-type-"+f,B=rm("div",{"class":b.className+" "+x},b.childNodes);o.appendChild(B);i.appendChild(rm("div",{"class":"knol-clearer-div"}))};
q.nra=function(a){var b=a.ha(),c=a.Ui(),d=a.xn();a.Xg();var f=this.fG.z(a.Xg())||["????",""],g='<a href="'+Ra(f[1])+'" target="_blank">'+f[0]+"</a>",h=rm("div",{"class":"knol-submissions-description"}),i="";if(b=="add")if(ka(c)){var m="Added to position "+(String(c)+(" by "+(g+":")));i=m}else{var n="Added by "+g;i=n}else if(b=="delete"){var o="Removed by "+g;i=o}else if(b=="edit")if(ha(d))if(d){var p="Hide item by "+g;i=p}else if(ka(c)){var s="Show item in position "+(String(c)+(" by "+g));i=s}else{var u=
"Show item by "+g;i=u}else if(ka(c)){var v="Moved to position "+(String(c)+(" by "+g));i=v}h.innerHTML=i;return h};q.jna=function(a){var b=im("a","knol-search-knol-title",a)[0],c=b&&b.href||"";return rm("a",{href:c,target:"_blank","class":"knol-submissions-link"},"View")};q.bma=function(a){var b="";b=a?"Remove":"Accept";return rm("a",{href:Zm,"class":"knol-submissions-link"},b)};q.Wma=function(){return rm("a",{href:Zm,"class":"knol-submissions-link"},"Request review")};
q.Uma=function(a){var b="";b=a?"Keep":"Decline";return rm("a",{href:Zm,"class":"knol-submissions-link"},b)};q.ema=function(){return rm("a",{href:Zm,"class":"knol-less-important-small-link"},"Block this user")};q.tHa=function(a){for(var b=im("a",k,a),c=0;c<b.length;c++){var d=(b[c].className||"").split("_");if(d.length>=3&&d[0]=="knol-search-knol-pagination"){b[c].href=Zm;this.j.g(b[c],"click",z(this.baa,this,l,Number(d[1]),Number(d[2])))}}};q.Eb=function(){};
q.Nc=function(){this.j.jb();for(var a in this.Bq){this.Bq[a]&&this.Bq[a].m();delete this.Bq[a]}};q.NEa=function(a){var b=a.Ca(),c=Q(),d=fg();Ck(z(function(){var f=K(b),g=new Dv(c,f,d,z(this.jNa,this,f.$d()),function(){});g.Cb()},this))};q.jNa=function(a,b,c,d,f,g){sw();var h=z(ju,k,"request collection review");Fu();Eu("Sending message...");var i=Cj(gg(),"requestCollectionReview",[a,cg(),b,g,c,d,f]);i.k(function(m){Fu();m||Eu("Failed to send message. Please try again later.")});i.w(h)};
q.d$=function(a,b,c){c.preventDefault();var d=b.Ca();if(d){var f=z(this.Dwa,this,a,b),g=b.Xg();b.ha()!="add"||!g?f.call(this):Ck(z(function(){var h=K(d);h||f.call(this);var i=h.Fa();if(i.Zb(g))new Sy(i.n(),cg(),a,f,k);else f.call(this)},this))}};
q.Dwa=function(a,b,c){c&&c.preventDefault();var d=V("knol.ui.Submissions.review",[cg(),a,b.serialize()]);d.k(function(f){var g,h="";if(f instanceof Array&&f.length==2){g=f[0];h=f[1]}else g=f instanceof Array?1:f;this.xf=h;if(g==-1){this.RG(b,j);a&&this.BOa();var i="";if(a)if(b.ha()=="add")i="The submission is now a part of the collection.";else if(b.ha()=="delete")i="The item has been removed from the collection.";else{if(b.ha()=="edit")i="The item has changed position in the collection."}else if(b.ha()==
"add")i="The submission has been rejected.";else if(b.ha()=="delete")i="The removal request has been rejected.";else if(b.ha()=="edit")i="The move request has been rejected.";var m=N({b:"a",href:Zm,d:"Undo",id:"knol-suggestion-undo"});Fu();if(h)i+=" "+m.v();Eu(i);var n=Y("knol-suggestion-undo");n&&this.j.g(n,"click",z(this.gOa,this,h))}else{i="An error has occurred.  Please reload the page and try again.";if(g==2)i="You don't have permission to review this submission.  Please reload the page and sign in again.";
else if(g==3){i="This submission no longer exists.  It may already be reviewed by another moderator or reverted by the submitter.";this.RG(b,l)}else if(g==4){i="The collection has been changed and this submission no longer applies.";this.RG(b,j)}else if(g==5){i="This submission was automatically discarded because it has been accepted into another moderated collection.";this.RG(b,j)}iu(i)}},this);d.w(Xy)};
q.RG=function(a,b){for(var c=this.wk.mf(),d=[],f=0;f<c.length;f++){var g=c[f]==a;if(b)g=c[f].Ca()==a.Ca()&&c[f].ha()==a.ha();if(g){var h=this.z3(c[f]),i=this.Bq[h];if(i){i.m();delete this.Bq[h]}Z(Y(h));this.SF--}else d.push(c[f])}this.wk.yH(d);!this.SF&&!this.wk.Ea()?this.Au(l):this.Lea()};q.z3=function(a){return"knol-submissions-item-"+a.Xg()+"-"+a.ha()+"-"+a.Ca()};
q.Mwa=function(a,b){b.preventDefault();var c=a.Xg(),d=this.fG.z(c)[0],f="You are going to decline all submissions from "+(d+" and block this user. <br><br>");lu("Block user",f+ko(d),z(function(g){g.ga=="yes"&&this.gka(c,d)},this))};q.gka=function(a,b){var c=new Fk(sk(gg()),"blockUser");c.la([a,l,cg()],z(function(d){if(d){tu("Block user",lo(b));this.Au(j)}else tu("Block user",oo(b))},this),function(){tu("Block user",oo(b))})};q.BOa=function(){var a=fg();a[hi.cJ]=ua();G(Yy).N5()};
q.gOa=function(a){var b=V("knol.ui.Submissions.undo",[cg(),a]);b.k(z(function(c){Fu();var d="Undo suceeded";c||(d="Undo failed");Eu(d);this.Au(j)},this));b.w(Xy)};var xw=function(){this.SC=""},Zy,$y;t("knol.ui.client.KnolMenu",xw,undefined);
var az=function(){if(!Zy){var a=Y("knol-navigation-state-input");if(!a){a=rm("input",{type:"text",id:"knol-navigation-state-input",name:"knol-navigation-state-input",style:"display: none"});document.body.appendChild(a)}var b=Y("knol-navigation-state-iframe");if(!b&&I){b=rm("iframe",{id:"knol-navigation-state-iframe",src:"",style:"display: none"});document.body.appendChild(b)}Zy=new ux(l,undefined,a,b);Zy.aa(j);I&&Zy.Q9()}return Zy},nz=function(a){D("knol.ui.client.KnolMenu");var b,c=new li,d=G(xw),
f={content:Jy(),history:rw(),iL:dy(),pea:ry(),VQ:G(Ou).Ob()?bz()||cz():l,Q8:G(Jw).Ob()?dz():l,Xk:ez(),vL:fz(),Zda:Vy(),Xda:My()},g=G(Ou),h=k;gz(a);if(g.Ob())var i=G(Pu);if(ey(a,"edit"))if(d.gs())if(Q())if(i)if(h=G(hz).dOa(a)){a=h;b=l}else(function(){Fu();iz({content:j,iL:j,VQ:d.Uk(),Xk:j,vL:d.Uk()},a);if(Jy())if(i.ce()){i.refresh();b=j}else if($y)b=j;else{$y=j;var s=function(){$y=l;i.xoa()},u=function(){$y=l;jz()};if(d.wp()){c=G(kz).Dva(j);c.k(function(v){if(v)s();else{wy=j;var w=lz(j,l,l,j);w.k(s);
w.w(u)}})}else{mz();wy=j;c=lz(j,l,l,j);c.k(s)}c.w(u)}else{b=j;ba.setTimeout(function(){xw.aR(a)},50)}})();else{g.load(z(nz,k,a));b=j}else{tf(document.location.href);b=j}else b=l;else if(yy(a)){var m=G($x);if(m.HAa(a))m.rla();else if(oz(i,a,j)){var n=ha(Q());iz({content:j,iL:n,pea:j,Xk:j,vL:d.Uk()},a);var o=m.mGa(a);if(o)c=o;else b=j}else b=l}else if(ey(a,"revisions")&&!fg().n2())if(oz(i,a)){iz({history:j},a);c=gw(a)}else b=l;else if(ey(a,"manage")&&d.hs()){var p=G(Jw);if(p.Ob())if(oz(i,a)){iz({Q8:j},
a);c=pz(a)}else b=l;else{p.load(z(nz,k,a));b=j}}else if(ey(a,"submissions")&&d.Uk()&&Uy())if(oz(i,a)){iz({Zda:j},a);c=Wy(a)}else b=l;else if(ey(a,"subsuggestions")&&d.Uk()&&Ly())if(oz(i,a)){iz({Xda:j},a);c=Ny(a)}else b=l;c.w(function(){iz(f,a)});if(b==j)c.sa();else b==l&&c.Ja(new Error("did not complete navigation"));return c},oz=function(a,b,c){if(!a||a.kZ(b)){Du();c||Fu();return j}else return l},gz=function(a){Vy()&&!ey(a,"submissions")&&Fu()},iz=function(a,b){Iy(!!a.content,b);Wv(!!a.content);
Rv(!!a.history,b);Yv(!!a.history,b);cy(!!a.iL,b);my&&$(my,!!a.pea&&hy>0);if(G(Ou).Ob()){qz(!!a.VQ,b);rz(!!a.VQ,b)}G(Jw).Ob()&&sz(!!a.Q8,b);tz(!!a.Xk,b);var c=!!a.vL,d=b;G(uz).M(c,d);var f=!!a.Zda,g=Y("knol-submissions");if(g)g.style.display=f?"":"none";var h=!!a.Xda,i=Y("knol-sub-collection-suggestions");if(i)i.style.display=h?"":"none"},jz=function(){Jv("view")},yy=function(a){return!a||ey(a,"view")||wa(a,"comment-")||wa(a,"report-comment-")},Iv=function(){return window.location.hash.substring(1)},
ey=function(a,b){return a.split("-")[0]==b},Jv=function(a){window.location.hash=a};q=xw.prototype;q.aN=function(){return P().Nj(Q(),2,G(dq).Ie())};q.gs=function(){var a=this.aN();return a==4||a==3||a==6};q.wp=function(){var a=this.aN();return a==3||a==6};q.xta=function(){return P().Nj(Q(),10)};q.hs=function(){return this.xta()==4};q.Ata=function(){return P().Nj(Q(),14)};q.Uk=function(){return this.Ata()==4};q.load=function(){U(az(),"navigate",function(a){G(xw).aR(a.token)});this.aR(Iv())};
xw.prototype.load=xw.prototype.load;xw.prototype.aR=function(a){Iv()!=a&&Jv(a);if(!this.Taa)if(!eu||du){if(yy(a)||ey(a,"edit")||ey(a,"revisions")||ey(a,"manage")||ey(a,"submissions")||ey(a,"subsuggestions")){var b=nz(a);b.k(function(){this.SC=a},this);b.w(this.Oaa,this)}}else this.Oaa()};xw.prototype.Oaa=function(){this.Taa=j;Jv(this.SC);this.Taa=l};xw.prototype.ela=function(){Vx(function(){G(ks).uT(l)},this)};
xw.prototype.Vya=function(){this.gs()?G(ks).Yma():G(ks).uT(l);if(Q()){this.ela();!Y("knol-content-"+dg()).innerHTML&&G(xw).gs()&&P()&&P().Yc()==0&&Hy(Gy())}};xw.prototype.hookupLinks=xw.prototype.Vya;
var mz=function(){var a=P(),b=gg();if(!a.Zb(b)&&!a.j7(b)&&!a.Ey(b)){var c,d=Q();d||(d=new Fj(Fp(gg())));c=d.Wi();var f="You will appear as "+(c+" in this knol's contributor list once your changes are saved."),g="You will appear as "+(c+" in this collection's contributor list once your changes are saved."),h=a.va()?g:f;vy=h}};var wz=function(a,b){var c=Q();if(c){var d=P();if(a==c.n()||c.bg()||d.Th(c.n())){var f=b+"-"+a,g=Y(f);if(g){var h=g.parentNode;h.style.visibility="visible";h.style.display="";var i=z(vz,k,c.n(),a,d.n());U(g,"click",i)}}}};t("knol.ui.client.AuthorListHelper.setupRemoveLinks",wz,undefined);
var vz=function(a,b,c){mu("Remove author from list","Are you sure you want to remove the author from the list?",function(){var d=Cj(a,"removeUser",[b,c]);d.k(function(){window.location.reload(j)});d.w(z(iu,k,"Failed to remove the author, please try again later","Remove author failed"))},k,k)},xz=function(a){var b=G(xw).hs(),c=im("*","knol-author-list-invite",Y(a));C(c,function(d){if(b)d.style.display="";else Z(d)})};t("knol.ui.client.AuthorListHelper.setupInviteLinks",xz,undefined);var yz=function(a,b,c,d){this.T=c||dm();this.pe=a;this.pb=[];this.yNa=b?b:0;this.$ea=!!d;this.QC()};A(yz,Zi);q=yz.prototype;
q.QC=function(){this.pe.className="goog-tabpane";var a=this.qra();this.Zf=this.T.h("ul",{className:"goog-tabpane-tabs",tabIndex:"0"});this.ef=this.T.h("div","goog-tabpane-cont");this.pe.appendChild(this.ef);switch(this.yNa){case 0:this.pe.insertBefore(this.Zf,this.ef);this.pe.insertBefore(this.n_(),this.ef);X.add(this.pe,"goog-tabpane-top");break;case 1:this.pe.appendChild(this.Zf);this.pe.appendChild(this.n_());X.add(this.pe,"goog-tabpane-bottom");break;case 2:this.pe.insertBefore(this.Zf,this.ef);
X.add(this.pe,"goog-tabpane-left");break;case 3:this.pe.insertBefore(this.Zf,this.ef);X.add(this.pe,"goog-tabpane-right");break;default:e(Error("Invalid tab location"))}this.Zf.tabIndex=0;U(this.Zf,this.$ea?"mousedown":"click",this.pG,l,this);U(this.Zf,"keydown",this.qG,l,this);this.Rma(a)};q.n_=function(){var a=".goog-tabpane-clear { clear: both; height: 0px; overflow: hidden }";kr(a);return this.T.h("div","goog-tabpane-clear")};
q.o=function(){yz.e.o.call(this);Mi(this.Zf,this.$ea?"mousedown":"click",this.pG,l,this);Mi(this.Zf,"keydown",this.qG,l,this);delete this.pe;this.ef=this.Zf=k};q.qra=function(){for(var a=[],b=Dm(this.pe);b;){a.push(b);b=Cm(b.nextSibling,j)}return a};q.Rma=function(a){for(var b,c=0;b=a[c];c++)this.Sd(new zz(b))};
q.Sd=function(a,b){a.$a&&a.$a!=this&&a.$a instanceof yz&&a.$a.removePage(a);var c=this.pb.length;if(r(b)&&b!=c){c=b;this.pb.splice(c,0,a);this.Zf.insertBefore(a.Xm,this.Zf.childNodes[c])}else{this.pb.push(a);this.Zf.appendChild(a.Xm)}a.kA(this,c);if(!this.od){this.od=a;this.dispatchEvent(new Az("change",this,this.od))}this.ef.appendChild(a.ef);a.pT(a==this.od);for(var d,f=c+1;d=this.pb[f];f++)d.ue=f};
q.removePage=function(a){if(ka(a))a=this.pb[a];this.pb.splice(a.ue,1);a.kA(k);Z(a.Xm);Z(a.ef);for(var b,c=0;b=this.pb[c];c++)b.kA(this,c)};q.mA=function(a){if(a.X()&&(!this.od||a!=this.od)){this.od.pT(l);a.pT(j);this.od=a;this.dispatchEvent(new Az("change",this,this.od))}};q.ph=function(a){a>=0&&a<this.pb.length&&this.mA(this.pb[a])};q.Il=function(){return this.od?this.od.ue:-1};q.kva=function(){return this.od||k};q.Ba=function(){return this.ef||k};q.f=function(){return this.pe||k};
q.pG=function(a){for(var b=a.target;b!=this.Zf;){if(b.tagName=="LI"){var c;for(c=0;b=b.previousSibling;c++);this.ph(c);break}b=b.parentNode}a.preventDefault()};q.qG=function(a){switch(a.keyCode){case 37:var b=this.od.cE()-1;this.ph(b<0?this.pb.length-1:b);break;case 39:b=this.od.cE()+1;this.ph(b>=this.pb.length?0:b);break;case 36:this.ph(0);break;case 35:this.ph(this.pb.length-1);break}};
var zz=function(a,b,c){var d,f;if(y(a)&&!r(b))d=a;else if(b){d=b;f=a}else if(a){var g=Dm(a);if(g){d=Vm(g);g.parentNode.removeChild(g)}f=a}this.T=c||dm();this.ef=f||this.T.h("div");this.Xm=this.T.h("li",k,d);this.ue=this.$a=k;this.cb=j};q=zz.prototype;q.ad=function(){return Vm(this.Xm)};q.Sf=function(a){Lm(this.Xm,a)};q.d5=function(){return this.Xm};q.Ba=function(){return this.ef};q.cE=function(){return this.ue};q.yb=function(){return this.$a};q.select=function(){this.$a&&this.$a.mA(this)};
q.aa=function(a){this.cb=a;this.Xm.className=a?"goog-tabpane-tab":"goog-tabpane-tab-disabled"};q.X=function(){return this.cb};q.pT=function(a){if(this.X()){this.ef.style.display=a?"":"none";this.Xm.className=a?"goog-tabpane-tab-selected":"goog-tabpane-tab"}};q.kA=function(a,b){this.$a=a;this.ue=r(b)?b:k};var Az=function(a,b,c){oi.call(this,a,b);this.page=c};A(Az,oi);var Bz=function(){this.LT={}};q=Bz.prototype;q.Y=function(a,b,c){var d=ct(a),f=Y(d);if(f){f.style.display="";f.style.visibility="visible";var g=this.GD(a,j),h=this.GD(a,l),i=this.LT[a];this.Bb(a,j,i?i.Gz:g.checked);this.Bb(a,l,i?i.iOa:h.checked);b.g(g,"click",c);b.g(h,"click",c)}};q.GD=function(a,b){var c=ct(a),d=c+(b?"-published":"-unpublished");return Y(d)};q.Cc=function(a,b){var c=this.GD(a,b),d=c?c.checked:b;this.X$(a,b,d);return d};
q.Bb=function(a,b,c){var d=this.GD(a,b);if(d)d.checked=c?"checked":"";this.X$(a,b,c)};q.X$=function(a,b,c){var d=this.LT[a];if(!d){d={};this.LT[a]=d}if(b)d.Gz=c;else d.iOa=c};var Cz=function(a,b){this.U=new Dq(this);this.wi=a;this.Jr=b;this.visibility=new Bz;var c=gg()==a;if(c){var d=Y("knol-author-page-favorites-short");if(d){var f=V("knol.ui.AuthorPageLinks.renderFavoriteLinks",[]);f.k(function(B){if(B){d.innerHTML=B;d.style.display=""}})}}var g=Y("knol-author-page-tabs");if(g){var h=new yz(g);this.Qc=h;this.pb=[];var i=Y("knol-author-page-aboutme");if(c){if(!i.firstChild){i.appendChild(document.createTextNode("Tell the world about yourself in a few words."));for(var m=
0;m<2;m++)i.appendChild(document.createElement("br"))}var n=qx();i.appendChild(n.Ri())}if(i.firstChild){var o=new zz(i,"About me");h.Sd(o);this.pb.push(o)}for(m=0;m<Up.length;m++){var p=Up[m],s=Y(p.id),u=new zz(s,p.D);h.Sd(u);this.pb.push(u);this.Sb(p,s)}g.firstChild&&Tm(g.firstChild,l);var v=Q();if(c&&v){var w=Y("knol-author-page-favorites"),x=v.nN();if(x&&x.length){f=V("knol.ui.AuthorPage.renderFavoritesTab",[]);f.k(z(function(B){if(B){w.innerHTML=B;var H=new zz(w,"Favorites");h.Sd(H);this.pb.push(H);
Ox("knol-author-page-favorites","div","#fff");Ti(this.md,"navigate",l,{token:this.md.rf()})}},this));f.w(z(ju,k,"Failed to render favorites"))}}this.wza()}};t("knol.ui.client.AuthorPage",Cz,undefined);
Cz.prototype.wza=function(){this.md=az();U(this.md,"navigate",z(function(a){for(var b=a.token,c=0;c<this.pb.length;c++){var d=this.pb[c],f=d.Ba().id,g=Dz(f);if(!b||g==b){this.du=j;this.Qc.mA(d);this.du=l;break}}},this));U(this.Qc,"change",z(function(a){if(!this.du){var b=a.page,c=Dz(b.Ba().id);this.md.wo(c)}},this));Ti(this.md,"navigate",l,{token:this.md.rf()})};
Cz.prototype.Sb=function(a){var b=a.id,c="knol-authorpage-pagination-"+b.substring(17),d=Y(c);if(d)for(var f=d.getElementsByTagName("a"),g=0;g<f.length;g++){var h=f[g].className;if(wa(h,"knol-search-knol-pagination")){var i=z(this.Gq,this,h.substring(27),a);this.U.g(f[g],"click",i)}}var m=Q();if(gg()==ag()||m&&m.wb())this.visibility.Y(b,this.U,this.Cx(a));this.RLa(a);this.GLa(a);a.qc==1&&this.QLa(a);a.qc==2&&this.FLa(a)};Cz.prototype.Cx=function(a){return z(this.Gq,this,"