;function lj(a){if(a in xe){return xe[a]}return xe[a]=navigator.userAgent.toLowerCase().indexOf(a)!=-1}var xe={};function qj(a,b){if(a==null||a.className==null)return false;if(a.className==b){return true}var c=a.className.split(" ");for(var d=0;d<c.length;d++){if(c[d]==b){return true}}return false}function Ad(a,b){if(qj(a,b))return;a.className+=" "+b}var Jk={aq:function(a){return a.document.body.clientWidth},bq:function(a){return a.document.documentElement.clientWidth},i:function(a){return a.innerWidth}};
function pj(a,b){try{if(!window.opera&&"compatMode"in a.document&&a.document.compatMode=="CSS1Compat"){return b.bq(a)}else if(lj("msie")&&!window.opera){return b.aq(a)}}catch(c){}return b.i(a)}function rj(a){if(!a)return"";return a.replace(/&#(\d+);/g,function(b,c){return String.fromCharCode(parseInt(c,10))}).replace(/&#x([a-f0-9]+);/gi,function(b,c){return String.fromCharCode(parseInt(c,16))}).replace(/&(\w+);/g,function(b,c){c=c.toLowerCase();return c in qg?qg[c]:"?"})}var qg={lt:"<",gt:">",quot:'"',
nbsp:" ",amp:"&",apos:"'"};function Bd(a){return encodeURIComponent(a)}function ok(a){return document.getElementById(a)}function pk(a){return document.all[a]}var nk=document.getElementById?ok:pk;function Ei(a){try{if(window.parent!=window&&window.parent.log){window.parent.log(window.name+"::"+a);return}}catch(b){}var c=nk("log");if(c){var d="<p class=logentry><span class=logdate>"+new Date+"</span><span class=logmsg>"+a+"</span></p>";c.innerHTML=d+c.innerHTML}else{window.status=a}};;var xg;function Fj(){var a=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];if(typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){for(var b=0;b<a.length;b++){var c=a[b];try{new ActiveXObject(c);xg=c;break}catch(d){}}if(!xg){throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed.");}}}Fj();if("undefined"==typeof Ei){Ei=function(){}};var He=He||{},v=this;var Il=function(a,b){var c=a.split("."),d=v,e;while(e=c.shift()){if(!c.length&&ga(b)){d[e]=b}else if(d[e]){d=d[e]}else{d=(d[e]={})}}},ge=function(a){var b=a.split("."),c=v;for(var d;d=b.shift();){if(c[d]){c=c[d]}else{return null}}return c};var Gm=function(){};var ga=function(a){return typeof a!="undefined"};var H=function(a){return a instanceof Array||Ta(a)&&typeof a.join=="function"&&typeof a.reverse=="function"},kc=function(a){return Ta(a)&&typeof a.length=="number"};var U=
function(a){return typeof a=="string"};var Nc=function(a){return typeof a=="number"},Db=function(a){return typeof a=="function"||!(!(a&&a.call))},Ta=function(a){return a!=null&&typeof a=="object"},ka=function(a){if(a.hasOwnProperty&&a.hasOwnProperty(Zc)){return a[Zc]}if(!a[Zc]){a[Zc]=++xm}return a[Zc]};var Zc="closure_hashCode_",xm=0,Yk=function(a){if(Ta(a)){if(a.clone){return a.clone()}var b=H(a)?[]:{};for(var c in a){b[c]=Yk(a[c])}return b}return a},w=function(a,b){var c=a.$g;if(arguments.length>
2){var d=Array.prototype.slice.call(arguments,2);if(c){d.unshift.apply(d,c)}c=d}b=a.nf||b;a=a.mf||a;var e,f=b||v;if(c){e=function(){var g=Array.prototype.slice.call(arguments);g.unshift.apply(g,c);return a.apply(f,g)}}else{e=function(){return a.apply(f,arguments)}}e.$g=c;e.nf=b;e.mf=a;return e};var Cm=function(a,b){for(var c in b){a[c]=b[c]}},Ba=function(){return(new Date).getTime()};var Mc=function(a,b){var c=b||{};for(var d in c){a=a.replace(new RegExp("\\{\\$"+d+"\\}","gi"),c[d])}return a},ec=
function(a,b){Il(a,b)},dc=function(a,b,c){a[b]=c};if(!Function.prototype.apply){Function.prototype.apply=function(a,b){var c=[],d,e;if(!a)a=v;if(!b)b=[];for(var f=0;f<b.length;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}}Function.prototype.bind=function(a){if(arguments.length>1){var b=Array.prototype.slice.call(arguments,1);b.unshift(this,a);return w.apply(null,
b)}else{return w(this,a)}};Function.prototype.inherits=function(a){ym(this,a)};var ym=function(a,b){function c(){}c.prototype=b.prototype;a.S=b.prototype;a.prototype=new c;a.prototype.constructor=a};Function.prototype.mixin=function(a){Cm(this.prototype,a)};var Wa=function(){};Wa.prototype.Af=false;Wa.prototype.ka=function(){return this.Af};Wa.prototype.dispose=function(){if(!this.Af){this.Af=true}};var X=function(a,b){this.type=a;this.target=b;this.currentTarget=this.target};X.inherits(Wa);X.prototype.Db=false;X.prototype.Lc=true;X.prototype.stopPropagation=function(){this.Db=true};X.prototype.preventDefault=function(){this.Lc=false};var ta=function(a,b){return a.indexOf(b)==0},ha=function(a,b){var c=a.length-b.length;return c>=0&&a.lastIndexOf(b,c)==c};var hi=function(a){return/^\s*$/.test(a)};var Ka=function(a){return a.replace(/^\s+|\s+$/g,"")};var Nm=/^[a-zA-Z0-9\-_.!~*'()]*$/,Kf=function(a){a=String(a);if(!Nm.test(a)){return encodeURIComponent(a)}return a},Jf=function(a){return decodeURIComponent(a.replace(/\+/g," "))},If=function(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")},Ua=function(a,b){if(b){return a.replace(bi,
ci).replace(ii,ji).replace(fi,gi).replace(ki,li)}else{if(!Km.test(a))return a;if(a.indexOf(Lm)!=-1){a=a.replace(bi,ci)}if(a.indexOf(Qm)!=-1){a=a.replace(ii,ji)}if(a.indexOf(Pm)!=-1){a=a.replace(fi,gi)}if(a.indexOf(Sm)!=-1){a=a.replace(ki,li)}return a}},Lm="&",Qm="<",Pm=">",Sm='"',ci="&amp;",ji="&lt;",gi="&gt;",li="&quot;",bi=/&/g,ii=/</g,fi=/>/g,ki=/\"/g,Km=/[&<>\"]/,Vm=function(a){if(di(a,"&")){if("document"in v&&!di(a,"<")){return Wm(a)}else{return Xm(a)}}return a},Wm=function(a){var b=v.document.createElement("a");
b.innerHTML=a;if(b.normalize){b.normalize()}a=b.firstChild.nodeValue;b.innerHTML="";return a},Xm=function(a){return a.replace(/&([^;]+);/g,function(b,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if(c.charAt(0)=="#"){var d=Number("0"+c.substr(1));if(!isNaN(d)){return String.fromCharCode(d)}}return b}})},Lf=function(a,b){return If(a.replace(/  /g," &#160;"),b)};var Hf={"\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\x0B",
'"':'\\"',"'":"\\'","\\":"\\\\"},Tm=function(a){a=String(a);if(a.quote){return a.quote()}else{var b=['"'];for(var c=0;c<a.length;c++){b.push(Om(a.charAt(c)))}b.push('"');return b.join("")}},Om=function(a){if(a in Hf){return Hf[a]}var b=a,c=a.charCodeAt(0);if(c>31&&c<127){b=a}else{if(c<256){b="\\x";if(c<16||c>256){b+="0"}}else{b="\\u";if(c<4096){b+="0"}}b+=c.toString(16).toUpperCase()}return Hf[a]=b},Um=function(a){var b={};for(var c=0;c<a.length;c++){b[a.charAt(c)]=true}return b},Jm=Um("()[]{}+-?*.$^|,:#<!\\"),
di=function(a,b){return a.indexOf(b)!=-1},ie=function(a){a=String(a);var b="",c;for(var d=0;d<a.length;d++){c=a.charAt(d);if(c=="\u0008"){c="\\x08"}else if(c in Jm){c="\\"+c}b+=c}return b};var Rm=function(a){return a==null?"":String(a)};var ei=function(){return Math.floor(Math.random()*2147483648).toString(36)+(Math.floor(Math.random()*2147483648)^(new Date).getTime()).toString(36)},Mm=function(a,b){var c=0,d=String(a).split("."),e=String(b).split("."),f=Math.max(d.length,e.length);for(var g=0;c==
0&&g<f;g++){var h=d[g]||"",j=e[g]||"",k=new RegExp("(\\d*)(\\D*)","g"),l=new RegExp("(\\d*)(\\D*)","g");do{var n=k.exec(h)||["","",""],m=l.exec(j)||["","",""];if(n[0].length==0&&m[0].length==0){break}var y=n[1].length==0?0:parseInt(n[1],10),B=m[1].length==0?0:parseInt(m[1],10);c=Gf(y,B)||Gf(n[2].length==0,m[2].length==0)||Gf(n[2],m[2])}while(c==0)}return c},Gf=function(a,b){if(a<b){return-1}else if(a>b){return 1}return 0};var Hb,N,Ea,si,ln,ua,kn,Yf,nn,Wf,on,mn,Xf;(function(){var a=false,b=false,c=false,d=false,e=false,f=false,g=false,h=false,j=false,k=false,l=false,n="";if(v.navigator){var m=navigator.userAgent;a=typeof opera!="undefined";b=!a&&m.indexOf("MSIE")!=-1;c=!a&&m.indexOf("WebKit")!=-1;l=c&&m.indexOf("Mobile")!=-1;d=!a&&navigator.product=="Gecko"&&!c;e=d&&navigator.vendor=="Camino";f=!a&&m.indexOf("Konqueror")!=-1;g=f||c;var y,B;if(a){y=opera.version()}else{if(d){B=/rv\:([^\);]+)(\)|;)/}else if(b){B=/MSIE\s+([^\);]+)(\)|;)/}else if(c){B=
/WebKit\/(\S+)/}else if(f){B=/Konqueror\/([^\);]+)(\)|;)/}if(B){B.test(m);y=RegExp.$1}}n=navigator.platform;h=n.indexOf("Mac")!=-1;j=n.indexOf("Win")!=-1;k=n.indexOf("Linux")!=-1}Hb=a;N=b;Ea=d;si=e;ln=f;ua=c;kn=g;Yf=y;nn=n;Wf=h;on=j;mn=k;Xf=l})();var ti=function(a,b){return Mm(a,b)},ne=function(a){return ti(Yf,a)>=0};var L=function(a,b){if(a){this.init(a,b)}};L.inherits(X);L.prototype.type=null;L.prototype.target=null;L.prototype.currentTarget=null;L.prototype.relatedTarget=null;L.prototype.offsetX=0;L.prototype.offsetY=0;L.prototype.clientX=0;L.prototype.clientY=0;L.prototype.screenX=0;L.prototype.screenY=0;L.prototype.button=0;L.prototype.keyCode=0;L.prototype.charCode=0;L.prototype.ctrlKey=false;L.prototype.altKey=false;L.prototype.shiftKey=false;L.prototype.metaKey=false;L.prototype.Oa=null;L.prototype.init=
function(a,b){this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;if(a.relatedTarget){this.relatedTarget=a.relatedTarget}else if(this.type==Gc){this.relatedTarget=a.fromElement}else if(this.type==Nd){this.relatedTarget=a.toElement}else{this.relatedTarget=null}this.offsetX=typeof a.layerX=="number"?a.layerX:a.offsetX;this.offsetY=typeof a.layerY=="number"?a.layerY:a.offsetY;this.clientX=typeof a.clientX=="number"?a.clientX:a.pageX;this.clientY=typeof a.clientY=="number"?a.clientY:
a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(this.type==Ec?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.Oa=a;this.Lc=null;this.Db=null};L.prototype.stopPropagation=function(){this.Db=true;if(this.Oa.stopPropagation){this.Oa.stopPropagation()}else{this.Oa.cancelBubble=true}};L.prototype.preventDefault=function(){this.Lc=false;if(!this.Oa.preventDefault){this.Oa.returnValue=
false;try{this.Oa.keyCode=-1}catch(a){}}else{this.Oa.preventDefault()}};L.prototype.vl=function(){return this.Oa};L.prototype.dispose=function(){if(!this.ka()){X.prototype.dispose.call(this);this.Oa=null}};var Pa=function(){},xl=0;Pa.prototype.eg=null;Pa.prototype.listener=null;Pa.prototype.proxy=null;Pa.prototype.src=null;Pa.prototype.type=null;Pa.prototype.capture=null;Pa.prototype.handler=null;Pa.prototype.key=0;Pa.prototype.removed=false;Pa.prototype.pf=false;Pa.prototype.init=function(a,b,c,d,e,f){if(Db(a)){this.eg=true}else if(a&&a.F&&Db(a.F)){this.eg=false}else{throw Error("Invalid listener argument");}this.listener=a;this.proxy=b;this.src=c;this.type=d;this.capture=!(!e);this.handler=f;this.pf=
false;this.key=++xl;this.removed=false};Pa.prototype.F=function(a){if(this.eg){return this.listener.call(this.handler||this.src,a)}return this.listener.F.call(this.listener,a)};var Ke=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=Math.max(0,a.length+c)}for(var d=c;d<a.length;d++){if(d in a&&a[d]===b)return d}return-1};var yb=function(a,b,c){if(a.forEach){a.forEach(b,c)}else if(Array.forEach){Array.forEach(a,b,c)}else{var d=a.length,e=U(a)?a.split(""):a;for(var f=0;f<d;f++){if(f in e){b.call(c,e[f],f,a)}}}};var Tk=function(a,b,c){if(a.filter){return a.filter(b,c)}if(Array.filter){return Array.filter(a,
b,c)}var d=a.length,e=[],f=U(a)?a.split(""):a;for(var g=0;g<d;g++){if(g in f){var h=f[g];if(b.call(c,h,g,a)){e.push(h)}}}return e},Vk=function(a,b,c){if(a.map){return a.map(b,c)}if(Array.map){return Array.map(a,b,c)}var d=a.length,e=[],f=U(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};var Wk=function(a,b,c){if(a.some){return a.some(b,c)}if(Array.some){return Array.some(a,b,c)}var d=a.length,e=U(a)?a.split(""):a;for(var f=0;f<d;f++){if(f in e&&b.call(c,e[f],
f,a)){return true}}return false};var Lb=function(a,b){if(a.contains){return a.contains(b)}return Ke(a,b)>-1};var Uk=function(a,b){if(!Lb(a,b)){a.push(b)}};var yc=function(a,b){var c=Ke(a,b),d;if(d=c!=-1){Array.prototype.splice.call(a,c,1).length==1}return d};var Ug=function(a){if(H(a)){return a.concat()}else{var b=[];for(var c=0,d=a.length;c<d;c++){b[c]=a[c]}return b}};var Sk=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(!H(d)){a.push(d)}else{a.push.apply(a,d)}}},Xk=function(a,
b,c,d){return Array.prototype.splice.apply(a,Fd(arguments,1))},Fd=function(a,b,c){if(arguments.length<=2){return Array.prototype.slice.call(a,b)}else{return Array.prototype.slice.call(a,b,c)}};var ai=function(a,b,c){for(var d in a){b.call(c,a[d],d,a)}};var pd=function(a){var b=[];for(var c in a){b.push(a[c])}return b},Ff=function(a){var b=[];for(var c in a){b.push(c)}return b};var he=function(a,b){var c;if(c=b in a){delete a[b]}return c};var Im=function(a,b,c){if(b in a){return a[b]}return c};var $h=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Hm=function(a,b){var c,d;for(var e=1;e<arguments.length;e++){d=arguments[e];for(c in d){a[c]=
d[c]}for(var f=0;f<$h.length;f++){c=$h[f];if(Object.prototype.hasOwnProperty.call(d,c)){a[c]=d[c]}}}};var qa=function(a,b){Wa.call(this);this.lq=b;this.Zc=[];for(var c=0;c<a;c++){this.Eb(this.jh())}};qa.inherits(Wa);qa.prototype.wf=null;qa.prototype.zf=null;qa.prototype.yd=function(a){this.wf=a};qa.prototype.Cj=function(a){this.zf=a};qa.prototype.jb=function(){if(this.Zc.length){return this.Zc.pop()}return this.jh()};qa.prototype.Eb=function(a){if(this.Zc.length<this.lq){this.Zc.push(a)}else{this.uh(a)}};qa.prototype.jh=function(){if(this.wf){return this.wf()}else{return{}}};qa.prototype.uh=function(a){if(this.zf){this.zf(a)}else{if(Db(a.dispose)){a.dispose()}else{for(var b in a){delete a[b]}}}};
qa.prototype.dispose=function(){if(!this.ka()){qa.S.dispose.call(this);var a=this.Zc;while(a.length){this.uh(a.pop())}this.Zc=null}};var cc={},xa={},Cb={},Hc=new qa(0,600);Hc.yd(function(){return{t:0}});Hc.Cj(function(a){a.t=0});var bc=new qa(0,600);bc.yd(function(){return[]});bc.Cj(function(a){a.length=0;delete a.ve;delete a.Ii});var th=new qa(0,600);th.yd(function(){var a=function(b){return Dl.call(a.src,a.key,b)};return a});var Al=function(){return new Pa},af=new qa(0,600);af.yd(Al);var yl=function(){return new L},zl=function(){var a=null;if(N){a=new qa(0,600);a.yd(yl)}return a},qh=zl(),Gl="on",bf={};var p=function(a,b,c,d,
e){if(H(b)){for(var f=0;f<b.length;f++){p(a,b[f],c,d,e)}return null}var g=!(!d),h=xa;if(!(b in h)){h[b]=Hc.jb()}h=h[b];if(!(g in h)){h[g]=Hc.jb();h.t++}h=h[g];var j=ka(a),k,l;if(!h[j]){k=(h[j]=bc.jb());h.t++}else{k=h[j];for(var f=0;f<k.length;f++){l=k[f];if(l.listener==c&&l.handler==e){if(l.removed){break}return k[f].key}}}var n=th.jb();n.src=a;l=af.jb();l.init(c,n,a,b,g,e);var m=l.key;n.key=m;k.push(l);cc[m]=l;if(!Cb[j]){Cb[j]=bc.jb()}Cb[j].push(l);if(a.addEventListener){if(a==v||!a.mh){a.addEventListener(b,
n,g)}}else{a.attachEvent(sh(b),n)}return m},El=function(a,b,c,d,e){if(H(b)){for(var f=0;f<b.length;f++){El(a,b[f],c,d,e)}return null}var g=p(a,b,c,d,e),h=cc[g];h.pf=true;return g},ya=function(a,b,c,d,e){if(H(b)){for(var f=0;f<b.length;f++){ya(a,b[f],c,d,e)}return null}var g=!(!d),h=rh(a,b,g);if(!h){return false}for(var f=0;f<h.length;f++){if(h[f].listener==c&&h[f].capture==g&&h[f].handler==e){return pb(h[f].key)}}return false},pb=function(a){if(!cc[a]){return false}var b=cc[a];if(b.removed){return false}var c=
b.src,d=b.type,e=b.proxy,f=b.capture;if(c.removeEventListener){if(c==v||!c.mh){c.removeEventListener(d,e,f)}}else if(c.detachEvent){c.detachEvent(sh(d),e)}var g=ka(c),h=xa[d][f][g];if(Cb[g]){var j=Cb[g];yc(j,b);if(j.length==0){delete Cb[g]}}b.removed=true;h.Ii=true;ph(d,f,g,h);delete cc[a];return true},ph=function(a,b,c,d){if(!d.ve){if(d.Ii){for(var e=0,f=0;e<d.length;e++){if(d[e].removed){af.Eb(d[e]);continue}if(e!=f){d[f]=d[e]}f++}d.length=f;d.Ii=false;if(f==0){bc.Eb(d);delete xa[a][b][c];xa[a][b].t--;
if(xa[a][b].t==0){Hc.Eb(xa[a][b]);delete xa[a][b];xa[a].t--}if(xa[a].t==0){Hc.Eb(xa[a]);delete xa[a]}}}}},Hl=function(a,b,c){var d=0,e=a==null,f=b==null,g=c==null;c=!(!c);if(!e){var h=ka(a);if(Cb[h]){var j=Cb[h];for(var k=j.length-1;k>=0;k--){var l=j[k];if((f||b==l.type)&&(g||c==l.capture)){pb(l.key);d++}}}}else{ai(Cb,function(n){for(var m=n.length-1;m>=0;m--){var y=n[m];if((f||b==y.type)&&(g||c==y.capture)){pb(y.key);d++}}})}return d};var rh=function(a,b,c){var d=xa;if(b in d){d=d[b];if(c in d){d=
d[c];var e=ka(a);if(d[e]){return d[e]}}}return null},Cl=function(a,b,c,d,e){var f=!(!d),g=rh(a,b,f);if(g){for(var h=0;h<g.length;h++){if(g[h].listener==c&&g[h].capture==f&&g[h].handler==e){return g[h]}}}return null};var na="click",Fc="mousedown",Gc="mouseover",Nd="mouseout",Ec="keypress",Qb="keydown",sh=function(a){if(a in bf){return bf[a]}return bf[a]=Gl+a},gd=function(a,b,c,d){var e=1,f=xa;if(b in f){f=f[b];if(c in f){f=f[c];var g=ka(a);if(f[g]){var h=f[g];if(!h.ve){h.ve=1}else{h.ve++}try{var j=
h.length;for(var k=0;k<j;k++){var l=h[k];if(l&&!l.removed){e&=$e(l,d)!==false}}}finally{h.ve--;ph(b,c,g,h)}}}}return Boolean(e)},$e=function(a,b){var c=a.F(b);if(a.pf){pb(a.key)}return c};var Bl=function(a,b){if(U(b)){b=new X(b,a)}else if(!(b instanceof X)){var c=b;b=new X(b.type,a);Hm(b,c)}else{b.target=b.target||a}var d=1,e,f=b.type,g=xa;if(!(f in g)){return true}g=g[f];var h=true in g,j=false in g;if(h){e=[];for(var k=a;k;k=k.de()){e.push(k)}for(var l=e.length-1;!b.Db&&l>=0;l--){b.currentTarget=
e[l];d&=gd(e[l],b.type,true,b)&&b.Lc!=false}}if(j){if(h){for(var l=0;!b.Db&&l<e.length;l++){b.currentTarget=e[l];d&=gd(e[l],b.type,false,b)&&b.Lc!=false}}else{for(var n=a;!b.Db&&n;n=n.de()){b.currentTarget=n;d&=gd(n,b.type,false,b)&&b.Lc!=false}}}return Boolean(d)},Dl=function(a,b){if(!cc[a]){return true}var c=cc[a],d=c.type,e=xa;if(!(d in e)){return true}e=e[d];var f;if(N){var g=b||ge("window.event"),h=true in e;if(h){if(g.keyCode<0||g.returnValue!=undefined){return true}Fl(g)}var j=ka(c.src),k=
qh.jb();k.init(g,this);f=true;try{if(h){var l=bc.jb();for(var n=k.currentTarget;n;n=n.parentNode){l.push(n)}for(var m=l.length-1;!k.Db&&m>=0;m--){k.currentTarget=l[m];f&=gd(l[m],d,true,k)}for(var m=0;!k.Db&&m<l.length;m++){k.currentTarget=l[m];f&=gd(l[m],d,false,k)}}else{f=$e(c,k)}}finally{if(l){l.length=0;bc.Eb(l)}k.dispose();qh.Eb(k)}return f}var y=new L(b,this);try{f=$e(c,y)}finally{y.dispose()}return f},Fl=function(a){var b=false;if(a.keyCode==0){try{a.keyCode=-1;return}catch(c){b=true}}if(b||
a.returnValue==undefined){a.returnValue=true}};var pa=function(a,b){this.width=ga(a)?Number(a):undefined;this.height=ga(b)?Number(b):undefined};pa.prototype.clone=function(){return new pa(this.width,this.height)};pa.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};pa.prototype.area=function(){return this.width*this.height};pa.prototype.Ea=function(){return!this.area()};pa.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};pa.prototype.floor=function(){this.width=
Math.floor(this.width);this.height=Math.floor(this.height);return this};pa.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};pa.prototype.scale=function(a){this.width*=a;this.height*=a;return this};var Eb=function(a,b){this.x=ga(a)?Number(a):undefined;this.y=ga(b)?Number(b):undefined};Eb.prototype.clone=function(){return new Eb(this.x,this.y)};Eb.prototype.toString=function(){return"("+this.x+", "+this.y+")"};var Cf=function(a,b){a=Number(a);b=Number(b);this.start=a<b?a:b;this.end=a<b?b:a};Cf.prototype.clone=function(){return new Cf(this.start,this.end)};Cf.prototype.toString=function(){return"["+this.start+", "+this.end+"]"};var mc=function(a,b,c,d){this.left=ga(a)?Number(a):undefined;this.top=
ga(b)?Number(b):undefined;this.width=ga(c)?Number(c):undefined;this.height=ga(d)?Number(d):undefined};mc.prototype.clone=function(){return new mc(this.left,this.top,this.width,this.height)};mc.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};var od=function(a,b,c,d){this.top=ga(a)?Number(a):undefined;this.right=ga(b)?Number(b):undefined;this.bottom=ga(c)?Number(c):undefined;this.left=ga(d)?Number(d):undefined};od.prototype.clone=function(){return new od(this.top,
this.right,this.bottom,this.left)};od.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};od.prototype.contains=function(a){return zm(this,a)};od.prototype.expand=function(a,b,c,d){if(Ta(a)){this.top-=a.top;this.right+=a.right;this.bottom+=a.bottom;this.left-=a.left}else{this.top-=a;this.right+=b;this.bottom+=c;this.left-=d}return this};var zm=function(a,b){if(!a||!b){return false}return b.x>=a.left&&b.x<=a.right&&b.y>=a.top&&b.y<=a.bottom};var Se;var Bc=function(){if(!Se){Se=new wa}return Se},Nb=function(a){return a?new wa(mb(a)):Bc()},hh=function(){return Bc().Pa()},Ob=function(a){return Bc().yc(a)},z=Ob,ml=function(a,b,c){return Bc().El(a,b,c)},il=ml,sl=function(a,b){ai(b,function(c,d){if(d=="style"){a.style.cssText=c}else if(d=="class"){a.className=c}else if(d=="for"){a.htmlFor=c}else if(d in eh){a.setAttribute(eh[d],c)}else{a[d]=c}})},eh={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",
height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder"},Te=function(a){var b=a||v||window,c=b.document;if(ua&&!ne("500")&&!Xf){if(typeof b.innerHeight=="undefined"){b=window}var d=b.innerHeight,e=b.document.documentElement.scrollHeight;if(b==b.top){if(e<d){d-=15}}return new pa(b.innerWidth,d)}var f=Nb(c),g=f.xl()=="CSS1Compat"&&(!Hb||Hb&&ne("9.50"))?c.documentElement:c.body;return new pa(g.clientWidth,g.clientHeight)},nl=function(a){var b=a||v||window,c=b.document,d,e;if(!ua&&c.compatMode==
"CSS1Compat"){d=c.documentElement.scrollLeft;e=c.documentElement.scrollTop}else{d=c.body.scrollLeft;e=c.body.scrollTop}return new Eb(d,e)},Ld=function(a){if(ua&&!ne("500")&&!Xf){return null}else{return a.parentWindow||a.defaultView}},Zb=function(a,b){var c=Bc();return c.r.apply(c,arguments)};var bd=function(a){return Bc().createElement(a)};var ll=function(a,b){a.appendChild(b)},pl=function(a){var b;while(b=a.firstChild){a.removeChild(b)}};var ol=function(a,b){if(b.parentNode){b.parentNode.insertBefore(a,
b.nextSibling)}},nb=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},ih=function(a){return jh(a.firstChild,true)};var jh=function(a,b){while(a&&a.nodeType!=1){a=b?a.nextSibling:a.previousSibling}return a};var jl=ua&&ti(Yf,"521")<=0,Re=function(a,b){if(typeof a.contains!="undefined"&&!jl&&b.nodeType==1){return a==b||a.contains(b)}if(typeof a.compareDocumentPosition!="undefined"){return a==b||Boolean(a.compareDocumentPosition(b)&16)}while(b&&a!=b){b=b.parentNode}return b==a};var mb=
function(a){return a.nodeType==9?a:a.ownerDocument||a.document};var tl=function(a,b){if("textContent"in a){a.textContent=b}else if(a.firstChild&&a.firstChild.nodeType==3){while(a.lastChild!=a.firstChild){a.removeChild(a.lastChild)}a.firstChild.data=b}else{while(a.hasChildNodes()){a.removeChild(a.lastChild)}var c=mb(a);a.appendChild(c.createTextNode(b))}};var cd=function(a,b){var c=[];gh(a,b,c,true);return c.length?c[0]:undefined};var gh=function(a,b,c,d){if(a!=null){for(var e=0,f;f=a.childNodes[e];e++){if(b(f)){c.push(f);
if(d){return}}gh(f,b,c,d)}}},kl={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},fh={IMG:" ",BR:"\n"},Kd=function(a){if(N&&"innerText"in a){return a.innerText.replace(/(\r\n|\r|\n)/g,"\n")}var b=[];kh(a,b,true);var c=b.join("").replace(/ +/g," ");if(c!=" "){c=c.replace(/^\s*/,"")}return c};var kh=function(a,b,c){if(a.nodeName in kl){}else if(a.nodeType==3){if(c){b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,""))}else{b.push(a.nodeValue)}}else if(a.nodeName in fh){b.push(fh[a.nodeName])}else{var d=
a.firstChild;while(d){kh(d,b,c);d=d.nextSibling}}};var wa=function(a){this.wa=a||v.document||document};wa.prototype.Pa=function(){return this.wa};wa.prototype.yc=function(a){if(U(a)){return this.wa.getElementById(a)}else{return a}};wa.prototype.El=function(a,b,c){var d=a||"*",e=c||this.wa,f=e.getElementsByTagName(d);if(b){var g=[];for(var h=0,j;j=f[h];h++){var k=j.className;if(typeof k.split=="function"&&Lb(k.split(" "),b)){g.push(j)}}return g}else{return f}};wa.prototype.r=function(a,b){if(N&&b&&
b.name){a="<"+a+' name="'+Ua(b.name)+'">'}var c=this.createElement(a);if(b){sl(c,b)}if(arguments.length>2){function d(g){if(g){this.appendChild(c,U(g)?this.createTextNode(g):g)}}for(var e=2;e<arguments.length;e++){var f=arguments[e];if((kc(f)||ua&&typeof f=="function"&&typeof f.length=="number")&&!(Ta(f)&&f.nodeType>0)){yb(H(f)?f:Ug(f),d,this)}else{d.call(this,f)}}}return c};wa.prototype.createElement=function(a){return this.wa.createElement(a)};wa.prototype.createTextNode=function(a){return this.wa.createTextNode(a)};
wa.prototype.xl=function(){if(this.wa.compatMode){return this.wa.compatMode}if(ua){var a=this.r("div",{style:"position:absolute;width:0;height:0;width:1"}),b=a.style.width=="1px"?"BackCompat":"CSS1Compat";return this.wa.compatMode=b}return"BackCompat"};wa.prototype.appendChild=ll;wa.prototype.eo=pl;wa.prototype.removeNode=nb;wa.prototype.contains=Re;var tb="complete";var Wh=function(){return Xh()};var Xh=null,Zh=null,Df=null,Fm=function(a,b){Xh=a;Zh=b;Df=null},Dm=function(){var a=Yh();if(a){return new ActiveXObject(a)}else{return new XMLHttpRequest}},Em=function(){var a=Yh(),b={};if(a){b[0]=true;b[1]=true}return b};Fm(Dm,Em);var Ef=null,Yh=function(){if(!Ef&&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.length;b++){var c=a[b];try{new ActiveXObject(c);
Ef=c;return c}catch(d){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return Ef};;var Of=function(a){if(typeof a.U=="function"){return a.U()}if(U(a)){return a.split("")}if(kc(a)){var b=[],c=a.length;for(var d=0;d<c;d++){b.push(a[d])}return b}return pd(a)},ni=function(a){if(typeof a.qa=="function"){return a.qa()}if(typeof a.U=="function"){return undefined}if(kc(a)||U(a)){var b=[],c=a.length;for(var d=0;d<c;d++){b.push(d)}return b}return Ff(a)};var Ca=function(a,b,c){if(typeof a.forEach=="function"){a.forEach(b,c)}else if(kc(a)||U(a)){yb(a,b,c)}else{var d=ni(a),e=Of(a),f=e.length;
for(var g=0;g<f;g++){b.call(c,e[g],d&&d[g],a)}}};var Zm=function(a,b,c){if(typeof a.some=="function"){return a.some(b,c)}if(kc(a)||U(a)){return Wk(a,b,c)}var d=ni(a),e=Of(a),f=e.length;for(var g=0;g<f;g++){if(b.call(c,e[g],d&&d[g],a)){return true}}return false};var V=function(a){this.m={};this.u=[];if(a){this.Jb(a)}},Mf=":",mi=Mf.charCodeAt(0);V.prototype.t=0;var je=function(a){a=String(a);if(a in Object.prototype){return Mf+a}else if(a.charCodeAt(0)==mi){return Mf+a}else{return a}},Ym=function(a){if(a.charCodeAt(0)==mi){return a.substring(1)}else{return a}};V.prototype.e=function(){return this.t};V.prototype.U=function(){this.sf();var a=[];for(var b=0;b<this.u.length;b++){var c=this.u[b];a.push(this.m[c])}return a};V.prototype.qa=function(){this.sf();var a=
[];for(var b=0;b<this.u.length;b++){var c=this.u[b];a.push(Ym(c))}return a};V.prototype.fa=function(a){return je(a)in this.m};V.prototype.Ea=function(){return this.t==0};V.prototype.clear=function(){this.m={};this.u.length=0;this.t=0};V.prototype.remove=function(a){var b=je(a);if(he(this.m,b)){this.t--;if(this.u.length>2*this.t){this.sf()}return true}return false};V.prototype.sf=function(){if(this.t!=this.u.length){var a=0,b=0;while(a<this.u.length){var c=this.u[a];if(c in this.m){this.u[b++]=c}a++}this.u.length=
b}if(this.t!=this.u.length){var d={},a=0,b=0;while(a<this.u.length){var c=this.u[a];if(!(c in d)){this.u[b++]=c;d[c]=1}a++}this.u.length=b}};V.prototype.get=function(a,b){var c=je(a);if(c in this.m){return this.m[c]}return b};V.prototype.set=function(a,b){var c=je(a);if(!(c in this.m)){this.t++;this.u.push(c)}this.m[c]=b};V.prototype.Jb=function(a){var b,c;if(a instanceof V){b=a.qa();c=a.U()}else{b=Ff(a);c=pd(a)}for(var d=0;d<b.length;d++){this.set(b[d],c[d])}};V.prototype.clone=function(){return new V(this)};var ub=function(a){this.m=new V;if(a){this.Jb(a)}},Nf=function(a){var b=typeof a;if(b=="object"){return"o"+ka(a)}else{return b.substr(0,1)+a}};ub.prototype.e=function(){return this.m.e()};ub.prototype.add=function(a){this.m.set(Nf(a),a)};ub.prototype.Jb=function(a){var b=Of(a),c=b.length;for(var d=0;d<c;d++){this.add(b[d])}};ub.prototype.remove=function(a){return this.m.remove(Nf(a))};ub.prototype.clear=function(){this.m.clear()};ub.prototype.Ea=function(){return this.m.Ea()};ub.prototype.contains=
function(a){return this.m.fa(Nf(a))};ub.prototype.U=function(){return this.m.U()};ub.prototype.clone=function(){return new ub(this)};var dl=function(a){var b=[];for(var c=0;c<a.length;c++){if(H(a[c])){b.push(dl(a[c]))}else{b.push(a[c])}}return"[ "+b.join(", ")+" ]"},el=function(a,b){try{var c=hl(a),d="Message: "+Ua(c.message)+'\nUrl: <a href="view-source:'+c.fileName+'" target="_new">'+c.fileName+"</a>\nLine: "+c.lineNumber+"\n\nBrowser stack:\n"+Ua(c.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+Ua(gl(b)+"-> ");return d}catch(e){return"Exception trying to expose exception! You win, we lose. "+e}},hl=function(a){var b=ge("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.name,lineNumber:"Not available",fileName:b,stack:"Not available"}:a)};var gl=function(a){return dh(a||arguments.callee.caller,[])},dh=function(a,b){var c=[];if(Lb(b,a)){c.push("[...circular reference...]")}else if(a&&b.length<50){c.push(ch(a)+"(");var d=a.arguments;for(var e=0;e<d.length;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=String(g);break;case "boolean":f=g?"true":"false";break;case "function":f=ch(g);f=f?f:"[fn]";break;case "undefined":default:f=typeof g;break}if(f.length>40){f=f.substr(0,40)+"..."}c.push(f)}b.push(a);c.push(")\n");try{c.push(dh(a.caller,b))}catch(h){c.push("[exception trying to get caller]\n")}}else if(a){c.push("[...long stack...]")}else{c.push("[end]")}return c.join("")},ch=function(a){if(!Jd[a]){var b=
/function ([^\(]+)/.exec(String(a));if(b){var c=b[1],d=/^\$(.+)\$$/.exec(c);if(d){c=d[1].replace(/\${1,2}/g,".")}Jd[a]=c}else{Jd[a]="[Anonymous]"}}return Jd[a]},fl=function(a,b,c,d){if(ge("document.all")){return""}var e=b||v,f=c||"",g=d||0;if(e==a){return f}for(var h in e){if(h=="Packages"||h=="sun"||h=="netscape"||h=="java"){continue}if(e[h]==a){return f+h}if((typeof e[h]=="function"||typeof e[h]=="object")&&e[h]!=v&&e[h]!=ge("document")&&e.hasOwnProperty(h)&&g<6){var j=fl(a,e[h],f+h+".",g+1);if(j)return j}}return""},
Jd={};var Xa=function(a,b,c){this.or=$k++;this.Sq=Ba();this.ob=a;this.oq=b;this.kq=c};Xa.prototype.Dh=null;Xa.prototype.Ch=null;var $k=0;Xa.prototype.Rf=function(){return this.kq};Xa.prototype.Fl=function(){return this.Dh};Xa.prototype.Ko=function(a){this.Dh=a};Xa.prototype.Gl=function(){return this.Ch};Xa.prototype.Lo=function(a){this.Ch=a};Xa.prototype.bd=function(){return this.ob};Xa.prototype.Ag=function(a){this.ob=a};Xa.prototype.Uh=function(){return this.oq};Xa.prototype.Vh=function(){return this.Sq};var Z=function(a){this.Xa=a;this.l=null;this.jc={};this.Ac=[]};Z.prototype.ob=null;var gb=function(a,b){this.name=a;this.value=b};gb.prototype.toString=function(){return this.name};var Ip=new gb("OFF",Infinity),bh=new gb("SHOUT",1200),Ne=new gb("SEVERE",1000),Oe=new gb("WARNING",900),ah=new gb("INFO",800),al=new gb("CONFIG",700),Me=new gb("FINE",500),Hp=new gb("FINER",400),bl=new gb("FINEST",300),Gp=new gb("ALL",0);var Hd=function(a){return Yg(a)};Z.prototype.ya=function(){return this.Xa};Z.prototype.Ug=
function(a){this.Ac.push(a)};Z.prototype.jj=function(a){return yc(this.Ac,a)};Z.prototype.ga=function(){return this.l};Z.prototype.Ag=function(a){this.ob=a};Z.prototype.bd=function(){return this.ob};Z.prototype.Dl=function(){if(this.ob){return this.ob}if(this.l){return this.l.Dl()}return null};Z.prototype.re=function(a){if(this.ob){return a.value>=this.ob.value}if(this.l){return this.l.re(a)}return false};Z.prototype.log=function(a,b,c){if(!this.re(a)){return}var d=new Xa(a,String(b),this.Xa);if(c){d.Ko(c);
d.Lo(el(c,arguments.callee.caller))}this.Xm(d)};Z.prototype.severe=function(a,b){this.log(Ne,a,b)};Z.prototype.warning=function(a,b){this.log(Oe,a,b)};Z.prototype.info=function(a,b){this.log(ah,a,b)};Z.prototype.fine=function(a,b){this.log(Me,a,b)};Z.prototype.finest=function(a,b){this.log(bl,a,b)};Z.prototype.Xm=function(a){if(!this.re(a.bd())){return}var b=this;while(b){b.xk(a);b=b.ga()}};Z.prototype.xk=function(a){for(var b=0;b<this.Ac.length;b++){this.Ac[b](a)}};Z.prototype.Oc=function(a){this.l=
a};Z.prototype.ck=function(a,b){this.jc[a]=b};var Gd={},ad=null,$g=function(){if(!ad){ad=new Z("");Gd[""]=ad;ad.Ag(al)}};var Zg=function(){$g();return ad},Yg=function(a){$g();if(a in Gd){return Gd[a]}else{return Zk(a)}},Zk=function(a){var b=new Z(a),c=a.split("."),d=c[c.length-1];c.length=c.length-1;var e=c.join("."),f=Yg(e);f.ck(d,b);b.Oc(f);Gd[a]=b;return b};var Id=function(){this.co=Ba()},cl=new Id;Id.prototype.set=function(a){this.co=a};Id.prototype.reset=function(){this.set(Ba())};Id.prototype.get=function(){return this.co};var Mb=function(a){this.rg=a||"";this.ep=cl};Mb.prototype.Dg=true;Mb.prototype.Kj=true;Mb.prototype.Jj=true;Mb.prototype.wc=function(a){throw Error("Must override formatRecord");};var Wg=function(a){var b=new Date(a.Vh());return Xb(b.getFullYear()-2000)+Xb(b.getMonth()+1)+Xb(b.getDate())+" "+Xb(b.getHours())+":"+Xb(b.getMinutes())+":"+Xb(b.getSeconds())+"."+Xb(Math.floor(b.getMilliseconds()/10))},Xb=function(a){if(a<10){return"0"+a}return String(a)},Xg=function(a,b){var c=a.Vh()-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},Le=function(a){Mb.call(this,a)};Le.inherits(Mb);Le.prototype.wc=function(a){var b;switch(a.bd().value){case bh.value:b="dbg-sh";break;case Ne.value:b="dbg-sev";break;case Oe.value:b="dbg-w";break;case ah.value:b="dbg-i";break;case Me.value:default:b="dbg-f";break}var c=[];c.push(this.rg," ");if(this.Dg){c.push("[",Wg(a),"] ")}if(this.Kj){c.push("[",Lf(Xg(a,this.ep.get())),"s] ")}if(this.Jj){c.push("[",Ua(a.Rf()),"] ")}c.push('<span class="',
b,'">',If(Lf(Ua(a.Uh()))));if(a.Fl()){c.push("<br>",If(Lf(a.Gl())))}c.push("</span><br>");return c.join("")};var Pe=function(a){Mb.call(this,a)};Pe.inherits(Mb);Pe.prototype.wc=function(a){var b=[];b.push(this.rg," ");if(this.Dg){b.push("[",Wg(a),"] ")}if(this.Kj){b.push("[",Xg(a,this.ep.get()),"s] ")}if(this.Jj){b.push("[",a.Rf(),"] ")}b.push(a.Uh(),"\n");return b.join("")};var Fb=function(){if(!Ea)return;this.lc={};this.Sg={};this.Ig=[]};Fb.prototype.Wa=Hd("goog.net.xhrMonitor");Fb.prototype.gj=function(a){if(!Ea)return;var b=this.Ll(a);this.Wa.finest("Pushing context: "+a+" ("+b+")");this.Ig.push(b)};Fb.prototype.cj=function(){if(!Ea)return;var a=this.Ig.pop();this.Wa.finest("Popping context: "+a);this.rp(a)};Fb.prototype.bn=function(a){if(!Ea)return;var b=ka(a);this.Wa.fine("Opening XHR : "+b);for(var c=0;c<this.Ig.length;c++){var d=this.Ig[c];this.Gd(this.lc,d,b);
this.Gd(this.Sg,b,d)}};Fb.prototype.an=function(a){if(!Ea)return;var b=ka(a);this.Wa.fine("Closing XHR : "+b);delete this.Sg[b];for(var c in this.lc){yc(this.lc[c],b);if(this.lc[c].length==0){delete this.lc[c]}}};Fb.prototype.rp=function(a){var b=this.Sg[a],c=this.lc[a];if(b&&c){this.Wa.finest("Updating dependent contexts");yb(b,function(d){yb(c,function(e){this.Gd(this.lc,d,e);this.Gd(this.Sg,e,d)},this)},this)}};Fb.prototype.Ll=function(a){return U(a)?a:ka(a)};Fb.prototype.Gd=function(a,b,c){if(!a[b]){a[b]=
[]}if(!Lb(a[b],c)){a[b].push(c)}};var Oc=new Fb;var J=function(){};J.inherits(Wa);J.prototype.de=function(){return null};J.prototype.addEventListener=function(a,b,c,d){p(this,a,b,c,d)};J.prototype.removeEventListener=function(a,b,c,d){ya(this,a,b,c,d)};J.prototype.dispatchEvent=function(a){return Bl(this,a)};J.prototype.dispose=function(){if(!this.ka()){Wa.prototype.dispose.call(this);Hl(this)}};J.prototype.mh=true;var Uh=function(a){return eval("("+a+")")};var nd=function(){};nd.prototype.yj=function(a,b){switch(typeof a){case "string":this.xj(a,b);break;case "number":this.Fo(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(H(a)){this.Eo(a,b);break}this.Go(a,b);break;default:throw Error("Unknown type: "+typeof a);}};var Bf={'"':'\\"',"\\":"\\\\","/":"\\/","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\u000b"};
nd.prototype.xj=function(a,b){b.push('"',a.replace(/[\\\"\x00-\x1f\x80-\uffff]/g,function(c){if(c in Bf){return Bf[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 Bf[c]=e+d.toString(16)}),'"')};nd.prototype.Fo=function(a,b){b.push(isFinite(a)&&!isNaN(a)?a:"null")};nd.prototype.Eo=function(a,b){var c=a.length;b.push("[");var d="";for(var e=0;e<c;e++){b.push(d);this.yj(a[e],b);d=","}b.push("]")};nd.prototype.Go=function(a,b){b.push("{");var c=
"";for(var d in a){b.push(c);this.xj(d,b);b.push(":");this.yj(a[d],b);c=","}b.push("}")};var lb=function(a,b){J.call(this);this.oe=a||1;this.cf=b||Kb;this.ah=w(this.jp,this);this.Zb=Ba()};lb.inherits(J);lb.prototype.enabled=false;var Kb=v.window,Mk=0.8;lb.prototype.Y=null;lb.prototype.setInterval=function(a){this.oe=a;if(this.Y&&this.enabled){this.stop();this.start()}else if(this.Y){this.stop()}};lb.prototype.jp=function(){if(this.enabled){var a=Ba()-this.Zb;if(a>0&&a<this.oe*Mk){this.Y=this.cf.setTimeout(this.ah,this.oe-a);return}this.cl();if(this.enabled){this.Y=this.cf.setTimeout(this.ah,
this.oe);this.Zb=Ba()}}};lb.prototype.cl=function(){this.dispatchEvent("tick")};lb.prototype.start=function(){this.enabled=true;if(!this.Y){this.Y=this.cf.setTimeout(this.ah,this.oe);this.Zb=Ba()}};lb.prototype.stop=function(){this.enabled=false;this.cf.clearTimeout(this.Y);this.Y=null};lb.prototype.dispose=function(){if(!this.ka()){J.prototype.dispose.call(this);this.stop();this.cf=null}};var D=function(){J.call(this);this.headers=new V};D.inherits(J);D.prototype.Wa=Hd("goog.net.XhrLite");D.prototype.Ib=false;D.prototype.w=null;D.prototype.gf=null;D.prototype.wi="";D.prototype.ui="";D.prototype.md=0;D.prototype.nd="";D.prototype.If=false;D.prototype.bf=0;D.prototype.ec=null;D.prototype.send=function(a,b,c,d){if(this.Ib){throw Error("[goog.net.XhrLite] Object is active with another request");}var e=b||"GET";this.wi=a;this.nd="";this.md=0;this.ui=e;this.Ib=true;this.w=new Wh;this.gf=
Df||(Df=Zh());Oc.bn(this.w);this.w.onreadystatechange=w(this.Ae,this);try{this.sa("Opening Xhr");this.w.open(e,a,true)}catch(f){this.sa("Error opening Xhr: "+f.message);this.Ah(5,f);return}var g=c?String(c):"",h=this.headers.clone();if(d){Ca(d,function(j,k){h.set(k,j)})}if(e=="POST"&&!h.fa("Content-Type")){h.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8")}Ca(h,function(j,k){this.w.setRequestHeader(k,j)},this);try{if(this.ec){Kb.clearTimeout(this.ec);this.ec=null}if(this.bf>0){this.sa("Will abort after "+
this.bf+"ms if incomplete");this.ec=Kb.setTimeout(w(this.kp,this),this.bf)}this.sa("Sending request");this.If=false;this.w.send(g)}catch(f){this.sa("Send error: "+f.message);this.Ah(5,f)}};D.prototype.dispatchEvent=function(a){if(this.w){Oc.gj(this.w);try{D.S.dispatchEvent.call(this,a)}finally{Oc.cj()}}else{D.S.dispatchEvent.call(this,a)}};D.prototype.kp=function(){if(typeof He=="undefined"){}else if(this.w){this.nd="Timed out after "+this.bf+"ms, aborting";this.md=8;this.sa(this.nd);this.dispatchEvent("timeout");
this.abort(8)}};D.prototype.Ah=function(a,b){this.Ib=false;if(this.w){this.w.abort()}this.nd=b;this.md=a;this.sh();this.Kd()};D.prototype.sh=function(){if(!this.If){this.If=true;this.dispatchEvent(tb);this.dispatchEvent("error")}};D.prototype.abort=function(a){if(this.w){this.sa("Aborting");this.Ib=false;this.w.abort();this.md=a||7;this.dispatchEvent(tb);this.dispatchEvent("abort");this.Kd()}};D.prototype.dispose=function(){if(!this.ka()){if(this.w){this.Ib=false;this.w.abort();this.Kd(true)}D.S.dispose.call(this)}};
D.prototype.Ae=function(){if(!this.Ib){return}if(typeof He=="undefined"){}else if(this.gf[1]&&this.fe()==4&&this.ge()==2){this.sa("Local request error detected and ignored")}else{this.dispatchEvent("readystatechange");if(this.ri()){this.sa("Request complete");this.Ib=false;if(this.Xb()){this.dispatchEvent(tb);this.dispatchEvent("success")}else{this.md=6;this.nd=this.Vl()+" ["+this.ge()+"]";this.sh()}this.Kd()}}};D.prototype.Kd=function(a){if(this.w){this.w.onreadystatechange=this.gf[0]?Gm:null;var b=
this.w;this.w=null;this.gf=null;if(this.ec){Kb.clearTimeout(this.ec);this.ec=null}if(!a){Oc.gj(b);this.dispatchEvent("ready");Oc.cj()}Oc.an(b)}};D.prototype.ri=function(){return this.fe()==4};D.prototype.Xb=function(){switch(this.ge()){case 0:case 200:case 304:return true;default:return false}};D.prototype.fe=function(){return this.w?this.w.readyState:0};D.prototype.ge=function(){try{return this.fe()>2?this.w.status:-1}catch(a){this.Wa.warning("Can not get status: "+a.message);return-1}};D.prototype.Vl=
function(){try{return this.fe()>2?this.w.statusText:""}catch(a){this.Wa.fine("Can not get status: "+a.message);return""}};D.prototype.zc=function(){return this.w?this.w.responseText:""};D.prototype.getResponseHeader=function(a){return this.w&&this.ri()?this.w.getResponseHeader(a):undefined};D.prototype.sa=function(a){this.Wa.fine(a+" ["+this.ui+" "+this.wi+" "+this.ge()+"]")};var I=function(a){J.call(this);this.i=a||Nb()};I.inherits(J);var fn=0;var Uf="Component already rendered",qi="Unable to set parent component";I.prototype.Ta=null;I.prototype.i=null;I.prototype.Bc=false;I.prototype.b=null;I.prototype.tn=null;I.prototype.l=null;I.prototype.jc=null;I.prototype.Jd=null;I.prototype.Tj=null;I.prototype.Qa=function(){return this.Ta||(this.Ta=this.Nl())};I.prototype.yc=function(){return this.b};I.prototype.Qo=function(a){if(this==a){throw Error(qi);}if(a&&this.l&&this.l.Hh(this.Ta)){throw Error(qi);
}this.l=a};I.prototype.ga=function(){return this.l};I.prototype.de=function(){return this.l};I.prototype.kd=function(){return this.Bc};I.prototype.r=function(){this.b=this.i.createElement("div")};I.prototype.render=function(a){this.Le(a)};I.prototype.Le=function(a,b){if(this.Bc){throw Error(Uf);}if(!this.b){this.r()}if(a){a.insertBefore(this.b,b||null)}else{this.i.Pa().body.appendChild(this.b)}if(!this.l||this.l.kd()){this.tc()}};I.prototype.decorate=function(a){if(this.Bc){throw Error(Uf);}else if(a&&
this.Hd(a)){this.Tj=true;if(!this.i||this.i.Pa()!=mb(a)){this.i=Nb(a)}this.xf(a);this.tc()}else{throw Error("Invalid element to decorate");}};I.prototype.Hd=function(a){return true};I.prototype.xf=function(a){this.b=a};I.prototype.tc=function(){this.Bc=true;this.Lf(function(a){if(a.yc()){a.tc()}})};I.prototype.vc=function(){this.Lf(function(a){if(a.kd()){a.vc()}});this.Bc=false};I.prototype.dispose=function(){if(!this.ka()){I.S.dispose.call(this);if(this.Bc){this.vc()}this.Lf(function(a){a.dispose()});
if(!this.Tj&&this.b){nb(this.b)}this.jc=null;this.Jd=null;this.b=null;this.tn=null;this.l=null}};I.prototype.Nl=function(){return":"+fn++};I.prototype.Hh=function(a){return this.Jd&&a?Im(this.Jd,a)||null:null};I.prototype.Lf=function(a,b){if(this.jc){yb(this.jc,a,b)}};I.prototype.removeChild=function(a,b){if(a){var c=U(a)?a:a.Qa();a=this.Hh(c);if(c&&a){he(this.Jd,c);yc(this.jc,a);if(b){a.vc();if(a.b){nb(a.b)}}a.Qo(null)}}if(!a){throw Error("Child is not in parent component");}return a};var Qe=function(a){var b=a.className;return b&&typeof b.split=="function"?b.split(" "):[]},$=function(a,b){var c=Qe(a),d=Fd(arguments,1),e=1;for(var f=0;f<d.length;f++){if(!Lb(c,d[f])){c.push(d[f]);e&=1}else{e&=0}}a.className=c.join(" ");return Boolean(e)},Ga=function(a,b){var c=Qe(a),d=Fd(arguments,1),e=0;for(var f=0;f<c.length;f++){if(Lb(d,c[f])){Xk(c,f--,1);e++}}a.className=c.join(" ");return e==d.length};var Ac=function(a,b){return Lb(Qe(a),b)};var zc=function(a,b){if(Ea){a.setAttributeNS("http://www.w3.org/1999/xhtml","role","wairole:"+b);a.roleName=b}};var Yb=function(a,b,c){if(Ea){a.setAttributeNS("http://www.w3.org/2005/07/aaa",b,c)}};var Aa=function(a,b,c,d){J.call(this);if(!H(a)||!H(b)){throw Error("Start and end parameters must be arrays");return}if(a.length!=b.length){throw Error("Start and end points must be the same length");return}this.cc=a;this.yh=b;this.Cf=c;this.ak=d;this.mc=[]};Aa.inherits(J);var Sa="begin",rb="animate",Lc=[],jc=null,Nh=function(){Kb.clearTimeout(jc);var a=Ba();yb(Lc,function(b){if(b){b.cycle(a)}});jc=Lc.length==0?null:Kb.setTimeout(Nh,20)},sm=function(a){if(!Lb(Lc,a)){Lc.push(a)}if(jc==null){jc=Kb.setInterval(Nh,
20)}},de=function(a){yc(Lc,a);if(Lc.length.length==0&&jc!=null){Kb.clearInterval(jc);jc=null}};Aa.prototype.Ia=0;Aa.prototype.Gh=0;Aa.prototype.za=0;Aa.prototype.dc=null;Aa.prototype.zh=null;Aa.prototype.hg=null;Aa.prototype.play=function(a){if(a||this.Ia==0){this.za=0;this.mc=this.cc}else if(this.Ia==1){return false}de(this);this.dc=Ba();if(this.Ia==-1){this.dc-=this.Cf*this.za}this.zh=this.dc+this.Cf;this.hg=this.dc;if(this.za==0){this.eb(Sa)}this.eb("play");if(this.Ia==-1){this.eb("resume")}this.Ia=
1;sm(this);this.cycle(this.dc);return true};Aa.prototype.stop=function(a){de(this);this.Ia=0;if(a)this.za=1;this.Lg(this.za);this.eb("stop");this.eb("end")};Aa.prototype.pause=function(){if(this.Ia==1){de(this);this.Ia=-1;this.eb("pause")}};Aa.prototype.cycle=function(a){this.za=(a-this.dc)/(this.zh-this.dc);if(this.za>=1)this.za=1;this.Gh=1000/(a-this.hg);this.hg=a;if(Db(this.ak)){this.Lg(this.ak(this.za))}else{this.Lg(this.za)}if(this.za==1){this.Ia=0;this.eb("finish");this.eb("end");de(this)}else if(this.Ia==
1){this.eb(rb)}};Aa.prototype.Lg=function(a){this.mc=new Array(this.cc.length);for(var b=0;b<this.cc.length;b++){this.mc[b]=(this.yh[b]-this.cc[b])*a+this.cc[b]}};Aa.prototype.eb=function(a){this.dispatchEvent(new zf(a,this))};var zf=function(a,b){X.call(this,a);this.coords=b.mc;this.x=b.mc[0];this.y=b.mc[1];this.z=b.mc[2];this.duration=b.Cf;this.progress=b.za;this.fps=b.Gh;this.state=b.Ia;this.anim=b};zf.inherits(X);zf.prototype.hh=function(){return Vk(this.coords,Math.round)};var sb=function(a,b,c){this.target=a;this.handle=b||a;this.Ma=true;this.Sd=false;this.limits=c||new mc;this.wa=this.target.ownerDocument||this.target.document;this.screenX=0;this.screenY=0;this.deltaX=0;this.deltaY=0;p(this.handle,Fc,this.Lj,false,this);p(this.wa,"mousemove",this.Hi,false,this);p(this.wa,"mouseup",this.xh,false,this)};sb.inherits(J);sb.prototype.Nc=function(a){this.Ma=a};sb.prototype.dispose=function(){if(this.ka())return;J.prototype.dispose.call(this);ya(this.handle,Fc,this.Lj,false,
this);ya(this.wa,"mousemove",this.Hi,false,this);ya(this.wa,"mouseup",this.xh,false,this);delete this.target;delete this.handle};sb.prototype.Lj=function(a){if(this.Ma&&!this.Sd){var b=this.dispatchEvent(new md("start",this,a.clientX,a.clientY,a));if(b!==false){this.screenX=a.screenX;this.screenY=a.screenY;this.deltaX=this.target.offsetLeft;this.deltaY=this.target.offsetTop;this.Sd=true;a.preventDefault()}}};sb.prototype.xh=function(a){if(this.Sd){this.Sd=false;var b=this.yi(this.deltaX),c=this.zi(this.deltaY);
this.dispatchEvent(new md("end",this,a.clientX,a.clientY,a,b,c))}};sb.prototype.Hi=function(a){if(this.Sd&&this.Ma){var b=a.screenX-this.screenX,c=a.screenY-this.screenY;this.deltaX+=b;this.deltaY+=c;var d=this.yi(this.deltaX),e=this.zi(this.deltaY);this.screenX=a.screenX;this.screenY=a.screenY;var f=this.dispatchEvent(new md("beforedrag",this,a.clientX,a.clientY,a,d,e));if(f!==false){this.Xk(d,e);this.dispatchEvent(new md("drag",this,a.clientX,a.clientY,a,d,e));a.preventDefault()}}};sb.prototype.yi=
function(a){var b=this.limits,c=typeof b.left!="undefined"?b.left:null,d=typeof b.width!="undefined"?b.width:0,e=c!=null?c+d:Infinity,f=c!=null?c:-Infinity;return Math.min(e,Math.max(f,a))};sb.prototype.zi=function(a){var b=this.limits,c=typeof b.top!="undefined"?b.top:null,d=typeof b.height!="undefined"?b.height:0,e=c!=null?c+d:Infinity,f=c!=null?c:-Infinity;return Math.min(e,Math.max(f,a))};sb.prototype.Xk=function(a,b){this.target.style.left=a+"px";this.target.style.top=b+"px"};var md=function(a,
b,c,d,e,f,g){X.call(this,a);this.type=a;this.clientX=c;this.clientY=d;this.browserEvent=e;this.left=ga(f)?f:b.deltaX;this.top=ga(g)?g:b.deltaY;this.dragger=b};md.inherits(X);var Pf,Gb=function(a,b,c){a.style[cn(b)]=c};var $m=function(a,b){var c=mb(a);if(c.defaultView&&c.defaultView.getComputedStyle){var d=c.defaultView.getComputedStyle(a,"");if(d){return d[b]}}return null};var Qf=function(a,b){return $m(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style[b]};var Sf=function(a,b,c){var d,e;if(b instanceof Eb){d=b.x;e=b.y}else{d=b;e=c}a.style.left=typeof d=="number"?Math.round(d)+"px":d;a.style.top=typeof e=="number"?Math.round(e)+"px":e};var oi=function(a){var b;if(a){if(a.nodeType==
9){b=a}else{b=mb(a)}}else{b=hh()}if(N&&b.compatMode!="CSS1Compat"){return b.body}return b.documentElement},oc=function(a){var b=mb(a),c=Ea&&b.getBoxObjectFor&&Qf(a,"position")=="absolute"&&(a.style.top==""||a.style.left=="");if(typeof Pf=="undefined"){Pf=si&&!ne("1.8.0.11")}var d=new Eb(0,0),e=oi(b);if(a==e){return d}var f=null,g;if(a.getBoundingClientRect){g=a.getBoundingClientRect();var h=e.scrollTop,j=e.scrollLeft;d.x=g.left+j;d.y=g.top+h}else if(b.getBoxObjectFor&&!c&&!Pf){g=b.getBoxObjectFor(a);
var k=b.getBoxObjectFor(e);d.x=g.screenX-k.screenX;d.y=g.screenY-k.screenY}else{d.x=a.offsetLeft;d.y=a.offsetTop;f=a.offsetParent;if(f!=a){while(f){d.x+=f.offsetLeft;d.y+=f.offsetTop;f=f.offsetParent}}if(Hb||ua&&Qf(a,"position")=="absolute"){d.y-=b.body.offsetTop}f=a.offsetParent;while(f&&f!=b.body){d.x-=f.scrollLeft;if(!Hb||f.tagName!="TR"){d.y-=f.scrollTop}f=f.offsetParent}}return d};var ke=function(a,b,c){var d=oc(a);if(b instanceof Eb){c=b.y;b=b.x}var e=b-d.x,f=c-d.y;Sf(a,a.offsetLeft+e,a.offsetTop+
f)},pc=function(a,b,c){var d;if(b instanceof pa){d=b.height;b=b.width}else{d=c}a.style.width=typeof b=="number"?Math.round(b)+"px":b;a.style.height=typeof d=="number"?Math.round(d)+"px":d},la=function(a){if(Qf(a,"display")!="none"){return new pa(a.offsetWidth,a.offsetHeight)}var b=a.style,c=b.visibility,d=b.position;b.visibility="hidden";b.position="absolute";b.display="";var e=a.offsetWidth,f=a.offsetHeight;b.display="none";b.position=d;b.visibility=c;return new pa(e,f)};var cn=function(a){return String(a).replace(/\-([a-z])/g,
function(b,c){return c.toUpperCase()})};var Rf=function(a,b){var c=a.style;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+")"}};var cb=function(a,b){a.style.display=b?"":"none"};var an=function(){if(Ea){return"MozUserSelect"}else if(ua){return"WebkitUserSelect"}return null};var bn=function(a,b){var c=a.getElementsByTagName("*");if(Ea||ua){var d=an(),e=b?"none":"";a.style[d]=e;
for(var f=0,g;g=c[f];f++){g.style[d]=e}}else if(N||Hb){var e=b?"on":"";a.setAttribute("unselectable",e);for(var f=0,g;g=c[f];f++){g.setAttribute("unselectable",e)}}};var x=function(a,b,c){I.call(this,c);this.aa=a||"modal-dialog";this.Og=!(!b);this.Ja=ri};x.inherits(I);x.prototype.aa=null;x.prototype.Og=false;x.prototype.Gi=true;x.prototype.wh=true;x.prototype.Gn=0.3;x.prototype.df="";x.prototype.kc="";x.prototype.Ja=null;x.prototype.qc=null;x.prototype.Z=false;x.prototype.P=null;x.prototype.Q=null;x.prototype.Ba=null;x.prototype.Hb=null;x.prototype.Jg=null;x.prototype.fc=null;x.prototype.ua=null;x.prototype.na=null;x.prototype.zg=function(a){this.kc=a;if(this.ua){this.ua.innerHTML=
a}};x.prototype.xc=function(){if(!this.kd()){this.render()}return this.ua};x.prototype.Jk=function(){var a=new sb(this.b,this.Ba);$(this.Ba,this.aa+"-title-draggable");return a};x.prototype.r=function(){this.Di();this.b=this.i.r("div",{className:this.aa,tabIndex:0},this.Ba=this.i.r("div",{className:this.aa+"-title",id:this.Qa()},this.Hb=this.i.r("span",{className:this.aa+"-title-text"},this.df),this.fc=this.i.r("span",{className:this.aa+"-title-close"})),this.ua=this.i.r("div",{className:this.aa+
"-content"}),this.na=this.i.r("div",{className:this.aa+"-buttons"}));this.Jg=this.Ba.id;zc(this.b,"dialog");Yb(this.b,"labelledby",this.Jg);if(this.kc){this.ua.innerHTML=this.kc}cb(this.b,false);if(this.Ja){this.Ja.kf(this.na)}};x.prototype.Di=function(){if(this.Og&&!this.Q){this.Q=this.i.r("iframe",{frameborder:0,style:"border: 0",className:this.aa+"-bg"});cb(this.Q,false);Rf(this.Q,0)}else if(!this.Og&&this.Q){nb(this.Q);this.Q=null}if(this.Gi&&!this.P){this.P=this.i.r("div",{className:this.aa+
"-bg"});Rf(this.P,this.Gn);cb(this.P,false)}else if(!this.Gi&&this.P){nb(this.P);this.P=null}};x.prototype.render=function(a){if(this.kd()){throw Error(Uf);}if(!this.b){this.r()}var b=a||this.i.Pa().body;this.lj(b);x.S.render.call(this,b)};x.prototype.lj=function(a){if(this.Q){a.appendChild(this.Q)}if(this.P){a.appendChild(this.P)}};x.prototype.Hd=function(a){return a&&a.tagName&&a.tagName=="DIV"&&x.S.Hd.call(this,a)};x.prototype.xf=function(a){this.b=a;$(this.b,this.aa);var b=this.aa+"-content";
this.ua=cd(this.b,function(g){return g.nodeType==1&&Ac(g,b)});if(this.ua){this.kc=this.ua.innerHTML}else{this.ua=this.i.r("div",{className:b});if(this.kc){this.ua.innerHTML=this.kc}this.b.appendChild(this.ua)}var c=this.aa+"-title",d=this.aa+"-title-text",e=this.aa+"-title-close";this.Ba=cd(this.b,function(g){return g.nodeType==1&&Ac(g,c)});if(this.Ba){this.Hb=cd(this.Ba,function(g){return g.nodeType==1&&Ac(g,d)});this.fc=cd(this.Ba,function(g){return g.nodeType==1&&Ac(g,e)})}else{this.Ba=this.i.r("div",
{className:c});this.b.insertBefore(this.Ba,this.ua)}if(this.Hb){this.df=Kd(this.Hb)}else{this.Hb=this.i.r("span",{className:d},this.df);this.Ba.appendChild(this.Hb)}Yb(this.b,"labelledby",this.Jg);if(!this.fc){this.fc=this.i.r("span",{className:e},this.df);this.Ba.appendChild(this.fc)}var f=this.aa+"-buttons";this.na=cd(this.b,function(g){return g.nodeType==1&&Ac(g,f)});if(this.na){this.Ja=new ra(this.i);this.Ja.decorate(this.na)}else{this.na=this.i.r("div",{className:f});this.b.appendChild(this.na);
if(this.Ja){this.Ja.kf(this.na)}}this.Di();this.lj(mb(this.b).body)};x.prototype.tc=function(){x.S.tc.call(this);if(this.wh&&!this.qc){this.qc=this.Jk()}p(this.fc,na,this.Wi,false,this);p(this.na,na,this.Oi,false,this);zc(this.b,"dialog");if(this.Hb.id!==""){Yb(this.b,"labelledby",this.Hb.id)}};x.prototype.vc=function(){ya(this.fc,na,this.Wi,this);ya(this.na,na,this.Oi,this);if(this.Dc()){this.Ha(false)}if(this.qc){this.qc.dispose();this.qc=null}x.S.vc.call(this)};x.prototype.Ha=function(a){if(a==
this.Z){return}var b=this.i.Pa(),c=Ld(b)||window;if(!this.kd()){this.render(b.body)}if(a){this.rj();this.reposition();p(b,Qb,this.Ti,true,this);p(c,"resize",this.Ui,true,this)}else{ya(b,Qb,this.Ti,true,this);ya(c,"resize",this.Ui,true,this)}if(this.Q){cb(this.Q,a)}if(this.P){cb(this.P,a)}cb(this.b,a);if(a&&this.ad().Nh()){var d=this.na.getElementsByTagName("button");for(var e=0,f;f=d[e];e++){if(f.name==this.ad().Nh()){f.focus();break}}}this.Z=a};x.prototype.Dc=function(){return this.Z};x.prototype.rj=
function(){if(this.Q){cb(this.Q,false)}if(this.P){cb(this.P,false)}var a=this.i.Pa(),b=Ld(a)||window,c=Te(b),d=a.body.scrollWidth,e=Math.max(a.body.scrollHeight,c.height);if(this.Q){cb(this.Q,true);pc(this.Q,d,e)}if(this.P){cb(this.P,true);pc(this.P,d,e)}if(this.wh){var f=la(this.b);this.qc.limits=new mc(0,0,d-f.width,e-f.height)}};x.prototype.reposition=function(){var a=this.i.Pa(),b=Ld(a)||window,c=nl(b),d=c.x,e=c.y,f=la(this.b),g=Te(b),h=Math.max(d+g.width/2-f.width/2,0),j=Math.max(e+g.height/
2-f.height/2,0);Sf(this.b,h,j)};x.prototype.Wi=function(a){var b=this.ad(),c=b.Yd();if(c){var d=b.get(c);if(this.dispatchEvent(new me(c,d))){this.Ha(false)}}else{this.Ha(false)}};x.prototype.dispose=function(){if(!this.ka()){x.S.dispose.call(this);if(this.P){nb(this.P);this.P=null}if(this.Q){nb(this.Q);this.Q=null}}};x.prototype.zj=function(a){this.Ja=a;if(this.na){this.Ja.kf(this.na)}};x.prototype.ad=function(){return this.Ja};x.prototype.Oi=function(a){if(a.target.tagName=="BUTTON"){var b=a.target.name,
c=this.ad().get(b);if(this.dispatchEvent(new me(b,c))){this.Ha(false)}}};x.prototype.Ti=function(a){if(a.keyCode==27){var b=this.ad();if(b.Yd()){var c=b.get(b.Yd());if(this.dispatchEvent(new me(b.Yd(),c))){this.Ha(false)}}else{this.Ha(false)}}};x.prototype.Ui=function(a){this.rj()};var me=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};me.inherits(X);var ra=function(a){this.i=a||Nb();V.call(this)},ri,hn,jn,gn;ra.inherits(V);ra.prototype.ph=null;ra.prototype.b=null;ra.prototype.dh=
null;ra.prototype.set=function(a,b,c,d){V.prototype.set.call(this,a,b);if(c){this.ph=a}if(d){this.dh=a}};ra.prototype.kf=function(a){this.b=a;this.render()};ra.prototype.render=function(){if(this.b){this.b.innerHTML="";var a=Nb(this.b);Ca(this,function(b,c){this.b.appendChild(a.r("button",{name:c},b))},this)}};ra.prototype.decorate=function(a){if(!a||a.nodeType!=1){return}this.b=a;var b=this.b.getElementsByTagName("button");for(var c=0,d,e,f;d=b[c];c++){e=d.name||d.id;f=Kd(d)||d.value;if(e){this.set(e,
f,c==0,d.name=="cancel")}}};ra.prototype.Nh=function(){return this.ph};ra.prototype.Yd=function(){return this.dh};(function(){var a=Mc("OK"),b=Mc("Cancel"),c=Mc("Yes"),d=Mc("No"),e=Mc("Save"),f=Mc("Continue"),g=new ra;g.set("ok",a,true);g.set("cancel",b,false,true);ri=g;var h=new ra;h.set("yes",c,true);h.set("no",d,false,true);hn=h;var j=new ra;j.set("yes",c);j.set("no",d,true);j.set("cancel",b,false,true);jn=j;var k=new ra;k.set("continue",f);k.set("save",e);k.set("cancel",b,true,true);gn=k})();;;var fa=function(a,b,c,d,e){Aa.call(this,b,c,d,e);this.element=a};fa.inherits(Aa);var fe=function(a,b,c,d,e){fa.apply(this,arguments);if(b.length!=2||c.length!=2){throw"[goog.fxdhtml.Slide] Start and end points must be 2D";return}var f=[Sa,rb,"end"];p(this,f,this.wn,false,this)};fe.inherits(fa);fe.prototype.wn=function(a){this.element.style.left=Math.round(a.x)+"px";this.element.style.top=Math.round(a.y)+"px"};var Th=function(a,b,c,d){var e=[a.offsetLeft,a.offsetTop];p(this,Sa,this.So,false,this);
fe.call(this,a,e,b,c,d)};Th.inherits(fe);Th.prototype.So=function(a){this.cc=[this.element.offsetLeft,this.element.offsetTop]};var Af=function(a,b,c,d,e){fa.apply(this,arguments);if(b.length!=2||c.length!=2){throw"[goog.fxdhtml.Slide] Start and end points must be 2D";return}var f=[Sa,rb,"end"];p(this,f,this.Me,false,this);this.ln=Math.max(this.yh[0],this.cc[0]);this.jn=Math.max(this.yh[1],this.cc[1])};Af.inherits(fa);Af.prototype.Me=function(a){this.Dk(Math.round(a.x),Math.round(a.y),this.ln,this.jn);
this.element.style.width=Math.round(a.x)+"px";this.element.style.marginLeft=Math.round(a.x)-this.ln+"px";this.element.style.marginTop=Math.round(a.y)-this.jn+"px"};Af.prototype.Dk=function(a,b,c,d){this.element.style.clip="rect("+(d-b)+"px "+c+"px "+d+"px "+(c-a)+"px)"};var Sh=function(a,b,c,d,e){fa.apply(this,arguments);if(b.length!=2||c.length!=2){throw"[goog.fx.dom.Scroll] Start and end points must be 2D";return}var f=[Sa,rb,"end"];p(this,f,this.zo,false,this)};Sh.inherits(fa);Sh.prototype.zo=
function(a){this.element.scrollLeft=Math.round(a.x);this.element.scrollTop=Math.round(a.y)};var Qh=function(a,b,c,d,e){fa.apply(this,arguments);if(b.length!=2||c.length!=2){throw"[goog.fx.dom.Resize] Start and end points must be 2D";return}var f=[Sa,rb,"end"];p(this,f,this.Me,false,this)};Qh.inherits(fa);Qh.prototype.Me=function(a){this.element.style.width=Math.round(a.x)+"px";this.element.style.height=Math.round(a.y)+"px"};var Rh=function(a,b,c,d,e){fa.call(this,a,[b],[c],d,e);var f=[Sa,rb,"end"];
p(this,f,this.so,false,this)};Rh.inherits(fa);Rh.prototype.so=function(a){this.element.style.width=Math.round(a.x)+"px"};var ee=function(a,b,c,d,e){fa.call(this,a,[b],[c],d,e);var f=[Sa,rb,"end"];p(this,f,this.ro,false,this)};ee.inherits(fa);ee.prototype.ro=function(a){this.element.style.height=Math.round(a.x)+"px"};var bb=function(a,b,c,d,e){if(Nc(b))b=[b];if(Nc(c))c=[c];fa.call(this,a,b,c,d,e);if(b.length!=1||c.length!=1){throw"[goog.fx.dom.Fade] Start and end points must be 1D";return}var f=[Sa,
rb,"end"];p(this,f,this.ol,false,this)};bb.inherits(fa);bb.prototype.ol=function(a){Rf(this.element,a.x)};bb.prototype.show=function(a){this.element.style.display=""};bb.prototype.hide=function(a){this.element.style.display="none"};var vm=function(a,b,c){bb.call(this,a,1,0,b,c)};vm.inherits(bb);var tm=function(a,b,c){bb.call(this,a,0,1,b,c)};tm.inherits(bb);var wm=function(a,b,c){bb.call(this,a,1,0,b,c);p(this,Sa,this.show,false,this);p(this,"end",this.hide,false,this)};wm.inherits(bb);var um=function(a,
b,c){bb.call(this,a,0,1,b,c);p(this,Sa,this.show,false,this)};um.inherits(bb);var Oh=function(a,b,c,d,e){fa.apply(this,arguments);if(b.length!=3||c.length!=3){throw"[goog.fx.dom.BgColorTransform] Start and end points must be 3D";return}var f=[Sa,rb,"end"];p(this,f,this.Qe,false,this)};Oh.inherits(fa);Oh.prototype.Qe=function(a){var b="rgb("+a.hh().join(",")+")";this.element.style.backgroundColor=b};var Ph=function(a,b,c,d,e){fa.apply(this,arguments);if(b.length!=3||c.length!=3){throw"[goog.fx.dom.ColorTransform] Start and end points must be 3D";
return}var f=[Sa,rb,"end"];p(this,f,this.Qe,false,this)};Ph.inherits(fa);Ph.prototype.Qe=function(a){var b="rgb("+a.hh().join(",")+")";this.element.style.color="rgb("+b+")"};var R=function(a){if(a){this.Ga(a)}};R.prototype.Ga=function(a,b,c,d){this.ia=a;if(!c&&!d){if(ha(a,"?")){this.yk=true;a=a.substring(0,a.length-1)}if(ha(a,"()")){if(ha(a,"name()")||ha(a,"count()")||ha(a,"position()")){var e=a.lastIndexOf("/");if(e!=-1){this.Jf=a.substring(e+1);a=a.substring(0,e)}else{this.Jf=a;a="."}if(this.Jf=="count()"){this.eq=true}}}}this.ha=b||a.split("/");this.X=this.ha.length;this.Zb=this.ha[this.X-1];this.j=this.ha[0];if(this.X==1){this.tj=this;this.pe=ta(a,"$")}else{this.tj=
Ye(this.j,null,this,null);this.pe=this.tj.pe;this.j=this.tj.j}if(this.X==1&&!this.pe){this.Lm=a=="."||a=="";this.Om=ta(a,"@");this.Jm=a=="*|text()";this.Im=a=="@*";this.Km=a=="*"}};R.prototype.Qb=function(){return this.ia};R.prototype.ga=function(){if(!this.tq){if(this.X>1){this.Zi=Ye(null,this.ha.slice(0,this.ha.length-1),this,null)}this.tq=true}return this.Zi};R.prototype.Wh=function(){if(!this.pq){if(this.X>1){this.Ki=Ye(null,this.ha.slice(1),null,this)}this.pq=true}return this.Ki};R.prototype.g=
function(a){if(a==null){a=q()}else if(this.pe){a=a.Zd?a.Zd():q()}if(this.eq){var b=this.ra(a);return b.e()}if(this.X==1){return a.d(this.j)}else if(this.X==0){return a.get()}var c=a.c(this.j);if(c==null){return null}else{return this.Wh().g(c)}};R.prototype.ra=function(a,b){return this.Sf(a,false,b)};R.prototype.D=function(a,b){return this.Sf(a,true,b)};R.prototype.Sf=function(a,b,c){if(a==null){a=q()}else if(this.pe){a=a.Zd?a.Zd():q()}if(this.X==0&&b){return a}else if(this.X==0&&!b){return new P([a])}else if(this.X==
1){if(b){return a.c(this.j,c)}else{var d=a.c(this.j);if(d&&d.R()){return d.h()}else{return a.h(this.j)}}}else{var e=a.c(this.j,c);if(e==null&&b){return null}else if(e==null&&!b){return new Na}return this.Wh().Sf(e,b,c)}};R.prototype.yk=false;R.prototype.ha=[];R.prototype.X=null;R.prototype.j=null;R.prototype.Zb=null;R.prototype.Lm=false;R.prototype.Om=false;R.prototype.Jm=false;R.prototype.Im=false;R.prototype.Km=false;R.prototype.Jf=null;R.prototype.Zi=null;R.prototype.Ki=null;var o=function(a){var b=
Md[a];if(b==null){b=new R(a);Md[a]=b}return b},Ye=function(a,b,c,d){var e=a||b.join("/"),f=Md[e];if(f==null){f=new R;f.Ga(e,b,c,d);Md[e]=f}return f},Md={};var Np=o("."),Kp=o("*|text()"),Lp=o("*"),Jp=o("@*"),Op=o("name()"),Mp=o("count()"),Pp=o("position()");var Ya=function(){};Ya.prototype.get=function(){};Ya.prototype.set=function(a){};Ya.prototype.h=function(a){};Ya.prototype.c=function(a){};Ya.prototype.d=function(a){};Ya.prototype.p=function(a,b){};Ya.prototype.n=function(){};Ya.prototype.ub=function(a){};Ya.prototype.v=function(){};Ya.prototype.load=function(){};Ya.prototype.R=function(){};var dd="NOT_LOADED",Ab=function(){};Ab.prototype.set=function(a){};Ab.prototype.h=function(a){return new Na};Ab.prototype.c=function(a,b){return null};Ab.prototype.d=
function(a){return null};Ab.prototype.v=function(){var a="",b=this.n();if(this.cd&&this.cd()){a=this.cd().v()+(b.indexOf("[")!=-1?"":"/")}return a+b};Ab.prototype.load=function(){};Ab.prototype.cd=null;var Cc=function(){};Cc.prototype.add=function(a){};Cc.prototype.get=function(a){};Cc.prototype.o=function(a){};Cc.prototype.e=function(){};Cc.prototype.vb=function(a,b){};Cc.prototype.removeNode=function(a){};var P=function(a){this.m={};this.Va=[];this.Vb={};if(a){for(var b=0,c;c=a[b];b++){this.add(c)}}};
P.prototype.add=function(a){this.Va.push(a);var b=a.n();if(b!=null){this.m[b]=a;this.Vb[b]=this.Va.length-1}};P.prototype.get=function(a){return this.m[a]||null};P.prototype.o=function(a){return this.Va[a]||null};P.prototype.e=function(){return this.Va.length};P.prototype.vb=function(a,b){if(b==null){this.removeNode(a)}else{var c=this.Vb[a];if(c!=null){this.m[a]=b;this.Va[c]=b}else{this.add(b)}}};P.prototype.removeNode=function(a){var b=this.Vb[a];if(b!=null){this.Va.splice(b,1);delete this.m[a];
delete this.Vb[a];for(var c in this.Vb){if(this.Vb[c]>b){this.Vb[c]--}}}return b!=null};P.prototype.indexOf=function(a){return this.Vb[a]};var Na=function(){P.call(this)};Na.inherits(P);Na.prototype.add=function(a){throw Error("Can't add to EmptyNodeList");};var Q=Hd("goog.ds"),ed=function(a,b){var c=function(){};c.prototype=a;var d=new c;d.n=function(){return b};return d};var aa=function(){this.Wc=new P;this.uk=new V;this.Bi={};this.ue={};this.Sc={};this.Qp=0;this.oi={}},Xe=null;aa.inherits(Ya);var q=function(){if(!Xe){Xe=new aa}return Xe};aa.prototype.$=function(a,b,c){var d=!(!b),e=c||a.n();if(!ta(e,"$")){e="$"+e}a.ub(e);this.Wc.add(a);this.uk.set(e,d)};aa.prototype.mk=function(a,b){if(!this.Wg){this.Wg=w(this.Sm,this)}if(this.Sc[a]){var c=this.Sc[a].Qb();this.kj(this.Wg,c+"/...",a)}this.Sc[a]=o(b);this.O(this.Wg,b+"/...",a);this.k(a)};aa.prototype.Sm=function(a,
b){var c=this.Sc[b];if(c){var d=c.Qb();if(a.indexOf(d)==0){this.k(b+a.substring(d.length))}else{this.k(b)}}};aa.prototype.$d=function(a){if(this.Sc[a]){return this.Sc[a].D()}else{return this.Wc.get(a)}};aa.prototype.get=function(){return this.Wc};aa.prototype.set=function(a){throw Error("Can't set on DataManager");};aa.prototype.h=function(a){if(a){return new P([this.c(a)])}else{return this.Wc}};aa.prototype.c=function(a){return this.$d(a)};aa.prototype.d=function(a){var b=this.$d(a);return b?b.get():
null};aa.prototype.n=function(){return""};aa.prototype.v=function(){return""};aa.prototype.load=function(){var a=this.Wc.e();for(var b=0;b<a;b++){var c=this.Wc.o(b),d=this.uk.get(c.n());if(d){c.load()}}};aa.prototype.R=function(){return false};aa.prototype.O=function(a,b,c){var d=0;if(ha(b,"/...")){d=1000;b=b.substring(0,b.length-4)}else if(ha(b,"/*")){d=1;b=b.substring(0,b.length-2)}c=c||"";var e=b+":"+c+":"+ka(a),f={dataPath:b,id:c,fn:a},g=o(b),h=ka(a);if(!this.ue[h]){this.ue[h]={}}this.ue[h][e]=
{listener:f,items:[]};while(g){var j={listener:f,maxAncestors:d},k=this.Bi[g.Qb()];if(k==null){k={};this.Bi[g.Qb()]=k}k[e]=j;d=0;g=g.ga();this.ue[h][e].items.push({key:e,obj:k})}};aa.prototype.Vg=function(a,b,c){var d=b.indexOf("*");if(d==-1){this.O(a,b,c);return}var e=b.substring(0,d)+"...",f="$";if(ha(b,"/...")){b=b.substring(0,b.length-4);f=""}var g=ie(b),h=g.replace(/\\\*/g,"([^\\/]+)")+f,j=new RegExp(h),k=function(m,y){var B=j.exec(m);if(B){B.shift();a(m,c,B)}};this.O(k,e,c);var l=ka(a);if(!this.oi[l]){this.oi[l]=
{}}var n=b+":"+c;this.oi[l][n]={listener:{dataPath:e,fn:k,id:c}}};aa.prototype.kj=function(a,b,c){if(b&&ha(b,"/...")){b=b.substring(0,b.length-4)}else if(b&&ha(b,"/*")){b=b.substring(0,b.length-2)}this.io(this.ue,false,a,b,c)};aa.prototype.io=function(a,b,c,d,e){var f=ka(c),g=a[f];if(g!=null){for(var h in g){var j=g[h],k=j.listener;if((!d||d==k.dataPath)&&(!e||e==k.id)){if(b){this.kj(k.fn,k.dataPath,k.id)}if(j.items){for(var l=0;l<j.items.length;l++){var n=j.items[l];delete n.obj[n.key]}}delete g[h]}}}};
aa.prototype.uo=function(a){if(this.qh){throw Error("Can not nest calls to runWithoutFiringDataChanges");}this.qh=true;try{a()}finally{this.qh=false}};aa.prototype.k=function(a){if(this.qh){return}var b=o(a),c=0;while(b){var d=this.Bi[b.Qb()];if(d){for(var e in d){var f=d[e],g=f.listener;if(c<=f.maxAncestors){g.fn(a,g.id)}}}c++;b=b.ga()}this.Qp++};var C=function(a,b,c){this.l=c;this.ba=b;this.Ej(a)};C.prototype.Ej=function(a){this.j=a;this.M=null};C.prototype.get=function(){return!Ta(this.j)?this.j:this.h()};C.prototype.set=function(a){if(a&&Ta(this.j)){throw Error("Can't set group nodes to new values yet");}if(this.l){this.l.j[this.ba]=a}this.j=a;this.M=null;q().k(this.v())};C.prototype.h=function(a){if(!this.j){return new Na}if(!a||a=="*"){this.va(false);return this.M}else if(a.indexOf("*")==-1){if(this.j[a]!=null){return new P([this.c(a)])}else{return new Na}}else{throw new Error("Selector not supported yet ("+
a+")");}};C.prototype.va=function(a){if(this.M&&!a){return}if(!Ta(this.j)){this.M=new Na;return}var b=new P;if(this.j!=null){var c;if(H(this.j)){var d=this.j.length;for(var e=0;e<d;e++){var f=this.j[e],g=f.id,h=g!=null?String(g):"["+e+"]";c=new C(f,h,this);b.add(c)}}else{for(var h in this.j){var j=this.j[h];if(j.n){b.add(j)}else if(!Db(j)){c=new C(j,h,this);b.add(c)}}}}this.M=b};C.prototype.c=function(a,b){if(!this.j){return null}var c=this.h().get(a);if(!c&&b){var d={};if(H(this.j)){d.id=a;this.j.push(d)}else{this.j[a]=
d}c=new C(d,a,this);if(this.M){this.M.add(c)}}return c};C.prototype.d=function(a){if(this.M){var b=this.h().get(a);return b?b.get():null}else if(this.j){return this.j[a]}else{return null}};C.prototype.p=function(a,b){var c=null,d=null,e=false;if(b!=null){if(b.n){d=b;d.l=this}else{if(H(b)||Ta(b)){d=new C(b,a,this)}else{d=new Dc(this.j,a,this)}}}if(H(this.j)){this.va();var f=this.M.indexOf(a);if(b==null){var g=this.M.get(a);if(g){c=g.v()}this.j.splice(f,1)}else{if(f){this.j[f]=b}else{this.j.push(b)}}if(f==
null){e=true}this.M.vb(a,d)}else if(Ta(this.j)){if(b==null){this.va();var g=this.M.get(a);if(g){c=g.v()}delete this.j[a]}else{if(!this.j[a]){e=true}this.j[a]=b}if(this.M){this.M.vb(a,d)}}var h=q();if(d){h.k(d.v());if(e&&this.R()){h.k(this.v());h.k(this.v()+"/count()")}}else if(c){h.k(c);if(this.R()){h.k(this.v());h.k(this.v()+"/count()")}}return d};C.prototype.n=function(){return this.ba};C.prototype.ub=function(a){this.ba=a};C.prototype.v=function(){var a="";if(this.l){a=this.l.v()+"/"}return a+
this.ba};C.prototype.load=function(){};C.prototype.R=function(){return this.gq!=null?this.gq:H(this.j)};var Dc=function(a,b,c){Ab.call(this);this.ba=b;this.l=a;this.sq=c||this.l};Dc.inherits(Ab);Dc.prototype.get=function(){return this.l[this.ba]};Dc.prototype.set=function(a){var b=this.l[this.ba];this.l[this.ba]=a;if(b!=a){q().k(this.v())}};Dc.prototype.n=function(){return this.ba};Dc.prototype.cd=function(){return this.sq};var r=function(a,b){var c;if(a instanceof r){this.bc(b==null?a.Jl():b);this.Ad(a.Wf());this.Xe(a.gi());this.Re(a.Oh());this.We(a.Vf());this.Ve(a.Uf());this.zd(a.ee().clone());this.Se(a.Rh())}else if(a&&(c=String(a).match(Qk()))){this.bc(!(!b));this.Ad(c[1],true);this.Xe(c[2],true);this.Re(c[3],true);this.We(c[4]);this.Ve(c[5],true);this.zd(c[6]);this.Se(c[7],true)}else{this.bc(!(!b));this.ca=new S(null,this,this.Ua)}};r.prototype.Aa="";r.prototype.Qc="";r.prototype.gb="";r.prototype.qb=null;r.prototype.Za=
"";r.prototype.ca=null;r.prototype.ib="";r.prototype.Pm=false;r.prototype.Ua=false;r.prototype.toString=function(){if(this.ea){return this.ea}var a=[];if(this.Aa){a.push(Ie(this.Aa,Tg),":")}if(this.gb){a.push("//");if(this.Qc){a.push(Ie(this.Qc,Tg),"@")}a.push(Sg(this.gb));if(this.qb!=null){a.push(":",String(this.Vf()))}}if(this.Za){a.push(Ie(this.Za,Rk))}var b=String(this.ca);if(b){a.push("?",b)}if(this.ib){a.push("#",Sg(this.ib))}return this.ea=a.join("")};r.prototype.resolve=function(a){var b=
this.clone(),c=a.xm();if(c){b.Ad(a.Wf())}else{c=a.ym()}if(c){b.Xe(a.gi())}else{c=a.sm()}if(c){b.Re(a.Oh())}else{c=a.vm()}var d=a.Uf();if(c){b.We(a.Vf())}else{c=a.um();if(c){if(!/^\//.test(d)){d=b.Uf().replace(/\/?[^\/]*$/,"/"+d)}}}if(c){b.Ve(d)}else{c=a.wm()}if(c){b.zd(a.Rl())}else{c=a.tm()}if(c){b.Se(a.Rh())}return b};r.prototype.clone=function(){return new Nk(this.Aa,this.Qc,this.gb,this.qb,this.Za,this.ca.clone(),this.ib,this.Ua)};r.prototype.Wf=function(){return this.Aa};r.prototype.Ad=function(a,
b){this.Na();delete this.ea;this.Aa=b?$c(a):a;if(this.Aa){this.Aa=this.Aa.replace(/:$/,"")}return this};r.prototype.xm=function(){return!(!this.Aa)};r.prototype.gi=function(){return this.Qc};r.prototype.Xe=function(a,b){this.Na();delete this.ea;this.Qc=b?$c(a):a;return this};r.prototype.ym=function(){return!(!this.Qc)};r.prototype.Oh=function(){return this.gb};r.prototype.Re=function(a,b){this.Na();delete this.ea;this.gb=b?$c(a):a;return this};r.prototype.sm=function(){return!(!this.gb)};r.prototype.Vf=
function(){return this.qb};r.prototype.We=function(a){this.Na();delete this.ea;if(a){a=Number(a);if(isNaN(a)||a<0){throw Error("Bad port number "+a);}this.qb=a}else{this.qb=null}return this};r.prototype.vm=function(){return this.qb!=null};r.prototype.Uf=function(){return this.Za};r.prototype.Ve=function(a,b){this.Na();delete this.ea;this.Za=b?$c(a):a;return this};r.prototype.um=function(){return!(!this.Za)};r.prototype.wm=function(){return this.ca!==null&&this.ca.toString()!==""};r.prototype.zd=function(a){this.Na();
delete this.ea;if(a instanceof S){this.ca=a;this.ca.C=this;this.ca.bc(this.Ua)}else{this.ca=new S(a,this,this.Ua)}return this};r.prototype.Rl=function(){return this.ca.toString()};r.prototype.ee=function(){return this.ca};r.prototype.s=function(a,b){this.Na();delete this.ea;this.ca.set(a,b);return this};r.prototype.Ue=function(a,b){this.Na();delete this.ea;if(!H(b)){b=[String(b)]}this.ca.Vo(a,b);return this};r.prototype.Tf=function(a){return this.ca.get(a)};r.prototype.Rh=function(){return this.ib};
r.prototype.Se=function(a,b){this.Na();delete this.ea;this.ib=b?$c(a):a;return this};r.prototype.tm=function(){return!(!this.ib)};r.prototype.Zm=function(){this.Na();this.s("zx",ei());return this};r.prototype.Na=function(){if(this.Pm){throw Error("Tried to modify a read-only Uri");}};r.prototype.bc=function(a){this.Ua=a;if(this.ca){this.ca.bc(a)}};r.prototype.Jl=function(){return this.Ua};var Nk=function(a,b,c,d,e,f,g,h){var j=new r(null,h);j.Ad(a);j.Xe(b);j.Re(c);j.We(d);j.Ve(e);j.zd(f);j.Se(g);
return j};var $c=function(a){return a?Jf(a):""},Sg=function(a){if(U(a)){return encodeURIComponent(a)}return null},Pk=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/,Ie=function(a,b){var c=null;if(U(a)){c=a;if(!Pk.test(c)){c=encodeURI(a)}if(c.search(b)>=0){c=c.replace(b,Ok)}}return c},Ok=function(a){var b=a.charCodeAt(0);return"%"+(b>>4&15).toString(16)+(b&15).toString(16)},Je=null,Qk=function(){if(!Je){Je=/^(?:([^:\/?#]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/?#:@]*)(?::([0-9]+))?)?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/}return Je},
Tg=/[#\/\?@]/g,Rk=/[\#\?]/g;var S=function(a,b,c){this.J=new V;this.C=b;this.Ua=!(!c);if(a){var d=a.split("&");for(var e=0;e<d.length;e++){var f=d[e].split("="),g=Jf(f[0]);g=this.zb(g);this.add(g,f.length>1?Jf(f[1]):"")}}};S.prototype.t=0;S.prototype.e=function(){return this.t};S.prototype.add=function(a,b){this.Cc();a=this.zb(a);if(!this.fa(a)){this.J.set(a,b)}else{var c=this.J.get(a);if(H(c)){c.push(b)}else{this.J.set(a,[c,b])}}this.t++;return this};S.prototype.remove=function(a){a=this.zb(a);if(this.J.fa(a)){this.Cc();
var b=this.J.get(a);if(H(b)){this.t-=b.length}else{this.t--}return this.J.remove(a)}return false};S.prototype.clear=function(){this.Cc();this.J.clear();this.t=0};S.prototype.Ea=function(){return this.t==0};S.prototype.fa=function(a){a=this.zb(a);return this.J.fa(a)};S.prototype.qa=function(){var a=this.J.U(),b=this.J.qa(),c=[];for(var d=0;d<b.length;d++){var e=a[d];if(H(e)){for(var f=0;f<e.length;f++){c.push(b[d])}}else{c.push(b[d])}}return c};S.prototype.U=function(a){var b;if(a){var c=this.zb(a);
if(this.fa(c)){var d=this.J.get(c);if(H(d)){return d}else{b=[];b.push(d)}}else{b=[]}}else{var e=this.J.U();b=[];for(var f=0;f<e.length;f++){var g=e[f];if(H(g)){Sk(b,g)}else{b.push(g)}}}return b};S.prototype.set=function(a,b){this.Cc();a=this.zb(a);if(this.fa(a)){var c=this.J.get(a);if(H(c)){this.t-=c.length}else{this.t--}}this.J.set(a,b);this.t++;return this};S.prototype.get=function(a,b){a=this.zb(a);if(this.fa(a)){var c=this.J.get(a);if(H(c)){return c[0]}else{return c}}else{return b}};S.prototype.Vo=
function(a,b){this.Cc();a=this.zb(a);if(this.fa(a)){var c=this.J.get(a);if(H(c)){this.t-=c.length}else{this.t--}}if(b.length>0){this.J.set(a,b);this.t+=b.length}};S.prototype.toString=function(){if(this.ea){return this.ea}var a=[],b=0,c=this.J.qa();for(var d=0;d<c.length;d++){var e=c[d],f=Kf(e),g=this.J.get(e);if(H(g)){for(var h=0;h<g.length;h++){if(b>0){a.push("&")}a.push(f,"=",Kf(g[h]));b++}}else{if(b>0){a.push("&")}a.push(f,"=",Kf(g));b++}}return this.ea=a.join("")};S.prototype.Cc=function(){delete this.ea;
if(this.C){delete this.C.ea}};S.prototype.clone=function(){var a=new S;a.J=this.J.clone();return a};S.prototype.zb=function(a){var b=String(a);if(this.Ua){b=b.toLowerCase()}return b};S.prototype.bc=function(a){var b=a&&!this.Ua;if(b){this.Cc();Ca(this.J,function(c,d,e){var f=d.toLowerCase();if(d!=f){this.remove(d);this.add(f,c)}},this)}this.Ua=a};S.prototype.extend=function(a){for(var b=0;b<arguments.length;b++){var c=arguments[b];Ca(c,function(d,e){this.add(e,d)},this)}};var $b=function(a,b){C.call(this,null,b,null);if(a){this.C=new r(a)}else{this.C=null}};$b.inherits(C);$b.prototype.la=dd;$b.dataSources={};$b.prototype.load=function(){if(this.C){$b.dataSources[this.ba]=this;Q.info("Sending JS request for DataSource "+this.n()+" to "+this.C);this.la="LOADING";var a=new r(this.C);a.Ue("callback","JsonReceive."+this.ba);v.JsonReceive[this.ba]=w(this.Xn,this);var b=bd("script");b.src=a;il("head")[0].appendChild(b)}else{this.j={};this.la=dd}};$b.prototype.Xn=function(a){this.Ej(a);
this.la="LOADED";q().k(this.n())};v.JsonReceive={};var zb=function(a,b){if(!a){throw Error("Cannot create a fast data node without a data name");}this.__dataName=a;this.__parent=b};zb.prototype.n=function(){return this.__dataName};zb.prototype.ub=function(a){this.__dataName=a};zb.prototype.v=function(){var a;if(this.__parent){a=this.__parent.v()+"/"}else{a=""}return a+this.n()};var T=function(a,b,c){zb.call(this,b,c);this.Eh(a)};T.inherits(zb);T.prototype.Eh=function(a){for(var b in a){this[b]=a[b]}};var hb=function(a,b,c){if(H(a)){return new ea(a,
b,c)}else if(Ta(a)){return new T(a,b,c)}else{return new ob(a,b,c)}},wl=new Na;T.prototype.set=function(a){throw"Not implemented yet";};T.prototype.h=function(a){if(!a||a=="*"){return this}else if(a.indexOf("*")==-1){var b=this.c(a);return b?new ea([b],null):new Na}else{throw Error("Unsupported selector: "+a);}};T.prototype.Vj=function(a){var b=this[a];if(b!=null&&!b.n){this[a]=hb(this[a],a,this)}};T.prototype.c=function(a,b){this.Vj(a);var c=this[a]||null;if(c==null&&b){c=new T({},a,this);this[a]=
c}return c};T.prototype.p=function(a,b){if(b!=null){this[a]=b}else{delete this[a]}q().k(this.v()+"/"+a)};T.prototype.d=function(a){var b=this[a];if(b!=null){return b.n?b.get():b}else{return null}};T.prototype.R=function(){return false};T.prototype.Ra=function(){var a={};for(var b in this){if(!ta(b,"__")&&!Db(this[b])){a[b]=this[b].__dataName?this[b].Ra():this[b]}}return a};T.prototype.clone=function(){return hb(this.Ra(),this.n())};T.prototype.add=function(a){this.p(a.n(),a)};T.prototype.get=function(a){if(arguments.length==
0){return this}else{return this.c(a)}};T.prototype.o=function(a){var b=0;for(var c in this){if(!ta(c,"__")&&!Db(this[c])){if(b==a){this.Vj(c);return this[c]}++b}}return null};T.prototype.e=function(){var a=0;for(var b in this){if(!ta(b,"__")&&!Db(this[b])){++a}}return a};T.prototype.vb=function(a,b){this.p(a,b)};T.prototype.removeNode=function(a){delete this[a]};var ob=function(a,b,c){this.ta=a;zb.call(this,b,c)};ob.inherits(zb);ob.prototype.get=function(){return this.ta};ob.prototype.set=function(a){if(H(a)||
Ta(a)){throw"can only set PrimitiveFastDataNode to primitive values";}this.ta=a;q().k(this.v())};ob.prototype.h=function(){return wl};ob.prototype.c=function(a){return null};ob.prototype.d=function(a){return null};ob.prototype.p=function(a,b){throw Error("Cannot set a child node for a PrimitiveFastDataNode");};ob.prototype.R=function(){return false};ob.prototype.Ra=function(){return this.ta};var ea=function(a,b,c){this.H=[];for(var d=0;d<a.length;++d){var e=a[d].id||"["+d+"]";this.H.push(hb(a[d],
e,this));if(a[d].id){if(!this.m){this.m={}}this.m[a[d].id]=d}}zb.call(this,b,c)};ea.inherits(zb);ea.prototype.set=function(a){throw Error("Cannot set a FastListNode to a new value");};ea.prototype.h=function(){return this};ea.prototype.c=function(a,b){var c=this.ce(a);if(c==null&&this.m){c=this.m[a]}if(c!=null&&this.H[c]){return this.H[c]}else if(b){this.p(a,{});return this.c(a)}else{return null}};ea.prototype.d=function(a){var b=this.c(a);return b?b.get():null};ea.prototype.ce=function(a){if(a.charAt(0)==
"["&&a.charAt(a.length-1)=="]"){return Number(a.substring(1,a.length-1))}else{return null}};ea.prototype.p=function(a,b){var c=this.H.length;if(b!=null){if(!b.n){b=hb(b,a,this)}var d=this.ce(a);if(d!=null){if(d<0||d>=this.H.length){throw Error("List index out of bounds: "+d);}this.H[a]=b}else{if(!this.m){this.m={}}this.H.push(b);this.m[a]=this.H.length-1}}else{this.removeNode(a)}var e=q();e.k(this.v()+"/"+a);if(this.H.length!=c){this.jg()}};ea.prototype.jg=function(){var a=q();a.k(this.v());a.k(this.v()+
"/count()")};ea.prototype.R=function(){return true};ea.prototype.Ra=function(){var a=[];for(var b=0;b<this.H.length;++b){a.push(this.H[b].Ra())}return a};ea.prototype.add=function(a){if(!a.n){a=hb(a,String(this.H.length),this)}this.H.push(a);var b=q();b.k(this.v()+"/["+(this.H.length-1)+"]");this.jg()};ea.prototype.get=function(a){if(arguments.length==0){return this.H}else{return this.c(a)}};ea.prototype.o=function(a){var b=this.H[a];return b!=null?b:null};ea.prototype.e=function(){return this.H.length};
ea.prototype.vb=function(a,b){throw Error("Setting child nodes of a FastListNode is not implemented, yet");};ea.prototype.removeNode=function(a){var b=this.ce(a);if(b==null&&this.m){b=this.m[a]}if(b!=null){this.H.splice(b,1);if(this.m){var c=null;for(var d in this.m){if(this.m[d]==b){c=d}else if(this.m[d]>b){--this.m[d]}}if(c){delete this.m[c]}}var e=q();e.k(this.v()+"/["+b+"]");this.jg()}};ea.prototype.indexOf=function(a){var b=this.ce(a);if(b==null&&this.m){b=this.m[a]}if(b==null){throw Error("Cannot determine index for: "+
a);}return b};var Bb=function(a,b,c,d,e){T.call(this,{},b,null);if(a){this.C=new r(a);this.w=new D;this.Wq=!(!e);p(this.w,tb,this.Ek,false,this)}else{this.C=null}this.$e=c;this.Gf=d};Bb.inherits(T);Bb.prototype.$e=null;Bb.prototype.Gf=null;Bb.prototype.load=function(){Q.info("Sending JS request for DataSource "+this.n()+" to "+this.C);if(this.C){if(this.Wq){var a=this.C.ee(),b=this.C.clone();b.zd(null);this.w.send(b,"POST",a)}else{this.w.send(this.C)}}else{this.la=dd}};Bb.prototype.af=function(){q().k(this.n())};
Bb.prototype.Ek=function(a){if(this.w.Xb()){Q.info("Got data for DataSource "+this.n());var b=this.w.zc();if(this.$e){var c=b.indexOf(this.$e);b=b.substring(c+this.$e.length)}if(this.Gf){var d=b.lastIndexOf(this.Gf);b=b.substring(0,d)}try{var e=eval("["+b+"][0]");this.Eh(e);this.la="LOADED"}catch(f){this.la="FAILED";Q.severe("Failed to parse data: "+f.message)}v.setTimeout(w(this.af,this),0)}else{Q.info("Data retrieve failed for DataSource "+this.n());this.la="FAILED"}};var ul=function(a,b){if(b&&!a){throw Error("Can't create document with namespace and no root tag");}if(document.implementation&&document.implementation.createDocument){return document.implementation.createDocument(b||"",a||"",null)}else if(typeof ActiveXObject!="undefined"){var c=new ActiveXObject("MSXML2.DOMDocument");if(c){if(a){c.appendChild(c.createNode(1,a,b||""))}return c}}throw Error("Your browser does not support creating new documents");},vl=function(a){if(typeof DOMParser!="undefined"){return(new DOMParser).parseFromString(a,
"application/xml")}else{var b=new ActiveXObject("MSXML2.DOMDocument");b.loadXML(a);return b}};var ma=function(a,b,c){this.l=b;this.ba=c||(a?a.nodeName:null);this.Oo(a)};ma.prototype.Oo=function(a){this.Ya=a;if(a!=null){switch(a.nodeType){case 2:case 3:this.ta=a.nodeValue;break;case 1:if(a.childNodes.length==1&&a.firstChild.nodeType==3){this.ta=a.firstChild.nodeValue}}}};ma.prototype.va=function(){if(this.M){return}var a=new P;if(this.Ya!=null){var b=this.Ya.childNodes;for(var c=0,d;d=b[c];c++){if(d.nodeType!=3||!/^[\r\n\t ]*$/.test(d.nodeValue)){var e=new ma(d,this,d.nodeName);a.add(e)}}}this.M=
a};ma.prototype.Gk=function(){if(this.sk){return}var a=new P;if(this.Ya!=null&&this.Ya.attributes!=null){var b=this.Ya.attributes;for(var c=0,d;d=b[c];c++){var e=new ma(d,this,d.nodeName);a.add(e)}}this.sk=a};ma.prototype.get=function(){this.va();return this.ta!=null?this.ta:this.M};ma.prototype.set=function(a){throw Error("Can't set on XmlDataSource yet");};ma.prototype.h=function(a){if(a&&a=="@*"){this.Gk();return this.sk}else if(a==null||a=="*"){this.va();return this.M}else{throw new Error("Unsupported selector");
}};ma.prototype.c=function(a){if(ta(a,"@")){var b=this.Ya.getAttributeNode(a.substring(1));return b?new ma(b,this):null}else{return this.h().get(a)}};ma.prototype.d=function(a){if(ta(a,"@")){var b=this.Ya.getAttributeNode(a.substring(1));return b?b.nodeValue:null}else{var b=this.c(a);return b?b.get():null}};ma.prototype.n=function(){return this.ba};ma.prototype.ub=function(a){this.ba=a};ma.prototype.v=function(){var a="";if(this.l){a=this.l.v()+(this.ba.indexOf("[")!=-1?"":"/")}return a+this.ba};
ma.prototype.load=function(){};var Ze=function(){return ul("nothing")},fd=function(a,b){ma.call(this,null,null,b);if(a){this.C=new r(a)}else{this.C=null}};fd.inherits(ma);fd.prototype.la=dd;fd.prototype.load=function(){if(this.C){Q.info("Sending XML request for DataSource "+this.n()+" to "+this.C);this.la="LOADING";this.iq=new ac(this.C,w(this.af,this),w(this.pl,this))}else{this.Ya=Ze();this.la=dd}};fd.prototype.af=function(){Q.info("Got data for DataSource "+this.n());var a=this.iq.Sl(),b=a.responseXML;
if(b&&!b.hasChildNodes()&&Ta(a.responseText)){b=vl(a.responseText)}if(!b||!b.hasChildNodes()){this.la="FAILED";this.Ya=Ze()}else{this.la="LOADED";this.Ya=b.documentElement}if(this.n()){q().k(this.n())}};fd.prototype.pl=function(){Q.info("Data retrieve failed for DataSource "+this.n());this.la="FAILED";this.Ya=Ze();if(this.n()){q().k(this.n())}};var ac=function(a,b,c){this.Kc=null;this.qq=b;this.Bn=c||this.gm;this.C=new r(a);this.Vm()};ac.prototype.Vm=function(){this.Kc=new Wh;if(this.Kc){try{this.Kc.onreadystatechange=
w(this.Ae,this);this.Kc.open("GET",String(this.C),true);this.Kc.send(null)}catch(a){this.Bn.call(this)}}};ac.prototype.Ae=function(){var a=this.Kc,b=a.readyState;if(b==4){var c=a.status,d;if(c==200||c==0){d=w(this.Dn,this)}else{d=w(this.Cn,this)}window.setTimeout(d,10)}};ac.prototype.Dn=function(){this.qq(this)};ac.prototype.Cn=function(){this.Bn(this)};ac.prototype.gm=function(){throw Error("Error fetching data from URL: "+this.C);};ac.prototype.Sl=function(){return this.Kc};var Va=function(a){this.Fi=a||100;this.Kb=[]};Va.prototype.ud=0;Va.prototype.add=function(a){this.Kb[this.ud]=a;this.ud=(this.ud+1)%this.Fi};Va.prototype.get=function(a){a=this.Mi(a);return this.Kb[a]};Va.prototype.set=function(a,b){a=this.Mi(a);this.Kb[a]=b};Va.prototype.e=function(){return this.Kb.length};Va.prototype.Ea=function(){return this.Kb.length==0};Va.prototype.clear=function(){this.Kb.length=0;this.ud=0};Va.prototype.U=function(){return this.Ml(this.e())};Va.prototype.Ml=function(a){var b=
this.e(),c=this.e()-a,d=[];for(var e=c;e<b;e++){d[e]=this.get(e)}return d};Va.prototype.qa=function(){var a=[],b=this.e();for(var c=0;c<b;c++){a[c]=c}return a};Va.prototype.fa=function(a){return a<this.e()};Va.prototype.Mi=function(a){if(a>=this.Kb.length){throw Error("Out of bounds exception");}if(this.Kb.length<this.Fi){return a}return(this.ud+Number(a))%this.Fi};var da=function(a,b){this.ag=a||"";this.rg=b||"";this.Yi=[];this.vj=new Va(500);this.Ie=w(this.ze,this);this.Mf=new Le(this.rg);this.Tp={};this.yg(true);this.Ma=this.Kh("enabled")=="1";v.setInterval(w(this.wo,this),7500)};da.prototype.yp="LOGGING";da.prototype.N=null;da.prototype.Qg=false;da.prototype.qe=false;da.prototype.bh=null;da.prototype.ti=Ba();da.prototype.init=function(){if(this.Ma){this.pg()}};da.prototype.Nc=function(a){this.Ma=a;if(this.Ma){this.pg();if(this.N){this.Xj()}}this.Bj("enabled",
a?1:0)};da.prototype.yg=function(a){if(a==this.qe){return}this.qe=a;var b=Zg();if(a){b.Ug(this.Ie)}else{b.jj(this.Ie)}};da.prototype.ze=function(a){if(this.Tp[a.Rf()]){return}var b=this.Mf.wc(a);this.Cp(b)};da.prototype.Cp=function(a){if(this.Ma){this.pg();this.vj.add(a);this.Rg(a)}else{this.vj.add(a)}};da.prototype.Rg=function(a){this.Yi.push(a);v.clearTimeout(this.bh);if(Ba()-this.ti>750){this.Wj()}else{this.bh=v.setTimeout(w(this.Wj,this),250)}};da.prototype.Wj=function(){this.ti=Ba();if(this.N){var a=
this.N.document.body,b=a&&a.scrollHeight-(a.scrollTop+a.clientHeight)<=100;this.N.document.write(this.Yi.join(""));this.Yi.length=0;if(b){this.N.scrollTo(0,1000000)}}};da.prototype.Bp=function(){var a=this.vj.U();for(var b=0;b<a.length;b++){this.Rg(a[b])}};da.prototype.pg=function(){if(this.N&&!this.N.closed||this.Qg){return}var a=this.Kh("dbg","0,0,800,500").split(","),b=Number(a[0]),c=Number(a[1]),d=Number(a[2]),e=Number(a[3]);this.Qg=true;this.N=window.open("","dbg"+this.ag,"width="+d+",height="+
e+",toolbar=no,resizable=yes,scrollbars=yes,left="+b+",top="+c+",status=no,screenx="+b+",screeny="+c);if(!this.N){if(!this.Kq){alert("Logger popup was blocked");this.Kq=true}}this.Qg=false;if(this.N){this.Xj()}};da.prototype.Xj=function(){if(!this.N){return}this.N.document.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.yp+"<br><small>Logger: "+this.ag+"</small></div><hr>";this.Rg(a);this.Bp()};da.prototype.Bj=function(a,b){a+=this.ag;document.cookie=a+"="+encodeURIComponent(b)+";expires="+(new Date(Ba()+2592000000)).toUTCString()};da.prototype.Kh=function(a,b){a+=this.ag;var c=String(document.cookie),d=c.indexOf(a+"=");if(d!=-1){var e=c.indexOf(";",d);return decodeURIComponent(c.substring(d+a.length+1,e==-1?c.length:e))}else{return b||""}};da.prototype.wo=function(){if(!this.N||this.N.closed){return}var a=
this.N.screenX||this.N.screenLeft||0,b=this.N.screenY||this.N.screenTop||0,c=this.N.outerWidth||800,d=this.N.outerHeight||500;this.Bj("dbg",a+","+b+","+c+","+d)};var Vg=function(){this.Ie=w(this.ze,this);this.Mf=new Pe;this.Mf.Dg=false;this.qe=false;this.jq=""};Vg.prototype.yg=function(a){if(a==this.qe){return}var b=Zg();if(a){b.Ug(this.Ie)}else{b.jj(this.Ie);this.logBuffer=""}};Vg.prototype.ze=function(a){var b=this.Mf.wc(a);if(window.console&&window.console.firebug){switch(a.bd()){case bh:window.console.info(b);break;case Ne:window.console.error(b);break;case Oe:window.console.warn(b);break;default:window.console.debug(b);break}}else if(window.console){window.console.log(b)}else{this.jq+=
b}};var Pb=function(a){this.rm=a};Pb.inherits(Wa);var lh=new qa(0,100);Pb.prototype.listen=function(a,b,c,d,e){if(H(b)){for(var f=0;f<b.length;f++){this.listen(a,b[f],c,d,e)}return}var g=p(a,b,c||this,d||false,e||this.rm||this);if(this.u){this.u[g]=true}else if(this.Yb){this.u=lh.jb();this.u[this.Yb]=true;this.Yb=null;this.u[g]=true}else{this.Yb=g}};Pb.prototype.unlisten=function(a,b,c,d,e){if(!this.Yb&&!this.u){return}if(H(b)){for(var f=0;f<b.length;f++){this.unlisten(a,b[f],c,d,e)}return}var g=Cl(a,
b,c||this,d||false,e||this.rm||this);if(g){var h=g.key;pb(h);if(this.u){he(this.u,h)}else if(this.Yb==h){this.Yb=null}}};Pb.prototype.ij=function(){if(this.u){for(var a in this.u){pb(a);delete this.u[a]}lh.Eb(this.u);this.u=null}else if(this.Yb){pb(this.Yb)}};Pb.prototype.dispose=function(){if(!this.ka()){Wa.prototype.dispose.call(this);this.ij()}};Pb.prototype.F=function(a){throw Error("EventHandler.handleEvent not implemented");};var Oa=function(a){J.call(this);if(a){this.attach(a)}};Oa.inherits(J);Oa.prototype.b=null;Oa.prototype.qd=null;Oa.prototype.ld=null;Oa.prototype.se=-1;Oa.prototype.vi=0;var oh={"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},nh={Up:38,Down:40,Left:37,Right:39,
Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45};Oa.prototype.F=function(a){var b=a.vl(),c=b.keyCode,d=b.which,e=c||d,f=b.keyIdentifier;if(d){if(d>=63232&&d in oh){e=oh[d]}else{if(d==25&&a.shiftKey){e=9}else{var g=d-32;if(String.fromCharCode(d)==String.fromCharCode(g).toLowerCase()){e=g}}}}else if(f&&f in nh){e=nh[f]}var h=e==this.se;this.se=e;if(ua&&h){if(b.timeStamp-this.vi<10){return}this.vi=
b.timeStamp}var j=new mh(e,h,b);try{this.dispatchEvent(j)}finally{j.dispose()}};Oa.prototype.km=function(a){this.se=-1};Oa.prototype.attach=function(a){if(this.ld&&this.qd){this.detach()}this.b=a;var b=N?Qb:Ec;this.qd=p(this.b,b,this);this.ld=p(this.b,"keyup",this.km,false,this)};Oa.prototype.detach=function(){if(this.ld&&this.qd){pb(this.qd);pb(this.ld);this.qd=null;this.ld=null}this.b=null;this.se=-1};Oa.prototype.dispose=function(){if(!this.ka()){Oa.S.dispose.call(this);this.detach()}};var mh=
function(a,b,c){L.call(this,c);this.type="key";this.keyCode=a;this.repeat=b};mh.inherits(L);;var se=function(){this.Ac={};this.Nq={};this.Sp={}},hg=null,Pc=function(){if(!hg){hg=new se}return hg};se.prototype.fireEvent=function(a,b){var c=null;if(U(a)){c=new X(a);var d=arguments[1];if(U(d)){var e=2,f=d;while(f){var g=arguments[e++];c[f]=g;f=arguments[e++]}}else{for(var h in d){c[h]=d[h]}}}else if(a instanceof X){c=a}this.Tn(c)};se.prototype.Tn=function(a){var b=a.type,c=this.Ac[b];if(c){var d=c(a),e;if(d){e=this.Nq[b]||[]}else{e=this.Sp[b]||[]}for(var f=0;f<e.length;f++){e[f](a)}}};se.prototype.F=
function(a,b){this.Ac[a]=b};var lc=function(a,b){if(a instanceof lc){this.ab=a.lp()}else if(kc(a)&&Bm(a)){this.ab=Ug(a)}else if(a instanceof pa){this.ab=Vh(a.width,a.height)}else if(Nc(a)&&Nc(b)&&a>0&&b>0){this.ab=Vh(a,b)}else{throw Error("Invalid argument(s) for Matrix contructor");}this.X=new pa(this.ab.length,this.ab[0].length)};var Vh=function(a,b){var c=[];for(var d=0;d<a;d++){c[d]=[];for(var e=0;e<b;e++){c[d][e]=0}}return c},Bm=function(a){var b=0;for(var c=0;c<a.length;c++){if(!kc(a[c])||b>0&&a[c].length!=b){return false}for(var d=
0;d<a[c].length;d++){if(!Nc(a[c][d])){return false}}if(b==0){b=a[c].length}}return b!=0},Am=function(a,b,c){for(var d=0;d<a.bi().width;d++){for(var e=0;e<a.bi().height;e++){b.call(c,a.Yl(d,e),d,e,a)}}};lc.prototype.ab=null;lc.prototype.X=null;lc.prototype.bi=function(){return this.X};lc.prototype.Yl=function(a,b){if(a<0||a>=this.X.width||b<0||b>this.X.height){return null}return this.ab[a][b]};lc.prototype.lp=function(){return this.ab};lc.prototype.toString=function(){var a=0;Am(this,function(c){var d=
String(c).length;if(d>a){a=d}});var b=[];yb(this.ab,function(c,d){b.push("[ ");yb(c,function(e,f){e=String(e);b.push((new Array(a-e.length+1)).join(" ")+e+" ")});b.push("]\n")});return b.join("")};var nc=function(a,b){this.x=Number(a)||0;this.y=Number(b)||0};nc.inherits(Eb);nc.prototype.clone=function(){return new nc(this.x,this.y)};nc.prototype.magnitude=function(){return Math.sqrt(this.x*this.x+this.y*this.y)};nc.prototype.scale=function(a){this.x*=a;this.y*=a;return this};nc.prototype.normalize=function(){return this.scale(1/this.magnitude())};nc.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};var db=function(a,b){var c=b||window;if(a==Ti){this.Mj="ParentStub"+Number(new Date);this.$b="ChildStub"}else{this.Mj="ChildStub";this.$b=this.Pl();this.Gc=c.opener||c.parent;if(this.$b&&!this.Gc[this.$b]){var d=0;while(this.Gc&&!this.Gc[this.$b]&&d<10){this.Gc=this.Gc.parent;d++}}c[jg]=this}c[this.Mj]=this.fp.bind(this);this.op=a};db.inherits(J);var kg=function(a){var b=a||window;return b[jg]};db.prototype.Io=function(a,b){this.Gc=a;this.V=b};var Ti="Parent",Si="Child",jg="__topLevelProxy__";db.prototype.type=
null;db.prototype.Pl=function(){var a=new r(document.location.href);return a.Tf("eventCallback")};db.prototype.ci=function(){return this.Mj};db.prototype.pc=function(a){return this.Vn(a)};db.prototype.Vn=function(a){var b=this.V?this.V.contentWindow:null,c=this.Gc||b;if(this.$b&&c&&c[this.$b]){return c[this.$b](a)}else{return true}};db.prototype.fp=function(a){var b=J.prototype.dispatchEvent.call(this,a);return b};var lg=function(){};lg.inherits(J);lg.prototype.Dj=function(a){this.wq=a};lg.prototype.dispatchEvent=function(a){if(this.wq.pc(a)){J.prototype.dispatchEvent.call(this,a)}};var La=function(a){db.call(this,Ti,a||window)};La.inherits(db);var Ui=null,Oo=function(a){switch(a){case "NONE":return"0";case "THIN":return"1px solid black";case "OUTSET":return"2px outset black"}},Ro=function(a,b,c){var d=b||{};d.border=d.border||"OUTSET";var e=new Qc(c);e.Lb(a,d,null);return e},Qo=function(a,b,c,d){var e=b||{};e.border=e.border||"NONE";var f=Ob(c),g=new kb(d);g.Lb(a,e,f);return g};La.prototype.Lb=function(a,b,c){};La.prototype.show=function(){};La.prototype.hide=function(){};La.prototype.dispose=
function(){};var To=function(a,b){var c=b.serverbased?"widgets":"ui",d=new r(So()+"/"+c+"/"+a),e=new r(document.location.href);if(e.Tf("js")){d.s("js",e.Tf("js"))}else{d.s("js","RAW")}if(b){Ca(b,function(f,g){if(f!=null){d.s(g,f)}})}return d},So=function(){if(Ui){return Ui}else if(v.manifest){return v.manifest.serverBase}else{return""}};var Po=0;ec("createIframeComponent",Qo);ec("createIframeDialogComponent",Ro);var kb=function(a){La.call(this,a)};kb.inherits(La);var No=function(a,b,c,d){var e="hosted-"+Po++ +"-"+Number(new Date),f=z(e);if(!f){var g=new wa(d?mb(d):document);f=g.r("iframe",{id:e});Gb(f,"display","block");Gb(f,"backgroundColor","#FFF");Gb(f,"border",Oo(c));Gb(f,"margin","0");Gb(f,"padding","0");Gb(f,"overflow","hidden");pc(f,a,b)}return f};kb.prototype.Lb=function(a,b,c){this.C=To(a,b);this.Ip=b.border;this.Z=!(b.hide=="true");this.rn=b.mock;this.Dp=b.x||20;this.dr=b.y||20;this.cr=b.width||
600;this.Xp=b.height||480;this.mq=b.maximize=="true";this.dj=b.position||"relative";this.Hp=b.background;this.Ep=b.zIndex;this.Bm=b.hl;this.qg=c;var d=No(this.cr,this.Xp,this.Ip,this.qg);d.style.position=this.dj;if(this.Ep){d.style.zIndex=this.Ep}if(this.Hp){d.allowtransparency=true;d.style.backgroundColor="transparent"}if(this.Bm){this.C.s("hl",this.Bm)}if(!this.rn){this.C.s("eventCallback",this.ci());this.C.s("js","RAW");this.C.Zm();d.src=this.C.toString();d.id=ei()}this.Hf(d);if(this.rn){new db(Si,
d.contentWindow);d.contentWindow[jg].$b=this.ci()}this.Io(d.contentWindow,d)};kb.prototype.Hf=function(a){this.V=a;if(this.qg){this.qg.appendChild(a);this.Ng()}else{a.style.position="absolute";document.body.appendChild(a)}if(a.style.position=="absolute"){var b=this.Z?this.Dp:this.Dp-4000;ke(a,b,this.dr)}else{this.Ng();if(!this.Z){a.style.visibility="hidden"}}if(window.frames[a.id]){if(window.frames[a.id].location!=a.src){window.frames[a.id].location=a.src}}};kb.prototype.Ng=function(){var a=this.pr||
this.qg;if(a&&this.mq){var b=la(a);pc(this.V,b);if(this.dj=="absolute"){var c=oc(a);if(!this.Z){c.x-=4000}this.V.style.left=c.x+"px";this.V.style.top=c.y+"px"}}};kb.prototype.show=function(){this.Z=true;this.Ng();this.pc("PRESHOW");var a=this;v.setTimeout(function(){a.V.style.display="block";a.V.style.visibility="visible";a.pc("SHOW")},5)};kb.prototype.hide=function(){this.Z=false;if(this.dj=="absolute"){var a=oc(this.V);this.V.style.left=a.x-4000+"px";this.V.style.visibility="hidden"}else{this.V.style.display=
"none"}};kb.prototype.dispose=function(){if(this.V!=null){this.V.parentNode.removeChild(this.V);this.V=null}La.prototype.dispose.call(this)};var Qc=function(a){kb.call(this,a)};Qc.inherits(kb);Qc.prototype.Hf=function(a){if(Ea){$(document.body,"background")}var b=new x;b.xc().appendChild(a);b.zj(new ra);b.Ha(this.Z);this.yf=b;this.V=a};Qc.prototype.show=function(){this.yf.Ha(true)};Qc.prototype.hide=function(){this.yf.Ha(false)};Qc.prototype.dispose=function(){this.yf.dispose();Ga(document.body,"background");this.yf=null;this.V=null;kb.prototype.dispose.call(this)};var Fa=function(){this.lh={}};Fa.prototype.lh=null;var ig=null,Lo=function(){if(!ig){ig=new Fa}return ig};Fa.prototype.Lh=function(a){return this.lh[a]};Fa.prototype.create=function(a,b,c){var d=this.Lh(a);if(d){if(b){b=Ob(b)}return d(b,c,a)}};Fa.prototype.ih=function(a){var b=this.Lh(a);if(b){var c={},d=(new r(document.location.href)).ee();Ca(d,function(g,h){c[h]=g});var e=new db(Si),f=b(document.body,c,a);if(f.Dj){f.Dj(e)}}};Fa.prototype.of=function(a){var b=a||document.body,c=b.getAttribute("g:type");
if(c){var d={},e=b.attributes;for(var f=0;f<e.length;f++){var g=e[f].name;if(ta(g,"g:")){d[g.substring(2)]=e[f].value}}this.create(c,b,d)}var h=b.childNodes.length;for(var f=0;f<h;f++){var j=b.childNodes[f];if(j.nodeType==1){this.of(j)}}};Fa.prototype.Fh=function(a){var b=kg();if(b){if(U(a)){a=new X(a)}return b.pc(a)}else{return true}};var Mo=function(){ec("Xuit",Lo());dc(Fa.prototype,"buildUi",Fa.prototype.of);dc(Fa.prototype,"create",Fa.prototype.create);dc(Fa.prototype,"createAsFullPage",Fa.prototype.ih);dc(Fa.prototype,"fireHostedEvent",Fa.prototype.Fh);dc(La.prototype,"hide",La.prototype.hide);dc(La.prototype,"show",La.prototype.show);dc(La.prototype,"dispose",La.prototype.dispose)};Mo();var Jl=function(){};Jl.prototype.decorate=function(a,b){if(ua||Hb)return;var c=b||{},d=new ia,e=true,f=c.enabled;if(f){var g=new za(f),h=g.T();for(var j=0;j<h.length;j++){q().O(Kl.bind(null,d,g),h[j].Qb())}e=g.g()}var k=a.ownerDocument.createElement("div");while(a.childNodes.length>0){k.appendChild(a.firstChild)}d.Po(b);d.Ym(a);d.zg(k);d.Nc(e);d.render(a);return d};var Kl=function(a,b){a.Nc(b.g())},ia=function(){this.bb="#FCFCFC";this.oh="#F4F4F4";this.ma="#B5B5B5";this.mb="#9CBED8";this.db="#B0B0B0";
this.Ma=true};ia.inherits(J);ia.prototype.render=function(a){this.a=a;p(a,na,this.fd,false,this);p(a,Gc,this.hd,false,this);p(a,Nd,this.lm,false,this);p(a,Fc,this.gd,false,this);p(a,"mouseup",this.mm,false,this)};ia.prototype.Po=function(a){this.Ee=a||{};this.bb=this.Ee["background-color"]||this.bb;this.oh=this.Ee["down-background-color"]||this.oh;this.ma=this.Ee["border-color"]||this.ma;this.mb=this.Ee["hover-border-color"]||this.mb;this.db=this.Ee["down-border-color"]||this.db};ia.prototype.Ym=
function(a){this.a=a;this.Rd=new wa(a.ownerDocument);$(a,"goog-button");a.style.border="0";a.style.background="transparent";a.style.margin="0";a.style.padding="0";a=(this.qi=a.appendChild(this.Rd.r("div")));this.sg=this.rd(a,"l1","background-color:"+this.ma);this.Ic=this.rd(a,"l2","border-color: "+this.ma+";background-color: "+this.bb);this.rd(a,"l2","border-color: "+this.ma+";background-color: "+this.bb);this.W=a.appendChild(this.Rd.r("div",{"class":"mid",style:"border-color: "+this.ma+";background-color: "+
this.bb+";padding: 1px 1px;"}));this.Jc=this.rd(a,"l2","border-color: "+this.ma+";background-color: "+this.bb);this.tg=this.rd(a,"l1","background-color: "+this.ma)};ia.prototype.rd=function(a,b,c){var d=a.appendChild(this.Rd.r("div",{style:c,"class":b}));if(N){d.style.width="100%"}d.appendChild(this.Rd.r("img",{width:"1",height:"1",src:oa().dd()+"/static/images/Transparent.gif"}));return d};ia.prototype.fd=function(){this.dispatchEvent(na)};ia.prototype.Ij=function(){this.sg.style.backgroundColor=
this.ma;this.Ic.style.borderColor=this.ma;this.Ic.style.backgroundColor=this.bb;this.W.style.borderLeft="1px solid "+this.ma;this.W.style.borderRight="1px solid "+this.ma;this.W.style.padding="1px 1px";this.W.style.backgroundColor=this.bb;this.Jc.style.borderColor=this.ma;this.Jc.style.backgroundColor=this.bb;this.tg.style.backgroundColor=this.ma};ia.prototype.Yo=function(){this.sg.style.backgroundColor=this.mb;this.Ic.style.borderColor=this.mb;this.Ic.style.backgroundColor=this.mb;this.W.style.borderLeft=
"2px solid "+this.mb;this.W.style.borderRight="2px solid "+this.mb;this.W.style.padding="1px 0px";this.W.style.backgroundColor=this.bb;this.Jc.style.borderColor=this.mb;this.Jc.style.backgroundColor=this.mb;this.tg.style.backgroundColor=this.mb};ia.prototype.Xo=function(){this.sg.style.backgroundColor=this.db;this.Ic.style.borderColor=this.db;this.Ic.style.backgroundColor=this.db;this.W.style.borderLeft="2px solid "+this.db;this.W.style.borderRight="2px solid "+this.db;this.W.style.padding="2px 0px";
this.W.style.backgroundColor=this.oh;this.Jc.style.borderColor=this.db;this.Jc.style.backgroundColor=this.db;this.tg.style.backgroundColor=this.db};ia.prototype.hd=function(){this.Yo()};ia.prototype.lm=function(){this.Ij()};ia.prototype.gd=function(){this.Xo()};ia.prototype.mm=function(){this.Ij()};ia.prototype.zg=function(a){a.style.cssFloat="left";while(a.childNodes.length>0){this.W.appendChild(a.firstChild)}if(N){this.a.style.visibility="hidden";v.setTimeout(this.Fg.bind(this),0)}else{this.Fg()}p(window,
"resize",this.Fg.bind(this))};ia.prototype.Fg=function(){var a,b=10,c=this.Rd.Pa().compatMode=="BackCompat",a=la(this.W).width;if(a<10){return}this.a.style.visibility="";if(N){this.qi.style.width="1px";this.a.style.overflow="visible";a=la(this.W).width;this.a.style.width=a+b+"px";if(!c){this.we(this.sg,4);this.we(this.Ic,6);this.we(this.Jc,6);this.we(this.tg,4)}this.qi.style.width=a+b+"px"}else{this.W.style.cssFloat="left";a=la(this.W).width;this.W.style.cssFloat="";if(Hb&&c){this.a.style.width=a+
2+"px"}this.qi.style.width=a+b+"px"}};ia.prototype.we=function(a,b){a.style.width=la(a).width-b+"px"};ia.prototype.Nc=function(a){if(this.Ma!=a){if(a){Ga(this.a,"disabled");this.a.disabled=false}else{$(this.a,"disabled");this.a.disabled=true}this.Ma=a}};var sa=function(a,b){var c=window._Messages||[],d=a;for(var e=0;e<c.length;e++){if(c[e][a]){d=c[e][a];break}}var f=b||{},g=function(h,j){return j in f?f[j]:h};d=d.replace(new RegExp("\\{\\$(\\w+)\\}","g"),g);return d},cm=function(a,b){document.write(sa(a,b))};ec("_cp_getMsg",sa);ec("_cp_writeMsg",cm);var rl=function(a,b){if(We(a)){a.selectionStart=b}else if(N){var c=Ue(a),d=c[0],e=c[1];if(d.inRange(e)){var f=a.value,g=0,h=b;while(g!=-1&&g<h){g=f.indexOf("\r\n",g);if(g!=-1&&g<h){b--;g++}}d.collapse(true);d.move("character",b);d.select()}}},Ve=function(a){if(We(a)){return a.selectionStart}if(N){var b=Ue(a),c=b[0],d=b[1];if(c.inRange(d)){c.setEndPoint("EndToStart",d);return c.text.length}}return 0},ql=function(a,b){if(We(a)){a.selectionEnd=b}else if(N){var c=Ue(a),d=c[0],e=c[1];if(d.inRange(e)){e.collapse();
e.moveEnd("character",b-Ve(a));e.select()}}};var Ue=function(a){var b=a.ownerDocument||a.document,c=b.selection.createRange(),d;if(a.type=="textarea"){d=c.duplicate();d.moveToElementText(a)}else{d=a.createTextRange()}return[d,c]},We=function(a){try{return typeof a.selectionStart=="number"}catch(b){return false}};var W=function(a,b,c){J.call(this);this.gn=a;this.Ao=c;this.rb=b;p(b,["hilite","select",Tf,"dismiss"],this);this.wb=null;this.K=[];this.Da=-1;this.hb=0;this.Fb=null;this.oc=null};W.inherits(J);W.prototype.kn=10;W.prototype.tk=true;W.prototype.ok=false;var Tf="canceldismiss";W.prototype.F=function(a){if(a.target==this.rb){switch(a.type){case "hilite":this.nb(a.row);break;case "select":this.xd();break;case Tf:this.qf();break;case "dismiss":this.rh();break}}};W.prototype.Uo=function(a,b){if(this.wb==
a){return}this.wb=a;this.gn.vg(this.wb,this.kn,w(this.en,this),b);this.qf()};W.prototype.Wl=function(){return this.Fb};W.prototype.To=function(a){this.Fb=a};W.prototype.isOpen=function(){return this.rb.Dc()};W.prototype.li=function(){if(this.Da>=this.hb&&this.Da<this.hb+this.K.length-1){this.nb(this.Da+1);return true}else if(this.Da==-1){this.nb(this.hb);return true}return false};W.prototype.mi=function(){if(this.Da>this.hb){this.nb(this.Da-1);return true}else if(this.ok&&this.Da==this.hb){this.nb(-1)}return false};
W.prototype.nb=function(a){this.Da=a;this.rb.nb(a);return this.Qf(a)!=-1};W.prototype.xd=function(){var a=this.Qf(this.Da);if(a!=-1){var b=this.K[a];this.Ao.Pe(b);this.dismiss();this.dispatchEvent({type:"update",row:b});return true}else{this.dismiss();this.dispatchEvent({type:"update",row:null});return false}};W.prototype.dismiss=function(){this.Da=-1;this.wb=null;this.hb+=this.K.length;this.K.length=0;window.clearTimeout(this.oc);this.oc=null;this.rb.dismiss()};W.prototype.rh=function(){if(!this.oc){this.oc=
window.setTimeout(w(this.dismiss,this),50)}};W.prototype.qf=function(){window.setTimeout(w(function(){if(this.oc){window.clearTimeout(this.oc);this.oc=null}},this),10)};W.prototype.dispose=function(){if(!this.ka()){W.S.dispose.call(this);this.rb.dispose();this.Ao.dispose();this.gn=null}};W.prototype.en=function(a,b,c){if(this.wb!=a){return}var d=c?this.Qf(this.Da):null;this.hb+=this.K.length;this.K=b;var e=[];for(var f=0;f<b.length;++f){e.push({id:this.Sh(f),data:b[f]})}this.rb.no(e,this.wb,this.Fb);
if(this.tk&&e.length!=0){var g=d!=null?this.Sh(d):this.hb;this.nb(g)}else{this.Da=-1}};W.prototype.Qf=function(a){var b=a-this.hb;if(b<0||b>=this.K.length){return-1}return b};W.prototype.Sh=function(a){return this.hb+a};var G=function(a,b,c,d){Wa.call(this);this.Mc=ga(a)&&!(a===null)?a:",;";this.Tm=b||"";this.sd=c!=null?c:true;this.Y=new lb(d||150);this.Op=this.Mc.substring(0,1);this.Tq=new RegExp("^[\\s"+this.Mc+"]+|[\\s"+this.Mc+"]+$","g");this.Fq=new RegExp("\\s*["+this.Mc+"]$");this.ja=new Pb(this);this.Fd=new Pb(this);this.gg=new Oa};G.inherits(Wa);G.prototype.zp=true;G.prototype.sl=true;G.prototype.Rj=false;G.prototype.L=null;G.prototype.pd="";G.prototype.gc=false;G.prototype.Yg=function(a){this.G=a};G.prototype.rk=
function(a){zc(a,"select");Yb(a,"haspopup",true);this.ja.listen(a,"focus",this.Ec);this.ja.listen(a,"blur",this.mg);if(!this.L){this.Fd.listen(a,Qb,this.Si)}};G.prototype.al=function(a){if(a==this.L){this.mg()}this.ja.unlisten(a,"focus",this.Ec);this.ja.unlisten(a,"blur",this.mg);if(!this.L){this.Fd.unlisten(a,Qb,this.Si)}};G.prototype.hf=function(){for(var a=0;a<arguments.length;a++){this.rk(arguments[a])}};G.prototype.bl=function(){for(var a=0;a<arguments.length;a++){this.al(arguments[a])}};G.prototype.Pe=
function(a,b){var c=this.G.Wl();if(ga(b)?b:this.sd){var d=Ve(c),e=this.di(c.value,d),f=this.Hg(c.value),g=a.toString();if(!this.Fq.test(g)){g=g.replace(/\s+$/,"")+this.Op}if(this.zp){if(e!=0&&!hi(f[e-1])){g=" "+g}if(e<f.length&&!hi(f[e+1])){g=g+" "}}if(g!=f[e]){f[e]=g;c.value=f.join("");var h=0;for(var j=0;j<=e;j++){h+=f[j].length}c.focus();rl(c,h);ql(c,h)}}else{c.value=a.toString()}};G.prototype.dispose=function(){if(!this.ka()){G.S.dispose.call(this);this.ja.dispose();this.ja=null;this.Fd.dispose();
this.Fd=null}};G.prototype.im=function(a){switch(a.keyCode){case 40:if(this.G.isOpen()){this.vn();a.preventDefault();return true}else if(!this.sd){this.Pc(true);a.preventDefault();return true}break;case 38:if(this.G.isOpen()){this.xn();a.preventDefault();return true}break;case 9:this.Pc();if(this.G.xd()&&this.sd){a.preventDefault();return true}break;case 13:this.Pc();if(this.G.xd()){a.preventDefault();return true}break;case 27:if(this.G.isOpen()){this.G.dismiss();return true}break;case 229:if(!this.gc){this.ja.listen(this.L,
"keyup",this.ng);this.gc=true;return true}break}if(this.sd&&a.charCode&&this.Mc.indexOf(String.fromCharCode(a.charCode))!=-1){this.Pc();if(this.G.xd()){a.preventDefault();return true}}return false};G.prototype.ik=function(){this.gg.attach(this.L);this.ja.listen(this.gg,"key",this.og);if(N){this.ja.listen(this.L,Ec,this.Ri)}};G.prototype.ho=function(){this.ja.unlisten(this.gg,"key",this.og);this.gg.detach();if(N){this.ja.unlisten(this.L,Ec,this.Ri)}if(this.gc){this.ja.unlisten(this.L,"keyup",this.ng)}};
G.prototype.Ec=function(a){this.Fd.ij();if(this.G){this.G.qf()}this.L=a.target;this.Y.start();this.ja.listen(this.Y,"tick",this.Vi);this.pd=this.L.value;this.ik()};G.prototype.mg=function(a){if(this.L){this.ho();this.L=null;this.gc=false;this.Y.stop();this.ja.unlisten(this.Y,"tick",this.Vi);if(this.G){this.G.rh()}}};G.prototype.Vi=function(a){if(!this.gc){this.Pc()}};G.prototype.Si=function(a){this.Ec(a);if(N){this.og(a)}};G.prototype.og=function(a){if(this.G&&!this.gc){this.im(a)}};G.prototype.ng=
function(a){if(a.keyCode==13){this.gc=false;this.ja.unlisten(this.L,"keyup",this.ng)}};G.prototype.Ri=function(a){if(this.sd&&this.Mc.indexOf(String.fromCharCode(a.charCode))!=-1){this.Pc();if(this.G.xd()){a.preventDefault()}}};G.prototype.Pc=function(a){if(a||this.L&&this.L.value!=this.pd){var b=this.In();if(this.G){this.G.To(this.L);this.G.Uo(b,this.L.value)}this.pd=this.L.value}};G.prototype.xn=function(){return this.Rj?this.G.li():this.G.mi()};G.prototype.vn=function(){return this.Rj?this.G.mi():
this.G.li()};G.prototype.In=function(){var a=Ve(this.L),b=this.L.value;return this.np(this.Hg(b)[this.di(b,a)])};G.prototype.np=function(a){return String(a).replace(this.Tq,"")};G.prototype.di=function(a,b){var c=this.Hg(a);if(b==a.length)return c.length-1;var d=0;for(var e=0,f=0;e<c.length&&f<b;e++){f+=c[e].length;d=e}return d};G.prototype.Hg=function(a){if(!this.sd){return[a]}var b=String(a).split(""),c=[],d=[];for(var e=0,f=false;e<b.length;e++){if(this.Tm&&this.Tm.indexOf(b[e])!=-1){if(this.sl&&
!f){c.push(d.join(""));d.length=0}d.push(b[e]);f=!f}else if(!f&&this.Mc.indexOf(b[e])!=-1){d.push(b[e]);c.push(d.join(""));d.length=0}else{d.push(b[e])}}c.push(d.join(""));return c};var M=function(a,b,c,d){this.l=a||hh().body;this.i=Nb(this.l);this.po=!a;this.b=null;this.wb="";this.K=[];this.$f=-1;this.dp=-1;this.Z=false;this.className="ac-renderer";this.rowClassName="ac-row";this.activeClassName="active";this.Vc=b;this.Yq=d!=null?d:true;this.Bq=c!=null?c:false;this.si=null;this.Kg=false};M.inherits(J);var pi=0;M.prototype.Tc=null;M.prototype.no=function(a,b,c){this.wb=b;this.K=a;this.$f=0;this.dp=Ba();this.Fb=c;this.Ne=[];this.redraw()};M.prototype.dismiss=function(){if(this.Z){this.Z=
false;cb(this.b,false)}};M.prototype.show=function(){if(!this.Z){this.Z=true;cb(this.b,true)}};M.prototype.Dc=function(){return this.Z};M.prototype.ni=function(a){this.Am();this.$f=a;if(a>=0&&a<this.b.childNodes.length){var b=this.Ne[a];$(b,this.activeClassName);Yb(this.b,"activedescendant",b.id);tl(this.Tc,Kd(b))}};M.prototype.Am=function(){if(this.$f>=0){Ga(this.Ne[this.$f],this.activeClassName)}};M.prototype.nb=function(a){if(a==-1){this.ni(-1)}else{for(var b=0;b<this.K.length;b++){if(this.K[b].id==
a){this.ni(b);return}}}};M.prototype.No=function(a){$(a,this.className)};M.prototype.mn=function(){if(!this.b){this.Tc=this.i.r("div",{style:"display:none"});zc(this.Tc,"region");Yb(this.Tc,"live","rude");this.i.appendChild(this.l,this.Tc);this.b=this.i.r("div",{style:"display:none"});this.No(this.b);zc(this.b,"menu");var a=this.b.id="goog-acr-"+pi++;Yb(this.Fb,"controls",a);this.i.appendChild(this.l,this.b);p(this.b,na,this.fd,false,this);p(this.b,Fc,this.gd,false,this);p(this.i.Pa(),na,this.hi,
false,this);p(this.b,Gc,this.hd,false,this)}};M.prototype.redraw=function(){this.mn();if(this.Kg){this.b.style.visibility="hidden"}this.Ne.length=0;this.i.eo(this.b);if(this.Vc&&this.Vc.render){this.Vc.render(this,this.b,this.K,this.wb)}else{var a=null;Ca(this.K,function(f){var f=this.mo(f,this.wb);if(this.Kg){this.b.insertBefore(f,a)}else{this.i.appendChild(this.b,f)}a=f},this)}if(this.K.length==0){this.dismiss();return}else{this.show()}this.Qn(this.b);if(this.Fb&&this.po){var b=oc(this.Fb),c=la(this.Fb),
d=la(oi(this.Fb)),e=la(this.b);b.y=this.Kg?b.y-e.height:b.y+c.height;if((this.Bq||b.x+e.width>d.width)&&this.si!="LEFT"){b.x=b.x+c.width-e.width;this.si="RIGHT"}else{this.si="LEFT"}ke(this.b,b);if(this.Kg){this.b.style.visibility="visible"}}bn(this.b,true)};M.prototype.Ho=function(a){this.po=a};M.prototype.dispose=function(){if(!this.ka()){M.S.dispose.call(this);if(this.b){ya(this.b,na,this.fd,false,this);ya(this.b,Fc,this.gd,false,this);ya(this.i.Pa(),na,this.hi,false,this);ya(this.b,Gc,this.hd,
false,this);this.i.removeNode(this.b);this.b=null;this.Z=false}this.l=null}};M.prototype.Qn=function(a){if(Ea&&Wf){a.style.width="";a.style.overflow="visible";a.style.width=a.offsetWidth;a.style.overflow="auto"}};M.prototype.lo=function(a,b,c){c.innerHTML=Ua(a.data.toString())};M.prototype.Zf=function(a,b){if(a.nodeType==3){var c,d=null;if(H(b)){c=b.length>0?b[0]:"";if(b.length>1){d=Fd(b,1)}}else{c=b}if(c.length==0)return;var e=a.nodeValue;c=ie(c);var f=new RegExp("(.*?)(^|\\W+)("+c+")","gi"),g=[],
h=0,j=f.exec(e);while(j){g.push(j[1]);g.push(j[2]);g.push(j[3]);h=f.lastIndex;j=f.exec(e)}g.push(e.substring(h));if(g.length>1){a.nodeValue=g[0]+g[1];var k=this.i.createElement("b");this.i.appendChild(k,this.i.createTextNode(g[2]));k=a.parentNode.insertBefore(k,a.nextSibling);for(var l=g.length-1;l>=3;l--){a.parentNode.insertBefore(this.i.createTextNode(g[l]),k.nextSibling)}}else if(d){this.Zf(a,d)}}else{var n=a.firstChild;while(n){var m=n.nextSibling;this.Zf(n,b);n=m}}};M.prototype.mo=function(a,
b){var c=this.i.r("div",{className:this.rowClassName});if(this.Vc&&this.Vc.oj){this.Vc.oj(a,b,c)}else{this.lo(a,b,c)}if(b&&this.Yq){this.Zf(c,b)}c.id="goog-acri-"+pi++;$(c,this.rowClassName);zc(c,"menuitem");this.Ne.push(c);return c};M.prototype.$h=function(a){while(a&&a!=this.b&&!Ac(a,this.rowClassName)){a=a.parentNode}return a?Ke(this.Ne,a):-1};M.prototype.fd=function(a){var b=this.$h(a.target);if(b>=0){this.dispatchEvent({type:"select",row:this.K[b].id})}a.stopPropagation()};M.prototype.gd=function(a){this.dispatchEvent(Tf);
a.stopPropagation()};M.prototype.hi=function(a){this.dispatchEvent("dismiss")};M.prototype.hd=function(a){var b=this.$h(a.target);if(b>=0){if(Ba()-this.dp<300){return}this.dispatchEvent({type:"hilite",row:this.K[b].id})}};var en=function(){};en.prototype.render=function(a,b,c,d){};var le=function(a,b){this.K=a;this.Xq=!b};le.prototype.vg=function(a,b,c,d){var e=this.Ql(a,b);if(e.length==0&&this.Xq){e=this.Ul(a,b)}c(a,e)};le.prototype.Ql=function(a,b){var c=[];if(a!=""){var d=ie(a),e=new RegExp("(^|\\W+)"+d,"i");Zm(this.K,function(f){if(String(f).match(e)){c.push(f)}return c.length>=b})}return c};le.prototype.Ul=function(a,b){var c=[];Ca(this.K,function(f){var g=a.toLowerCase(),h=String(f).toLowerCase(),j=0;if(h.indexOf(g)!=-1){j=parseInt(h.indexOf(g)/4,10)}else{var k=g.split(""),
l=-1,j=0,n=10;for(var m=0,y;y=k[m];m++){var B=h.indexOf(y);if(B>l){var F=B-l-1;if(F>n-5){F=n-5}j+=F;l=B}else{j+=n;n+=5}}}if(j<g.length*6){c.push({str:f,score:j})}});c.sort(function(f,g){return f.score-g.score});var d=[];for(var e=0;e<b&&e<c.length;e++){d.push(c[e].str)}return d};var dn=function(a,b,c,d){var e=new le(a,!d),f=new M,g=new G(null,null,!(!c));W.call(this,e,f,g);g.Yg(this);g.hf(b)};dn.inherits(W);var ja=function(){this.dg=false;this.Uc=[];this.fr=[];this.Ab=null;this.jd=[];this.dm=[];this.nl={};this.G=null;this.rb=null;this.$o=true;this.mp={};this.xe=250};ja.prototype.xb=function(a,b,c){if(!a||U(a)){var d={id:c||""};if(a){d.Name=a}if(b){d.Emails=[{Address:b}]}a=hb(d,"$SomeContact")}var e=Ic(a);if(this.$o&&!e){return}this.Uc.push(this.uf(a))};var Ic=function(a){return o("Emails/[0]/Address").g(a)||o("Email").g(a)},Wl=function(a,b){var c=new ja;if(!b.uri&&b.serverBase){b.uri=b.serverBase+"data/contacts"}c.create(a,
b);return c};v._EmailAc_create=Wl;ja.prototype.create=function(a,b){var c=Ob(a),d=new r(b.uri);if(b.max)this.Bg(b.max);if(b.groups)d.s("groups","true");this.init(c,d.toString(),true,b.rightAlign,b.twoLine);this.fj=b.progressive};ja.prototype.dispose=function(){this.Ab.dispose();this.rb.dispose()};ja.prototype.Hk=function(){return new W(this,this.rb,this.Ab)};ja.prototype.Bg=function(a){this.xe=a<0?10100:a};ja.prototype.init=function(a,b,c,d,e,f){if(this.dg){Q.warning("Init already called");return}this.dg=
true;this.C=b;this.Ci("$Contacts",w(this.$l,this),null,false);var g;if(H(a)){g=a[0].ownerDocument.body}else{g=a.ownerDocument.body}var h=e?new M(g,new Lh,d):new Rd(g);h.Ho(true);this.rb=h;this.Ab=new Sd(",;",'"',f);this.G=this.Hk();this.Ab.Yg(this.G);this.fj=false;if(a){this.hk(a)}};ja.prototype.Ci=function(a,b,c,d){var e=new r(this.C);e.s("out","js");if(c){e.s("tok",c);e.s("cl",false);e.s("psort","Name")}if(d){e.s("cd","true")}var f=c?10:this.xe;e.s("max",f);var g=new Bb(e,a,"&&&START&&&","&&&END&&&"),
h=q();h.$(g,true);h.O(b,a);g.load()};ja.prototype.hk=function(a){if(!this.dg){Q.warning("Init should be called first");return}if(H(a)){this.jd=this.jd.concat(a);for(var b=0;b<a.length;b++){this.Ab.hf.call(this.Ab,a[b])}}else{this.jd.push(a);this.Ab.hf.call(this.Ab,a)}};ja.prototype.fo=function(a){if(!this.dg){Q.warning("Init should be called first");return}if(H(a)){yb(a,function(b){this.fo(b)},this)}else{yc(this.jd,a);this.Ab.bl(a)}};ja.prototype.vg=function(a,b,c){this.Uk=a;var d=[];if(a!=""){var e=
ie(a),f=f=new RegExp('(^|<| |"|\\()'+e,"i"),g=this.dm;for(var h=0;h<g.length&&d.length<b;++h){var j=g[h];if(j.ya().match(f)){d.push(j)}}g=this.Uc;for(var h=0;h<g.length&&d.length<b;++h){var j=g[h];if(j.toString().match(f)){d.push(j)}}}if(this.fj&&a){if(!this.ji(a,b,true)){if(d.length<b){var k=d.concat([]);v.setTimeout(this.tl.bind(this,k,b,a,c),500);d.push(new hf("MORE"))}}}c(a,d)};ja.prototype.ji=function(a,b,c){var d=this.mp[a];if(d&&(c||d.count<b)){return true}else if(a.length>1){return this.ji(a.substring(0,
a.length-1),b,false)}else{return false}};var Xl=0;ja.prototype.tl=function(a,b,c,d){if(c==this.Uk&&c!=""){var e="$AdditionalContacts"+Xl++,f=this.Zl.bind(this,a,b,c,d);this.Ci(e,f,c,true)}};ja.prototype.Zl=function(a,b,c,d,e){var f=[].concat(a);if(c==this.Uk){var g=this.Jh(e),h={};for(var j=0;j<a.length;j++){var k=Ic(a[j].contactData);h[k]=true}j=0;while(f.length<b&&j<g.e()){var l=g.o(j),k=Ic(l);if(!h[k]){var n=this.uf(l);f.push(n);this.nl[k]=true;this.Uc.push(n)}j++}d(c,f,true);this.mp[c]={count:f.length}}};
ja.prototype.Jh=function(a){var b=q().$d(a),c=b.c("Body",true).c("Contacts",true).h();return c};ja.prototype.$l=function(a,b){var c=this.Jh("$Contacts"),d=c.e();Q.info("Got "+d+" contacts");if(d>0){for(var e=0;e<this.jd.length;e++){this.jd[e].setAttribute("autocomplete","off")}}var f=new V;for(var e=0;e<d;e++){var g=c.o(e),h=Ic(g);if(!h&&this.$o){continue}var j=g.d("Name"),k=g.d("Groups");if(k!=null){var l=k.length;for(var n=0;n<l;n++){var m=f.get(k[n].id);if(m==null){m=[];f.set(k[n].id,m)}m.push(wh(j,
k[n].value))}}var y=this.uf(g);this.Uc.push(y);this.nl[h]=true}Q.info("Created contact array");var B=q().$d("$Contacts"),F=B.c("Body").c("Groups");if(F!=null){var k=F.h();d=k.e();Q.info("Got "+d+" groups");for(var e=0;e<d;e++){var va=k.o(e),ca=va.d("id"),j=va.d("Name");if(ca.charAt(0)!="^"){var Y=f.get(ca);if(Y!=null){this.dm.push(new Od(j,Y))}}}}var eb=B.c("Body").c("UserData");if(eb){var ye=eb.c("Features",true).h();for(var e=0;e<ye.e();e++){var sj=ye.o(e).get();if(sj=="PROGRESSIVE_AC"){this.fj=
true}}}};ja.prototype.uf=function(a){var b=a.d("Name"),c=Ic(a),d={};d.contactData=a;var e=wh(b,c);d.formattedValue=e;d.toString=function(){return this.formattedValue};return d};var Rd=function(){M.apply(this,arguments)};Rd.inherits(M);Rd.prototype.redraw=function(){var a=false,b=this.K.length;if(b>0&&this.K[b-1].data.ei&&this.K[b-1].data.ei()=="MORE"){a=true}Rd.S.redraw.call(this);if(a){var c=sa("SEARCHING_FOR_MATCHES");if(b>1){var d=this.i.createElement("div"),e=this.i.r("div",{style:"background-color: #A0B0FF; margin: 8px 0px"});
if(N){var f=this.i.r("img",{width:"1",height:"1"});e.appendChild(f)}else{e.style.height="1px"}d.appendChild(e);this.b.appendChild(d);c=sa("SEARCHING_FOR_MORE_MATCHES")}var g=this.i.r("div");g.innerHTML=c;this.b.appendChild(g)}};var hf=function(a){this.op=a};hf.prototype.toString=function(){return""};hf.prototype.ei=function(){return this.op};var Lh=function(){};Lh.prototype.oj=function(a,b,c){c.innerHTML=Tk([Ua(a.data.contactData.d("Name")),Ua(Ic(a.data.contactData))],function(d){return d}).join("<br/>")};
var _emailAutocomplete=v._emailAutocomplete=new ja;v._initEmailAutocomplete=w(v._emailAutocomplete.init,v._emailAutocomplete);var _initEmailAutocomplete=v._initEmailAutocomplete,wh=function(a,b){var c=a?'"'+a+'"':"",d=b?" <"+b+">":"";return c+d};var Sd=function(a,b,c){G.call(this,a,b,c)};Sd.inherits(G);Sd.prototype.Pe=function(a){if(a.Ih){a=a.Ih().join(", ")}Sd.S.Pe.call(this,a)};var Od=function(a,b){this.Xa=a;this.Uc=b};Od.prototype.toString=function(){return this.Xa+" (Group)"};Od.prototype.ya=
function(){return this.Xa};Od.prototype.Ih=function(){return this.Uc};var om=function(a,b,c,d){var e=a.split("."),f=d||v,g=f,h=e.length;for(var j=0;j<h-1;j++){if(!g[e[j]]){g[e[j]]={}}g=g[e[j]]}g[e[h-1]]=b;if(c){f[c]=b}},pm=function(a,b){if(a.value==""||a.value==b||a.value==a.defaultText){a.defaulted=true;a.value=b;$(a,"input-default")}a.defaultText=b;p(a,"focus",function(){if(a.defaulted){a.value="";Ga(a,"input-default");a.defaulted=false}});p(a,"blur",nm.bind(null,a));p(document,Ec,function(c){if(c.target==a&&c.keyCode==27){c.stopPropagation()}},true)},nm=function(a){if(a.value==
""&&!a.defaulted){a.defaulted=true;a.value=a.defaultText;$(a,"input-default")}};var be=function(a,b){b=b<0?0:b;a.style.height=b+"px";a.__lastHeight=b},Mh=function(a,b){b=b<0?0:b;a.style.width=b+"px";a.__lastWidth=b},ae=function(a){return ab(a,"paddingLeft")+ab(a,"paddingRight")+ab(a,"marginLeft")+ab(a,"marginRight")+ab(a,"borderLeftWidth")+ab(a,"borderRightWidth")},uf=function(a){return ab(a,"paddingTop")+ab(a,"paddingBottom")+ab(a,"marginTop")+ab(a,"marginBottom")+ab(a,"borderTopWidth")+ab(a,"borderBottomWidth")},
ab=function(a,b){var c=mb(a),d;if(c.defaultView&&c.defaultView.getComputedStyle){var e=c.defaultView.getComputedStyle(a,"");if(e){d=e[b]}}if(!d){d=a.currentStyle?a.currentStyle[b]:a.style[b]}if(ha(d,"px")){var d=Number(d.substring(0,d.length-2));if(d<-10){d=0}return d}else{return 0}};var hd=function(a,b){this.a=a;if(a==null){return}this.Ff=b?Pd(b):null;if(this.Ff){var c=w(this.Nj,this);Ca(this.Ff.T(),function(h){q().O(c,h.ia)});this.Nj()}if(N){var d=la(a);a.style.width=String(d.width*0.77)+"px";var e=Number(a.currentStyle.paddingTop.split("px")[0]),f=Number(a.currentStyle.paddingBottom.split("px")[0]);a.style.paddingTop=String(e+2)+"px";var g=f>=2?f-2:0;a.style.paddingBottom=String(g)+"px"}p(a,Fc,w(this.On,this));p(a,"mouseup",w(this.ej,this));p(a,Nd,w(this.cn,this));p(a,Gc,w(this.pp,
this));p(a,na,w(this.ej,this))};hd.prototype.On=function(a){$(a.target,"presubmit");a.target.Pn=true};hd.prototype.ej=function(a){Ga(a.target,"presubmit");a.target.Pn=false};hd.prototype.cn=function(a){Ga(a.target,"presubmit")};hd.prototype.pp=function(a){if(a.target.Pn){$(a.target,"presubmit")}};hd.prototype.Nj=function(){if(this.Ff){this.a.disabled=!this.Ff.g()}};var vh=function(a,b){this.a=Ob(a);this.Ca=o(b);q().O(w(this.Mb,this),b);p(this.a,na,w(this.el,this),false,this);var c=this.Ca.g();if(c){this.a.checked=c}};vh.prototype.Mb=function(){if(!this.Ub){var a=this.Ca.g();this.Tb=true;this.a.checked=a!=0;this.Tb=false}};vh.prototype.el=function(){if(!this.Tb){var a=this.a.checked;this.Ub=true;Za(this.Ca.ia,a);this.Ub=false}};var Td=function(a,b,c,d,e){this.a=Ob(a);this.Ca=o(b);this.gr=c;this.Xc=d||this.a.getAttribute("defaultText");this.hn=e;if(this.hn){this.a.maxLength=this.hn}q().O(w(this.Mb,this),b);p(this.a,"change",this.sc,false,this);p(this.a,"keyup",this.sc,false,this);var f=this.Ca.g();if(f){this.a.value=f}if(this.Xc){p(this.a,"blur",this.rf,false,this);p(this.a,"focus",this.Ec,false,this);this.rf()}};Td.prototype.Mb=function(){if(!this.Ub){var a=this.Ca.g();this.Tb=true;this.a.value=a?a:"";this.Tb=false;this.Od=
false;if(this.Xc){this.rf()}}};Td.prototype.sc=function(){if(!this.Tb){var a=this.a.value||null;this.Ub=true;var b=this.Ca.ga().D(null,true);b.p(this.Ca.Zb,a);this.Ub=false}};Td.prototype.rf=function(){if(this.a.value==""&&!this.Od){this.Od=true;$(this.a,"input-default");this.a.value=this.Xc}else{Ga(this.a,"input-default");this.Od=false}};Td.prototype.Ec=function(){if(this.Od){this.a.value="";Ga(this.a,"input-default");this.Od=false}};var bm=function(a,b,c){if(a){this.Wb=a;this.Fm=b||a.getAttribute("icon");if(this.Fm){this.fb=Zb("div",{className:this.Wb.className});this.Wb.className="inner";this.Sb=bd("img");this.Sb.src=this.Fm;this.Sb.style.verticalAlign="bottom";this.fb.appendChild(this.Sb);if(this.Sb.readyState!="complete"){this.Sb.style.display="none";p(this.Sb,"load",this.Em,false,this)}if(N){this.Sb.style.verticalAlign="top"}a.parentNode.replaceChild(this.fb,a);this.fb.appendChild(a);this.Wb.style.border="0px";this.Wb.style.padding=
"0px";this.Wb.style.paddingLeft="4px";this.fb.style.verticalAlign="top";this.Wb.style.whiteSpace="nowrap";this.Wb.style.width="80%";var d=la(this.fb).height;if(d>5){var e=N?0:uf(this.fb)-2;this.fb.style.height=d-e+"px"}this.fb.style.overflow="hidden"}this.Xc=c||a.getAttribute("defaultText");if(this.Xc){pm(this.Wb,this.Xc)}}};bm.prototype.Em=function(){this.Sb.style.display="inline"};var fc=function(a){this.a=a;this.Lq=200;this.uq=1000;this.qm=this.ii.bind(this);p(a,["input","propertychange"],this.ii,false,this);p(a,Ec,this.jm,false,this);p(a,Qb,this.hm,false,this);var b=["focus",na,"blur"];p(a,b,this.nm,false,this)};fc.mixin(J.prototype);fc.prototype.jm=function(a){v.setTimeout(this.qm,0);if(!this.dispatchEvent(a)){a.preventDefault()}};fc.prototype.hm=function(a){var b=a.keyCode,c=null;if(b==40){c="DOWN_ARROW"}else if(b==38){c="UP_ARROW"}else if(b==13){c="ENTER"}else if(b==27){c=
"ESCAPE"}else if(b==9){c="TAB"}if(N&&(b==8||b==46)){v.setTimeout(this.qm,0)}if(c){var d=this.dispatchEvent(c);if(!d){a.preventDefault()}}};fc.prototype.nm=function(a){this.dispatchEvent(a)};fc.prototype.ii=function(a){var b=this.a.defaulted?"":this.a.value;if(b!=this.pd){this.th("VALUE",b);if(this.cp){v.clearTimeout(this.cp)}this.cp=v.setTimeout(this.fh.bind(this,"STABLE_VALUE",b),this.Lq);if(this.Jn){v.clearTimeout(this.Jn)}this.Jn=v.setTimeout(this.fh.bind(this,"PAUSED_VALUE",b),this.uq);this.pd=
b}};fc.prototype.fh=function(a,b){var c=this.a.defaulted?"":this.a.value;if(c==b){this.th(a,b)}};fc.prototype.th=function(a,b){var c=new X(a);c.value=b;this.dispatchEvent(c)};var Ih=function(a,b,c){this.a=Ob(a);this.Ca=o(b);var d=this.Ca.g();if(c){this.hr=c;Ca(c.U(),function(g,h){var j=bd("option");j.value=h;j.text=g;this.a.options[this.a.options.length++]=j})}for(var e=0;e<this.a.options.length;e++){var f=this.a.options[e];if(d==f.value){f.selected=true}}q().O(w(this.Mb,this),b);p(this.a,"change",this.sc,false,this);p(this.a,"keyup",this.sc,false,this)};Ih.prototype.Mb=function(){if(!this.Ub){var a=this.Ca.g();this.Tb=true;this.a.value=a?a:"";this.Tb=false}};Ih.prototype.sc=
function(){if(!this.Tb){var a=this.a.value||null;this.Ub=true;Za(this.Ca.ia,a);this.Ub=false}};var im=function(a,b,c){for(var d=a.firstChild;d;d=d.nextSibling){im(d,b,c)}if(a.nodeType==1&&a.getAttribute("maximize")=="true"){if(a.__lastWidth){Mh(a,a.__lastWidth+b)}if(a.__lastHeight){be(a,a.__lastHeight+c)}}},hm=function(a){var b;if(a.nodeType==1&&a.getAttribute("maximize")=="true"&&a.nodeName!="TR"){var c,d;if(a.parentNode.nodeName=="BODY"){var e=Te();c=e.width;d=e.height;a.parentNode.style.overflow="hidden"}else{var f=a.parentNode;c=a.parentNode.offsetWidth-ae(f);if(Ea){c-=ae(a)}var g=a.parentNode.offsetHeight;
if(ua&&a.parentNode.nodeName=="TD"&&a.parentNode.parentNode.__lastHeight){g=a.parentNode.parentNode.__lastHeight}d=g-uf(f)}var h=ae(a);if(a.nodeName!="TABLE"){Mh(a,c)}be(a,d);if(a.offsetHeight>d){be(a,2*d-a.offsetHeight)}if(a.nodeName=="TABLE"){var j=null,k=0,l;for(var l=0;l<a.rows.length;l++){var n=a.rows[l];if(n.getAttribute("maximize")=="true"){j=n;j.style.height="100%"}}if(j){for(var l=0;l<a.rows.length;l++){var n=a.rows[l];if(n!=j){var m=ua&&n.firstChild?n.firstChild.offsetHeight:n.offsetHeight;
k+=m}}be(j,d-k-2);j.style.width=""}}}for(b=a.firstChild;b;b=b.nextSibling){hm(b)}};var vf=function(a,b){this.pn=a;this.nh=b||"$LastMessage";this.nq=o(this.nh+"/Message");this.Uq=o(this.nh+"/Level");q().O(w(this.Gm,this),this.nh+"/...");this.Bb=false};vf.prototype.Gm=function(){if(!this.Bb){v.setTimeout(w(this.Le,this),0)}this.Bb=true};vf.prototype.Le=function(){if(this.Bb){var a=z(this.pn);if(a){var b=this.nq.g();if(b==null){Ga(a,"error");Ga(a,"info");a.innerHTML=""}else{var c=this.Uq.g();if(c=="INFO"){$(a,"info");Ga(a,"error")}else{$(a,"error");Ga(a,"info")}$(a,"hilite");if(b.length<
150){a.innerHTML=Ua(b)}else{var d=Zb("div",{style:"display:none; position:absolute; background-color:white;padding:8px; border:1px dashed #AAA;text-decoration: none"});d.innerHTML=Ua(b).replace(/\n/g,"<br/>");var e=Zb("a",{href:"#"});p(e,na,function(){if(d.style.display=="block"){d.style.display="none"}else{d.style.display="block"}});e.innerHTML="Details";a.innerHTML="";a.appendChild(document.createTextNode("Operation failed. Please try again in a moment. "));a.appendChild(e);a.appendChild(d);var f=
oc(a),g=la(a),h=la(d);Sf(d,f.x+g.width-h.width,f.y+g.height)}v.setTimeout(w(this.Nn,this),1000)}}this.Bb=false}};vf.prototype.Nn=function(){var a=z(this.pn);if(a){Ga(a,"hilite")}};var Ja=function(){this.wk="..";this.sj={};this.Uj={};this.Ed={};this.ne={};this.Yp={};this.Pg={}},oa=function(){if(!tf){tf=new Ja}return tf},tf=null;Ja.prototype.Ro=function(a,b,c){a=new r(a);if(b&&c){if(!this.Ed[b]){this.Ed[b]={}}this.Ed[b][c]=a}else if(b){this.Uj[b]=a}else if(c){this.sj[c]=a}else{this.wk=a}};Ja.prototype.dd=function(a,b){if(this.Ed[a]&&this.Ed[a][b]){return this.Ed[a][b]}else if(this.Uj[a]){return this.Uj[a]}else if(this.sj[b]){return this.sj[b]}else{return this.wk}};Ja.prototype.bo=
function(a){this.ne[a.Qa()]=a};Ja.prototype.Zg=function(a,b,c){var d=this.ne[a];if(d&&d.attach){d.attach(b,c);return true}var e=this.Yp[a];if(e&&e.attach){e.attach(b,c);return true}return false};Ja.prototype.Pd=function(a,b,c){var d=this.ne[a];if(d&&d.Pd){d.Pd(b,c);return true}return false};Ja.prototype.Ob=function(a,b,c){var d=this.ne[a];if(d&&d.Ob){d.Ob(b,c);return true}return false};var mm=0;Ja.prototype.Kk=function(a,b,c,d){if(Wf&&Ea){$(document.body,"background")}var e=this.Lk(a,b),f=this.Sk(a,
c,d);if(!N){e.src=f}var g=new x;g.xc().appendChild(e);g.zj(new ra);g.Ha(true);if(N){e.src=f}this.Pg[a]=g;return e.contentWindow};Ja.prototype.Lk=function(a,b){var c=a+"-iframe",d=z(c);if(!d){d=Zb("iframe",{id:c});Gb(d,"display","block");Gb(d,"backgroundColor","#FFF");Gb(d,"border","1px solid #555");pc(d,b.width,b.height)}return d};Ja.prototype.Sk=function(a,b,c){var d=new r(this.dd()+"/ui/"+a);if(c){var e="UiWidgetCallback"+mm++;v[e]=c;d.s("done",e)}d.s("js","RAW");d.s("pop","TRUE");if(b){Ca(b,function(f,
g){if(f!=null){d.s(g,f)}})}return d};Ja.prototype.fl=function(a){var b=this.Pg[a];if(b){b.dispose();Ga(document.body,"background")}delete this.Pg[a]};Ja.prototype.zm=function(a){var b=this.Pg[a];if(b){b.Ha(false)}};Ja.prototype.wj=function(a,b){var c=this.ne[a],d=z(c.Qa()+"-iframe");if(d&&d.contentWindow.UI_receive){d.contentWindow.UI_receive(b)}};Ja.prototype.Xg=function(a){var b=a||document;for(var c=b.firstChild;c;c=c.nextSibling){this.Xg(c)}if(b.getAttribute){var d=b.getAttribute("gtype");if(d){var e=
{};for(var f=0;f<b.attributes.length;f++){var g=b.attributes[f];e[g.name]=g.value}var h=this.Zg(d,b,e);if(!h){this.Pd(d,b,e)}}}};window.UI_setServerBase=function(a,b,c){oa().Ro(a,b,c)};window.UI_getServerBase=function(a,b){oa().dd(a,b)};window.UI_attachAndDisplayAllWidgets=function(a){oa().Xg(a)};window.UI_attachWidget=function(a,b,c){oa().Zg(a,b,c)};window.UI_displayInline=function(a,b,c){oa().Pd(a,b,c)};window.UI_displayIframe=function(a,b){oa().Ob(a,b)};var za=function(a){this.Ga(a)},uh={},Pd=function(a){var b=uh[a];if(b==null){b=new za(a);uh[a]=b}return b};za.prototype.Ga=function(a){this.ia=a;this.La=[];if(this.Oj("||")){this.uc=this.ml}else if(this.Oj("and")){this.uc=this.gl}else if(this.ff("!=")){this.uc=this.ll}else if(this.ff("=")){this.uc=this.il}else if(this.ff("<")){this.uc=this.kl}else if(this.ff(">")){this.uc=this.jl}else{this.Rp=this.ig(a);this.uc=this.Xl}};za.prototype.ff=function(a){var b=this.ia,c=b.indexOf(a);if(c!=-1){this.rq=a;
this.Pb=this.ig(Ka(b.substring(0,c)));this.ac=this.ig(Ka(b.substring(c+a.length)));return true}else{return false}};za.prototype.Oj=function(a){var b=this.ia,c=b.indexOf(a);if(c!=-1){this.rq=a;this.Pb=Pd(Ka(b.substring(0,c)));this.ac=Pd(Ka(b.substring(c+a.length)));this.La=this.La.concat(this.Pb.T());this.La=this.La.concat(this.ac.T());return true}else{return false}};za.prototype.ig=function(a){var b=a.substring(0,1),c=a.toLowerCase();if("0123456789'\"".indexOf(b)==-1&&c!="true"&&c!="false"){var d=
o(a);this.La.push(d);return d}else{return jm(a)}};za.prototype.Xl=function(a){return this.Rp.g(a)?true:false};za.prototype.il=function(a){return this.Pb.g(a)==this.ac.g(a)};za.prototype.ll=function(a){return this.Pb.g(a)!=this.ac.g(a)};za.prototype.kl=function(a){return this.Pb.g(a)<this.ac.g(a)};za.prototype.jl=function(a){return this.Pb.g(a)>this.ac.g(a)};za.prototype.ml=function(a){return this.Pb.g(a)||this.ac.g(a)};za.prototype.gl=function(a){return this.Pb.g(a)&&this.ac.g(a)};za.prototype.g=
function(a){return this.uc(a)};za.prototype.T=function(){return this.La};var kd=function(a){if(a){this.Ga(a)}},Jh={},jm=function(a){var b=Jh[a];if(b==null){b=new kd(a);Jh[a]=b}return b},Xd=function(a){var b=new kd;b.ta=a;return b};kd.prototype.Ga=function(a){this.ia=a;if(a=="TRUE"||a=="true"){this.ta=true}else if(a=="FALSE"||a=="false"){this.ta=false}else if(ta(a,'"')&&ha(a,'"')){this.ta=a.substring(1,a.length-1)}else if(ta(a,"'")&&ha(a,"'")){this.ta=a.substring(1,a.length-1)}else if(!isNaN(a)){this.ta=Number(a)}else{throw Error("Invalid static expression: "+a);}};kd.prototype.g=
function(a){return this.ta};kd.prototype.T=function(){return[]};var Ha=function(a){this.clear();if(a){this.Jb(a)}};Ha.prototype.e=function(){return this.t};Ha.prototype.U=function(){return pd(this.H)};Ha.prototype.qa=function(){return pd(this.u)};Ha.prototype.fa=function(a){var b=ka(a);return b in this.u};Ha.prototype.Ea=function(){return this.t==0};Ha.prototype.clear=function(){this.u={};this.H={};this.t=0};Ha.prototype.remove=function(a){var b=ka(a);if(he(this.u,b)){delete this.H[b];this.t--;return true}return false};Ha.prototype.get=function(a,b){var c=ka(a);
if(c in this.H){return this.H[c]}return b};Ha.prototype.set=function(a,b){var c=ka(a);if(!(c in this.u)){this.u[c]=a;this.t++}this.H[c]=b};Ha.prototype.Jb=function(a){var b,c;if(a instanceof Ha){b=a.qa();c=a.U()}else{b=Ff(a);c=pd(a)}for(var d=0;d<b.length;d++){this.set(b[d],c[d])}};Ha.prototype.clone=function(){return new Ha(this)};var gc=function(){this.Nb=new Ha;this.Y=null;this.yq=w(this.ao,this)};gc.prototype.$m=function(a,b,c,d){if(!Db(c)){throw Error("not a function: "+c);}if(!a.Of){throw Error("Nodes for markDirty must support getDepth");}b=b||[];var e=b.join(","),f=this.Nb.get(a);if(!f){f={};this.Nb.set(a,f)}if(!f[e]){f[e]=[]}Uk(f[e],c);this.xo()};gc.prototype.Ei=function(a,b){b=b||[];var c=this.Nb.get(a);if(c){if(b.length==0){this.Nb.remove(a)}else{var d=String(b);delete c[d];if(c.length==0){this.Nb.remove(a)}}}};gc.prototype.xo=
function(){if(!this.Y){this.Y=v.setTimeout(this.yq,50)}};gc.prototype.ao=function(){delete this.Y;var a=this.Nb.qa();a.sort(function(d,e){return d.Of()-e.Of()});for(var b=0;b<a.length;b++){var c=a[b];this.$n(c);this.Nb.remove(c)}};gc.prototype.$n=function(a){while(true){var b=this.Nb.get(a),c=this.Hl(b);if(c==null){return}var d=c==""?[]:c.split(","),e=b[c];for(var f=0;f<e.length;f++){var g=e[f];g.call(a,null,"",d)}delete b[c]}};gc.prototype.Hl=function(a){if(a!=null){for(var b in a){return b}}return null};var A=function(a,b,c,d){this.Li=a.nodeName;this.Ce=c;this.Zk=d;this.Wn(a);this.Jo(b);this.va(a)},Kh=Hd("goog.focus.TemplateNode"),sf=null,lm=0,rf=function(){if(!sf){sf=new gc}return sf};A.prototype.Be=true;A.prototype.Of=function(){return this.Zk};A.prototype.dispose=function(){};A.prototype.Wn=function(a){this.ic={};var b=a.attributes;for(var c=0,d;d=b[c];++c){var e=d.nodeName,f=d.nodeValue;if(f!=null){if(e=="if"){this.bg=Pd(f)}else if(e=="context"){this.Fk=o(f)}else if(e=="repeat"){this.ug=o(f)}else if(e==
"id"){this.Ta=f;this.Dm=Zd(this.Ta)}else{var g=ta(e,"on")||e=="g.oncreate";this.ic[e]=Zd(f,g?1:0)}}}};A.prototype.Jo=function(a){this.to=a;this.Hc=this.to;if(this.Fk){this.Hc=this.Yh(this.Fk,true)}if(this.ug){this.Hc=this.Yh(this.ug,true)}};A.prototype.Zh=function(a,b){var c=a.ia,d=b?this.to:this.Hc;if(c.indexOf("$")!=0&&d){c=d.ia+"/"+c}return c};A.prototype.Yh=function(a,b){return o(this.Zh(a,b))};A.prototype.init=function(){if(!this.cq){this.fk();if(!this.Ta){this.Ta="Node"+lm++;this.Dm=Zd(this.Ta)}this.cq=
true}};A.prototype.fk=function(){if(this.bg){var a=this.vf(this.zk);this.te(this.bg,a,true)}if(this.ug){var b=this.vf(this.vp);this.te(this.Hc.ga(),b,true)}var c=this.vf(this.sp);for(var d=0;d<this.Ka.length;d++){var e=this.Ka[d];if(!e.Rb()){this.te(e,c,false)}}for(var f in this.ic){this.te(this.ic[f],c,false)}};A.prototype.vf=function(a){var b=this;return function(c,d,e){rf().$m(b,e,a,c)}};A.prototype.te=function(a,b,c){var d=q();if(a.T){var e=a.T();for(var f=0;f<e.length;f++){var g=this.Zh(e[f],
c);d.Vg(b,g)}}else{var g=a.ia;d.Vg(b,g)}};A.prototype.va=function(a){if(!this.Ka){var b=this.Li=="script"?1:0;this.Ka=[];var c=a.childNodes;for(var d=0,e;e=c[d];++d){if(!(e.nodeType==3&&/^[\n\r\t ]*$/.test(e.nodeValue))){var f=qm().Rk(e,this.Hc,this.Ce,this.Zk+1,b);this.Ka.push(f)}}}};A.prototype.fg=function(){if(this.bg){return this.bg.g(this)}else{return true}};A.prototype.render=function(a,b){if(b&&b.c){b=o(b.v())}if(b){this.setDataContext(b);this.va()}this.wd(a)};A.prototype.Te=function(a){this.I=
a||[];this.rc=this.Mh(this.I)};A.prototype.$c=function(a,b){var c=[];for(var d in this.ic){if(!a||d!="style"){var e=this.ic[d].g(this)||"";c.push({name:d,value:e})}}var f=b||this.be();c.push({name:"id",value:f});if(a){var g=this.ic.style,h=(g?g.g(this)+"; ":"")+"display: none";c.push({name:"style",value:h})}return c};A.prototype.Ye=function(a,b,c){if(this.Be){a.Cd(b,c)}};A.prototype.Ud=function(a,b){if(this.Be){a.Yc(b)}};A.prototype.wd=function(a,b,c){rf().Ei(this,this.I);var d=this.Li,e=this.fg();
if(this.ug&&!b){this.ko(a,c);this.zq=true}else if(e){var f=this.$c();this.Ye(a,d,f);this.mj(a);this.Ud(a,d);this.zq=true}else if(d!="option"){var f=this.$c(true);if(this.Be){a.Cd(d,f);a.Yc(d)}}};A.prototype.ko=function(a,b){var c=o(this.Pf(this.I)).ra(),d=this.Li;for(var e=0;e<c.e();e++){var f=c.o(e);this.I.push(f.n());this.rc=this.Mh(this.I);if(this.fg()){var g=this.$c();this.Ye(a,d,g);this.mj(a);this.Ud(a,d);this.gk()}this.I.pop()}if(!b&&d!="option"){this.pj=this.be()+"-R";var h=this.$c(true,this.pj);
this.Ye(a,d,h);this.Ud(a,d)}};A.prototype.gk=function(){if(!this.Ef){this.Ef={}}var a=this.Ef;for(var b=0;b<this.I.length-1;b++){if(!a[this.I[b]]){a[this.I[b]]={}}a=a[this.I[b]]}a[String(this.I[this.I.length-1])]=this.be()};A.prototype.Mn=function(a){var b=this.fg(),c=a.style.display!="none";if(b!=c){if(b){this.nj(a)}a.style.display=b?"":"none";if(!b){rf().Ei(this,this.I);while(a.lastChild){a.removeChild(a.lastChild)}}}};A.prototype.nj=function(a){var b=new $a(a,"REPLACE");this.sa("render in renderElement");
b.Ze();this.wd(b,true);b.Vd()};A.prototype.mj=function(a){this.va();for(var b=0;b<this.Ka.length;b++){var c=this.Ka[b];if(c.Ke){c.Ke(a,this)}else{c.init();c.Te(this.I);c.render(a)}}};A.prototype.be=function(){var a=this.Dm.g(this);if(this.I){for(var b=0;b<this.I.length;b++){a+="-"+this.I[b]}}return a};A.prototype.Ph=function(){return z(this.be())};A.prototype.Mh=function(a){var b=this.Pf(a),c=o(b).D();return c};A.prototype.Pf=function(a){var b=this.Hc?this.Hc.ia:"";if(a){for(var c=0;c<a.length;c++){b=
b.replace(/\*/,a[c])}}return b};A.prototype.sa=function(a){var b=Me;if(Kh.re(b)){var c=[a,"View=",this.Ce.Ta," Node=",this.Ta];for(var d=1;d<arguments.length;d++){c.push(arguments[d])}Kh.log(b,c.join(", "))}};A.prototype.sp=function(a,b,c){this.Te(c);var d=this.Ph();if(d){this.nj(d)}};A.prototype.vp=function(a,b,c){var d=z(this.pj);if(d){c=c||[];var e=this.Ef;for(var f=0;f<c.length;f++){e=this.Ef[String(c[f])]}for(var g in e){var h=e[g],j=z(h);if(j){j.parentNode.removeChild(j)}}for(var g in e){delete e[g]}this.Te(c);
var k=new $a(z(this.pj),"INSERT_BEFORE");this.sa("render in updateRepeated");k.Ze();this.wd(k,null,true);k.Vd()}};A.prototype.zk=function(a,b,c){this.Te(c);var d=this.Ph();if(d){this.Mn(d)}};A.prototype.Rb=function(){return true};A.prototype.c=function(a){if(a=="$Context"){var b=this.Pf(this.I),c=o(b);if(c.D()){var d=c.D().n()}else if(this.I){d=this.I[this.I.length-1]}if(c&&c.ga()){var e=c.ga().D(),f=e.h().e()-1,g=e.h().indexOf(d)}if(b!=""){b=b+"/"}var h=this.I.length>0?"-"+this.I.join("-"):"",j=
this.Ce?this.Ce.ar:"",k=new C({"@dataName":d,"@cid":h,"@vid":j,"@dataPath":b,"@last":f,"@index":g},"Context");return k}else if(a=="$View"){return this.Ce.Qq}else if(a.indexOf("$")==0){return q().c(a)}else{return this.rc?this.rc.c(a):null}};A.prototype.d=function(a){if(a=="$Context"){return new C({},"Context")}else if(a.indexOf("$")==0){return q().d(a)}else{return this.rc?this.rc.d(a):""}};A.prototype.h=function(a){return this.rc?this.rc.h(a):new Na};A.prototype.Zd=function(){return this};var $d=function(a,
b){this.qr=a;this.hp=Zd(a,b);this.La=this.hp.T()};$d.prototype.Ke=function(a,b){a.chars(Rm(this.hp.g(b)))};$d.prototype.T=function(){return this.La};$d.prototype.Rb=function(){return false};var qf=function(a,b,c,d){A.call(this,a,b,this,d);this.Qq=c;this.ar=km++;this.Be=false};qf.inherits(A);var km=0,lf=function(a,b,c,d){A.call(this,a,b,c,d)};lf.inherits(A);lf.prototype.wd=function(a){var b="span";this.Ye(a,b,this.$c());var c=this.ic.text.g(this);if(c){c=c.replace("\n\r","\n");var d=c.split(/[\n\r]/);
for(var e=0;e<d.length;e++){var f=d[e];if(e>0){a.Cd("br",[]);a.Yc("br")}a.chars(f)}}this.Ud(a,b)};var u=function(){this.tb=oa().dd().toString();this.Zq=false;this.Vq=false;this.ql=null;this.xe=500;this.vh=false;this.Oq=false;this.yn=0;this.Cq=50;this.Aq=[];this.$q=!ta(this.tb.toString(),"http");this.xg=new of;this.nr=new Wd;this.A=new id;C.call(this,this.A,"Contacts");q().$(this);this.Np={};var a=new C(this.Np,"ContactData");q().$(a);this.Qk()};u.inherits(C);var cf=null,ib=function(){if(!cf){cf=new u}return cf};u.prototype.yl=function(a){return this.h().get(a)};u.prototype.Bg=function(a){this.xe=
a};u.prototype.h=function(a){if(!a||a=="*"){return this.A}else if(a.indexOf("*")==-1){var b=this.c(a);if(b){return new P([b])}else{return new Na}}else{throw new Error("Selector not supported yet ("+a+")");}};u.prototype.d=function(a){var b=this.A.get(a);return b==null?null:b.get()};u.prototype.R=function(){return true};u.prototype.zl=function(a,b,c){var d=new r(this.tb+"/data/contacts"),e=d.ee();e.set("thumb",this.Zq);e.set("groups",this.Vq);if(this.ql){e.set("show",this.ql);e.set("enums","true")}e.set("psort",
"Name");e.set("max",a||this.xe);e.set("out","js");e.set("rf",this.Aq.join(","));if(b){e.set("tok",b);if(this.nk){e.set("cl","false")}if(this.vh){e.set("cd","true")}}if(c){e.set("ud","false")}return d};u.prototype.Wo=function(){if(!this.hq){var a=q();new qb("Groups","$ContactReq/Body/Groups","$ContactReq/Body/Groups");new qb("Enums","$ContactReq/Body/Enums","$ContactReq");new qb("AuthToken","$ContactReq/Body/AuthToken","$ContactReq");new qb("ExtraData","$ContactReq/Body/ExtraData","$ContactReq");a.mk("$UserData",
"$ContactReq/Body/UserData");this.ed="$Groups";this.ef=o("$AuthToken/Value");this.je=o(this.ed);a.O(w(this.Wk,this),"$ContactReq");a.O(w(this.un,this),"$ContactAppend");a.O(w(this.cm,this),this.ed);var b=this,c=Pc();c.F("ADD_SELECTED_CONTACTS_TO_GROUP",function(d){b.kk(d.groupId)});c.F("ADD_EMAIL",function(){b.Rc(b.Sa(),"Emails","HOME")});c.F("REMOVE_EMAIL",function(d){b.vd(b.Sa(),"Emails",d.dataName)});c.F("ADD_PHONE",function(){b.Rc(b.Sa(),"Phones","HOME")});c.F("REMOVE_PHONE",function(d){b.vd(b.Sa(),
"Phones",d.dataName)});c.F("ADD_IM",function(){b.Rc(b.Sa(),"Ims")});c.F("REMOVE_IM",function(d){b.vd(b.Sa(),"Ims",d.dataName)});c.F("ADD_ADDRESS",function(){b.Rc(b.Sa(),"Addresses","HOME")});c.F("REMOVE_ADDRESS",function(d){b.vd(b.Sa(),"Addresses",d.dataName)});c.F("ADD_OTHER",function(){b.Rc(b.Sa(),"Others","HOME")});c.F("REMOVE_OTHER",function(d){b.vd(b.Sa(),"Others",d.dataName)});c.F("PICTURE_ERROR",this.om.bind(this));this.hq=true}};u.prototype.ul=function(){if(!this.vk){var a=new r(o("$UserData/PhotoUrl").g()),
b=new r(window.location);a.Ad(b.Wf());this.vk=a.toString()}return this.vk};u.prototype.om=function(a){var b=o("$Contacts/"+a.contactId).D();if(b){b.Mo();var c=q();c.k("$Contacts/"+a.contactId+"/MaybeHasPicture")}};u.prototype.load=function(a,b,c){this.Wo();var d=a||1,e=d==4,f=d==3,g=c&&this.vh;if((f||e)&&this.nk&&!g)return;if(!this.Vp||d!=1){var h=e?"ContactAppend":"ContactReq";if(e){Za("$ContactData/PendingLongRequest",true)}else{Za("$ContactData/Loading",true)}var j=q(),k=this.zl(b,c,e);if(this.$q){k.s("jsx",
"true");this.qj=new Bb(k,h,"&&&START&&&","&&&END&&&")}else{this.qj=new $b(k,h)}j.$(this.qj,true);this.qj.load();this.Vp=true}};u.prototype.Wk=function(a){q().uo(w(this.Um,this,a));var b=ef("$ExtraData/NavLinks",true);if(z("additional-nav-links")&&b){z("additional-nav-links").innerHTML=b.get();var c=ef("$ExtraData/BlInfo",true);z("additional-nav-links").title=c.get()}this.vh=this.Oq&&o("$UserData/ShowDomainContacts").g();Za("$ContactData/Loading",false);var d=o("$ContactReq/Body").D();if(d){d.p("Contacts",
null)}Q.info("About to fire data change");q().k("$Contacts");q().k("$Groups");q().k("$SelectedContactCount");Q.info("Done firing data change");Za("$ContactData/Loaded",true)};u.prototype.un=function(a){var b=o("$ContactAppend/Body/Contacts").g();Q.info("Starting adding additional contacts");if(b){this.A=this.on(this.A,b)}var c=o("$ContactAppend/Body/NameSegments").g();if(c){this.Qj(c)}Q.info("Ending adding additional contacts");q().k("$Contacts");Za("$ContactData/PendingLongRequest",false)};u.prototype.Um=
function(a){this.A.clear();Q.info("Starting contact add");var b=o("$ContactReq/Body/Contacts").g()||[];Q.info("Starting contact updates");for(var c=0,d=b.length;c<d;c++){this.ek(b[c])}var e=o("$ContactReq/Body/NameSegments").g();if(e){this.Qj(e)}Q.info("Ended contact add");this.nk=b.length==Tl("$Groups/^All/Count");this.Ji(a);if(this.Nd){this.Fe(this.Nd,"^Temp")}};u.prototype.Ji=function(a){var b=o(a+"/Body/Groups").D(),c=b?b.Ra():[],d=hb(c,"$Groups");q().$(d)};u.prototype.cm=function(){Q.info("Starting groupsChanged");
this.jr=true;this.ie={};var a=this.je.D().h();for(var b=0;b<a.e();b++){var c=a.o(b);this.ie[c.d("id")]=c}this.qk();Q.info("Ending groupsChanged")};u.prototype.qk=function(){var a=this.A.e();for(var b=0;b<a;b++){var c=this.A.o(b);this.pk(c)}};u.prototype.pk=function(a){var b=a.c("Groups",true).h();for(var c=0;c<b.e();c++){var d=b.o(c);if(d.get()&&d.h().e()>0){var e=this.ie[d.d("id")];if(e){var f=d.c("ref");if(f&&f.d("Name")!=d.d("Name")){d.h().vb("ref",null);f=null}if(!f||!f.get()){d.h().add(ed(e,
"ref"))}}}}};u.prototype.ek=function(a){this.A.update(new ba(a,this))};u.prototype.Dd=function(a){var b=a.Ra?a.Ra():(a.j?a.j:a),c=new ba(b,this),d=b.id,e=false,f=false,g=null,h=this.A.get(d);if(h){f=this.Cb(h,"^Freq");e=this.Cb(h,"^Temp");if(e){this.Oe(h,false)}g=h.d("RosterState")}var j=this.A.e();this.A.update(c);if(e){this.Oe(c,true)}if(f){this.Aj(c,"^Freq",true)}if(g){a.p("RosterState",g)}if(h){if(d==o("$CurrentContactId").g()){v.setTimeout(function(){q().k("$CurrentContact")},5)}}q().k(c.v());
if(this.A.e()!=j){q().k("$Contacts/count()")}return c};u.prototype.Ni=function(a){if(a){var b=a.Qa(),c=a.Qh().join(","),d=a.ya();Pc().fireEvent("CONTACT_CHANGED","id",b,"emails",c,"name",d)}else{Pc().fireEvent("CONTACT_CHANGED")}};u.prototype.An=function(){Pc().fireEvent("GROUP_CHANGED")};u.prototype.xb=function(a){this.yn++;var b=String(-this.yn);a.p("Id",b);a=this.Dd(a);return a};u.prototype.Qk=function(a){var b={},c=new C(b,"$TempGroup");q().$(c)};u.prototype.vo=function(a,b,c){var d=new D,e=Qd({out:"js",
tok:this.ef.D().get(),cid:a,photo:b,crop:c,action:"SET"});p(d,tb,this.aj,false,this);d.send(this.tb+"/update/photos","POST",e)};u.prototype.Ak=function(a){var b=new D,c=Qd({out:"js",tok:this.ef.D().get(),cid:a,action:"SET_EVERGREEN"});p(b,tb,this.aj,false,this);b.send(this.tb+"/update/photos","POST",c)};u.prototype.Yk=function(a){var b=new D,c=Qd({out:"js",tok:this.ef.D().get(),cid:a,action:"DELETE"});p(b,tb,this.Kn,false,this);b.send(this.tb+"/update/photos","POST",c)};var df=function(a){var b=a.indexOf("&&&START&&&")+
"&&&START&&&".length,c=a.lastIndexOf("&&&END&&&");return Uh(a.substring(b,c))};u.prototype.Ld=function(){Vd()};u.prototype.aj=function(a){var b=a.target,c=null;if(b.Xb()){c=df(b.zc())}if(c&&c.Success){Ra().add(sa("PICTURE_ADD_SUCCESS"),"INFO");this.Pj(c.Body.Contact);if(c.Body.CanSuggest){oa().wj("photopicker.PhotoPicker",{type:"SHOW_SUGGEST",imageUrl:c.Body.Contact.Picture})}else{this.Ld()}}else{Ra().add(sa("PICTURE_ADD_ERROR"),Sb);this.Ld()}};u.prototype.Kn=function(a){var b=a.target,c=null;if(b.Xb()){c=
df(b.zc())}if(c&&c.Success){this.Pj(c.Body.Contact);Ra().add(sa("PICTURE_DELETE_SUCCESS"),"INFO")}else{Ra().add(sa("PICTURE_DELETE_ERROR"),Sb)}this.Ld()};u.prototype.Pj=function(a){var b=this.A.get(a.Id);if(b){b.p("Picture",a.Picture);b.hj();var c=q();c.k("$CurrentContact/Picture");c.k("$CurrentContact/ForcedPicture");c.k("$CurrentContact/MaybeHasPicture")}};u.prototype.Co=function(a,b){var c=new D,d=Qd({out:"js",tok:this.ef.D().get(),cid:a,msg:b,action:"SUGGEST"});p(c,tb,this.Ln,false,this);c.send(this.tb+
"/update/photos","POST",d)};u.prototype.Ln=function(a){var b=a.target,c=null;if(b.Xb()){c=df(b.zc())}if(c&&c.Success){Ra().add(sa("PICTURE_SUGGEST_SUCCESS"),"INFO")}else{Ra().add(sa("PICTURE_SUGGEST_ERROR"),Sb)}this.Ld()};var Qd=function(a){var b=new S;for(var c in a){b.add(c,a[c])}return b.toString()};u.prototype.gh=function(a){this.A.removeNode(a);this.xg.p(a,null)};u.prototype.kk=function(a){if(a){var b=this.Il(a),c=new ic(this,b,"ADD");c.send()}};u.prototype.Il=function(a){return o(this.ed+"/"+
a+"/Name").g()};u.prototype.Cb=function(a,b){var c=a.c("Groups",true).c(b);return c!=null&&c.d("id")!=null};u.prototype.Aj=function(a,b,c){var d=this.Cb(a,b);if(c&&!d){var e=a.c("Groups",true).c(b,true);e.p("value",a.pa());e.p("id",b)}else if(!c&&d){a.c("Groups",true).p(b,null)}};u.prototype.Oe=function(a,b){a.p("SelectedCount",this.Cq++);var c=a.n(),d=b!=null?b:!this.Cb(a,"^Temp");this.Aj(a,"^Temp",d);a.$k();var e=!(!this.xg.c(c));if(d!=e){var f=d?ed(a,c):null;this.xg.p(c,f);Za("$SelectedContactCount",
this.xg.h().e())}};u.prototype.Fe=function(a,b){var c={},d=this.h(),e=d.e();for(var f=0;f<e;f++){var g=d.o(f);c[g.pa()]=g}var h=a.split(/[;,]/);for(var f=0;f<h.length;f++){var j=h[f],k=null,l=null,n=j.indexOf("<");if(n==-1){k=Ka(j)}else{l=Ka(j.substring(0,n));k=Ka(j.substring(n+1,j.indexOf(">",n)))}if(k.length>0){var g=c[k];if(!g){var m={Emails:[{Address:k}]},y=hb(m,k);g=this.xb(y)}this.Oe(g,true)}}if(this.Gp){this.Xd(-1,"");this.Ge("")}};u.prototype.Ge=function(a){this.Nd=a};u.prototype.Xd=function(a,
b){var c=this.h().e(),d=false,e="";for(var f=0;f<c;f++){var g=this.h().o(f);if(this.Cb(g,a)){var h=g.d("Name"),j=g.pa(),k=h&&b=="FULL"?h+" <"+j+">":j;if(d){e=e+", "}e=e+k;d=true}}return e};u.prototype.Rc=function(a,b,c){var d=String(Vl++),e=a.c(b);if(!e){e=hb([],b,a);a.p(b,e)}var f=hb({id:d},d,e);e.p(d,f);if(c){f.c("Type",true).p("Id",c)}};u.prototype.vd=function(a,b,c){a.c(b,true).p(c,null)};u.prototype.Sa=function(){return o("$TempContact").D()};u.prototype.on=function(a,b){var c={},d=a.Va;for(var e=
0,f=d.length;e<f;++e){var g=d[e].Qh();if(g){for(var h=0;h<g.length;++h){c[g[h]]=d[e]}}}var j=[];for(var e=0,f=b.length;e<f;++e){var g=b[e].Emails,k=null;if(g){for(var h=0;h<g.length;++h){var l=g[h].Address;if(c[l]){k=c[l];break}}}if(k){if(!k.ya()&&b[e].Name){k.p("Name",b[e].Name)}}else{var n=new ba(b[e],this);j.push(n);if(g){for(var h=0;h<g.length;++h){var l=g[h].Address;c[l]=n}}}}var m=this.nn(d,j),y=new id;for(var e=0;e<m.length;++e){y.update(m[e])}return y};u.prototype.nn=function(a,b){var c=[],
d=0;for(var e=0;e<a.length;e++){var f=a[e];while(d<b.length&&Ll(f,b[d])>0){c.push(b[d++])}c.push(f)}while(d<b.length){c.push(b[d++])}return c};u.prototype.Qj=function(a){for(var b in a){var c=this.A.get(b);c.p("NameSegments",a[b])}};var of=function(){C.call(this,{},"$SelectedContacts");q().$(this);var a=new C(0,"SelectedContactCount");q().$(a)};of.inherits(C);of.prototype.R=function(){return true};var Wd=function(){C.call(this,{},"SelectedGroup");var a=q();a.$(this);a.O(this.tp.bind(this),"$CurrentGroup/id");
this.he=null};Wd.inherits(C);Wd.prototype.R=function(){return true};Wd.prototype.tp=function(){var a=o("$CurrentGroup/id").g()||"^Temp";if(this.he!=a){this.M=new P;var b=ib(),c=b.h();for(var d=0;d<c.e();d++){var e=c.o(d),f=e.d("id");if(b.Cb(e,a)){this.p(f,ed(e,f))}}this.he=a;q().k("$SelectedGroup")}};var id=function(){P.call(this)};id.inherits(P);id.prototype.update=function(a){var b=a.d("Id"),c=this.m[b];if(c){this.m[b]=a;for(var d=0;d<this.Va.length;d++){if(this.Va[d].d("Id")==b){this.Va[d]=a}}}else{this.add(a)}};
id.prototype.clear=function(){P.call(this)};var ba=function(a,b,c){var d=a.Id,e=c||d;a.id=d;if(a.Groups==null){a.Groups=[]}T.call(this,a,e,b)};ba.inherits(T);ba.prototype.d=function(a){if(a=="UserGroupCount"){return this.fi().h().e()}else{this.pi(a);return ba.S.d.call(this,a)}};ba.prototype.c=function(a,b){if(a=="UserGroups"){return this.fi()}else{this.pi(a);return ba.S.c.call(this,a,b)}};ba.prototype.fi=function(){var a=new C({},"UserGroups",this),b=this.c("Groups",true).h();for(var c=0;c<b.e();c++){var d=
b.o(c),e=d.d("id");if(!ta(e,"^")){a.h().add(ed(d,e))}}return a};ba.prototype.pi=function(a){if((a=="ForcedPicture"||a=="MaybeHasPicture")&&!this.__PictureInitialized){this.__PictureInitialized=true;this.hj()}};ba.prototype.hj=function(){var a=this.Xh();if(a){this.p("ForcedPicture",a);this.p("MaybeHasPicture",true)}else{this.p("MaybeHasPicture",false)}};ba.prototype.Mo=function(){this.p("MaybeHasPicture",false)};ba.prototype.Xh=function(a){var b=this.pa();if(b){var c=ib().ul()+encodeURIComponent(b)+
"?rp=1&pld=1&";if(a){c+="t=e&"}c+=Math.floor(Math.random()*2000000);return c}else{return null}};ba.prototype.toString=function(){var a=this.ya(),b=this.pa();return a&&b?a+" <"+b+">":a||b};ba.prototype.ya=function(){return this.d("Name")};ba.prototype.pa=function(){var a=this.c("Emails");if(a){var b=a.h();if(b&&b.e()>0){return b.o(0).d("Address")}}return null};ba.prototype.Qa=function(){return this.d("Id")};ba.prototype.Qh=function(){var a=[],b=this.c("Emails");if(b){var c=b.h();for(var d=0,e=c.e();d<
e;++d){a.push(c.o(d).d("Address"))}}return a};ba.prototype.Cl=function(){return this.ya()||this.pa()||""};ba.prototype.Mm=function(a){return a=="^All"||this.c("Groups").c(a)!=null};ba.prototype.$k=function(){var a=this.c("Emails");if(a){var b=o("$UserData/AspDomain").g(),c=o("$UserData/Email").g();for(var d=0;d<a.e();d++){var e=a.o(d),f=e.d("Address");if(ha(f,"@gmail.com")||ha(f,"@googlemail.com")||b&&ha(f,"@"+b)){e.p("CanChat",true)}if(f==c){this.p("Me",true)}}}};var Ll=function(a,b){var c=Ml(a,
b);if(c!=0){return c}var d=a.ya()||a.pa()||"zz",e=b.ya()||b.pa()||"zz",f=d.toLowerCase(),g=e.toLowerCase();if(f==g){return 0}else if(f<g){return-1}else{return 1}};var Ml=function(a,b){var c=a.d("DomainContact")?1:0,d=b.d("DomainContact")?-1:0;return c+d},jb=function(a,b,c){this.Md=a;this.gp=b;this.Kf=c},Pl=0;jb.prototype.Nf=function(a){var b=new r(ib().tb+"/update/"+a),c=ib().ef.D().get();b.s("token",c);b.s("tok",c);b.s("out","js");return b};jb.prototype.lb=function(){throw new Error("getUpdateUri not implemented in "+
this);};jb.prototype.send=function(){if(this.Sj&&!this.Sj()){if(this.Kf){this.Kf()}return}Za("$ContactData/PendingRequest",true);var a=Pl++;this.qo="ContactUpdate"+a;this.da="$ContactUpdate"+a;var b=this.lb(),c=new Bb(b,this.qo,"&&&START&&&","&&&END&&&",true);this.xq=w(this.Yn,this);var d=q();d.$(c,this.qo);d.O(this.xq,this.da);c.load();this.Zn=false;v.setTimeout(w(this.Zo,this),1000)};jb.prototype.Zo=function(){if(!this.Zn){Za("$ContactData/PendingLongRequest",true)}};jb.prototype.Yn=function(){this.Zn=
true;Za("$ContactData/PendingRequest",false);Za("$ContactData/PendingLongRequest",false);var a=o(this.da+"/Success");if(a.g()){var b;if(this.Fc){b=this.Fc()}if(this.gp){this.gp(b)}var c=o(this.da+"/Messages/*");if(c.ra().e()>0){var d=o(this.da+"/Messages/[0]/Text").g();Ra().add(d,"INFO")}}else{var e=o(this.da+"/TryLogin").g();if(e){alert(sa("INFO_LOGGED_OUT"));return}var f=o(this.da+"/Errors/*");if(f.ra().e()>0){var g=o(this.da+"/Errors/[0]/Message").g(),h=o(this.da+"/Errors/[0]/Text").g(),j=g||h;
Ra().add(sa("SAVE_DATA_ERROR",{msg:j}),Sb)}else{Ra().add(sa("SAVE_DATA_UNKNOWN_ERROR"),Sb)}if(this.Kf){this.Kf()}}};var hc=function(a,b,c,d){this.tf=b;jb.call(this,a,c,d);this.dq=!b.d("Id")};hc.inherits(jb);hc.prototype.lb=function(){var a=this.tf,b=this.Nf("contact"),c=a.d("Id");if(c){b.s("id",c);b.s("action","SET")}else{b.s("action","ADD")}this.dk(b);return b};hc.prototype.dk=function(a){var b=this.tf,c=o("Addresses/*").ra(b);for(var d=0;d<c.e();d++){var e=c.o(d),f=e.d("Source");if(!f){f="STRUCTURED";
e.p("Source",f)}if(f=="UNSTRUCTURED"){e.p("Unstructured",e.d("Street"))}}this.Tg(a,b,["Name","Title","Company","Notes"]);this.hc(a,b,"Emails",["Address","Type/Id","Type/Label"]);this.hc(a,b,"Others",["Value","Type/Id","Type/Label"]);this.hc(a,b,"Phones",["Number","Type/Id","Type/Label"]);this.hc(a,b,"Ims",["Name","Service/Id","Type/Id","Type/Label"]);this.hc(a,b,"Addresses",["Street","City","Region","Postal","Type/Id","Type/Label","Source","Unstructured"]);this.hc(a,b,"Groups",["id","value"]);return a};
hc.prototype.Tg=function(a,b,c,d){var e=d||"";for(var f=0;f<c.length;f++){var g=c[f],h=o(g).g(b);if(!h){h=""}else if(U(h)){h=Ka(h)}a.s((e+g).replace("/","."),h)}};hc.prototype.hc=function(a,b,c,d){var e=o(c).D(b);if(e){for(var f=0;f<e.h().e();f++){var g=e.h().o(f);this.Tg(a,g,d,c+"."+String(f)+".")}}};hc.prototype.Sj=function(){var a=true,b=this.tf.c("Emails").h(),c=0,d=false;for(var e=0;e<b.e();e++){var f=b.o(e).d("Address");if(f&&Ka(f)!=""){c++;if(e==0){d=true}}if(f&&!Sl.test(Ka(f))){Ra().add(sa("ASK_VALID_EMAIL"),
Sb);a=false}}var g=this.tf.d("Name");if(c==0&&(!g||Ka(g)=="")){Ra().add(sa("ASK_NAME_OR_EMAIL"),Sb);a=false}else if(c>0&&!d){Ra().add(sa("ASK_PRIMARY_EMAIL"),Sb);a=false}return a};hc.prototype.Fc=function(){var a=o(this.da+"/Body/Groups/*").ra();if(a.e()>0){var b=new qb("Groups",this.da+"/Body/Groups",this.da+"/Body/Groups");b.Xf()}var c=o(this.da+"/Body/Contact").D(),d=this.Md.Dd(c);this.Md.Ni(d);if(this.dq){q().k("$Contacts")}return d};var gf=function(a,b,c,d){jb.call(this,a,c,d);this.$p=U(b)?[b]:
b};gf.inherits(jb);gf.prototype.lb=function(){var a=this.Nf("contact");a.Ue("ids",this.$p);a.s("action","DELETE");return a};gf.prototype.Fc=function(){var a=o(this.da+"/Body/Contact/*").ra();for(var b=0;b<a.e();b++){var c=a.o(b);this.Md.gh(c.d("Id"))}q().k("$Contacts");var d=new qb("Groups",this.da+"/Body/Groups",this.da+"/Body/Groups");d.Xf();Ra().add("Contact has been deleted.","INFO");this.Md.Ni()};var ic=function(a,b,c,d,e,f){this.Md=a;this.Fp=c||"ADD";this.zn=d;this.he=b;jb.call(this,a,e,f)};
ic.inherits(jb);ic.prototype.ai=function(a,b){var c=this.Nf("groups");c.s("action",this.Fp);if(this.he!=null){c.s("id",this.he)}if(this.zn!=null){c.s("name",this.zn)}if(a.length>0){c.Ue("contactIds",a)}if(b.length>0){c.Ue("newContacts",b)}return c};ic.prototype.lb=function(){var a=o("$Contacts/*").ra(),b=a.e(),c=[],d=[];this.lf={};for(var e=0;e<b;e++){var f=a.o(e);if(ib().Cb(f,"^Temp")){var g=parseInt(f.d("Id")||"",10);if(!isNaN(g)&&g>=0){c.push(g)}else{var h=f.pa();if(h){var j=f.ya()||"";d.push(h+
":"+j);if(!isNaN(g)){this.lf[h]=Number(g)}}}}}return this.ai(c,d)};ic.prototype.Fc=function(){var a=ib(),b=o(this.da+"/Body/Contacts/*").ra();for(var c=0;c<b.e();c++){var d=b.o(c),e=false;if(this.lf){var f=d.Emails||{},g=f[0]||{},h=g.Address;if(h){var j=this.lf[h];if(j){delete this.lf[h];var k=a.yl(j);if(k){e=k.Mm("^Temp");a.gh(j)}}}}var l=a.Dd(d);if(e){a.Oe(l,true)}}q().k("$Contacts");a.Ji(this.da);q().k("$Groups");a.An()};var Hh=function(a,b,c,d,e,f,g){ic.call(this,a,c,d,e,f,g);this.Lp=b};Hh.inherits(ic);
Hh.prototype.lb=function(){return this.ai(this.Lp,[])};var Ul=function(a,b){if(b=="^Temp"){var c=0;for(var d=0;d<a.e();d++){var e=a.o(d);if(ib().Cb(e,b)){c++}}return c}else{var f=o("$Groups/"+b).D();return f?f.d("Count"):0}},Sl=/^[a-z0-9_\.\-\+=%]+\@(([a-z0-9\-])+\.)+([a-z0-9]{2,6})$/i;var Tl=function(a,b){return o(a).g(b)},Za=function(a,b,c){var d=o(a);if(d.ga()){return d.ga().D(c,true).p(d.Zb,b)}else{d.D(c).set(b)}},ef=function(a,b){return o(a).D(b)};var Rl=function(a,b){var c=U(a)?ef(a):a;b=b||0;if(b>20)return"";var d="                 ",e="";e=e+
d.substring(0,b)+c.n()+":";var f=c.h(),g=c.get();if(f.e()==0&&(!g||!g.e)){e=e+g}else{e=e+"{\n";for(var h=0;h<f.e();h++){e=e+Rl(f.o(h),b+1)+"\n"}e=e+d.substring(0,b)+"}"}return e};var Vl=100;var ff=function(a,b){var c=false,d=a.c("Groups");if(d){var e=d.c(b);if(e){c=e.d("id")!=null}}return c},Ql=function(a,b){if(!ff(a,b)){var c=a.c("Groups");if(!c.get()){c.set([])}c.c(b).set({id:b})}};var Qa=function(a,b,c){this.A=new P;C.call(this,this.A,"Contacts");this.Sn=a;this.Rn=b;this.Dq=new pf(this);var d=
q();d.$(this);d.$(this.Dq);d.O(w(this.bk,this,a),b);this.Eq=0;new qb("AuthToken","$ContactReq/Body/AuthToken","$ContactReq");this.ir=o("$AuthToken/Value");this.ed="$Groups";this.je=o(this.ed);d.O(w(this.am,this),this.ed);this.rr=c};Qa.inherits(C);Qa.prototype.bk=function(a,b){if(b==this.Rn){Q.info("Starting contact add");var c=o(a+"/*"),d=c.ra(),e=d.e();for(var f=0;f<e;f++){var g=d.o(f);this.xb(g)}if(this.Nd){this.Fe(this.Nd,"^Temp")}Q.info("About to fire data change");q().k("$Contacts");Q.info("Ended contact add")}};
Qa.prototype.am=function(){this.ie={};var a=this.je.D().h();for(var b=0;b<a.e();b++){var c=a.o(b);this.ie[c.d("id")]=c}this.Rm()};Qa.prototype.h=function(a){if(!a||a=="*"){return this.A}else if(a.indexOf("*")==-1){var b=this.c(a);if(b){return new P([b])}else{return new Na}}else{throw new Error("Selector not supported yet ("+a+")");}};Qa.prototype.d=function(a){var b=this.A.get(a);return b==null?null:b.get()};Qa.prototype.xb=function(a){var b=a.pa();a.j.id=b;a.ub(b);this.A.add(a);a.l=this;q().k(a.v());
return a};Qa.prototype.Dd=function(a,b){var c=null,d=a.pa();a.c("id").set(d);a.ub(d);var e=this.A.Va,f=false;for(var g=0;g<e.length;g++){if(e[g].pa()==d){a.c("SelectedCount").set(e[g].d("SelectedCount"));if(ff(e[g],"^Temp")){Ql(a,"^Temp")}e[g]=a;c=e[g];f=true}}if(f){this.A.m.set(d,a);this.Ai(a);a.l=this;q().k(a.v());return c}else if(b){return this.xb(a)}};Qa.prototype.Fe=function(a,b){var c=a.split(/[;,]/);for(var d=0;d<c.length;d++){var e=c[d],f=null,g=null,h=e.indexOf("<");if(h==-1){f=Ka(e)}else{g=
Ka(e.substring(0,h));f=Ka(e.substring(h+1,e.indexOf(">",h)))}if(f.length>0){var j;if(!this.A.get(f)){var k={Name:g,Email:f,id:f};j=new C(k,k.Email);this.xb(j)}else{j=this.A.get(f)}j.c("SelectedCount").set(this.Eq++);if(b){j.c("Groups");var l=j.c("Groups");if(!l.get()){l.set([])}l.c(b).set(b)}}}if(this.Gp){this.Xd(-1,"");this.Ge("")}};Qa.prototype.Ge=function(a){this.Nd=a};Qa.prototype.Xd=function(a,b){var c=this.A.e(),d=false,e="";for(var f=0;f<c;f++){var g=this.A.o(f);if(ff(g,a)){var h=g.d("Name"),
j=g.pa(),k=h&&b=="FULL"?h+" <"+j+">":j;if(d){e=e+", "}e=e+k;d=true}}return e};Qa.prototype.Tl=function(){this.Bo=new P;var a,b=this.A.e(),c=[],d=[];for(a=0;a<b;a++){var e=this.A.o(a),f=e.d("SelectedCount");if(f!=null){c[Number(f)]=e}else{d.push(e)}}b=c.length;for(a=0;a<b;a++){if(c[a]){this.Bo.add(c[a])}}return this.Bo};Qa.prototype.Rm=function(){var a=this.A.e();for(var b=0;b<a;b++){var c=this.A.o(b);this.Ai(c)}};Qa.prototype.Ai=function(a){if(a.c("Groups").get()==null){a.c("Groups").set([])}var b=
a.c("Groups").h();for(var c=0;c<b.e();c++){var d=b.o(c);if(d.get()&&d.h().e()>0){var e=this.ie[d.d("id")];if(e){var f=d.M.get("ref");if(!f){d.M.add(ed(e,"ref"))}}}}};var pf=function(a){this.Kp=a;C.call(this,null,"SelectedContacts")};pf.inherits(C);pf.prototype.h=function(a){if(!a||a=="*"){return this.Kp.Tl()}else if(a.indexOf("*")==-1){var b=this.c(a);if(b){return new P([b])}else{return new Na}}else{throw new Error("Selector not supported yet ("+a+")");}};var qb=function(a,b,c){C.call(this,null,a);
this.Xa=a;this.Sn=b;this.Rn=c;this.Ka=new P;this.j=[];this.Wm=false;var d=q();d.$(this);d.O(w(this.Xf,this),c)};qb.inherits(C);qb.prototype.Xf=function(){if(!this.Wm){var a=this.Sn,b=o(a+"/*");this.Ka=b.ra();for(var c=0;c<this.Ka.e();c++){this.j.push(this.Ka.o(c))}q().k("$"+this.Xa);this.Wm=true}};qb.prototype.h=function(a){if(!a||a=="*"){return this.Ka}else{throw new Error("Selector not supported yet ("+a+")");}};var jf=function(a,b,c,d,e){this.Bb=true;this.je=o(b+"/*");if(c){this.Mp=o(c+"/*")}this.Iq=
d;this.Jq=e;this.wg=a;this.Mq=this.wg.options.length;var f=q();f.O(w(this.bm,this),b+"/...")};jf.prototype.bm=function(){this.invalidate()};jf.prototype.render=function(){if(this.Bb){var a=this.je.ra(),b=this.Mq,c=this.wg.value;for(var d=0;d<a.e();d++){var e=a.o(d),f=e.d("id");if(!ta(f,"^")||this.Jq){var g=e.d("Name");if(this.Iq){var h=Ul(this.Mp.ra(),f);g=g+" ("+h+")"}var j=bd("option");j.value=f;j.text=g;this.wg.options[b++]=j}}this.wg.value=c;this.Bb=false}};jf.prototype.invalidate=function(){if(!this.Bb){v.setTimeout(w(this.render,
this),5)}this.Bb=true};var ld=function(){this.qn=[];this.od={};q().$(new C(this.od,"LastMessage"))},wf;ld.prototype.add=function(a,b){var c=a.length<150,d=new X("NOTIFY_USER");d.message=a;d.level=b;var e=true;if(c){e=kg().pc(d)}if(e){this.dl(a,b)}};ld.prototype.dl=function(a,b){var c=b||"INFO",d={Message:a,Level:c};this.qn.push(d);this.od.Message=a;this.od.Level=c;q().k("$LastMessage")};ld.prototype.clear=function(){var a=new X("CLEAR_NOTIFICATIONS");if(kg().pc(a)){this.Ck()}};ld.prototype.Ck=function(){var a=
{Message:null};this.qn.push(a);this.od.Message=null;this.od.Level=null;q().$(new C(this.od,"LastMessage"));q().k("$LastMessage")};var Ra=function(){if(wf==null){wf=new ld}return wf},Sb="ERROR";var ce=function(){};ce.prototype.render=function(a,b){};ce.prototype.T=function(){};ce.prototype.Rb=function(){};var Jc=function(){};Jc.inherits(ce);Jc.prototype.render=function(a,b){};Jc.prototype.T=function(){return[]};Jc.prototype.Rb=function(){return true};Jc.prototype.Ke=function(a,b){};var Kc=function(){};Kc.prototype.Cd=function(a,b){};Kc.prototype.Yc=function(a){};Kc.prototype.chars=function(a){};Kc.prototype.Ze=function(){};Kc.prototype.Vd=function(){};var $a=function(a,b){this.a=a;this.Qd=a.ownerDocument;this.pb=[];this.me=false;this.Gg=null;this.bp=null;this.Td=[];this.lg=0;this.sn=b||"SET_CONTENT";this.Mk=this.sn!="SET_CONTENT";this.oo=this.sn=="REPLACE";if(this.Mk){var c=$l[a.nodeName]||"DIV";this.Cm=bd(c);this.nc=this.Cm}else{this.nc=a}this.Td.push(this.nc)};$a.inherits(Kc);var $l={TR:"TABLE",TD:"TR",OPTION:"SELECT"},zh={},yh={},xh={},am={style:true,script:true},Zl={option:true,tr:true,td:true,tbody:true,thead:true},Yl={br:true,img:true};$a.prototype.Cd=
function(a,b){var c,d;if(this.lg==0&&Zl[a]){var e=this.Qd.createElement(a),f=b.length;for(var g=0;g<f;g++){var h=b[g];if(h.name=="id"){c=h.value}else if(h.name=="g.oncreate"){d=h.value;continue}e.setAttribute(h.name,h.value)}if(c&&d){this.Xi.push({id:c,script:d})}this.Td.push(e);this.nc.appendChild(e);this.nc=e;this.wp=true;return}this.lg++;if(am[a]){return this.Un(a,b)}var j=zh[a];if(!j){j="<"+a;zh[a]=j}var k=j;if(b!=null){var f=b.length;for(var g=0;g<f;g++){var h=b[g],l=h.name,n=h.value;if(l=="id"){c=
n}else if(l=="g.oncreate"){d=n;continue}var m=xh[l];if(m==null){m=" "+l+'="';xh[l]=m}k=k+m+Ua(n)+'"'}if(c&&d){this.Xi.push({id:c,script:d})}}k=k+">";this.pb.push(k)};$a.prototype.Yc=function(a){if(this.lg>0){this.lg--}else{if(this.nc.childNodes.length==0){this.nc.innerHTML=this.pb.join("")}this.pb=[];this.Td.pop();this.nc=this.Td[this.Td.length-1];return}if(this.me==true){this.me=false;return}if(!Yl[a]){var b=yh[a];if(b==null){b="</"+a+">";yh[a]=b}this.pb.push(b)}if(this.pb.length>1000){var c=this.pb.join("");
this.pb=[c]}};$a.prototype.chars=function(a){if(this.me==true){return this.ap(a)}this.pb.push(Ua(a))};$a.prototype.Ze=function(){this.pb=[];this.yo=[];this.Xi=[]};$a.prototype.Vd=function(){var a=this.pb.join("");if(this.Mk){var b=this.Cm;if(!this.wp){b.innerHTML=a}if(b.childNodes.length==1&&this.oo){this.a.parentNode.replaceChild(b.childNodes[0],this.a)}else{if(this.a.parentNode.nodeName=="SELECT"){var c=this.a.parentNode.value}var d;while(d=b.childNodes[0]){this.a.parentNode.insertBefore(d,this.a)}if(this.oo){this.a.parentNode.removeChild(this.a)}if(c!=
null){this.a.parentNode.value=c}}}else{if(!this.wp){this.a.innerHTML=a}}Ca(this.yo,function(e){eval(e)});Ca(this.Xi,function(e){var f=Ob(e.id);(new Function(e.script)).call(f)})};$a.prototype.Un=function(a,b){if(a=="style"){var c;for(var d=0;d<b.length;d++){if(b[d].name=="id")c=b[d].value}this.Gg="style";this.bp=c+"_ss";this.me=true}else if(a=="script"){this.Gg="script";this.me=true}else{throw Error("No handler for "+a);}};$a.prototype.ap=function(a){if(this.Gg=="style"){this.lk(this.bp,a)}else if(this.Gg==
"script"){this.yo.push(a)}};$a.prototype.Pk=function(a){var b=null,c=z(a);if(c==null){c=this.Qd.createElement("style");c.setAttribute("type","text/css");c.setAttribute("id",a);this.Qd.body.appendChild(c)}for(var d=0;d<this.Qd.styleSheets.length;d++){var e=this.Qd.styleSheets[d],f=e.owningElement;if(f==null){f=e.ownerNode}if(f.id==a){b=e}}return b};$a.prototype.lk=function(a,b){if(z(a)){return}var c=this.Pk(a),d=b.split("}");if(c.insertRule){for(var e=0;e<d.length;e++){if(d[e]!=""){c.insertRule(d[e]+
"}",0)}}}else if(c.cssText!=null){for(var e=0;e<d.length;e++){if(d[e]!=""){var f=d[e].split("{"),g=f[0],h=f[1],j=g.split(",");for(var k=0;k<j.length;k++){if(j[k]!=""){c.addRule(j[k],h)}}}}}};var Yd=function(a,b){this.Ga(a,b)},Zd=function(a,b){if(a.indexOf("{{")==-1||a.indexOf("function(")!=-1){return Xd(a)}else if(ta(a,"{{")&&ha(a,"}}")){var c=o(a.substring(2,a.length-2));if(b==1){c=new R(c.Qb());c.Nm=true}c.T=function(){return[c]};return c}else{return new Yd(a,b)}};Yd.prototype.Ga=function(a,b){this.ia=a;this.ha=[];this.La=[];if(this.ia.indexOf("{{")==-1){this.ha.push(Xd(this.ia))}else{var c=this.ia.split("{{");for(var d=0;d<c.length;d++){var e=c[d];if(e.length>0){var f=e.indexOf("}}");
if(f==-1){this.ha.push(Xd(e))}else{var g=e.substring(0,f),h;if(b==1){h=new R(g);h.Nm=true}else{h=o(g)}this.ha.push(h);this.La.push(h);if(f<e.length-1){var j=e.substring(f+2);this.ha.push(Xd(j))}}}}}};Yd.prototype.g=function(a){var b=this.ha.length,c=[];for(var d=0;d<b;d++){var e=this.ha[d].g(a);if(this.ha[d].Nm){if(e==null){e="null"}else if(U(e)){e=Tm(e)}}c.push(e==null?"":e)}return c.join("")};Yd.prototype.T=function(){return this.La};var xf=function(){var a={};Ca(rm,function(b){a[b]=true});this.Zp=a;this.sr={};this.xp={};this.Vk={}},yf,qm=function(){if(yf==null){yf=new xf}return yf};xf.prototype.Rk=function(a,b,c,d,e){d=d||0;var f=a.nodeName;if(f=="#text"){return new $d(a.nodeValue,e)}else if(f=="#comment"){return new Jc}else if(f=="MultilineText"){return new lf(a,b,c,d)}else if(this.Zp[f]){return new A(a,b,c,d)}else if(f=="View"){return new qf(a,b,null,d)}else if(this.xp[f]){return new qf(this.xp[f],b,this.Ok(a),d)}else if(this.Vk[f]){return this.Vk[f](a,
b,c)}else{throw Error("No view exists matching name: "+f);}};xf.prototype.Ok=function(a){var b={},c=a.attributes.length;for(var d=0;d<c;++d){var e=a.attributes[d];b["@"+e.nodeName]=e.nodeValue}return hb(b,"$View")};var rm=["p","div","b","i","br","ul","li","a","hr","span","img","table","tr","select","option","td","th","tbody","#text","h1","h2","h3","dl","dt","input","iframe","form","textarea","col","#comment","strike","button","script","style","thead","link","em"];var kf="/ui/",Ah=function(a){kf=a};v.HtmlUtil_setServerBase=Ah;var Nl=function(a){var b=new r(kf+"ContactManager"),c=a||"THREE";b.s("style",c);b.s("js","RAW");b.s("pop","TRUE");return b},Ol=function(a,b){var c=b=="TWO"?502:750,d=new mc(0,0,c,500),e="toolbar=no,location=no,menubar=no,scrollbars=no,resizable=yes,status=no,width="+d.width+",height="+d.height+",top="+d.top+",left="+d.left,f=Nl(b).toString();window.open(f,"_manager",e)};om("goog.focus.ContactManagerLauncher.popManager",Ol);var Ia=function(a,b){this.a=a;this.Ap=b;this.bj=b.exists=="true";this.Wd=[];this.jf(a);if(!this.bj){this.kh("Add a picture",false,true)}};Ia.prototype.dispose=function(){for(var a=0;a<this.Wd.length;a++){pb(this.Wd[a])}if(this.Gb&&this.Gb.parentNode){this.Gb.parentNode.removeChild(this.Gb)}if(this.cb&&this.Gb.cb){this.cb.parentNode.removeChild(this.Gb)}};Ia.prototype.jf=function(a){this.Wd.push(p(a,Gc,this.Fn,false,this));this.Wd.push(p(a,Nd,this.En,false,this));this.Wd.push(p(a,na,this.Hn,false,
this))};Ia.prototype.fb=null;Ia.prototype.le=null;Ia.prototype.Fn=function(a){if(this.cb){this.eh();return}this.cb=this.Ik();if(this.bj){this.kh("Change picture",true)}};Ia.prototype.Ik=function(){var a=la(this.a);a.width-=ae(this.a);a.height-=uf(this.a);if(N){a.width+=4;a.height+=4}a.width+=2;a.height+=2;var b=Zb("div");this.jf(b);b.style.position="absolute";b.style.zIndex=20;pc(b,a);b.style.border="2px solid blue";var c=oc(this.a);c.x-=3;c.y-=3;b=this.a.parentNode.insertBefore(b,this.a);ke(b,c);
return b};Ia.prototype.kh=function(a,b,c){if(!this.a.parentNode){return}var d=Zb("div");this.jf(d);var e=b?"background-color: white;":"";d.innerHTML='<div style="text-align: center; '+e+'font-family: Arial; font-size: 12px; padding: 2px"><a href="javascript:void(0)">'+a+"</a></div>";d.style.position="relative";d.style.zIndex=20;ol(d,this.a);var f=(this.a.offsetHeight+d.offsetHeight)/2;d.style.top="-"+f+"px";this.Gb=d;this.er=c};Ia.prototype.En=function(a){if(this.cb){var b=a.relatedTarget;if(!b||
b!=this.a&&!Re(this.cb,b)){this.Yf(true)}}};Ia.prototype.Ol=function(a){var b={dn:a.Cl()},c=a.Xh(true);if(c){b.eUrl=c}Bh(b);return b};var Bh=function(a){var b=o("$UserData/IsPicasaUser").g(),c=o("$UserData/Email").g(),d=b&&c&&(ha(c,"gmail.com")||ha(c,"googlemail.com"));a.userId=d?c.substring(0,c.indexOf("@")):null;a.urlEnabled=1;a.extraUploadParams="out=hjs";a.suppressHide="1"};Ia.prototype.Hn=function(){this.Yf(false);var a=o("$Contacts/"+this.Ap.contactid).D(),b=this.Ol(a);oa().Ob("photopicker.PhotoPicker",
b,this.ke.bind(this))};Ia.prototype.Yf=function(a){this.eh();if(a){var b=w(this.Yf,this,false);this.le=v.setTimeout(b,20);return}if(this.a&&this.cb){this.cb.parentNode.removeChild(this.cb);this.cb=null;if(this.bj){this.Gb.parentNode.removeChild(this.Gb);this.Gb=null}}};Ia.prototype.eh=function(){if(this.le){v.clearTimeout(this.le);this.le=null}};Ia.prototype.ke=function(a){var b=this.Ap.contactid,c=a.type;if(c=="PHOTO_PICKED"){if(a.evergreen){ib().Ak(b)}else if(a.noPhoto){ib().Yk(b)}else{ib().vo(b,
a.imageUrl,a.cropString)}}else if(c=="SUGGEST_DONE"&&a.suggestMessage){ib().Co(b,a.suggestMessage)}else{Vd()}};var Ud=function(){},Ch,jd={};Ud.prototype.Qa=function(){return"photopicker.PhotoPicker"};var dm=function(){if(!Ch){var a=new Ud;oa().bo(a);Ch=true}},Vd=function(){oa().zm("photopicker.PhotoPicker");oa().wj("photopicker.PhotoPicker",{type:"CLOSE_NO_REMOVE"});oa().fl("photopicker.PhotoPicker");Pc().fireEvent("ENABLE_WINDOW")};Ud.prototype.attach=function(a,b){for(var c in jd){var d=jd[c];if(!d.a||!Re(document,d.a)){d.dispose();delete jd[c]}}if(a&&!jd[a.id]){var e=new Ia(a,b);jd[a.id]=e}};Ud.prototype.Ob=
function(a,b){var c=new pa(545,332);if(N){c.height-=16}var d=oa().Kk(this.Qa(),c,a,b);Pc().fireEvent("DISABLE_WINDOW")};var mf,nf,Dh=function(a,b){var c=307,d;if(a){d=oc(a);var e=la(a);d.y+=e.height}else{d=new Eb(0,0)}var f=e.width>c?e.width:c,g=554,h=313,j=600;if(b){d.x+=b.screenX-b.clientX;d.y+=b.screenY-b.clientY}if(d.x+h>screen.width){d.x=screen.width-h}if(d.y+j>screen.height){d.y=screen.height-j}var k=new mc(d.x,d.y,f,g);return k},Gh=function(a,b){var c=new r(kf.replace(/ui\/?$/,""));em(c,a,b)},em=function(a,b,c,d){var e;if(b){b=z(b);var e=b.getAttribute("id")}else{e=null}var f;if(!ua&&b){f=Ld(mb(b))||window}else{f=
window}var g=Dh(b,c),h="toolbar=no,location=no,menubar=no,scrollbars=no,resizable=yes,status=no,width="+g.width+",height="+g.height+",top="+g.top+",left="+g.left,j=Eh(a,e,d);f.open(j.toString(),"_picker",h)},Eh=function(a,b,c){var d=a.resolve(new r("ui/ContactPicker"));if(b){d.s("inputId",b)}if(c){if(c.serviceName){d.s("service",c.serviceName)}if(c.hl){d.s("hl",c.hl)}}return d},fm=function(a,b,c){if(mf){Fh()}var d=Dh(a,null),e=Eh(a,c);window.iframeDone=Fh;e.s("done","iframeDone");var f=z("picker-iframe-div");
if(f==null){var f=Zb("div",{id:"picker-iframe-div",style:"position: absolute; background-color; #FFF",zIndex:10});document.body.appendChild(f);f.innerHTML='<iframe id="picker-iframe" style="display:none; background-color; #FFF; border: 0"></iframe>'}var g=z("picker-iframe");g.style.display="block";ke(f,d.left,d.top);pc(g,d.width,d.height);g.src=e;nf=f;mf=g},Fh=function(){nb(nf);nf=null;mf=null};ec("goog.focus.PickerLauncher.popPicker",Gh);ec("goog.focus.PickerLauncher.popIframe",fm);var Rb=function(a,b,c,d,e,f){this.Pp=b;this.vq=c;this.tb=a;this.Jp=d;this.Gq=!(!e);this.ip=f||""};Rb.prototype.Qm=function(){if(!o("$UserData").D()){var a=new D;p(a,tb,this.fm,false,this);a.send(this.tb+"/gastatus?out=js","GET")}else{this.xi()}};Rb.prototype.fm=function(a){var b=a.target;if(b.Xb()){var c=this.$i(b.zc());if(c.Body){var d=c.Body.UserData,e=new T(d,"UserData");q().$(e)}}this.xi()};Rb.prototype.xi=function(){var a={};a.dn=this.Pp;a.profileMode="1";a.eUrl=this.vq;if(this.ip){a.theme=this.ip}Bh(a);
oa().Ob("photopicker.PhotoPicker",a,this.ke.bind(this))};Rb.prototype.ke=function(a){if(a.type=="PHOTO_PICKED"){this.Do(a)}else{Vd()}};Rb.prototype.Do=function(a){var b=new S;b.add("out","js");b.add("cid","p");b.add("tok",a.tok);if(a.evergreen){return}else if(a.noPhoto){b.add("action","DELETE")}else{b.add("action","SET");b.add("crop",a.cropString);b.add("photo",a.imageUrl)}if(this.Gq){b.add("p","true")}var c=new D;p(c,tb,this.pm,false,this);c.send(this.tb+"/update/photos","POST",b.toString())};Rb.prototype.pm=
function(a){Vd();var b=a.target,c=null;if(b.Xb()){c=this.$i(b.zc())}var d={};if(c&&c.Success){d.success=true;if(c.Body){d.newUrl=c.Body.NewUrl;d.newUrlF=c.Body.NewUrlF}}else{d.success=false}this.Jp(d)};Rb.prototype.$i=function(a){var b=a.indexOf("&&&START&&&")+"&&&START&&&".length,c=a.lastIndexOf("&&&END&&&");return Uh(a.substring(b,c))};var gm=function(a,b,c,d,e){dm();var f=new Rb(oa().dd(),a,b,c,d,e);f.Qm()};window.launchProfilePhotoPicker=gm;var Da=function(a,b,c){J.call(this);this.i=c||Nb();this.a=a;this.Fa=[];this.Pq=b?b:0;this.Lb()};Da.inherits(J);Da.prototype.Lb=function(){this.a.className="goog-tabpane";var a=this.wl();this.oa=this.i.r("ul",{className:"goog-tabpane-tabs",tabIndex:"0"});var b=this.i.r("div",{style:"clear: both; height: 0px; overflow: hidden"});this.xa=this.i.r("div",{className:"goog-tabpane-cont"});this.a.appendChild(this.xa);switch(this.Pq){case 0:this.a.insertBefore(this.oa,this.xa);this.a.insertBefore(b,this.xa);
$(this.a,"goog-tabpane-top");break;case 1:this.a.appendChild(this.oa);this.a.appendChild(b);$(this.a,"goog-tabpane-bottom");break;case 2:this.a.insertBefore(this.oa,this.xa);$(this.a,"goog-tabpane-left");break;case 3:this.a.insertBefore(this.oa,this.xa);$(this.a,"goog-tabpane-right");break;default:throw Error("Invalid tab location");break}this.oa.tabIndex=0;p(this.oa,na,this.Pi,false,this);p(this.oa,Qb,this.Qi,false,this);this.Nk(a)};Da.prototype.dispose=function(){if(!this.ka()){Da.S.dispose.call(this);
ya(this.oa,na,this.Pi,false,this);ya(this.oa,Qb,this.Qi,false,this);this.a=null;this.oa=null;this.xa=null}};Da.prototype.wl=function(){var a=[],b=ih(this.a);while(b){a.push(b);b=jh(b.nextSibling,true)}return a};Da.prototype.Nk=function(a){for(var b,c=0;b=a[c];c++){this.jk(new qc(b))}};Da.prototype.jk=function(a,b){if(a.l&&a.l!=this){a.l.jo(a)}var c=this.Fa.length;if(ga(b)&&b!=c){c=b;this.Fa.splice(c,0,a);this.oa.insertBefore(a.Df,this.oa.childNodes[c])}else{this.Fa.push(a);this.oa.appendChild(a.Df)}a.Oc(this,
c);if(!this.sb){this.sb=a;this.dispatchEvent(new Vf("change",this,this.sb))}this.xa.appendChild(a.xa);a.Cg(a==this.sb);for(var d,e=c+1;d=this.Fa[e];e++){d.cg=e}};Da.prototype.jo=function(a){if(Nc(a)){a=this.Fa[a]}this.Fa.splice(a.cg,1);a.Oc(null);nb(a.Df);nb(a.xa);for(var b,c=0;b=this.Fa[c];c++){b.Oc(this,c)}};Da.prototype.Fj=function(a){if(!this.sb||a!=this.sb){this.sb.Cg(false);a.Cg(true);this.sb=a;this.dispatchEvent(new Vf("change",this,this.sb))}};Da.prototype.Bd=function(a){if(a>=0&&a<this.Fa.length){this.Fj(this.Fa[a])}};
Da.prototype.xc=function(){return this.xa||null};Da.prototype.yc=function(){return this.a||null};Da.prototype.Pi=function(a){var b=a.target;while(b!=this.oa){if(b.tagName=="LI"){var c;for(c=0;b=b.previousSibling;c++){}this.Bd(c);break}b=b.parentNode}a.preventDefault()};Da.prototype.Qi=function(a){switch(a.keyCode){case 37:var b=this.sb.Th()-1;this.Bd(b<0?this.Fa.length-1:b);break;case 39:var b=this.sb.Th()+1;this.Bd(b>=this.Fa.length?0:b);break;case 36:this.Bd(0);break;case 35:this.Bd(this.Fa.length-
1);break}};var qc=function(a,b,c){var d;if(U(a)&&!ga(b)){d=a;a=null}else if(b){d=b}else if(a){var e=ih(a);if(e){d=Kd(e);e.parentNode.removeChild(e)}}this.i=c||Nb();this.xa=a||document.createElement("div");this.Df=this.i.r("li",null,d);this.l=null;this.cg=null};qc.prototype.xc=function(){return this.xa};qc.prototype.Th=function(){return this.cg};qc.prototype.ga=function(){return this.l};qc.prototype.select=function(){if(this.l){this.l.Fj(this)}};qc.prototype.Cg=function(a){this.xa.style.display=a?
"":"none";this.Df.className=a?"goog-tabpane-tab-selected":"goog-tabpane-tab"};qc.prototype.Oc=function(a,b){this.l=a;this.cg=b};var Vf=function(a,b,c){X.call(this,a,b);this.page=c};Vf.inherits(X);var Kk=this;if(!Function.prototype.apply){Function.prototype.apply=function(a,b){var c=[],d,e;if(!a)a=Kk;var f=b||[];for(var g=0;g<f.length;g++){c[g]="args["+g+"]"}e="oScope.__applyTemp__.peek()("+c.join(",")+");";if(!a.__applyTemp__){a.__applyTemp__=[]}a.__applyTemp__.push(this);d=eval(e);a.__applyTemp__.pop();return d}}if(!Array.prototype.push){Array.prototype.push=function(a){for(var b=0;b<arguments.length;b++){this[this.length]=arguments[b]}return this.length}}if(!Array.prototype.pop){Array.prototype.pop=
function(){if(!this.length){return}var a=this[this.length-1];this.length--;return a}}Array.prototype.peek=function(){return this[this.length-1]};if(!Array.prototype.shift){Array.prototype.shift=function(){if(this.length==0){return}var a=this[0];for(var b=0;b<this.length-1;b++){this[b]=this[b+1]}this.length--;return a}}if(!Array.prototype.unshift){Array.prototype.unshift=function(a){var b=arguments.length;for(var c=this.length-1;c>=0;c--){this[c+b]=this[c]}for(var d=0;d<b;d++){this[d]=arguments[d]}return this.length}}if(!Array.prototype.forEach){Array.prototype.forEach=
function(a,b){for(var c=0;c<this.length;c++){a.call(b,this[c],c,this)}}}function Pj(a,b,c){var d=a.$g||[];d=d.concat(Array.prototype.slice.call(arguments,2));if(typeof a.nf!="undefined"){b=a.nf}if(typeof a.mf!="undefined"){a=a.mf}var e=function(){var f=d.concat(Array.prototype.slice.call(arguments));return a.apply(b,f)};e.$g=d;e.nf=b;e.mf=a;return e}Function.prototype.bind=function(a){return Pj.apply(null,[this,a].concat(Array.prototype.slice.call(arguments,1)))};Function.prototype.inherits=function(a){var b=
function(){};b.prototype=a.prototype;this.S=a.prototype;this.prototype=new b};Function.prototype.mixin=function(a){for(var b in a){this.prototype[b]=a[b]}if(typeof a.toString=="function"&&a.toString!=this.prototype.toString){this.prototype.toString=a.toString}};function og(a){var b=a.match(/^(?:([^:\/?#]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/?#:@]*)(?::([0-9]+))?)?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/);if(!b){return null}return new uc(tc(b[1]),tc(b[2]),tc(b[3]),tc(b[4]),tc(b[5]),tc(b[6]),tc(b[7]))}function Cp(a,b){if("string"==typeof a){return encodeURI(a).replace(b,Dp)}return null}function Dp(a){var b=a.charCodeAt(0);return"%"+"0123456789ABCDEF".charAt(b>>4&15)+"0123456789ABCDEF".charAt(b&15)}function uc(a,b,c,d,e,f,g){this.Aa=a;this.Tk=b;this.gb=c;this.qb=d;this.Za=
e;this.Je=f;this.ib=g;this.De=null}uc.prototype.toString=function(){var a=[];if(null!==this.Aa){a.push(this.Aa,":")}if(null!==this.gb){a.push("//");if(null!==this.Tk){a.push(this.Tk,"@")}a.push(this.gb);if(null!==this.qb){a.push(":",this.qb.toString())}}if(null!==this.Za){a.push(this.Za)}if(null!==this.Je){a.push("?",this.Je)}if(null!==this.ib){a.push("#",this.ib)}return a.join("")};uc.prototype.$j=function(a){this.Za=Cp(a,/[\#\?]/g);return this};uc.prototype.Zj=function(a){this.De=null;var b=[],
c="";for(var d=0;d<a.length;){var e=a[d++],f=a[d++];b.push(c,encodeURIComponent(e.toString()));c="&";if(f){b.push("=",encodeURIComponent(f.toString()))}}this.Je=b.join("");return this};uc.prototype.Yj=function(){if(!this.De){if(!this.Je){this.De=[]}else{var a=this.Je.split(/[&\?]/),b=[];for(var c=0;c<a.length;++c){var d=a[c].match(/^([^=]*)(?:=(.*))?$/);b.push(gj(d[1]),gj(d[2]||""))}this.De=b}}};uc.prototype.$a=function(a,b){if(typeof b==="string"){b=[b]}this.Yj();var c=0,d=this.De,e=[];for(var f=
0;f<d.length;f+=2){if(a===d[f]){if(c<b.length){e.push(a,b[c++])}}else{e.push(d[f],d[f+1])}}while(c<b.length){e.push(a,b[c++])}this.Zj(e);return this};function gj(a){return decodeURIComponent(a).replace(/\+/g," ")}function tc(a){return"string"==typeof a&&a.length>0?a:null};var Wc=[];Wc.HIDE_TIMEOUT=100;Wc.SHOW_TIMEOUT=100;var ze="menu-normalsb",Cd="menu-shim";function yj(){var a;if(self.innerWidth){a=self.innerWidth}else if(document.documentElement&&document.documentElement.clientWidth){a=document.documentElement.clientWidth}else if(document.body){a=document.body.clientWidth}return a}function xj(a,b){var c=b.id;if(!c){c=a.currentTarget.id}var d=window.setTimeout(sg(c),Wc.HIDE_TIMEOUT),e=document.getElementById(c);e.VideoTabHideTimer=d}function tg(a){var b=document.getElementById(a);
if(b===null){return}if(b.bt!==null){b.bt.className=ze}if(b.style===null){return}b.style.display="none";var c=document.getElementById(Cd);if(c!==null&&c.style!==null){c.style.display="none"}}function Dj(a){var b=document.getElementById(a);if(b==null){return}if(b.bt!=null){if(b.bt.className==ze){b.bt.className="menu-selectsb"}else{b.bt.className=ze}}if(b.style!==null){if(b.style.display=="none"){b.style.display="block";var c=document.getElementById(Cd);if(c!==null){c.style.display="block"}}else{b.style.display=
"none";var c=document.getElementById(Cd);if(c!==null&&c.style!==null){c.style.display="none"}}}}function zj(a){window.clearTimeout(a.VideoTabHideTimer);a.VideoTabHideTimer=null}function wj(a,b,c){var d=a.VideoTabPopupTimer;if(d!==null){window.clearTimeout(d);a.VideoTabPopupTimer=null}var e=window.setTimeout(sg(a.id),Wc.HIDE_TIMEOUT);a.VideoTabHideTimer=e}function Cj(a,b,c){if(a.VideoTabHideTimer){window.clearTimeout(a.VideoTabHideTimer);a.VideoTabHideTimer=null}var d=window.setTimeout(uj(a.id),Wc.SHOW_TIMEOUT);
a.VideoTabPopupTimer=d;a.bt=b}function Bj(a){if(a===null||a.style===null){return}var b=a.bt,c=jj(b),d=kj(b)+b.offsetHeight-1,e=c.toString()+"px",f=d.toString()+"px",g=yj();a.style.position="absolute";a.style.left="-500px";a.style.top=f;a.style.zIndex="2000";a.style.display="block";var h=c+a.offsetWidth;if(h<=g-5){a.style.left=e}else{var j=g-5-a.offsetWidth;a.style.left=j.toString()+"px"}b.className="menu-selectsb";var k=document.getElementById(Cd);if(k!==null&&k.style!==null){k.style.top=a.style.top;
k.style.left=a.style.left;k.style.width=a.offsetWidth.toString()+"px";k.style.height=a.offsetHeight.toString()+"px";k.style.zIndex="1999";k.style.backgroundColor="#ffffff";k.style.display="block"}}function Aj(a){if(a===null){return}a.className="menu-menuitem-sel"}function vj(a){if(a===null){return}a.className="menu-menuitem"}function sg(a){if(!a){return}return function(){tg(a)}}function uj(a){if(!a){return}return function(){Bj(document.getElementById(a))}};function oj(a,b){if(a=="goFullscreen"||a=="donePlaying"){if(this[a]){var c=eval("["+b+"]");this[a].apply(this,c)}}else if(a=="clickVideo"){bk()}}function bk(){var a=i("thumbflashpreview");if(!a||typeof a=="undefined"){return}var b=a.parentNode.parentNode.childNodes;mp();for(var c=0;c<b.length;c++){if(b[c].nodeName=="A"){var d=b[c].href;if(d.indexOf("http://")==0){var e=b[c].target;if(e==""){e="_self"}window.open(d,e);return}}}}function cp(a,b){var c=new Date;c.setYear(c.getFullYear()+1);document.cookie=
a+"="+b+"; expires="+c.toGMTString()}function mg(a,b){var c=new Date,d=fb(VP_vpref),e="";c.setSeconds(c.getSeconds()+VP_vprefAge);if(d){var f=d.split(/\s*:\s*/);for(var g=0;g<f.length;g++){var h=f[g].split("=");if(a!=h[0]){e+=h[0]+"="+h[1]+":"}}}e+=a+"="+b;document.cookie=VP_vpref+"="+e+"; expires="+c.toGMTString()}function Sc(a,b,c,d){var e=a+"="+encodeURIComponent(b);if(c){e+="; domain="+c}if(d){e+="; path="+d}document.cookie=e}function sc(a,b,c,d){var e=new Date;e.setYear(e.getFullYear()+1);var f=
a+"="+encodeURIComponent(b)+"; expires="+e.toGMTString();if(c){f+="; domain="+c}if(d){f+="; path="+d}document.cookie=f}function Xj(a,b){var c=new Date;c.setYear(c.getFullYear()-1);var d=a+"=0; expires="+c.toGMTString();if(b){d+="; domain="+b}document.cookie=d}function fb(a){var b=document.cookie.split(/\s*;\s*/),c=null;for(var d=0;d<b.length;d++){var e=b[d].split("="),f=b[d].indexOf("=");if(a==b[d].substring(0,f)){c=decodeURIComponent(b[d].substring(f+1,b[d].length));break}}return c}function bp(a,
b,c){for(var d=0;d<a.childNodes.length;d++){if(a.childNodes[d].nodeName==b){dp(a.childNodes[d],c)}}}function mp(){var a=i("thumbflashpreview");if(a&&typeof a!="undefined"){var b=a.parentNode.parentNode;Ao(a.parentNode);bp(b,"A",true)}}var sd=navigator.appVersion.indexOf("MSIE")!=-1?true:false,bg=navigator.appVersion.toLowerCase().indexOf("win")!=-1?true:false,Ci=navigator.userAgent.indexOf("Opera")!=-1?true:false;function lk(a){if(!a&&sd&&bg)return;for(var b=25;b>0;b--){var c;if(sd&&bg&&!Ci){c=VBGetSwfVer(b)}else{c=
navigator.plugins["Shockwave Flash"].description.substring(16,19)}if(c==-1){Be();return false}else if(c!=0){var d;if(sd&&bg&&!Ci){var e=c.split(" "),f=e[1];d=f.split(",")}else{d=c.split(".")}var g=d[0];if(g<7){Be();return false}else{return true}}}Be();return false}function Be(){if(confirm("You need Flash 7 or higher to watch videos.")){window.location="http://www.macromedia.com/go/getflashplayer"}}function i(a){if(document.getElementById&&document.getElementById(a)){return document.getElementById(a)}else if(document.all&&
document.all(a)){return document.all(a)}else if(document.layers&&document.layers[a]){return document.layers[a]}else{return false}}function s(a){a.style.display="none"}function t(a){a.style.display=""}function wp(a,b){wc=i(a);cj(wc,b)}function cj(a,b){var c=function(){s(a)};window.setTimeout(c,b)}function dp(a,b){if(b){t(a)}else{s(a)}}function zp(a){var b=i(a);if(!b){return true}else if(Cg(b,"display","display")=="block"||Cg(b,"display","display")=="inline"){b.className="invisible"}else{b.className=
"visible"}}function Cg(a,b,c){if(a.currentStyle){return a.currentStyle[b]}else if(window.getComputedStyle){var d=window.getComputedStyle(a,"");return d.getPropertyValue(c)}}function Ao(a){a.parentNode.removeChild(a)}function qe(a){a=encodeURIComponent(a);var b=/(%20)+/g;return a.replace(b,"+")}function dk(a){var b=a.options[a.selectedIndex].value;if(b)document.location.href=b}function vo(a,b,c){var d=fb(b);if(d==null){d=a}else{var e=d.split(":");for(var f=0;f<e.length;++f){if(e[f]==a){return}}d=d+
":"+a}sc(b,d,c)}function Ek(){var a,b=null;try{a=new ActiveXObject("Msxml2.XMLHTTP");b="Msxml2.XMLHTTP"}catch(c){a=false}if(!a){try{a=new ActiveXObject(b="Microsoft.XMLHTTP");b="Microsoft.XMLHTTP"}catch(c){a=false}}if(!a&&typeof XMLHttpRequest!="undefined"){try{a=new XMLHttpRequest}catch(c){a=false}}return b}var Ai=Ek();function Vj(){var a;if(Ai){a=new ActiveXObject(Ai)}else{a=new XMLHttpRequest}return a}function O(a,b,c,d,e){var f=Vj(),g="GET";if(c){g="POST";if(!e){e="application/x-www-form-urlencoded"}}f.open(g,
a,true);if(c&&e){f.setRequestHeader("Content-Type",e)}f.onreadystatechange=function(){if(f.readyState==4&&b!=null){b(f,f.status&&f.status==200,a,c,d);f.onreadystatechange=function(){}}};f.send(c)}function Jb(){var a;if(document.implementation&&document.implementation.createDocument){a=document.implementation.createDocument("","",null)}else if(window.ActiveXObject){var b;try{a=new ActiveXObject("Msxml2.DOMDocument.3.0")}catch(c){b=c.message;try{a=new ActiveXObject("MSXML2.DOMDocument")}catch(c){b=
c.message;try{a=new ActiveXObject("MSXML.DOMDocument")}catch(c){b=c.message}}}var d=a.createProcessingInstruction("xml","version='1.0' encoding='UTF-8'");a.appendChild(d)}else{throw"Browser is unable to create XML document: not supported bythis browser";}return a}function E(a,b,c,d){var e=a.createElement(c);if(d){e.appendChild(a.createTextNode(d))}b.appendChild(e);return e}function K(a,b){var c=a.getElementsByTagName(b);if(!c||c.length==0){return null}c=c[0].childNodes;if(!c||c.length==0){return null}return c[0].nodeValue}
var vg;function Ik(){if(!fb("PREF")){var a=document.location.toString(),b=a.match(/https?:\/\/[\w\.\-]*(\.google(\.\w{2,5}){1,2})(:\d{1,5})?\/?/i);if(b){a="http://www"+b[1]+"/gen_204";vg=new Image;vg.src=a}}}function fp(a,b){if(a.value.length>b){a.value=a.value.substring(0,b)}};function wc(a){return document.getElementById(a)}function re(a){return Math.floor(a)+"px"}function jj(a){var b=0;while(a){b+=a.offsetLeft;a=a.offsetParent}return b}function kj(a){var b=0;while(a){b+=a.offsetTop;a=a.offsetParent}return b}function pg(a,b){if(b){this.coord=[a.offsetLeft,a.offsetTop+1,a.offsetWidth-2,a.offsetHeight-2]}else{this.coord=[jj(a),kj(a),a.offsetWidth,a.offsetHeight]}};pg.prototype.add=function(a){for(var b=0;b<this.coord.length;++b){this.coord[b]+=a[b]}};pg.prototype.apply=
function(a){a.style.left=re(this.coord[0]);a.style.top=re(this.coord[1]);a.style.width=re(this.coord[2]);a.style.height=re(this.coord[3])};function _handleShowAlertPanelClick(){if(rc("addalert")){qd("addalert");i("zip").src="common/plus_sm.gif"}else{ue("addalert");i("zip").src="common/minus_sm.gif"}}function _sendCreateAlertRequest(a,b){i("msg-create-alert-status").innerHTML=MSG_CREATING_ALERT;ue("msg-create-alert-status");Gg(i("createalertbutton"));qd("msg-alert-create-bad-email");qd("msg-alert-created");O(a,pn,b)}function pn(a,b,c,d,e){if(a.readyState==4){var f=a.responseText;if(f=="alertCreated"){qd("msg-create-alert-status");ue("msg-alert-created");
i("email").value=""}else if(f=="alertCreatedUnverified"){i("msg-create-alert-status").innerHTML=MSG_CREATE_ALERT_UNVERIFIED;i("email").value=""}else if(f=="alertCreateBadEmail"){qd("msg-create-alert-status");ue("msg-alert-create-bad-email")}else{i("msg-create-alert-status").innerHTML=MSG_CREATE_ALERT_ERROR}Jg(i("createalertbutton"))}}function ue(a){i(a).style.display=""}function qd(a){i(a).style.display="none"};function ro(a,b,c,d){var e=i("tag_error");if(!c||i("taginput").value==MSG_ADD_LABEL){yd(MSG_ERROR_TAG_MISSING,null);return}if(c.length>50){yd(MSG_ERROR_TAG_TOO_LONG,null);return}c=c.replace(/(^\s+)|(\s+$)/g,"");if(c!==""){te(MSG_ANNOTATION_SAVING,null);i("taginput").tagUploadState="uploading";we(a,b,c,null,null,d)}else{i("taginput").value=""}}function we(a,b,c,d,e,f){var g=Jb(),h=E(g,g,"tags");E(g,h,"docid",b);if(c){E(g,h,"name",c);E(g,h,"token",f);if(d){E(g,h,"mark",d);if(e){E(g,h,"id",e)}}}O(a+
"?frame=label"+VP_langParam,En,g,null,'text/xml; charset="UTF-8"')}var bj;function Zi(a,b,c){var d=i("tag_error");d.innerHTML=a;d.style.display="";window.clearTimeout(bj);if(b!==null){bj=setTimeout(Dg,b)}if(!c||c=="info"){d.className="ratingsInfo"}else{d.className="ratingsError"}}function yd(a,b){Zi(a,b,"error")}function te(a,b){Zi(a,b,"info")}function gg(a){a.innerHTML=""}function En(a,b,c,d,e){Dg();var f=i("common_tags_short"),g=i("common_tags_all"),h=i("remove_tags"),j=i("remove_tags_links");if(!b||
!a.responseXML){yd(MSG_UNKNOWN_ERROR,null)}else{var k=a.responseXML.documentElement;if(k.tagName=="error"){var l=K(k,"errormessage");yd(l,null)}else if(k.tagName!="tags"){yd(MSG_UNKNOWN_ERROR,null)}else{gg(f);gg(g);gg(h);var n=k.getElementsByTagName("common_tag"),m,y;if(n.length>0){var B=document.createTextNode(MSG_BROWSE+" ");g.appendChild(B);f.appendChild(B.cloneNode(false));j.style.display="inline"}else{j.style.display="none"}for(y=0;y<n.length;++y){m=n.item(y);var F=document.createTextNode(", ");
if(y!==0){g.appendChild(F);if(y<3){f.appendChild(F.cloneNode(false))}h.appendChild(F.cloneNode(false))}if(y<3){f.appendChild(Ee(m,null))}g.appendChild(Ee(m,null));h.appendChild(Ee(m,"delete"))}if(n.length>3){var va=document.createElement("A");va.className="taglink";va.href="javascript:void(0)";g.appendChild(F.cloneNode(false));var ca=va.cloneNode(true);ca.onclick=function(){Xc("common_tags","false");ud()};ca.innerHTML="<b>&laquo;</b>";g.appendChild(ca);f.appendChild(F.cloneNode(false));var Y=va.cloneNode(true);
Y.onclick=function(){Xc("common_tags","true");ud()};Y.innerHTML="<b>"+MSG_MORE_TAGS+"&nbsp;&raquo;</b>";f.appendChild(Y)}var eb=i("taginput");if(eb&&eb.tagUploadState=="uploading"){te(MSG_ANNOTATION_SAVED,5000);eb.value="";eb.tagUploadState=null}else if(i("tag_error").tagUploadState=="removing"){te(MSG_REMOVED_TAG,5000);i("tag_error").tagUploadState=null}}}}function Ee(a,b){var c=document.createElement("A"),d=K(a,"name"),e=K(a,"raw_name"),f=K(a,"short_name"),g=K(a,"tag_mode"),h=K(a,"id");if(!b||b===
null||b=="click"){c.className="taglink";c.title=d;if(g=="user_tag"){c.title+=" ("+MSG_YOUR_TAG+")";c.style.fontWeight="bold"}var j=e.replace(/"/g,'\\"'),k='label:"'+j+'"';c.href="/videosearch?q="+encodeURIComponent(k);c.innerHTML="<nobr>"+f+"</nobr>"}if(b=="delete"){c.className="removetaglink";c.title=MSG_REMOVE_TAG_TITLE+": "+d;if(g=="user_tag"){c.title+=" ("+MSG_YOUR_TAG+")";c.style.fontWeight="bold"}c.href="javascript:void(0);";c.onclick=function(){Co(TAG_DISPLAY_URI,did,e,h,VP_annotationsToken);
c.className="striketaglink"};c.innerHTML="<nobr>"+f+"&nbsp;";c.innerHTML+="</nobr>"}return c}function Co(a,b,c,d,e){var f=i("tag_error");te(MSG_REMOVED_TAG,null);f.tagUploadState="removing";if(VP_isOps){we(a,b,c,"OPS",d,e)}else{we(a,b,c,"SPAM",d,e)}}function Xc(a,b){var c=i(a+"_all"),d=i(a+"_short");if(!c||!d){return}if(b=="true"){c.style.display="inline";d.style.display="none";VP_showMoreTags=true}else{c.style.display="none";d.style.display="inline";VP_showMoreTags=false}}function Dg(){i("tag_error").innerHTML=
""}function vp(a){if(!a){a=window.event}var b=a.keyCode||a.which;if(b==13&&i("taginput").value!=MSG_ADD_LABEL){i("taginputbutton").onclick()}};function Qj(){var a=i("site"),b=true;i("username").focus();if(VP_siteIndex>=0&&VP_siteIndex<a.length){a.selectedIndex=VP_siteIndex;if(VP_siteIndex!=VP_cookieSiteIndex){b=false}}if(VP_cookieRememberMe&&b){i("username").value=decodeURIComponent(VP_cookieUsername);a.selectedIndex=VP_cookieSiteIndex;i("password").focus()}i("rememberc").checked=VP_cookieRememberMe}function Fi(){if(Ep()){Yo()}return false}function Ep(){Hn();var a=true;if(i("username").value==""){a=false;t(i("username-error"))}if(i("password").value==
""){a=false;t(i("password-error"))}if(i("site").selectedIndex<=0){a=false;t(i("site-error"))}if(!hj("login-")){a=false}return a}function Hn(){s(i("username-error"));s(i("password-error"));s(i("site-error"));yi("login-");s(i("login-error"))}function op(){if(Fp()){ap()}return false}function Fp(){var a=true;if(i("title").value==""){a=false;t(i("title-error"))}else{s(i("title-error"))}if(!hj("submit-")){a=false}return a}function Yo(){Hg(true);var a=i("site"),b="req=login&name="+encodeURIComponent(i("username").value)+
"&pass="+encodeURIComponent(i("password").value)+"&site="+encodeURIComponent(a.options[a.selectedIndex].value);b+=Pg("login-");O(Og(),tn,b);t(i("loginstatus"))}function Og(){var a=VP_securedBlogpostUrl,b=window.location.search,c=b.indexOf("hl=");if(c>=0){var d=b.indexOf("&",c+2);if(d<0){d=b.length}a+="?"+b.substring(c,d)}return a}function Hg(a){i("loginbutton").disabled=a;i("username").disabled=a;i("password").disabled=a;i("site").disabled=a;Yj("login-",a);i("loginbutton").disabled=a;i("rememberc").disabled=
a}function tn(a){if(a.readyState==4){s(i("loginstatus"));Hg(false);var b=a.responseText.split("\t");if(b[0]-0==0){if(!Ii("login-",b)){i("password").value="";i("password").blur();i("password").focus();Zn(b[1])}}else{$n(b)}}}function Zn(a){i("login-error").innerHTML=a;t(i("login-error"))}function $n(a){np();VP_supportFlash=""+a[1];po(a);if(a[0]==1){Li()}else{s(i("logintablediv"));s(i("bloggersdiv"));t(i("blogselect"))}}function np(){var a=i("site").selectedIndex;if(i("rememberc").checked){a="1"+a+i("username").value}else{a=
"0"+a}var b=new Date;b.setYear(b.getFullYear()+1);document.cookie=VP_blogpostCookieName+"="+encodeURIComponent(a)+"; domain="+VP_cookieDomain+"; expires="+b.toGMTString()}function po(a){var b=i("blog");for(var c=2;c<a.length;c++){var d=new Option(a[c],c-2);b.options[c-2]=d}b.selectedIndex=0}function Li(){ek();i("player-big").checked=true;i("autoplay").checked=false;s(i("blogselect"));s(i("logindiv"));t(i("submitdiv"));s(i("finisheddiv"))}function ek(){var a;if(VP_supportFlash=="true"){Gj();a=document.createElement("div");
a.innerHTML=VP_flashPath}else{Hj();a=document.createElement("img");a.id="playerImg";a.src=VP_thumbnailPath;a.width="320";a.height="240"}var b=i("playerplaceholder");if(b&&!b.hasChildNodes()){b.appendChild(a)}}function Hj(){i("playercell").style.height="250px";i("autoplaydisplay").style.display="none";i("playersizelabel").style.display="none";i("thumbsizelabel").style.display="inline"}function Gj(){i("playercell").style.height="330px";i("autoplaydisplay").style.display="inline";i("playersizelabel").style.display=
"inline";i("thumbsizelabel").style.display="none"}function ap(){i("submitbutton").disabled=true;var a=i("site"),b=i("blog"),c=b.selectedIndex;if(c<0){c=0}var d=150,e=i("title").value;if(e.length>d){e=e.substring(0,d)}var f="req=submit&docid="+encodeURIComponent(VP_docid)+"&name="+encodeURIComponent(i("username").value)+"&pass="+encodeURIComponent(i("password").value)+"&title="+encodeURIComponent(e)+"&descr="+encodeURIComponent(i("description").value)+Rg()+"&size="+encodeURIComponent(VP_playersize)+
"&site="+encodeURIComponent(a.options[a.selectedIndex].value)+"&auto="+encodeURIComponent(i("autoplay").checked)+"&blog="+encodeURIComponent(b.options[c].value);f+=Pg("submit-");O(Og(),Dn,f);t(i("submitstatus"))}function Dn(a){if(a.readyState==4){var b=a.responseText.split("\t"),c;if(b[0]-0==0){if(Ii("submit-",b)){i("submitbutton").disabled=false;s(i("submitstatus"));return}else{pp();c=b[1]}}else{rp();c='<a href="javascript:void(0)" onclick="window.open(&quot;'+b[1]+'&quot;, &quot;_blank&quot;);">'+
b[1]+"</a>"}i("messagediv").innerHTML=c;t(i("messagediv"));s(i("submitstatus"));i("submitbutton").disabled=false}}function pp(){t(i("faildiv"));s(i("logindiv"));s(i("submitdiv"));t(i("finisheddiv"))}function rp(){t(i("successdiv"));t(i("refreshmsgdiv"));s(i("logindiv"));s(i("submitdiv"));t(i("finisheddiv"))}function Eo(a){if(a==1){VP_playerwidth="300px";VP_playerheight="243px";VP_playersize="small"}else{VP_playerwidth="400px";VP_playerheight="326px";VP_playersize="big"}if(VP_supportFlash=="true"){var b=
i("VideoPlayback").style;b.width=VP_playerwidth;b.height=VP_playerheight}else{if(a==1){i("playerImg").width="160";i("playerImg").height="120"}else{i("playerImg").width="320";i("playerImg").height="240"}}}function Oj(){i("password").value="";t(i("logintablediv"));t(i("bloggersdiv"));s(i("blogselect"));Gn("login-");yi("login-");Vi("login-",false,"","")}function Sj(a){if(!a){a=window.event}var b=a.keyCode||a.which;if(b==13){Fi()}}function jp(a){i(a+"captcha-section").style.display=""}function Gn(a){i(a+
"captcha-section").style.display="none"}function ip(a){t(i(a+"captcha-error"))}function yi(a){s(i(a+"captcha-error"))}function Vi(a,b,c,d){i(a+"captcha-required").value=b;i(a+"captcha-image").src=c;i(a+"captcha-token").value=d}function Yj(a,b){i(a+"captcha-text").disabled=b}function hj(a){if(i(a+"captcha-required").value=="true"&&i(a+"captcha-text").value==""){ip(a);return false}return true}function Pg(a){var b="";if(i(a+"captcha-required").value=="true"){var c=i(a+"captcha-text").value;if(c!=""){b+=
"&captcha="+encodeURIComponent(c)}b+="&captchatoken="+encodeURIComponent(i(a+"captcha-token").value)}return b}function Ii(a,b){if(b[1]=="captcha-required"){Vi(a,"true",b[2],b[3]);jp(a);return true}return false};var eg=[];function _addOnLoadAction(a){eg.push(a)}function _runOnLoadActions(){for(var a=0;a<eg.length;a++){eg[a]()}}function Vc(a,b,c,d,e,f,g,h,j,k){this.Bf=a;this.Rq=b;this.Hq=c;this.lr=d;this.Cf=e;this.Hm=f;this.fq=g;this.Wp=h;this.mr=k}var _ContentListItem=Vc;Vc.prototype.Al=function(a,b,c){var d={};d.add="/images/plus_off.gif";d.remove="/images/x_off.gif";d.up="/images/up_off.gif";d.down="/images/down_off.gif";d.noop="/images/noop.gif";var e=document.createElement("a");e.href="javascript:void(0)";
if(!c){e.style.cursor="default"}var f=document.createElement("img");f.src=c?d[b]:d.noop;f.style.border="0px";e.appendChild(f);var g=this;if(c){e.onclick=function(h){a.Bh(b,g)}}return e};Vc.prototype.ae=function(a,b,c){var d=this.rl(b);Ad(d,"contentitemcore");var e=document.createElement("div");e.style.width="150px";Ad(e,"contentitem");var f;if(this.Hm){f=document.createTextNode("advertisement")}else{f=document.createTextNode(" ")}var g=document.createElement("div");g.appendChild(f);Ad(g,"contentitemad");
e.appendChild(g);var h=document.createElement("div");for(var j=0;j<c.length;j++){h.appendChild(this.Al(a,c[j],this.fq));h.appendChild(document.createElement("br"))}Ad(h,"contentitemcontrols");e.appendChild(h);e.appendChild(d);e.id=b;return e};Vc.prototype.rl=function(a){var b=document.createElement("div"),c=document.createElement("img");c.src=this.Rq;c.alt="";c.border="1";c.width=100;c.height=75;if(this.Wp){c.title="Click here to edit destination URL";c.style.cursor="pointer";var d=this;c.onclick=
function(){lp(d.Bf)}}var e=document.createTextNode(this.Hq);b.appendChild(c);b.appendChild(document.createElement("br"));b.appendChild(e);b.style.width="110px";b.style.fontSize="smaller";return b};function _ContentListTimeline(a,b){this.Xa=a;this.Bf=b;this.B=[]}_ContentListTimeline.prototype._getIds=function(){return this.B.join(",")};_ContentListTimeline.prototype.yb=function(a){return this.Xa+"_items_"+a};function _addItemToTimeline(a,b){b._addItem(a)}function _addItemHashToTimeline(a,b){var c=
new Vc(null,null,null,null,null,null,null,null,null,null);for(var d in a){c[d]=a[d]}b._addItem(c)}_ContentListTimeline.prototype._addItem=function(a){this.kr+=a.duration;this.B.push(a);var b=a.ae(this,this.yb(this.B.length-1),ve),c=this,d=0;if(sd&&this.versionMajor==6){d=500}setTimeout(function(){c._finishAddItem(b)},d)};_ContentListTimeline.prototype._finishAddItem=function(a){var b=document.getElementById(this.Xa);b.appendChild(a);b.style.width=this.B.length*150+50+"px";if(a.clientHeight>b.clientHeight){b.style.height=
a.clientHeight+"px"}this.uj()};_ContentListTimeline.prototype.uj=function(){var a=document.getElementById("sessionfield"),b="[";for(var c=0;c<this.B.length;c++){b+=io(this.B[c]);if(c<this.B.length-1){b+=","}}b+="]";a.value=b};var ve=["remove","noop","up","down"];_ContentListTimeline.prototype.swap=function(a,b){var c=document.getElementById(this.yb(a)),d=document.getElementById(this.yb(b)),e=this.B[a];this.B[a]=this.B[b];this.B[b]=e;var f=this.B[a].ae(this,this.yb(a),ve),g=this.B[b].ae(this,this.yb(b),
ve),h=c.parentNode;h.replaceChild(f,c);h.replaceChild(g,d)};_ContentListTimeline.prototype.Bk=function(){var a=this.B.length;for(var b=0;b<a;b++){this.Bh("remove",this.B[0])}};function _clearAllItemsInTimeline(a){a.Bk()}_ContentListTimeline.prototype.Bh=function(a,b){var c=-1;for(var d=0;d<this.B.length;d++){if(this.B[d]==b){c=d}}if(a=="up"){if(c>0){this.swap(c,c-1)}}else if(a=="down"){if(c<this.B.length-1){this.swap(c,c+1)}}else if(a=="top"){if(c>0){this.swap(c,0)}}else if(a=="bottom"){if(c<this.B.length-
1){this.swap(c,this.B.length-1)}}else if(a=="remove"){for(var d=c;d<this.B.length-1;d++){this.swap(d,d+1)}this.B.splice(this.B.length-1,1);var e=document.getElementById(this.yb(this.B.length));e.parentNode.removeChild(e);document.getElementById(this.Xa).style.width=this.B.length*150+50+"px"}this.uj()};function _getTimelineIds(a){var b=[];for(var c=0;c<a.B.length;c++){b.push(a.B[c].Bf)}return b.join(" ")}function lp(a){document.getElementById("editvideometadiv").innerHTML="";document.getElementById("editvideometadiv").style.display=
"block";O("/videometaedit?docid="+a,Zj,null,null)}function Zj(a,b,c,d,e){if(a.readyState==4){document.getElementById("editvideometadiv").innerHTML=a.responseText}}function _hideVideoMetadata(){document.getElementById("editvideometadiv").style.display="none"}_ContentListTimeline.prototype.qp=function(a,b){for(var c=0;c<this.B.length;c++){if(this.B[c].Bf==a){this.B[c].Hm=b;var d=document.getElementById(this.yb(c)),e=this.B[c].ae(this,this.yb(c),ve),f=d.parentNode;f.replaceChild(e,d)}}};function _saveVideoMetadata(a,
b,c,d,e){var f="/videometawrite?";f+="docid="+Bd(b);f+="&url="+Bd(c);f+="&urllabel="+Bd(d);f+="&isad="+Bd(e?"on":"off");O(f,null,null,null);_hideVideoMetadata();a.qp(b,e)}Boolean.prototype.toJSONString=function(){return String(this)};Date.prototype.toJSONString=function(){function a(b){return b<10?"0"+b:b}return'"'+this.getFullYear()+"-"+a(this.getMonth()+1)+"-"+a(this.getDate())+"T"+a(this.getHours())+":"+a(this.getMinutes())+":"+a(this.getSeconds())+'"'};Number.prototype.toJSONString=function(){return isFinite(this)?
String(this):"null"};var io=function(a){var b=["{"],c,d,e;function f(g){if(c){b.push(",")}b.push(d.toJSONString(),":",g);c=true}for(d in a){if(a.hasOwnProperty(d)){e=a[d];switch(typeof e){case "undefined":case "function":case "unknown":break;case "object":f("null");break;default:f(e.toJSONString())}}}b.push("}");return b.join("")};(function(a){var b={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};a.parseJSON=function(c){try{if(/^("(\\.|[^"\\\n\r])*?"|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/.test(this)){var d=
eval("("+this+")");if(typeof c==="function"){function e(g){if(g&&typeof g==="object"){for(var h in g){if(g.hasOwnProperty(h)){g[h]=e(g[h])}}}return c(g)}return e(d)}return d}}catch(f){}};a.toJSONString=function(){if(/["\\\x00-\x1f]/.test(this)){return'"'+this.replace(/([\x00-\x1f\\"])/g,function(c,d){var e=b[d];if(e){return e}e=d.charCodeAt();return"\\u00"+Math.floor(e/16).toString(16)+(e%16).toString(16)})+'"'}return'"'+this+'"'}})(String.prototype);var hk=function(a){if(a&&a.childNodes.length>0){for(var b=0;b<a.childNodes.length;b++){if(a.childNodes[b].tagName=="A"){return a.childNodes[b]}}}return undefined},Lg=function(a,b,c,d,e,f){var g=document.createElement("img");g.onload=function(h){var j=document.getElementById(b);if(j){var k=hk(j);if(k){k.appendChild(g)}else{j.appendChild(g)}}};g.src=a+"/favicon.ico";g.title=a;g.style.position="absolute";g.style.zIndex=1;g.style.width=c+"px";g.style.height=d+"px";g.style.top=e+"px";g.style.left=f+"px";
g.style.border=0;g.style.background="#ffffff"},_fh_insertFavicon=Lg;function _filterutils_adjustLines(a,b,c,d,e,f,g){var h=document.getElementById(a).getElementsByTagName("tbody")[0],j=h.getElementsByTagName("tr"),k=Math.min(j.length-d,c+b),l=1;for(var n=c;n<k;n++){j[n].getElementsByTagName("td")[e].innerHTML=l+f;if(g&&l%2!=0){j[n].className=j[n].className+" tr-shaded"}l++}};var rk=function(){var a=og(document.URL);a.$j("/accountheader");a.$a("continueUrl",[document.URL]);a.$a("frame",["1"]);O(a,qk)},qk=function(a,b,c,d,e){if(b){var f=i("guser");if(f){f.innerHTML=a.responseText}}},_gb_refreshGaiaBar=rk;var Yc,xc,Ma,Fe="GenrePageState",vk=function(a,b,c){Yc=a;xc=b;Ma={};for(var d=0;d<c.length;d++){var e=c[d];if(e.numPages>0){Ma[e.sectionId]=e}}Ck()},Ck=function(){var a=fb(Fe),b=Mg(a);for(var c in Ma){var d=Ma[c];if(!b||b.pageId!=Yc){d.initialVisibility=true}else if(b.seed!=xc){d.initialVisibility=false}else{d.initialVisibility=true;if(c in b.sectionIdToPageNumMap){var e=b.sectionIdToPageNumMap[c];if(e!=d.currentPage){d.initialVisibility=false}}}}},xk=function(){if(!Bk()){Ng()}},Ng=function(){var a=
{};for(var b in Ma){var c=Ma[b];a[b]=c.currentPage}var d=new Ge(Yc,xc,a);Sc(Fe,d.Bl(),null,window.location.pathname)},Bk=function(){var a=fb(Fe),b=Mg(a);if(b==null){return false}if(b.pageId!=Yc){return false}var c=false;if(b.seed!=xc){xc=b.seed;c=true}var d=false;for(var e in Ma){var f=Ma[e],g=f.currentPage;if(e in b.sectionIdToPageNumMap){g=b.sectionIdToPageNumMap[e]}if(g>=f.numPages){g=f.numPages-1}if(g<0){g=0}if(c||g!=f.currentPage){f.kg(g);d=true}}return d},yk=function(){var a=i("narrow-css"),
b=pj(window,Jk);if(!isNaN(b)){a.disabled=b>=990}},zk=function(a){var b=Ma[a],c=i(b.kb()+"-contents"),d=(c.clientHeight-41)/2,e=i(b.kb()+"-prev-active"),f=i(b.kb()+"-prev-inactive");e.style.margin=d+"px 0";f.style.margin=d+"px 0";var g=i(b.kb()+"-next-active"),h=i(b.kb()+"-next-inactive");g.style.margin=d+"px 0";h.style.margin=d+"px 0"},wk=function(a){Ma[a].ye()},Ak=function(a){Ma[a].He()},uk=function(a){return Ma[a].Kl()},Dk=function(a,b){Ma[a].Gj(b)},wb=function(a,b,c){this.sectionId=a;this.numPages=
c;this.currentPage=b;this.initialVisibility=false;this.pendingRequest=false;this.prevAndNextButtonsAreInitialized=false};wb.prototype.kb=function(){return"gp-section-"+this.sectionId};wb.prototype.Mg=function(){function a(c,d){switch(d){case "hidden":i(c+"-active").style.display="none";i(c+"-inactive").style.display="none";break;case "active":i(c+"-active").style.display="";i(c+"-inactive").style.display="none";break;case "inactive":i(c+"-active").style.display="none";i(c+"-inactive").style.display=
"";break;default:break}}var b=this.pendingRequest?"inactive":"active";a(this.kb()+"-prev",this.currentPage==0?"hidden":b);a(this.kb()+"-next",this.currentPage+1==this.numPages?"hidden":b)};wb.prototype.Gj=function(a){var b=i(this.kb());if(a){this.Mg();b.style.visibility="visible"}else{b.style.visibility="hidden"}};wb.prototype.Kl=function(){return this.initialVisibility};wb.prototype.kg=function(a){if(!this.pendingRequest){this.pendingRequest=true;this.Mg();var b=this,c=og(document.URL);c.$a("output",
["AJAX"]);c.$a("gpid",[Yc]);c.$a("seed",[xc]);c.$a("sectionid",[this.sectionId]);c.$a("page",[a.toString()]);c.$a("frame",["1"]);O(c,function(d,e,f,g,h){b.em(d,e,f,g,h)},null,{sectionId:this.sectionId,pageNum:a})}};wb.prototype.ye=function(){this.kg(this.currentPage+1)};wb.prototype.He=function(){this.kg(this.currentPage-1)};wb.prototype.em=function(a,b,c,d,e){if(b){var f=i(this.kb()+"-contents"),g=a.responseText,h=g.indexOf("\n");if(h>=0){var j=g.slice(0,h+1).split("\t"),k=parseInt(j[0],10),l=parseInt(j[1],
10),n=g.slice(h+1);if(k>=0&&l>=1&&n){f.innerHTML=n;this.currentPage=k;this.numPages=l;this.Gj(true);Ng()}}}else{if(a.status&&a.status==410){window.location.reload(true)}}this.pendingRequest=false;this.Mg()};var Ge=function(a,b,c){this.pageId=a;this.seed=b;this.sectionIdToPageNumMap=c},Mg=function(a){if(!a){return null}var b=a.match(/^([a-zA-Z0-9_\-]+),(\-?\d+),(\d+:\d+(?:,\d+:\d+)+)$/);if(!b){return null}var c=b[1],d=parseInt(b[2],10),e=b[3].split(","),f={};for(var g=0;g<e.length;g++){var h=e[g],
j=h.split(":"),k=parseInt(j[0],10),l=parseInt(j[1],10);if(isNaN(k)||isNaN(l)){return null}f[k]=l}return new Ge(c,d,f)};Ge.prototype.Bl=function(){var a=this.pageId+","+this.seed;for(var b in this.sectionIdToPageNumMap){var c=this.sectionIdToPageNumMap[b];a+=","+b+":"+c}return a};var _gp_init=vk,_gp_onLoad=xk,_gp_onWindowResize=yk,_gp_positionArrows=zk,_gp_nextPage=wk,_gp_previousPage=Ak,_gp_getInitialVisibility=uk,_gp_setVisibility=Dk,_gp_PageableSection=wb;var pe={},rd=new V,Nn=function(a,b){pe[a]=new $f(a,b)},Pn=function(a,b){for(var c in pe){if(c!=a){pe[c].hide()}}pe[a].show(b)},$f=function(a,b){this.resultNum=a;this.previewContents=b;this.visible=false};$f.prototype.show=function(a){if(this.visible){return}this.visible=true;var b=z("playlist-item-"+this.resultNum);b.setAttribute("class","playlist-item-nowplaying");var c=z("nowplaying-text-"+this.resultNum);c.style.display="";if(a){var d=z("nowplaying");d.innerHTML=this.previewContents}};$f.prototype.hide=
function(){if(!this.visible){return}this.visible=false;var a=z("playlist-item-"+this.resultNum);a.setAttribute("class","playlist-item");var b=z("nowplaying-text-"+this.resultNum);b.style.display="none"};var Mn=function(a){rd.set(a,new oe(a))},Ln=function(a,b){rd.get(a).pages.push(b)},On=function(a,b){rd.get(a).Eg(b)},Jn=function(a){rd.get(a).ye()},Kn=function(a){rd.get(a).He()},oe=function(a){this.name=a;this.pages=[];this.currentPageIndex=0};oe.prototype.Eg=function(a){var b=z(this.name+"-index-current");
b.innerHTML=a+1;var c=z(this.name+"-index-total");c.innerHTML=this.pages.length;var d=z(this.name+"-prev-link-enabled"),e=z(this.name+"-prev-link-disabled");if(a==0){d.style.display="none";e.style.display=""}else{d.style.display="";e.style.display="none"}var f=z(this.name+"-next-link-enabled"),g=z(this.name+"-next-link-disabled");if(a+1==this.pages.length){f.style.display="none";g.style.display=""}else{f.style.display="";g.style.display="none"}var h=z(this.name+"-page");h.innerHTML=this.pages[a];
this.currentPageIndex=a};oe.prototype.ye=function(){this.Eg(this.currentPageIndex+1)};oe.prototype.He=function(){this.Eg(this.currentPageIndex-1)};var In=function(a){return new Da(document.getElementById(a))},_hp_registerPreview=Nn,_hp_showPreview=Pn,_hp_registerPaginatedSection=Mn,_hp_registerPage=Ln,_hp_showPage=On,_hp_nextPage=Jn,_hp_previousPage=Kn,_hp_newTabPane=In;var ao=function(){i("framed_video_data").style.display="none";i("collapse_link").style.display="none";i("expand_link").style.display="inline";cg();mg(VP_collapsedFrameCookieName,1)},bo=function(){i("framed_video_data").style.display="block";i("expand_link").style.display="none";i("collapse_link").style.display="inline";cg();mg(VP_collapsedFrameCookieName,0)},Hi=new Array("related-videos","flagtab","sendemail-form","labeltab"),eo=function(a,b){for(var c=0;c<Hi.length;c++){var d=Hi[c];if((VP_displayFlagTab||
d!="flagtab")&&(VP_displayLabelTab||d!="labeltab")&&(VP_displayEmailTab||d!="sendemail-form")){if(d==a){i(d).style.display="inline";i(d+"-link").className="framemenu_active"}else{i(d).style.display="none";i(d+"-link").className="framemenu_inactive"}}mg(VP_tabFrameCookieName,b)}},Gi=false,co=function(){if(VP_enableEmailAutocomplete&&!Gi){_initEmailAutocomplete(i("to"),"/data/contacts?max=250",false);Gi=true}},cg=function(){var a=i("lpaf_framefull"),b=i("3rdPartyFrame"),c=window.innerHeight||document.documentElement.offsetHeight,
d=c-a.offsetHeight-(N?3:0);d=Math.max(0,d);b.style.height=d+"px";if(N||ua||Hb){var e=window.innerWidth||document.documentElement.clientWidth;e=Math.max(0,e-1);b.style.width=e+"px";b.width=e;e=window.innerWidth||document.documentElement.clientWidth;e=Math.max(0,e);b.style.width=e+"px";b.width=e}if(window.isGoogleHostedVideo){if(window.onIFrameResize){window.onIFrameResize()}}},_lpaf_expand=bo,_lpaf_setActiveTab=eo,_lpaf_collapse=ao,_lpaf_onResize=cg,_lpaf_initAutocomplete=co;var Ed=30,Ag=8,zg=50;function tj(a,b,c,d){this.name=a;this.title=b;this.query=c;this.filter=d;this.total=-1;this.resultIndex=0;this.cached=new Array(Ed);this.cachedNo=0;this.visibleIndex=0;this.targetVisibleIndex=0;this.animating=false;this.cachingState=0}function rg(a,b,c,d,e,f,g,h){this.docid=a;this.thumbSrc=b;this.shortTitle=c;this.origTitle=d;this.duration=e;this.height=f;this.provider=g;this.playPageUrl=h}function Sn(){for(var a in resultBoxes){Rn(resultBoxes[a])}}function Rn(a){var b="/videofeed?type=search&output=ajax&frame=morebox&docid="+
VP_docId+"&q="+a.query+"&filter="+a.filter+"&num="+Ed+"&start=0&msg=-1";b=xb(b);O(b,Zf,null,a.name)}function Zf(a,b,c,d,e){if(a.readyState==4){var f=a.responseText.replace(/\"/g,"'");Mi(encodeURIComponent(f),e)}}function vb(a,b){i(a+"active").style.display=b?"inline":"none";i(a+"inactive").style.display=b?"none":"inline"}function aj(a,b){i(a+"_searching").style.display=b==1?"inline":"none";i(a+"_noresults").style.display=b==2?"inline":"none";i(a+"_links").style.display=b==4?"inline":"none";if(b==
4){i(a+"_items").style.height="19em";i(a+"_main").className="resultboxmainscroll"}i(a+"_main").style.display=b>=3?"inline":"none"}function kp(a){if(a.cachedNo==0){return}var b=tk(a);i(a.name+"_items").innerHTML=b;dj(a);ej(a);aj(a.name,a.cachedNo>3?4:3)}function tk(a){var b='<table cellpadding="0" cellspacing="2" class="resultboxtable" id="'+a.name+'_table"><tbody>';for(var c=0;c<a.cachedNo;c++){b+=sk(a.cached[c],a.name+"_item_"+c)}b+="</tbody></table>";return b}function sk(a,b){var c='<tr class="itemrow"><td class="resultboxthumbcell"><a href="'+
a.playPageUrl+'" rel="nofollow"><img class="resultboxthumb" src="'+a.thumbSrc+'" title="'+a.origTitle+'" alt="" border="1"></a></td>';c+='<td id="'+b+'" class="resultboxcell" valign="top"> <a href="'+a.playPageUrl+'" title="'+a.origTitle+'" rel="nofollow"> '+a.shortTitle+"</a><br>";c+='<span class="meta"> ';if(a.provider!="."){c+=a.provider+"<br>"}c+=a.duration+"</span></td></tr>";return c}function ej(a){if(a.total<=0){return}var b=a.resultIndex+a.visibleIndex+1,c=b+2;if(a.total<c){c=a.total}var d=
""+b;if(b<c){d+="-"+c}if(a.total>1000){d+=" "+MSG_OF_THOUSANDS}else if(a.total>200){d+=" "+MSG_OF_HUNDREDS}else{d+=" of "+a.total}i(a.name+"_linkstext").innerHTML=d}function dj(a){if(a.total==0){vb(a.name+"_prev",false);vb(a.name+"_next",false);return}var b=a.resultIndex+a.visibleIndex+1;vb(a.name+"_prev",b>1?true:false);vb(a.name+"_next",a.visibleIndex+3<a.cachedNo?true:false)}function Mi(a,b){var c=resultBoxes[b];c.cachingState=2;if(c.animating){var d='processResponse("'+a+'","'+b+'")';setTimeout(d,
400);return}Rj(decodeURIComponent(a),c);if(c.total==0||c.cachedNo==0){vb(b+"_prev",false);vb(b+"_next",false);aj(b,2)}else{kp(c);Xo(c)}c.cachingState=0}function Xo(a){var b=a.name+"_item_"+a.visibleIndex,c=i(b).offsetTop-2;i(a.name+"_items").scrollTop=c}function Rj(a,b){var c=a.split("\r\n"),d=c[0].split("\t"),e=1*d[0],f=1*d[1];gk(d[2],b);if(e<0||e>Ed||f<0){return}var g=true;if(f<b.resultIndex){g=false}var h=Ed-e;if(h>b.cachedNo){h=b.cachedNo}var j=b.cachedNo-h;if(g){var k=b.cachedNo-h;for(var l=
0;l<h;l++){b.cached[l]=b.cached[k+l]}}else{for(var l=h-1;l>=0;l--){b.cached[e+l]=b.cached[l]}}if(g){for(var l=1;l<=e;l++){d=c[l].split("\t");b.cached[h+l-1]=new rg(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7])}}else{for(var l=1;l<=e;l++){d=c[l].split("\t");b.cached[l-1]=new rg(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7])}}b.cachedNo=h+e;if(g){b.resultIndex+=j;b.visibleIndex-=j;if(b.visibleIndex<0){b.visibleIndex=0}}else{b.resultIndex-=e;b.visibleIndex+=e;if(b.visibleIndex>=b.cachedNo){b.visibleIndex=b.cachedNo-
1}}}function gk(a,b){if(b.total<0&&a){var c=1*a;if(c>=0){b.total=c}}}function Fo(a){vb(a+"_prev",false);vb(a+"_next",false);var b=resultBoxes[a];if(b.cachingState==2){var c='resultBoxNextClicked("'+a+'")';setTimeout(c,100)}else{yg(true,a)}}function Go(a){vb(a+"_prev",false);vb(a+"_next",false);var b=resultBoxes[a];if(b.cachingState==2){var c='resultBoxPrevClicked("'+a+'")';setTimeout(c,100)}else{yg(false,a)}}function yg(a,b){var c=resultBoxes[b];c.animating=true;if(a){ik(c);Ij(c)}else{jk(c);Kj(c)}}
function ik(a){var b=a.resultIndex+a.cachedNo;if(a.cachedNo-a.visibleIndex>7||a.cachingState>0||a.total>=0&&b>=a.total){return}var c=a.total-b;if(c<1||c>10){c=10}var d="/videofeed?type=search&output=ajax&frame=morebox&docid="+VP_docId+"&q="+a.query+"&num="+c+"&start="+b;d=xb(d);a.cachingState=1;O(d,Zf,null,a.name)}function jk(a){if(a.visibleIndex>3||a.cachingState>0||a.resultIndex==0){return}var b=a.resultIndex;if(b>10){b=10}var c="/videofeed?type=search&output=ajax&frame=morebox&docid="+VP_docId+
"&q="+a.query+"&num="+b+"&start="+(a.resultIndex-b);c=xb(c);a.cachingState=1;O(c,Zf,null,a.name)}function Ij(a){if(a.total==0||a.cachedNo<=0||a.visibleIndex+3>=a.cachedNo){return}var b=a.name+"_item_"+a.visibleIndex,c=i(b).offsetTop-2;a.targetVisibleIndex=a.visibleIndex+3;if(a.targetVisibleIndex>a.cachedNo-3){a.targetVisibleIndex=a.cachedNo-3}b=a.name+"_item_"+a.targetVisibleIndex;var d=i(b).offsetTop-2;Ae(a.name,c,d,Ag,zg,true)}function Kj(a){if(a.total==0||a.cachedNo<=0||a.visibleIndex<0){return}var b=
a.name+"_item_"+a.visibleIndex,c=i(b).offsetTop-2;a.targetVisibleIndex=a.visibleIndex-3;if(a.targetVisibleIndex<0){a.targetVisibleIndex=0}b=a.name+"_item_"+a.targetVisibleIndex;var d=i(b).offsetTop-2;Ae(a.name,c,d,Ag,zg,false)}function Ae(a,b,c,d,e,f){var g;if(f){g=c-b}else{g=b-c}if(d<=0||g<=0){i(a+"_items").scrollTop=c;Jj(a,f);return}var h=parseInt(g/d,10),j=f?b+h:b-h;i(a+"_items").scrollTop=j;var k="animate('"+a+"',"+j+","+c+","+(d-1)+","+e+","+f+")";setTimeout(k,e)}function Jj(a,b){var c=resultBoxes[a];
c.visibleIndex=c.targetVisibleIndex;ej(resultBoxes[a]);dj(resultBoxes[a]);c.animating=false};var td={},Io=function(a,b,c){td[a]=new Ub(a,b,c)},Jo=function(a,b){for(var c in td){td[c].hide()}td[a].show(b)},Ho=function(a,b){td[a].hide(b)},Ub=function(a,b,c){this.resultNum=a;this.previewContents=b;this.nonAnimateableElements=c?c:[];this.visible=false;this.animating=false};Ub.prototype.Dc=function(){return this.visible};Ub.prototype.show=function(a){if(this.visible||this.animating){return}this.visible=true;var b=z("preview-zippy-"+this.resultNum),c=z("show-preview-text-"+this.resultNum),d=z("hide-preview-text-"+
this.resultNum);b.setAttribute("src","/images/zippy_minus_sm.gif");c.style.display="none";d.style.display="";if(a){O(a,null)}var e=z("preview-body-"+this.resultNum);e.innerHTML=this.previewContents;e.style.display="";var f=la(e).height,g=z("preview-curtain-"+this.resultNum);this.animation=new ee(g,0,f,250);p(this.animation,"end",Ub.prototype.Hj.bind(this));this.animating=true;this.animation.play()};Ub.prototype.Hj=function(){for(var a=0;a<this.nonAnimateableElements.length;++a){var b=z(this.nonAnimateableElements[a]);
if(b){b.style.display=""}}this.animating=false};Ub.prototype.hide=function(a){if(!this.visible||this.animating){return}this.visible=false;var b=z("preview-zippy-"+this.resultNum),c=z("show-preview-text-"+this.resultNum),d=z("hide-preview-text-"+this.resultNum);b.setAttribute("src","/images/zippy_plus_sm.gif");c.style.display="";d.style.display="none";if(a){O(a,null)}for(var e=0;e<this.nonAnimateableElements.length;++e){var f=z(this.nonAnimateableElements[e]);if(f){f.innerHTML=""}}var g=z("preview-body-"+
this.resultNum),h=la(g).height,j=z("preview-curtain-"+this.resultNum);this.animation=new ee(j,h,0,250);p(this.animation,"end",Ub.prototype.ki.bind(this));this.animating=true;this.animation.play()};Ub.prototype.ki=function(){var a=z("preview-body-"+this.resultNum);a.innerHTML="";a.style.display="none";this.animating=false};var _rl_registerPreview=Io,_rl_showPreview=Jo,_rl_hidePreview=Ho;function yo(a){var b=og(a.URL),c=a.getElementById("regionselect").value;b.$a("cr",c);window.location=b}var _rs_regionSelectChanged=yo;function Gg(a){if(document.all||document.getElementById){a.disabled=true}else if(a){a.oldonclick=a.onclick;a.onclick=null;a.oldvalue=a.value;a.value="DISABLED"}}function Jg(a){if(document.all||document.getElementById){a.disabled=false}else if(a){a.onclick=a.oldonclick;a.value=a.oldvalue}}function $o(a,b){O(a,An,b);var c=i("send-status");Do();Vb(c,"error",MSG_SENDING)}function An(a){var b=i("send-status");if(a.readyState==4){var c=a.responseText;if(c==0){Vb(b,"error",MSG_SENT);i("to").value="";i("msg").value=
""}else{Vb(b,"","");if(c==1){Vb(i("from-comment"),"error",MSG_INVALID_EMAIL_ADDRESS)}else if(c==2){Vb(i("to-comment"),"error",MSG_INVALID_EMAIL_ADDRESS)}else{Vb(b,"error",MSG_UNKNOWN_ERROR)}}Jg(i("sendform").sendvideobutton)}}function Do(){Vb(i("from-comment"),"example",MSG_EG_EMAIL);Vb(i("to-comment"),"example",MSG_SEPARATE_EMAILS_W_COMMA)};function Hk(a){if(document.cookie.length>0){var b=document.cookie.indexOf(a+"=");if(b!=-1){b+=a.length+1;var c=document.cookie.indexOf(";",b);if(c==-1){c=document.cookie.length}return decodeURIComponent(document.cookie.substring(b,c))}}return null}function Wi(a,b,c){var d=new Date;d.setTime(d.getTime()+c*24*3600*1000);document.cookie=a+"="+encodeURIComponent(b)+(c===null?"":"; expires="+d.toGMTString())}var Eg="VideoEmailFromList",Fg="VideoEmailToList",Ce="from",De="to",Kg=30;function ep(){if(document.getElementById(Ce)!==
null){Wi(Eg,document.getElementById(Ce).value,Kg)}if(document.getElementById(De)!==null){Wi(Fg,document.getElementById(De).value,Kg)}}function Di(a,b){var c=Hk(b);if(c!==null&&document.getElementById(a)!==null){document.getElementById(a).value=c}}function Yn(){Di(Ce,Eg);Di(De,Fg)};function yp(a){var b=Qg(a);if(a.checked){Pi(b,a);a.form.toggleAll.checked=Un(a.form)}else{Qi(b,a);a.form.toggleAll.checked=false}}function Ko(a){var b=a.form;for(var c=0;c<b.elements.length;c++){var d=b.elements[c];if(ag(d)&&d.checked!=a.checked){var e=Qg(d);if(a.checked){Pi(e,d)}else{Qi(e,d)}}}}function Un(a){for(var b=0;b<a.elements.length;b++){var c=a.elements[b];if(ag(c)&&c.checked==false){return false}}return true}function Vn(a){for(var b=0;b<a.elements.length;b++){var c=a.elements[b];if(ag(c)&&
c.checked){return false}}return true}function ag(a){return a.id.indexOf("box_")==0}function Qg(a){return i("tr_"+a.id.substr(4))}function Ri(a,b){if(b&&b.checked){a.style.backgroundColor="#ffffff"}else{a.style.backgroundColor="#f0f0f0"}}function Pi(a,b){b.checked=true;if(a){Ri(a,b)}}function Qi(a,b){b.checked=false;if(a){Ri(a,b)}};function Bp(a,b){var c=document.getElementById("video_"+a+"_form"),d,e,f,g,h;for(var j=0;j<c.elements.length;++j){var k=c.elements[j];if(k.name=="contentId")d=k.value;if(k.name=="title")e=k.value;if(k.name=="description")f=k.value;if(k.name=="genre")g=k.value;if(k.name=="language")h=k.value}var l=Jb(),n=E(l,l,"uploadedvideos"),m=E(l,n,"update");m.setAttribute("contentId",d);E(l,m,"title",e);E(l,m,"description",f);var y=E(l,m,"genres");E(l,y,"genre",g);E(l,m,"language",h);var B="/uploadedvideos";if(b)B+=
b;O(B,Fn,l,null,'text/xml; charset="utf-8"');var F=document.getElementById("title-"+a);F.innerHTML=e}function Fn(a,b,c,d,e){};var ui="",Lj="";function ng(a){i("downloaddiv").innerHTML='    <iframe marginwidth="0" marginheight="0" src="'+a+'\t   " frameborder="0" width="1" height="1"></iframe>'}function mj(a,b){this.args=b;eval(a+"(this.args)")}function Uj(a){if(a.isInstalled=="true"){s(i("clientunknowndiv"));t(i("clientpresentdiv"));ng(ui)}else{s(i("clientunknowndiv"));t(i("clientmissingdiv"));ng(Lj);$j("setVars=fetchOnInstallUrl="+ui.replace("&","%2526"))}}function $j(a){a="container=videoPlayerSettings&"+a;Bi("datastoreflashdiv",
"http://video.google.com/datastore.swf",a)};function Rc(a){if(a.indexOf("/videorelated?")==0){if(a.indexOf("topframe")>0){O(a,zn)}else{O(a,yn);zd("relatedvids",false)}}else if(a.indexOf("/videomorefrom?")==0){O(a,vn);zd("morefromvids",false)}else if(a.indexOf("/videostats?")==0){O(a,Cn)}else if(a.indexOf("/videoevents?")==0){O(a,null)}else{return}}function Zo(){if(VP_next10DocId=="0"){zd("next10link",false);return}var a=window.location.search.split("docid=")[1].split("&")[0],b="",c=VP_myPlaylist.split(",");if(c.length>91){var d=c.length,e=
-1;for(var f=0;f<d;f++){if(a==c[f]){e=f;break}}var g=Math.max(0,e-40),h=Math.min(d,g+90);b=c.splice(g,h-g).join(",")}else{b=VP_myPlaylist}var j="/videoplaylistnext?docid="+VP_next10DocId+"&num=10&q="+b+"n"+a;Rc(xb(j))}function yn(a){if(a.readyState==4){Ki("relatedvidsactive",a.responseText);zd("relatedvids",true)}}function zn(a){if(a.readyState==4){no("related-videos",a.responseText)}}function vn(a){if(a.readyState==4){Ki("morefromvidsactive",a.responseText);zd("morefromvids",true)}}function Cn(a){}
function rn(a,b,c,d,e){var f=MSG_UNKNOWN_ERROR;if(a.readyState==4&&b){var g=a.responseXML.documentElement;if(g.tagName=="flag-response"){var h=K(g,"error-code"),j=K(g,"message");if(h){if(h.indexOf("ok")==0){s(i("flag-form"))}f=j}}}i("flag-message").innerHTML=f;t(i("flag-message"))}function sn(a,b,c,d,e){var f=MSG_UNKNOWN_ERROR;if(a.readyState==4&&b){var g=a.responseXML.documentElement;if(g.tagName=="label-response"){var h=K(g,"error-code"),j=K(g,"message");if(h){if(h.indexOf("ok")==0){s(i("label-form"))}f=
j}}}i("label-message").innerHTML=f;t(i("label-message"))}function Gk(a){var b="";if(!a.length&&a.checked){b=a.value}else{for(var c=0;c<a.length;c++){if(a[c].checked){b=a[c].value;break}}}return b}function Fk(a){var b=[],c=0;for(var d=0;d<a.length;d++){if(a.elements[d].type=="checkbox"&&a.elements[d].checked){b[c++]=a.elements[d].name}}return b}function kk(a,b,c,d){var e=Jb(),f=E(e,e,"flag-request");E(e,f,"docid",b);E(e,f,"cid",c);E(e,f,"flag",d);i("flag-submitting-feedback-message").innerHTML=MSG_SAVING_FEEDBACK;
t(i("flag-submitting-feedback-message"));O(a+"?frame=comment"+VP_langParam,rn,e,"flagorama",'text/xml; charset="UTF-8"')}function Wn(a,b,c,d,e){var f=Jb(),g=E(f,f,"label-request");E(f,g,"docid",b);E(f,g,"cid",c);for(var h=0;h<d.length;++h){E(f,g,"labels",d[h])}E(f,g,"annotations",e);i("label-submitting-feedback-message").innerHTML=MSG_SAVING_FEEDBACK;t(i("label-submitting-feedback-message"));O(a+"?frame=comment"+VP_langParam,sn,f,"labelorama",'text/xml; charset="UTF-8"')}function Nj(){uo();Ni();xo();
Oi("dmrcfp","p");Yi(false)}function uo(){var a=fb(VP_playlistSettingsCookieName);if(!a){vd()}else{if(a.charAt(0)=="1"){VP_autoplayEnabled=true}else{VP_autoplayEnabled=false}if(a.charAt(1)=="0"){VP_collapseDescr=false}else{VP_collapseDescr=true}VP_visibleTab=a.charAt(2)}}function xo(){if(i("collapselink")){if(VP_collapseDescr){i("collapselink").onclick()}else{i("expandlink").onclick()}}}function Oi(a,b){if(a!=null&&b!=null&&a.indexOf(VP_visibleTab)<0){VP_visibleTab=b}if(VP_visibleTab=="d"){i("ldetails").onclick()}else if(VP_visibleTab==
"m"){i("lmorefrom").onclick()}else if(VP_visibleTab=="r"){i("lrelated").onclick()}else if(VP_visibleTab=="c"&&i("lcomments")){i("lcomments").onclick()}else if(VP_visibleTab=="f"){i("lflag").onclick()}else{VP_visibleTab="p";if(i("lupnext")&&i("lupnext").onclick){i("lupnext").onclick()}}}function Xi(){Sc(VP_playlistCookieName,VP_myPlaylist,VP_cookieDomain);Sc(VP_playlistIndexCookieName,VP_myPlaylistIndex,VP_cookieDomain);Yi(true);vd()}function Uo(a){var b=fb(VP_playlistSettingsCookieName);if(!b){vd();
return}sc(VP_playlistSettingsCookieName,(a?"1":"0")+b.substring(1,3),VP_cookieDomain)}function Vo(a){VP_collapseDescr=a;var b=fb(VP_playlistSettingsCookieName);if(!b){vd();return}sc(VP_playlistSettingsCookieName,b.charAt(0)+(a?"1":"0")+b.charAt(2),VP_cookieDomain)}function Wo(a){VP_visibleTab=a;var b=fb(VP_playlistSettingsCookieName);if(!b){vd();return}sc(VP_playlistSettingsCookieName,b.substring(0,2)+a,VP_cookieDomain)}function vd(){sc(VP_playlistSettingsCookieName,(VP_autoplayEnabled?"1":"0")+(VP_collapseDescr?
"1":"0")+VP_visibleTab,VP_cookieDomain)}function Yi(a){if(a){Sc(VP_playlistParametersCookieName,"1",VP_cookieDomain)}else{Sc(VP_playlistParametersCookieName,"0",VP_cookieDomain)}}function mk(){VP_autoplayEnabled=!VP_autoplayEnabled;Uo(VP_autoplayEnabled);Ni()}function wd(a,b){var c=i(a);if(c&&c.style&&c.style){c.style.display=b}}function Ni(){if(VP_autoplayEnabled){wd("autoplayon","inline");wd("autoplayoff","none")}else{wd("autoplayon","none");wd("autoplayoff","inline")}}function zd(a,b){if(b){i(a+
"active").style.display="inline";i(a+"inactive").style.display="none"}else{i(a+"active").style.display="none";i(a+"inactive").style.display="inline"}}function Ki(a,b){var c="",d=b.split("\r\n"),e,f="",g;if(d[0]=="0"){c+="<br/><font size=-1>"+MSG_NO_MATCHING_VIDEOS+"</font>"}else{for(var h=1;h<d.length-1;h++){e=d[h].split("\t");f+=e[0]+","}c+="<table cellpadding=0 cellspacing=3>";for(var h=1;h<d.length-1;h++){e=d[h].split("\t");if(h%2==1){c+="<tr>"}c+="<td align=center class='standardfont' valign=top><a href='"+
e[7]+"' onclick='setSessionCookie(VP_playlistCookieName, \""+f+'", VP_cookieDomain); setSessionCookie(VP_playlistIndexCookieName, -1, VP_cookieDomain);\' rel="nofollow"><img border=1 height='+e[5]+" width=100 alt=''title=\""+e[3]+"\" src='"+e[1]+"'></a><br><a href='"+e[7]+"' onclick='setSessionCookie(VP_playlistCookieName, \""+f+'", VP_cookieDomain); setSessionCookie(VP_playlistIndexCookieName, -1, VP_cookieDomain);\' title="'+e[3]+'" rel="nofollow">'+e[2]+"</a><br><font color=green>"+e[4]+"</font></td>";
if(h==1){g=e[0]}if(h%2==0){c+="</tr>";c+="<tr><td height=10></td></tr>"}}if(h%2==0){c+="<td></td></tr>"}c+="</table>"}i(a).innerHTML=c}function no(a,b){var c=b.split("\r\n"),d,e=i(a);if(!e){return}var f=0;for(var g=1;g<c.length-1;g++){if(c[g].replace(/\s+/g,"").length>0){f++}else{c[g]=""}}if(c[0]=="0"||f==0){e.innerHTML="<br/><font size=-1>"+MSG_NO_MATCHING_VIDEOS+"</font>";return}if(e.hasChildNodes()){while(e.childNodes.length>=1){e.removeChild(e.firstChild)}}var h=e.style.display;e.style.display=
"none";var j=document.createElement("DIV");e.appendChild(j);j.className="related_videos_more_div";var k=document.createElement("A");j.appendChild(k);k.innerHTML=MSG_MORE_RELATED+"&nbsp;&raquo;";k.href=VP_relatedResultsSearchLink;var l=document.createElement("DIV");e.appendChild(l);l.className="related_videos_thumbstrip_div";for(var g=1;g<c.length-1;g++){if(c[g].length==0){continue}d=c[g].split("\t");var n=mo(d[0],d[1],d[2],d[3],d[5],rj(d[7]),d[8],VP_queryParam);l.appendChild(n)}e.style.display=h}
function mo(a,b,c,d,e,f,g,h){var j=Vm(d),k=Tj(100,parseInt(e,10),80,60),l=document.createElement("DIV"),n=document.createElement("CENTER");l.appendChild(n);var m=document.createElement("TABLE");n.appendChild(m);m.cellPadding=0;m.cellSpacing=0;var y=document.createElement("TR");m.appendChild(y);var B=document.createElement("TD");y.appendChild(B);B.vAlign="bottom";B.align="center";B.height=62;var F=document.createElement("DIV");B.appendChild(F);var va="favicon"+a;F.id=va;F.style.position="relative";
F.style.width="80px";F.style.height="60px";F.style.backgroundColor="black";F.style.border="1px solid blue";var ca=document.createElement("A");F.appendChild(ca);ca.href=f;ca.rel="nofollow";var Y=document.createElement("IMG");Y.onload=function(ye){Lg("http://"+g,va,14,14,40,6)};ca.appendChild(Y);Y.style.border="none";Y.style.width=k[0]+"px";Y.style.height=k[1]+"px";Y.style.marginLeft=(80-k[0])/2+"px";Y.style.marginTop=(60-k[1])/2+"px";Y.title=j;Y.alt="title="+Y.title;Y.src=b;y=document.createElement("TR");
m.appendChild(y);B=document.createElement("TD");y.appendChild(B);B.vAlign="top";B.align="center";F=document.createElement("DIV");B.appendChild(F);ca=document.createElement("A");F.appendChild(ca);ca.href=f;ca.rel="nofollow";ca.title=j;ca.innerHTML=c;var eb=document.createElement("DIV");eb.innerHTML=l.innerHTML;eb.className="related_video_thumb";return eb}function Tj(a,b,c,d){if(b==0||d==0){return[c,0]}var e=a/b,f=c/d;if(e>f){return[c,Math.round(c/e)]}else{return[Math.round(d*e),d]}}function Vb(a,b,
c){a.className=b;a.innerHTML=c}function ij(a){var b=i("VideoPlayback");b.SetVariable("seekTime",a/1000)}function ak(){var a=i("VideoPlayback");a.SetVariable("doPlay",true)}function Lk(a,b,c,d,e){var f=/&begin=[0-9]+/i,g=a.replace(f,"&begin="+Math.floor(d*1000)),h=window.open("http://"+window.location.host+"/videopopup?q="+qe(g)+"&docid="+qe(b)+"&fscid="+qe(c)+"&windowtitle="+qe(window.document.title+" - "+MSG_FULL_SCREEN),"GoogleVideo","toolbar=no,status=no,resizable=yes,scrollbars=0");h.focus()}
function fk(){window.moveTo(0,0);window.resizeTo(screen.availWidth,screen.availHeight)}function Bo(){document.body.scroll="no"}function xb(a){return a+"&ms="+(new Date).getTime()}function ck(){if(!VP_autoplayEnabled){return}if(VP_waitForSale){setTimeout($i,10000)}else{setTimeout($i,5000)}}function $i(){if(!VP_autoplayEnabled||rc("send")||rc("embed")||rc("videopurchasediv")||i("playlistNext").href==null){return}Xi();window.location.href=i("hidden_playlistNextAuto").href}function rc(a){return i(a).style.display==
""}var vc=["upnext","details","morefrom","related","comments","flag"];function sp(a){for(var b=0;b<vc.length;b++){var c=i(vc[b]);if(c){if(a==vc[b]){i("l"+vc[b]).className="nodecoration";t(c)}else{i("l"+vc[b]).className="decorated";s(c)}}}}var Dd,Wb,Ib,wg,Ej=2,ug=19;function xd(a,b){hp(a,b,"px")}function hp(a,b,c){wc=i(a);if(!wc||wc.style==null||b<0){return}var d=b.toString()+c;wc.style.height=d}function Ji(){if(!(Dd=window.innerHeight)){if(!(Dd=document.documentElement.clientHeight)){Dd=document.body.clientHeight}}Wb=
Dd-i("playvideoblock").offsetTop;wg=Wb-i("flashobjectplaceholder").offsetTop;xd("playvideoblock",Wb);xd("flashobjectplaceholder",wg);xd("playrightblock",Wb);xd("summary",Wb-Ej);Ib=Wb-i("abovecorner").offsetHeight-ug;xd("corner",Ib);if(this.onWindowResizeExtra){ko()}}function Tn(a,b){var c=document.createElement("div");i(b).appendChild(c);c.innerHTML=a}function xi(){var a=document.location.hash.substring(1),b=0,c;if(a.indexOf("h")!=-1){c=a.split("h");b=c[0]*60*60;a=c[1]}if(a.indexOf("m")!=-1){c=a.split("m");
b=c[0]*60+b;a=c[1]}if(a.indexOf("s")!=-1){c=a.split("s");b=c[0]*1+b}else{b=a*1+b}return b}function ho(){var a=i("playvideoblock");if(a){if(VP_divOffset!=a.offsetTop||a.clientHeight<a.scrollHeight){VP_divOffset=a.offsetTop;Ji()}}var b=xi();if(b!=VP_hashPos){VP_hashPos=b;ij(VP_hashPos*1000)}}function Xn(a){var b=/(^|\D)((\d:[0-5]?\d:[0-5]\d)|([0-5]?\d:[0-5]\d))(\D|$)/,c="";for(var d=a.search(b);d!=-1;d=a.search(b)){var e=a.match(b),f=e[0];if(f.search(/^\D/)!=-1){f=f.substring(1);d=d+1}if(f.search(/\D$/)!=
-1){f=f.substring(0,f.length-1)}c=c+a.substring(0,d);a=a.substring(d+f.length);var g=f;if(f.substring(0,1)==":"){g=f.substring(1)}var h=g.split(":"),j=0,k=0,l=0;switch(h.length){case 2:k=h[0];l=h[1];break;case 3:j=h[0];k=h[1];l=h[2];break}var n=(3600*j+60*k+1*l)*1000;if(n<=0||n>VP_videoDurationMs){c=c+f}else{var m="vpseek("+n+");doPlay();return false;";c=c+'<a onclick="'+m+'" href="#'+j+"h"+k+"m"+l+'s">'+f+"</a>"}}return c+a}function Tb(a,b){if(typeof b=="string"){a.value=b}a.style.color="black";
a.style.fontStyle="normal";a.onfocus=null}function fj(a,b,c,d,e,f,g){var h=Jb(),j=E(h,h,"review");E(h,j,"docid",b);if(f){E(h,j,"name",e?e:"");E(h,j,"text",f);E(h,j,"token",g)}else{i("commentlist").innerHTML="";i("gettingreviews").innerHTML=MSG_GETTING_REVIEWS;t(i("gettingreviews"))}E(h,j,"sort",c?"rating":"date");O(a+"?frame=comment"+VP_langParam,vi,h,d,'text/xml; charset="UTF-8"')}function vi(a,b,c,d,e){var f,g=i("summary"),h=true;i("gettingreviews").innerHTML="";s(i("gettingreviews"));i("reviewpublishstatus_top").innerHTML=
"";i("reviewpublishstatus_bottom").innerHTML="";if(!e||e!="top"&&e!="bottom"){f=i("commentlist")}else{f=i("reviewpublisherror_"+e)}if(!b||!a.responseXML){Uc(f,MSG_REVIEW_PUBLISH_ERROR,e)}else{var j=a.responseXML.documentElement;if(j.tagName=="error"){var k="errorin";k+=K(j,"errorsource");k+="_"+e;var l=K(j,"errormessage"),n=i(k);if(n){f=n}Uc(f,l,e)}else if(j.tagName!="reviews"){Uc(f,"Unknown error",e)}else{var m="";h=K(j,"value")=="true";var y=j.getElementsByTagName("review"),B;for(B=0;B<y.length;B++){var F=
y.item(B);m+='<div style="margin:2px 0pt .5em;" id="comment';m+=K(F,"id");m+='"><font size="-1"><b>';m+=K(F,"name");m+="</b>&nbsp;&nbsp;&nbsp;";if(VP_canUserDeleteComments){m+='<span align="right" class="markcomment" onclick="markComment(';m+=K(F,"id");m+=", 'OPS',";m+='MSG_MARKING);"';m+=' id="OPS'+K(F,"id")+'">';m+="<nobr>"+MSG_DELETE_COMMENT+"</nobr>";m+="</span>"}m+="<br/>";var va=K(F,"rating");if(va&&va>0){m+=Wj(va,va!=null);m+="&nbsp;"}m+="<font color=green>";m+="<nobr>"+K(F,"textdate")+"</nobr>";
m+="</font>";m+="&nbsp;";m+='<span align="right" class="markcomment" ';if(h){m+='onclick="markComment(';m+=K(F,"id");m+=", 'SPAM', MSG_MARKING);\""}else{m+="onclick='this.innerHTML = \"<br/>";m+=K(j,"reason");m+='"; this.className="error"\''}m+=' id="SPAM'+K(F,"id")+'">';m+="<nobr>"+MSG_MARK_AS_SPAM+"</nobr>";m+="</span>";m+="<br/>";m+=Xn(K(F,"text"));m+="</font></div>"}i("commentlist").innerHTML=m;s(i("leavecomment_top"));s(i("topreviewshown"));t(i("topreviewhidden"));t(i("commentlist"));if(y.length==
0){t(i("nocomments"));s(i("sortit"))}else{s(i("nocomments"));t(i("sortit"))}if(e=="top"){i("reviewtext_top").value="";Tb(i("reviewtext_bottom"),"");Tb(i("reviewername_bottom"),i("reviewername_top").value)}else if(e=="bottom"){i("reviewtext_bottom").value="";Tb(i("reviewtext_top"),"");Tb(i("reviewername_top"),i("reviewername_bottom").value);g.scrollTop=0}}}if(h){s(i("reviewpublisherror_top"));s(i("reviewpublisherror_bottom"));i("publishreview_bottom").disabled=false;i("publishreview_top").disabled=
false}else{var ca=K(j,"reason");i("reviewpublisherror_top").innerHTML=ca;i("reviewpublisherror_bottom").innerHTML=ca;t(i("reviewpublisherror_top"));t(i("reviewpublisherror_bottom"))}var Y=i("leavecomment_bottom");t(Y);t(i("reviewboxandtext_bottom"));t(i("reviewblankdiv"));if(g.scrollHeight-Y.scrollHeight>g.clientHeight){t(i("reviewboxandtext_top"));s(i("reviewblankdiv"))}else{s(i("reviewboxandtext_top"));t(i("reviewblankdiv"))}}var fo=[];function go(a,b,c){var d=Jb(),e=E(d,d,"review");E(d,e,"docid",
VP_docIdString);E(d,e,"mark",b);E(d,e,"id",a);if(b=="SPAM"){O(VP_commentsUrl+"?frame=markcomment"+VP_langParam,un,d,null,'text/xml; charset="UTF-8"');i("SPAM"+a).innerHTML=MSG_MARKING;i("SPAM"+a).className="";i("SPAM"+a).style.color="#cd3700";fo.push(setTimeout("hideEle(ele('comment"+a+"'))",250))}else{O(VP_commentsUrl+"?frame=markcomment"+VP_langParam,vi,d,null,'text/xml; charset="UTF-8"');i(b+a).innerHTML=c;i(b+a).style.textDecoration="none";i(b+a).style.color="#cd3700"}}function un(){}function Uc(a,
b,c){a.innerHTML=b;t(a);if(c){var d=i("summary");if(c!="bottom"){d.scrollTop=0}else{d.scrollTop=d.scrollHeight-d.clientHeight}}}function qo(a,b,c,d,e,f){var g=i("reviewpublisherror_"+c);if(e&&e.length>0){e=e.replace(/(^\s+)|(\s+$)/g,"").replace(/ {2,}/g," ")}if(!e||e.length==0||i("reviewtext_"+c).style.color!="black"){Uc(g,MSG_EMPTY_REVIEW,c);return}if(e.length>512){Uc(g,MSG_REVIEW_TOO_LONG,c);return}if(d&&d.length>60){Uc(g,MSG_NAME_TOO_LONG,c);return}i("publishreview_"+c).disabled=true;var h=i("reviewername_"+
c);if(h.style.color!="black"){Tb(h,"");d=""}else{d=d.replace(/(^\s+)|(\s+$)/g,"");h.value=d}s(i("reviewpublisherror_"+c));s(i("errorinname_"+c));i("reviewpublishstatus_"+c).innerHTML=MSG_ANNOTATION_SAVING;VP_commentName=d;ud();fj(a,b,rc("commentsbyrating"),c,d,e,f)}var Bg=false;function Bn(){var a=window.location.search.split("docid=")[1].split("&")[0];if(rc("sharelinks")){s(i("sharelinks"));s(i("send"));s(i("embed"));Rc(xb("/videostats?shareclick=close&docid="+a+"&frame=share"))}else{t(i("sharelinks"));
wi();Rc(xb("/videostats?shareclick=open&docid="+a+"&frame=share"))}if(VP_enableEmailAutocomplete&&!Bg){_initEmailAutocomplete(i("to"),"/data/contacts?max=250",false);Bg=true}}function wi(){var a=window.location.search.split("docid=")[1].split("&")[0];i("lsend").className="nodecoration";i("lembed").className="decorated";s(i("embed"));t(i("send"));i("sendform").from.focus();Rc(xb("/videostats?shareclick=send&docid="+a+"&frame=share"))}function qn(){var a=window.location.search.split("docid=")[1].split("&")[0];
i("lembed").className="nodecoration";i("lsend").className="decorated";s(i("send"));t(i("embed"));Rc(xb("/videostats?shareclick=embed&docid="+a+"&frame=share"))}function Qn(a){var b=i("to-label");if(VP_usePicker&&b){b.innerHTML='<a href="javascript:void(0)" onclick="handlePickerClick(event)">'+b.innerHTML+"</a>"}}function wn(a){Ah(VP_contactsBaseUrl+"/ui/");Gh("to",a)}var fg=false,dg=-1;function gp(a,b,c,d,e){if(d=="top"){i("communityRating").style.display="none"}i("rating_info_"+d).innerHTML=MSG_ANNOTATION_SAVING;
i("rating_info_"+d).style.display="inline";fg=true;qp(a,b,c,d,e)}function oo(a,b,c,d){fg=false;d.style.cursor="pointer";if(b=="top"){i("communityRating").style.display="none"}i("1_"+b).src=VP_largeStarLeftOff;i("2_"+b).src=VP_largeStarMidOff;i("3_"+b).src=VP_largeStarMidOff;i("4_"+b).src=VP_largeStarMidOff;i("5_"+b).src=VP_largeStarRightOff;if(a>=1){i("1_"+b).src=VP_largeStarLeftOn}if(a>=2){i("2_"+b).src=VP_largeStarMidOn}if(a>=3){i("3_"+b).src=VP_largeStarMidOn}if(a>=4){i("4_"+b).src=VP_largeStarMidOn}if(a>=
5){i("5_"+b).src=VP_largeStarRightOn}}function lo(a,b,c,d){d.style.cursor="default";if(!fg){if(c!=0&&b=="top"){var e=i("noRatingsYet");if(e){e.style.display="none"}i("communityRating").style.display="inline"}if(dg==-1){Tc(c,b)}else{Tc(dg,b)}}}function qp(a,b,c,d,e){var f=Jb(),g=E(f,f,"rating");E(f,g,"docid",b);E(f,g,"user_rating",c);E(f,g,"token",e);O(a+"?frame=rating"+VP_langParam,xn,f,d,'text/xml; charset="UTF-8"')}function xn(a,b,c,d,e){var f=i("rating_info_"+e);f.style.display="none";var g=i("noRatingsYet");
if(g){g.style.display="none"}var h=i("communityRating");if(h){h.style.display="inline"}f.innerHTML="";if(!b||!a.responseXML){f.innerHTML=MSG_UNKNOWN_ERROR}else{var j=a.responseXML.documentElement,k=parseInt(K(j,"user_rating"),10);if(j.tagName=="error"){var l=K(j,"errormessage");f.innerHTML=l;Tc(k,e)}else{var n=parseFloat(K(j,"community_rating")),m=parseInt(K(j,"num_raters"),10);if(window.VP_numVotes&&m<VP_numVotes){n=VP_numVotes*VP_communityRating+k;n/=VP_numVotes+1;m=VP_numVotes+1;if(VP_userHasRated){m=
VP_numVotes}}Tc(k,"top");Tc(k,"top_bottom");Tc(k,"bottom_bottom");if(e=="top"&&h){h.style.display="none"}f.innerHTML=MSG_ANNOTATION_SAVED;dg=k;Ap(n,m)}}f.style.display="inline";setTimeout("hideRatingsStatusMessage()",5000)}function zi(){var a=i("rating_info_top");if(a){a.style.display="none";a.innerHTML=""}var b=i("rating_info_top_bottom");if(b){b.style.display="none";b.innerHTML=""}var c=i("rating_info_bottom_bottom");if(c){c.style.display="none";c.innerHTML=""}var d=i("rating_info_top_frame");if(d){d.style.display=
"none";d.innerHTML=""}var e=i("noRatingsYet");if(e){e.style.display="none"}var f=i("communityRating");if(f){f.style.display="inline"}}function Tc(a,b){zi();var c={};for(var d=1;d<6;d++){c[d]=i(d+"_"+b)}if(c[1]){c[1].src=a>=1?VP_largeStarLeftOn:VP_largeStarLeftOff}if(c[2]){c[2].src=a>=2?VP_largeStarMidOn:VP_largeStarMidOff}if(c[3]){c[3].src=a>=3?VP_largeStarMidOn:VP_largeStarMidOff}if(c[4]){c[4].src=a>=4?VP_largeStarMidOn:VP_largeStarMidOff}if(c[5]){c[5].src=a>=5?VP_largeStarRightOn:VP_largeStarRightOff}}
function Wj(a,b){if(b&&a>0){var c="";for(var d=0;d<a;d++){c=c+"<img src="+VP_smallStar+">"}for(var e=a;e<5;e++){c=c+"<img src="+VP_smallStarEmpty+">"}return c}return" "}function Mj(){if(!VP_allowAnnotations){return}to();if(VP_commentName&&VP_commentName!=""){if(i("reviewername_bottom")){Tb(i("reviewername_bottom"),VP_commentName)}if(i("reviewername_top")){Tb(i("reviewername_top"),VP_commentName)}}if(VP_showMoreTags==true){Xc("common_tags","true")}else{Xc("common_tags","false")}}function to(){var a=
fb(VP_annotationsCookieName);if(!a){ud()}else{if(a.length>0&&a.charAt(0)=="1"){VP_showMoreTags=true}else{VP_showMoreTags=false}if(a.length>1){if(a.length>21&&a.charAt(1)=="."&&a.charAt(21)=="."){VP_commentName=a.substr(22)}else{VP_commentName=a.substr(1)}}else{VP_commentName=""}}}function ud(){var a=fb(VP_annotationsCookieName),b=VP_showMoreTags?"1":"0";if(a&&a.length>21&&a.charAt(1)=="."&&a.charAt(21)=="."){b+=a.substring(1,22)}b+=VP_commentName;sc(VP_annotationsCookieName,b,VP_cookieDomain)}function Ig(a){var b=
"targetId="+a+"&functionName=pause";Bi("proxyflashdiv","/proxy.swf",b)}function Bi(a,b,c){var d;if(sd){d='classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'}else{d='data="'+b+'"'}i(a).innerHTML="<object "+d+' width="1" height="1" id="VideoDataStore" align="middle"><param name="movie" value="'+b+'" /><param name="quality" value="best" /><param name="bgcolor" value="#ffffff" /><param name="scale" value="noScale" /><param name="wmode" value="window" /><param name="salign" value="TL" /><param name="FlashVars" value="'+
c+'" /></object>'}function Ap(a,b){for(var c=1;c<=5;c++){var d=i("star"+c);if(d){if(c-0.25<a){d.src=VP_smallStar}else if(c-0.75<=a){d.src=VP_smallStarHalf}else{d.src=VP_smallStarEmpty}}}if(i("numOfRaters")){i("numOfRaters").innerHTML=b}}function Rg(){if(!VP_subtitleEnabled){return""}else{return"&subtitle="+(VP_subtitleOn?"on":"off")}}function nj(a,b){if(a=="subtitleUpdate"){var c=b.split(",");VP_subtitleEnabled=c[0]=="true"?true:false;VP_subtitleOn=c[1]=="true"?true:false}}function zo(a){try{if(top==
window){window.location.replace(a)}}catch(b){}};function ko(){var a=i("videopurchasediv"),b=i("videopurchaseiframe");if(a&&b){a.style.height=Ib;b.style.height=Ib}}function tp(){s(i("thumbsetc"));s(i("purchaseorthumbs"));t(i("videopurchasediv"));t(i("thumbsorpurchase"));Ib=Wb-i("abovecorner").offsetHeight-ug;i("corner").style.height=Ib;i("videopurchasediv").style.height=Ib;i("videopurchaseiframe").style.height=Ib}function up(){s(i("videopurchasediv"));s(i("thumbsorpurchase"));t(i("thumbsetc"));t(i("purchaseorthumbs"))}function jo(a,b,c,d){t(i("directdownloaddiv"));
s(i("gvpdownloaddiv"));t(i("videodownloaddiv"));if(i("macdownloaddiv")){s(i("macdownloaddiv"))}if(i("ipoddownloaddiv")){s(i("ipoddownloaddiv"))}if(i("pspdownloaddiv")){s(i("pspdownloaddiv"))}t(i(d+"downloaddiv"));window.setTimeout(function(){ng(i(d+"downloadlink").href)},0);Ig(a)}function wo(a){window.parent._gb_refreshGaiaBar();window.location.href=a};function so(a){if(window.RegExp&&window.encodeURIComponent){var b=encodeURIComponent(document.f.q.value);if(a.href.indexOf("q=")!=-1){a.href=a.href.replace(/([&?])q=[^&$]*/,"$1q="+b)}else{a.href+="&q="+b}}}function xp(a,b){a.blur();_stopB(b);var c=document.getElementById("morenavtab");if(c===null){c=document.getElementById("morenavtabsmall")}var d="";if(c.style.display===""){d="none"}c.style.display=d;return false}function _stopB(a){if(!a){a=window.event}a.cancelBubble=true;if(a.stopPropagation){a.stopPropagation()}}
;window.animate=Ae;window.timedHideEle=cj;window.timedHideEleById=wp;window.appendElement=E;window.applyAnnotationsSettings=Mj;window.applyPlaylistSettings=Nj;window.backLinkClicked=Oj;window.blogpostInitialize=Qj;window.checkEnterKey=Sj;window.contents=Uj;window.DataStoreHandler=mj;window.DoFSCommand=nj;window.deleteCookie=Xj;window.disableButton=Gg;window.discloseTags=Xc;window.donePlaying=ck;window.doPause=Ig;window.doPlay=ak;window.dropdownNav=dk;window.ele=i;window.expand=fk;window.flagVideo=
kk;window.flash7OrHigher=lk;window.FlashRequest=oj;window.flipAutoplay=mk;window.getCheckedValue=Gk;window.getCheckedLabels=Fk;window.getElementValue=K;window.getNoCacheURL=xb;window.getPrefCookie=Ik;window.getSubtitleArgForFlash=Rg;window.getXmlDocument=Jb;window.goFullscreen=Lk;window.handleEmbedHTMLClick=qn;window.handlePickerClick=wn;window.handleSendEmailLinkClick=wi;window.handleSharePanelClick=Bn;window.hashTextToTime=xi;window.hideEle=s;window.hideRatingsStatusMessage=zi;window.insertHtmlInEle=
Tn;window.initializeResultBoxes=Sn;window.initPicker=Qn;window.isNoneSelected=Vn;window.isVisName="isVisible";window[window.isVisName]=rc;window.labelVideo=Wn;window.loadEmailCookieForFromAndTo=Yn;window.loginButtonClicked=Fi;window.massageReviewInput=Tb;window.markComment=go;window.monitorDivOffset=ho;window.onDownloadClick=jo;window.onWindowResize=Ji;window.outStars=lo;window.overStars=oo;window.proceedToSubmit=Li;window.processResponse=Mi;window.publishComment=qo;window.publishTag=ro;window.qs=
so;window.recordFlaggedVideo=vo;window.redirectToPurchase=wo;window.refreshVisibleTab=Oi;window.reloadWithFrameIfNeeded=zo;window.removeScrollBars=Bo;window.resizePlayer=Eo;window.ResultBox=tj;window.resultBoxNextClicked=Fo;window.resultBoxPrevClicked=Go;window.rowToggleAll=Ko;window.saveCollapseDescr=Vo;window.saveAnnotationsSettings=ud;window.saveVisibleTab=Wo;window.sendAjaxRequest=O;window.sendPlaylistNextRequest=Zo;window.sendRequest=Rc;window.sendSendLinkRequest=$o;window.setCookie=cp;window.setElementDisplay=
wd;window.setEmailCookieForFromAndTo=ep;window.setMaxLength=fp;window.setMyPlaylist=Xi;window.setPermanentCookie=sc;window.setSessionCookie=Sc;window.setStars=gp;window.showEle=t;window.submitButtonClicked=op;window.switchTab=sp;window.switchToPurchase=tp;window.switchToThumbs=up;window.tagInputFieldOnKeyDown=vp;window.togDisp=xp;window.toggleRow=yp;window.toggleVisibility=zp;window.updateReviews=fj;window.updateTags=we;window.uploadedVideoUpdateMetadata=Bp;window.vpseek=ij;window.VMT_deselectMenu=
vj;window.VMT_hideMenu=tg;window.VMT_hideMenuButtonFromTimeout=wj;window.VMT_hideMenuTimeout=xj;window.VMT_persistMenu=zj;window.VMT_selectMenu=Aj;window.VMT_showMenuFromButtonTimeout=Cj;window.VMT_toggleMenu=Dj;window.VP_linksArray=vc;
