/* Copyright 2007 Google. All Rights Reserved. */ (function() { 
var nc=encodeURIComponent,Ea=Number,Pf=Infinity,ab=navigator,Of=Boolean,Ma=undefined,ha=parseInt,zb=parseFloat,qa=String,Ne=Function,O=document,Tc=decodeURIComponent,kd=isNaN,y=Math;function Pa(a,b){return a.toString=b}function Db(a,b){return a.length=b}function de(a,b){return a.position=b}function af(a,b){return a.relatedTarget=b}function fa(a,b){return a.className=b}function Fa(a,b){return a.width=b}function fg(a,b){return a.data=b}function Q(a,b){return a.innerHTML=b}function Ic(a,b){return a.value=
b}function uh(a,b){return a.fontSize=b}function Yc(a,b){return a.currentTarget=b}function Cb(a,b){return a.left=b}function qc(a,b){return a.target=b}function cf(a,b){return a.screenX=b}function df(a,b){return a.screenY=b}function gg(a,b){return a.remove=b}function hg(a,b){return a.start=b}function Ye(a,b){return a.cssText=b}function $e(a,b){return a.keyCode=b}function bf(a,b){return a.returnValue=b}function Ze(a,b){return a.href=b}function Wa(a,b){return a.type=b}function Xe(a,b){return a.clear=b}
function td(a,b){return a.reset=b}function cg(a,b){return a.cellPadding=b}function sb(a,b){return a.onclick=b}function ra(a,b){return a.display=b}function Oa(a,b){return a.height=b}function dg(a,b){return a.clientX=b}function eg(a,b){return a.clientY=b}function ig(a,b){return a.visibility=b}var $f="scrollTop",pc="previousSibling",Re="altKey",Wf="innerText",Ve="hash",Qe="activeElement",be="outerHTML",h="length",Yf="plugins",Uf="htmlText",_P="prototype",bg="sourceIndex",hb="className",J="width",sd=
"text",Tb="clientWidth",qd="slice",Zd="field",ag="selection",S="nodeType",za="startContainer",ea="document",Ue="data",gc="ctrlKey",Y="content",ib="innerHTML",Xc="mimeTypes",ae="offsetWidth",Wi="offsetParent",rd="srcElement",Vd="collapsed",Va="value",qb="location",$d="fontSize",Gc="metaKey",Sf="designMode",rh="offsetLeft",Se="anchorNode",k="style",Te="capture",nd="focusNode",na="nodeName",Ec="currentTarget",E="body",eb="left",$="ownerDocument",Xf="naturalWidth",aa="target",Xb="screenX",Yb="screenY",
Wc="lastChild",Vf="innerHeight",ce="readyState",Rf="charCode",gb="cells",Dc="cssText",Tf="getAttribute",Ub="endContainer",We="scrollHeight",Na="keyCode",W="firstChild",Vb="endOffset",Ab="clientHeight",th="scrollLeft",Wd="compatMode",Qf="bottom",md="currentStyle",od="href",Uc="console",rb="rows",B="type",ka="childNodes",pd="shiftKey",xa="tagName",Fc="defaultView",oc="name",n="parentNode",Ua="nextSibling",sh="offsetTop",Xd="contentWindow",z="height",Hc="offsetHeight",Bb="startOffset",Wb="nodeValue",
cb="clientX",db="clientY",Vc="documentElement",Zf="right",Yd="event";var Rn=Rn||{},ca=this;var Co=function(a,b){var c=a.split("."),d=ca,e;while(e=c.shift()){if(!c[h]&&ja(b)){d[e]=b}else if(d[e]){d=d[e]}else{d=(d[e]={})}}},Uk=function(a){var b=a.split("."),c=ca;for(var d;d=b.shift();){if(c[d]){c=c[d]}else{return null}}return c};var ja=function(a){return typeof a!="undefined"},Qb=function(a){return a===null},Ba=function(a){return a instanceof Array||Xg(a)&&typeof a.join=="function"&&typeof a.reverse=="function"},Vg=function(a){return Xg(a)&&typeof a[h]=="number"},$a=
function(a){return typeof a=="string"},Wg=function(a){return typeof a=="number"},Fe=function(a){return typeof a=="function"||!(!(a&&a.call))},Xg=function(a){return a!=null&&typeof a=="object"},Ib=function(a){if(a.hasOwnProperty&&a.hasOwnProperty(qf)){return a[qf]}if(!a[qf]){a[qf]=++Eo}return a[qf]},qf="closure_hashCode_",Eo=0,C=function(a,b){var c=a.Qr;if(arguments[h]>2){var d=Array[_P][qd].call(arguments,2);if(c){d.unshift.apply(d,c)}c=d}b=a.Sr||b;a=a.Rr||a;var e,f=b||ca;if(c){e=function(){var g=
Array[_P][qd].call(arguments);g.unshift.apply(g,c);return a.apply(f,g)}}else{e=function(){return a.apply(f,arguments)}}e.Qr=c;e.Sr=b;e.Rr=a;return e},bl=function(a){var b=Array[_P][qd].call(arguments,1);b.unshift(a,null);return C.apply(null,b)};var Ja=function(){return(new Date).getTime()};var Jb=function(a,b){var c=b||{};for(var d in c){a=a.replace(new RegExp("\\{\\$"+d+"\\}","gi"),c[d])}return a},ub=function(a,b){Co(a,b)},Sg=function(a,b,c){a[b]=c};if(!Ne[_P].apply){Ne[_P].apply=function(a,b){var c=
[],d,e;if(!a)a=ca;if(!b)b=[];for(var f=0;f<b[h];f++){c[f]="args["+f+"]"}e="oScope.__applyTemp__.peek().("+c.join(",")+");";if(!a.__applyTemp__){a.__applyTemp__=[]}a.__applyTemp__.push(this);d=eval(e);a.__applyTemp__.pop();return d}}Ne[_P].D=function(a){if(arguments[h]>1){var b=Array[_P][qd].call(arguments,1);b.unshift(this,a);return C.apply(null,b)}else{return C(this,a)}};Ne[_P].Nd=function(){var a=Array[_P][qd].call(arguments);a.unshift(this,null);return C.apply(null,a)};Ne[_P].d=function(a){Fo(this,
a)};var Fo=function(a,b){function c(){}c.prototype=b[_P];a.h=b[_P];a.prototype=new c;a[_P].constructor=a};if(!Array[_P].push){Array[_P].push=function(a){for(var b=0;b<arguments[h];b++){this[this[h]]=arguments[b]}return this[h]}}if(!Array[_P].pop){Array[_P].pop=function(){var a;if(this[h]){a=this[this[h]-1];this.length--}return a}}Array[_P].peek=function(){return this[this[h]-1]};if(!Array[_P].shift){Array[_P].shift=function(){var a;if(this[h]){a=this[0];for(var b=0;b<this[h]-1;b++){this[b]=this[b+
1]}this.length--}return a}}if(!Array[_P].unshift){Array[_P].unshift=function(a){var b=arguments[h];for(var c=this[h]-1;c>=0;c--){this[c+b]=this[c]}for(var d=0;d<b;d++){this[d]=arguments[d]}return this[h]}};var wc=function(){};wc[_P].zi=false;wc[_P].$=function(){return this.zi};wc[_P].b=function(){if(!this.zi){this.zi=true}};var Go=function(a){if(a==""){return false}a=a.replace(/"(\\.|[^"\\])*"/g,"");return a==""||!/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(a)},Ho=function(a){a=qa(a);if(typeof a.parseJSON=="function"){return a.parseJSON()}if(Go(a)){try{return eval("("+a+")")}catch(b){}}throw Error("Invalid JSON string: "+a);},ti=null,Io=function(a){if(!ti){ti=new Nd}return ti.xx(a)},Nd=function(){};Nd[_P].xx=function(a){if(a!=null&&typeof a.toJSONString=="function"){return a.toJSONString()}var b=[];this.Qj(a,b);return b.join("")};
Nd[_P].Qj=function(a,b){switch(typeof a){case "string":this.Dp(a,b);break;case "number":this.zx(a,b);break;case "boolean":b.push(a);break;case "undefined":b.push("null");break;case "object":if(a==null){b.push("null");break}if(Ba(a)){this.yx(a,b);break}this.Ax(a,b);break;default:throw Error("Unknown type: "+typeof a);}};var si={'"':'\\"',"\\":"\\\\","/":"\\/","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\u000b"};Nd[_P].Dp=function(a,b){b.push('"',a.replace(/[\\\"\x00-\x1f\x80-\uffff]/g,
function(c){if(c in si){return si[c]}var d=c.charCodeAt(0),e="\\u";if(d<16){e+="000"}else if(d<256){e+="00"}else if(d<4096){e+="0"}return si[c]=e+d.toString(16)}),'"')};Nd[_P].zx=function(a,b){b.push(isFinite(a)&&!kd(a)?a:"null")};Nd[_P].yx=function(a,b){var c=a[h];b.push("[");var d="";for(var e=0;e<c;e++){b.push(d);this.Qj(a[e],b);d=","}b.push("]")};Nd[_P].Ax=function(a,b){b.push("{");var c="";for(var d in a){b.push(c);this.Dp(d,b);b.push(":");this.Qj(a[d],b);c=","}b.push("}")};var wi=function(a,b){return a.indexOf(b)==0},fl=function(a,b){var c=a[h]-b[h];return c>=0&&a.lastIndexOf(b,c)==c},ah=function(a){for(var b=1;b<arguments[h];b++){a=a.replace(/\%s/,qa(arguments[b]))}return a},xi=function(a){return a.replace(/(\r\n|\r|\n)+/g," ")};var bh=function(a){return a.replace(/^\s+|\s+$/g,"")},ml=function(a){return a.replace(/^\s+/,"")};var Xo=/^[a-zA-Z0-9\-_.!~*'()]*$/,zi=function(a){a=qa(a);if(!Xo.test(a)){return nc(a)}return a},yi=function(a){return Tc(a.replace(/\+/g," "))},
$g=function(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")},ed=function(a,b){if(b){return a.replace(cl,dl).replace(il,jl).replace(gl,hl).replace(kl,ll)}else{if(!Uo.test(a))return a;if(a.indexOf(Vo)!=-1){a=a.replace(cl,dl)}if(a.indexOf(Zo)!=-1){a=a.replace(il,jl)}if(a.indexOf(Yo)!=-1){a=a.replace(gl,hl)}if(a.indexOf($o)!=-1){a=a.replace(kl,ll)}return a}},Vo="&",Zo="<",Yo=">",$o='"',dl="&amp;",jl="&lt;",hl="&gt;",ll="&quot;",cl=/&/g,il=/</g,gl=/>/g,kl=/\"/g,Uo=/[&<>\"]/,bp=function(a){if(el(a,
"&")){if("document"in ca&&!el(a,"<")){var b=ca.document.createElement("a");b.innerHTML=a;if(b.normalize){b.normalize()}a=b.firstChild.nodeValue;b.innerHTML=""}else{return a.replace(/&([^;]+);/g,function(c,d){switch(d){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if(d.charAt(0)=="#"){var e=Ea("0"+d.substr(1));if(!kd(e)){return qa.fromCharCode(e)}}return c}})}}return a},Ai=function(a,b){return $g(a.replace(/  /g," &#160;"),b)},ap=function(a,b,c){if(c){a=
bp(a)}if(a[h]>b){var d=y.floor(b/2),e=a[h]-d;d+=b%2;a=a.substring(0,d)+"..."+a.substring(e)}if(c){a=ed(a)}return a},el=function(a,b){return a.indexOf(b)!=-1};var Wo=function(a,b){var c=0,d=qa(a).split("."),e=qa(b).split("."),f=y.max(d[h],e[h]);for(var g=0;c==0&&g<f;g++){var i=d[g]||"",j=e[g]||"",l=new RegExp("(\\d*)(\\D*)","g"),m=new RegExp("(\\d*)(\\D*)","g");do{var q=l.exec(i)||["","",""],w=m.exec(j)||["","",""];if(q[0][h]==0&&w[0][h]==0){break}var D=q[1][h]==0?0:ha(q[1],10),da=w[1][h]==0?0:ha(w[1],
10);c=vi(D,da)||vi(q[2][h]==0,w[2][h]==0)||vi(q[2],w[2])}while(c==0)}return c},vi=function(a,b){if(a<b){return-1}else if(a>b){return 1}return 0};var Hg=function(a,b,c){if(a.indexOf){return a.indexOf(b,c)}if(Array.indexOf){return Array.indexOf(a,b,c)}if(c==null){c=0}else if(c<0){c=y.max(0,a[h]+c)}for(var d=c;d<a[h];d++){if(d in a&&a[d]===b)return d}return-1},jc=function(a,b,c){if(a.forEach){a.forEach(b,c)}else if(Array.forEach){Array.forEach(a,b,c)}else{var d=a[h],e=$a(a)?a.split(""):a;for(var f=0;f<d;f++){if(f in e){b.call(c,e[f],f,a)}}}},mk=function(a,b,c){if(a.filter){return a.filter(b,c)}if(Array.filter){return Array.filter(a,b,c)}var d=
a[h],e=[],f=$a(a)?a.split(""):a;for(var g=0;g<d;g++){if(g in f){var i=f[g];if(b.call(c,i,g,a)){e.push(i)}}}return e},ao=function(a,b,c){if(a.map){return a.map(b,c)}if(Array.map){return Array.map(a,b,c)}var d=a[h],e=[],f=$a(a)?a.split(""):a;for(var g=0;g<d;g++){if(g in f){e.push(b.call(c,f[g],g,a))}}return e},Dd=function(a,b){if(a.contains){return a.contains(b)}return Hg(a,b)>-1};var lk=function(a){if(!Ba(a)){for(var b=a[h]-1;b>=0;b--){delete a[b]}}Db(a,0)},nk=function(a,b,c){bi(a,c,0,b)},Ig=function(a,
b){var c=Hg(a,b),d;if(d=c!=-1){Array[_P].splice.call(a,c,1)[h]==1}return d};var Yn=function(a){if(Ba(a)){return a.concat()}else{var b=[];for(var c=0,d=a[h];c<d;c++){b[c]=a[c]}return b}},$n=function(a,b){for(var c=1;c<arguments[h];c++){var d=arguments[c];if(!Ba(d)){a.push(d)}else{a.push.apply(a,d)}}},bi=function(a,b,c,d){return Array[_P].splice.apply(a,ai(arguments,1))},ai=function(a,b,c){if(arguments[h]<=2){return Array[_P][qd].call(a,b)}else{return Array[_P][qd].call(a,b,c)}},bo=function(a,b){Array[_P].sort.call(a,
b||Zn)},Zn=function(a,b){return a>b?1:(a<b?-1:0)};var Ef=function(a,b,c){for(var d in a){b.call(c,a[d],d,a)}},Zk=function(a,b,c){for(var d in a){if(!b.call(c,a[d],d,a)){return false}}return true},al=function(a){var b=[];for(var c in a){b.push(a[c])}return b},Yg=function(a){var b=[];for(var c in a){b.push(c)}return b},Ff=function(a){for(var b in a){return false}return true},Ro=function(a){var b=Yg(a);for(var c=b[h]-1;c>=0;c--){Pd(a,b[c])}},Pd=function(a,b){var c;if(c=b in a){delete a[b]}return c},Yk=function(a,b,c){if(b in a){throw Error('The object already contains the key "'+
b+'"');}Zg(a,b,c)},$k=function(a,b,c){if(b in a){return a[b]}return c},Zg=function(a,b,c){a[b]=c},So=function(a){var b={};for(var c in a){b[c]=a[c]}return b},Xk=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],To=function(a,b){var c,d;for(var e=1;e<arguments[h];e++){d=arguments[e];for(c in d){a[c]=d[c]}for(var f=0;f<Xk[h];f++){c=Xk[f];if(Object[_P].hasOwnProperty.call(d,c)){a[c]=d[c]}}}};var ol=function(a){if(typeof a.ab=="function"){return a.ab()}if($a(a)){return a.split("")}if(Vg(a)){var b=[],c=a[h];for(var d=0;d<c;d++){b.push(a[d])}return b}return al(a)},dp=function(a){if(typeof a.Vb=="function"){return a.Vb()}if(typeof a.ab=="function"){return Ma}if(Vg(a)||$a(a)){var b=[],c=a[h];for(var d=0;d<c;d++){b.push(d)}return b}return Yg(a)},Di=function(a,b,c){if(typeof a.forEach=="function"){a.forEach(b,c)}else if(Vg(a)||$a(a)){jc(a,b,c)}else{var d=dp(a),e=ol(a),f=e[h];for(var g=0;g<f;g++){b.call(c,
e[g],d&&d[g],a)}}};var ya=function(a){this.W={};this.u=[];if(a){this.Mh(a)}},Bi=":",nl=Bi.charCodeAt(0);ya[_P].z=0;var ch=function(a){a=qa(a);if(a in Object[_P]){return Bi+a}else if(a.charCodeAt(0)==nl){return Bi+a}else{return a}},cp=function(a){if(a.charCodeAt(0)==nl){return a.substring(1)}else{return a}};ya[_P].yb=function(){return this.z};ya[_P].ab=function(){this.ai();var a=[];for(var b=0;b<this.u[h];b++){var c=this.u[b];a.push(this.W[c])}return a};ya[_P].Vb=function(){this.ai();var a=[];for(var b=0;b<this.u[h];b++){var c=
this.u[b];a.push(cp(c))}return a};ya[_P].Lb=function(a){return ch(a)in this.W};ya[_P].La=function(){return this.z==0};Xe(ya[_P],function(){this.W={};Db(this.u,0);this.z=0});gg(ya[_P],function(a){var b=ch(a);if(Pd(this.W,b)){this.z--;if(this.u[h]>2*this.z){this.ai()}return true}return false});ya[_P].ai=function(){if(this.z!=this.u[h]){var a=0,b=0;while(a<this.u[h]){var c=this.u[a];if(c in this.W){this.u[b++]=c}a++}Db(this.u,b)}if(this.z!=this.u[h]){var d={},a=0,b=0;while(a<this.u[h]){var c=this.u[a];
if(!(c in d)){this.u[b++]=c;d[c]=1}a++}Db(this.u,b)}};ya[_P].ga=function(a,b){var c=ch(a);if(c in this.W){return this.W[c]}return b};ya[_P].B=function(a,b){var c=ch(a);if(!(c in this.W)){this.z++;this.u.push(c)}this.W[c]=b};ya[_P].Mh=function(a){var b,c;if(a instanceof ya){b=a.Vb();c=a.ab()}else{b=Yg(a);c=al(a)}for(var d=0;d<b[h];d++){this.B(b[d],c[d])}};ya[_P].I=function(){return new ya(this)};var lc=function(a){this.W=new ya;if(a){this.Mh(a)}},Ci=function(a){var b=typeof a;if(b=="object"){return"o"+Ib(a)}else{return b.substr(0,1)+a}};lc[_P].yb=function(){return this.W.yb()};lc[_P].add=function(a){this.W.B(Ci(a),a)};lc[_P].Mh=function(a){var b=ol(a),c=b[h];for(var d=0;d<c;d++){this.add(b[d])}};gg(lc[_P],function(a){return this.W.remove(Ci(a))});Xe(lc[_P],function(){this.W.clear()});lc[_P].La=function(){return this.W.La()};lc[_P].contains=function(a){return this.W.Lb(Ci(a))};lc[_P].ab=function(){return this.W.ab()};
lc[_P].I=function(){return new lc(this)};var io=function(a,b){try{var c=ko(a),d="Message: "+ed(c.message)+'\nUrl: <a href="view-source:'+c.fileName+'" target="_new">'+c.fileName+"</a>\nLine: "+c.lineNumber+"\n\nBrowser stack:\n"+ed(c.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+ed(jo(b)+"-> ");return d}catch(e){return"Exception trying to expose exception! You win, we lose. "+e}},ko=function(a){var b=Uk("document.location.href");return typeof a=="string"?{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"}:
(!a.lineNumber||!a.fileName||!a.stack?{message:a.message,name:a[oc],lineNumber:"Not available",fileName:b,stack:"Not available"}:a)},jo=function(a){return zk(a||arguments.callee.caller,[])},zk=function(a,b){var c=[];if(Dd(b,a)){c.push("[...circular reference...]")}else if(a&&b[h]<50){c.push(yk(a)+"(");var d=a.arguments;for(var e=0;e<d[h];e++){if(e>0){c.push(", ")}var f,g=d[e];switch(typeof g){case "object":f=g?"object":"null";break;case "string":f=g;break;case "number":f=qa(g);break;case "boolean":f=
g?"true":"false";break;case "function":f=yk(g);f=f?f:"[fn]";break;case "undefined":default:f=typeof g;break}if(f[h]>40){f=f.substr(0,40)+"..."}c.push(f)}b.push(a);c.push(")\n");try{c.push(zk(a.caller,b))}catch(i){c.push("[exception trying to get caller]\n")}}else if(a){c.push("[...long stack...]")}else{c.push("[end]")}return c.join("")},yk=function(a){if(!Mg[a]){var b=/function ([^\(]+)/.exec(qa(a));if(b){var c=b[1],d=/^\$(.+)\$$/.exec(c);if(d){c=d[1].replace(/\${1,2}/g,".")}Mg[a]=c}else{Mg[a]="[Anonymous]"}}return Mg[a]},
Mg={};var ac=function(a,b,c){this.Lz=fo++;this.Ay=Ja();this.bc=a;this.Xv=b;this.Kv=c};ac[_P].sm=null;ac[_P].rm=null;var fo=0;ac[_P].Li=function(){return this.Kv};ac[_P].Lt=function(){return this.sm};ac[_P].Ix=function(a){this.sm=a};ac[_P].Mt=function(){return this.rm};ac[_P].Jx=function(a){this.rm=a};ac[_P].zg=function(){return this.bc};ac[_P].Wj=function(a){this.bc=a};ac[_P].Rm=function(){return this.Xv};ac[_P].Sm=function(){return this.Ay};var Qa=function(a){this.X=a;this.Q=null;this.Y={};this.Rg=[]};Qa[_P].bc=null;var xc=function(a,b){this.name=a;Ic(this,b)};Pa(xc[_P],function(){return this[oc]});var uk=new xc("SHOUT",1200),hi=new xc("SEVERE",1000),ii=new xc("WARNING",900),tk=new xc("INFO",800),ho=new xc("CONFIG",700),sk=new xc("FINE",500),sq=new xc("FINER",400),tq=new xc("FINEST",300),go=new xc("ALL",0),Fd=function(a){return Jg(a)};Qa[_P].Xk=function(a){this.Rg.push(a)};Qa[_P].lp=function(a){return Ig(this.Rg,a)};Qa[_P].xd=function(){return this.Q};
Qa[_P].Wj=function(a){this.bc=a};Qa[_P].zg=function(){return this.bc};Qa[_P].Ht=function(){if(this.bc){return this.bc}if(this.Q){return this.Q.Ht()}return null};Qa[_P].lj=function(a){if(this.bc){return a[Va]>=this.bc[Va]}if(this.Q){return this.Q.lj(a)}return false};Qa[_P].log=function(a,b,c){if(!this.lj(a)){return}var d=new ac(a,qa(b),this.X);if(c){d.Ix(c);d.Jx(io(c,arguments.callee.caller))}this.Jv(d)};Qa[_P].za=function(a,b){this.log(hi,a,b)};Qa[_P].Nq=function(a,b){this.log(ii,a,b)};Qa[_P].O=function(a,
b){this.log(tk,a,b)};Qa[_P].va=function(a,b){this.log(sk,a,b)};Qa[_P].Jv=function(a){if(!this.lj(a.zg())){return}var b=this;while(b){b.as(a);b=b.xd()}};Qa[_P].as=function(a){for(var b=0;b<this.Rg[h];b++){this.Rg[b](a)}};Qa[_P].Sx=function(a){this.Q=a};Qa[_P].ur=function(a,b){this.Y[a]=b};var gi={},sf=null,rk=function(){if(!sf){sf=new Qa("");gi[""]=sf;sf.Wj(ho)}},qk=function(){rk();return sf},Jg=function(a){rk();var b=gi[a];if(b==null){b=eo(a)}return b},eo=function(a){var b=new Qa(a),c=a.split("."),
d=c[c[h]-1];Db(c,c[h]-1);var e=c.join("."),f=Jg(e);f.ur(d,b);b.Sx(f);gi[a]=b;return b};var dd=function(a){this.lh=a||"";this.ip=Ja()};dd[_P].gk=true;dd[_P].eq=true;dd[_P].dq=true;dd[_P].sg=function(a){throw Error("Must override formatRecord");};var ok=function(a){var b=new Date(a.Sm());return Ed(b.getFullYear()-2000)+Ed(b.getMonth()+1)+Ed(b.getDate())+" "+Ed(b.getHours())+":"+Ed(b.getMinutes())+":"+Ed(b.getSeconds())+"."+Ed(y.floor(b.getMilliseconds()/10))},Ed=function(a){if(a<10){return"0"+a}return qa(a)},pk=function(a,b){var c=a.Sm()-b,d=c/1000,e=d.toFixed(3),f=0;if(d<1){f=2}else{while(d<
100){f++;d*=10}}while(f-- >0){e=" "+e}return e},fi=function(a){dd.call(this,a)};fi.d(dd);fi[_P].sg=function(a){var b;switch(a.zg()){case uk:b="dbg-sh";break;case hi:b="dbg-sev";break;case ii:b="dbg-w";break;case tk:b="dbg-i";break;case sk:default:b="dbg-f";break}var c=[];c.push(this.lh);c.push(" ");if(this.gk){c.push("["+ok(a)+"] ")}if(this.eq){c.push("[");c.push(Ai(pk(a,this.ip)));c.push("s] ")}if(this.dq){c.push("[");c.push(ed(a.Li()));c.push("] ")}c.push('<span class="'+b+'">');c.push($g(Ai(ed(a.Rm()))));
if(a.Lt()){c.push("<br>");c.push($g(Ai(a.Mt())))}c.push("</span><br>");return c.join("")};var ji=function(a){dd.call(this,a)};ji.d(dd);ji[_P].sg=function(a){var b=[];b.push(this.lh);b[b[h]]=" ";if(this.gk){b.push("[");b.push(ok(a));b.push("] ")}if(this.eq){b.push("[");b.push(pk(a,this.ip));b.push("s] ")}if(this.dq){b.push("["+a.Li()+"] ")}b.push(a.Rm());b.push("\n");return b.join("")};var hh,r,x,lp,pa,fd,Gi,ul,gh;(function(){var a=false,b=false,c=false,d=false,e=false,f=false,g=false,i=false,j=false,l=false,m="";if(ca.navigator){var q=ab.userAgent;a=typeof opera!="undefined";b=!a&&q.indexOf("MSIE")!=-1;c=!a&&q.indexOf("WebKit")!=-1;d=!a&&ab.product=="Gecko"&&!c;e=d&&ab.vendor=="Camino";f=!a&&q.indexOf("Konqueror")!=-1;g=f||c;var w,D;if(a){w=opera.version()}else{if(d){D=/rv\:([^\);]+)(\)|;)/}else if(b){D=/MSIE\s+([^\);]+)(\)|;)/}else if(c){D=/WebKit\/(\S+)/}else if(f){D=/Konqueror\/([^\);]+)(\)|;)/}if(D){D.test(q);
w=RegExp.$1}}m=ab.platform;i=m.indexOf("Mac")!=-1;j=m.indexOf("Win")!=-1;l=m.indexOf("Linux")!=-1}hh=a;r=b;x=d;lp=e;pa=c;fd=w;Gi=i;ul=j;gh=l})();var Hi=function(a,b){return Wo(a,b)},gd=function(a){return Hi(fd,a)>=0};var ba=function(a,b){var c;if(a instanceof ba){this.Td(b==null?a.Tt():b);this.bk(a.lu());this.dk(a.Bu());this.Sj(a.Ft());this.Zj(a.Zm());this.Yj(a.Ym());this.$j(a.gu().I());this.Uj(a.Qt())}else if(a&&(c=qa(a).match(Wn()))){this.Td(!(!b));this.bk(c[1],true);this.dk(c[2],true);this.Sj(c[3],true);this.Zj(c[4]);this.Yj(c[5],true);this.$j(c[6]);this.Uj(c[7],true)}else{this.Td(!(!b));this.gb=new Ha(null,this,this.Bb)}};ba[_P].Bc="";ba[_P].Af="";ba[_P].te="";ba[_P].ff=null;ba[_P].df="";ba[_P].gb=null;ba[_P].ze=
"";ba[_P].vv=false;ba[_P].Bb=false;Pa(ba[_P],function(){if(this.da){return this.da}var a=[];if(this.Bc){a.push(Zh(this.Bc,kk),":")}if(this.te){a.push("//");if(this.Af){a.push(Zh(this.Af,kk),"@")}a.push(jk(this.te));if(this.ff!=null){a.push(":",qa(this.Zm()))}}if(this.df){a.push(Zh(this.df,Xn))}var b=qa(this.gb);if(b){a.push("?",b)}if(this.ze){a.push("#",jk(this.ze))}return this.da=a.join("")});ba[_P].I=function(){return new Tn(this.Bc,this.Af,this.te,this.ff,this.df,this.gb.I(),this.ze,this.Bb)};
ba[_P].lu=function(){return this.Bc};ba[_P].bk=function(a,b){this.nc();delete this.da;this.Bc=b?rf(a):a;if(this.Bc){this.Bc=this.Bc.replace(/:$/,"")}return this};ba[_P].Bu=function(){return this.Af};ba[_P].dk=function(a,b){this.nc();delete this.da;this.Af=b?rf(a):a;return this};ba[_P].Ft=function(){return this.te};ba[_P].Sj=function(a,b){this.nc();delete this.da;this.te=b?rf(a):a;return this};ba[_P].Zm=function(){return this.ff};ba[_P].Zj=function(a){this.nc();delete this.da;if(a){a=Ea(a);if(kd(a)||
a<0){throw Error("Bad port number "+a);}this.ff=a}else{this.ff=null}return this};ba[_P].Ym=function(){return this.df};ba[_P].Yj=function(a,b){this.nc();delete this.da;this.df=b?rf(a):a;return this};ba[_P].$j=function(a){this.nc();delete this.da;if(a instanceof Ha){this.gb=a;this.gb.Dk=this;this.gb.Td(this.Bb)}else{this.gb=new Ha(a,this,this.Bb)}return this};ba[_P].gu=function(){return this.gb};ba[_P].kb=function(a,b){this.nc();delete this.da;this.gb.B(a,b);return this};ba[_P].Qt=function(){return this.ze};
ba[_P].Uj=function(a,b){this.nc();delete this.da;this.ze=b?rf(a):a;return this};ba[_P].nc=function(){if(this.vv){throw Error("Tried to modify a read-only Uri");}};ba[_P].Td=function(a){this.Bb=a;if(this.gb){this.gb.Td(a)}};ba[_P].Tt=function(){return this.Bb};var Tn=function(a,b,c,d,e,f,g,i){var j=new ba(null,i);j.bk(a);j.dk(b);j.Sj(c);j.Zj(d);j.Yj(e);j.$j(f);j.Uj(g);return j},rf=function(a){return a?yi(a):""},jk=function(a){if($a(a)){return nc(a)}return null},Vn=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/,Zh=
function(a,b){var c=null;if($a(a)){c=a;if(!Vn.test(c)){c=encodeURI(a)}if(c.search(b)>=0){c=c.replace(b,Un)}}return c},Un=function(a){var b=a.charCodeAt(0);return"%"+(b>>4&15).toString(16)+(b&15).toString(16)},$h=null,Wn=function(){if(!$h){$h=/^(?:([^:\/?#]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/?#:@]*)(?::([0-9]+))?)?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/}return $h},kk=/[#\/\?@]/g,Xn=/[\#\?]/g,Ha=function(a,b,c){this.K=new ya;this.Dk=b;this.Bb=!(!c);if(a){var d=a.split("&");for(var e=0;e<d[h];e++){var f=d[e].split("="),
g=yi(f[0]);g=this.Qc(g);this.add(g,f[h]>1?yi(f[1]):"")}}};Ha[_P].z=0;Ha[_P].yb=function(){return this.z};Ha[_P].add=function(a,b){this.Pe();a=this.Qc(a);if(!this.Lb(a)){this.K.B(a,b)}else{var c=this.K.ga(a);if(Ba(c)){c.push(b)}else{this.K.B(a,[c,b])}}this.z++;return this};gg(Ha[_P],function(a){a=this.Qc(a);if(this.K.Lb(a)){this.Pe();var b=this.K.ga(a);if(Ba(b)){this.z-=b[h]}else{this.z--}return this.K.remove(a)}return false});Xe(Ha[_P],function(){this.Pe();this.K.clear();this.z=0});Ha[_P].La=function(){return this.z==
0};Ha[_P].Lb=function(a){a=this.Qc(a);return this.K.Lb(a)};Ha[_P].Vb=function(){var a=this.K.ab(),b=this.K.Vb(),c=[];for(var d=0;d<b[h];d++){var e=a[d];if(Ba(e)){for(var f=0;f<e[h];f++){c.push(b[d])}}else{c.push(b[d])}}return c};Ha[_P].ab=function(a){var b;if(a){var c=this.Qc(a);if(this.Lb(c)){var d=this.K.ga(c);if(Ba(d)){return d}else{b=[];b.push(d)}}else{b=[]}}else{var e=this.K.ab();b=[];for(var f=0;f<e[h];f++){var g=e[f];if(Ba(g)){$n(b,g)}else{b.push(g)}}}return b};Ha[_P].B=function(a,b){this.Pe();
a=this.Qc(a);if(this.Lb(a)){var c=this.K.ga(a);if(Ba(c)){this.z-=c[h]}else{this.z--}}this.K.B(a,b);this.z++;return this};Ha[_P].ga=function(a,b){a=this.Qc(a);if(this.Lb(a)){var c=this.K.ga(a);if(Ba(c)){return c[0]}else{return c}}else{return b}};Pa(Ha[_P],function(){if(this.da){return this.da}var a=[],b=0,c=this.K.Vb();for(var d=0;d<c[h];d++){var e=c[d],f=zi(e),g=this.K.ga(e);if(Ba(g)){for(var i=0;i<g[h];i++){if(b>0){a.push("&")}a.push(f,"=",zi(g[i]));b++}}else{if(b>0){a.push("&")}a.push(f,"=",zi(g));
b++}}return this.da=a.join("")});Ha[_P].Pe=function(){delete this.da;if(this.Dk){delete this.Dk.da}};Ha[_P].I=function(){var a=new Ha;a.K=this.K.I();return a};Ha[_P].Qc=function(a){var b=qa(a);if(this.Bb){b=b.toLowerCase()}return b};Ha[_P].Td=function(a){var b=a&&!this.Bb;if(b){this.Pe();Di(this.K,function(c,d,e){var f=d.toLowerCase();if(d!=f){this.remove(d);this.add(f,c)}},this)}this.Bb=a};var Ia=function(a,b){Wa(this,a);qc(this,b);Yc(this,this[aa])};Ia.d(wc);Ia[_P].yc=false;Ia[_P].Rd=true;Ia[_P].stopPropagation=function(){this.yc=true};Ia[_P].preventDefault=function(){this.Rd=false};var ia=function(a,b){if(a){this.Ne(a,b)}};ia.d(Ia);Wa(ia[_P],null);qc(ia[_P],null);Yc(ia[_P],null);af(ia[_P],null);ia[_P].offsetX=0;ia[_P].offsetY=0;dg(ia[_P],0);eg(ia[_P],0);cf(ia[_P],0);df(ia[_P],0);ia[_P].button=0;$e(ia[_P],0);ia[_P].charCode=0;ia[_P].ctrlKey=false;ia[_P].altKey=false;ia[_P].shiftKey=false;ia[_P].metaKey=false;ia[_P].ub=null;ia[_P].Ne=function(a,b){Wa(this,a[B]);qc(this,a[aa]||a[rd]);Yc(this,b);if(a.relatedTarget){af(this,a.relatedTarget)}else if(this[B]==ye){af(this,a.fromElement)}else if(this[B]==
Id){af(this,a.toElement)}else{af(this,null)}this.offsetX=typeof a.layerX=="number"?a.layerX:a.offsetX;this.offsetY=typeof a.layerY=="number"?a.layerY:a.offsetY;dg(this,typeof a[cb]=="number"?a[cb]:a.pageX);eg(this,typeof a[db]=="number"?a[db]:a.pageY);cf(this,a[Xb]||0);df(this,a[Yb]||0);this.button=a.button;$e(this,a[Na]||0);this.charCode=a[Rf]||(this[B]==Hd?a[Na]:0);this.ctrlKey=a[gc];this.altKey=a[Re];this.shiftKey=a[pd];this.metaKey=a[Gc];this.ub=a;this.Rd=null;this.yc=null};ia[_P].stopPropagation=
function(){this.yc=true;if(this.ub.stopPropagation){this.ub.stopPropagation()}else{this.ub.cancelBubble=true}};ia[_P].preventDefault=function(){this.Rd=false;if(!this.ub.preventDefault){bf(this.ub,false);try{$e(this.ub,-1)}catch(a){}}else{this.ub.preventDefault()}};ia[_P].Mc=function(){return this.ub};ia[_P].b=function(){if(!this.$()){Ia[_P].b.call(this);this.ub=null}};var Pb=function(){},to=0;Pb[_P].kj=null;Pb[_P].Tc=null;Pb[_P].dp=null;Pb[_P].src=null;Wa(Pb[_P],null);Pb[_P].capture=null;Pb[_P].Le=null;Pb[_P].eb=0;Pb[_P].Pd=false;Pb[_P].rl=false;Pb[_P].Ne=function(a,b,c,d,e,f){if(Fe(a)){this.kj=true}else if(a&&a.Zb&&Fe(a.Zb)){this.kj=false}else{throw Error("Invalid listener argument");}this.Tc=a;this.dp=b;this.src=c;Wa(this,d);this.capture=!(!e);this.Le=f;this.rl=false;this.eb=++to;this.Pd=false};Pb[_P].Zb=function(a){if(this.kj){return this.Tc.call(this.Le||this.src,
a)}return this.Tc.Zb.call(this.Tc,a)};var Ka=function(a,b){wc.call(this);this.Qv=b;this.sd=[];for(var c=0;c<a;c++){this.jb(this.ne())}};Ka.d(wc);Ka[_P].mi=null;Ka[_P].yi=null;Ka[_P].mf=function(a){this.mi=a};Ka[_P].Jp=function(a){this.yi=a};Ka[_P].Za=function(){if(this.sd[h]){return this.sd.pop()}return this.ne()};Ka[_P].jb=function(a){if(this.sd[h]<this.Qv){this.sd.push(a)}else{this.xi(a)}};Ka[_P].ne=function(){if(this.mi){return this.mi()}else{return{}}};Ka[_P].xi=function(a){if(this.yi){this.yi(a)}else{if(Fe(a.b)){a.b()}else{for(var b in a){delete a[b]}}}};
Ka[_P].b=function(){if(!this.$()){Ka.h.b.call(this);var a=this.sd;while(a[h]){this.xi(a.pop())}this.sd=null}};var Be={},tb={},Pc={},Ce=new Ka(0,600);Ce.mf(function(){return{z:0}});Ce.Jp(function(a){a.z=0});var Ld=new Ka(0,600);Ld.mf(function(){return[]});Ld.Jp(function(a){Db(a,0);delete a.Se;delete a.wj});var Ok=new Ka(0,600);Ok.mf(function(){var a=function(b){return zo.call(a.src,a.eb,b)};return a});var wo=function(){return new Pb},qi=new Ka(0,600);qi.mf(wo);var uo=function(){return new ia},vo=function(){var a=null;if(r){a=new Ka(0,600);a.mf(uo)}return a},Lk=vo(),Bo="on",ri={},v=function(a,b,c,d,e){if(Ba(b)){for(var f=
0;f<b[h];f++){v(a,b[f],c,d,e)}return null}var g=!(!d),i=tb;if(!(b in i)){i[b]=Ce.Za()}i=i[b];if(!(g in i)){i[g]=Ce.Za();i.z++}i=i[g];var j=Ib(a),l,m;if(!i[j]){l=(i[j]=Ld.Za());i.z++}else{l=i[j];for(var f=0;f<l[h];f++){m=l[f];if(m.Tc==c&&m.Le==e){if(m.Pd){break}return l[f].eb}}}var q=Ok.Za();q.src=a;m=qi.Za();m.Ne(c,q,a,b,g,e);var w=m.eb;q.eb=w;l.push(m);Be[w]=m;if(!Pc[j]){Pc[j]=Ld.Za()}Pc[j].push(m);if(a.addEventListener){if(a==ca||!a.Sl){a.addEventListener(b,q,g)}}else{a.attachEvent(Nk(b),q)}return w},
lb=function(a,b,c,d,e){if(Ba(b)){for(var f=0;f<b[h];f++){lb(a,b[f],c,d,e)}return null}var g=!(!d),i=Mk(a,b,g);if(!i){return false}for(var f=0;f<i[h];f++){if(i[f].Tc==c&&i[f][Te]==g&&i[f].Le==e){return Sa(i[f].eb)}}return false},Sa=function(a){if(!Be[a]){return false}var b=Be[a];if(b.Pd){return false}var c=b.src,d=b[B],e=b.dp,f=b[Te];if(c.removeEventListener){if(c==ca||!c.Sl){c.removeEventListener(d,e,f)}}else if(c.detachEvent){c.detachEvent(Nk(d),e)}var g=Ib(c),i=tb[d][f][g];if(Pc[g]){var j=Pc[g];
Ig(j,b);if(j[h]==0){delete Pc[g]}}b.Pd=true;i.wj=true;Kk(d,f,g,i);delete Be[a];return true},Kk=function(a,b,c,d){if(!d.Se){if(d.wj){for(var e=0,f=0;e<d[h];e++){if(d[e].Pd){qi.jb(d[e]);continue}if(e!=f){d[f]=d[e]}f++}Db(d,f);d.wj=false;if(f==0){Ld.jb(d);delete tb[a][b][c];tb[a][b].z--;if(tb[a][b].z==0){Ce.jb(tb[a][b]);delete tb[a][b];tb[a].z--}if(tb[a].z==0){Ce.jb(tb[a]);delete tb[a]}}}}},Pk=function(a,b,c){var d=0,e=a==null,f=b==null,g=c==null;c=!(!c);if(!e){var i=Ib(a);if(Pc[i]){var j=Pc[i];for(var l=
j[h]-1;l>=0;l--){var m=j[l];if((f||b==m[B])&&(g||c==m[Te])){Sa(m.eb);d++}}}}else{Ef(Pc,function(q){for(var w=q[h]-1;w>=0;w--){var D=q[w];if((f||b==D[B])&&(g||c==D[Te])){Sa(D.eb);d++}}})}return d},Mk=function(a,b,c){var d=tb;if(b in d){d=d[b];if(c in d){d=d[c];var e=Ib(a);if(d[e]){return d[e]}}}return null},yo=function(a,b,c,d,e){var f=!(!d),g=Mk(a,b,f);if(g){for(var i=0;i<g[h];i++){if(g[i].Tc==c&&g[i][Te]==f&&g[i].Le==e){return g[i]}}}return null},kb="click",yc="mousedown",Jd="mouseup",ye="mouseover",
Id="mouseout",Rg="mousemove",Hd="keypress",xe="keydown",so=r?"focusin":"DOMFocusIn",Kd="resize",Nk=function(a){if(a in ri){return ri[a]}return ri[a]=Bo+a},Ae=function(a,b,c,d){var e=1,f=tb;if(b in f){f=f[b];if(c in f){f=f[c];var g=Ib(a);if(f[g]){var i=f[g];if(!i.Se){i.Se=1}else{i.Se++}try{var j=i[h];for(var l=0;l<j;l++){var m=i[l];if(m&&!m.Pd){e&=pi(m,d)!==false;if(m.rl){Sa(m.eb)}}}}finally{i.Se--;Kk(b,c,g,i)}}}}return Of(e)},pi=function(a,b){return a.Zb(b)},xo=function(a,b){if($a(b)){b=new Ia(b,
a)}else if(!(b instanceof Ia)){var c=b;b=new Ia(b[B],a);To(b,c)}else{qc(b,b[aa]||a)}var d=1,e,f=b[B],g=tb;if(!(f in g)){return true}g=g[f];var i=true in g,j=false in g;if(i){e=[];for(var l=a;l;l=l.Ge()){e.push(l)}for(var m=e[h]-1;!b.yc&&m>=0;m--){Yc(b,e[m]);d&=Ae(e[m],b[B],true,b)&&b.Rd!=false}}if(j){if(i){for(var m=0;!b.yc&&m<e[h];m++){Yc(b,e[m]);d&=Ae(e[m],b[B],false,b)&&b.Rd!=false}}else{for(var q=a;!b.yc&&q;q=q.Ge()){Yc(b,q);d&=Ae(q,b[B],false,b)&&b.Rd!=false}}}return Of(d)},zo=function(a,b){if(!Be[a]){return true}var c=
Be[a],d=c[B],e=tb;if(!(d in e)){return true}e=e[d];var f;if(r){var g=b||Uk("window.event"),i=true in e;if(i){if(g[Na]<0||g.returnValue!=Ma){return true}Ao(g)}var j=Ib(c.src),l=Lk.Za();l.Ne(g,this);f=true;try{if(i){var m=Ld.Za();for(var q=l[Ec];q;q=q[n]){m.push(q)}for(var w=m[h]-1;!l.yc&&w>=0;w--){Yc(l,m[w]);f&=Ae(m[w],d,true,l)}for(var w=0;!l.yc&&w<m[h];w++){Yc(l,m[w]);f&=Ae(m[w],d,false,l)}}else{f=pi(c,l)}}finally{if(m){Db(m,0);Ld.jb(m)}l.b();Lk.jb(l)}return f}var D=new ia(b,this);try{f=pi(c,D)}finally{D.b()}return f},
Ao=function(a){var b=false;if(a[Na]==0){try{$e(a,-1);return}catch(c){b=true}}if(b||a.returnValue==Ma){bf(a,true)}};var R=function(){};R.d(wc);R[_P].Ge=function(){return null};R[_P].addEventListener=function(a,b,c,d){v(this,a,b,c,d)};R[_P].removeEventListener=function(a,b,c,d){lb(this,a,b,c,d)};R[_P].dispatchEvent=function(a){return xo(this,a)};R[_P].b=function(){if(!this.$()){wc[_P].b.call(this);Pk(this)}};R[_P].Sl=true;var nb=function(a,b){Fa(this,ja(a)?Ea(a):Ma);Oa(this,ja(b)?Ea(b):Ma)};nb[_P].I=function(){return new nb(this[J],this[z])};Pa(nb[_P],function(){return"("+this[J]+" x "+this[z]+")"});var Vk=function(a,b){if(a==b){return true}if(!a||!b){return false}return a[J]==b[J]&&a[z]==b[z]},Df=function(a,b){this.x=ja(a)?Ea(a):Ma;this.y=ja(b)?Ea(b):Ma};Df[_P].I=function(){return new Df(this.x,this.y)};Pa(Df[_P],function(){return"("+this.x+", "+this.y+")"});var Od=function(a,b,c,d){Cb(this,ja(a)?Ea(a):Ma);this.top=
ja(b)?Ea(b):Ma;Fa(this,ja(c)?Ea(c):Ma);Oa(this,ja(d)?Ea(d):Ma)};Od[_P].I=function(){return new Od(this[eb],this.top,this[J],this[z])};Pa(Od[_P],function(){return"("+this[eb]+", "+this.top+" - "+this[J]+"w x "+this[z]+"h)"});var Ko=function(a,b){if(a==b){return true}if(!a||!b){return false}return a[eb]==b[eb]&&a[J]==b[J]&&a.top==b.top&&a[z]==b[z]},Cf=function(a,b,c,d){this.top=ja(a)?Ea(a):Ma;this.right=ja(b)?Ea(b):Ma;this.bottom=ja(c)?Ea(c):Ma;Cb(this,ja(d)?Ea(d):Ma)};Cf[_P].I=function(){return new Cf(this.top,
this[Zf],this[Qf],this[eb])};Pa(Cf[_P],function(){return"("+this.top+"t, "+this[Zf]+"r, "+this[Qf]+"b, "+this[eb]+"l)"});Cf[_P].contains=function(a){return Jo(this,a)};Cf[_P].expand=function(a,b,c,d){if(Xg(a)){this.top-=a.top;this.right+=a[Zf];this.bottom+=a[Qf];this.left-=a[eb]}else{this.top-=a;this.right+=b;this.bottom+=c;this.left-=d}return this};var Jo=function(a,b){if(!a||!b){return false}return b.x>=a[eb]&&b.x<=a[Zf]&&b.y>=a.top&&b.y<=a[Qf]};var mi;var ue=function(){if(!mi){mi=new oa}return mi},Hb=function(a){return a?new oa(ta(a)):ue()},Pg=function(){return ue().m()},po=function(a){return ue().n(a)},o=po,qo=function(a,b,c){return ue().Jm(a,b,c)},Ng=qo,oi=function(a,b){Ef(b,function(c,d){if(d=="style"){Ye(a[k],c)}else if(d=="class"){fa(a,c)}else if(d=="for"){a.htmlFor=c}else if(d in Ak){a.setAttribute(Ak[d],c)}else{a[d]=c}})},Ak={jz:"cellPadding",kz:"cellSpacing",lz:"colSpan",Kz:"rowSpan",Tz:"vAlign",height:"height",width:"width",tz:"frameBorder"},
we=function(a){var b=a||ca||window,c=b[ea];if(pa&&!gd("500")){if(typeof b[Vf]=="undefined"){b=window}var d=b[Vf],e=b[ea][Vc][We];if(b==b.top){if(e<d){d-=15}}return new nb(b.innerWidth,d)}var f=Hb(c),g=f.wt()=="CSS1Compat"&&(!hh||hh&&gd("9.50"))?c[Vc]:c[E];return new nb(g[Tb],g[Ab])},yf=function(a){var b=a||ca||window,c=b[ea],d,e;if(!pa&&c[Wd]=="CSS1Compat"){d=c[Vc][th];e=c[Vc][$f]}else{d=c[E][th];e=c[E][$f]}return new Df(d,e)},zf=function(a){return a.parentWindow||a[Fc]},Og=function(a,b){var c=ue();
return c.l.apply(c,arguments)};var Nc=function(a,b){a.appendChild(b)};var Gk=function(a,b){if(b[n]){b[n].insertBefore(a,b)}},Fk=function(a,b){if(b[n]){b[n].insertBefore(a,b[Ua])}},ga=function(a){return a[n]?a[n].removeChild(a):null},xf=function(a){return Dk(a[W],true)};var Qg=function(a){return Dk(a[Ua],true)};var Dk=function(a,b){while(a&&a[S]!=1){a=b?a[Ua]:a[pc]}return a};var lo=pa&&Hi(fd,"521")<=0,vf=function(a,b){if(typeof a.contains!="undefined"&&!lo&&b[S]==1){return a==b||a.contains(b)}if(typeof a.compareDocumentPosition!=
"undefined"){return a==b||Of(a.compareDocumentPosition(b)&16)}while(b&&a!=b){b=b[n]}return b==a},no=function(a,b){if(a==b){return 0}if(a.compareDocumentPosition){return a.compareDocumentPosition(b)&2?1:-1}if("sourceIndex"in a||a[n]&&"sourceIndex"in a[n]){var c=a[S]==1,d=b[S]==1,e=c?a[bg]:a[n][bg],f=d?b[bg]:b[n][bg];if(e!=f){return e-f}else{if(c){return-1}if(d){return 1}var g=b;while(g=g[pc]){if(g==a){return-1}}return 1}}var i=ta(a),j,l;j=i.createRange();j.selectNode(a);j.collapse(true);l=i.createRange();
l.selectNode(b);l.collapse(true);return j.compareBoundaryPoints(Range.START_TO_END,l)},ta=function(a){return a[S]==9?a:a[$]||a[ea]};var kc=function(a,b){if("textContent"in a){a.textContent=b}else if(a[W]&&a[W][S]==3){while(a[Wc]!=a[W]){a.removeChild(a[Wc])}fg(a[W],b)}else{while(a.hasChildNodes()){a.removeChild(a[Wc])}var c=ta(a);a.appendChild(c.createTextNode(b))}},wf=function(a,b){var c=[];ni(a,b,c,true);return c[h]?c[0]:Ma},oo=function(a,b){var c=[];ni(a,b,c,false);return c},ni=function(a,b,c,d){if(a!=
null){for(var e=0,f;f=a[ka][e];e++){if(b(f)){c.push(f);if(d){return}}ni(f,b,c,d)}}},mo={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Bk={IMG:" ",BR:"\n"},ve=function(a){if(r&&"innerText"in a){return a[Wf].replace(/(\r\n|\r|\n)/g,"\n")}var b=[];Ek(a,b,true);var c=b.join("").replace(/ +/g," ");if(c!=" "){c=c.replace(/^\s*/,"")}return c},Ek=function(a,b,c){if(a[na]in mo){}else if(a[S]==3){if(c){b.push(qa(a[Wb]).replace(/(\r\n|\r|\n)/g,""))}else{b.push(a[Wb])}}else if(a[na]in Bk){b.push(Bk[a[na]])}else{var d=
a[W];while(d){Ek(d,b,c);d=d[Ua]}}};var oa=function(a){this.fa=a||ca[ea]||O};oa[_P].td=Hb;oa[_P].m=function(){return this.fa};oa[_P].n=function(a){if($a(a)){return this.fa.getElementById(a)}else{return a}};oa[_P].Tq=oa[_P].n;oa[_P].Jm=function(a,b,c){var d=a||"*",e=c||this.fa,f=e.getElementsByTagName(d);if(b){return mk(f,function(g){return Dd(g[hb].split(" "),b)})}else{return f}};oa[_P].Gc=oa[_P].Jm;oa[_P].l=function(a,b){if(r&&b&&b[oc]){a="<"+a+' name="'+ed(b[oc])+'">'}var c=this.createElement(a);
if(b){oi(c,b)}if(arguments[h]>2){function d(g){if(g){this.appendChild(c,$a(g)?this.createTextNode(g):g)}}for(var e=2;e<arguments[h];e++){var f=arguments[e];if((Vg(f)||pa&&typeof f=="function"&&typeof f[h]=="number")&&!(Xg(f)&&f[S]>0)){jc(Ba(f)?f:Yn(f),d,this)}else{d.call(this,f)}}}return c};oa[_P].createElement=function(a){return this.fa.createElement(a)};oa[_P].createTextNode=function(a){return this.fa.createTextNode(a)};oa[_P].bv=function(a){var b=this.fa.createElement("div");Q(b,a);if(b[ka][h]==
1){return b[W]}else{var c=this.fa.createDocumentFragment();while(b[W]){c.appendChild(b[W])}return c}};oa[_P].wt=function(){if(this.fa[Wd]){return this.fa[Wd]}if(pa){var a=this.l("div",{style:"position:absolute;width:0;height:0;width:1"}),b=a[k][J]=="1px"?"BackCompat":"CSS1Compat";return this.fa.compatMode=b}return"BackCompat"};oa[_P].appendChild=Nc;oa[_P].zz=Gk;oa[_P].yz=Fk;oa[_P].removeNode=ga;oa[_P].Ot=xf;oa[_P].au=Qg;oa[_P].contains=vf;oa[_P].Cg=ta;oa[_P].cy=kc;oa[_P].xu=ve;var K=function(a){R.call(this);this.e=a||Hb()};K.d(R);var kp=0,eh="Component already rendered",sl="Unable to set parent component",rl="Operation not supported while component is not in document";K[_P].w=null;K[_P].e=null;K[_P].cb=false;K[_P].a=null;K[_P].Uv=null;K[_P].Q=null;K[_P].Y=null;K[_P].pb=null;K[_P].Oq=null;K[_P].s=function(){return this.w||(this.w=this.bu())};K[_P].nf=function(a){if(this.Q&&this.Q.pb){Pd(this.Q.pb,this.w);Yk(this.Q.pb,a,this)}this.w=a};K[_P].Rb=function(){return"goog.ui.Component"};
K[_P].n=function(){return this.a};K[_P].Pp=function(a){if(this==a){throw Error(sl);}if(a&&this.Q&&this.Q.Oc(this.w)){throw Error(sl);}this.Q=a};K[_P].xd=function(){return this.Q};K[_P].Ge=function(){return this.Q};K[_P].ja=function(){return this.cb};K[_P].l=function(){this.a=this.e.createElement("div")};K[_P].Ac=function(a){this.np(a)};K[_P].np=function(a,b){if(this.cb){throw Error(eh);}if(!this.a){this.l()}if(a){a.insertBefore(this.a,b||null)}else{this.e.m()[E].appendChild(this.a)}if(!this.Q||this.Q.ja()){this.Ja()}};
K[_P].Ul=function(a){if(this.cb){throw Error(eh);}else if(a&&this.Sf(a)){this.Oq=true;this.Vl(a);this.Ja()}else{throw Error("Invalid element to decorate");}};K[_P].Sf=function(a){return true};K[_P].Vl=function(a){this.a=a};K[_P].Ja=function(){this.cb=true;this.xb(function(a){if(a.n()){a.Ja()}})};K[_P].Ya=function(){this.xb(function(a){if(a.ja()){a.Ya()}});this.cb=false};K[_P].b=function(){if(!this.$()){K.h.b.call(this);if(this.cb){this.Ya()}this.xb(function(a){a.b()});if(!this.Oq&&this.a){ga(this.a)}this.Y=
null;this.pb=null;this.a=null;this.Uv=null;this.Q=null}};K[_P].eo=function(a){return this.s()+"."+a};K[_P].Im=function(a){if(!this.cb){throw Error(rl);}return this.e.n(this.eo(a))};K[_P].bu=function(){return":"+kp++};K[_P].sr=function(a,b){this.Nh(a,this.xg(),b)};K[_P].Nh=function(a,b,c){if(a.cb&&(c||!this.cb)){throw Error(eh);}if(b<0||b>this.xg()){throw Error("Child component index out of bounds");}a.Pp(this);if(!this.pb||!this.Y){this.pb={};this.Y=[]}Yk(this.pb,a.s(),a);nk(this.Y,a,b);if(c){if(!this.a){this.l()}var d=
this.Ce(b+1);a.np(this.a,d?d.a:null)}else{if(this.cb&&!a.cb&&a.a){a.Ja()}}};K[_P].xg=function(){return this.Y?this.Y[h]:0};K[_P].Oc=function(a){return this.pb&&a?$k(this.pb,a)||null:null};K[_P].Ce=function(a){return this.Y?this.Y[a]||null:null};K[_P].xb=function(a,b){if(this.Y){jc(this.Y,a,b)}};K[_P].dj=function(a){return this.Y&&a?Hg(this.Y,a):-1};K[_P].removeChild=function(a,b){if(a){var c=$a(a)?a:a.s();a=this.Oc(c);if(c&&a){Pd(this.pb,c);Ig(this.Y,a);if(b){a.Ya();if(a.a){ga(a.a)}}a.Pp(null)}}if(!a){throw Error("Child is not in parent component");
}return a};;var Mc=function(a,b){R.call(this);this.Oe=a||1;this.wf=b||te;this.Wh=C(this.zy,this);this.qj=Ja()};Mc.d(R);Mc[_P].enabled=false;var te=ca.window,Sn=0.8;Mc[_P].Ec=null;Mc[_P].setInterval=function(a){this.Oe=a;if(this.Ec&&this.enabled){this.stop();this.start()}else if(this.Ec){this.stop()}};Mc[_P].zy=function(){if(this.enabled){var a=Ja()-this.qj;if(a>0&&a<this.Oe*Sn){this.Ec=this.wf.setTimeout(this.Wh,this.Oe-a);return}this.Xs();if(this.enabled){this.Ec=this.wf.setTimeout(this.Wh,this.Oe);this.qj=
Ja()}}};Mc[_P].Xs=function(){this.dispatchEvent("tick")};hg(Mc[_P],function(){this.enabled=true;if(!this.Ec){this.Ec=this.wf.setTimeout(this.Wh,this.Oe);this.qj=Ja()}});Mc[_P].stop=function(){this.enabled=false;this.wf.clearTimeout(this.Ec);this.Ec=null};Mc[_P].b=function(){if(!this.$()){R[_P].b.call(this);this.stop();this.wf=null}};var Gg=function(a,b,c){if(Fe(a)){if(c){a=C(a,c)}}else if(a&&typeof a.Zb=="function"){a=C(a.Zb,a)}else{throw Error("Invalid listener argument");}return te.setTimeout(a,
b||0)};var Oo=null,Po=null,Lo=null,Qo=function(a,b){Oo=a;Po=b;Lo=null},Mo=function(){var a=Wk();if(a){return new ActiveXObject(a)}else{return new XMLHttpRequest}},No=function(){var a=Wk(),b={};if(a){b[0]=true;b[1]=true}return b};Qo(Mo,No);var ui=null,Wk=function(){if(!ui&&typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){var a=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];for(var b=0;b<a[h];b++){var c=a[b];try{new ActiveXObject(c);ui=c;return c}catch(d){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");
}return ui};;;var Ra=function(a){this.A=a};Ra.d(wc);var Hk=new Ka(0,100);Ra[_P].g=function(a,b,c,d,e){if(Ba(b)){for(var f=0;f<b[h];f++){this.g(a,b[f],c,d,e)}return}var g=v(a,b,c||this,d||false,e||this.A||this);if(this.u){this.u[g]=true}else if(this.wc){this.u=Hk.Za();this.u[this.wc]=true;this.wc=null;this.u[g]=true}else{this.wc=g}};Ra[_P].Ca=function(a,b,c,d,e){if(!this.wc&&!this.u){return}if(Ba(b)){for(var f=0;f<b[h];f++){this.Ca(a,b[f],c,d,e)}return}var g=yo(a,b,c||this,d||false,e||this.A||this);if(g){var i=
g.eb;Sa(i);if(this.u){Pd(this.u,i)}else if(this.wc==i){this.wc=null}}};Ra[_P].zc=function(){if(this.u){for(var a in this.u){Sa(a);delete this.u[a]}Hk.jb(this.u);this.u=null}else if(this.wc){Sa(this.wc)}};Ra[_P].b=function(){if(!this.$()){wc[_P].b.call(this);this.zc()}};Ra[_P].Zb=function(a){throw Error("EventHandler.handleEvent not implemented");};var Tk=function(a){return 1-y.pow(1-a,3)},mb=function(a,b,c,d){R.call(this);if(!Ba(a)||!Ba(b)){throw Error("Start and end parameters must be arrays");return}if(a[h]!=b[h]){throw Error("Start and end points must be the same length");return}this.qf=a;this.et=b;this.Ai=c;this.Sk=d;this.Ic=[]};mb.d(R);var De=[],Md=null,Qk=function(){te.clearTimeout(Md);var a=Ja();jc(De,function(b){if(b){b.Tl(a)}});Md=De[h]==0?null:te.setTimeout(Qk,20)},Do=function(a){if(!Dd(De,a)){De.push(a)}if(Md==null){Md=te.setInterval(Qk,
20)}},Tg=function(a){Ig(De,a);if(De[h][h]==0&&Md!=null){te.clearInterval(Md);Md=null}};mb[_P].ra=0;mb[_P].wm=0;mb[_P].Na=0;mb[_P].Gb=null;mb[_P].qm=null;mb[_P].nj=null;mb[_P].play=function(a){if(a||this.ra==0){this.Na=0;this.Ic=this.qf}else if(this.ra==1){return false}Tg(this);this.Gb=Ja();if(this.ra==-1){this.Gb-=this.Ai*this.Na}this.qm=this.Gb+this.Ai;this.nj=this.Gb;if(this.Na==0){this.sb("begin")}this.sb("play");if(this.ra==-1){this.sb("resume")}this.ra=1;Do(this);this.Tl(this.Gb);return true};
mb[_P].stop=function(a){Tg(this);this.ra=0;if(a)this.Na=1;this.Ak(this.Na);this.sb("stop");this.sb("end")};mb[_P].pause=function(){if(this.ra==1){Tg(this);this.ra=-1;this.sb("pause")}};mb[_P].qi=function(){this.stop();this.sb("destroy");Pk(this);for(var a in this){this[a]=null;delete this[a]}};mb[_P].Tl=function(a){this.Na=(a-this.Gb)/(this.qm-this.Gb);if(this.Na>=1)this.Na=1;this.wm=1000/(a-this.nj);this.nj=a;if(Fe(this.Sk)){this.Ak(this.Sk(this.Na))}else{this.Ak(this.Na)}if(this.Na==1){this.ra=
0;this.sb("finish");this.sb("end");Tg(this)}else if(this.ra==1){this.sb("animate")}};mb[_P].Ak=function(a){this.Ic=new Array(this.qf[h]);for(var b=0;b<this.qf[h];b++){this.Ic[b]=(this.et[b]-this.qf[b])*a+this.qf[b]}};mb[_P].sb=function(a){this.dispatchEvent(new Rk(a,this))};var Rk=function(a,b){Ia.call(this,a);this.coords=b.Ic;this.x=b.Ic[0];this.y=b.Ic[1];this.Uz=b.Ic[2];this.nz=b.Ai;this.Gz=b.Na;this.sz=b.wm;this.Yd=b.ra;this.cz=b};Rk.d(Ia);;var F=function(a,b,c){a[k][dh(b)]=c},Ge=function(a,b){return a[k][dh(b)]},ep=function(a,b){var c=ta(a);if(c[Fc]&&c[Fc].getComputedStyle){var d=c[Fc].getComputedStyle(a,"");if(d){return d[b]}}return null};var ql=function(a,b,c){var d,e;if(b instanceof Df){d=b.x;e=b.y}else{d=b;e=c}Cb(a[k],typeof d=="number"?y.round(d)+"px":d);a[k].top=typeof e=="number"?y.round(e)+"px":e},pl=function(a){var b;if(a){if(a[S]==9){b=a}else{b=ta(a)}}else{b=Pg()}if(r&&b[Wd]!="CSS1Compat"){return b[E]}return b[Vc]};var Qd=
function(a,b,c){var d;if(b instanceof nb){d=b[z];b=b[J]}else{d=c}Fa(a[k],typeof b=="number"?y.round(b)+"px":b);Oa(a[k],typeof d=="number"?y.round(d)+"px":d)},ec=function(a){if((ep(a,"display")||(a[md]?a[md].display:null)||a[k].display)!="none"){return new nb(a[ae],a[Hc])}var b=a[k],c=b.visibility,d=b.position;ig(b,"hidden");de(b,"absolute");ra(b,"");var e=a[ae],f=a[Hc];ra(b,"none");de(b,d);ig(b,c);return new nb(e,f)},dh=function(a){return qa(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})},
Gf=function(a,b){var c=a[k];if("opacity"in c){c.opacity=b}else if("MozOpacity"in c){c.MozOpacity=b}else if("KhtmlOpacity"in c){c.KhtmlOpacity=b}else if("filter"in c){c.filter="alpha(opacity="+b*100+")"}},U=function(a,b){ra(a[k],b?"":"none")},fp=function(a,b){var c=Hb(b),d=null;if(r){d=c.m().createStyleSheet()}else{var e=c.Gc("head")[0];if(!e){var f=c.Gc("body")[0];e=c.l("head");f[n].insertBefore(e,f)}d=c.l("style");c.appendChild(e,d)}gp(d,a);return d},gp=function(a,b){if(r){Ye(a,b)}else{var c=pa?
"innerText":"innerHTML";a[c]=b}};var Bf=function(a,b,c,d,e){mb.call(this,b,c,d,e);this.ve=a};Bf.d(mb);var Ug=function(a,b,c,d,e){Bf.call(this,a,[b],[c],d,e);var f=["begin","animate","end"];v(this,f,this.fx,false,this)};Ug.d(Bf);Ug[_P].fx=function(a){Oa(this.ve[k],y.round(a.x)+"px")};var Ee=function(a,b,c,d,e){if(Wg(b))b=[b];if(Wg(c))c=[c];Bf.call(this,a,b,c,d,e);if(b[h]!=1||c[h]!=1){throw"[goog.fx.dom.Fade] Start and end points must be 1D";return}var f=["begin","animate","end"];v(this,f,this.lt,false,this)};Ee.d(Bf);Ee[_P].lt=function(a){Gf(this.ve,
a.x)};Ee[_P].fc=function(a){ra(this.ve[k],"")};Ee[_P].$b=function(a){ra(this.ve[k],"none")};var Sk=function(a,b,c){Ee.call(this,a,1,0,b,c);v(this,"begin",this.fc,false,this);v(this,"end",this.$b,false,this)};Sk.d(Ee);var zc=function(a,b,c){qc(this,a);this.Si=b||a;this.mc=true;this.ue=false;this.rj=c||new Od;this.fa=this[aa][$]||this[aa][ea];cf(this,0);df(this,0);this.qe=0;this.re=0;v(this.Si,yc,this.jq,true,this);v(this.fa,Rg,this.po,false,this);v(this.fa,Jd,this.pm,false,this)};zc.d(R);zc[_P].Kp=function(a){this.mc=a};zc[_P].b=function(){if(this.$())return;R[_P].b.call(this);lb(this.Si,yc,this.jq,true,this);lb(this.fa,Rg,this.po,false,this);lb(this.fa,Jd,this.pm,false,this);delete this[aa];delete this.Si};zc[_P].jq=
function(a){if(this.mc&&!this.ue){var b=this.dispatchEvent(new Af("start",this,a[cb],a[db],a));if(b!==false){cf(this,a[Xb]);df(this,a[Yb]);this.qe=this[aa][rh];this.re=this[aa][sh];this.ue=true;a.preventDefault()}}};zc[_P].pm=function(a){if(this.ue){this.ue=false;var b=this.$n(this.qe),c=this.ao(this.re);this.dispatchEvent(new Af("end",this,a[cb],a[db],a,b,c))}};zc[_P].po=function(a){if(this.ue&&this.mc){var b=a[Xb]-this[Xb],c=a[Yb]-this[Yb];this.qe+=b;this.re+=c;var d=this.$n(this.qe),e=this.ao(this.re);
cf(this,a[Xb]);df(this,a[Yb]);var f=this.dispatchEvent(new Af("beforedrag",this,a[cb],a[db],a,d,e));if(f!==false){this.Os(d,e);this.dispatchEvent(new Af("drag",this,a[cb],a[db],a,d,e));a.preventDefault()}}};zc[_P].$n=function(a){var b=this.rj,c=typeof b[eb]!="undefined"?b[eb]:null,d=typeof b[J]!="undefined"?b[J]:0,e=c!=null?c+d:Pf,f=c!=null?c:-Pf;return y.min(e,y.max(f,a))};zc[_P].ao=function(a){var b=this.rj,c=typeof b.top!="undefined"?b.top:null,d=typeof b[z]!="undefined"?b[z]:0,e=c!=null?c+d:Pf,
f=c!=null?c:-Pf;return y.min(e,y.max(f,a))};zc[_P].Os=function(a,b){Cb(this[aa][k],a+"px");this[aa][k].top=b+"px"};var Af=function(a,b,c,d,e,f,g){Ia.call(this,a);Wa(this,a);dg(this,c);eg(this,d);this.Tr=e;Cb(this,ja(f)?f:b.qe);this.top=ja(g)?g:b.re;this.mz=b};Af.d(Ia);var uf=function(a,b){fa(a,b)},tf=function(a){var b=a[hb];return b?b.split(" "):[]},Za=function(a,b){var c=tf(a),d=ai(arguments,1),e=1;for(var f=0;f<d[h];f++){if(!Dd(c,d[f])){c.push(d[f]);e&=1}else{e&=0}}fa(a,c.join(" "));return Of(e)},cc=function(a,b){var c=tf(a),d=ai(arguments,1),e=0;for(var f=0;f<c[h];f++){if(Dd(d,c[f])){bi(c,f--,1);e++}}fa(a,c.join(" "));return e==d[h]},Gb=function(a,b){return Dd(tf(a),b)};var ro=function(a,b){var c=a[$]||a[ea];if(typeof a.selectionEnd=="number"&&typeof a.selectionStart=="number"){a.selectionStart=b;a.selectionEnd=b}else if(c[ag]&&a.createTextRange){var d=a.createTextRange();d.collapse(true);d.move("character",b);d.select()}};;var Ck=function(a,b){if(x){a.setAttributeNS("http://www.w3.org/1999/xhtml","role","wairole:"+b);a.Jz=b}},li=function(a,b,c){if(x){a.setAttributeNS("http://www.w3.org/2005/07/aaa",b,c)}};var dc=function(a){this.uj=a||100;this.hc=[]};dc[_P].$e=0;dc[_P].add=function(a){this.hc[this.$e]=a;this.$e=(this.$e+1)%this.uj};dc[_P].ga=function(a){a=this.uo(a);return this.hc[a]};dc[_P].B=function(a,b){a=this.uo(a);this.hc[a]=b};dc[_P].yb=function(){return this.hc[h]};dc[_P].La=function(){return this.hc[h]==0};Xe(dc[_P],function(){Db(this.hc,0);this.$e=0});dc[_P].ab=function(){var a=this.yb(),b=new Array(a);for(var c=0;c<a;c++){b[c]=this.ga(c)}return b};dc[_P].Vb=function(){var a=[],b=this.yb();
for(var c=0;c<b;c++){a[c]=c}return a};dc[_P].Lb=function(a){return a<this.yb()};dc[_P].uo=function(a){if(a>=this.hc[h]){throw Error("Out of bounds exception");}if(this.hc[h]<this.uj){return a}return(this.$e+Ea(a))%this.uj};var Aa=function(a,b){this.Vg=a||"";this.lh=b||"";this.Ej=[];this.Pj=new dc(500);this.gf=C(this.Aj,this);this.tg=new fi(this.lh);this.nt={};this.Rj(true);this.mc=this.Fm("enabled")=="1";ca.setInterval(C(this.nx,this),7500)};Aa[_P].Xy="LOGGING";Aa[_P].o=null;Aa[_P].Hk=false;Aa[_P].Wg=false;Aa[_P].ml=null;Aa[_P].Tn=Ja();Aa[_P].Ne=function(){if(this.mc){this.Cj()}};Aa[_P].Kp=function(a){this.mc=a;if(this.mc){this.Cj();if(this.o){this.Rq()}}this.Gp("enabled",a?1:0)};Aa[_P].Rj=function(a){if(a==this.Wg){return}this.Wg=
a;var b=qk();if(a){b.Xk(this.gf)}else{b.lp(this.gf)}};Aa[_P].Oh=function(){this.Sq("<hr>")};Aa[_P].Aj=function(a){if(this.nt[a.Li()]){return}var b=this.tg.sg(a);this.Sq(b)};Aa[_P].Sq=function(a){if(this.mc){this.Cj();this.Pj.add(a);this.Ik(a)}else{this.Pj.add(a)}};Aa[_P].Ik=function(a){this.Ej.push(a);ca.clearTimeout(this.ml);if(Ja()-this.Tn>750){this.Qq()}else{this.ml=ca.setTimeout(C(this.Qq,this),250)}};Aa[_P].Qq=function(){this.Tn=Ja();if(this.o){var a=this.o[ea][E],b=a&&a[We]-(a[$f]+a[Ab])<=100;
this.o[ea].write(this.Ej.join(""));Db(this.Ej,0);if(b){this.o.scrollTo(0,1000000)}}};Aa[_P].$y=function(){var a=this.Pj.ab();for(var b=0;b<a[h];b++){this.Ik(a[b])}};Aa[_P].Cj=function(){if(this.o&&!this.o.closed||this.Hk){return}var a=this.Fm("dbg","0,0,800,500").split(","),b=Ea(a[0]),c=Ea(a[1]),d=Ea(a[2]),e=Ea(a[3]);this.Hk=true;this.o=window.open("","dbg"+this.Vg,"width="+d+",height="+e+",toolbar=no,resizable=yes,scrollbars=yes,left="+b+",top="+c+",status=no,screenx="+b+",screeny="+c);if(!this.o){if(!this.wy){alert("Logger popup was blocked");
this.wy=true}}this.Hk=false;if(this.o){this.Rq()}};Aa[_P].Rq=function(){if(!this.o){return}this.o[ea].open();var a='<style>*{font:normal 14px monospace;}.dbg-sev{color:#F00}.dbg-w{color:#E92}.dbg-sh{font-weight:bold;color:#000}.dbg-i{color:#666}.dbg-f{color:#999}.dbg-ev{color:#0A0}.dbg-m{color:#990}</style><hr><div class="dbg-ev" style="text-align:center">'+this.Xy+"<br><small>Logger: "+this.Vg+"</small></div><hr>";this.Ik(a);this.$y()};Aa[_P].Gp=function(a,b){a+=this.Vg;O.cookie=a+"="+nc(b)+";expires="+
(new Date(Ja()+2592000000)).toUTCString()};Aa[_P].Fm=function(a,b){a+=this.Vg;var c=qa(O.cookie),d=c.indexOf(a+"=");if(d!=-1){var e=c.indexOf(";",d);return Tc(c.substring(d+a[h]+1,e==-1?c[h]:e))}else{return b||""}};Aa[_P].nx=function(){if(!this.o||this.o.closed){return}var a=this.o[Xb]||this.o.screenLeft||0,b=this.o[Yb]||this.o.screenTop||0,c=this.o.outerWidth||800,d=this.o.outerHeight||500;this.Gp("dbg",a+","+b+","+c+","+d)};;var vb=function(){this.Hc=r?[]:"";for(var a=0;a<arguments[h];a++){this.c(arguments[a])}};vb[_P].c=function(){if(r){for(var a=0;a<arguments[h];a++){this.Hc.push(arguments[a])}}else{for(var a=0;a<arguments[h];a++){this.Hc+=arguments[a]}}return this};Xe(vb[_P],function(){if(r){Db(this.Hc,0)}else{this.Hc=""}});Pa(vb[_P],function(){if(r){var a=this.Hc.join("");this.clear();if(a){this.Hc.push(a)}return a}else{return this.Hc}});;;;;;;var la=function(a,b){this.A=new Ra(this);this.Hx(a);if(b){this.Wd(b)}};la.d(R);var Fi="toggle_display";la[_P].a=null;la[_P].Nr=true;la[_P].Gd=false;la[_P].Xn=-1;la[_P].Vn=-1;la[_P].sa=Fi;la[_P].Ad=function(){return this.sa};la[_P].Wd=function(a){this.sa=a};la[_P].n=function(){return this.a};la[_P].Hx=function(a){this.ht();this.a=a};la[_P].ht=function(){if(this.Gd){throw Error("Can not change this state of the popup while showing.");}};la[_P].Fd=function(){return this.Gd};la[_P].Fb=function(a){if(a){if(!this.a){throw Error("Caller must call setElement before trying to show thepopup");
}this.ik()}else{this.aj()}};la[_P].op=function(){};la[_P].ik=function(){if(this.Gd){return}if(!this.aw()){return}this.op();if(this.Nr){var a=ta(this.a);this.A.g(a,yc,this.Do,true);if(r){var b=a[Qe];while(b&&b[na]=="IFRAME"){try{var c=pa?b[ea]||b[Xd][ea]:b.contentDocument||b[Xd][ea]}catch(d){break}a=c;b=a[Qe]}this.A.g(a,yc,this.Do,true);this.A.g(a,"deactivate",this.Co)}else{this.A.g(a,"blur",this.Co)}}if(this.sa==Fi){ig(this.a[k],"visible");U(this.a,true)}else if(this.sa=="move_offscreen"){this.op()}this.Gd=
true;this.gh()};la[_P].aj=function(a){if(this.Gd){if(!this.$v(a)){return}if(this.A){this.A.zc()}if(this.sa==Fi){ig(this.a[k],"hidden");U(this.a,false)}else if(this.sa=="move_offscreen"){this.Wv()}this.Gd=false;this.jw()}};la[_P].Wv=function(){Cb(this.a[k],"-200px");this.a[k].top="-200px"};la[_P].aw=function(){return this.dispatchEvent("beforeshow")};la[_P].gh=function(){this.Xn=Ja();this.Vn=-1;this.dispatchEvent("show")};la[_P].$v=function(a){return this.dispatchEvent({type:"beforehide",target:a})};
la[_P].jw=function(){this.Vn=Ja();this.dispatchEvent("hide")};la[_P].Do=function(a){if(!vf(this.a,a[aa])){this.aj(a[aa])}};la[_P].Co=function(a){var b=ta(this.a);if(r){var c=b[Qe];if(c&&vf(this.a,c)){return}}else if(a[aa]!=b){return}if(Ja()-this.Xn<150){return}this.aj()};la[_P].b=function(){if(!this.$()){la.h.b.call(this);this.A.b();this.a=null;this.A=null}};;;var Gd=function(){this.vb=[];this.Fj=new ya;this.Gb=0;this.Aq=0;this.zq=0;this.yk=0;this.$c=new ya;this.yq=0;this.fi=0;this.Yv=1;this.mg=new Ka(0,4000);this.mg.ne=function(){return new ki};this.mk=new Ka(0,50);this.mk.ne=function(){return new vk};var a=this;this.bj=new Ka(0,2000);this.bj.ne=function(){return qa(a.Yv++)};this.bj.xi=function(){};this.Ps=3};Gd[_P].v=Fd("goog.debug.Trace");var vk=function(){this.Va=0;this.qq=0;this.Gk=0};Pa(vk[_P],function(){var a=[];a.push(this[B]);a.push(" ");a.push(this.Va);
a.push(" (");a.push(y.round(this.qq*10)/10);a.push(" ms)");if(this.Gk){a.push(" [VarAlloc = ");a.push(this.Gk);a.push("]")}return a.join("")});var ki=function(){};ki[_P].By=function(a,b,c){var d=[];if(b==-1){d.push("    ")}else{d.push(xk(this.ng-b))}d.push(" ");d.push(wk(this.ng-a));if(this.og==0){d.push(" Start        ")}else if(this.og==1){d.push(" Done ");var e=this.Nz-this.kq;d.push(xk(e));d.push(" ms ")}else{d.push(" Comment      ")}d.push(c);d.push(this.toString());if(this.xq>0){d.push("[VarAlloc ");
d.push(this.xq);d.push("] ")}return d.join("")};Pa(ki[_P],function(){if(this[B]==null){return this.Gl}else{return"["+this[B]+"] "+this.Gl}});td(Gd[_P],function(a){this.Ps=a;for(var b=0;b<this.vb[h];b++){var c=this.mg.id;if(c){this.bj.jb(c)}this.mg.jb(this.vb[b])}Db(this.vb,0);this.Fj.clear();this.Gb=Lg();this.Aq=0;this.zq=0;this.yk=0;this.yq=0;this.fi=0;var d=this.$c.Vb();for(var b=0;b<d[h];b++){var e=d[b],f=this.$c.ga(e);f.Va=0;f.qq=0;f.Gk=0;this.mk.jb(f)}this.$c.clear()});Gd[_P].Au=function(){var a=
this.oc;if(a&&a.isTracing()){return a.totalVarAlloc}return-1};Gd[_P].Wk=function(a,b,c){var d=Lg(),e=c?c:d,f=this.mg.Za();f.og=2;f.ng=e;Wa(f,b);f.Gl=a;f.xq=this.Au();this.fi++;if(c){var g=this.vb[h];for(var i=0;i<g;i++){var j=this.vb[i],l=j.ng;if(l>e){nk(this.vb,f,i);break}}if(i==g){this.vb.push(f)}}else{this.vb.push(f)}var m=f[B];if(m){var q=this.su(m);q.Va++}this.yk+=Lg()-d};Gd[_P].su=function(a){var b=this.$c.ga(a);if(!b){b=this.mk.Za();Wa(b,a);this.$c.B(a,b)}return b};Pa(Gd[_P],function(){var a=
[],b=-1,c=[];for(var d=0;d<this.vb[h];d++){var e=this.vb[d];if(e.og==1){c.pop()}a.push(" ");a.push(e.By(this.Gb,b,c.join("")));b=e.ng;a.push("\n");if(e.og==0){c.push("|  ")}}if(this.Fj.yb()!=0){var f=Lg();a.push(" Unstopped timers:\n");Di(this.Fj,function(j){a.push("  ");a.push(j.toString());a.push(" (");a.push(f-j.kq);a.push(" ms, started at ");a.push(wk(j.kq));a.push(")\n")})}var g=this.$c.Vb();for(var d=0;d<g[h];d++){var i=this.$c.ga(g[d]);if(i.Va>1){a.push(" TOTAL ");a.push(i.toString());a.push("\n")}}a.push("Total tracers created "+
this.yq+"\n");a.push("Total comments created "+this.fi+"\n");a.push("Overhead start: "+this.Aq+" ms\n");a.push("Overhead end: "+this.zq+" ms\n");a.push("Overhead comment: "+this.yk+" ms\n");return a.join("")});var xk=function(a){a=y.round(a);var b="";if(a<1000)b=" ";if(a<100)b="  ";if(a<10)b="   ";return b+a},wk=function(a){a=y.round(a);var b=a/1000%60,c=a%1000;return qa(100+b).substring(1,3)+"."+qa(1000+c).substring(1,4)},Lg=function(){return Ja()},Kg=new Gd;var ze=function(a){R.call(this);this.a=a;var b=r?"propertychange":"input";this.$g=v(this.a,b,this)};ze.d(R);ze[_P].Zb=function(a){var b=a.Mc();if(b[B]=="propertychange"&&b.propertyName=="value"||b[B]=="input"){if(r){var c=b[rd];if(c!=ta(c)[Qe]){return}}var d=new ia(b);Wa(d,"input");try{this.dispatchEvent(d)}finally{d.b()}}};ze[_P].b=function(){if(!this.$()){ze.h.b.call(this);Sa(this.$g);this.a=null}};;var P=function(a,b,c){K.call(this,c);this.ea=a||"modal-dialog";this.Kq=!(!b);this.jc=tl};P.d(K);P[_P].ea=null;P[_P].Kq=false;P[_P].Fw=0.3;P[_P].L="";P[_P].le="";P[_P].jc=null;P[_P].nb=false;P[_P].Sa=null;P[_P].ba=null;P[_P].lb=null;P[_P].Hb=null;P[_P].vk=null;P[_P].bd=null;P[_P].Mb=null;P[_P].Ua=null;P[_P].Rb=function(){return"goog.ui.Dialog"};P[_P].Vp=function(a){this.L=a;if(this.Hb){kc(this.Hb,a)}};P[_P].Oi=function(){return this.L};P[_P].l=function(){this.Kl();this.a=this.e.l("div",{className:this.ea,
tabIndex:0},this.lb=this.e.l("div",{className:this.ea+"-title",id:this.s()},this.Hb=this.e.l("span",{className:this.ea+"-title-text"},this.L),this.bd=this.e.l("span",{className:this.ea+"-title-close"})),this.Mb=this.e.l("div",{className:this.ea+"-content"}),this.Ua=this.e.l("div",{className:this.ea+"-buttons"}));this.vk=this.lb.id;Ck(this.a,"dialog");li(this.a,"labelledby",this.vk);if(this.le){Q(this.Mb,this.le)}U(this.a,false);if(this.jc){this.jc.dl(this.Ua)}};P[_P].Kl=function(){if(this.Kq){this.ba=
this.e.l("iframe",{frameborder:0,style:"border: 0",className:this.ea+"-bg"});U(this.ba,false);Gf(this.ba,0)}this.Sa=this.e.l("div",{className:this.ea+"-bg"});Gf(this.Sa,this.Fw);U(this.Sa,false)};P[_P].Ac=function(a){if(this.ja()){throw Error(eh);}if(!this.a){this.l()}var b=a||this.e.m()[E];this.mp(b);P.h.Ac.call(this,b)};P[_P].mp=function(a){if(this.ba){a.appendChild(this.ba)}a.appendChild(this.Sa)};P[_P].Sf=function(a){return a&&a[xa]&&a[xa]=="DIV"&&P.h.Sf.call(this,a)};P[_P].Vl=function(a){this.a=
a;Za(this.a,this.ea);var b=this.ea+"-content";this.Mb=wf(this.a,function(g){return g[S]==1&&Gb(g,b)});if(this.Mb){this.le=this.Mb[ib]}else{this.Mb=this.e.l("div",{className:b});if(this.le){Q(this.Mb,this.le)}this.a.appendChild(this.Mb)}var c=this.ea+"-title",d=this.ea+"-title-text",e=this.ea+"-title-close";this.lb=wf(this.a,function(g){return g[S]==1&&Gb(g,c)});if(this.lb){this.Hb=wf(this.lb,function(g){return g[S]==1&&Gb(g,d)});this.bd=wf(this.lb,function(g){return g[S]==1&&Gb(g,e)})}else{this.lb=
this.e.l("div",{className:c});this.a.insertBefore(this.lb,this.Mb)}if(this.Hb){this.L=ve(this.Hb)}else{this.Hb=this.e.l("span",{className:d},this.L);this.lb.appendChild(this.Hb)}li(this.a,"labelledby",this.vk);if(!this.bd){this.bd=this.e.l("span",{className:e},this.L);this.lb.appendChild(this.bd)}var f=this.ea+"-buttons";this.Ua=wf(this.a,function(g){return g[S]==1&&Gb(g,f)});if(this.Ua){this.jc=new wb(this.e);this.jc.Ul(this.Ua)}else{this.Ua=this.e.l("div",{className:f});this.a.appendChild(this.Ua);
if(this.jc){this.jc.dl(this.Ua)}}this.Kl();this.mp(ta(this.a)[E])};P[_P].Ja=function(){P.h.Ja.call(this);this.ig=new zc(this.a,this.lb);v(this.bd,kb,this.Ro,false,this);v(this.Ua,kb,this.zo,false,this);Ck(this.a,"dialog");if(this.Hb.id!==""){li(this.a,"labelledby",this.Hb.id)}};P[_P].Ya=function(){lb(this.bd,kb,this.Ro,this);lb(this.Ua,kb,this.zo,this);if(this.Fd()){this.Fb(false)}if(this.ig){this.ig.b();this.ig=null}P.h.Ya.call(this)};P[_P].Fb=function(a){if(a==this.nb){return}var b=this.e.m(),c=
pa?window:zf(b)||window;if(!this.ja()){this.Ac(b[E])}if(a){this.tp();this.Qd();v(b,xe,this.Mo,true,this);v(c,Kd,this.Qo,true,this)}else{lb(b,xe,this.Mo,true,this);lb(c,Kd,this.Qo,true,this)}if(this.ba){U(this.ba,a)}U(this.Sa,a);U(this.a,a);if(a&&this.Ae().Hm()){var d=this.Ua.getElementsByTagName("button");for(var e=0,f;f=d[e];e++){if(f[oc]==this.Ae().Hm()){f.focus();break}}}this.nb=a};P[_P].Fd=function(){return this.nb};P[_P].tp=function(){if(this.ba){U(this.ba,false)}U(this.Sa,false);var a=this.e.m(),
b=zf(a)||window,c=we(b),d=a[E].scrollWidth,e=y.max(a[E][We],c[z]);if(this.ba){U(this.ba,true);Qd(this.ba,d,e)}U(this.Sa,true);Qd(this.Sa,d,e);var f=ec(this.a);this.ig.rj=new Od(0,0,d-f[J],e-f[z])};P[_P].Qd=function(){var a=this.e.m(),b=zf(a)||window,c=yf(b),d=c.x,e=c.y,f=ec(this.a),g=we(b),i=y.max(d+g[J]/2-f[J]/2,0),j=y.max(e+g[z]/2-f[z]/2,0);ql(this.a,i,j)};P[_P].Ro=function(a){var b=this.Ae(),c=b.wg();if(c){var d=b.ga(c);if(this.dispatchEvent(new fh(c,d))){this.Fb(false)}}else{this.Fb(false)}};
P[_P].b=function(){if(!this.$()){P.h.b.call(this);if(this.Sa){ga(this.Sa);this.Sa=null}if(this.ba){ga(this.ba);this.ba=null}}};P[_P].Ae=function(){return this.jc};P[_P].zo=function(a){if(a[aa][xa]=="BUTTON"){var b=a[aa][oc],c=this.Ae().ga(b);if(this.dispatchEvent(new fh(b,c))){this.Fb(false)}}};P[_P].Mo=function(a){if(a[Na]==27){var b=this.Ae();if(b.wg()){var c=b.ga(b.wg());if(this.dispatchEvent(new fh(b.wg(),c))){this.Fb(false)}}else{this.Fb(false)}}};P[_P].Qo=function(a){this.tp()};var fh=function(a,
b){Wa(this,"dialogselect");this.eb=a;this.caption=b};fh.d(Ia);var wb=function(a){this.e=a||Hb();ya.call(this)},tl;wb.d(ya);wb[_P].Wl=null;wb[_P].a=null;wb[_P].tl=null;wb[_P].B=function(a,b,c,d){ya[_P].B.call(this,a,b);if(c){this.Wl=a}if(d){this.tl=a}};wb[_P].dl=function(a){this.a=a;this.Ac()};wb[_P].Ac=function(){if(this.a){Q(this.a,"");Di(this,function(a,b){this.a.appendChild(this.e.l("button",{name:b},a))},this)}};wb[_P].Ul=function(a){if(!a||a[S]!=1){return}this.a=a;var b=this.a.getElementsByTagName("button");
for(var c=0,d,e,f;d=b[c];c++){e=d[oc]||d.id;f=ve(d)||d[Va];if(e){this.B(e,f,c==0,d[oc]=="cancel")}}};wb[_P].Hm=function(){return this.Wl};wb[_P].wg=function(){return this.tl};(function(){var a=Jb("OK"),b=Jb("Cancel"),c=Jb("Yes"),d=Jb("No"),e=Jb("Save"),f=Jb("Continue"),g=new wb;g.B("ok",a,true);g.B("cancel",b,false,true);tl=g;var i=new wb;i.B("yes",c,true);i.B("no",d,false,true);var j=new wb;j.B("yes",c);j.B("no",d,true);j.B("cancel",b,false,true);var l=new wb;l.B("continue",f);l.B("save",e);l.B("cancel",
b,true,true)})();var ci=function(){this.gf=C(this.Aj,this);this.tg=new ji;this.tg.gk=false;this.Wg=false;this.Iv=""};ci[_P].Rj=function(a){if(a==this.Wg){return}var b=qk();if(a){b.Xk(this.gf)}else{b.lp(this.gf);this.Dz=""}};ci[_P].Aj=function(a){var b=this.tg.sg(a);if(window[Uc]&&window[Uc].firebug){switch(a.zg()){case uk:window[Uc].info(b);break;case hi:window[Uc].error(b);break;case ii:window[Uc].warn(b);break;default:window[Uc].debug(b);break}}else if(window[Uc]){window[Uc].log(b)}else{this.Iv+=b}};var di=null,
co=function(){if(!di){di=new ci}if(O[qb][od].indexOf("Debug=true")!=-1){di.Rj(true)}};var Oc=function(a){R.call(this);this.a=a;var b=r?xe:Hd;this.$g=v(this.a,b,this)};Oc.d(R);Oc[_P].$g=null;Oc[_P].Wn=0;Oc[_P].Zn=0;var Jk={"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};Oc[_P].Zb=function(a){var b=a.Mc(),c=b[Na],d=b.which,e;if(a[B]==Hd){if(d>=
63232&&d in Jk){e=Jk[d]}else{if(d==25&&a[pd]){e=9}else{var f=d-32;if(qa.fromCharCode(d)==qa.fromCharCode(f).toLowerCase()){e=f}}}}if(pa){if(this.Wn==e&&b.timeStamp-this.Zn<10){return}this.Wn=e;this.Zn=b.timeStamp}var g=new Ik(e||c||d,b);try{this.dispatchEvent(g)}finally{g.b()}};Oc[_P].b=function(){if(!this.$()){Oc.h.b.call(this);Sa(this.$g);this.a=null}};var Ik=function(a,b){ia.call(this,b);Wa(this,"key");$e(this,a)};Ik.d(ia);;;;var pp,mp,dm={},jq=function(a,b){dm[a]=b},Li=function(a){return dm[a]||window[qb].search&&window[qb].search.match(a+"=true")!=null},Ep=function(){if(window[qb][Ve]){var a=/#?(\d+)$/.exec(window[qb][Ve]);if(a&&a[h]!=0){return ha(a[1],10)}}return null},lh=Li("Debug"),If=Jg("presently"),ph=null,Wp=function(a){if(a){lh=a}if(lh){If.Wj(go);if(window.console){co()}else{var b=new Aa("googpresent");b.Kp(true)}}Da("Debug console initialized")},Xp=function(){return lh},Ta=function(a){if(lh){If.za(a);return true}var b=
o("errorConsole");if(b){kc(b,a)}else{alert(a)}return false},pq=function(a){If.Nq(a);return true},Nf=function(a,b){var c=(new Date).getTime()-b;If.va(a+" ["+c+"ms]");return true},Da=function(a){If.va(a);return true},lq=function(a,b){Gp();ph=window.setTimeout(a,b)},Gp=function(){if(ph){window.clearTimeout(ph)}ph=null},Kf=function(a,b){return!(!a)&&typeof a[b]!="undefined"},Pp=function(a){return a?a[Tb]:window.innerWidth||O[Vc][Tb]||O[E][Tb]},Op=function(a){return a?a[Ab]:window[Vf]||O[Vc][Ab]||O[E][Ab]},
Ni=function(a,b,c,d){return Np(function(e){return Gb(e,a)},b,c,d)},Np=function(a,b,c,d){b=b||O[E];c=c||"*";var e=b.getElementsByTagName(c),f=[];if(e){var g=e[h],i=0;d=d?y.min(g,d):g;for(var j=0;j<g;j++){if(a(e[j])){f.push(e[j]);if(++i==d){break}}}}return f},Mi=function(a,b){for(;b;b=b[n]){if(b==a){return true}}return false},Ip=function(a,b,c,d){a=a||"div";b=b||O[E];var e;if(Kf(b,"ownerDocument")){e=b[$].createElement(a)}else if(Kf(b,"document")){e=b[ea].createElement(a)}if(!e){Ta("createElem: Error creating "+
a);return null}if(c){fa(e,c)}if(d){e.id=d}b.appendChild(e);return e},gm=function(a){var b=Og("div");Q(b,a);return b},$l=function(a){if(!a){return}var b=xf(a),c;while(b&&b[n]==a){c=Qg(b);if(Zp(b)){a.removeChild(b)}else if(b[W]){$l(b)}b=c}},Zp=function(a){if(a[xa]=="IMG"||a[xa]=="HR"||a[xa]=="BR"){return false}if(Ng("img",null,a)[0]||Ng("hr",null,a)[0]){return false}return bh(ve(a))==""},hq=function(a,b){if(!a||!a[n]){Ta("replaceNode: The first argument must be non-null and have a parent node.");return a}var c;
if(b){if(Fe(a.replaceNode)){a.replaceNode(b)}else{a[n].replaceChild(a,b)}while(c=a[W]){b.appendChild(c)}}else{while(c=a[W]){a[n].insertBefore(c,a)}}return bm(a)},nq=function(a,b){var c=a.cloneNode(false),d;do{d=b[Ua];c.appendChild(a.removeChild(b));b=d}while(b&&b[n]==a);if(a[n]){if(a[Ua]){a[n].insertBefore(c,a[Ua])}else{a[n].appendChild(c)}}return c},oq=function(a,b){while(b[n]&&b[n]!=a){b=nq(b[n],b)}return b},bm=function(a){if(a&&a[n]){a[n].removeChild(a)}return a},Kb=function(a,b){return function(c){return b.call(a,
c)}},yb=function(a,b){if(arguments[h]<2){Ta("createClosure: At least 2 arguments, object and method, are required.");return null}var c=[];for(var d=2;d<arguments[h];d++){c.push(arguments[d])}return function(){return b.apply(a,c)}},fm=function(a,b){if(!a||!b){Ta("createTimeoutClosure: Both arguments, func and delay, are required.");return null}return function(){lq(a,b)}},Ol=function(a){return Kf(a,"className")?a[hb].split(/\s+/):[]},Ql=function(a,b){return Kf(a,"className")?a[hb].search("\\b"+b+"\\b")!=
-1:false},Bp=function(a,b){if(Ql(a,b)){return false}var c=Ol(a);c.push(b);fa(a,c.join(" "));return true},gq=function(a,b){var c=Ol(a);for(var d=0;d<c[h];d++){if(c[d]==b){c.splice(d,1);fa(a,c.join(" "));return true}}return false},em=function(a,b,c){if(a){Cb(a[k],b+"px");a[k].top=c+"px"}},Fp=function(a){if(a&&a[k]&&a[k][$d]){uh(a[k],null)}};var Ob=function(a,b){return b?gq(a,"invisible_"):Bp(a,"invisible_")},Lb=function(a){a=a||window[Yd];if(a.stopPropagation){a.stopPropagation()}else{a.cancelBubble=
true}if(a.preventDefault){a.preventDefault()}else{bf(a,false)}return false},Wl=null,kq=function(a){Wl=a},Pl=function(){return Wl||"/"},iq=function(a){if(typeof window[qb].assign=="function"){window[qb].assign(a)}else if(typeof window[qb].replace=="function"){window[qb].replace(a)}else if(self[qb][od]){Ze(self[qb],a)}else{window.location=a}},Dp=function(){switch(Mp()){case 0:iq("/?action=unsupported_browser&product=presentations");break;case 1:mq(M_UNSUPPORTED_BROWSER_VERSION);break;default:}},Mp=
function(){if(Li("browserok")){return 2}if(r){if(ha(fd,10)<6){return 0}}else if(x){if(zb(fd)<1.8){return 0}else if(zb(fd)==1.8){var a=fd.split(".");if(a[2]==0&&a[3]<12){return 1}}}else if(pa){if(ha(fd,10)>500){return 1}return 0}else{return 0}return 2},mq=function(a,b){b=b||O[E];var c=Og("DIV",{className:"page-warning"},a);b.insertBefore(c,b[W])},Hp=function(a){if(r){var b=Ng("img",null,a);if(b){for(var c=b[h]-1;c>=0;c--){var d=b[c],e=d[n];uh(e[k],"1px");e[k].filter=(new vb("progid:DXImageTransform.Microsoft.AlphaImageLoader(src='",
d.src,"',sizingMethod='scale')")).toString();ga(d)}}}},Il=function(a,b){var c=a.cloneNode(b);am(c);return c},Yp=function(a){return a[S]==1},am=function(a){a.removeAttribute("id");var b=oo(a,Yp);jc(b,function(c){c.removeAttribute("id")})},cm=function(a){if(!a.ja()){var b=a.xd();a.Ac(b?b.n():null)}a.xb(cm)},Cp=function(a,b,c,d){return v(a,b,function(e){Ae(c,b,!(!d),e)})},eq=function(a){var b={};jc(a.split(/\s*;\s*/),function(c){var d=c.split(/\s*:\s*/);if(d[h]==2){b[d[0].toLowerCase()]=d[1]}});return b},
hm=function(a){var b=new vb;Ef(a,function(c,d){b.c(d).c(":").c(c).c(";")});return b.toString()};ub("_initConsole",Wp);ub("_perf",Nf);ub("_isDebug",Xp);ub("_setPathPrefix",kq);ub("_getPathPrefix",Pl);ub("_checkBrowserSupport",Dp);ub("_convertImagesToFiltered",Hp);ub("_setFlag",jq);var H=function(a){K.call(this,a)};H.d(K);H[_P].I=function(a){var b=new this.constructor;b.J("action","create");b.J("index",-1);if(a){b.nf(a(b))}return b};H[_P].ei=function(){return Il(this.n(),false)};H[_P].ms=function(a){var b=this.I(a);this.xb(function(c){var d=c.ms(a);b.sr(d);b.Vk(d)});return b};H[_P].Vk=function(a){if(a.$i()){this.Zk(a)}};H[_P].ls=function(){var a=this.ei();this.xb(function(b){a.appendChild(b.ls())});return a};H[_P].xp=0;H[_P].R=null;H[_P].Pb=false;H[_P].A=null;H[_P].ag=null;
H[_P].Ie=function(){return this.xp};H[_P].Vx=function(a){this.xp=a};H[_P].Kn=function(){return this.Pb};H[_P].ya=function(a){if(this.Pb&&!a||!this.Pb&&a){if(!this.ja()){throw new Error(rl);}this.xb(function(b){b.ya(a)});this.Pb=a}};H[_P].vd=function(){return this.A||(this.A=new Ra(this))};H[_P].H=function(){return this.a?this.a[ib]:this.ag};H[_P].Ki=function(){return this.H()};H[_P].xa=function(a,b){if(a!=this.H()){if(this.a){Q(this.a,a)}else{this.ag=a}if(!b){this.J("contents",this.H())}return true}return false};
H[_P].We=function(a,b,c){if(b!=this.dj(a)){var d=a.Kn();if(d){a.ya(false)}this.removeChild(a,true);this.Nh(a,b,true);if(d){a.ya(true)}if(!c){a.J("index",-1)}return true}return false};H[_P].Ze=function(a,b,c){throw new Error("This method must be implemented by a child class");};H[_P].sc=function(a,b,c){this.Nh(a,b,true);if(!c){this.Vk(a)}cm(a)};H[_P].pi=function(a,b){throw new Error("This method must be implemented by a child class");};H[_P].Pa=function(a,b){if(a){var c=a.children;if(c!=null){var d=
{};Ef(c,function(D,da){var bb=D.action;if(bb=="delete"){this.pi(this.Oc(da),b)}else{var Sb=this.Oc(da),Cc=D.index;if(Cc!=null){if(bb=="create"){if(Sb){Ta('Component.updateInternal: Cannot create already existing child with id="'+da)}Sb=this.Ze(da,D.attributes,b)}d[Cc]=Sb}if(!Sb){Ta('Component.update: Received update for child with id="'+da+'", but no such child exists!')}Sb.Pa(D,b)}},this);var e=ao(Yg(d),Ea);bo(e);for(var f=0;f<e[h];f++){var g=e[f],i=0;for(var j=f+1;j<e[h];j++){var l=this.dj(d[e[j]]);
if(0<=l&&l<g){i++}}var m=d[g];if(this.Oc(m.s())){this.We(m,g+i,b)}else{this.sc(m,g+i,b)}}}var q=a.attributes;if(q){for(var w in q){this.cd(w,q[w],b)}}}};H[_P].cd=function(a,b,c){Da("Component.updateAttribute: Unknown attribute in delta for "+this.toString()+" {"+a+': "'+b+'"}')};H[_P].Rb=function(){return"presently.Component"};Pa(H[_P],function(){return(new vb("<")).c(this.Rb()).c(' id="').c(this.s()).c('" revision="').c(this.Ie()).c('"/>').toString()});H[_P].be=function(){throw new Error("Method not supported");
};H[_P].l=function(a){this.a=this.e.l("div",{className:a||"",id:this.s(),Iz:this.Ie()});Q(this.a,this.ag||"");this.ag=null};H[_P].Ya=function(){this.ya(false);H.h.Ya.call(this)};H[_P].b=function(){if(!this.$()){H.h.b.call(this);if(this.A){this.A.b()}this.A=null}};H[_P].$i=function(){return this.R&&!Ff(this.R)};H[_P].vt=function(){return this.R||(this.R={})};H[_P].rs=function(){var a=this.Be("children");if(a){for(var b in a){var c=a[b];if(c.action!="delete"){var d=this.Oc(b);if("index"in c){c.index=
this.dj(d)}d.rs()}}}var e=this.R;this.R=null;return e};H[_P].Be=function(a){return this.R?$k(this.R,a):null};H[_P].J=function(a,b){if(!this.R){this.R={}}switch(a){case "children":case "action":case "index":this.R[a]=b;break;default:var c=this.R.attributes;if(!c){c=(this.R.attributes={})}c[a]=b}if(!("action"in this.R)){this.R.action="update"}var d=this.xd();if(d){d.Zk(this)}};H[_P].Iy=function(a){if(this.$i()){switch(a){case "children":case "action":case "index":delete this.R[a];break;default:var b=
this.R.attributes;if(b){delete b[a];if(Ff(b)){delete this.R.attributes}}}if(!this.$i()){var c=this.xd();if(c){c.zk(this)}}}};H[_P].Zk=function(a){var b=this.Be("children");if(!b){b={};this.J("children",b)}Zg(b,a.s(),a.vt())};H[_P].zk=function(a){var b=false,c=this.Be("children");if(c&&a){b=Pd(c,a.s());if(Ff(c)){this.Iy("children")}}return b};var Qc=function(a,b,c){Ia.call(this,b,a);fg(this,c)};Qc.d(Ia);fg(Qc[_P],null);var zl="slide_title_changed",yl="shape_style_changed",Hf="shape_contents_changed";var Z=function(a){H.call(this,a);this.sf={}};Z.d(H);Z[_P].sa=null;Z[_P].sf=null;Z[_P].ni=null;Z[_P].ld="";Z[_P].Rb=function(){return"presently.Shape"};Z[_P].be=function(){return(new vb('<div class="')).c(this.Ji()).c('" id="').c(this.s()).c('" revision="').c(this.Ie()).c('" style="').c(this.zd()).c('">').c(this.Ki()).c("</div>").toString()};Z[_P].I=function(a){var b=Z.h.I.call(this,a);b.J("contenttype",this.Dm());b.Wd(this.Ad());b.uh(hm(this.an()));b.xa(this.H());return b};Z[_P].Dm=function(){return this.ld};
Z[_P].Ad=function(){return this.sa};Z[_P].zd=function(){return this.ni};Z[_P].uh=function(a,b){if(a!=this.zd()){this.sf=eq(a);this.Ck();this.dispatchEvent(yl);if(!b){this.J("style",this.zd())}return true}return false};Z[_P].Ck=function(){this.ni=hm(this.sf);var a=this.n();if(a){Ye(a[k],this.ni)}};Z[_P].vu=function(){return ve(gm(this.H()))};Z[_P].Wd=function(a,b){if(a!=this.sa){this.sa=a;var c=this.n();if(c){fa(c,this.Ji())}this.dispatchEvent("shape_type_changed");if(!b){this.J("type",this.Ad())}return true}return false};
Z[_P].xa=function(a,b){if(Z.h.xa.call(this,a,b)){this.dispatchEvent(Hf);return true}return false};Z[_P].ya=function(a){if(this.Pb&&!a||!this.Pb&&a){Z.h.ya.call(this,a);var b=this.vd();if(a){b.g(this.n(),yc,this.zj,true)}else{b.zc()}}};Z[_P].l=function(){Z.h.l.call(this,this.Ji());this.Ck()};Z[_P].$m=function(){var a=this.an();return new Od(zb(a[eb]),zb(a.top),zb(a[J]),zb(a[z]))};Z[_P].ak=function(a){if(!Ko(this.$m(),a)){var b=this.sf;Cb(b,a[eb]+"%");b.top=a.top+"%";Fa(b,a[J]+"%");Oa(b,a[z]+"%");this.Ck();
this.J("style",this.zd());this.dispatchEvent(yl)}};Z[_P].Fp=function(a){var b=ha(a[J],10),c=ha(a[z],10),d=b/800,e=c/600,f=1;if(d<=0.9&&e<=0.9){}else if(d>=e){f=0.9/d}else{f=0.9/e}var g=b*f/800*100,i=c*f/600*100,j=(100-g)/2,l=(100-i)/2;this.ak(new Od(j,l,g,i))};Z[_P].an=function(){var a=this.sf;if(!a[J]){a=So(a);var b=this.n();if(b){var c=this.tq(b[rh],b[sh]),d=Ge(b,"padding");F(b,"padding","0");var e=ec(b);F(b,"padding",d);var f=this.tq(e[J],e[z]);Cb(a,c[0]+"%");a.top=c[1]+"%";Fa(a,f[0]+"%");Oa(a,
f[1]+"%")}}return a};Z[_P].Ji=function(){return(new vb(Ki," ",this.ld," ",this.sa)).toString()};Z[_P].tq=function(a,b){var c=ec(this.n()[n]);return[zb(a)/c[J]*100,zb(b)/c[z]*100]};Z[_P].zj=function(a){if(this.ld==pb.Df){return}a.stopPropagation();this.dispatchEvent({type:"select",Tr:a})};Z[_P].cd=function(a,b,c){switch(a){case "type":this.Wd(b,c);break;case "style":this.uh(b,c);break;case "contents":this.xa(b,c);break;case "contenttype":break;default:Z.h.cd.call(this,a,b,c);break}};var qp=function(a){return a?
Ng("*",Ki,a):[]},sp=function(a){if(a){for(var b in V){if(Gb(a,V[b])){return V[b]}}}return V.If},rp=function(a){if(a){for(var b in pb){if(Gb(a,pb[b])){return pb[b]}}}return pb.he},pb={Kh:"picture",he:"text",Df:"background",Uq:"clipart"},Ki="placeholder",V={fe:"body",Ff:"col1",Gf:"col2",Ef:"caption",ge:"centeredTitle",Lh:"subtitle",dd:"title",If:"unknown"};var fc=function(a){Z.call(this,a);this.ld=pb.Kh};fc.d(Z);fc[_P].Rb=function(){return"presently.ImageShape"};fc[_P].ei=function(){var a=Il(this.n(),true);if(r){var b=a[ka];if(b&&b[h]>0&&!b[0].src){b[0].setAttribute("src",this.n()[ka][0].src)}}return a};fc[_P].H=function(){var a=fc.h.H.call(this);if(r&&a){var b=a.match(/src\s*=\s*["']([^'"]+)["']/i);if(b&&b[1]){a=(new vb('<img src="',b[1],'" style="width: 100%; height: 100%"/>')).toString()}}return a};fc[_P].xa=function(a,b){if(r){var c=a.match(/src\s*=\s*["']([^'"]+)["']/i);
if(c&&c[1]){a=(new vb('<div style="width: 100%; height: 100%; font-size: 1px;'," filter:progid:DXImageTransform.Microsoft.","AlphaImageLoader(src='",c[1],"',sizingMethod='scale')\"></div>")).toString()}}return fc.h.xa.call(this,a,b)};fc[_P].Ki=function(){return fc.h.H.call(this)};var Ii=function(a){fc.call(this,a);this.ld=pb.Df};Ii.d(fc);Ii[_P].Rb=function(){return"presently.BackgroundShape"};var Ac=function(){R.call(this);this.Cb={};this.A=new Ra(this)};Ac.d(R);Ac[_P].Cb=null;Ac[_P].A=null;Ac[_P].wr=function(a,b){var c=$a(b)?b:b.src;if(c){Zg(this.Cb,a,c)}};hg(Ac[_P],function(){Ef(this.Cb,this.Fv,this)});Ac[_P].Fv=function(a,b){var c=new Image;Zg(this.Cb,b,c);var d=r?"readystatechange":"load";this.A.g(c,[d,"abort","error"],this.ow);Da("ImageLoader.loadImage_: Loading "+b+" from "+a);c.id=b;c.src=a};Ac[_P].ow=function(a){var b=a[Ec];if(b){if(r){if(b[ce]=="complete"){Wa(a,"load")}else{return}}if(a[B]==
"load"){if(!ja(b[Xf])){b.naturalWidth=b[J]}if(!ja(b.naturalHeight)){b.naturalHeight=b[z]}}Da("ImageLoader.onNetworkEvent_: Raising "+a[B]+' event for <img id="'+b.id+'" src="'+b.src+'"/>');this.dispatchEvent({type:a[B],target:b});Pd(this.Cb,b.id);if(Ff(this.Cb)){Da("ImageLoader.onNetworkEvent_: Done loading all images.");this.dispatchEvent("complete");if(this.A){this.A.zc()}}}};Ac[_P].b=function(){if(!this.$()){if(this.Cb){Ro(this.Cb);this.Cb=null}if(this.A){this.A.b();this.A=null}Ac.h.b.call(this)}};var Ll=function(a,b){b=b||1;a=bh(""+a).toLowerCase();if(a in Jl){return b*Jl[a]}if(!(!a.match(/(%|em|ex)$/i))){var c=Ml(a);return b*zb(a)*Jp[c]}var d;if(a in Kl){d=Kl[a]}else if(Nl(a)){var c=Ml(a);d=Kp[c].pt*zb(a)}else if(!(!a.match(/^\d+$/))){d=[0,8,10,12,14,18,24,36][a]||b}else{return 1}return d/20},Lp=function(a,b,c){var d=a[$][E];while(a&&a!=d){if(a[k]){var e=a[k][$d];if(e){if(Nl(e)){break}b*=Ll(e)}}if(c&&c(a)){break}a=a[n]}return b},Kp={cm:{cm:1,"in":0.39370078740157477,mm:10,pc:2.3622047244094486,
pt:28.346456692913385,px:37.79527559055118},"in":{cm:2.54,"in":1,mm:25.4,pc:6,pt:72,px:96},mm:{cm:0.1,"in":0.03937007874015748,mm:1,pc:0.2362204724409449,pt:2.834645669291339,px:3.7795275590551185},pc:{cm:0.42333333333333334,"in":0.16666666666666666,mm:4.233333333333333,pc:1,pt:12,px:16},pt:{cm:0.035277777777777776,"in":0.013888888888888888,mm:0.35277777777777775,pc:0.08333333333333333,pt:1,px:1.3333333333333333},px:{cm:0.026458333333333334,"in":0.010416666666666666,mm:0.26458333333333334,pc:0.0625,
pt:0.75,px:1}},Kl={"xx-small":7,"x-small":8,small:9,medium:12,large:14,"x-large":17,"xx-large":22},Jl={smaller:0.8,larger:1.25},Jp={"%":0.01,em:1,ex:0.5};var Nl=function(a){return!(!a.match(/(cm|in|mm|pc|pt|px)$/i))};var Ml=function(a){if(a.match(/^\s*\d*\.?\d+\s*(%|em|ex|cm|in|mm|pc|pt|px)\s*$/i)){return RegExp.$1.toLowerCase()}else{return null}};var fq,Si=function(a,b){if($a(a)){return b==a}else{return b&&b.match(a)}},Zl=function(a,b,c){return Si(a,b in this?this[b]:(this[Tf]?this.getAttribute(b):null))};var id=function(){};id[_P].xc=null;td(id[_P],function(){});id[_P].na=function(a,b){return 0};var ma=function(a,b,c){if(a){this.setPosition(a||null,b)}this.Ia=c||this[B]};ma[_P].r=null;Wa(ma[_P],null);ma[_P].Ia=0;ma[_P].setPosition=function(a,b,c){this.r=a;if(a){Wa(this,b);if(!Wg(this[B])){this.ru()}}if(Wg(c)){this.Ia=c}};ma[_P].ru=function(){Wa(this,this.r[S]==1?1:0)};ma[_P].fh=function(){this.r=null};ma[_P].Mz=function(){if(this[B]==1){Wa(this,-1);this.Ia+=this[B]}};ma[_P].next=function(){if(this.Xg()){return null}if(this[B]==1){if(this.r[W]){this.setPosition(this.r[W])}else{this.setPosition(this.r,
-1)}}else{if(this.r[Ua]){this.setPosition(this.r[Ua])}else{this.setPosition(this.r[n],-1)}}this.Ia+=this[B];return this};ma[_P].vn=function(){return this.r&&(this.r[Ua]||this.r[n])};ma[_P].tv=function(){return!this.vn()};ma[_P].mh=function(){if(this.Xg()){return null}if(this[B]==-1){if(this.r[Wc]){this.setPosition(this.r[Wc]);this.type*=-1}else{this.setPosition(this.r,1)}}else{if(this.r[pc]){this.setPosition(this.r[pc])}else{this.setPosition(this.r[n],1)}}this.Ia+=this[B];return this};ma[_P].wn=function(){return this.r&&
(this.r[pc]||this.r[n])};ma[_P].Pn=function(){return this[B]==1};ma[_P].Mn=function(){return this[B]==-1};ma[_P].Xg=function(){return this.r==null};ma[_P].isEqual=function(a){return a.r==this.r&&(!this.r||a[B]==this[B]&&a.Ia==this.Ia)};ma[_P].I=function(){return new ma(this.r,this[B],this.Ia)};var Mf=function(a,b,c){ma.apply(this,arguments)};Mf.d(ma);Mf[_P].next=function(){if(!this.Pn()&&this.Ia==0){this.fh();return this}return ma[_P].next.apply(this,arguments)};Mf[_P].mh=function(){if(!this.Mn()&&this.Ia==0){this.fh();return this}return ma[_P].mh.apply(this,arguments)};Mf[_P].I=function(){return new pp(this.r,this[B],this.Ia)};var jd=function(){};jd.d(id);jd[_P].eg=0;jd[_P].na=function(a,b){this.eg+=b;if(this.eg>=0){return 1}else{this.eg=0;return 3}};td(jd[_P],function(){this.eg=0});var Td=function(a,b){this.hd=a;this.cc=[];this.mo=b||0;jd.call(this)};Td.d(jd);Td[_P].cc=null;Td[_P].mo=0;Td[_P].hd=null;Td[_P].Db=false;Td[_P].na=function(a,b){if(this.Db){this.reset()}var c=jd[_P].na.apply(this,arguments);switch(c){case 1:var d=false;switch(this.hd.na(a,b)){case 3:d=true;case 2:this.cc.push(this.hd.xc);break;default:break}if(d){if(this.hd.na(a,b)==2){this.cc.push(this.hd.xc)}}return 1;case 3:this.Db=true;return this.cc[h]>=this.mo?3:0;default:this.Db=true;return c}};td(Td[_P],function(){this.Db=
false;Db(this.cc,0);this.hd.reset();jd[_P].reset.call(this)});var Sc=function(a,b,c){this.jh=a;this.no=b||0;this.vj=c||null;this.cc=[]};Sc.d(id);Sc[_P].jh=null;Sc[_P].no=0;Sc[_P].vj=0;Sc[_P].Va=0;Sc[_P].Db=false;Sc[_P].cc=null;Sc[_P].na=function(a,b){if(this.Db){this.reset()}if(b==0&&a[Wb].match(/^\s+$/)){return 1}switch(this.jh.na(a,b)){case 2:if(this.Va==0){this.xc=a}this.Va++;this.cc.push(this.jh.xc);if(this.vj!==null&&this.Va==this.vj){this.Db=true;return 2}else{return 1}case 1:return fq;case 3:this.Va++;if(this.rb==this.Wc[h]){this.Db=true;return 3}else{return this.na(a,
b)}default:this.Db=true;if(this.Va>=this.no){return 3}else{return 0}}};td(Sc[_P],function(){this.jh.reset();this.Va=0;this.Db=false;this.cc=[]});var Le=function(a,b){this.Od=a;this.ev=b};Le.d(id);Le[_P].Od=null;Le[_P].rb=0;Le[_P].ev=false;Le[_P].na=function(a,b){if(b==0&&a[Wb].match(/^\s+$/)){return 1}switch(this.Od[this.rb].na(a,b)){case 2:if(this.rb==0){this.xc=a}this.rb++;if(this.rb==this.Od[h]){this.reset();return 2}else{return 1}case 1:return 1;case 3:this.rb++;if(this.rb==this.Od[h]){this.reset();return 3}else{return this.na(a,b)}default:this.reset();return 0}};td(Le[_P],function(){if(this.Od[this.rb]){this.Od[this.rb].reset()}this.rb=
0});var mc=function(a,b,c,d,e){if($a(a)){this.rk=a.toUpperCase()}else{this.rk=a}this.sa=b;this.Th=c;this.pk=d;this.tk=e};mc.d(id);mc[_P].rk=null;mc[_P].sa=null;mc[_P].Th=null;mc[_P].pk=null;mc[_P].tk=null;mc[_P].na=function(a,b){if(b==this.sa&&Si(this.rk,a[na])){if(this.Th&&!Zk(this.Th,Zl,a)){return 0}if(this.pk&&!Zk(this.pk,Zl,a[k])){return 0}if(this.tk&&!this.tk(a)){return 0}this.xc=a;return 2}return 0};var Yl=function(a,b,c,d){mc.call(this,a,1,b,c,d)};Yl.d(mc);var Xl=function(a,b,c,d){mc.call(this,a,-1,b,c,d)};Xl.d(mc);;var Ri=function(a){this.io=a};Ri.d(id);Ri[_P].io=null;Ri[_P].na=function(a,b){if(b==0&&Si(this.io,a[Wb])){this.xc=a;return 2}return 0};var Bc=function(){this.Wc=[];this.ob=[]};Bc[_P].Wc=null;Bc[_P].ob=null;Bc[_P].Yk=function(a,b){this.Wc.push(a);this.ob.push(b)};Bc[_P].pp=function(){for(var a=0,b=this.Wc[h];a<b;a++){this.Wc[a].reset()}};Bc[_P].Pv=function(a){for(var b=0,c=this.Wc[h];b<c;b++){var d=this.Wc[b];switch(d.na(a.r,a[B])){case 2:case 3:var e=this.ob[b];return e(d.xc,a,d);default:break}}return false};Bc[_P].match=function(a){var b=new Mf(a);this.pp();while(true){if(this.Pv(b)){this.pp()}else{b.next()}if(b.Xg()){return}}};function se(a,b,c){this.o=a;this.nr=b;this.ae=null;this.Qs=c}se[_P].ck=function(){if(!Qb(this.ae)){this.o.clearTimeout(this.ae)}this.ae=this.o.setTimeout(C(this.ci,this),this.Qs)};se[_P].ci=function(){if(this.$h()){this.nr();return true}return false};se[_P].$h=function(){if(!Qb(this.ae)){this.o.clearTimeout(this.ae);this.ae=null;return true}return false};function u(a,b,c){R.call(this);this.id=a;this.V=null;if(c){if($a(c)){this.tj=c}else{if(!c.cssStyles){c.cssStyles=Ma}this.Ql=c.cssStyles;if(c.className){this.xl=c.className}{this.tj=c.loremIpsumMessage}if(!c.minHeight){c.minHeight=Ma}this.eh=c.minHeight}}Wa(this,b);this.ok={};this.rf(Jc);this.rf(ke);this.Yg=false;this.Nn=false;this.oi=new se(ca,C(this.am,this),250);if(x){this.je=new se(ca,C(this.Cd,this),15)}this.i=new Ra(this);this.Zy=[];this.Mq=false}u.d(R);u[_P].v=Fd("TR_EditableField");var Jc=
"change",ke="delayedchange",rg="selectionchange",yj=null,ad=function(a){yj=a},sc=function(){return yj};u[_P].M=function(){return this[Zd]||this.nd||null};u[_P].Lm=function(){var a=this.M();return a&&nm?a[$]:a};u[_P].addListener=function(a,b,c,d){var e=this.Lm();this.i.g(e,a,b,c,d)};u[_P].Vt=function(){return this[Dc]};u[_P].Np=function(a){Ye(this,a)};u[_P].Qx=function(a){if(a==this.eh){return}this.eh=a;this.Cd()};{u[_P].db=function(){return this[B]==2}}u[_P].de=function(){return!rc||false};var Dh=
{46:true,8:true};if(r){Dh[229]=true;var wj={86:true,88:true,66:true,73:true,85:true}}else if(x||pa){Dh[9]=true;wj={86:true,88:true}}var Rm=function(a,b){if(Bj(a)){return true}return b&&!(a[gc]||a[Gc])&&(!x||a[Rf])},Bj=function(a){var b=(a[gc]||a[Gc])&&a[Na]in wj,c=!(a[gc]||a[Gc])&&a[Na]in Dh;return b||c},yd=function(a){if(!a[Tf]){return false}return a.getAttribute("g_editable")=="true"};u[_P].Xp=function(a,b){this.field=a;this.V=b;this.Yg=false;this.Nn=false};u[_P].mq=function(){this.field=null;this.V=
null;this.Xh=null};u[_P].ky=function(){if(vh){this.addListener(xe,this.gn);this.addListener(Hd,this.Ru);this.addListener("keyup",this.Tu);this.addListener(["beforecut","beforepaste","drop","dragend"],this.gg);this.addListener("cut",this.tb);this.addListener("focus",this.dm);this.addListener("blur",this.$l);this.addListener(so,this.Zl)}else if(Zi){this.addListener("focus",this.bm);this.addListener("blur",this.$l,true);this.addListener(Hd,this.gn);this.addListener("keyup",this.qn);this.addListener("dragdrop",
this.bm);this.my(this.V)}var a=C(this.wi,this);this.addListener(Jd,a,false);this.ux=new se(ca,a,250);if(km){this.addListener(kb,Qm)}};u[_P].Bl=function(){if(this.i){this.i.zc()}if(this.je){this.cs()}this.ds()};u[_P].b=function(){this.mq();this.Bl();if(this.i){this.i.b();this.i=null}this.Ww();u.h.b.call(this)};u[_P].Ww=function(){var a;while(a=this.Zy.pop()){a.b()}};u[_P].Jt=function(){return this.i};var xj=["DOMNodeInserted","DOMNodeRemoved","DOMNodeRemovedFromDocument","DOMNodeInsertedIntoDocument",
"DOMCharacterDataModified"];u[_P].my=function(a){if(!this.de()){return}var b=a.m();this.i.g(b,xj,this.rn,true);if(this.db()){this.i.g(a.Cg(),xj,this.fm,true);this.i.g(this.V.U(),"load",this.gm,true)}this.i.g(b,"DOMAttrModified",this.jn.D(this,false),true);if(this.db()){this.i.g(a.Cg(),"DOMAttrModified",this.jn.D(this,true),true)}};u[_P].gn=function(a){var b=a[Na]==9&&!this.Vs(a)||x&&a[Gc]&&(a[Na]==37||a[Na]==39);if(b){a.preventDefault()}else{this.Ri=a[Rf]||Rm(a,x);if(this.Ri){this.gg()}}};u[_P].Ru=
function(a,b){this.Ri=true;this.gg()};u[_P].Tu=function(a){if(this.Ri||Bj(a)){this.Cd()}this.qn(a)};var Pm={8:1,46:1,37:1,39:1,38:1,40:1,13:1,36:1,35:1,9:1,33:1,34:1};u[_P].qn=function(a){if(this.Ma(rg)){return}if(a[gc]||a[Gc]||Pm[a[Na]]){this.ux.ck()}};u[_P].jn=function(a,b){if(this.Ma(Jc)){return}b=b.Mc();try{if(b.originalTarget.prefix||b.originalTarget[na]=="scrollbar"){return}}catch(b){return}if(b.prevValue==b.newValue){return}if(a){this.fm()}else{this.rn(b)}};u[_P].rn=function(a){if(this.Ma(Jc)){return}a=
a.Mc?a.Mc():a;if(a[aa].rz){return}this.Yg=true;this.Nn=true;this.je.ck()};u[_P].Rc=function(){return this.V};u[_P].p=function(){return this.Rc().p()};u[_P].wi=function(a){if(this.Ma(rg)){return}var b=this.p();this.Xh=b;this.vi(!b.La());this.dispatchEvent({type:"selectionchange",selection:b})};u[_P].gg=function(){if(this.Ma("beforechange")){return}this.dispatchEvent("beforechange")};u[_P].Vs=function(a){return this.dispatchEvent({type:"beforetab",shiftKey:a[pd],altKey:a[Re],ctrlKey:a[gc]})};u[_P].xh=
function(a,b){if(a){if(this.je){this.fs()}this.rf(Jc)}if(b){this.yl();this.rf(ke)}};u[_P].kk=function(a,b){this.lk(Jc);this.lk(ke);if(a){this.Cd()}if(b){this.am()}};u[_P].rf=function(a){this.ok[a]=1};u[_P].lk=function(a){this.ok[a]=0};u[_P].Ma=function(a){return!(!this.ok[a])};u[_P].tb=function(a){this.kk(true,a)};u[_P].Cd=function(){if(this.Ma(Jc)){return}this.Yg=true;this.Bz=true;this.gm();if(this.Ma(ke)){return}this.oi.ck()};u[_P].gm=function(){if(x&&this.db()&&this.de()){this.dispatchEvent(Jc)}};
u[_P].fm=function(){if(this.Ma(Jc)){return}this.dispatchEvent("outerDocChange")};u[_P].am=function(){if(this.Ma(ke)){return}this.Yg=false;this.dispatchEvent(ke)};u[_P].fs=function(){this.je.ci()};u[_P].cs=function(){this.je.$h()};u[_P].yl=function(){this.oi.ci()};u[_P].ds=function(){this.oi.$h()};u[_P].bm=function(a){this.Zl(a);this.dm(a)};u[_P].Zl=function(a){if(this.Ma("beforefocus")){return}this.dispatchEvent("beforefocus")};u[_P].dm=function(a){if(this.Ma("focus")){return}ad(this.id);if(this.Xh&&
!this.Xh.La()){this.vi(true)}this.dispatchEvent("focus");if(!Xi){var b=this.Rc().U().parent;b.getSelection().removeAllRanges()}};u[_P].$l=function(a){if(this.Ma("blur")){return}if(sc()==this.id){ad(null)}this.vi(false);this.dispatchEvent("blur");if(!rc&&!Xi&&this.db()){var b=this.Rc().U();ca.setTimeout(function(){var c=b.getSelection();if(c){var d=new A(b,c);d.collapse(true)}},0)}};u[_P].mj=function(){return this.yv};u[_P].vi=function(a){this.yv=a;this.dispatchEvent("cvc")};var Qm=function(a){if(vg(zd(a),
"a")){a.preventDefault()}};{var Aj=false}u[_P].Ws=function(){this.Re=true;var a=this.M();if(this.xl){Za(a,this.xl)}if(this.Ql&&!Aj){if(rc&&this.db()){Aj=true}fp(this.Ql,a)}this.kk();this.v.O("Dispatching load "+this.id);this.dispatchEvent("load");this.v.O("Load dispatched "+this.id)};u[_P].Ys=function(){this.Re=false;this.dispatchEvent("unload")};var zj=function(){if(Yi){return"<br>"}return""};{u[_P].vc=function(){return this.Mq};u[_P].wh=function(a){this.Mq=a};u[_P].Px=function(a,b){if(this.tj!=
""&&!this.vc()&&!b.hj()){this.wh(true);this.xo=a[k].fontStyle;a[k].fontStyle="italic";return true}return false};u[_P].Xj=function(a){var b=this[Zd];if(b&&this.Px(b,a)){a.Tj(b,true,this.tj)}};u[_P].bi=function(a){var b=this[Zd];if(b&&this.vc()&&!a.hj()){a.Tj(b,true,null);b[k].fontStyle=this.xo;this.wh(false);if(pa){ta(b)[E].focus();a.f.ye(b.id)}}};u[_P].js=function(a,b){if(this.vc()&&!b.hj()){Q(a,zj());a[k].fontStyle=this.xo;this.wh(false)}}}{};var vd=qa.fromCharCode(160),Xa=r,Ga=x||pa,rc=r||pa,Zi=x,vh=r||pa,qq=x&&!gd("1.9a"),Xi=r||pa,jg=r,kg=x||pa,wh=r,$i=r,nm=x,lm=r,Yi=x||pa,im=x,jm=x,mm=r&&!gd("7.0"),ud=x,km=pa;var fe=function(a,b){if(a[S]!=1){return null}if(a[md]){return a[md][b]}else{var c=ta(a)[Fc];if(c&&c.getComputedStyle){var d=c.getComputedStyle(a,"");return d?d[b]:""}}},ge=function(a,b){var c=fe(a,b);return ha(c,10)||0},qm=function(a){var b={};b.Qh=[];while(a){var c={nodeName:a[na],className:a[hb],id:a.id,cssText:a[k][Dc]};if(a[na]=="BODY"){b.body=c;break}else{b.Qh.push(c)}a=a[n]}return b},ng=function(a){var b=ge;return b(a,"paddingTop")+b(a,"paddingBottom")},jj=function(a){var b=ge;return b(a,"paddingLeft")+
b(a,"paddingRight")},rm=function(a){var b=ge;return b(a,"borderTopWidth")+b(a,"borderBottomWidth")};{var xm=/a(:(link|visited|active|hover))?/,Zc=function(){this.pe="";this.dc=[]};Zc[_P].Yx=function(a){this.dc=[];var b=a.split(/,\s*/gm);for(var c=0;c<b[h];c++){var d=b[c];if(d[h]>0){this.dc.push(new ee(d))}}};Zc[_P].I=function(){var a=new Zc;a.dc=this.dc.concat();a.pe=this.pe;return a};Zc[_P].Ip=function(a,b){var c=[];for(var d in a){var e=a[d];if(e){c.push(d,":",e,b?" !important":"",";")}}this.pe=
c.join("")};Zc[_P].az=function(a){var b=this.dc[h],c=false;for(var d=0;d<b;d++){var e=this.dc[d].Vc,f=e[h];for(var g=0;g<f;g++){a.push(e[g].In," ")}if(d<b-1){a.push(",")}if(x){c=c||xm.test(e[f-1].In)}}var i=this.pe;if(c){i=i.replace(pm,"$1 color: $2 ! important; ")}a.push("{",i,"}\n")};var pm=/(^|;|{)\s*color:([^;]+);/g,ee=function(a){this.Fz=[];this.Rh={};if(a){this.Tx(a)}};ee[_P].Tx=function(a){var b=[],c=a.split(/\s+/gm);for(var d=0;d<c[h];d++){if(!c[d]){continue}var e=new ef(c[d]);b.push(e)}this.Vc=
b};ee[_P].Nv=function(a){var b=a[Ve];if(this.Rh[b]){return this.Rh[b]}var c=0,d=null,e=null,f=null,g=a.to,i=g[h],j=0,d=null;for(j=0;j<=this.Vc[h];j++){e=this.Vc[j];while(c<i){var l=g[c];if(e&&e.nq(l)){d={lm:c,Bp:j};c++;break}else if(f&&f.nq(l)){d={lm:c,Bp:j-1}}c++}f=e}this.Rh[b]=d;return d};var ef=function(a){var b=hj[a];if(b){return b}if(a.match(/[#\.]/)){var c=a.split(/(?=[#\.])/)}else{var c=[a]}var d={};for(var e=0;e<c[h];e++){var f=c[e];if(f.charAt(0)=="."){fa(d,f.substring(1,f[h]))}else if(f.charAt(0)==
"#"){d.id=f.substring(1,f[h])}else{d.tagName=f.toUpperCase()}}this.In=a;this.Ov=d;this.pq={};hj[a]=this},hj={};ef[_P].nq=function(a){var b=a[Ve],c=this.pq[b];if(typeof c!="undefined"){return c}var d=this.Ov,e=d[xa],f=d[hb],g=d.id,i=true;if(e&&e!="*"&&e!=a[na]){i=false}else if(g&&g!=a.id){i=false}else if(f&&!a.es[f]){i=false}this.pq[b]=i;return i};var om=function(a){var b=Ib(a),c=ij[b];if(c){return c}var d=[];do{var e={id:a.id,nodeName:a[na]};e.hash=Ib(e);var f=a[hb],g={};if(f){var i=tf(a);for(var j=
0;j<i[h];j++){g[i[j]]=1}}e.es=g;d.unshift(e)}while(a=a[n]);this.to=d;this.hash=Ib(this);ij[b]=this},ij={},zh=function(a,b){if(a.disabled){return}try{var c=a.cssRules||a.rules,d=c[h]}catch(e){return}if(a.imports){var f=a.imports,g=f[h];for(var i=0;i<g;i++){zh(f[i],b)}}for(i=0;i<d;i++){var j=c[i],l=j.styleSheet;if(l){zh(l,b)}else{b(i,j)}}},vm=function(a,b){var c=a.styleSheets;if(c){var d=c[h];for(var e=0;e<d;e++){zh(c[e],b)}}},tm=function(a){var b=[],c=/([^\{]+)\{/;function d(e,f){var g=f.selectorText;
if(!g){return}var i=f[k],j="",l;if(i&&(l=i[Dc])){if(r){l+="/* */"}j=g}else if(f[Dc]){j=c.exec(f[Dc])[1];l=f[Dc].replace(c,"").replace(/\}[^\}]*$/g,"")}if(j){var m=new Zc;m.Yx(j);m.pe=l;b.push(m)}}vm(a,d);return b},lj={},kj=function(a){var b=Ib(a);lj[b]=tm(a)},wm=function(a){var b=Ib(a),c=lj;if(!c[b]){kj(a)}var d=c[b],e=[];for(var f=0;f<d[h];f++){e.push(d[f].I())}return e},um=["color","visibility","quotes","list-style-type","list-style-image","list-style-position","list-style","page-break-inside",
"orphans","widows","font-family","font-style","font-variant","font-weight","text-indent","text-align","text-transform","white-space","caption-side","border-collapse","border-spacing","empty-cells","cursor"],ym=["font-family","font-size","font-weight","color","text-align","text-decoration","text-indent","text-transform","letter-spacing","white-space","word-spacing"],sm=function(a,b){var c=a[$];if(b){kj(c)}var d=wm(c),e=new om(a),f=new ef("body");for(var g=0;g<d[h];g++){var i=d[g],j=i.dc,l=j[h];for(var m=
0;m<l;m++){var q=j[m],w=q.Nv(e);if(w){var D=w.Bp,da=q.Vc;if(w.lm==e.to[h]-1||D<da[h]-1){var bb=da.concat();bb.splice(0,D+1,f);var Sb=new ee;Sb.Vc=bb;j.push(Sb)}}}}var Cc=new Zc,Oe=a[md]||ta(a)[Fc].getComputedStyle(a,"")||{},Pe=new ee;Pe.Vc=[new ef("html")];Cc.dc=[Pe];var Ud={};for(var g=0,ld;ld=um[g];g++){Ud[ld]=Oe[dh(ld)]}Cc.Ip(Ud);d.push(Cc);var qh=new Zc,Ti=new ee;Ti.Vc=[new ef("body")];var Ui={position:"relative",top:"0",left:"0",display:"block",visibility:"visible"};for(g=0,ld;ld=ym[g];g++){Ui[ld]=
Oe[dh(ld)]}qh.Ip(Ui,true);qh.dc=[Ti];d.push(qh);var Vi=[];l=d[h];for(g=0;g<l;g++){d[g].az(Vi)}return Vi.join("")}};var ei=function(){};ei[_P].v=Fd("goog.debug.GcDiagnostics");hg(ei[_P],function(){if(this.oc){if(this.oc.isTracing()){this.oc.endGcTracing()}this.oc.startGcTracing()}});ei[_P].stop=function(){if(this.oc&&this.oc.isTracing()){var a=this.oc;this.oc.endGcTracing();var b=a.getNumTraces();this.v.O("*********GC TRACE*********");this.v.O("GC ran "+b+" times.");var c=0;for(var d=0;d<b;d++){var e=a.getTrace(d),f=e.gcStartTime,g=e.gcElapsedTime,i=y.round(g*10)/10,j="GC "+d+": "+i+" ms, numVValAlloc="+e.numVValAlloc+
", numVarAlloc="+e.numVarAlloc+", numBytesSysAlloc="+e.numBytesSysAlloc;if(Kg){Kg.Wk(j,null,f)}this.v.O(j);c+=g}if(Kg){Kg.Wk("Total GC time was "+c+" ms.")}this.v.O("Total GC time was "+c+" ms.");this.v.O("*********GC TRACE*********")}};;var Qn=top,of=function(){return Qn},Fb=function(a,b,c){return a&&a[na]&&a[na].toLowerCase()==b&&(!c||a[hb]==c)},Dg=function(a){return a.charCodeAt(0)},rq=Fd("TR_Util");var ik=function(a){var b="(/[a-z0-9_\\-%/\\.]+)?(\\?.*)?",c="[a-z0-9\\-]+(\\.[a-z0-9\\-]+)*(:[0-9]+)?",d="^(((http|https|ftp)://("+c+b+")?)|((www|www9|ftp)\\."+c+b+")|("+c+"\\.(net|org|com|edu|gov)(:[0-9]+)?"+b+"))$";return a.search(new RegExp(d,"i"))==0},Eg=function(a){var b=/^([a-z0-9_-])+(\.[a-z0-9_-]+)*\@(([a-z0-9\-])+\.)+[a-z0-9]+$/i;
return a.search(b)==0},Yh=function(a){if(a.search(/:/)<0){a="http://"+ml(a)}return a};var Wh=function(a){return!/[^\t\n\r ]/.test(a)};function bk(a){this.k=a}bk[_P].bn=function(a){function b(c){if(Qh(c)){return NodeFilter.FILTER_SKIP}return NodeFilter.FILTER_ACCEPT}return this.k.createTreeWalker(a,NodeFilter.SHOW_TEXT,b,true)};var Qh=function(a){return Wh(a[Wb])},Qj=function(a){if(a[S]==3||a[S]==4){return/^[\s\u00a0]*$/.test(a[Wb])}else{return false}};var Lc=function(a){return ta(a)[Wd]=="CSS1Compat"},vn=function(a){var b=ta(a);return zf(b)},Rj=function(a,b){if(a[S]==3||a[S]==4){if(b){return Qj(a)}else{return Qh(a)}}if(Fb(a,"img")){return false}if(!a[ka]){return false}for(var c=0;c<a[ka][h];c++){if(!Rj(a[ka][c],b)){return false}}return true},xg=function(a){return!Fb(a,"img")&&(a[S]!=1&&a[S]!=3||Qh(a))},jf=function(a){while(a){a=
a[pc];if(!a||!xg(a))return a}},Bd=function(a){while(a){a=a[Ua];if(!a||!xg(a))return a}},Ph=function(a){if(a){var b=a[Wc];while(b){if(!xg(b)){return b}b=b[pc]}}return null},wg=function(a){if(a){var b=a[W];while(b){if(!xg(b)){return b}b=b[Ua]}}return null},Kc=function(a){while(wg(a)){a=wg(a)}return a},oe=function(a){while(Ph(a)){a=Ph(a)}return a},un=function(a){while(a&&!jf(a)){a=Pj(a)}if(a){a=jf(a);a=oe(a);return a}else{return null}},tn=function(a){while(a&&!Bd(a)){a=Pj(a)}if(a){a=Bd(a);a=Kc(a);return a}else{return null}},
ne=function(a,b){if(!a){return null}return b(a)?a:ne(a[n],b)},vg=function(a,b,c){b=b.toLowerCase();var d=function(e){return e[na].toLowerCase()==b&&(!c||e[hb]==c)};return ne(a,d)},sn=function(a,b,c){var d=function(e){return e[Tf]&&e.getAttribute(b)==c};return ne(a,d)},yn=function(a){var b=fe(a,"display");return b=="block"},$b=function(a){return a&&(yn(a)||a[na].toLowerCase()=="td"||a[na].toLowerCase()=="table"||a[na].toLowerCase()=="li")},Ad=function(a){return ne(a,$b)},Rh=function(a,b,c){if(a.setAttribute){a.setAttribute(b,
c);var d=a[ka];for(var e=0;e<d[h];e++){Rh(d[e],b,c)}}},Th=function(a,b){if(a[k]){zg(a,b);var c=a[W];while(c){Th(c,b);c=c[Ua]}}},wn=function(a,b){b[n].insertBefore(a,b[Ua])},xn=function(a,b){b[n].insertBefore(a,b)},Bn=function(a,b){b[n].replaceChild(a,b)},Sj=function(a,b){var c=b[ka][h];for(var d=0;d<c;d++){a.appendChild(b[W])}},zn=function(a,b){var c=a.getElementsByTagName(b);while(c[0]){yg(c[0]);ga(c[0])}},yg=function(a){var b=a[n],c=a[Ua];while(a[W]){b.insertBefore(a[W],c)}},Ya=function(a,b,c,d,
e){var f=a.createElement(b);Sh(f,c);if($a(d)){oi(f,{style:d})}else{zg(f,d)}if(e){e.appendChild(f)}return f},Sh=function(a,b){for(var c in b){a[c]=b[c]}},An=function(a,b){for(var c=0;c<b[h];++c){a.removeAttribute(b[c])}},zg=function(a,b){for(var c in b){a[k][c]=b[c]}},ug=function(a){for(var b=1;b<arguments[h];++b){Nc(a,arguments[b])}},Pj=function(a){return a[n]},ic=function(a,b){return a.hasChildNodes()&&b<a[ka][h]?a[ka][b]:null},uc=function(a){return a[h]?a[h]:a[ka][h]},cd=function(a){if(a[Ue]){return a[Ue]}else if(a.hasChildNodes()){var b=
"";for(var c=0;c<a[ka][h];c++){var d=a[ka][c];b+=cd(d)}return b}else{return""}},pe=function(a){var b=cd(a);if(a.getElementsByTagName){var c=a.getElementsByTagName("img")[h]>0||a.getElementsByTagName("a")[h]>0||a.getElementsByTagName("iframe")[h]>0||a.getElementsByTagName("embed")[h]>0}return!c&&(b==""||b==vd||Wh(b))},Oh=function(a,b){var c=a[$].createTextNode(b);a.appendChild(c);return c},qn=function(a,b,c,d,e){var f;if(typeof b=="string"){f=Ya(a[$],"a",{href:b},{},a);if(e){qc(f,"_blank")}}else{f=
Ya(a[$],"span",{className:"tr_pseudo-link"},{},a);c.g(f,"click",b)}if(d)Oh(f,d);return f},me=function(a,b,c,d){var e=ha(a,10),f=ha(b,10),g=c.createElement("table");for(var i=0;i<e;i++){var j=g.insertRow(0);for(var l=0;l<f;l++){var m=j.insertCell(0);if(!d){m.appendChild(c.createTextNode(vd))}}}return g};var Oj=function(a,b){for(var c=0,d=a[ka][h];c<d;c++){if(b(a[ka][c])){return c}}return null},rn=function(a){try{return a[Qe]}catch(b){}return null};var fj=function(a){return gj(a,false)};var gj=function(a,b){var c=b?jf:Bd;while(a&&!c(a)&&!$b(a[n])&&!yd(a[n])){a=a[n]}return a&&!c(a)&&!yd(a[n])};function og(a,b){this.Ap=a;this.Bq=new bk(a[nd][$]);this.dt=b}og[_P].B=function(a,b){if(!b)b=0;a=Om(a);var c=a.commonAncestorContainer;this.q=this.dt.De(c);var d=0,e=this.Bq.bn(this.q),f=e.nextNode(),g=b==1&&mj(a,0);if(g){b=0;this.gj=true}else{this.gj=nj(a,b)}if(!this.gj&&b==-1&&nj(a,0)){b=0}while(f){if(f==a[za]){this.F=d+a[Bb]+b;break}d+=f[h];f=e.nextNode()}this.q.normalize()};og[_P].restore=function(){this.q.normalize();var a=this.Bq.bn(this.q),b=0,c=a.nextNode();while(c){if(b<=this.F&&this.F<=
b+c[h]){if(this.gj&&this.F!=0){b+=c[h];c=a.nextNode()}var d=c,e=this.F-b;break}b+=c[h];var f=a.nextNode();if(!f){var e=b,d=c;break}else{c=f}}if(!d)return;var g=Zb(d,e);this.Ap.removeAllRanges();this.Ap.addRange(g)};var mj=function(a,b){if(!b)b=0;return a[Vd]&&a[Bb]+b==uc(a[za])&&fj(a[za])},nj=function(a,b){if(!b)b=0;return a[Vd]&&(a[Bb]+b==0&&gj(a[za],true)||mj(a,0)&&b==1)},zm=function(a,b){var c=null;if(Ga){c=new pg(a,b)}else if(Xa){c=new he(a,b)}if(!c.Sn()){c=null}return c},ff=function(a,b,c){this.wo=
b;this.jk=[];while(a&&a[na]!="BODY"&&a!=c){var b=0,d=a[pc];while(d){d=d[pc];++b}this.jk.unshift({name:a[na],bf:b});a=a[n]}};Pa(ff[_P],function(){var a=[],b;for(var c=0;b=this.jk[c];++c){a.push(b.bf+","+b[oc])}return a.join("\n")+"\n"+this.wo+"\n"});ff[_P].tm=function(a){var b,c=a;for(var d=0;b=this.jk[d];++d){c=c[ka][b.bf];if(!c||c[na]!=b[oc]){return null}}return c};ff[_P].Vm=function(){return this.wo};var pg=function(a,b){this.Qe=false;if(!a){return}var c=a[Se],d=a[nd];if(!c||!d){return}var e=a.anchorOffset,
f=new ff(c,e,b),g=a.focusOffset,i=new ff(d,g,b),j=Zb(c,e),l=Zb(d,g);if(j.compareBoundaryPoints(Range.START_TO_START,l)<1){this.F=f;this.T=i}else{this.F=i;this.T=f}this.Qe=true};pg[_P].Sn=function(){return this.Qe};Pa(pg[_P],function(){return"MOZ:"+this.F.toString()+this.T.toString()});pg[_P].Hp=function(a,b){var c=this.F.tm(a),d=this.T.tm(a);if(!c||!d){return false}var e=Zb(c,this.F.Vm(),d,this.T.Vm());b.focus();var f=b.getSelection();f.removeAllRanges();f.addRange(e);return true};var he=function(a,
b){this.Qe=false;if(!vf(b,a.parentElement())){return}var c=b[$][E].createTextRange();c.moveToElementText(b);var d=a.duplicate();d.collapse(true);d.setEndPoint("StartToStart",c);this.F=this.Il(d);var e=a.duplicate();e.setEndPoint("StartToStart",c);this.T=this.Il(e);this.Qe=true};he[_P].Sn=function(){return this.Qe};Pa(he[_P],function(){return"IE:"+this.F+","+this.T});he[_P].Il=function(a){var b=a.duplicate(),c=a[sd],d=c[h];b.collapse(true);b.moveEnd("character",d);var e,f=10;while(e=b.compareEndPoints("EndToEnd",
a)){d-=e;b.moveEnd("character",-e);--f;if(0==f){break}}var g=0,i=c.indexOf("\n\r");while(i!=-1){++g;i=c.indexOf("\n\r",i+1)}return d+g};he[_P].Hp=function(a,b){ca.setTimeout(this.Gx.D(this,a),0);return true};he[_P].Gx=function(a){a.focus();var b=a[$][ag].createRange();b.moveToElementText(a);b.collapse(true);b.moveStart("character",this.F);b.moveEnd("character",this.T);b.select()};function hf(a,b){this.pa=a;this.f=b}var Zb=function(a,b,c,d){var e=a[$].createRange();e.setStart(a,b);if(c&&d>=0){e.setEnd(c,d)}return e},Om=function(a){var b=a[za],c=a[Bb],d=a[Ub],e=a[Vb];if($b(b)){var f=uc(b);if(f==c){b=oe(b);c=uc(b)}else{b=ic(b,c);b=Kc(b);c=0}}if(!a[Vd]&&$b(d)){var f=uc(d);if(e==0){d=Kc(d);e=0}else{d=ic(d,e-1);d=oe(d);e=uc(d)}}if(a[Vd]){return Zb(b,c)}else{return Zb(b,c,d,e)}};hf[_P].sh=function(a){if($b(a[za])){var b=ic(a[za],a[Bb]);b=Kc(b);var c=0}else{var b=a[za],c=a[Bb]}if($b(a[Ub])){var d=
ic(a[Ub],a[Vb]);d=oe(d);var e=uc(d)}else{var d=a[Ub],e=a[Vb]}a=Zb(b,c,d,e);this.pa.sh(a)};hf[_P].Ts=function(a){if(!a[Vd]){var b=new og(this.pa.getSelection(),this.f);b.B(a,0);var c=Mm(a),d=Nm(a);this.jt(a);if(c){var e=Ad(a[za]);if(Rj(e,false)){Q(e,"&nbsp;");this.pa.yp(e[W]);b=null}}if(!c&&d){var f=Ad(a[za]),g=Bd(f);Sj(g,f);ga(g)}if(b)b.restore()}};hf[_P].jt=function(a){a=a.cloneRange();var b=new og(this.pa.getSelection(),this.f);b.B(a);var c=a.extractContents();if(a[za].hasChildNodes()){var d=ic(a[za],
a[Bb]);if(d){var e=jf(d);if(cd(d)==""){ga(d)}if(e&&cd(e)==""){ga(e)}}}b.restore();return c};hf[_P].hu=function(){var a=this.pa.Yb();a=a.cloneRange();return a};var Mm=function(a){var b=Lm(a),c=Km(a);return b==c},Nm=function(a){var b=a[Ub];if($b(b)&&$b(ic(b,a[Vb]))){return false}var c=Ad(b);while(c!=b){if(Bd(b)){return true}b=b[n]}return a[Vb]!=uc(a[Ub])},Lm=function(a){var b=a[za];if($b(b)&&$b(ic(b,a[Bb]))){return ic(b,a[Bb])}return Ad(b)},Km=function(a){var b=a[Ub];if($b(b)&&$b(ic(b,a[Vb]))){return ic(b,
a[Vb])}return Ad(b)};var an=Ja(),bd=function(){return"tr_"+an++};function pf(a){this.Ba=a}pf[_P].$f=function(a){var b=a.Ba;return 0==Vj(this.Ba,b[za],b[Bb])};pf[_P].Zf=function(a){var b=a.Ba;return 0==Vj(this.Ba,b[Ub],b[Vb])};pf[_P].rh=function(a){if(a[S]==3)a=a[n];var b=Kc(a),c=oe(a);if(Fb(b,"br")){b=b[n]}if(Fb(c,"br")){c=c[n]}this.Ba.setStart(b,0);this.Ba.setEnd(c,uc(c))};function le(a){hg(this,new Me(this,"Start"));this.om=new Me(this,"End");this.Ba=a}le[_P].$f=function(a){return this.Jl(a.start)};le[_P].Zf=function(a){return this.Jl(a.om)};le[_P].Jl=function(a){try{return this.start.wv(a)&&
this.om.xv(a)}catch(b){return false}};le[_P].rh=function(a){var b=this.Ba;if(a[S]==1){b.moveToElementText(a)}else{var c=0,d=a;while(d=d[pc]){var e=d[S];if(e==3){c+=d[Wb][h]}else if(e==1){b.moveToElementText(d);break}}if(!d){b.moveToElementText(a[n])}b.collapse(!d);if(c){b.move("character",c)}b.moveEnd("character",a[Wb][h])}};function Me(a,b){this.hp=a;this.Xo=b;this.Az=true}Me[_P].wv=function(a){return this.Hl(a)<=0};Me[_P].xv=function(a){return this.Hl(a)>=0};Me[_P].Hl=function(a){var b=this.hp.Ba;
return b.compareEndPoints(this.Xo+"To"+a.Xo,a.hp.Ba)};function lf(a){if(Xa){le.call(this,a)}else{pf.call(this,a)}}lf.d(Xa?le:pf);var Ag=function(a){var b=Xa?a[$][E].createTextRange():a[$].createRange(),c=new lf(b);c.rh(a);return c};lf[_P].ss=function(a){return this.$f(a)&&this.Zf(a)};lf[_P].Jw=function(a){return this.$f(a)||this.Zf(a)||a.$f(this)||a.Zf(this)};var Vj=function(a,b,c){if(a.comparePoint){return a.comparePoint(b,c)}else{return a.compareBoundaryPoints(Range.START_TO_START,Zb(b,c))}};function A(a,b){this.o=a||window;if(!b){if(this.o.getSelection){b=this.o.getSelection()}else if(this.o[ea][ag]){b=this.o[ea][ag]}else if(this.o[ea].getSelection()){b=this.o[ea].getSelection()}}this.hb=b;try{if(b&&b.createRange){if(b[B]=="Control"){var c=b.createRange(),d=c.item()[$];this.j=d[E].createTextRange()}else{this.j=b.createRange()}}else{this.j=b}}catch(e){this.j=null}}A[_P].hb=null;A[_P].j=null;A[_P].o=null;A[_P].getSelection=function(){return this.j};A[_P].qa=null;A[_P].Z=null;A[_P].F=-1;
A[_P].T=-1;A[_P].ta=function(){this.qa=null;this.Z=null;this.F=-1;this.T=-1};A[_P].Gg=function(){return this.qa||(this.qa=this.Sb(1))};A[_P].Km=function(){return this.Z||(this.Z=this.Sb(0))};A[_P].qu=function(){return this.F>=0?this.F:(this.F=this.Wm(1))};A[_P].It=function(){return this.T>=0?this.T:(this.T=this.Wm(0))};A[_P].Wm=function(a){return Ga?this.du(a):this.cu(a)};A[_P].cu=function(a){var b=this.Sb(a);if(b[S]==1){return 0}else{var c=this.Am(),d=Ag(b).Ba;c.setEndPoint(a==1?"EndToEnd":"StartToStart",
d);var e=c[sd][h];return a==0?e:b[Wb][h]-e}};A[_P].du=function(a){var b=this.Yb();if(!b){return-1}return a==1?b[Bb]:b[Vb]};A[_P].Sb=function(a){if(Ga){var b=this.Yb();if(!b){return null}return a==1?b[za]:b[Ub]}else if(Xa){var c=this.Xb();return this.Cm(c,a)}};A[_P].Cm=function(a,b){if(!a||!a[W]){return a}var c=b==1?wg(a):Ph(a),d=b==1?Bd:jf;while(c){if(this.hi(c,false)){return this.Cm(c,b)}c=d(c)}return a};A[_P].Xb=function(){if(this.j.parentElement){var a=this.j[sd];for(var b=1;a.charAt(a[h]-b)==
" ";++b){this.j.moveEnd("character",-1)}var c=this.j.parentElement(),d=xi(this.j[Uf]);while(d[h]>xi(c[be])[h]){c=c[n]}while(c[ka][h]==1&&c[Wf]==c[W][Wf]){if(c[W][xa]=="IMG"){return c}c=c[W]}return c}else if(Ga){if(Qb(this.j[nd])){return null}var e=this.Yb();if(!this.uc()&&e[za][h]==e[Bb]&&!fj(e[za])){var f=tn(e[za]),g=0,i=e[Ub],j=e[Vb];if(f){e=Zb(f,g,i,j)}}var i=e[Ub],j=e[Vb];while(i&&!e[Vd]&&Qj(i)){var l=un(i);if(no(l,e[za])>=0){i=l}if(i){j=i[h];e=Zb(e[za],e[Bb],i,j)}if(i!=l){break}}if(e){return e.commonAncestorContainer}else{return null}}else if(this.j.item){return this.j.item(0)}};
A[_P].uc=function(){return this.j.isCollapsed||this.j[sd]==""};A[_P].La=function(){if(this.hb[B]){return this.hb[B]=="None"}else if(this.hb.getRangeAt){return this.hb.rangeCount==0}else if(Ga){return!(!this.hb[Se])}};A[_P].empty=function(){this.ta();if(this.hb.empty){try{this.hb.empty()}catch(a){}}else if(this.hb.removeAllRanges){this.hb.removeAllRanges()}};A[_P].Yl=function(a){this.ta();var b=new hf(this,a),c=b.hu();b.Ts(c);return c};A[_P].hi=function(a,b){if(!a){return false}try{var c=new lf(this.Yb()),
d=Ag(a);return b?c.ss(d):c.Jw(d)}catch(e){return false}};A[_P].rh=function(a){this.ta();if(Xa){this.j.moveToElementText(a);this.j.select()}else if(Ga){var b=Kc(a),c=oe(a);this.j.collapse(b,0);this.j.extend(c,uc(c))}};A[_P].sh=function(a){this.ta();if(Ga){if(this.j){if(this.j.removeAllRanges){this.j.removeAllRanges();this.j.addRange(a)}else if(this.j.setBaseAndExtent){this.j.setBaseAndExtent(a[za],a[Bb],a[Ub],a[Vb])}this.o.focus()}}};A[_P].selectNodes=function(a,b,c,d){return Ga?this.zp(a,b,c,d):this.tx(a,
b,c,d)};A[_P].tx=function(a,b,c,d){var e=Ag(a).Ba;if(b){e.move("character",b)}var f=Ag(c).Ba;f.collapse();if(d){f.moveEnd("character",d)}if(e[sd][h]||f[sd][h]){e.setEndPoint("EndToEnd",f)}e.select()};A[_P].zp=function(a,b,c,d){this.ta();var e=a;a=Vh(a);if(a!=e){b=Oj(a,function(i){return i==e})}this.j.collapse(a,b);try{var f=c;c=Vh(c);if(c!=f){d=Oj(c,function(i){return i==f})}this.j.extend(c,d)}catch(g){}};A[_P].yp=function(a){this.sx(a,0)};A[_P].sx=function(a,b,c,d){this.ta();a=Kc(a);a=Vh(a);var e=
Zb(a,b,c,d);this.sh(e)};var Vh=function(a){return Fb(a,"br")?a[n]:a};A[_P].Oj=function(){if(Xa){this.ph=this.hb.createRange()}else if(Ga&&this.j[Se]){this.Kf=this.Gm(true);this.Fi=this.Gm(false)}};A[_P].Nj=function(){this.ta();if(Xa&&this.ph){this.ph.select()}else if(Ga&&this.Kf&&this.Kf.r[$]&&this.Fi.r[$]){this.zp(this.Kf.r,this.Kf.bf,this.Fi.r,this.Fi.bf);this.o.focus()}};A[_P].collapse=function(a){if(Xa){this.ps(a)}else if(Ga){this.qs(a)}};A[_P].ps=function(a){this.ta();if(this.ph){this.ph.collapse(a)}};
A[_P].qs=function(a){this.ta();if(!this.uc()){if(a){this.j.collapseToStart()}else{this.j.collapseToEnd()}}};A[_P].m=function(){if(!this.k){if(this.j[nd]){this.k=this.j[nd][$]}else if(this.j.parentElement){this.k=this.j.parentElement()[$]}}return this.k};A[_P].Gm=function(a){var b=this.j[a?"anchorNode":"focusNode"],c=this.j[a?"anchorOffset":"focusOffset"];while(b.hasChildNodes){var d=ic(b,c);if(!d&&!b[Wc]){break}if(d){b=d;c=0}else{b=b[Wc];c=uc(b)}}return{r:b,bf:c}};A[_P].Tm=function(a){var b=this.Xb(),
c=[];if(!a){for(var d=b;d&&!yd(d);d=d[n]){if(d[S]==1){c.push(d)}}}return this.Um(b,c,a)};A[_P].Um=function(a,b,c){var d=wg(a);if(c&&!d){return[a]}var e=false;while(d){if(this.hi(d,false)){e=true;if(c||d[S]==1){b.push(d);if(!c){this.Um(d,b)}}}else if(e){break}d=Bd(d)}return b};A[_P].kh=function(a){if(Xa){this.Zo(a,false)}else if(Ga){this.ap(a,false)}};A[_P].$o=function(a){if(Xa){this.Zo(a,true)}else if(Ga){this.ap(a,true)}};A[_P].Zo=function(a,b){this.ta();this.j=a[$][E].createTextRange();this.j.moveToElementText(a);
this.j.collapse(b);this.j.select()};A[_P].ap=function(a,b){this.ta();var c=Hb(a),d=c.createTextNode("");a[n].insertBefore(d,b?a:a[Ua]);this.sh(Zb(d,0))};A[_P].Yb=function(){if(Xa){return this.j}else if(Ga&&this.j){if(this.j.getRangeAt){if(this.j.rangeCount){return this.j.getRangeAt(0)}else{return null}}else{var a=this.m();if(!a||!this.j[Se]){return null}else{var b=a.createRange();b.setStart(this.j[Se],this.j.anchorOffset);b.setEnd(this.j[nd],this.j.focusOffset);return b}}}else{return null}};A[_P].surroundContents=
function(a){this.ta();var b=this.Yb();if(b){var c=b[Uf];if(c){ga(a);var d=a.id,e=d||(a.id=bd());Q(a,c);b.pasteHTML(a[be]);a=this.m().getElementById(e);if(a&&!d){a.removeAttribute("id")}}else if(Ga){b.surroundContents(a)}else{a=null}}return a};A[_P].Am=function(){var a=null,b=this.Yb();if(Xa){a=b.duplicate()}else if(Ga){a=b.cloneRange()}return a};A[_P].insertNode=function(a,b){this.ta();var c=this.Am();if(c){c.collapse(b);if(Xa){var d=Hb(this.m()[E]),e=a.id;a.id=bd();c.pasteHTML(a[be]);a=d.Tq(a.id);
a.id=e}else if(Ga){c.insertNode(a);c.detach()}}return a};var Nb=function(a,b){a=a||new A;this.qa=a.Gg();this.F=a.qu();this.Z=a.Km();this.T=a.It();if(this.qa[S]==1&&this.qa[xa]!="BR"){this.qa=this.qa[ka][this.F];this.F=0}if(this.Z[S]==1){var c=this.Z;this.Z=this.Z[ka][this.T];if(this.Z){this.T=0}else{this.Z=c}}ma.call(this,b?this.Z:this.qa)};Nb.d(ma);Nb[_P].qa=null;Nb[_P].Z=null;Nb[_P].F=0;Nb[_P].T=0;Nb[_P].Gg=function(){return this.qa};Nb[_P].Km=function(){return this.Z};Nb[_P].next=function(){if(this.tv()){this.fh();return this}return ma[_P].next.apply(this,
arguments)};Nb[_P].vn=function(){return this.r!=this.Z||this.Pn()};Nb[_P].mh=function(){if(!this.wn()){this.fh();return this}return ma[_P].mh.apply(this,arguments)};Nb[_P].wn=function(){return this.r!=this.qa||this.Mn()};Nb[_P].I=function(){var a=new Nb;a.setPosition(this.r,this[B],this.Ia);a.qa=this.qa;a.Z=this.Z;a.F=this.F;a.T=this.T;return a};;;;var Rp=new Yl(/./,null,{fontSize:/^(\d+)/}),Qp=new Xl(/./,null,{fontSize:/^(\d+)/}),Up=new Bc,Vp=new Bc,Sp=new Bc,Rl=function(a,b){if(a.La()){return}var c=b?null:a.p();if(c){c.Oj()}var d=a.M().M();Up.match(d);var e=false,f=[],g,i=new Bc;i.Yk(Rp,function(j){if(!e){f.unshift(a.ku());g=Hb(d);e=true}if(j&&j[k]&&(j[k][$d]&&fl(j[k][$d],"em")||Gb(j,"_fs")||Gb(j,"_fontScaler"))||Gb(j,Ki)){f.push(f.peek()*zb(j[k][$d]));return false}else{var l=j[k][$d];Fp(j);var m=f.peek(),q=Ll(l,m),w=q/m;if(w<=0.999||w>=1.001){var D=
j;if(j[na].match(/^(font|span|li|ul)$/i)){var da=g.l("SPAN");while(j[W]){da.appendChild(j[W])}j.appendChild(da);D=da}uh(D[k],w+"em")}}return false});i.Yk(Qp,function(){f.pop();return false});i.match(d);Vp.match(d);if(c){c.Nj()}},Tp=function(a){if(a.La()){return}Rl(a,true);Sp.match(a.M().M())};var Sl=function(a){return wa(a,"height")},oh=function(a,b){Oa(a[k],(b>0?b:0)+"px")},mh=function(a){if(a==ta(a)[E]){if(r){a=pl(a);return a[Ab]}var b=ta(a),c=zf(b);return c[Vf]}return a[Ab]},$p=function(a,b){var c=wa(a,"paddingTop")+wa(a,"paddingBottom");oh(a,b-c)},aq=function(a,b){var c=wa(a,"paddingTop")+wa(a,"paddingBottom"),d=wa(a,"borderTopWidth")+wa(a,"borderBottomWidth");oh(a,b-c-d)},Tl=function(a){var b=wa(a,"marginTop")+wa(a,"marginBottom");return a[Hc]+b},dq=function(a,b){var c=wa(a,"paddingTop")+
wa(a,"paddingBottom"),d=wa(a,"borderTopWidth")+wa(a,"borderBottomWidth"),e=wa(a,"marginTop")+wa(a,"marginBottom");oh(a,b-c-d-e)},Qi=function(a,b){Fa(a[k],(b>0?b:0)+"px")},Oi=function(a){if(a==ta(a)[E]){a=a[n]}return a[Tb]},Vl=function(a,b){var c=wa(a,"paddingLeft")+wa(a,"paddingRight");Qi(a,b-c)},bq=function(a,b){var c=wa(a,"paddingLeft")+wa(a,"paddingRight"),d=wa(a,"borderLeftWidth")+wa(a,"borderRightWidth");Qi(a,b-c-d)},Pi=function(a){var b=wa(a,"marginLeft")+wa(a,"marginRight");return a[ae]+b},
cq=function(a,b){if(b[J]){Qi(a,b[J])}if(b[z]){oh(a,b[z])}},Je=function(a){return new nb(Oi(a),mh(a))},Ul=function(a,b){if(b[J]){Vl(a,b[J])}if(b[z]){$p(a,b[z])}},Ke=function(a,b){if(b[J]){bq(a,b[J])}if(b[z]){aq(a,b[z])}};var wa=function(a,b){var c=zb(nh(a,b));return kd(c)?0:c},nh=function(a,b){var c,d=ta(a);if(d&&d[Fc]&&d[Fc].getComputedStyle){var e=d[Fc].getComputedStyle(a,"");if(e){c=e[b]}}return ja(c)?c:(a[md]?a[md][b]:a[k][b])},Mb=function(a){this.gi=a;this.Kb=[];this.af=0;this.Te={};var b=this.Sb();
if(b){this.Dd(b)}};Mb[_P].tr=function(a){this.Kb.push(a)};Mb[_P].Pa=function(){var a=this.Sb();if(a){this.yn();this.yf(a);for(var b=0;b<this.Kb[h];b++){this.Kb[b].Pa()}}};Mb[_P].Sb=function(){var a=this.gi?o(this.gi):Pg()[E];return a&&a[n]&&a[S]==1&&a[W]&&a[k].display!="none"?a:null};Mb[_P].Dd=function(a){var b=xf(a);while(b&&b[n]&&b[n]==a){if(Gb(b,"autolayout")){var c=b.id;if(!c){c=(this.gi||"page")+".layout"+this.af;b.id=c}this.Te[c]={display:b[k].display};this.af++}b=Qg(b)}};Mb[_P].yn=function(){for(var a in this.Te){var b=
o(a);if(b){ra(b[k],"none")}}};Mb[_P].yf=function(a){};var Sd=function(a){Mb.call(this,a)};Sd.d(Mb);Sd[_P].Dd=function(a){var b=a[rb]?a[rb][h]:0;for(var c=0;c<b;c++){var d=a[rb][c],e=d[gb]?d[gb][h]:0;for(var f=0;f<e;f++){var g=d[gb][f];Sd.h.Dd.call(this,g)}}};Sd[_P].Pa=function(){var a=this.Sb();if(a){this.yn();this.yf(a);for(var b=0;b<this.Kb[h];b++){this.Kb[b].Pa()}if(r){for(var b=0;b<this.Kb[h];b++){this.Kb[b].Pa()}}}};var Lf=function(a){Mb.call(this,a)};Lf.d(Mb);Lf[_P].yf=function(a){var b=0,c=
xf(a);while(c&&c[n]&&c[n]==a){var d=nh(c,"display")=="none"||nh(c,"visibility")=="hidden",e=nh(c,"position")=="absolute";if(!d&&!e&c[xa]!="SCRIPT"){b+=c[Hc]}c=Qg(c)}var f;if((pa||hh)&&a[xa]=="TD"){f=mh(a[n])}else{f=mh(a)}if(this.af>0){var g=this.af==1?f-b:y.round((f-b)/this.af);for(var i in this.Te){var j=o(i);dq(j,g);ra(j[k],this.Te[i].display)}}};var Ie=function(a){Mb.call(this,a);var b=this.Sb();if(b){de(b[k],"relative")}};Ie.d(Mb);Ie[_P].Pa=function(){var a=this.Sb();if(a){this.yf(a);for(var b=
0;b<this.Kb[h];b++){this.Kb[b].Pa()}}};Ie[_P].yf=function(a){var b=Oi(a),c=mh(a);for(var d in this.Te){var e=o(d),f=Pi(e),g=Tl(e);de(e[k],"absolute");Cb(e[k],y.max(y.round((b-f)/2),0)+"px");e[k].top=y.max(y.round((c-g)/2),0)+"px"}};ub("TLayout",Sd);ub("VLayout",Lf);ub("CLayout",Ie);Sg(Mb[_P],"addChildLayout",Mb[_P].tr);Sg(Sd[_P],"update",Sd[_P].Pa);Sg(Lf[_P],"update",Lf[_P].Pa);Sg(Ie[_P],"update",Ie[_P].Pa);;;;;var tc=function(a,b){if(a instanceof Ia){a.preventDefault();a.stopPropagation();bf(a.Mc(),b)}else{if(a.preventDefault){a.preventDefault()}if(a.stopPropagation){a.stopPropagation()}a.cancelBubble=true;bf(a,b)}return b},zd=function(a){if(a[aa]){var b=a[aa];if(Fb(b,"iframe")&&b[aa]){if(b[hb]!="igm"){b=b[aa]}}return b}else if(a[rd]){return a[rd]}else if(a[Ec]){return a[Ec]}},Hj=function(a,b){qc(b,a);a.dispatchEvent(b)},$m=function(a,b){if(a.dispatchEvent){a.dispatchEvent(b)}else{a.fireEvent("on"+b[B],
b)}},Xm=function(a,b,c,d){b=b.Mc()||b;var e;if(Zi){e=Zm(a,b,c,d)}else if(vh){e=Ym(a,b,c,d)}return e},Zm=function(a,b,c,d){var e=a.createEvent("MouseEvents");e.initMouseEvent(b[B],b.bubbles,b.cancelable,b.view,b.detail,b[Xb],b[Yb],ja(c)?b[Xb]-c:b[cb],ja(d)?b[Yb]-d:b[db],b[gc],b[Re],b[pd],b[Gc],b.button,b.relatedTarget);return e},Ym=function(a,b,c,d){var e=a.createEventObject(b);if(ja(c)){dg(e,b[Xb]-c)}if(ja(d)){eg(e,b[Yb]-d)}return e};var pn=function(a){if(x){ra(a[k],"none");ra(a[k],"block")}},on=function(a){if(x){var b=a[k].borderTopWidth,c=ge(a,"borderTopWidth")+1;a[k].borderTopWidth=c+"px";a[k].borderTopWidth=b}},tg=function(a){var b=Ya(a[$],"div",{},{overflow:"auto",height:"100%"}),c=Ya(a[$],"div",{},{paddingRight:"5px",height:"100%"},b);c.appendChild(a);return b};;;;;var bc=function(a){R.call(this);this.Cf=a||window;this.ah=v(this.Cf,Kd,this.Yu,false,this);this.Aa=we(this.Cf)};bc.d(R);bc[_P].ah=null;bc[_P].Cf=null;bc[_P].Aa=null;bc[_P].cf=null;bc[_P].Ge=function(){return this.cf};bc[_P].Qp=function(a){this.cf=a};bc[_P].b=function(){if(!this.$()){bc.h.b.call(this);if(this.ah){Sa(this.ah);this.ah=null}this.Cf=null;this.Aa=null}};bc[_P].Yu=function(a){var b=we(this.Cf);if(!Vk(b,this.Aa)){this.Aa=b;this.dispatchEvent(Kd)}};;;;;;;;;;;;;;;function hc(a,b,c,d,e){this.Ue=(this.bh=(this.Ve=(this.dh=null)));this.oj=(this.pj=null);this.Ti=null;this.Ui=null;this.Bf=c;this.t=d;this.S=b;this.Fy=a;this.it=e;this.i=new Ra(this);if(kd(ha(this.S[k][eb],10))){Cb(this.S[k],"0px")}if(kd(ha(this.S[k].top,10))){this.S[k].top="0px"}this.i.g(a,yc,this.Ju)}hc[_P].b=function(){if(this.i){this.i.b();this.i=null}};hc[_P].Ju=function(a){a=rj(a);if(this.it&&a[aa]!=this.Fy&&fe(a[aa],"cursor")!="move"){return false}var b=ha(this.S[k][eb],10),c=ha(this.S[k].top,
10);this.ew(b,c,a[cb],a[db]);this.oj=a[cb];this.pj=a[db];if(!Qb(this.Ue)){this.ko=a[cb]-b+this.Ue}if(!Qb(this.bh)){this.Rv=this.ko+this.bh-this.Ue}if(!Qb(this.Ve)){this.lo=a[db]-c+this.Ve}if(!Qb(this.dh)){this.Sv=this.lo+this.dh-this.Ve}this.Ti=C(this.Hu,this);this.Ui=C(this.Vi,this);this.kn=C(this.Vi,this);this.mn=C(this.Iu,this);v(this.t,Rg,this.Ti);v(this.t,Jd,this.Ui);v(this.t,Id,this.mn);window.setTimeout(C(function(){v(this.t,yc,this.kn)},this),10);var d=of()[ea];if(this.t==d){this.Lg=(this.Kg=
null)}else{this.Lg=C(this.nn,this);this.Kg=C(this.nn,this);v(d,Jd,this.Lg);v(d,yc,this.Kg)}if(this.S.setCapture){this.S.setCapture(true)}return false};hc[_P].Hu=function(a){a=rj(a);var b=a[db],c=a[cb],d=ha(this.S[k].top,10),e=ha(this.S[k][eb],10),f,g;if(!Qb(this.Ue))c=y.max(c,this.ko);if(!Qb(this.bh))c=y.min(c,this.Rv);if(!Qb(this.Ve))b=y.max(b,this.lo);if(!Qb(this.dh))b=y.min(b,this.Sv);f=e+(c-this.oj);g=d+(b-this.pj);Cb(this.S[k],f+"px");this.S[k].top=g+"px";this.oj=c;this.pj=b;this.dw(f,g,a[cb],
a[db]);return false};hc[_P].Vi=function(a){tc(a);this.ln({x:a[cb],y:a[db]})};hc[_P].Iu=function(a){var b=we(this.Bf);if(a[cb]>=b[J]||a[db]>=b[z]||a[cb]<0||a[db]<0){this.Vi(a)}};hc[_P].nn=function(a){tc(a);this.ln()};hc[_P].ln=function(a){lb(this.t,Rg,this.Ti);lb(this.t,Jd,this.Ui);lb(this.t,yc,this.kn);lb(this.t,Id,this.mn);var b=of()[ea];if(this.Lg){lb(b,Jd,this.Lg)}if(this.Kg){lb(b,yc,this.Kg)}if(this.S.releaseCapture){this.S.releaseCapture()}if(a){this.Eo(ha(this.S[k][eb],10),ha(this.S[k].top,
10),a.x,a.y)}else{this.Eo(ha(this.S[k][eb],10),ha(this.S[k].top,10))}};var rj=function(a){if(!ja(a.layerX)){a.layerX=a.offsetX;a.layerY=a.offsetY}return a};hc[_P].ew=function(a,b,c,d){};hc[_P].dw=function(a,b,c,d){};hc[_P].Eo=function(a,b,c,d){};function va(a){this.Kw=a};va[_P].U=function(){return this.Kw};va[_P].m=function(){if(!this.k){this.k=this.U()[ea]}return this.k};va[_P].mu=function(){return yf(this.U())};va[_P].Hi=function(){if(!this.jl){this.jl=this.m()[E]}return this.jl};va[_P].Rt=function(){if(!this.zn){this.zn=this.Hi()[n]}return this.zn};va[_P].qc=function(a){return this.m().getElementById(a)};va[_P].Bd=function(){return this.Bg()[Tb]};va[_P].wd=function(){return this.Bg()[Ab]};va[_P].ou=function(){return this.Bg().scrollWidth};
va[_P].nu=function(){return this.Bg()[We]};va[_P].Bg=function(){if(!this.vo){this.vo=Lc(this.m())?this.m()[Vc]:this.Hi()}return this.vo};va[_P].Vo=function(a,b){var c=this.wd()-50,d=this.Bd()-50,e="resizable=yes,scrollbars=yes,toolbar=yes,location=yes,directories=yes,status=no,menubar=yes,width="+d+",height="+c,f=this.U().open(a,b,e,true);f.focus();return f};va[_P].Ox=function(a){try{this.U().location=a}catch(b){}};va[_P].rg=function(){this.U().focus()};va[_P].p=function(){return new A(this.U())};
var Fg=function(){of().status="";return true};va[_P].refresh=function(){this.U()[qb].reload(true)};function Eb(a){this.Dn=a;this.Bj=[];try{var b=a[Xd]}catch(c){}finally{if(b){this.Zp()}else{this.Ev()}}}Eb.d(va);Eb[_P].qi=function(){if(this.Md){Sa(this.Md);this.Md=null}};Eb[_P].Zp=function(){va.call(this,this.zb()[Xd]);this.zv=true};Eb[_P].Ev=function(a){if(a){this.Bj.push(a)}if(!this.Md){var b=wh?"readystatechange":"load";this.Md=v(this.Dn,b,this.hm,true,this)}try{var c=wh?this.zb()[ce]=="complete":this.zb().contentDocument[E]}catch(d){}if(c){this.hm()}};Eb[_P].hm=function(){if(!wh||this.zb()[ce]==
"complete"){if(!this.zv){this.Zp()}while(this.Bj[h]){var a=this.Bj.pop();a()}Sa(this.Md);this.Md=null}};var Lj=function(a){return a.frameElement};Eb[_P].zb=function(){return this.Dn};Eb[_P].Cg=function(){return this.zb()[$]};Eb[_P].qp=function(a,b){var c=ha(a,10),d=ha(b,10);Fa(this.zb(),c);Oa(this.zb(),d)};Eb[_P].Pw=function(a,b){a.g(this.Cg(),"mouseover",C(this.Rw,this),true);var c=C(this.Ow,this),d=this.m(),e=!(!b);for(var f=0;f<Jj[h];f++){var g=Jj[f];a.g(d,g,c,e)}};Eb[_P].Rw=function(a){this.ox=
a[Xb]-a[cb];this.qx=a[Yb]-a[db]};var Kj=["target","originalTarget"],Jj=["mousedown","mouseup","mousemove","mouseover","mouseout","click"];Eb[_P].Ow=function(a){var b=this.zb();if(!b||!b[n]){return}var c=Xm(this.m(),a,this.ox,this.qx);for(var d=0;d<Kj[h];d++){var e=Kj[d];b[e]=a[e]}$m(b,c)};var Uj=function(a,b){var c=ta(a);if(c.getBoxObjectFor){var d=b&&of()[ea];return Cn(a,d)}var e=b,f={x:0,y:0},g=a;while(a){f.x+=a[rh];f.y+=a[sh];if(e&&!a[Wi]){a=Lj(e);if(a){var i=yf(e);f.x-=i.x;f.y-=i.y}if(e==of()){e=null}else{e=e.parent}}else{a=a[Wi]}}var a=g;while(a&&!Fb(a,"body")){f.x-=a[th];f.y-=a[$f];a=a[n]}return f},Cn=function(a,b){var c={x:0,y:0},d=ta(a),e=d.getBoxObjectFor(a),f=b||d,g=f.getBoxObjectFor(pl(f));c.x=e[Xb]-g[Xb];c.y=e[Yb]-g[Yb];return c},kf=function(a){var b=a[Hc];if(r&&Lc(a)){b+=
ng(a)}return b},Tj=function(a){return a[ae]};;function M(a,b,c,d,e,f,g){R.call(this);this.kc=new va(a);this.Bi=b;var i=this.kc.m();this.e=Hb(i);this.il=e.Da.base;this.aa=e;this.sk=c;this.yy=d;var j=this.e.l("div",{className:"tr_bubble"});Nc(i[E],j);this.Fa=j;this.Fh=f;this.cq=g.Nd(c);this.ef=new la(j);this.i=new Ra(this);Gf(j,0.9);this.i.g(j,ye,Gf.Nd(j,1));this.fb=new Oc(c[$]);this.i.g(this.fb,"key",this.Mg);this.i.g(this.ef,"beforeshow",this.Pr);this.i.g(this.ef,"show",this.ik);this.i.g(this.ef,"hide",this.jd);this.zh=c[na];if(this.zh=="IMG"){this.Ds()}else if(this.zh==
"A"){this.Bs()}this.vr();this.Qd();qg(j,this.i)}M.d(R);var cj="beforelocationchange";M[_P].Mg=function(a){this.jd();return true};M[_P].by=function(a){this.oq=a};M[_P].Lx=function(a){this.Ln=a};M[_P].N=function(){return this.sk};M[_P].tu=function(){return this.yy};M[_P].Bx=function(a){if(this.Fa){F(this.Fa,"zIndex",a)}};var bj="tr_edit-page-span",dj="tr_test-link-span",mg="tr_original_link",ej=function(a){return a.split("_")[1]},aj=vd+vd+"-"+vd+vd,lg=["tr_small_link","tr_medium_link","tr_large_link",
mg];M[_P].rc=function(){var a=this.N();if(this.zh=="IMG"){return a.src}else if(this.zh=="A"){return this.aa.fn(a)}};var xh=r?4:2;M[_P].Gw=function(){this.Fb(true);this.dispatchEvent("opened")};M[_P].jd=function(a){if(this.Fa){ga(this.Fa);this.Fa=null;if(this.i){this.i.b();this.i=null}if(this.fb){this.fb.b();this.fb=null}this.dispatchEvent("closed");this.dispatchEvent("dispose")}};M[_P].Pr=function(){var a=Xh(this.rc(),this.il);if(a){this.cq()}return!a};M[_P].ik=function(){this.gh();this.Mj();this.Qd()};
M[_P].Fb=function(a){this.ef.Fb(a)};M[_P].Fd=function(){return this.ef.Fd()};M[_P].Qd=function(){var a=this.N(),b=this.tu(),c=0,d=a[Hc],e=Uj(a,b),f=e.y,g=d+f+xh+c,i=this.kc.mu(),j=this.kc.wd()+i.y,l=ec(this.Fa),m=l[z];if(m+g>j){var q=Uj(this.Bi[ea][E],this.Bi),w=yf(this.Bi).y;g=y.max(f-xh-m,q.y+w+xh)}var D=l[J],da=e.x,bb=this.kc.Bd()+i.x;if(D+da>bb){da=bb-D}ql(this.Fa,da,g)};M[_P].Mj=function(){var a=4,b=0,c=this.Fa[ka];for(var d=0,e;e=c[d];d++){var f=ec(e);a+=f[J];b+=f[z]}Qd(this.Fa,a,b)};M[_P].Ds=
function(){var a=this.Ll(),b;this.gh=this.Bk;{b=this.e.l("div",{id:"tr_sizes-div"});Nc(a,b);for(var c=0;c<lg[h];c++){this.Ml(lg[c],false,b);Oh(b,aj)}}this.Jc("tr_delete-image","Remove",this.Rs,b);this.Mj()};M[_P].hg=function(a){this.dispatchEvent({type:"change",Wr:this.N(),Zv:a})};M[_P].Bk=function(){var a=this.e.n("tr_sizes-div");if(a){var b=this.N(),c=dn(b,this.aa.Sc(b.src));for(var d=0;d<lg[h];d++){this.Nx(lg[d],c)}}};M[_P].Nx=function(a,b){var c=ej(a)==b||(!b||b=="full")&&a==mg;this.Ml(a,c)};
M[_P].Ml=function(a,b,c){var d;switch(a){case "tr_small_link":d="Small";break;case "tr_medium_link":d="Medium";break;case "tr_large_link":d="Large";break;case mg:d="Original size"}if(b){return this.Is(a,d)}else{var e=a==mg?this.dx:this.hx.D(this,ej(a));return this.Jc(a,d,e,c)}};M[_P].Jc=function(a,b,c,d){var e=this.Nl(a,b,false,d);if(c){this.i.g(e,kb,c)}return e};M[_P].Nl=function(a,b,c,d){var e=this.e.l(c?"a":"span",{className:"tr_link"},b);this.Yp(e,a,d);qg(e,this.i);return e};M[_P].Is=function(a,
b){var c=this.e.l("b",{innerHTML:b});this.Yp(c,a);qg(c,this.i)};M[_P].Yp=function(a,b,c){if(c){c.appendChild(a)}else{var d=this.e.n(b);if(d){wn(a,d);ga(d)}}a.id=b};M[_P].Rs=function(){this.dispatchEvent("imageremoved");this.hg();this.jd(true);hn(this.N())};M[_P].dx=function(){var a=this.N(),b=C(this.ix,this),c=fn.Nd(a,this.aa,b);en(a,this.aa,{No:b,hw:c})};M[_P].ix=function(){this.Bk();this.hg()};M[_P].Bs=function(){this.gh=this.Eq;var a=this.Yt();if(Eg(a.sj)||a.color=="red"){var b=this.e.l("span",
{id:"tr_link-text",style:"color:"+a.color},this.e.createTextNode(a.sj))}else{var c=this.e.l("span",{id:dj},"Go to link: "),b=this.e.l("span",{id:"tr_link-text",style:"color:"+a.color},""),d=this.Nl("tr_test-link",this.e.createTextNode(ap(a.sj,48))[Ue],true,b);qc(d,"_blank")}var e=this.li("tr_change-link-span");this.Jc("tr_change-link","Change",this.cq,e);var f=this.li(bj);this.Jc("tr_edit-page-link","edit page",this.ct,f);var g=this.li("tr_delete-link-span");this.Jc("tr_delete-link","Remove",this.Ss,
g);this.Eq();var i=this.ws(b,e,f,g,c?c:"");Nc(this.Ll(),i);this.Mj()};M[_P].ut=function(){return{id:"tr_link-div",style:"padding-top:2px;"}};M[_P].xs=function(){bi(arguments,0,0,"div",this.ut());return this.e.l.apply(this.e,arguments)};M[_P].ws=function(a,b,c,d,e){return this.xs(e?e:"",a,b,c,d)};M[_P].li=function(a){return this.e.l("span",{id:a,"class":"tr_option-link"},this.e.createTextNode(aj))};M[_P].Yt=function(){var a,b=this.rc();if(yh(b)){b=b.substring(7)}else if(fk(b,this.il)){b="invalid url";
a=true}else if(this.aa.Sc(b)){for(var c=0;c<this.Fh[h];c++){var d=this.Fh[c].qz({Ty:b});if(d){break}}if(d){b=d.title}else{b=nf(b)+" not found";a=true}}return{sj:b,color:a?"red":"black"}};M[_P].Eq=function(){var a=this.e.n("tr_link-div");if(a){var b=this.e.n("tr_test-link");if(b){var c=this.e.n(dj),d=this.rc();U(c,!yh(d));Ze(b,this.uu())}var e=this.e.n(bj);if(e){U(e,this.pv())}}};M[_P].uu=function(){var a=this.rc();return this.oq?this.oq(a):a};M[_P].Ss=function(){this.dispatchEvent("linkremoved");
this.hg();this.jd();var a=this.N(),b=this.kc.p();yg(a);b.kh(a);ga(a)};M[_P].pv=function(){return this.Ln&&this.Ln(this.rc())};M[_P].Ll=function(){var a=new Bg(this.kc.m()),b="tr_bubble-content-"+bd(),c={className:"tr_body",id:b},d=a.Hs(c,"tr_bubble");Nc(this.Fa,d);var e=this.kc.qc(b);Q(e,"");this.ll=e;return e};M[_P].vr=function(){var a=this.e.l("div",{className:"tr_bubble_closebox",innerHTML:"&nbsp;"});this.i.g(a,kb,this.jd);F(this.ll,"paddingRight",this.wz?"10px":"19px");this.ll.appendChild(a)};
M[_P].hx=function(a){var b=this.N();jn(b,a);this.Bk();this.hg()};M[_P].ct=function(){var a=new hk(this.aa.Da.edit),b=a.ih.substring(0,a.ih.lastIndexOf("/")+1)+nf(this.rc())+(a.ep||"");if(this.dispatchEvent({type:cj,Ty:b})){this.kc.Ox(b)}};var yh=function(a){return wi(a,"mailto:")};var Gm=function(a,b,c){var d=[];for(var e=0,f=b[h];e<f;e++){var g=Hm(a,b[e],c);d.push(g)}return d},Hm=function(a,b,c){var d=a.createElement(c);Sj(d,b);if(d[ib]=="")Q(d,"&nbsp;");b[n].replaceChild(d,b);zn(d,c);return d},qg=function(a,b,c){var d=a.getElementsByTagName("input");if(c){for(var e=0;e<d[h];e++){var f=d[e];if((f[B]=="text"||f[B]=="file")&&Em(f)){f.setAttribute("_wasUnselectable",true)}}}if(kg){b.g(a,"mousedown",Cm,true);var g={};g[ie()]="none";Th(a,g)}else if(jg){Rh(a,"unselectable","on")}for(var e=
0;e<d[h];e++){var f=d[e];if(f[B]=="text"||f[B]=="file"){if(!f.getAttribute("_wasUnselectable")){Fm(f)}f.removeAttribute("_wasUnselectable")}}},Cm=function(a){var b=zd(a)[na];if(b!="TEXTAREA"&&b!="INPUT"){a.preventDefault()}},Fm=function(a){if(kg){var b={};b[ie()]="";Th(a,b);var c=qj(a);while(c){Dm(a,c);a=c;c=qj(a)}}else if(jg){Rh(a,"unselectable","")}},ie=function(){if(x){return"MozUserSelect"}else if(pa){return"KhtmlUserSelect"}},Em=function(a){if(kg){return a[k]&&a[k][ie()].toLowerCase()=="none"}else if(jg){return a[Tf]&&
a.getAttribute("unselectable")=="on"}else{return false}},Im=function(a,b){if(kg){a[k][ie()]=b?"none":""}else if(jg){var c=b?"on":"";a.setAttribute("unselectable",c)}},qj=function(a){var b=function(c){var d=ie();return c&&c[k]&&c[k][d].toLowerCase()=="none"};return ne(a,b)},Dm=function(a,b){while(a&&a!=b){var c=a;a=a[n];if(!a[k]){continue}var d=ie();a[k][d]="";var e=a[W];while(e){if(e!=c&&e[k]){e[k][d]="none"}e=e[Ua]}}};function hk(a){var b=/^([a-zA-Z]+):(.*)$/;if(a.match(b)){this.protocol=RegExp.$1.toLowerCase();a=RegExp.$2;if(this.protocol=="mailto"||this.protocol=="javascript"||a.indexOf("//")!=0){this.Cz=true}else{a=a.substring(2)}var c=/^([^\/]+)/;if(a.match(c)){this.domain=RegExp.$1;a=a.substring(this.domain[h])}}if(a.match(/^(\/|[^?#])/)){var d=/^(.[^?#]*)/;a.match(d);this.ih=RegExp.$1;a=a.substring(this.ih[h])}if(a.charAt(0)=="?"){this.ep=a}else if(a.charAt(0)=="#"){this.hash=a}};hk[_P].Hg=function(){var a=
[],b=function(c){if(c)a.push(c);return c};if(b(this.protocol)){b("://")}b(this.domain);b(this.ih);b(this[Ve]);b(this.ep);return a.join("")};function vc(a){this.gy(a)}vc[_P].gy=function(a){this.Da=a;var b=this.Da.base;this.Da.site=ck(b)};var On=function(){alert("The URL is not valid and cannot be loaded.")},ck=function(a){return a.substring(0,a.indexOf("/",9))};vc[_P].Hg=function(a,b){if(this.Sc(a)){var c=this.Da[b]||this.Da.base;a=c+nf(a)}return a};vc[_P].fn=function(a){var b=a.getAttribute("href"),c=this.Da.base;if(c&&c!=this.Da.winbase&&b.indexOf(c)==0){b=this.Da.winbase+b.substring(c[h])}return b};vc[_P].ju=function(a){if(this.Sc(a)){if(ek(a)){return nf(a)}else{var b=
"about:blank";if(a.indexOf(b)==0){a=a.substring(b[h])}}}return a};vc[_P].Ut=function(a,b){var c=this.Xm(a),d=nf(c),e=d.substring(0,d.lastIndexOf(".")),f="/"+c+"/"+e+"-"+b+".jpg";return this.Hg(f,"live")};vc[_P].Xm=function(a){if(this.Sc(a)&&gk(a)){a=this.Hg(a,"live");a=a.substring(0,a.lastIndexOf("/"))}return a};var nf=function(a){var b=Pn(a),c=a.lastIndexOf("?");if(c==-1){return Tc(a.substring(b))}return Tc(a.substring(b,c))},Pn=function(a){var b=a.lastIndexOf("/");if(gk(a)){b=a.lastIndexOf("/",
b-1)}var c="about:blank";if(a.indexOf(c,b+1)==0){b+=c[h]}return b+1};vc[_P].ho=function(a){var b="",c=Fb(a,"a")?"href":"src";if(mm&&c=="href"){var d=a[be],e=d.indexOf('href="');if(e>=0){e+=6;var f=d.indexOf('"',e);if(f>=0){b=d.substring(e,f)}}}if(!b){b=a[c]}if(this.Sc(b)){a[c]=this.ju(b)}};var gk=function(a){return!(!dk(a))},dk=function(a){var b=/.*\/([^\/]+)\.\w{1,4}\/([^\/]+)-(small|medium|large|full|custom).*(?:\.\w{1,4})?$/;if(b.test(a)){var c=RegExp.$1,d=RegExp.$2,e=RegExp.$3;if(c==d){return e}}return null};
vc[_P].Sc=function(a){if(a.indexOf("mailto:")==0)return false;var b=false;for(var c in this.Da){if(this.Da[c]!=""){b|=a.search(this.Da[c])==0}}return b||!ek(a)||a.search("/")==0};vc[_P].lx=function(a,b){var c=a.getElementsByTagName(b);for(var d=0;d<c[h];d++){this.ho(c[d])}};var ek=function(a){return a.search(/[^:\/\s]+:\/\//)==0},fk=function(a,b){return Xh(a,b)||a=="http://"||a=="http:///"},Xh=function(a,b){var c=ck(b);return a==""||a=="/"||a==c+"/"||a==c};;;function T(a,b,c,d){R.call(this);this.t=a[ea];this.Bf=a;this.Fc=new va(a);this.pa=d;this.oo=b;this.content=this.t.createElement("div");this[Y].id=bd();fa(this[Y],"tr_dialog");c[n].appendChild(this[Y]);this.Xa=new Ra(this);this.Ib=new bc(this.Bf);this.El=true;this.os=true;this.Yf=c.Xf;this.Vf=c.Uf;this.Zw=c.kp;if(c.wk){this.Ar(c.wk)}this.or(c);if(c.Ld){this.Ld=this.yr(c.Ld)}if(c.Wf){this.Wf=this.rr(c.Wf)}if(c.Jd){this.Kd=c.Jd}}T.d(R);T[_P].cf=null;T[_P].Qp=function(a){this.cf=a};T[_P].Ge=function(){return this.cf};
var Ah="tr_backgroundMask",Bh="tr_dialog-section",$c=[];T[_P].Uk=function(a){if(!this.ol){this.ol=this.pr("tr_button-region-rhs")}var b=this.t.createElement("input");Wa(b,"button");Ic(b,a);this.ol.appendChild(b);return b};T[_P].pr=function(a){if(!this.ie){this.qr()}var b=Ya(this.t,"div",{className:a});xn(b,this.ks);return b};T[_P].qr=function(){if(!this.ie){this.ie=this.t.createElement("div");this.Vh.appendChild(this.ie);this.ks=Ya(this.t,"div",{},{clear:"both"},this.ie)}};T[_P].fc=function(){this.dispatchEvent(Ch);
if(this.oo){if(this.pa){this.pa.Oj();this.pa.empty()}Am(this);this.aq()}ra(this[Y][k],"");if(!this.Nb){this.ly()}};T[_P].$b=function(){this.Jy();if(this.oo){Bm(this);this.Yo()}ra(this[Y][k],"none")};T[_P].sl=function(){if(this.Eh&&this.Eh.uz()){return confirm("Pending uploads will be canceled. Do you want to continue?")}else{return true}};gg(T[_P],function(){this.$b();this.ns();if(this.Zw){this[Y][n].removeChild(this[Y])}if(this.pa){this.pa.Nj()}});T[_P].ns=function(){if(this.Yf){this.Yf()}if(this.Xa){this.Xa.b();
this.Xa=null}if(this.Ib){this.Ib.b();this.Ib=null}if(this.Eh){this.Eh.b();this.Eh=null}if(this.Nb){this.Nb.b();this.Nb=null}this.ov=true;this.dispatchEvent("close")};var Ch="beforeopen";T[_P].isOpen=function(){return!this.ov};T[_P].setPosition=function(a,b){de(this[Y][k],"absolute");this[Y][k].top=b+"px";Cb(this[Y][k],a+"px")};T[_P].vl=function(){de(this[Y][k],"absolute");var a=this.Fc.Bd(),b=this.Fc.wd(),c=yf(this.Bf),d=(a-Tj(this[Y]))/2;d+=c.x;var e=(b-kf(this[Y]))/2;e+=c.y;this.setPosition(y.floor(d),
y.floor(e))};T[_P].sp=function(){var a=this.vg();Fa(a[k],y.max(this.Fc.Bd(),this.Fc.ou())+"px");Oa(a[k],y.max(this.Fc.wd(),this.Fc.nu())+"px")};T[_P].Ar=function(a){this.gc=this.t.createElement("div");this.gc.id=bd();fa(this.gc,"tr_dialog-title");F(this.gc,"cursor","move");var b=this.t.createElement("table");Fa(b,"100%");fa(b,"tr_dialog-title-layout-table");b.id=bd();var c=this.t.createElement("tBody");b.appendChild(c);var d=c.insertRow(0);this.sq=d.insertCell(0);Q(this.sq,a);Fa(this.sq,"100%");this.gc.appendChild(b);
this[Y].appendChild(this.gc)};T[_P].ly=function(){if(this.gc){this.Nb=new hc(this.gc,this[Y],this.Bf,this.t);this.fk()}};T[_P].fk=function(){if(this.gc&&this.Nb){this.Nb.Ue=0;this.Nb.Ve=0;this.Nb.bh=this.Fc.Bd()-Tj(this[Y]);this.Nb.dh=this.Fc.wd()-kf(this[Y])}};T[_P].or=function(a){this.Vh=this.t.createElement("div");this.Vh.appendChild(a);this[Y].appendChild(this.Vh)};T[_P].yr=function(a){var b=this.Uk(a);b[k].paddingLeft="1.9ex";b[k].paddingRight="1.9ex";b.Gj=this;sb(b,pj);return b};T[_P].rr=function(a){var b=
this.Uk(a);b.Gj=this;sb(b,oj);return b};T[_P].aq=function(){var a=this.vg();this.sp();this.Xa.g(this.Ib,Kd,this.Qg);var b={zIndex:this[Y][k].zIndex-1,display:"block",backgroundColor:this.tt()};zg(a,b)};T[_P].Qg=function(){ra(this.vg()[k],"none");this.fk();this.sp();this.Yo()};T[_P].tt=function(){return this.gz||"#afafaf"};T[_P].vg=function(){var a=this.t.getElementById(Ah);if(!a){a=this.t.createElement("iframe");a.frameBorder=0;a.scrolling="no";a.id=Ah;fa(a,Ah);this.t[E].appendChild(a)}return a};
T[_P].Yo=function(){var a=$c[h];if(a>0){$c[a-1].aq()}else{ra(this.vg()[k],"none");this.Xa.Ca(this.Ib,Kd,this.Qg)}};var Am=function(a){if(!Dd($c,a)){var b=$c[h];$c.push(a);a[Y][k].zIndex=b==0?201:$c[b-1][Y][k].zIndex+2}},Bm=function(a){var b=Hg($c,a);if(b!=-1){$c.splice(b,1)}},pj=function(a,b){var c=b||this.Gj;if(!c.sl()){return}if(c.Kd){c.Kd()}if(c.El){c.remove()}c.dispatchEvent("ok")};T[_P].Dx=function(a){this.El=a};var oj=function(a,b){var c=b||this.Gj;if(!c.sl()){return}if(c.os){c.remove()}if(c.Vf){c.Vf()}c.dispatchEvent("cancel")};
T[_P].vm=function(a){var b=this.k.getElementById(a);if(b[xa]=="INPUT"){b.focus();ro(b,b[Va][h])}};T[_P].fb=null;T[_P].Mx=function(){this.fb=new Oc(this.t);this.Xa.g(this.fb,"key",this.Mg)};T[_P].Jy=function(){if(this.fb){this.Xa.Ca(this.fb,"key",this.Mg);this.fb.b();this.fb=null}};T[_P].Mg=function(a){var b=false;switch(a[Na]){case 13:if(!this.Ld.disabled){pj(null,this);b=true}break;case 27:oj(null,this);b=true;break;case 9:if(!vf(this[Y],zd(a))){var c=this[Y].getElementsByTagName("INPUT")[0];if(c){c.focus()}b=
true}break}if(b){a.preventDefault()}return b};function X(a,b,c,d,e,f){this.o=a;this.k=this.o[ea];this.Ek=b;this.hl=b.Da.base;this.ez=d;this.sk=e;e=this.N();this.Dj=cd(e);this.V=new va(this.o);this.lf=new qe;this.ki();T.call(this,this.o,true,this.ti,c);this.Ei()}X.d(T);X[_P].N=function(){return this.sk};X[_P].rc=function(){return this.Ek.fn(this.N())};var je="tr_email-address-tab",wd="tr_on-the-web-tab",xd="tr_on-the-web-tab-input",gf="tr_email-address-tab-input",tj="tr_dialog-tab-content-explanation-text",uj="tr_external-input-div",vj=false;
X[_P].we=null;X[_P].zf=null;X[_P].fc=function(){this.Mx();this.vl();T[_P].fc.call(this);if(this.uk){U(this.uk,true)}this.vm(this.Dc.id);this.rx(this.Dc[Va],this.rc());this.qk()};X[_P].ki=function(){var a=Ya(this.k,"div",{id:"tr_choose-link-dialog",className:"tr_edit-link-dialog-body",wk:"Edit Link",Ld:"OK",Wf:"Cancel"},{},this.k[E]);a.Xf=C(this.Xf,this);a.Uf=C(this.Uf,this);a.Jd=C(this.Kd,this);a.kp=true;this.ti=a};X[_P].Ei=function(){this.Xa.g(this.lf,"select",C(this.sw,this));ug(this.ti,this.$r(),
this.Xr());this.ad=ak(this.ti,this.k,false,C(this.yj,this));this[Y].className+=" tr_edit-link-dialog";qg(this[Y],this.Xa,true)};X[_P].$r=function(){var a=me(1,2,this.k,true);zg(a,{fontSize:"10pt"});var b=Ya(this.k,"div",{className:Bh},{paddingBottom:".8ex"});Q(a[rb][0][gb][0],'<span style="position: relative; bottom: 2px; padding-right: 1px;">Text to display:&nbsp;</span>');this.Dc=Ya(this.k,"input",{size:50,id:"tr_text-to-display"});var c=this.Dc,d=c;if(x){d=tg(c);this.uk=d;U(this.uk,false)}a[rb][0][gb][1].appendChild(d);
Ic(c,this.Dj);this.Xa.g(c,"keyup",C(this.yw,this));b.appendChild(a);return b};X[_P].Xr=function(){var a=Ya(this.k,"div",{className:Bh});a.setAttribute("tabbedPaneCaption","Link to:");ug(a,this.Zr(),this.Yr());return a};X[_P].Zr=function(){var a=Cg(wd,"Web address","Link to a page or file somewhere else on the web",this.k,C(this.Wy,this)),b=this.k.createElement("div");Q(b,"<b>To what URL should this link go?</b>");var c=Ya(this.k,"input",{id:xd}),d=c;if(x){d=tg(c)}if($i&&Lc(c)){Fa(c[k],"99%")}var e=
this.k.createElement("div");e.appendChild(d);fa(e,uj);this.zf=new ze(c);v(this.zf,"input",C(this.So,this));var f=qn(e,C(this.Dw,this),this.Xa);Q(f,"<br>Test this link");var g=this.k.createElement("div");fa(g,tj);Q(g,"<b>Not sure what to put in the box? </b>First, find the page on the web that you want to link to. (A <a href='http://www.google.com/' target='_new'>search engine</a> might be useful.) Then, copy the web address from the box in your browser's address bar, and paste it into the box above.");
ug(a,b,e,g);return a};X[_P].Yr=function(){var a=Cg(je,"Email address","Link to an email address",this.k,C(this.nm,this)),b=this.k.createElement("div");Q(b,"<b>To what email address should this link?</b>");a.appendChild(b);var c=Ya(this.k,"input",{id:gf}),d=c;if(x){d=tg(c)}if($i&&Lc(c)){Fa(c[k],"99%")}a.appendChild(d);fa(d,uj);this.we=new ze(c);v(this.we,"input",C(this.So,this));{var e=this.k.createElement("div");fa(e,tj);Q(e,"<b>Be careful.</b> Remember that any time you include an email address on a web page, nasty spammers can find it too.");
a.appendChild(e)}return a};X[_P].rx=function(a,b){if(this.jj()){this.Cu(a)}else if(yh(b)){this.ec(je);var c=b.substring(b.indexOf(":")+1);Ic(this.k.getElementById(gf),c);this.th()}else{this.ec(wd);Ic(this.k.getElementById(xd),this.jj()?"http://":b);this.th()}};X[_P].Cu=function(a){if(Eg(a)){Ic(this.k.getElementById(gf),a);this.Sd(true);this.ec(je);this.ui(true)}else if(ik(a)){Ic(this.k.getElementById(xd),a);this.Sd(true);this.ec(wd);this.ui(true)}else{if(this.Dj==""){this.Sd(true)}var b=wd;this.ec(b)}};
X[_P].ui=function(a){this.Sd(!a);vj=a};X[_P].th=function(){var a=this.Dg(),b=false;if(!vj&&(a==je||a==wd)){var c=this.k.getElementById(a+"-input");b=c[Va]==this.Dc[Va]}this.Sd(b)};X[_P].ec=function(a,b){this.Pz=b;this.ad.ec(a)};X[_P].Dg=function(){return this.bg};X[_P].yj=function(a){this.bg=a;{this.vm(this.bg+"-input");this.qk()}this.lf.Xx(null);this.vh();if(x){on(this[Y])}};X[_P].Dw=function(){var a=this.V.qc(xd),b=Yh(a[Va]);if(fk(b,this.hl)){On()}else{this.V.Vo(b,"")}};X[_P].yw=function(){var a=
this.Dc[Va]=="";if(a){this.Sd(true)}else{this.th()}};X[_P].So=function(){if(this.gl){this.vh()}else if(this.Dc[Va]==""){this.th()}this.qk()};X[_P].qk=function(){var a;if(this.bg==je){a=this.k.getElementById(gf)[Va]}else if(this.bg==wd){a=this.k.getElementById(xd)[Va]}else{return}this.uq(a.replace(/[ \r\n\t]/g,"")!="")};X[_P].Sd=function(a){this.gl=a};X[_P].vh=function(){if(this.gl){var a=this.Dg();if(a==wd||a==je){var b=a+"-input";Ic(this.Dc,this.k.getElementById(b)[Va])}}};X[_P].sw=function(){this.vh();
this.uq(true)};X[_P].uq=function(a){this.Ld.disabled=!a};X[_P].Xf=function(){if(this.pa){this.pa.kh(this.N())}this.pa=null;if(this.lf){this.lf.qi();this.lf=null}if(this.zf){this.zf.b();this.zf=null}if(this.we){this.we.b();this.we=null}this.ui(false)};X[_P].Uf=function(){var a=this.N();if(this.jj()){if(a[ib]!=""){yg(a)}ga(a)}};X[_P].jj=function(a){var b=this.N();return Xh(b[od],this.hl)};X[_P].Kd=function(){var a=this.ad.Dg();if(a&&a.Jd)a.Jd()};X[_P].Wy=function(){var a=this.k.getElementById(xd)[Va];
if(Eg(a)){this.nm(xd);return}this.Tp(Yh(a))};X[_P].nm=function(a){var b=this.k.getElementById(a?a:gf)[Va];b="mailto:"+b;this.Tp(b)};X[_P].Tp=function(a){this.vh();return this.ay(this.Dc[Va],a)};X[_P].ay=function(a,b){var c=this.N(),d=a==this.Dj?null:a;if(d){Jm(c,d)}Ze(c,b)};var Jm=function(a,b){var c=Kc(a);if(c[S]==3)c=c[n];if(cd(c)!=cd(a))c=a;Q(c,"");Oh(c,b)};;;{function ua(a,b,c,d,e,f){this.o=a;this.V=new va(this.o);this.k=a[ea];this.wx=b;this.pw=c;this.Ek=d;this.Nw=e;this.up=C(this.rp,this);this.Ug=f;var g=this.ki();T.call(this,this.o,true,g,this.wx);this.Ei()}ua.d(T);var Xj="tr_raw-html-dialog-preview-tab",Uh="tr_raw-html-dialog-html-tab",Wj="(p|div|h1|h2|h3|h4|h5|h6|hr|table|ul|ol|li)",En=new RegExp("^<"+Wj+"[\\s\\S]*?>$","i"),Dn=new RegExp("^<\\/"+Wj+">$","i");ua[_P].fc=function(){v(this.o,"resize",this.up,false);this.ad.ec(Uh);T[_P].fc.call(this);
this.rp();this.fk();this.Eb.focus();if(x){this.Eb.selectionStart=0;this.Eb.selectionEnd=0}};ua[_P].Kd=function(){var a=this;this.H(function(b){a.pw(b);a.remove()})};ua[_P].$b=function(){lb(this.o,"resize",this.up,false);T[_P].$b.call(this)};ua[_P].Yf=function(){};ua[_P].Vf=function(){};ua[_P].rp=function(){this.qp();this.vl()};ua[_P].qp=function(){var a=this.V.wd()*0.9,b=this.V.Bd()*0.9;Fa(this[Y][k],b+"px");Oa(this[Y][k],a+"px");var c=kf(this.ie),d=kf(this.gc),e=kf(this.ad.tf),f=a-c-d-e,g=b,i=this.ad.yt(),
j=i,l=0,m=0;while(j!=this[Y]){l+=ng(j);m+=jj(j);j=j[n]}f-=l;g-=m;if(r&&Lc(this.k)){f-=13}if(f>0){Oa(i[k],f+"px")}if(g>0){Fa(i[k],g+"px")}if(x){pn(this[Y])}else if(r&&Lc(this.k)){var q=f-ng(this.Eb)-rm(this.Eb);if(q>0){Oa(this.Eb[k],q+"px")}}};ua[_P].xa=function(a){Ic(this.Eb,Gn(a))};ua[_P].wu=function(){var a=this.Eb[Va];return x?Fn(a):a};var Gn=function(a){var b=Zj(a,[/^<!--[\s\S]*?--\>/,/^<![\s\S]*?>/,/^<(script|style|pre|xmp)[\s\S]*?<\/(\1)[^>]*>/i,/^<\/?\w+[^>]*>/,/^[^<]+/,/^</]),c=[];for(var d=
0;d<b[h];++d){var e=b[d],f=/^<(script|style|pre|xmp)[\s\S]*?<\/(\1)[^>]*>/i.test(e);if(f){c.push("\n");c.push(e);c.push("\n")}else{var g=En.test(e),i=Dn.test(e);if(g){c.push("\n");c.push(e)}else if(i){c.push(e);c.push("\n")}else{c.push(e)}}}return c.join("")},Zj=function(a,b){var c=[];while(a){for(var d=0;d<b[h];++d){var e=a.match(b[d]);if(e){if(!/^\s+$/.test(e[0])){c.push(e[0])}a=a.substring(e[0][h]);break}}}return c},Fn=function(a){var b=Zj(a,[/^<!--[\s\S]*?--\>/,/^<![\s\S]*?>/,/^<(script|style|listing)[\s\S]*?<\/(\1)[^>]*>/i,
/^<\/?\w+[^>]*>/,/^[^<]+/,/^</]),c=[];for(var d=0,e=false,f=false;d<b[h];++d){var g=b[d];if(g.charAt(0)!=="<"){if(e||f){var i=e?"<br>":"";g=g.replace(/\r\n?|\n/g,i)}}else if(/^<pre/i.test(g)){e=true}else if(/^<xmp/i.test(g)){f=true}else if(/^<\/pre/i.test(g)){e=false}else if(/^<\/xmp/i.test(g)){f=false}c.push(g)}return c.join("")};ua[_P].H=function(a){var b=this.Ug?this.Ug.Qz:null;this.Em(a,b)};ua[_P].fu=function(a){var b=this.Ug?this.Ug.Rz:null;this.Em(a,b)};ua[_P].Em=function(a,b){a(this.wu())};
ua[_P].Ny=function(){this.fu(C(this.Oy,this))};ua[_P].Oy=function(a){var b=this.Cn.m();Q(b[E],a);Ej(b,this.Ek);this.ny()};ua[_P].yj=function(a){if(a==Xj){this.Ny()}};ua[_P].ki=function(){var a=Ya(this.k,"div",{id:"tr_raw-html-dialog",className:"tr_raw-html-dialog-body",wk:"Edit HTML",Ld:"Save Changes",Wf:"Cancel"});a.Xf=C(this.Yf,this);a.Uf=C(this.Vf,this);a.Jd=C(this.Kd,this);a.kp=true;this.k[E].appendChild(a);a.appendChild(this.ys());this.ad=ak(a,this.k,true,C(this.yj,this));return a};ua[_P].Ei=
function(){this.Dx(false);this[Y].className+=" tr_raw-html-dialog";this.ad.ec(Uh);ra(this[Y][k],"none")};ua[_P].ys=function(){var a=Ya(this.k,"div",{className:Bh});a.setAttribute("tabbedPaneCaption","&nbsp;");ug(a,this.As(),this.Gs());return a};ua[_P].As=function(){var a=Cg(Uh,"HTML","Edit your HTML here",this.k);this.Eb=Ya(this.k,"textarea",{id:"tr_raw-html-area"},{height:"98%",width:"100%",direction:"ltr"});var b=this.Eb;if(x){b=tg(this.Eb);Oa(b[k],"100%")}a.appendChild(b);Oa(a[k],"100%");return a};
ua[_P].Gs=function(){var a=Cg(Xj,"Preview","Preview your changes here",this.k),b=Ya(this.k,"iframe",{id:"tr_raw-html-dialog-preview-pane",src:this.Nw},"width:100%;height:100%;",a);this.Cn=new Eb(b);Oa(a[k],"100%");return a};ua[_P].ny=function(){var a=this.Cn.m();v(a[E],"mousedown",Yj,true);v(a,"click",Yj,true);a.onmousemove=Fg;a.onmouseover=Fg;a.onmouseout=Fg};var Yj=function(a){Fg();tc(a,false)}};;;function t(a,b,c){R.call(this);this.Wa={};this.V=b;this.dv=c;this.pd={};this.ua={};this.qg={};this.pg={};this.aa=a;if(x){this.Xe={};{this.Hh={};this.tc={}}}this.xe={}}var Gh;t.d(R);t[_P].v=Fd("TR_EditableUtil");var Fh=function(a){var b=sn(a,"g_editable","true");return b&&a!=b?true:false};t[_P].un=function(){return!Ff(this.Wa)};t[_P].mj=function(a){if(!a.getSelection()){return false}var b=a.Xb();if(!b){return false}return Fh(b)||yd(b)};var Cj=function(a,b,c){if(!c)c="";var d=vg(a,b,c);if(!Fh(d))d=
null;return d};t[_P].ye=function(a){if(Xa){var b=this.ha(a),c=this.p(a),d=ta(b);if(c.m()!=d){d[E].createTextRange().select();c=this.p(a)}c.$o(b);b.focus()}else if(pa){var b=this.ha(a);this.p(a).$o(Kc(b));this.bb(a).rg()}else{this.bb(a).rg()}};t[_P].Om=function(a){var b;if(this.mj(a)){b=this.xt(a)}else{b=this.Nt(a)}return b?this.Pm(b):null};t[_P].p=function(a){return this.bb(a).p()};t[_P].bb=function(a){var b=a||sc();if(b&&(!rc||false)&&this.On(b)){return this.ud(b)}else{return this.V}};t[_P].eu=function(){return this.V};
t[_P].m=function(a){return this.bb(a).m()};t[_P].td=function(a){return Hb(this.m(a))};t[_P].U=function(a){return this.bb(a).U()};t[_P].qc=function(a){var b=this.bb().qc(a);if(!b&&x){var c=sc();for(var d in this.Wa){if(this.On(d)){ad(d);b=this.bb().qc(a);if(b){break}}}ad(c)}return b};t[_P].De=function(a){var b=ne(a,yd);return b?this.Pm(b):b};t[_P].Pc=function(a){var b=this.De(a);return b?this.C(b.id):null};t[_P].qv=function(a){return!(!this.ha(a.id))};t[_P].kf=function(a,b,c,d,e){if(!this.ua[a]){this.ua[a]=
new Ra(this)}this.ua[a].g(b,c,d,e)};t[_P].Hw=function(a,b){var c=a.nd,d=c.id;if(this.Wa[d]){return false}a.nodeName=c[na];a.id=d;fa(a,c[hb]);a.Np(c[k][Dc]);c.className+=" editable";this.pd[d]=a;var e=a.de(),f=this,g=function(){if(e){f.Wa[d]=f.Ee(d)}else{f.Wa[d]=f.V.qc(d)}if(r){f.Cl(d)}a.addListener(Hd,f.Su,false,f);f.Wa[d].setAttribute("g_editable","true");b(d)};if(e){if(x){this.kf(d,a,"focus",this.iw.D(this,d))}this.Mv(a,g)}else{a.Xp(c,this.V);this.Hy(c);g()}};t[_P].Cl=function(a){var b=this.p(a),
c=this.Om(b);if(c&&c.id==a){b.empty()}};t[_P].C=function(a){return this.pd[a]};t[_P].Su=function(a){if(a[Na]==8){var b=this.p(),c=this.Om(b),d=b.Gg();if(c[W]==d&&pe(d)){tc(a)}}else if(a[Na]==13&&r){this.ft()}};t[_P].Al=function(a){if(this.qg[a]){Sa(this.qg[a]);this.qg[a]=null}if(this.pg[a]){ca.clearInterval(this.pg[a]);this.pg[a]=null}};t[_P].Dl=function(a){this.Al(a);var b=this.C(a);if(this.ua[a]){this.ua[a].b();delete this.ua[a]}if(sc()==a){ad(null)}if(b){b.Bl()}if(b&&this.ha(a)){var c=b.nd;if(x){if(!rc&&
this.ac(a)){delete this.Hh[a];delete this.tc[a]}delete this.Xe[a]}if(b.de()){var d=this.yg(a);{ga(d)}}if(this.xe[a]){delete this.xe[a]}Sm(c,b);delete this.Wa[a];if(this.pd[a]){delete this.pd[a]}}};var Sm=function(a,b){a.removeAttribute("contentEditable");a.removeAttribute("g_editable");if(!b.id){a.removeAttribute("id")}else{a.id=b.id}if(!b[hb]){fa(a,"")}else{fa(a,b[hb])}var c=b.Vt();if(!c){a.removeAttribute("style")}else{oi(a,{style:c})}};t[_P].ha=function(a){return this.Wa[a]};t[_P].Kt=function(a){return this.C(a).Jt()};
t[_P].rt=function(){var a=[];for(var b in this.pd){a.push(this.C(b))}return a};t[_P].Et=function(){for(var a in this.Wa){return this.C(a)}return null};t[_P].xt=function(a){var b=a.Xb();return this.De(b)};t[_P].Nt=function(a){for(var b in this.Wa){var c=this.ha(b);if(a.hi(c,false)){return c}}return null};t[_P].Pm=function(a){return x?this.ha(a.id):a};t[_P].Mv=function(a,b){var c=a.nd,d="padding:0;",e=Ya(c[$],"iframe",{frameBorder:0},d),f=false,g=c[ib],i=c.id;if(x&&false||r&&wi(this.V.U()[qb].toString(),
"https")){this.v.O("Setting src for iframe "+i);e.src=this.dv;if(r){f=true;var j=this.Bn.D(this,i,g,b),l=this.cv.D(this,i,j);this.v.O("Listening to load event on "+i);this.qg[i]=v(e,"load",l,true);this.pg[i]=ca.setInterval(this.Gv.D(this,i),2000)}}this.xe[i]=e;if(x){this.Br(c,e,b)}if(!rc&&a.db()){this.tc[i]=fe(c,"overflowY")=="auto";var m=c[k][J],q=c[k][z];F(c,"visibility","hidden");var w=Hb(c),D=w.l("div",{style:"height:0;clear:both",innerHTML:"&nbsp;"}),da=D.cloneNode(true);c.insertBefore(D,c[W]);
c.appendChild(da);var bb=c[Tb],Sb=c[Ab],Cc=c[k].overflow;if(Cc!="auto"){F(c,"overflow","auto");var Oe=Dj();if(c[Ab]!=c[Hc]){Sb+=Oe}if(c[Tb]!=c[ae]){bb+=Oe}F(c,"overflow",Cc)}var Pe="";if(this.tc[i]){Pe="&nbsp;";F(c,"position","relative");F(c,"overflow","visible");F(e,"position","absolute");F(e,"top",0);F(e,"left",0)}Qd(c,bb,Sb);Q(c,Pe);this.Hh[i]=c;Qd(e,bb,Sb);Qd(c,m,q);F(c,"visibility","");c.appendChild(e)}else{fa(e,c[hb]);e.id=i;Bn(e,c)}if(!f){this.v.O("Not waiting for load on "+i);var Ud=e[Xd][ea];
if(this.ac(i)&&Lc(e[$])){Ud.open();Ud.write("<!DOCTYPE HTML><html></html>");Ud.close()}this.Bn(i,g,b)}};t[_P].Cy=function(a,b){b=b||sc();var c=this.ud(b).m(),d=a?"on":"off";if(c[Sf].toLowerCase()!=d){c.designMode=d}};t[_P].cv=function(a,b){this.v.O("Reached load wrapper for "+a);b()};t[_P].Gv=function(a){var b=this.yg(a),c;if(!(c=b)){this.v.za("Iframe DNE: "+a)}else if(!(c=c[Xd])){this.v.za("win DNE: "+a)}else if(!(c=c[ea])){this.v.za("doc DNE: "+a)}else if(!(c=c[E])){this.v.za("Body DNE: "+a)}else{this.v.za("iframe ready in loadNeveFired");
this.C(a).za=true}};t[_P].Bn=function(a,b,c){this.v.O("Iframe field load handler for "+a);var d=this.C(a);if(d.za){this.v.za("Iframe field load handler did fire for "+a)}this.Al(a);var e=this.ud(a),f=e.zb();f.bz="true";var g=e.m(),i=Lc(f[$]),j=[];if(this.ac(a)&&i){j.push("<!DOCTYPE HTML>")}j.push('<html style="background:none transparent;height:');if(this.ac(a)){j.push(this.tc[a]?"100%":"auto")}j.push('">');if(this.ac(a)){var l=this.Hh[a];j.push("<head><style>");j.push(sm(l));j.push("</style></head>");
var m=this.Zt(a)[E],q=-ge(l,"paddingLeft"),w=-ge(l,"paddingTop");if(w!=0||q!=0){F(f,"position","relative");F(f,"left",q+"px");F(f,"top",w+"px")}}j.push('<body g_editable="true" ');if(rc){j.push("contentEditable ")}j.push('class="editable ');if(m){j.push(m[hb])}j.push('" id="');j.push(a);j.push('" style="');if(this.ac(a)){j.push(m[Dc]);j.push(";width:100%;border:0;margin:0;background:none transparent;");j.push(";height:");j.push(i?"100%":"auto");if(this.tc[a]){j.push(";overflow:auto")}else{j.push(";overflow-y:hidden;overflow-x:auto")}}if(fe(d.nd,
"direction")=="rtl"){j.push(";direction:rtl")}j.push('">');b=Eh(b);j.push(b);j.push("</body></html>");g.open();g.write(j.join(""));g.close();var D=g[E];this.Wa[a]=D;this.C(a).Xp(D,e);if(!rc){Gj(g,this.aa);var da=this.Gy.D(this,g,a);try{da()}catch(bb){this.v.za("Can't turn on designMode - retry: "+a);ca.setTimeout(da,0)}if(this.ac(a)){this.jy(a)}this.kf(a,g,"keyup",this.Uu);this.kf(a,g,"keypress",this.Xi.D(this,a),true)}e.Pw(this.Kt(a),true);this.dispatchEvent({type:"innerhtmlchange",wb:a,Hv:true});
c();this.v.O("End iframe field load handler "+a)};t[_P].Gy=function(a,b){a.designMode="on";a.execCommand("useCSS",false,true);if(this.ac(b)){a.execCommand("enableInlineTableEditing",false,"false");a.execCommand("enableObjectResizing",false,"false")}this.v.log("Turned on designMode: "+b)};t[_P].Hy=function(a){a.contentEditable=true};var Eh=function(a){if(!a||Wh(a)){return zj()}return a};t[_P].Op=function(a,b,c){b=Eh(b);if(Yi&&b.match(/^\s*<script/i)){b="&nbsp;"+b}if(rc){Q(this.ha(a),b)}else{var d=
this.Ee(a);Q(d,b)}var e=c?c:false;this.dispatchEvent({type:"innerhtmlchange",wb:a,Hv:e})};t[_P].Wt=function(a){var b=this.ha(a);return b[ib]};t[_P].Xi=function(a,b){if(Jh()){return}if(b[Na]==13){this.Ku(b)}};t[_P].Uu=function(a){if(Jh()){return}};t[_P].Ku=function(a){if(a[pd]){return}var b=this.p();if(!b.uc()){b.Yl(this)}};var Gj=function(a,b){Ej(a,b)},Ej=function(a,b){var c=a.getElementsByTagName("img");for(var d=0,e=c[h];d<e;d++){c[d].src=b.Hg(c[d].src,"live")}},Fj={Oz:"b",oz:"i"};t[_P].kx=function(a){var b=
this.ha(a),c=this.V.m();for(var d in Fj){var e=b.getElementsByTagName(d);Gm(c,e,Fj[d])}};t[_P].Br=function(a,b,c){var d=a.id;if(!this.Xe[d]){this.Xe[d]={}}var e=this.Xe[d];e.field=a;e.vz=new Eb(b);e.Qh=qm(a);e.Ez=c};t[_P].On=function(a){return!(!this.xe[a])};t[_P].ud=function(a){return new Eb(this.yg(a))};t[_P].yg=function(a){return this.xe[a]};t[_P].Ee=function(a){return this.ud(a).Hi()};t[_P].Lw=function(a){var b=this.Ee(a);this.p(a).yp(b)};t[_P].iw=function(a){var b=this.ud(a),c=b.p(),d=this.ha(a);
if(!d.qy){if(b.m()[Sf].toLowerCase()=="off"){window.setTimeout(this.Pu.D(this,c,b,a),0)}d.qy=true}var e=c.getSelection(),f=e.focusOffset==0,g=e[nd],i=!g||this.qv(g)||Fb(g,"body");if(f&&i){this.Lw(a)}};t[_P].Pu=function(a,b,c){if(b.m()[Sf].toLowerCase()=="off"){a.Oj();b.U().blur();this.Cy(true,c);a.Nj()}};t[_P].ug=function(){var a=sc();return a?this.C(a):null};{t[_P].jy=function(a){var b=this.C(a);if(!this.tc[a]){this.kf(a,b,Jc,this.gq.D(this,a),true)}this.kf(a,b,"outerDocChange",this.hq.D(this,a),
true)};t[_P].gq=function(a){if(this.Tk()){var b=this.ud(a),c=b.Rt(),d=b.zb(),e=this.Ee(a);if(ha(Ge(d,"height"),10)===0){F(d,"height","1px")}var f;if(Lc(e)){f=c[Hc]}else{f=c[We];if(c[Ab]!=c[Hc]){f+=Dj()}}var g=this.C(a);if(g.eh){f=y.max(f,g.eh)}if(ha(Ge(d,"height"),10)!=f){F(d,"height",f+"px")}this.jp()}};var Dj=function(){if(!Gh){var a=Og("div",{style:"overflow:scroll;position:absolute;visibility:hidden;"});Nc(Pg()[E],a);Gh=a[ae]-a[Tb];ga(a)}return Gh};t[_P].hq=function(a){if(this.Tk()){var b=this.yg(a),
c=this.Ee(a),d=this.Hh[a],e=d[Tb];if(ha(Ge(b,"width"),10)!=e){F(b,"width",e+"px");e-=jj(c);F(c,"width",e+"px")}var f=d[Ab];if(this.tc[a]&&ha(Ge(b,"height"),10)!=f){F(b,"height",f+"px");f-=ng(c);F(c,"height",f+"px")}this.jp()}};t[_P].$s=function(a){if(this.C(a)&&this.ac(a)){var b=this.tc[a];if(!b){this.gq(a)}this.hq(a)}};t[_P].Tk=function(){if(this.fq){return false}return this.fq=true};t[_P].jp=function(){this.fq=false};t[_P].Zt=function(a){return this.Xe[a].Qh}}{t[_P].ac=function(a){return this.pd[a].db()}}{t[_P].ft=
function(){var a=this.p(),b=a.getSelection().parentElement();while(b&&!yd(b)){var c=b[na];if(c=="LI"||c=="DIV"){return}b=b[n]}this.m().execCommand("FormatBlock",false,"<div>")}};;;;;;function sa(a,b){this.f=a;if(b){this.Iw=b.Hz}}sa[_P].v=Fd("TR_StyleUtil");sa[_P].ot=function(a,b){var c,d;switch(a){case "+backColor":if(!Qb(b)){if(x){this.Fr(b)}else{this.od(a,b)}}break;case "+link":var e=this.Dy("/",b);break;case "+table":this.nv(2,4);break;case "+justifyCenter":case "+justifyFull":case "+justifyRight":case "+justifyLeft":this.Av(a);break;case "ltr":case "rtl":break;case "+BLOCKQUOTE":break;case "+removeFormat":this.$w();break;default:if(a==sg){b="<"+b+">"}switch(a){case "+indent":case "+outdent":d=
true;case sg:case "+insertOrderedList":case "+insertUnorderedList":c=false;break;case Hh:case "+bold":case "+italic":d=ud&&this.Ii(a,this.m(),true,this.p());break;case "+foreColor":if(Qb(b)){break}case "+fontName":d=ud}this.od(a,b,c,d)}if(x){this.bb().rg()}if(e){return e}};var $j=function(a){return a.indexOf("+")==0?a.substring(1):a};sa[_P].Bm=function(a,b){var c=this.m(),d=b&&b.mj()&&(rc||c[Sf].toLowerCase()!="off"),e=b&&b.p();if($a(a)){return this.Ii(a,c,d,e)}else{var f={};for(var g=0;g<a[h];g++){f[a[g]]=
this.Ii(a[g],c,d,e)}return f}};sa[_P].Ii=function(a,b,c,d){if(!c){return false}switch(a){case "+link":return this.uv("a");case "+justifyCenter":case "+justifyFull":case "+justifyRight":case "+justifyLeft":return this.sv(a);case sg:case "+BLOCKQUOTE":case "+indent":case "+outdent":case "+removeFormat":case "+backColor":case "+insertHorizontalRule":case "+unlink":case "+undo":case "+redo":case "+table":return false;case "+fontSize":case "+fontName":case "+foreColor":return this.gp(b,a,ud);case "ltr":case "rtl":return false;
case Hh:case "+bold":case "+italic":var e=ud;default:return this.Qw(b,a,e)}};sa[_P].Av=function(a){this.od(a,null,null,true);if(!ud){var b=this.p().Tm();for(var c=0;c<b[h];c++){var d=Ad(b[c]);if(d.align){d[k].textAlign=d.align;d.removeAttribute("align")}}}};var Kn={center:1,justify:1,right:1,left:1};sa[_P].sv=function(a){var b=a.replace("+justify","").toLowerCase(),c=this.p();{var d=c.Tm(true);for(var e=0;e<d[h];e++){var f=Ad(d[e]);if(b!=Mn(f)){return false}}return true}};var Mn=function(a){var b=
fe(a,"textAlign");if(!Kn[b]){b=a.align||"left"}return b};sa[_P].uv=function(a){var b=this.p().Xb();return!(!Cj(b,a))};sa[_P].p=function(){return this.f.p()};sa[_P].m=function(){return this.f.m()};sa[_P].td=function(){return this.f.td()};sa[_P].bb=function(){return this.f.bb()};sa[_P].Qw=function(a,b,c){return this.fp(true,a,b,c)};sa[_P].gp=function(a,b,c){return this.fp(false,a,b,c)};sa[_P].fp=function(a,b,c,d){c=$j(c);if(d){var e=this.m();e.execCommand("useCSS",false,false)}var f=a?b.queryCommandState(c):
b.queryCommandValue(c);if(d){e.execCommand("useCSS",false,true)}return f};var Ln={indent:1,outdent:1,insertOrderedList:1,insertUnorderedList:1,justifyCenter:1,justifyFull:1,justifyRight:1,justifyLeft:1,ltr:1,rtl:1};sa[_P].od=function(a,b,c,d){var e=this.p();a=$j(a);var f;if(r){var g=this.f.ug();if(g.db()&&a in Ln){var i=g.M(),j=Hb(i);if(r&&e.uc()&&!xf(i)){var l=e.getSelection(),m=l.duplicate();m.moveToElementText(i);m.collapse(false);if(m.isEqual(l)){i.appendChild(j.createTextNode(vd));l.move("character",
1);l.move("character",-1);l.select()}}f=j.l("div",{style:"height:0"});Nc(i,f)}}var q=this.m();if(d&&ud){q.execCommand("useCSS",false,false)}q.execCommand(a,false,b);if(d&&ud){q.execCommand("useCSS",false,true)}if(f){ga(f)}};sa[_P].Fr=function(a){var b=this.p(),c,d;if(b.uc()){var e=b.m();c=e.createTextNode(" ");var f=b.Gg();d=f[S]==1?f:f[n];if(d[ib]==""){d[k].textIndent="-10000px";d.appendChild(c)}else{var g=Hb(e);d=g.l("span",{style:"text-indent:-10000px"},c);this.Jn(d)}b.rh(c)}this.od("hiliteColor",
a,null,true);if(c){fg(c,"");d[k].textIndent=""}};sa[_P].Dy=function(a,b){var c=this.p(),d=c.Xb(),e=Cj(d,"a");if(e){yg(e);ga(e)}else{return this.Jc(c,a,b)}return null};sa[_P].nv=function(a,b){var c=me(a,b,this.bb().m());this.Jn(c)};sa[_P].Jn=function(a){var b=this.p(),c=b.getSelection();if(c.pasteHTML){var d="";if(a[be]){d=a[be]}else if(a[Ue]){d=a[Ue]}c.pasteHTML(d)}else if(c.getRangeAt){var e=b.Yl(this.f);e.insertNode(a)}};sa[_P].Jc=function(a,b,c){var d=null;if(a.uc()){if(Ga){d=Ya(this.m(),"a",{href:b});
var e=a.Yb();e.insertNode(d)}else if(Xa){a.getSelection().pasteHTML("<a id='newLink' href='"+b+"'></a>");d=this.m().getElementById("newLink");d.removeAttribute("id")}}else{var f=a.Xb(),g=this.f.Pc(f),i=bd();this.od("CreateLink",i);var j=function(l,m,q){if(fl(l[od],i)){d=l;Ze(d,b)}};jc(g.M().getElementsByTagName("a"),j)}if(d&&c){qc(d,c)}return d};sa[_P].$w=function(){var a=this.p();if(a.uc()){return}var b=a.Yb();this.od("RemoveFormat");var c=this.St(b),d=this.Iw||Nn;c=d(c);this.ax(b,c)};sa[_P].St=
function(a){var b=this.td().l("div");if(Ga){b.appendChild(a.extractContents())}else if(Xa){var c=a[sd],d=c[h],e=d-ml(c)[h],f=d-c.replace(/\s+$/,"")[h];a.moveStart("character",e);a.moveEnd("character",-f);var g=a[Uf];if(this.gp(a,sg)=="Formatted"){g=$g(a[Uf])}Q(b,g)}return b[ib]};sa[_P].ax=function(a,b){if(Ga){var c=this.td().bv(b);a.insertNode(c)}else if(Xa){var d=bd();a.pasteHTML("<span id="+d+"></span>");var e;while((e=a.parentElement())&&pe(e)&&!yd(e)){ga(e)}a.pasteHTML(b);var f=this.m().getElementById(d);
if(f){ga(f)}}};var mf=function(a){if(a[h]){a.push("<br>")}},Nn=function(a){var b=ue().createElement("div");Q(b,a);var c=[],d=[b[ka],0],e=[],f=0;for(var g=0;g>=0;g-=2){var i=false;while(f>0&&g<=e[f-1]){f--;i=true}if(i){mf(c)}var j=d[g],l=d[g+1];while(l<j[h]){var m=j[l++],q=m[na];switch(q){case "#text":var w=f>0?m[Wb]:xi(m[Wb]);w=ed(w);c.push(w);continue;case "P":mf(c);mf(c);break;case "BR":mf(c);continue;case "PRE":case "XMP":e[f++]=g;break;case "STYLE":case "SCRIPT":case "SELECT":continue;case "IMG":c.push("<img src='");
c.push(m.src);c.push("'>");continue;case "TD":c.push(" ");break;default:if(/^(DIV|TR|LI|BLOCKQUOTE|H\d|PRE|XMP)/.test(q)){mf(c)}}var D=m[ka];if(D[h]>0){d[g++]=j;d[g++]=l;j=D;l=0}}}return c.join("").replace(/\xa0|[ \t]+/g," ")};;;function Ij(a,b,c){this.En=[];this.wl=[];for(var d=0;d<b;++d){var e=a[ea].createElement("iframe");e.src=c;this.En.push(e)}};Ij[_P].Uw=function(){while(this.wl[h]){this.En.push(this.wl.pop())}};var ln=function(a,b,c){Fa(a,b);Oa(a,c)},kn=function(a){a.removeAttribute("width");a.removeAttribute("height");Fa(a[k],"");Oa(a[k],"")},mn=function(a,b,c){var d=c?c:b,e=a[J],f=a[z],g=b/e,i=d/f;if(i>g){e=b;f=f*g}else{f=d;e=e*i}ln(a,e,f)},Lh={small:96,medium:200,large:420},jn=function(a,b){bn(a,b)},bn=function(a,b){mn(a,Lh[b])},dn=function(a,b){if(a[z]&&a[J]){var c=y.max(a[z],a[J]);for(var d in Lh){if(c==Lh[d]){return d}}}return b&&nn?dk(a.src):null},nn=false,en=function(a,b,c){Mj(a,b,false,c)},fn=function(a,
b,c){Mj(a,b,true,{No:c})},Mj=function(a,b,c,d){kn(a);var e=a.src;if(b.Sc(e)){if(c){e=b.Xm(e)}else{e=b.Ut(e,"full")}}var f,g;if(d){f=d.No;g=d.hw}if(a.src==e){if(f){f()}return}if(f){gn(a,f,g)}a.src=e},Nh={},Mh={},gn=function(a,b,c){var d=Ib(a),e=Nj.Nd(b);Nh[d]=v(a,r?"readystatechange":"load",e,false);if(c){var f=Nj.Nd(c);Mh[d]=v(a,"error",f,false)}},cn=function(a){var b=Ib(a);Sa(Nh[b]);delete Nh[b];Sa(Mh[b]);delete Mh[b]},Nj=function(a,b){var c=b[Ec],d=c[ce];if(d&&d!="complete"){return}cn(c);a(c)},
hn=function(a){ga(a)};;function Bg(a){this.k=a;this.e=Hb(a)};Bg[_P].Ol=function(a,b,c,d,e){var f=a[gb];this.me(f[0],b,e);this.me(f[1],c,e);this.me(f[2],d,e)};Bg[_P].Hs=function(a,b,c){var d=me(3,3,this.k);Sh(d,{className:b,border:0,cellSpacing:0,cellPadding:0});var e=d[rb];this.Ol(e[0],"tr_tl",c?null:"tr_t","tr_tr",c?null:2);var f=e[1][gb];this.me(f[0],c?null:"tr_l");Sh(f[1],a);this.me(f[2],c?null:"tr_r");this.Ol(e[2],"tr_bl",c?null:"tr_b","tr_br",c?null:2);return d};Bg[_P].me=function(a,b,c){Q(a,"");fa(a,b||"tr_sidebar");
if(c){Fa(a,c);Oa(a,c)}a.appendChild(this.e.l("img",{height:1,width:1,alt:""}))};function qe(){R.call(this);var a=this;this.i=new Ra(this);this.Sg=new re(function(b){a.Mf(b,0)},function(b){a.Mf(b,2);a.dispatchEvent({type:"select",ve:b})});this.iq=new re(function(b){if(b!=a.Sg.getState()){a.Mf(b,0)}},function(b){if(b!=a.Sg.getState()){a.Mf(b,1)}})}qe.d(R);qe[_P].qi=function(){if(this.i){this.i.b();this.i=null}};qe[_P].Mf=function(a,b){a[k].background=["","#FFFFE0","#FFFFCC"][b]};qe[_P].Xx=function(a){this.Sg.Vd(a)};qe[_P].add=function(a,b){var c=this,d=b&&b.onclick?b.onclick:Hn(c,
a),e=b&&b.Ew?b.Ew:function(){},f=b&&b.onmouseover?b.onmouseover:Jn(c,a),g=b&&b.onmouseout?b.onmouseout:In(c);this.i.g(a,"click",d,true);this.i.g(a,"dblclick",e,true);this.i.g(a,"mouseover",f,true);this.i.g(a,"mouseout",g,true)};var Hn=function(a,b){return function(){a.Sg.Vd(b)}},Jn=function(a,b){return function(){a.iq.Vd(b)}},In=function(a){return function(){a.iq.Vd(null)}};;function re(a,b,c){this.xw=a;this.ww=b;this.Yd=c}re[_P].Vd=function(a){if(this.Yd!=a){this.ql(this.xw);this.Yd=a;this.ql(this.ww)}};re[_P].ql=function(a){if(this.Yd){a(this.Yd)}};re[_P].getState=function(){return this.Yd};function Cd(a,b,c,d){this.t=b;this.rv=c;if(d){this.yh=this.Ms(d)}this.lq=[];var e=c?me(2,1,this.t,true):me(1,2,this.t,true);cg(e,0);e.cellSpacing=0;this.Zd=e[rb][0][gb][0];fa(this.Zd,"tr_tabbed-pane-tabs");if(c){this.Zd.className+=" tr_horizontal-tab";var f=me(1,2,this.t,true);cg(f,0);f.cellSpacing=0;this.xy=f[rb][0][gb][0];Fa(this.xy,"99%");Fa(f[rb][0][gb][1],"1%");this.Zd.appendChild(f);this.tf=this.t.createElement("table");cg(this.tf,0);this.tf.insertRow(0);f[rb][0][gb][1].appendChild(this.tf)}else{this.Zd.className+=
" tr_vertical-tab";Q(this.Zd,"<p>"+a.getAttribute("tabbedPaneCaption")+"</p>")}this.ii=c?e[rb][1][gb][0]:e[rb][0][gb][1];fa(this.ii,"tr_tabbed-pane-tab-content");while(a[ka][h]){this.Cr(a)}a.appendChild(e);a.className+=" tr_tabbed-pane"}Cd[_P].Cr=function(a){if(a[ka][0][S]==1){var b=a[ka][0];ra(b[k],"none");this.ii.appendChild(b);var c={};c.id=b.getAttribute("tabId");c.Zs=b;this.lq.push(c);var d=b.getAttribute("tabId");b.id=d+"-content";var e=this.Ls(d,b.getAttribute("tabLabel"),b.getAttribute("tabTooltip"));
if(this.rv){this.tf[rb][0].insertCell(-1).appendChild(e)}else{this.Zd.appendChild(e)}}else{a.removeChild(a[W])}};var Cg=function(a,b,c,d,e){var f=d.createElement("div");f.setAttribute("tabID",a);f.setAttribute("tabLabel",b);f.setAttribute("tabTooltip",c);if(e){f.Jd=e}return f};Cd[_P].Ls=function(a,b,c){var d=this.t.createElement("div");d.id=a;Q(d,'<table cellpadding=0><tr valign="top"><td><input type="radio" id="'+a+'-dialog-radio" name="'+a+'" /></td><td class="tr_tabbed-pane-tab-label">'+b+"</td></tr></table>");
d.title=c;d.yh=this.yh;sb(d,function(){this.yh.Vd(this.id)});return d};Cd[_P].Ms=function(a){var b=this.t;return new re(function(c){fa(b.getElementById(c),"");b.getElementById(c+"-dialog-radio").checked="";ra(b.getElementById(c+"-content")[k],"none")},function(c){fa(b.getElementById(c),"tr_selected-tab-in-tabbed-pane");b.getElementById(c+"-dialog-radio").checked="checked";ra(b.getElementById(c+"-content")[k],"");if(a){a(c)}})};Cd[_P].ec=function(a){this.yh.Vd(a)};Cd[_P].Dg=function(){var a,b,c=this.lq;
for(var d=0;d<c[h];d++){a=c[d].id+"-dialog-radio";b=this.t.getElementById(a);if(b.checked!="")return c[d].Zs}return null};var ak=function(a,b,c,d){var e=a[ka];for(var f=0;f<e[h];f++){if(e[f][S]==1&&e[f].getAttribute("tabbedPaneCaption")){return new Cd(e[f],b,c,d)}}};Cd[_P].yt=function(){return this.ii};function jb(a,b){R.call(this);this.mb=[];this.jf=[];this.Ci=a;this.Lc=a.f;this.i=new Ra(this);this.cg={};this.Hn=null}jb.d(R);var sj=function(a,b,c){this.wb=a;this.content=b;this.Ns=c};sj[_P].Di=function(a){return this.wb==a.wb&&this[Y]==a[Y]};jb[_P].zr=function(a){if(this.mb[h]==0||!a.Di(this.mb[this.mb[h]-1])){this.mb.push(a);if(this.mb[h]>20){this.mb.shift()}this.jf=[];this.dispatchEvent({type:"redostatechange",enabled:false})}if(this.mb[h]==1){this.dispatchEvent({type:"undostatechange",enabled:true})}};
jb[_P].Dq=function(){this.$p(this.mb,this.jf);if(this.mb[h]==0){this.dispatchEvent({type:"undostatechange",enabled:false})}if(this.jf[h]==1){this.dispatchEvent({type:"redostatechange",enabled:true})}};jb[_P].Ij=function(){this.$p(this.jf,this.mb);if(this.jf[h]==0){this.dispatchEvent({type:"redostatechange",enabled:false})}if(this.mb[h]==1){this.dispatchEvent({type:"undostatechange",enabled:true})}};jb[_P].$p=function(a,b){if(a[h]){var c=a.pop(),d=this.Lc.C(c.wb);if(d){d.xh(true,true)}var e=this.cg[c.wb];
b.push(e);{d.bi(this.Ci)}this.Lc.Op(c.wb,c[Y]);this.Fx(c.wb,c.Ns);ad(c.wb);{var f=sc();this.Ci.Hq(f)}this.cg[c.wb]=c;this.Ci.kd();this.Rn=true;d.tb()}};jb[_P].Dt=function(a){var b=this.Lc.C(a),c=b&&b.Rc();if(!c){return null}var d=this.Lc.ha(a),e=c.p(),f=e.getSelection();return f?zm(f,d):null};jb[_P].Fx=function(a,b){if(b){var c=this.Lc.ha(a),d=this.Lc.C(a);b.Hp(c,d.Rc().U())}};jb[_P].Qu=function(a){if(a[gc]&&!a[Re]){if(a[Na]==90){if(a[pd]){this.Ij()}else{this.Dq()}return tc(a,false)}else if(a[Na]==
89){this.Ij();return tc(a,false)}}};jb[_P].Tw=function(a){this.i.g(a,"beforechange",this.Fo);this.i.g(a,"delayedchange",this.Io);this.i.g(a,"blur",this.Go)};jb[_P].is=function(a){if(this.i){this.i.Ca(a,"beforechange",this.Fo);this.i.Ca(a,"delayedchange",this.Io);this.i.Ca(a,"blur",this.Go)}};jb[_P].b=function(){if(this.i){this.i.b();this.i=null}};jb[_P].Fo=function(a){var b=a[aa],c=b.id;if(this.Hn!=c){this.Gq(b);this.Hn=c}};jb[_P].Io=function(a){if(this.Rn){this.Rn=false;return}var b=a[aa];this.Gq(b)};
jb[_P].Go=function(a){var b=a[aa];if(b){b.yl()}};jb[_P].Gq=function(a){if(a.vc()){return}var b=a.id,c=this.Lc.Wt(b),d=this.cg[b];if(d){this.zr(d)}var e=this.Dt(b);this.cg[b]=new sj(b,c,e)};;function s(a,b,c){R.call(this);this.Cb={};this.Fh=[];this.Bv=[];this.P=null;this.lc=new va(a);var d=this.lc.U(),e=d[ea];this.Lf=window;this.Or="http://pages.google.com/-/images/";this.Uh=Vm(b,e[Wd]);this.cj=Wm(this.Uh);this.aa=Um(d);this.f=new t(this.aa,this.lc,this.Uh);this.Ob=new jb(this,e);this.md=new Ra(this);this.Ib=new bc(this.Lf);this.style=new sa(this.f,c)}var Ih;s.d(R);s[_P].v=Fd("TR_Editor");var Kh=false,Wm=function(a){if(!Ih){Ih=new Ij(window,20,a)}return Ih},Vm=function(a,b){var c=!r&&
b=="CSS1Compat"?"standards":"quirks";return a+"static_files/blank_"+c+".html"},Um=function(a){var b=a[qb].toString(),c=b.substring(0,b.lastIndexOf("/")+1),d={base:c,winbase:c,draft:c,preview:c,live:c,edit:c};return new vc(d)};s[_P].Rc=function(){return this.lc};s[_P].zm=function(){return this.fz||0};s[_P].Lv=function(a){if(!this.f.un()){this.Gr()}if(Ba(a)){for(var b=0;b<a[h];++b){this.bo(a[b])}}else{this.bo(a)}};s[_P].fo=function(a,b){if(Ba(a)){for(var c=0;c<a[h];++c){this.co(a[c])}}else{this.co(a)}if(!this.f.un()){this.gs();
if(b){this.Vw()}this.pz=null}};s[_P].co=function(a){var b=a.id,c=this.f.ha(b);if(!c){this.f.Dl(b);return}this.hs(b);var d=a.nd;this.Ob.is(a);var e=this.Nm(b);this.f.Dl(b);{a.wh(false)}Q(d,e);a.mq();a.Ys()};s[_P].hf=function(){this.kd();if(this.Ta){this.Ta.b();this.Ta=null}if(this.Fn){this.Fn.b();this.Fn=null}if(this.Ib){this.Ib.b();this.Ib=null}var a=this.f.rt();this.fo(a,true);for(var b=0;b<a[h];++b){a[b].b()}if(this.Ob){this.Ob.b();this.Ob=null}if(this.md){this.md.b();this.md=null}this.fg=null};
s[_P].Gr=function(){var a=this.lc.m();this.md.g(this.Ib,Kd,this.Qg)};s[_P].gs=function(){if(this.md){this.md.zc()}};s[_P].Vw=function(){if(this.cj){this.cj.Uw();this.cj=null}};s[_P].ua={};s[_P].ib=function(a,b,c,d){var e=a.id;if(!this.ua[e]){this.ua[e]=new Ra(this)}this.ua[e].g(a,b,c,d)};s[_P].hs=function(a){if(this.ua[a]){this.ua[a].b();this.ua[a]=null}};s[_P].Xi=function(a,b){if(a[gc]||a[Gc]){this.Fu(a)}};s[_P].Fu=function(a){switch(a[Rf]){case Dg("b"):this.execute("+bold");tc(a);break;case Dg("i"):this.execute("+italic");
tc(a);break;case Dg("u"):this.execute(Hh);tc(a);break;case Dg("s"):tc(a)}};s[_P].on=function(a){var b=zd(a);if(r){this.Wi(b.id)}var c=this.f.Pc(b);c.tb()};s[_P].Wu=function(a){var b=zd(a),c=this.f.Pc(b);c.tb()};s[_P].Qg=function(){if(this.Ed())this.P.Qd()};s[_P].Kx=function(a,b,c,d){if(d){a.xh(true,true)}var e=a[Zd];if(e){this.f.Op(e.id,c)}else{Q(this.lc.qc(a.id),Eh(c))}if(d){a.kk()}else{a.tb()}};s[_P].Nm=function(a,b,c){var d=this.f.ha(a);return this.Mm(d,b,c)};var Tm=["lang_hashCode_","listen_hc_"].concat(["insertResized_",
"tabIndex","tabIndexSet"]);s[_P].Mm=function(a,b,c){if(this.f.C(a.id).vc()){var d="&nbsp;";if(c){c(d)}return d}var e=a.cloneNode(false),f=a[ib];if(r&&f.match(/^\s*<script/i)){f="&nbsp;"+f}Q(e,f);var g=e.getElementsByTagName("img");for(var i=0;i<g[h];i++){var j=g[i];j.removeAttribute("unselectable");j[k].cursor="";if(lm){An(j,Tm)}else{Im(j,false)}this.aa.ho(j)}if(r){this.mx(e)}var d=e[ib];if(c){c(d)}else{return d}};s[_P].Tj=function(a,b,c,d){var e=this.f.C(a.id);if(e){this.Kx(e,b,c,d)}};s[_P].Lp=function(a,
b,c){var d=this.f.C(a);if(d.vc()){d.bi(this)}this.Tj(d[Zd],false,b,c)};s[_P].mx=function(a){this.aa.lx(a,"a")};s[_P].Mu=function(a){this.dispatchEvent({type:"focus",mt:a[aa]})};s[_P].Lu=function(a){var b=this.f.C(a),c=b.M(),d=true;if(r){var e=b.db()?c:Lj(vn(c)),f=ta(e);if(rn(f)!=e){this.f.Cl(a)}else{d=false}}this.dispatchEvent({type:"blur",mt:b});if(d){if(b&&pe(c)){b.Xj(this)}}};s[_P].bo=function(a){var b=a.id;this.v.O("Starting make field editable "+b);var c=this.lc.qc(b);if(!c){return}a.nd=c;if(a.vc()){a.js(c,
this)}this.f.Hw(a,C(this.Ou,this));this.v.O("Ending make field editable "+b)};s[_P].Ou=function(a){this.v.O("Starting handleFieldOpen "+a);var b=this.f.ha(a),c=this.f.C(a);if(pe(b)&&sc()!=a){c.Xj(this)}else if(im){this.f.kx(a)}this.Hr(b);this.Ob.Tw(c);this.fy(c);c.ky();if(c.db()&&c.de()){this.at(a)}c.Ws();this.v.O("End handleFieldOpen "+a)};s[_P].at=function(a){var b=this.f;ca.setTimeout(function(){b.$s(a)},0)};s[_P].Hr=function(a){var b=a.id,c=this.f.C(b);if(jm){c.addListener(Hd,this.Xi,true,this)}c.addListener(xe,
C(this.Ob.Qu,this.Ob),false,this);if(r){this.ib(a,"mousedown",this.Nu)}this.ib(a,"dragdrop",this.on);{this.ib(c,"beforefocus",this.Wi.D(this,b))}this.ib(c,"focus",this.Mu);this.ib(c,"blur",this.Lu.D(this,b));this.ib(c,"selectionchange",bl(Hj,this));this.ib(c,"cvc",Hj.Nd(this));if(vh){this.ib(a,"paste",this.Wu,true);this.ib(a,"drop",this.on)}};s[_P].gt=function(a){if(r||pa){if(!this.f.ug()){this.f.De(a).focus()}}};s[_P].fy=function(a){var b=a.id;this.ib(a,"selectionchange",this.Mw.D(this,b));this.ib(a,
"mouseup",this.Vr)};s[_P].vs=function(a,b){if(Fh(a)){var c=this.f.eu().U();if(a.getAttribute("imageanchor")){return}var d=Fb(a,"img"),e=this.f.Pc(a);this.P=new M(this.Lf,c,a,e.Rc().U(),this.aa,this.Fh,this.To.D(this,"link"));if(this.Ta){this.Ta.zc()}else{this.Ta=new Ra(this)}this.Ta.g(this.P,"dispose",this.Xw);this.Ta.g(this.P,"change",this.Ur);this.Ta.g(this.P,cj,this.dispatchEvent);this.Ta.g(this.P,"closed",this.Du);if(d){this.oy(this.P,e)}else if(Fb(a,"a")){this.py(this.P)}if(this.zm()){this.P.Bx(this.zm())}this.P.Gw();
this.gt(a)}};s[_P].Xw=function(){this.Ta.zc()};s[_P].oy=function(a,b){this.Ta.g(a,"imageremoved",this.fv)};s[_P].py=function(a){a.by(this.iz);a.Lx(this.hz)};s[_P].fv=function(){};s[_P].Ur=function(a){if(a){var b=a.Wr,c=this.f.Pc(b);c.tb(a.Zv)}if(this.Ed()){this.P.Qd()}};s[_P].Vr=function(a){var b=zd(a);if(!Fb(b,"img")){b=vg(b,"a")}this.pf(b)};s[_P].Mw=function(){var a=this.f.p(),b=a.Xb(),c=b;if(!Fb(b,"img")){c=vg(b,"a")}this.pf(c)};s[_P].pf=function(a){if(this.Ed()&&a!=this.P.N()){this.kd()}if(a&&
!this.Ed()){this.vs(a)}};s[_P].Ed=function(){if(this.P){if(this.P.Fd()&&this.P.Fa&&this.P.Fa[n]){return true}else{this.P=null;return false}}else{return false}};s[_P].kd=function(){if(this.Ed()){this.P.jd()}};s[_P].Du=function(a){this.P=null;var b=a[aa].N(),c=this.f.Pc(b);c.lk(rg)};s[_P].To=function(a,b){var c=this.ym();if(c){if(a=="editHtml"){this.Mm(c.M(),false,this.Uo.D(this,c,a))}else{this.Uo(c,a,b)}}};s[_P].Uo=function(a,b,c){if(this.Ed()){this.kd()}var d,e=this[k].p();if(b=="link"){d=new X(this.Lf,
this.aa,e,this.Or,c,this.Bv);this.jm=v(d,"cancel",this.fw,false,this);this.km=v(d,"ok",this.gw,false,this)}else if(b=="editHtml"){d=new ua(this.Lf,e,this.cw.D(this,a.M()),this.aa,this.Uh,this.Sz);d.xa(c)}Kh=true;a.rf(rg);d.Qp(this);this.fg=v(d,"close",this.Gu,false,this);d.fc()};s[_P].ym=function(){var a=this[k].p(),b=this.f.ug();if(!b){b=this.f.Et();this.ye(b.id)}return b};s[_P].Bm=function(a){var b=this.f.ug();return this[k].Bm(a,b)};var sg="+formatBlock",Hh="+underline";s[_P].execute=function(a,
b){this.kd();var c=this.ym();if(!c){return false}if(a=="+undo"){this.Ob.Dq()}else if(a=="+redo"){this.Ob.Ij()}else{if(x){c.xh(true,true)}c.gg();var d=this[k].ot(a,b);c.tb();if(a=="+link"){this.av(d)}else{c.wi()}}return false};s[_P].ye=function(a){ad(a);this.lc.rg();this.f.ye(a)};s[_P].av=function(a){if(a){var b=cd(a);if(ik(b)){this.Wp(a,Yh(b))}else if(Eg(b)){this.Wp(a,"mailto:"+b)}else{this.To("link",a)}}else{this.kd()}};s[_P].Wp=function(a,b){Ze(a,b);this.pf(a);var c=this[k].p();c.kh(a)};s[_P].zl=
function(){Sa(this.jm);this.jm=null;Sa(this.km);this.km=null};s[_P].fw=function(a){var b=a[aa].N();if(b[n]){this.pf(b)}this.zl()};s[_P].gw=function(a){var b=a[aa].N();this.pf(b);var c=this.f.Pc(b);c.tb();this.zl()};s[_P].Nu=function(a){var b=zd(a);if(!sc()){var c=this.f.De(b).id;ad(c)}if(r&&Fb(b,"a")&&a[gc]){this.lc.Vo(b[od],"")}};{s[_P].cw=function(a,b){var c=a.id,d=this.f.C(c);if(d.vc()){this.Wi(c)}this.Lp(c,b);if(x){Gj(ta(a),this.aa)}var e=this.f.p();ca.setTimeout(C(e.empty,e),0);d.tb()}}{s[_P].Wi=
function(a){this.f.C(a).bi(this)};s[_P].Hq=function(a){var b=this.f.C(a);if(a!=sc()&&pe(b[Zd])){b.Xj(this)}}}var Jh=function(){return Kh};s[_P].hj=function(){return Jh()};s[_P].Gu=function(){if(this.fg){Sa(this.fg);this.fg=null}Kh=false};;;;var N=function(a){Z.call(this,a);this.ld=pb.he};N.d(Z);var Dl=x?"p {margin:0;padding:0;}\n ul, ol {margin:0 0 0 $LEFT$;padding:0;}\n":null,Ap={title:2,centeredTitle:2,subtitle:1.5};N[_P].q=null;N[_P].im=false;N[_P].ee=false;N[_P].kl=false;N[_P].oe=null;N[_P].Rb=function(){return"presently.TextShape"};N[_P].ei=function(){var a=this.n().cloneNode(false);if(a.contentEditable){a.contentEditable=false}Q(a,this.H());am(a);return a};N[_P].Ub=function(){return Fl()};N[_P].M=function(){return this.q};N[_P].p=
function(){return this.q?this.q.p():null};N[_P].ya=function(a){if(this.Pb&&!a||!this.Pb&&a){N.h.ya.call(this,a);if(!a){this.Us();this.Kj()}else{this.Lq()}}};N[_P].zs=function(){if(!r&&!x){return}if(!this.q){this.Kj();this.q=new u(this.s(),2,this.Gt());var a=this.vd();a.g(this.q,"load",this.Ko);a.g(this.q,"delayedchange",this.Bo);a.g(this.q,"focus",this.Jo);a.g(this.q,"beforeblur",this.yo);a.g(this.q,"blur",this.Ho);a.g(this.q,"selectionchange",this.Lo);a.g(this.q,"beforetab",this.bw);this.Ub().Lv(this.q)}};
N[_P].At=function(){return Dl.replace("$LEFT$",1.5/(Ap[this.Ad()]||1)+"em")};N[_P].Gt=function(){var a={loremIpsumMessage:this.Mi(),minHeight:Sl(this.n())};if(Dl!=null){a.cssStyles=this.At()}return a};N[_P].Us=function(){if(!r&&!x){return}if(this.q){var a=this.vd();a.Ca(this.q,"load",this.Ko);a.Ca(this.q,"delayedchange",this.Bo);a.Ca(this.q,"focus",this.Jo);a.Ca(this.q,"beforeblur",this.yo);a.Ca(this.q,"blur",this.Ho);a.Ca(this.q,"selectionchange",this.Lo);this.q.Np(this.zd());this.Ub().fo(this.q,
false);this.q=null;Sa(this.kl)}ca.focus()};N[_P].My=function(){if(this.q){this.q.Qx(Sl(this.n()))}};N[_P].H=function(){if(!(!this.q)){return this.Ub().Nm(this.s())}else if(this.ee){this.al();return""}else{return N.h.H.call(this)}};N[_P].zt=function(){return this.ee?this.a[ib]:this.H()};N[_P].Mi=function(){return wp(this.Ad())};N[_P].Kj=function(){if(!this.ee){return}if(!this.al()){return}Q(this.a,"");cc(this.a,"lorem-ipsum");this.ee=false};N[_P].Lq=function(){if(this.La()&&this.Pb){Q(this.a,this.Mi());
Za(this.a,"lorem-ipsum");this.ee=true}};N[_P].al=function(){if(!this.ee)return true;if(this.zt()!=this.Mi()){Ta("TextShape.removeLoremIpsumText_: Invalid state: usingPresentlyLoremIpsum but text field contents aren't valid lorem ipsum message.");return false}return true};N[_P].La=function(){return pe(gm(this.H()))};N[_P].xa=function(a,b){if(!this.q){this.Kj();var c=N.h.xa.call(this,a,b);this.Lq();return c}if(a!=this.H()){this.Ub().Lp(this.s(),a);this.Ub().Hq(this.s());this.dispatchEvent(Hf);return true}return false};
N[_P].bw=function(a){var b=this.Ub(),c=b.f.p();if(this.vx()){b.execute(a[pd]?"+outdent":"+indent")}else{this.q.xh(true,true);var d=this.Ub().f.td(),e=d.createElement("span");d.cy(e,"\u00a0\u00a0 \u00a0");e=c.insertNode(e);if(!c.uc()&&!c.La()){b.execute("delete")}else{this.q.tb()}c.kh(e);this.q.wi()}a.preventDefault()};N[_P].vx=function(){var a=this.Ub().f.p(),b=a.Xb();while(b&&(b[S]!=1||!Gb(b,"placeholder"))){if(b[xa]=="LI"){return true}b=b[n]}var c=new Nb(a);while(!c.Xg()){if(c.r[xa]=="LI"){return true}c.next()}return false};
N[_P].Ko=function(a){if(this.q.db()){this.kl=Cp(this.q.Lm(),xe,Pg())}this.Ub().ye(this.s());Da("TextShape.onFieldLoad_: "+this.toString())};N[_P].zj=function(a){Da("TextShape.onMouseDown");this.zs();N.h.zj.call(this,a)};N[_P].Bo=function(a){Da("TextShape.onDelayedFieldChange_: New contents for "+this.toString());var b=null;try{Da("Before scrub: "+(this.M()?this.M().M()[ib]:this.H()));Rl(this);Da("After scrub: "+(this.M()?this.M().M()[ib]:this.H()))}catch(c){b=c}Da("Saving delayed changes.");this.J("contents",
this.H());this.dispatchEvent(Hf);if(b){throw b;}};N[_P].Jo=function(a){Da("TextShape.onFieldFocus_: "+this.toString());this.im=true};N[_P].yo=function(a){Da("TextShape.onBeforeFieldBlur_: "+this.toString());this.Xl();Tp(this)};N[_P].Ho=function(a){Da("TextShape.onFieldBlur_: "+this.toString());this.im=false};N[_P].Lo=function(a){Da("TextShape.onFieldSelectionChange_: "+this.toString());this.Xl()};N[_P].ak=function(a){var b=this.$m();N.h.ak.call(this,a);if(b[z]!=a[z]){this.My()}};N[_P].ku=function(){if(this.M().de()){return Lp(this.n(),
1)}return 1};N[_P].Xl=function(){if(this.oe){var a=this.oe[Wf].replace(/\u202c|\u202d/,"");if(a[h]){this.oe.innerText=a}else{ga(this.oe)}}this.oe=null};var wp=function(a){switch(a){case V.Ff:case V.Gf:case V.If:case V.fe:return Jb(M_DEFAULT_BODY_TEXT);case V.Ef:return Jb(M_DEFAULT_CAPTION_TEXT);case V.ge:return Jb(M_DEFAULT_TITLE_TEXT);case V.Lh:return Jb(M_DEFAULT_SUBTITLE_TEXT);case V.dd:return Jb(M_DEFAULT_SLIDE_TITLE_TEXT);default:return""}},xp=function(a){switch(a){case V.ge:return"font-size:1.8em";
case V.Lh:return"font-size:1.2em";case V.Ef:return"font-size:1.2em";case V.dd:return"font-size:1.6em";case V.If:return"width: 50%; height: 25%; top: 25%; left: 25%";case V.Ff:case V.Gf:case V.fe:default:return""}},jh=null,yp=false,El=function(a){jh=new s(a||ca,Pl());v(jh,[Ch,"close"],zp)},Fl=function(){if(!jh){El()}return jh},zp=function(a){yp=a&&a[B]==Ch};ub("_createCccEditor",El);ub("_getCccEditor",Fl);var G=function(a){H.call(this,a);this.Pf=this.w+"Build"};G.d(H);G[_P].Zg=null;G[_P].L=null;G[_P].Ah=null;G[_P].Uc=0;G[_P].ca=0;G[_P].Pf=null;G[_P].Rb=function(){return"presently.EditableSlide"};G[_P].I=function(a){var b=G.h.I.call(this,a);b.Vj(this.Fe());b.L=this.L;return b};G[_P].hv=function(){var a=this.Fe(),b=op(a);for(var c=0,d=b[h];c<d;c++){this.sc(this.Es(b[c]),c)}};G[_P].Es=function(a){var b=this.Pl(pb.he);b.Wd(a);b.uh(xp(a));return b};G[_P].Pl=function(a){return this.Ze(null,{contenttype:a})};
G[_P].Js=function(a){switch(a){case pb.he:return new N;case pb.Kh:return new fc;case pb.Df:return new Ii;case pb.Uq:return new mp;default:pq("Unsupported shape content type: "+a);return null}};var op=function(a){switch(a){case "LAYOUT_TITLE_SLIDE":return[V.ge,V.Lh];case xl:return[V.dd,V.fe];case "LAYOUT_2_COLUMNS_TITLE":return[V.dd,V.Ff,V.Gf];case "LAYOUT_BODY":return[V.fe];case "LAYOUT_2_COLUMNS":return[V.Ff,V.Gf];case "LAYOUT_BODY_CAPTION":return[V.fe,V.Ef];case "LAYOUT_CAPTION":return[V.Ef];case wl:default:return[]}};
G[_P].be=function(){return(new vb('<div class="')).c("slide").c(" ").c(this.Fe()).c('" id="').c(this.s()).c('" revision="').c(this.Ie()).c('">').c(this.Ki()).c("</div>").toString()};G[_P].Oi=function(){return this.L};G[_P].Fe=function(){return this.Zg};G[_P].Vj=function(a,b){if(a!=this.Zg){this.Zg=a;this.dispatchEvent("slide_layout_changed");if(!b){this.J("layout",this.Fe())}return true}return false};G[_P].H=function(){var a=new vb;this.xb(function(b){a.c("<!-- p$").c(b.s()).c("$ --\>");a.c(b.be());
a.c("<!-- /p$").c(b.s()).c("$ --\>")});return a.toString()};G[_P].Cs=function(a,b){Ye(a[k],"width: 100%; height: 100%;");var c=this.n()[$].createElement("div");c.appendChild(a);var d=c[ib];ga(c);var e=this.Pl(pb.Kh);e.xa(d);var f=b||new nb(a[Xf],a.naturalHeight);e.Fp(f);return e};G[_P].sc=function(a,b){G.h.sc.call(this,a,b);this.Qy([a]);this.dispatchEvent(new Qc(this,"shape_inserted",a.s()))};G[_P].Qy=function(a){var b=this.Kn();jc(a,function(c){this.Dh(c);c.ya(b)},this)};G[_P].Ze=function(a,b,c){var d=
b.contenttype,e=this.Js(d);e.nf(a||this.xd().Qm()(e));if(!c){e.J("action","create");e.J("index",-1);e.J("contenttype",d)}e.Wd(V.If,c);return e};G[_P].pi=function(a,b){if(!a){throw new Error("Attempted to delete a non-existent shape");}var c=a.s();this.dispatchEvent(new Qc(this,"before_delete_shape",c));if(!b){var d=a.Be("action");if(d=="create"){this.zk(a)}else{a.J("action","delete")}}this.removeChild(a,true);a.b();if(this.Ah==c){this.L="";this.Ah=null;this.dispatchEvent(zl);jc(this.Y,function(e){this.Dh(e)},
this)}this.dispatchEvent(new Qc(this,"shape_deleted",c))};G[_P].l=function(){G.h.l.call(this,"slide "+this.Fe())};G[_P].We=function(a,b,c){var d=G.h.We.call(this,a,b,c);if(d){this.dispatchEvent("shape_moved")}return d};G[_P].Dh=function(a){var b=a.Ad();if(a.s()==this.Ah||(b==V.dd||b==V.ge)&&!this.L){this.L=a.vu();this.Ah=a.s();this.dispatchEvent(zl)}};G[_P].Ao=function(a){var b=a[aa];if(b){this.Dh(b)}};G[_P].b=function(){if(!this.$()){G.h.b.call(this);this.Zg=null}};G[_P].Ja=function(){G.h.Ja.call(this);
this.vd().g(this,Hf,this.Ao)};G[_P].Ya=function(){G.h.Ya.call(this);this.vd().Ca(this,Hf,this.Ao)};G[_P].us=function(a){var b=this.Ce(0),c=this.Ce(1),d=this.e.Gc("h1",null,a);for(var e=0,f;f=d[e];e++){var g=bh(this.e.xu(f));if(g!=""){b.uh([f[k][Dc],b.zd()].join(" "));b.xa(g);this.Dh(b);ga(f);break}}var i=this.e.Gc("img",null,a);if(i[h]){var j=!i[0][Xf],l=new Ac;for(var e=0,m;m=i[e];e++){var q=this.Cs(m);this.sc(q,this.xg());l.wr(q.s(),m)}if(j){var w=this.vd();w.g(l,"load",function(D){var da=D[aa],
bb=new nb(da[Xf],da.naturalHeight);this.Oc(da.id).Fp(bb)});l.start()}}c.xa(a[ib])};G[_P].cd=function(a,b){switch(a){case "layout":this.Vj(b,true);break;default:G.h.cd.call(this,a,b);break}};G[_P].gd=function(){if(this.ic&&this.ca<this.Uc){var a=O.getElementById(this.Nc(this.ca++));Ob(a,true);return true}return false};G[_P].ce=function(){if(this.ic&&this.ca>0){var a=O.getElementById(this.Nc(--this.ca));Ob(a,false);return true}return false};G[_P].Of=function(){while(this.gd()){}};G[_P].Cq=function(){while(this.ce()){}};
G[_P].nl=function(a){if(this.ic){while(this.ca<a){this.gd()}while(this.ca>a){this.ce()}}};G[_P].Qb=function(){return this.ca};var wl="LAYOUT_BLANK_SLIDE",xl="LAYOUT_TITLE_BODY_SLIDE";G[_P].Nc=function(a){return this.Pf+a};var Rc=function(a,b,c){this.w=a;this.X=b;this.jg=c};Rc[_P].w=null;Rc[_P].X=null;Rc[_P].jg=null;Rc[_P].Di=function(a){return this===a||!(!a)&&this.w==a.w&&this.X==a.X&&this.jg==a.jg};Pa(Rc[_P],function(){return(new vb('<User id="')).c(this.w).c('" name="').c(this.X).c('" email="').c(this.jg).c('"/>').toString()});Rc[_P].s=function(){return this.w};var La=function(a,b){K.call(this,b);if(ja(a)){this.nf(a)}this.fd=null;this.rd=null;this.qh=1;this.$d=null};La.d(K);var Hl="goog-presently-view",kh="goog-presently-background",Gl="goog-presently-foreground";La[_P].Sf=function(a){return a&&a[S]==1&&a[xa]=="DIV"&&!a[W]};La[_P].Ja=function(){La.h.Ja.call(this);var a=this.n();Za(a,Hl,this.$d);this.bl(this.fd);this.cl(this.rd);this.Sp(this.qh)};La[_P].Ya=function(){var a=this.n();cc(a,Hl,this.$d);this.si();this.ri();La.h.Ya.call(this)};La[_P].b=function(){if(!this.$()){if(this.rd){this.si();
this.rd=null}if(this.fd){this.ri();this.fd=null}La.h.b.call(this)}};La[_P].Sp=function(a){if(typeof a!="number"||a<=0){return}this.qh=a;if(this.ja()){var b=20*a+"pt",c=this.n();ra(c[k],"none");F(c,"fontSize",null);if(x){window.setTimeout(function(){F(c,"fontSize",b);ra(c[k],"block")},1)}else{F(c,"fontSize",b);ra(c[k],"block")}}};La[_P].Up=function(a){if(a!=this.$d){if(this.ja()){var b=this.n();if(this.$d){cc(b,this.$d)}if(a){Za(b,a)}}this.$d=a}};La[_P].Pt=function(){return this.rd};La[_P].Lj=function(a){var b=
this.si();this.cl(a);return b};La[_P].st=function(){return this.fd};La[_P].oh=function(a){var b=this.ri();this.bl(a);return b};La[_P].cl=function(a){if(a&&this.ja()){Za(a,Gl);Nc(this.n(),a);if(r){var b=this.Im("ie-hack");if(b==null){b=Og("div",{"class":"ie-trans-hack",style:"width: 100%; height: 100%; position: absolute;"});b.id=this.eo("ie-hack")}Gk(b,a)}}this.rd=a};La[_P].si=function(){var a=this.rd;if(a){cc(a,Gl);ga(a)}return a};La[_P].bl=function(a){if(a&&this.ja()){var b=this.n();Za(a,kh);b.insertBefore(a,
b[W])}this.fd=a};La[_P].ri=function(){var a=this.fd;if(a){cc(a,kh);ga(a)}return a};var ob=function(a,b){La.call(this,a,b);this.Sw=Al;this.Aa=null};ob.d(La);var Al=new nb(800,600);ob[_P].Ja=function(){ob.h.Ja.call(this);if(this.Aa){this.ek(this.Aa)}else{this.ed()}};ob[_P].Qi=function(){return this.Aa};ob[_P].ek=function(a){if(a){this.Aa=a;if(this.ja()){cq(this.n(),a);this.Ep(a);this.Mp(a);this.bx()}}};ob[_P].ed=function(){if(this.ja()){var a=Je(this.n()[n]);this.ek(a)}};ob[_P].iu=function(){return this.Sw};
ob[_P].Lj=function(a){if(a){ra(a[k],"none")}var b=ob.h.Lj.call(this,a);if(a){this.Mp(this.Qi());ra(a[k],"block")}return b};ob[_P].oh=function(a){if(a){ra(a[k],"none")}var b=ob.h.oh.call(this,a);if(a){this.Ep(this.Qi());ra(a[k],"block")}return b};ob[_P].Mp=function(a){var b=this.Pt();if(a&&b){Ke(b,a)}};ob[_P].Ep=function(a){var b=this.st();if(a&&b){Ke(b,a)}};ob[_P].bx=function(){var a=this.Qi(),b=this.iu();if(a&&b){var c=y.min(a[J]/b[J],a[z]/b[z]),d=this.n();this.Sp(c)}};var I=function(a,b){H.call(this);this.An=a;this.vf=b};I.d(H);I[_P].Ha=null;I[_P].Aa=null;I[_P].vf=null;I[_P].ul=null;I[_P].wp=null;I[_P].L=null;I[_P].uf=null;I[_P].rq=null;I[_P].Fl=null;I[_P].Wo=null;I[_P].Gh=null;I[_P].Ih=null;I[_P].An=null;I[_P].Rb=function(){return"presently.EditablePresentation"};I[_P].be=function(){var a=new vb;a.c("presentation_").c('" id="').c(this.s()).c('" revision="').c(this.Ie()).c('">');this.xb(function(b){a.c("<!-- s$").c(b.s()).c("$ --\>");a.c(b.be());a.c("<!-- /s$").c(b.s()).c("$ --\>")});
a.c("</div>");return a.toString()};I[_P].H=function(){var a=new vb;this.xb(function(b){a.c("<!-- s$").c(b.s()).c("$ --\>");a.c(b.toString());a.c("<!-- /s$").c(b.s()).c("$ --\>")});return a.toString()};I[_P].Wx=function(a){if(a&&a!=this.wp){this.wp=a;var b=a.split(":"),c=b[0];if(c){this.nf(c)}var d=b[1];if(d){this.Vx(d)}}};I[_P].Cx=function(a){if(a&&a!=this.ul){this.ul=a}};I[_P].Oi=function(){return this.L};I[_P].Vp=function(a,b){if(a!=this.L){this.L=a;this.dispatchEvent("title_changed");if(!b){this.J("title",
this.Oi())}return true}return false};I[_P].yu=function(){return this.uf};I[_P].of=function(a,b){if(a!=this.uf){this.uf=a;this.Ry();this.dispatchEvent("theme_changed");if(!b){this.J("theme",this.yu())}return true}return false};I[_P].Ry=function(){if(this.ja()){if(this.Ha&&x){this.Ha.ya(false)}var a=this.n(),b=mk(tf(a),np);bl(cc,a).apply(null,b);Za(a,"goog-presently-theme-"+this.uf);var c=null;if(r){c=this.Im("ie-hack");if(c){ga(c)}}var d=this.Gi();if(d){d[n].removeChild(d)}d=this.vf.Ni(this.uf);if(this.Aa){Ke(d,
this.Aa)}Za(d,kh);a[n].insertBefore(d,a);if(c!=null){this.lv(c)}if(this.Ha&&x){this.Ha.ya(true)}}};var np=function(a){return wi(a,"goog-presently-theme-")};I[_P].Gi=function(){if(this.ja()){var a=this.n()[n][W];if(a&&Gb(a,kh)){return a}}return null};I[_P].lv=function(a){var b=this.Ha;if(b){var c,d=b.Ce(0);if(d&&d.Dm()==pb.Df){c=d.n()}else{c=this.Gi()}if(c!=null){Fk(a,c)}}};I[_P].Tb=function(){return this.Ha};I[_P].ed=function(){if(this.ja()){if(this.Ha&&x){this.Ha.ya(false)}var a=this.n(),b=Je(a[n]);
this.Aa=b;Ke(this.Gi(),b);Ke(a,b);if(this.Ha){Ke(this.Ha.n(),b)}U(a,false);F(a,"fontSize",null);var c=y.min(b[J]/800,b[z]/600),d=20*c+"pt";window.setTimeout(C(function(){F(a,"fontSize",d);U(a,true);if(this.Ha&&x){this.Ha.ya(true)}},this),1)}};I[_P].dy=function(a){if(a!=this.rq){this.rq=a;this.dispatchEvent("timestamp_changed")}};I[_P].Ex=function(a){if(a!=this.Fl){this.Fl=a;this.dispatchEvent("coeditors_changed")}};I[_P].Rx=function(a){var b=new Rc(a.id,a.name,a.email);if(!b.Di(this.Wo)){this.Wo=
b;this.dispatchEvent("owner_changed")}};I[_P].hy=function(a){if(a){if(this.Gh){lk(this.Gh)}else{this.Gh=[]}jc(a,function(b){this.Gh.push(new Rc(b.id,b.name,b.email))},this);this.dispatchEvent("viewers_changed")}};I[_P].iy=function(a){if(a){if(this.Ih){lk(this.Ih)}else{this.Ih=[]}jc(a,function(b){this.Ih.push(new Rc(b.id,b.name,b.email))},this);this.dispatchEvent("writers_changed")}};I[_P].Qm=function(){return this.An};I[_P].Wb=function(){return this.xg()};I[_P].Ks=function(a){a=a||wl;var b=this.Ze();
b.Vj(a);return b};I[_P].sc=function(a,b,c){I.h.sc.call(this,a,b,c);U(a.n(),false);this.dispatchEvent(new Qc(this,"slide_created",a.s()))};I[_P].We=function(a,b,c){var d=I.h.We.call(this,a,b,c);if(d){this.dispatchEvent(new Qc(this,"slide_moved",a.s()))}return d};I[_P].pi=function(a,b){if(!a){throw new Error("Attempted to delete a non-existent slide");}var c=a.s();this.dispatchEvent(new Qc(this,"before_delete_slide",c));if(!b){var d=a.Be("action");if(d=="create"){this.zk(a)}else{a.J("action","delete")}}this.removeChild(c);
a.b();this.dispatchEvent(new Qc(this,"slide_deleted",c))};I[_P].Ze=function(a,b,c){var d=new G;d.nf(a||this.Qm()(d));if(!c){d.J("action","create");d.J("index",-1)}return d};I[_P].ts=function(a){Da("EditablePresentation: Legacy document.");var b=this.n();Q(b,a);var c=null;while(c=this.e.Gc("font",null,b)[0]){hq(c)}$l(b);var d=this.e.l("div"),e=this.e.l("div");d.appendChild(e);var f;while(f=b[W]){e.appendChild(f)}var g=this.e.Gc("hr","slideBreak_",d);if(!g||g[h]==0){var i=this.e.Gc("h1",null,d);for(var j=
1,l;l=i[j];j++){var m=this.e.l("hr",{className:"slideBreak_"});l[n].insertBefore(m,l);g.push(m)}}for(var j=0,m;m=g[j];j++){oq(d,m);bm(m)}var q=0;e=this.e.Ot(d);while(e){var w=xl,D=this.Ks(w);this.sc(D,q++);D.hv();D.us(e);e=this.e.au(e)}ga(d)};I[_P].Ke=function(a){return this.Ce(a)};I[_P].cd=function(a,b,c){switch(a){case "revision":this.Wx(b);break;case "cancelRevision":this.Cx(b);break;case "title":this.Vp(b,c);break;case "theme":this.of(b,c);break;case "lastEdited":case "timestamp":this.dy(b);break;
case "coeditors":this.Ex(b);break;case "owner":this.Rx(b);break;case "viewers":this.hy(b);break;case "writers":this.iy(b);break;case "contents":this.ts(b);break;default:I.h.cd.call(this,a,b,c);break}};var xb=function(a,b,c){var d=Ja();if(!a){Ta("Slide: Unable to create Slide, id is null");return}var e=o(a);if(!e){Ta('Slide: Unable to create Slide, no element with id="'+a+'" found');return}this.w=a;this.ic=!b;this.qh=!c;this.Uc=0;this.ca=0;this.Pf=this.w+"Build";this.xz=this.w+"Image";this.L=null;this.kv();if(this.ic){var f=Ni("incremental",e);for(var g=0;g<f[h];g++){if(f[g][xa]=="OL"||f[g][xa]=="UL"){var i=f[g][W];while(i&&i[n]&&i[n]==f[g]){if(i[S]==1){i.id=this.Nc(this.Uc++);Ob(i,false)}i=i[Ua]}}else{f[g].id=
this.Nc(this.Uc++);Ob(f[g],false)}}}Nf('Initialized slide (id="'+this.w+'")',d)};xb[_P].kv=function(){var a=qp(this.Fg());for(var b=0,c=a[h];b<c;b++){var d=a[b],e=rp(d),f=sp(d);if(e==pb.he&&(f==V.dd||f==V.ge)){this.L=ve(d);break}}};xb[_P].s=function(){return this.w};xb[_P].Fg=function(){return o(this.w)};xb[_P].cn=function(a){var b=this.L;if(b){var c=bh(b);if(a!=null){if(a<4){a=4}return c[h]<=a?c:c.substr(0,a-3)+"..."}else{return c}}return""};xb[_P].gd=function(){if(this.ic&&this.ca<this.Uc){var a=
O.getElementById(this.Nc(this.ca++));Ob(a,true);return true}return false};xb[_P].ce=function(){if(this.ic&&this.ca>0){var a=O.getElementById(this.Nc(--this.ca));Ob(a,false);return true}return false};xb[_P].Of=function(){while(this.gd()){}};xb[_P].Cq=function(){while(this.ce()){}};xb[_P].nl=function(a){if(this.ic){while(this.ca<a){this.gd()}while(this.ca>a){this.ce()}}};xb[_P].Qb=function(){return this.ca};xb[_P].H=function(){var a=this.Fg();return a?'<div class="'+a[hb]+'">'+a[ib]+"</div>":""};Pa(xb[_P],
function(){return'<Slide id="'+this.w+'" title="'+this.cn(20)+'" build="'+this.ic+'" scale="'+this.qh+(this.Uc!=0?'" numBuilds="'+this.Uc:"")+'" />'});xb[_P].Nc=function(a){return this.Pf+a};var Ji=function(a){var b=Ja();if(!a){Ta("Gallery: Unable to create gallery, name is null");return}var c=o(a);if(!c){Ta('Gallery: Unable to create gallery, no data source with id="'+a+'" found');return}this.X=a;this.xm={};var d=Ni("slide",c,"div");for(var e=0;e<d[h];e++){var f=d[e].id;if(f){this.xm[f]=new xb(f,true,false);Da("Gallery: Added "+d[e]+" to the gallery")}else{Ta("Gallery: Ignoring <div> at index "+e+"; no ID found")}}Nf('Initialized gallery (id="'+a+'")',b)};Pa(Ji[_P],function(){return'<Gallery name="'+
this.X+'" />'});Ji[_P].Ni=function(a){var b=null,c=a?this.xm[a]:null;if(c){b=c.Fg().cloneNode(true);b.id=null}return b};var Rd=function(a){var b=Ja();if(!a){Ta("Presentation: Unable to create presentation, id is null");return}var c=o(a);if(!c){Ta('Presentation: Unable to create presentation, no element with id="'+a+'" found');return}this.w=a;this.Kc=[];var d=Ni("slide",c,"div");for(var e=0;e<d[h];e++){if(!d[e].id){d[e].id=this.pu(e)}var f=new xb(d[e].id);this.Kc.push(f);Da("Presentation: Added "+this.Ke(e)+" to the deck")}Nf('Initialized presentation (id="'+a+'")',b)};Pa(Rd[_P],function(){return'<Presentation id="'+
this.w+'" numSlides="'+this.Kc[h]+'" />'});Rd[_P].s=function(){return this.w};Rd[_P].Wb=function(){return this.Kc[h]};Rd[_P].Ke=function(a){if(typeof a=="undefined"||a<0||a>=this.Kc[h]){Ta("Presentation.getSlide: Index "+a+" out of bounds");return null}return this.Kc[a]};Rd[_P].pu=function(a){if(typeof a=="undefined"){Ta("Presentation.getSlideIdFromIndex: Unable to generate ID, index is null");return null}return this.w+"Slide"+a};Rd[_P].cx=function(){for(var a=0;a<this.Kc[h];a++){this.Kc[a].Cq()}};var vl;(function(){function a(i){var j=i.match(/[\d]+/g);Db(j,3);return j.join(".")}var b=false,c="";if(ab[Yf]&&ab[Yf][h]){var d=ab[Yf]["Shockwave Flash"];if(d){b=true;if(d.description){c=a(d.description)}}if(ab[Yf]["Shockwave Flash 2.0"]){b=true;c="2.0.0.11"}}else if(ab[Xc]&&ab[Xc][h]){var e=ab[Xc]["application/x-shockwave-flash"];b=e&&e.enabledPlugin;if(b){c=a(e.enabledPlugin.description)}}else{try{var f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");b=true;c=a(f.GetVariable("$version"))}catch(g){try{var f=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");b=true;c="6.0.21"}catch(g){try{var f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");b=true;c=a(f.GetVariable("$version"))}catch(g){}}}}vl=c})();(function(){var a="";function b(e){var f=e.match(/\d/g);return f.join(".")}if(pa&&ab[Xc]&&ab[Xc][h]>0){var c=ab[Xc]["application/photo"];if(c){var d=c.description;if(d){a=b(d)}}}})();var ih="hasPicasa";(function(){var a=false;if(r){ca[ih]=a;O.write('<!--[if gte Picasa 2]><script type="text/javascript">this.'+ih+"=true;<\/script><![endif]--\>");a=ca[ih];ca[ih]=Ma}else if(ab[Xc]&&ab[Xc]["application/x-picasa-detect"]){a=true}})();var Ca=function(a,b,c){this.X=a;this.Ph=b;this.$k=c;this.ra=0;this.qd=null;this.Re=false;this.um=false;this.Ra=[];this.Hj=null;this.nk=null;if(ul){this.hh="windows"}else if(Gi){this.hh="macintosh"}else if(gh){this.hh="linux"}else{this.hh=""}},Ei,jp=function(){if(typeof Ei=="undefined"){Ei=ab.userAgent.toLowerCase().indexOf("firefox/1.0")>=0}return Ei};Ca[_P].$q=function(){return this.Ph+this.$k};Ca[_P].Kk=function(){return this.ra};var hp="<p style='font-family:Arial; color:#666666; font-size:.8em; margin:0; padding:0'>"+
Jb("Oops!<br><br>The Google Talk Gadget requires Adobe Flash Player version {$ver} or higher.<br>You can install the player {$link_start}here{$link_end}.<br><br>To complete the installation, quit all running instances of your browser.",{Dv:"<a href='http://www.google.com/url?sa=D&q=http://www.macromedia.com/go/getflashplayer' target='_blank'>",Cv:"</a>",Uy:"%s"})+"</p>",ip="<p style='font-family:Arial; color:#666666; font-size:.8em; margin:0; padding:0'>"+Jb("Oops!</span><br><br>The Google Talk Gadget requires Adobe Flash Player version {$ver} or higher.<br>You can install the player {$link_start}here{$link_end}.<br><br>Once you have completed the installation, refresh this page.",
{Dv:"<a href='http://www.google.com/url?sa=D&q=http://www.macromedia.com/go/getflashplayer' target='_blank'>",Cv:"</a>",Uy:"%s"})+"</p>";Ca[_P].mr=function(a,b,c,d,e,f,g,i,j){var l=!(!a);this.Vv=!l;this.nb=l;this.Pq=c;this.xn=d;if(l){this.G=O.getElementById(a);F(this.G,"z-index","2")}else if(typeof this.G=="undefined"){var m=1,q=1;if(gh&&jp()){m=c;q=y.max(d,0.75*c+150)}this.G=O.createElement("DIV");if(i){F(this.G,"position","absolute");F(this.G,"top",f+"px")}else{F(this.G,"position","absolute");F(this.G,
"top",f+"px")}F(this.G,"left",e+"px");F(this.G,"width",m+"px");F(this.G,"height",q+"px");F(this.G,"overflow","hidden")}Gg(C(this.bt,this,l,b,g,j),0);Gg(function(){},0)};Ca[_P].bt=function(a,b,c,d){var e=gh?"9":"8";if(Hi(vl,e)>=0){Q(this.G,this.ar(b,"100%","100%",c,false,d))}else{var f=ah(r?ip:hp,e);Q(this.G,f);this.Hf(4)}if(!a){O[E].appendChild(this.G)}this.qd=O.getElementById("flash_"+this.X)};Ca[_P].ar=function(a,b,c,d,e,f){var g=this,i=function(da){g.Ok(da)},j=function(da,bb){g.dr(da,bb)};window["Recv_"+
this.X]=i;window[this.X+"_DoFSCommand"]=j;if(r){var l=O.createElement("SCRIPT");l.event="FSCommand(command,args)";l.htmlFor="flash_"+this.X;l.text=this.X+"_DoFSCommand(command, args)";O[E].appendChild(l)}var m=r?"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' id='%s' name='%s' width='%s' height='%s' style='%s'><param name='scale' value='noScale'/><param name='movie' value='%s'/><param name='quality' value='high'/><param name='bgcolor' value='#ffffff'/><param name='FlashVars' value='%s'/><param name='AllowScriptAccess' value='always'/><param name='allowFullScreen' value='true'/><param name='SeamlessTabbing' value='false'/>%s</object>":
"<embed quality='high' id='%s' name='%s' style='width: %s; height: %s; %s' src='%s' FlashVars='%s' AllowScriptAccess='always' allowFullScreen='true' SeamlessTabbing='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' %s></embed>",q=ah("dbg=%s&ap=%s&nm=%s&cb=%s&os=%s&%s",nc(f?"true":"false"),nc(this.Ph),nc(this.$k),nc("Recv_"+this.X),nc(this.hh),d+"&"),w="",D;if(r){D=e?"<param name='wmode' value='transparent'/>":"<param name='wmode' value='window'/>"}else{D=
e?"wmode='transparent'":"wmode='window'"}return ah(m,"flash_"+this.X,this.X,b,c,w,a,q,D)};Ca[_P].Zq=function(){if(this.Vv&&!this.um){this.um=true;F(this.G,"left","-10000px");F(this.G,"top","0px");F(this.G,"width",this.Pq+"px");F(this.G,"height",this.xn+"px")}};Ca[_P].ir=function(a){if(ja(this.Ra)){this.Ra.push(function(b){b.ir(a)})}else{this.nb=a;if(!a){this.Mk(-10000,0);F(this.G,"width",this.Pq+"px");F(this.G,"height",this.xn+"px")}}};Ca[_P].Jk=function(){if(ja(this.Ra)){this.Ra.push(function(a){a.Jk()})}else{this.qd.focus();
Gg(function(){this.qd.focus()},0,this)}};Ca[_P].Mk=function(a,b){if(ja(this.Ra)){this.Ra.push(function(c){c.Mk(a,b)})}else{if(typeof a!="undefined"){F(this.G,"left",a+"px")}if(typeof b!="undefined"){F(this.G,"top",b+"px")}}};Ca[_P].Pk=function(a,b,c){if(ja(this.Ra)){this.Ra.push(function(d){d.Pk(a,b,c)})}else{this.Qk(a,b,c)}};Ca[_P].Qk=function(a,b,c){this.qd.SetVariable("msg",Io([a,b,c]))};Ca[_P].dr=function(a,b){if(a=="msg"||a=="FSCommand:msg"){this.Ok(b)}};Ca[_P].gr=function(a){this.Hj=a};Ca[_P].Ok=
function(a){var b=Ho(Tc(a)),c=b[0],d=b[1],e=b[2];if(d==this.Ph+"."){if(e[0]=="f"){this.Jk();return}else if(e[0]=="b"){this.qd.blur();return}else if(e[0]=="loaded"){this.Nk();return}else if(e[0]=="pong"){this.Hf(2);this.Zq();this.fr();return}}if(this.Hj){this.Hj(c,d,e)}};Ca[_P].hr=function(a){this.nk=a};Ca[_P].Hf=function(a){this.ra=a;if(this.nk){this.nk(this)}};Ca[_P].Nk=function(){if(this.br()){this.er()}else{Gg(this.Nk,2000,this)}};Ca[_P].br=function(){if(this.Re){return true}var a=this.qd;if(!a){return false}this.Re=
typeof a[ce]!="undefined"&&a[ce]==4||typeof a.PercentLoaded!="undefined"&&a.PercentLoaded()==100;return this.Re};Ca[_P].er=function(){if(this.Kk()==2){this.Hf(3)}else{this.Hf(1);var a=this.$q();this.Qk(a,a,["ping"])}};Ca[_P].fr=function(){if(ja(this.Ra)){var a=this.Ra;delete this.Ra;for(var b=0;b<a[h];++b){a[b](this)}}};var Rb=function(a,b,c,d,e){var f=this;f.qb=new ba(a+"client");f.Bh=new ba(a+"transport?v=1");f.Bh.kb("silent","true");var g=new ba(a+"transport2?v=1");f.Bh.kb("host",g.toString());f.Hd=new Date-0;var i="lcid="+nc(f.Hd);for(var j in c){i+="&"+j+"="+nc(c[j])}f.qb.kb("sessionParams",i);f.qb.kb("sessionType","jsapi");f.qb.kb("host",window[qb]);var l=b.split("&");f.qb.kb("session",l[0]);for(var m=1;m<l[h];++m){var q=l[m].split("=");f.qb.kb(Tc(q[0]),Tc(q[1]));if(q[0]=="u"){f.Bh.kb("u",Tc(q[1]))}}if(f.qb.Ym().substring(0,
3)=="/a/"){f.qb.kb("nav","true")}if(e){f.qb.kb("css",e)}f.Tv=0;f.Yn=-1;f.Un=-1;f.Id=d;f.ob={};f.ji=null;f.di=null;var w=this.Bh.toString();this.xf=new Ca("api_"+this.Hd,this.Hd,"t");this.xf.gr(C(this.qw,this));this.xf.hr(C(this.Bw,this));this.xf.mr(null,w,1,1,0,0,"ap="+this.Hd,false,false)};Rb[_P].mv=function(a){this.di=a;this.jo()};Rb[_P].sendMessage=function(a,b){var c=this.Tv++;this.xr(c,b);this.xf.Pk(this.Hd+"s",this.Hd+"s",["mx",a,"s",c])};Rb[_P].xr=function(a,b){var c=new Date;for(var d in this.ob){if(c-
this.ob[d].Yy>=600){delete this.ob[d]}}if(b){var e={};e.Yy=c;e.bs=b;this.ob[a]=e}};Rb[_P].Yw=function(a){var b=this.ob[a];delete this.ob[a];return b};Rb[_P].Bw=function(a){var b=this.xf.Kk();if(b==4){this.Jb(2,0)}};Rb[_P].qw=function(a,b,c){if(c[0]!="connect-dest"&&c[0]!="connect-ack"){this.Vu(c)}};Rb[_P].Vu=function(a){switch(a[0]){case "cookie-hash":this.ji=a[1];this.jo();break;case "connect-state":switch(a[1]){case "searching":this.Jb(0);break;case "connecting":this.Jb(0);break;case "open":this.Jb(0);
break;case "close":this.Jb(0);break}break;case "session-state":switch(a[1]){case "open":this.Jb(0);break;case "close":this.Jb(2,2);break}break;case "js":this.Jb(1);break;case "je":this.Jb(2,1);break;case "rp":this.rw(a[1],a[2]=="a");break;case "mx":this.nw(a[1],a[2],a[3],a[4]);break;default:break}};Rb[_P].Jb=function(a,b){this.Un=b||-1;if(this.Id&&this.Yn!=a){this.Yn=a;this.Id.vw(a)}};Rb[_P].jo=function(){if(!this.ke&&this.ji!=null&&this.di!=null){this.qb.kb("hash",this.ji);this.ke=O.createElement("IFRAME");
Oa(this.ke[k],"100%");Fa(this.ke[k],"100%");this.ke.src=this.qb.toString();this.di.appendChild(this.ke)}};Rb[_P].Xt=function(){return this.Un};Rb[_P].rw=function(a,b){if(this.Id){if(b){this.Id.kw(a)}else{this.Id.lw(a)}}};Rb[_P].nw=function(a,b,c,d){if(c=="r"){this.Id.mw(a,b)}else if(c=="e"){var e=this.Yw(d);if(e){e.bs.onError()}}};var hd=function(a){this.w=a||"Menu";this.nb=false;var b=Ip("table",O[E],"menu_",this.w);cg(b,0);b.cellSpacing=0};hd[_P].Ag=function(){var a=O.getElementById(this.w);if(!a){Ta('Menu.getMenu: No menu with id="'+this.w+'" found');return null}return a};hd[_P].Fd=function(){return this.nb};hd[_P].Jf=function(a,b,c){var d=this.Ag(),e=d.insertRow(d[rb][h]);sb(e,b?this.Fs(b):Lb);e.oncontextmenu=Lb;fa(e,b?"menuItem_":"menuItemDisabled_");e.vAlign="middle";var f=e.insertCell(e[gb][h]);Q(f,a);fa(f,b?"menuLabel_":
"menuLabelDisabled_");f.align="left";var g=e.insertCell(e[gb][h]);Q(g,c||"&nbsp;");fa(g,"menuHint_");g.align="right"};hd[_P].Oh=function(){var a=this.Ag(),b=a.insertRow(a[rb][h]);sb(b,Lb);b.oncontextmenu=Lb;var c=b.insertCell(b[gb][h]);fa(c,"menuSeparator_");c.colSpan=2};hd[_P].Fs=function(a){var b=this;return function(c){b.$b();a(c);return Lb(c)}};hd[_P].fc=function(a,b){var c=this.Ag(),d=Pp(),e=Op();a=a<d-c[Tb]-4?a:a-c[Tb]-4;b=b<e-c[Ab]-4?b:b-c[Ab]-4;em(c,a<4?4:a,b<4?4:b);if(this.nb){return false}else{this.nb=
true;return true}};hd[_P].$b=function(){var a=this.Ag();em(a,-1000,-1000);if(!this.nb){return false}else{this.nb=false;return true}};var L=function(a,b){R.call(this);a=a||"Presentation";this.qt=Li("fs");if(b){this.ka=new I;this.ka.Pa(b)}else{this.ka=new Rd(a)}this.dg=null;this.Ga=Ep()||0;this.wa=null;this.Er=true;this.vf=new Ji("themes");if(b){Q(o(a),this.ka.be())}this.Dd(a)};L.d(R);L[_P].Dd=function(a){this.fj();this.Gn();this.ej();this.Sh();this.el();this.Ka();this.hk()};L[_P].fj=function(){if(r){if(o("slideshow_toolbar_controls")){Za(o("slideshow_toolbar_controls"),"slideshow_toolbar_bg_iehack")}if(o("toolbar_bg")){U(o("toolbar_bg"),
false)}}};L[_P].Sh=function(){window.onresize=x?Kb(this,this.Ka):fm(Kb(this,this.Ka),100);O.onkeydown=Kb(this,this.pn);O.onkeyup=Lb;sb(O,Kb(this,this.Jg));O.oncontextmenu=Kb(this,this.hn);window.onbeforeunload=Kb(this,this.Ng);window.onunload=Kb(this,this.Ng);if(!x){O.onselectstart=Lb}};L[_P].el=function(){var a=this.Pi();if(a){for(var b=0,c=this.ka.Wb();b<c;b++){var d=M_SLIDE_INDEX.replace(/%1/g,b+1).replace(/%2/g,c).replace(/%3/g,this.ka.Ke(b).cn(30));a.options[b]=new Option(d,b)}a.onchange=yb(this,
this.Cd)}var e=this.en();if(e){e.onmousedown=yb(this,this.Zi)}var f=this.dn();if(f){f.onmousedown=yb(this,this.Pg)}var g=this.zu();if(g){sb(g,yb(this,this.Me))}};L[_P].Ng=function(a){};L[_P].Gn=function(){this.Xc=new ob;this.oa=new He(this.ka,this.Xc);this.Xc.Ac(o("primaryViewSlide"));this.Xc.ek(this.pl());this.oa.Ud(this.Ga,0)};L[_P].ej=function(){if(!this.wa){this.wa=new hd("Menu")}this.wa.Jf(M_NEXT,yb(this,this.Pg),M_NEXT_HINT);this.wa.Jf(M_PREV,yb(this,this.Zi),M_PREV_HINT);this.wa.Oh();this.wa.Jf(M_TOGGLE_TOOLBAR,
yb(this,this.vq),"~");this.wa.Oh();this.wa.Jf(M_EXIT_PRESENTATION,yb(this,this.hf),"Esc, Q");this.wa.$b()};L[_P].ry=function(a,b){if(!this.wa){return true}return this.wa.fc(a,b)};L[_P].Tg=function(){if(!this.wa){return false}return this.wa.$b()};L[_P].hf=function(){if(this.qt){window.close()}window.history.back()};td(L[_P],function(){this.ka.cx();this.Ig(0)});L[_P].Ka=function(a){var b=(new Date).getTime(),c=this.Rf(),d=this.pl(c);Ul(o("primaryView"),c);Ul(o("primaryViewSlide"),d);var e=y.max(0,(c[z]-
d[z])/2);o("primaryViewSlide")[k].marginTop=e+"px";this.Xc.ed();Nf("Slideshow.handleResize: View(s) resized",b);return true};L[_P].Jg=function(a){a=a||window[Yd];var b=a[aa]||a[rd];if(x&&Kf(a,"button")&&a.button==2){return this.hn(a)}if(Mi(this.$a(),b)){return true}if(this.Tg()){return Lb(a)}else{while(b&&b[$]&&b!=b[$][E]){if(b[xa]&&b[xa].toLowerCase()=="a"&&b[od]){qc(b,"_blank");return true}b=b[n]}}this.Pg();return Lb(a)};L[_P].xj=function(){return this.ka.Wb()>0};L[_P].Pg=function(){if(this.xj()){this.Dr();
this.se()}};L[_P].Zi=function(){if(this.xj()){this.jx();this.se()}};L[_P].hn=function(a){a=a||window[Yd];var b=a[aa]||a[rd];if(b&&b[xa]=="A"){this.Tg();return true}this.ry(a[cb],a[db]);return Lb(a)};L[_P].pn=function(a){var b,c;if(a){b=a;c=b.which}else if(window[Yd]){b=window[Yd];c=b[Na]}if(b[gc]||b[Re]||b[Gc]){return true}switch(c){case 27:if(!this.Tg()){this.hf()}break;case 81:this.hf();break;case 10:case 13:case 32:case 39:case 40:case 78:this.Pg();break;case 8:case 37:case 38:case 46:case 80:this.Zi();
break;case 33:this.cp();this.Tb().Of();this.se();break;case 34:this.so();this.Tb().Of();this.se();break;case 192:this.Tg();this.vq();break;default:return true}return Lb(a)};L[_P].se=function(){Da("Dispatching event");try{var a=new Bl("user_navigation",this,this.Ga,this.Tb().Qb());this.dispatchEvent(a)}catch(b){Ta("Error dispatching event: "+b)}};L[_P].Tb=function(){return this.ka.Ke(this.Ga)};L[_P].Dr=function(){if(this.ka.Wb()<1){this.lg()}else if(!this.Tb().gd()){this.so()}};L[_P].jx=function(){if(this.ka.Wb()>
0&&!this.Tb().ce()){this.cp()}};L[_P].so=function(){if(this.Ga<this.ka.Wb()-1){this.Ig(this.Ga+1)}else{this.lg()}};L[_P].cp=function(){if(this.Ga>0){this.Ig(this.Ga-1)}};L[_P].Ch=function(){var a=this.Pi();if(a){a.selectedIndex=this.oa.Ab();Da("Updated navigator index to "+a.selectedIndex)}};L[_P].Ig=function(a,b){Da("goToSlide: Someone requested slide "+a+"; current slide is "+this.Ga);this.Ga=a;this.oa.Ud(this.Ga,this.Tb().Qb());this.Ch()};L[_P].lg=function(){if(confirm(M_END_OF_PRESENTATION)){this.hf()}};
L[_P].$a=function(){return O.getElementById("Toolbar")};L[_P].Pi=function(){return O.getElementById("ToolbarNav")};L[_P].en=function(){return O.getElementById("ToolbarPrev")};L[_P].dn=function(){return O.getElementById("ToolbarNext")};L[_P].zu=function(){return O.getElementById("ToolbarClose")};L[_P].Me=function(){var a=this.$a();if(a){Ob(a,false);this.Ka()}};L[_P].hk=function(){var a=this.$a();if(a){Ob(a,true);this.Ka()}};L[_P].Qn=function(){var a=this.$a();return!Ql(a,"invisible_")};L[_P].vq=function(){var a=
this.$a();if(a){var b=this.Qn();if(b){this.Me()}else{this.hk()}}};L[_P].Cd=function(){if(this.xj()){var a=this.Pi();if(a){var b=ha(a[Va],10);this.Ig(kd(b)?0:b);this.Tb().Of()}this.se()}};L[_P].of=function(a){var b=(new Date).getTime();if(a==this.dg){return}var c=O.getElementsByTagName("head")[0].getElementsByTagName("link");for(var d=0,e=c[h];d<e;d++){if(c[d].rel&&c[d].rel=="stylesheet"&&c[d].title){c[d].disabled=c[d].title!=a}}var f=this.vf.Ni(a);if(f){this.Xc.oh(f);Za(o("primaryView"),"goog-presently-theme-"+
a);this.Xc.Up("goog-presently-theme-"+a);this.dg=a}else{Ta('Editor.applyTheme: Theme "'+a+'" cannot be applied')}};L[_P].Rf=function(){var a=Je(O[E]),b=a[z];if(this.Qn()){b-=Je(this.$a())[z]}return new nb(y.max(0,a[J]),y.max(0,b))};L[_P].pl=function(a){a=a||this.Rf();var b=Al,c=y.min(a[J]/b[J],a[z]/b[z]);return new nb(y.max(0,b[J]*c),y.max(0,b[z]*c))};var tp=function(a){var b=new L;b.of(a);return b},Bl=function(a,b,c,d){Ia.call(this,a,b);this.Xd=c;this.Qf=d};Bl.d(Ia);var He=function(a,b){this.bp=
a;this.fl=b;this.Xd=0;this.Qf=0};He[_P].Ab=function(){return this.Xd};He[_P].Qb=function(){return this.Qf};He[_P].Ud=function(a,b){this.Xd=ha(a,10);this.Qf=ha(b,10);this.Ky()};He[_P].Ky=function(){if(this.fl){var a=null;if(this.bp.Wb()>this.Xd){a=this.bp.Ke(this.Xd);var b=a.n?a.n():a.Fg();this.fl.Lj(b.cloneNode(true))}}};ub("_initSlideshow",tp);var p=function(a,b,c,d,e,f,g,i){this.ma=false;this.ia=false;this.sy=false;this.vy=false;this.nh=new lc;this.Jj=0;this.la=null;this.dz=false;this.Oa=null;this.Zc=true;this.Rl=Jf.Lk;this.Ea=-1;this.kg=top!=self;if(this.kg&&this.yd()){ga(this.yd())}if(e&&!this.kg){this.Fk=c;this.ij=i;this.Ye=new Rb(d,e,f,this);this.qo=g}L.call(this,b,a)},Cl;p.d(L);var fb=new Jg("presently.TeamSlideshow");p[_P].Dd=function(a){this.fj();this.Mr();this.ej();this.Gn();this.jv();v(this,"user_navigation",Kb(this,this.Cw));
var b=this.Je();if(b){v(b,kb,this.Ey,false,this);v(b,ye,this.uw,false,this);v(b,Id,this.tw,false,this)}this.Qa();if(this.Ye){if(r&&!gd("7")){fb.O("Starting IE resize workaround.");window.setInterval(C(this.gx,this),200)}this.iv()}this.gv();this.Ka();if(!this.kg){this.ty()}};p[_P].gx=function(){var a=we(window);if(!Vk(a,this.Vy)){this.Vy=a;this.Ka();if(this.Zc){var b=this.Eg();Ob(b,false);Ob(b,true)}}};p[_P].fj=function(){this.ey("slideshow_toolbar_bg");var a=this.$a();if(a){v(a,ye,this.Aw,false,this);
v(a,Id,this.zw,false,this)}};p[_P].iv=function(){this.Ye.mv(o(this.qo))};p[_P].yd=function(){return o("sidebar")};p[_P].Je=function(){return o("sidebarHandle")};p[_P].Eg=function(){return o("sidebarContent")};p[_P].$t=function(){return o(this.qo)};p[_P].vp=function(){var a=this.yd();if(!a){return}var b=Je(O[E])[z],c=ec(this.Je())[J];if(this.Zc){c+=ec(this.Eg())[J]}Vl(a,c);var d=ec(o("statusPane")),e=this.$t();if(this.ro==null){var f=Ge(e,"padding"),g=zb(ec(e)[z]);F(e,"padding","0px");this.ro=g-zb(ec(e)[z]);
F(e,"padding",f)}F(e,"height",y.max(0,b-d[z]-this.ro)+"px");if(r&&!gd("7")&&this.Zc){var i=this.Eg();Ob(i,false);Ob(i,true)}};p[_P].uy=function(a){if(this.Zc==a){return}var b=this.Je(),c=this.Eg();this.Zc=a;uf(b,"slideshow-sidebar-handle");if(!a){Za(b,"slideshow-sidebar-handle-collapsed")}Ob(c,a);this.Ka()};p[_P].Ey=function(){this.uy(!this.Zc)};p[_P].uw=function(a){Za(this.Je(),"slideshow-sidebar-handle-hover")};p[_P].tw=function(a){cc(this.Je(),"slideshow-sidebar-handle-hover")};p[_P].Aw=function(a){Za(this.$a(),
"slideshow-toolbar-container-hover");var b=o("ToolbarNavText");cc(b,"slideshow-toolbar-nav-text-fg");Za(b,"slideshow-toolbar-nav-text-fg-hover")};p[_P].zw=function(a){cc(this.$a(),"slideshow-toolbar-container-hover");var b=o("ToolbarNavText");cc(b,"slideshow-toolbar-nav-text-fg-hover");Za(b,"slideshow-toolbar-nav-text-fg")};p[_P].Po=function(a){var b=a[Ec];if(b){uf(b,"slideshow-toolbar-nav-arrow-hover")}};p[_P].Oo=function(a){var b=a[Ec];if(b){uf(b,"slideshow-toolbar-nav-arrow")}};p[_P].ej=function(){};
p[_P].jv=function(){var a=o("secondaryViewSlide");if(!a){return}this.Cc=new ob;this.Yc=new He(this.ka,this.Cc);this.Cc.Ac(a);this.Cc.ed();this.Yc.Ud(this.Ga,0)};p[_P].ey=function(a){var b,c=o("toolbar_bg");if(r){a+="_iehack";b=o("slideshow_toolbar_controls");uf(b,"slideshow_toolbar_controls "+a);U(c,false)}else{uf(c,a)}};p[_P].gv=function(){var a=o("floatingMessageContainer");if(r){var b=o("floatingMessageLayout"),c=o("floatingMessageBackground");if(b){Za(b,"slideshow_floating_message_bg_iehack")}if(c){U(c,
false)}}};p[_P].bq=function(a){var b=o("floatingMessageContainer"),c=o("floatingMessageContent"),d=o("main");kc(c,a);U(b,true);var e=Oi(d);e-=Pi(b);Cb(b[k],e/2+"px");ca.setTimeout(this.kt.D(this),2000)};p[_P].kt=function(){var a=o("floatingMessageContainer");if(a){var b=new Sk(a,3000);b.play()}};p[_P].ty=function(){if(Gi){return}if(r&&!gd("7")){return}this.bq(M_FULL_SCREEN_HINT)};p[_P].Cw=function(a){if(this.ia){this.ia=false;this.Qa()}else{this.Iq()}if(this.ma){this.Nf(a.Xd,a.Qf)}};p[_P].Cp=function(a){if(this.Ye){this.Ye.sendMessage(a)}fb.va("Broadcasting command"+
a.command)};p[_P].Nf=function(a,b){this.Cp({command:"SLIDE_CHANGE",slide:a,build:b})};p[_P].Qa=function(){this.Sy();this.Ly();this.Py();this.Jq()};p[_P].lg=function(){if(!this.kg){p.h.lg.call(this)}};p[_P].Py=function(){var a=this.Ct(),b=this.Bt(),c;if(a!=b){U(o(b),false);cc(o(a),"nodisplay_");c=o(Jf.Rk);U(c,a==Jf.Jh);if(a==Jf.Jh){cc(c,"nodisplay_")}U(o(a),true);this.Rl=a;if(r&&!gd("7")){this.Cc.ed()}}this.vp()};p[_P].Bt=function(){return this.Rl};p[_P].Ct=function(){if(Cl){return Cl}var a=Jf;if(this.Ea==
-1||this.Ea==0){return a.Lk}if(this.Ea==2){return a.cr}if(this.Ea!=1){throw Error("Unexpected api state: "+this.Ea);}if(this.He()==0){return this.ij?a.Vq:a.jr}if(!this.ij){if(this.la==null){return a.lr}return this.ia?a.kr:a.Rk}if(this.ma){return a.Yq}if(this.la==null){return a.Xq}return this.ia?a.Wq:a.Jh};var Jf={Lk:"joiningState",cr:"joinFailedState",jr:"viewerAloneState",Vq:"editorAloneState",Xq:"editorNoOnePresentingState",Jh:"editorNotFollowingState",Wq:"editorFollowingState",Yq:"editorPresentingState",
kr:"viewerFollowingState",Rk:"viewerNotFollowingState",lr:"viewerNoOnePresentingState"};p[_P].$x=function(a){this.vy=a;var b=o("buzzStartPresentingBtn");if(b){U(b,a)}};p[_P].Zx=function(a){this.sy=a;var b=o("buzzFollowingPresenter");if(b){U(b,a)}};p[_P].Sy=function(){this.Ch();this.Iq();this.Fq()};p[_P].Jq=function(){if(!this.Cc){return}var a=o("presentersSlideNumber");if(a){kc(a,Jb(M_PRESENTERS_VIEW_SLIDE_NO,{slide_number:this.Yc.Ab()+1}))}this.Cc.ed()};p[_P].Iq=function(){var a=o("ToolbarPrevContainer"),
b=o("ToolbarPrev"),c=o("ToolbarPrevDisabled"),d=this.Er,e=this.ka.Wb();if(a){var f=this.oa.Ab()!=0&&e>0;U(b,f);U(c,!f);U(a,d)}var g=o("ToolbarNextContainer"),i=o("ToolbarNext"),j=o("ToolbarNextDisabled");if(g){var l=this.oa.Ab()+1<e;U(i,l);U(j,!l);U(g,d)}};p[_P].Ch=function(){var a=o("ToolbarNavTextContent");if(a){var b=this.ka.Wb(),c=y.min(b,this.oa.Ab()+1);kc(a,c+"/"+b)}};p[_P].Ly=function(){var a=o("buzzNetworkStatus"),b=o("buzzNetworkStatusDisconnected"),c=o("buzzNetworkStatusConnecting"),d=o("buzzNetworkStatusConnected"),
e=r?o("slideshow_toolbar_controls"):o("toolbar_bg");fb.va("s: "+this.Ea);var f=false;if(b){f=this.Ea==2||this.Ea==0;if(e&&f){fb.va("red");e[k].borderBottomWidth="2px";e[k].borderBottomColor="red"}U(b,f)}if(c){f=this.Ea==0;if(e&&f){fb.va("yellow");e[k].borderBottomColor="yellow"}U(c,f)}if(d){f=this.Ea==1;if(e&&f){fb.va("green");e[k].borderBottomColor="green"}U(d,f)}};p[_P].Fq=function(){var a=this.Zh();this.$x(a);this.Zx(this.ia);var b=this.Tf(),c=this.Yh(),d=this.$a(),e=o("buzzToolbarStatus"),f=o("buzzToolbarParticipantStatus"),
g=o("buzzToolbarParticipantsTotal"),i=o("buzzToolbarTakeOverPresenting"),j=o("buzzFollowPresenterBtn"),l=o("buzzStartPresentingButtonLabel");if(l){kc(l,ah(M_START_PRESENTING,this.He()))}if(e){if(this.ma){kc(e,M_PRESENTING)}else if(this.ia){kc(e,M_FOLLOWING_PRESENTER)}else{kc(e,"")}}if(g){kc(g,this.He())}if(f){U(f,this.ma)}if(i){U(i,b&&!this.ma&&!this.Zh())}if(j){U(j,!b&&c)}};p[_P].Zh=function(){return this.Tf()&&!this.ma&&!this.Yh()};p[_P].Tf=function(){if(this.ij&&this.He()>0){return true}else{this.ma=
false;return false}};p[_P].Yh=function(){if(this.la!=null&&!this.ma&&this.He()>0){return true}else{this.ia=false}return false};p[_P].He=function(){return this.Jj};p[_P].Rp=function(a){var b=this.Jj;this.Jj=a;fb.va("ViewerCount: "+a);if(b!=a){if(a<2){this.Qa()}else{this.Fq()}if(b==0&&!this.Zc){this.bq(M_SOMEONE_HAS_JOINED_THE_PRESENTATION)}}};p[_P].Ux=function(a,b,c){var d=b||0,e=c||0,f=this.la!=a;this.la=a;if(this.ia){this.oa.Ud(d,e)}this.Yc.Ud(d,e);this.Ch();this.Jq();if(this.ma&&this.la!=this.Fk){fb.O(this.la+
" is now presenting.");this.ma=false}if(f){this.Qa()}};p[_P].Mr=function(){this.Lr();this.Kr();this.Ir();this.Jr();this.Sh()};p[_P].Sh=function(){window.onresize=x?Kb(this,this.Ka):fm(Kb(this,this.Ka),100);O.onkeydown=Kb(this,this.pn);O.onkeyup=Lb;v(O,kb,this.Jg,false,this);var a=o("main");if(a){if(!x){a.onselectstart=Lb}}window.onbeforeunload=Kb(this,this.Ng);window.onunload=Kb(this,this.Ng)};p[_P].Lr=function(){p.h.el.call(this);var a=this.en();if(a){v(a,ye,this.Po,false,this);v(a,Id,this.Oo,false,
this)}var b=this.dn();if(b){v(b,ye,this.Po,false,this);v(b,Id,this.Oo,false,this)}var c=o("buzzToolbarTakeOverPresenting");if(c){sb(c,yb(this,this.Yi))}var d=o("buzzStartPresentingBtn");if(d){sb(d,yb(this,this.sn))}var e=o("buzzStopPresenting");if(e){sb(e,yb(this,this.tn))}var f=o("buzzFollowPresenterBtn");if(f){sb(f,yb(this,this.Og))}var g=o("buzzStopFollowing");if(g){sb(g,yb(this,this.$u))}var i=o("ToolbarHide");if(i){sb(i,yb(this,this.Me))}};p[_P].Kr=function(){var a=this.yd(),b=o("inviteUrl");
if(b){v(b,[kb,"focus"],function(g){g[Ec].focus();g[Ec].select()})}var c=o("controlPresentationButton");if(c){v(c,kb,this.sn,false,this)}var d=o("followPresenterAction");if(d){v(d,kb,this.Og,false,this)}var e=o("notFollowingTakeControlAction");if(e){v(e,kb,this.Yi,false,this)}e=o("followingTakeControlAction");if(e){v(e,kb,this.Yi,false,this)}var f=o("stopPresentingAction");if(f){v(f,kb,this.tn,false,this)}};p[_P].Me=function(){if(this.Oa){this.Oa.stop()}var a=o("Toolbar");if(!this.xk){this.xk=ec(a)[z]}this.Oa=
new Ug(a,this.xk,0,1000,Tk);v(this.Oa,"end",p.h.Me.D(this));v(this.Oa,"end",p[_P].wq.D(this));this.Oa.play();return false};p[_P].hk=function(){if(this.Oa){this.Oa.stop()}var a=o("Toolbar");Ob(a,true);this.Oa=new Ug(a,0,this.xk,1000,Tk);v(this.Oa,"end",p[_P].wq.D(this));this.Oa.play();return false};p[_P].wq=function(){this.Oa=null};p[_P].Ir=function(){var a=o("primaryViewSlide");if(a){sb(a,Kb(this,this.Zu))}};p[_P].Jr=function(){var a=o("secondaryViewFollowPresenter");if(a){sb(a,yb(this,this.Og))}var b=
o("secondaryViewSlide");if(b){v(b,kb,this.Og,false,this)}};p[_P].Zu=function(a){p.h.Jg.call(this,a)};p[_P].Jg=function(a){a=a||window[Yd];var b=a[aa]||a[rd];if(Mi(this.$a(),b)){return true}if(Mi(this.yd(),b)){return true}while(b&&b[$]&&b!=b[$][E]){if(b[xa]&&b[xa].toLowerCase()=="a"&&b[od]){return true}b=b[n]}return Lb(a)};p[_P].Og=function(a){if(this.Yh()){this.ia=true}if(a){a.preventDefault()}this.Qa();this.Ga=this.Yc.Ab();this.Tb().nl(this.Yc.Qb());this.oa.Ud(this.Yc.Ab(),this.Yc.Qb())};p[_P].$u=
function(){if(this.ia){this.ia=false;this.Qa()}};p[_P].sn=function(){if(this.Zh()){this.ma=true;this.la=this.Fk;this.Nf(this.oa.Ab(),this.oa.Qb())}this.Qa()};p[_P].tn=function(){if(this.Tf()){this.Cp(up)}this.ma=false;this.ia=false;this.la=null;this.Qa()};p[_P].Yi=function(){if(this.Tf()){this.ma=true;this.ia=false;this.la=this.Fk;this.Nf(this.oa.Ab(),this.oa.Qb())}this.Qa()};p[_P].of=function(a){var b=(new Date).getTime();if(a==this.dg){return}var c=[this.Xc];if(this.Cc){c.push(this.Cc)}var d;for(var e=
0;e<c[h];e++){var f=this.vf.Ni(a);if(f){d=c[e];d.oh(f);Za(o("primaryView"),"goog-presently-theme-"+a);d.Up("goog-presently-theme-"+a);this.dg=a}else{fb.za('Theme "'+a+'" cannot be applied.')}}};p[_P].Ka=function(){this.vp();p.h.Ka.call(this);var a=this.Rf();Qd(o("main"),a)};p[_P].Rf=function(){var a=Je(O[E]),b=a[J],c=this.yd();if(c){b-=(new nb(Pi(c),Tl(c)))[J]}return new nb(y.max(0,b),y.max(0,a[z]))};p[_P].vw=function(a){fb.va("onStateChange - "+a);if(a!=this.Ea){this.Ea=a;if(a==2){fb.Nq("got error from api - "+
this.Ye.Xt())}this.Qa()}};p[_P].kw=function(a){fb.va("onJoin_ - "+a);this.nh.add(a);this.Rp(y.max(0,this.nh.yb()-1));if(this.ma){this.Nf(this.oa.Ab(),this.oa.Qb())}};p[_P].lw=function(a){fb.va("onLeave_ - "+a);this.nh.remove(a);this.Rp(y.max(0,this.nh.yb()-1));if(this.la==a){this.la=null;this.ia=false;this.Qa()}};p[_P].mw=function(a,b){fb.va("Msg received from: "+a+", command: "+b.command);if(b.command){this.Eu(a,b)}};p[_P].Eu=function(a,b){if(!b||!b.command){fb.za("Message is not a command!");return}switch(b.command){case "SLIDE_CHANGE":fb.va("Handling slide_change command: "+
b.slide+"/"+b.build);this.Ux(a,b.slide,b.build);break;case "START_FOLLOWING":break;case "STOP_FOLLOWING":break;case "PRESENTER_STOPPED":this.Xu(a);break;default:fb.za("Unrecognized commmand: "+b.command)}};p[_P].Xu=function(a){if(this.la==a){this.la=null;this.ia=false;this.Qa()}};var up={command:"PRESENTER_STOPPED"},vp=function(a,b,c,d,e,f,g,i){var j=new p(a,null,f,c,d,e,g,i);j.of(b);return j};ub("_initTeamSlideshow",vp);
 })()
