 var Yc=Yc||{},t=this,aj=function(){};var Qa="function",I=function(a){return typeof a!="undefined"},S=function(a){return a instanceof Array||ra(a)&&typeof a.join==Qa&&typeof a.reverse==Qa},qa=function(a){return ra(a)&&typeof a.length=="number"},V=function(a){return typeof a=="string"},yd=function(a){return typeof a=="number"},Cb=function(a){return typeof a==Qa},ra=function(a){return a!=null&&typeof a=="object"},da=function(a){if(a.hasOwnProperty&&a.hasOwnProperty(Ob)){return a[Ob]}if(!a[Ob]){a[Ob]=
String(++Wi)}return a[Ob]},Ob="closure_hashCode_",Wi=0,ei=function(a){if(ra(a)){if(a.clone){return a.clone()}var b=S(a)?[]:{};for(var c in a){b[c]=ei(a[c])}return b}return a},F=function(a,b){var c=a.Id||[];c=c.concat(Array.prototype.slice.call(arguments,2));if(a.Jb){b=a.Jb}if(a.Ib){a=a.Ib}var d=function(){var e=c.concat(Array.prototype.slice.call(arguments));return a.apply(b,e)};d.Id=c;d.Jb=b;d.Ib=a;return d},pf=function(a,b){for(var c in b){a[c]=b[c]}},rf=function(){return(new Date).getTime()},Bb=
function(a,b){var c=b||{};for(var d in c){a=a.replace(new RegExp("\\{\\$"+d+"\\}","gi"),c[d])}return a},Li=function(a,b){t[a]=b},kb=function(a,b,c){a[b]=c};if(!Function.prototype.apply){Function.prototype.apply=function(a,b){var c=[],d,e;if(!a)a=t;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){return F.apply(null,
[this,a].concat(Array.prototype.slice.call(arguments,1)))};Function.prototype.inherits=function(a){function b(){}b.prototype=a.prototype;this.aa=a.prototype;this.prototype=new b;this.prototype.constructor=this};Function.prototype.mixin=function(a){pf(this.prototype,a)};if(!Array.prototype.push){Array.prototype.push=function(){for(var a=0;a<arguments.length;a++){this[this.length]=arguments[a]}return this.length}}if(!Array.prototype.pop){Array.prototype.pop=function(){var a;if(this.length){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(){var a;if(this.length){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(){var a=arguments.length;for(var b=this.length-1;b>=0;b--){this[b+a]=this[b]}for(var c=0;c<a;c++){this[c]=arguments[c]}return this.length}};var Zc=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(a[d]===b)return d}return-1},qc=function(a,b,c){if(a.$){a.$(b,c)}else if(Array.$){Array.$(a,b,c)}else{var d=a.length,e=V(a)?a.split(""):a;for(var f=0;f<d;f++){b.call(c,e[f],f,a)}}},ai=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=V(a)?a.split(""):
a;for(var h=0;h<d;h++){if(b.call(c,f[h],h,a)){e.push(f[h])}}return e},ci=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=V(a)?a.split(""):a;for(var f=0;f<d;f++){if(b.call(c,e[f],f,a)){return true}}return false},gb=function(a,b){if(a.contains){return a.contains(b)}return Zc(a,b)>-1},bi=function(a){return a.length==0},Zh=function(a){if(!S(a)){for(var b=a.length-1;b>=0;b--){delete a[b]}}a.length=0},Ie=function(a,b){var c=Zc(a,b),d;if(d=c!=-1){Je(a,
c)}return d},Je=function(a,b){return Array.prototype.splice.call(a,b,1).length==1},$h=function(a){if(S(a)){return a.concat()}else{var b=[];for(var c=0;c<a.length;c++){b[c]=a[c]}return b}},di=function(a,b,c,d){return Array.prototype.splice.apply(a,rc(arguments,1))},rc=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 ej=function(a,b,c){for(var d in a){b.call(c,a[d],d,a)}},fj=function(a){var b=0;for(var c in a){b++}return b},sf=function(a){var b=[];for(var c in a){b.push(a[c])}return b},Fc=function(a){var b=[];for(var c in a){b.push(c)}return b},cj=function(a,b){return b in a},dj=function(a,b){for(var c in a){if(a[c]==b){return true}}return false},gj=function(a){for(var b in a){return false}return true},bj=function(a){var b=Fc(a);for(var c=b.length-1;c>=0;c--){Dd(a,b[c])}},Dd=function(a,b){var c;if(c=b in a){delete a[b]}return c},
hj=function(a,b,c){a[b]=c};var Wa=function(a,b){return a.indexOf(b)==0},ya=function(a,b){var c=a.length-b.length;return c>=0&&a.lastIndexOf(b,c)==c},lj=function(a){return a.replace(/(\r\n|\r|\n)/g,"\n")},rj=function(a){return a.replace(/\s+$/,"")},Hd=function(a){return decodeURIComponent(a.replace(/\+/g," "))},Fd=function(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")},sa=function(a,b){if(b){return a.replace(tf,uf).replace(xf,yf).replace(vf,wf).replace(zf,Af)}else{if(!jj.test(a))return a;if(a.indexOf(kj)!=-1){a=a.replace(tf,
uf)}if(a.indexOf(nj)!=-1){a=a.replace(xf,yf)}if(a.indexOf(mj)!=-1){a=a.replace(vf,wf)}if(a.indexOf(oj)!=-1){a=a.replace(zf,Af)}return a}},kj="&",nj="<",mj=">",oj='"',uf="&amp;",yf="&lt;",wf="&gt;",Af="&quot;",tf=/&/g,xf=/</g,vf=/>/g,zf=/\"/g,jj=/[&<>\"]/,Id=function(a,b){return Fd(a.replace(/  /g," &#160;"),b)},qj=function(a){var b={};for(var c=0;c<a.length;c++){b[a.charAt(c)]=true}return b},ij=qj("()[]{}+-?*.$^|,:#<!\\"),Gd=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 ij){c="\\"+c}b+=c}return b},pj=function(a,b){return(new Array(b+1)).join(a)};var Ca=function(a,b){this.width=I(a)?Number(a):undefined;this.height=I(b)?Number(b):undefined};Ca.prototype.clone=function(){return new Ca(this.width,this.height)};Ca.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};Ca.equals=function(a,b){if(a==b){return true}if(!a||!b){return false}return a.width==b.width&&a.height==b.height};var ea=function(a,b){this.x=I(a)?Number(a):undefined;this.y=I(b)?Number(b):undefined};ea.prototype.clone=function(){return new ea(this.x,this.y)};
ea.prototype.toString=function(){return"("+this.x+", "+this.y+")"};ea.equals=function(a,b){if(a==b){return true}if(!a||!b){return false}return a.x==b.x&&a.y==b.y};ea.distance=function(a,b){var c=a.x-b.x,d=a.y-b.y;return Math.sqrt(c*c+d*d)};ea.squaredDistance=function(a,b){var c=a.x-b.x,d=a.y-b.y;return c*c+d*d};ea.difference=function(a,b){return new ea(a.x-b.x,a.y-b.y)};var Bd=function(a,b){a=Number(a);b=Number(b);this.start=a<b?a:b;this.end=a<b?b:a};Bd.prototype.clone=function(){return new Bd(this.start,
this.end)};Bd.prototype.toString=function(){return"["+this.start+", "+this.end+"]"};var nb=function(a,b,c,d){this.left=I(a)?Number(a):undefined;this.top=I(b)?Number(b):undefined;this.width=I(c)?Number(c):undefined;this.height=I(d)?Number(d):undefined};nb.prototype.clone=function(){return new nb(this.left,this.top,this.width,this.height)};nb.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};var Ad=function(a,b,c,d){this.top=I(a)?Number(a):undefined;
this.right=I(b)?Number(b):undefined;this.bottom=I(c)?Number(c):undefined;this.left=I(d)?Number(d):undefined};Ad.prototype.clone=function(){return new Ad(this.top,this.right,this.bottom,this.left)};Ad.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};var cc,M,Ic,Gf,Cj,dc,Bj,Hf,Ej,Md,Fj,Dj;(function(){var a=navigator.userAgent,b=typeof opera!="undefined",c=!b&&a.indexOf("MSIE")!=-1,d=!b&&a.indexOf("Safari")!=-1,e=!b&&navigator.product=="Gecko"&&!d,f=e&&navigator.vendor=="Camino",h=!b&&a.indexOf("Konqueror")!=-1,i=h||d,j,k;if(b){j=opera.version()}else{if(e){k=/rv\:([^\);]+)(\)|;)/}else if(c){k=/MSIE\s+([^\);]+)(\)|;)/}else if(d){k=/AppleWebKit\/(\S+)/}else if(h){k=/Konqueror\/([^\);]+)(\)|;)/}if(k){k.test(a);j=RegExp.$1}}var n=navigator.platform,
w=n.indexOf("Mac")!=-1,o=n.indexOf("Win")!=-1,K=n.indexOf("Linux")!=-1;cc=b;M=c;Ic=e;Gf=f;Cj=h;dc=d;Bj=i;Hf=j;Ej=navigator.platform;Md=w;Fj=o;Dj=K})();var Gj=function(a,b){if(!isNaN(a)&&!isNaN(b)){return a-b}var c=a.split("."),d=b.split("."),e=Math.min(c.length,d.length);for(var f=0;f<e;f++){if(typeof d[f]=="undefined"){return 1}if(typeof c[f]=="undefined"){return-1}if(!isNaN(c[f])&&isNaN(d[f])&&c[f]==parseInt(d[f],10)){return 1}if(isNaN(c[f])&&!isNaN(d[f])&&parseInt(c[f],10)==d[f]){return-1}if(d[f]>
c[f]){return-1}else if(d[f]<c[f]){return 1}}return 0},Hj=function(a){return Gj(Hf,a)>=0};var gd,wb=function(){if(!gd){gd=new va}return gd},hd=function(a){return a?new va(Rb(a)):wb()},Te=function(){return wb().Aa()},Qb=function(a){return wb().ad(a)},Za=Qb,ti=function(a,b,c){return wb().gg(a,b,c)},qi=ti,yi=function(a,b){ej(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{a[d]=c}})},uc=function(a){var b=a||t||window,c=b.document,d=(dc||c.compatMode=="CSS1Compat")&&!cc?c.documentElement:c.body;return new Ca(d.clientWidth,
d.clientHeight)},ui=function(a){var b=a||t||window,c=b.document,d,e;if(c.compatMode=="CSS1Compat"){d=c.documentElement.scrollLeft;e=c.documentElement.scrollTop}else{d=c.body.scrollLeft;e=c.body.scrollTop}return new ea(d,e)},id=function(a){return a.parentWindow||a.defaultView},Ra=function(a){var b=wb();return b.n.apply(b,arguments)},fd=function(a){return wb().createElement(a)},si=function(a,b){a.appendChild(b)},vi=function(a){var b;while(b=a.firstChild){a.removeChild(b)}},Sa=function(a){if(a.parentNode){a.parentNode.removeChild(a)}},
ed=function(a,b){if(typeof a.contains!="undefined"){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},Rb=function(a){return a.nodeType==9?a:a.ownerDocument||a.document},Pb=function(a,b){var c=[];Se(a,b,c,true);return c[0]},Se=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}}Se(f,b,c,d)}}},ri={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,
OBJECT:1},Re={IMG:" ",BR:"\n"},Ue=function(a){if(a.innerText){return lj(a.innerText)}var b=[];Ve(a,b,true);var c=b.join("").replace(/ +/g," ");if(c!=" "){c=c.replace(/^\s*/,"")}return c},Ve=function(a,b,c){if(a.nodeName in ri){}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 Re){b.push(Re[a.nodeName])}else{var d=a.firstChild;while(d){Ve(d,b,c);d=d.nextSibling}}},va=function(a){this.la=a||t.document||document};va.prototype.Aa=
function(){return this.la};va.prototype.ad=function(a){if(V(a)){return this.la.getElementById(a)}else{return a}};va.prototype.gg=function(a,b,c){var d=a||"*",e=c||this.la,f=e.getElementsByTagName(d);if(b){return ai(f,function(h){return gb(h.className.split(" "),b)})}else{return f}};va.prototype.n=function(a,b){if(M&&b&&b.name){a="<"+a+' name="'+sa(b.name)+'">'}var c=this.createElement(a);if(b){yi(c,b)}if(arguments.length>2){var d=rc(arguments,2),e=function(h){if(V(h)){this.appendChild(c,this.createTextNode(h))}else if(h){this.appendChild(c,
h)}};for(var f=0;f<d.length;f++){if(S(d[f])){qc(d[f],e,this)}else{e.call(this,d[f])}}}return c};va.prototype.createElement=function(a){return this.la.createElement(a)};va.prototype.createTextNode=function(a){return this.la.createTextNode(a)};va.prototype.appendChild=si;va.prototype.Ih=vi;va.prototype.removeNode=Sa;va.prototype.contains=ed;var Kd,Db=function(a,b,c){a.style[xj(b)]=c},Df=function(a,b){var c=Rb(a);if(c.defaultView&&c.defaultView.getComputedStyle){var d=c.defaultView.getComputedStyle(a,"");if(d){return d[b]}}if(a.currentStyle){return a.currentStyle[b]}else{return a.style[b]}},Ld=function(a,b,c){var d,e;if(b instanceof ea){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},Cf=function(a){var b;if(a){if(a.nodeType==9){b=a}else{b=Rb(a)}}else{b=
Te()}if(M&&b.compatMode!="CSS1Compat"){return b.body}return b.documentElement},ob=function(a){var b=Rb(a);if(!I(Kd)){Kd=Gf&&!Hj("1.8.0.11")}var c=new ea(0,0),d=Cf(b);if(a==d){return c}var e=null,f;if(a.getBoundingClientRect){f=a.getBoundingClientRect();var h=d.scrollTop,i=d.scrollLeft;c.x=f.left+i;c.y=f.top+h}else if(b.getBoxObjectFor&&!Kd){f=b.getBoxObjectFor(a);var j=b.getBoxObjectFor(d);c.x=f.screenX-j.screenX;c.y=f.screenY-j.screenY}else{c.x=a.offsetLeft;c.y=a.offsetTop;e=a.offsetParent;if(e!=
a){while(e){c.x+=e.offsetLeft;c.y+=e.offsetTop;e=e.offsetParent}}if(cc||dc&&Df(a,"position")=="absolute"){c.y-=b.body.offsetTop}e=a.parentNode;while(e&&e!=d){c.x-=e.scrollLeft;if(!cc||e.tagName!="TR"){c.y-=e.scrollTop}e=e.parentNode}}return c},bb=function(a,b,c){var d=ob(a);if(b instanceof ea){c=b.y;b=b.x}var e=b-d.x,f=c-d.y;Ld(a,a.offsetLeft+e,a.offsetTop+f)},Ja=function(a,b,c){var d;if(b instanceof Ca){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},W=function(a){if(Df(a,"display")!="none"){return new Ca(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 Ca(e,f)},xj=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})},Ef=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+")"}},za=function(a,b){a.style.display=b?"":"none"};var dd=function(a){return a.className.split(" ")},ja=function(a,b){var c=dd(a),d=rc(arguments,1),e=1;for(var f=0;f<d.length;f++){if(!gb(c,d[f])){c.push(d[f]);e&=1}else{e&=0}}a.className=c.join(" ");return Boolean(e)},oa=function(a,b){var c=dd(a),d=rc(arguments,1),e=0;for(var f=0;f<c.length;f++){if(gb(d,c[f])){di(c,f--,1);e++}}a.className=c.join(" ");return e==d.length},vb=function(a,b){return gb(dd(a),b)};var uj=function(a){if(typeof a.s=="function"){return a.s()}if(qa(a)||V(a)){return a.length}return fj(a)},Gc=function(a){if(typeof a.D=="function"){return a.D()}if(V(a)){return a.split("")}if(qa(a)){var b=[],c=a.length;for(var d=0;d<c;d++){b.push(a[d])}return b}return sf(a)},Bf=function(a){if(typeof a.fa=="function"){return a.fa()}if(typeof a.D=="function"){return undefined}if(qa(a)||V(a)){var b=[],c=a.length;for(var d=0;d<c;d++){b.push(d)}return b}return Fc(a)},tj=function(a,b){if(typeof a.contains==
"function"){return a.contains(b)}if(qa(a)||V(a)){return gb(a,b)}return dj(a,b)},vj=function(a){if(typeof a.Ea=="function"){return a.Ea()}if(qa(a)||V(a)){return bi(a)}return gj(a)},sj=function(a){if(typeof a.clear=="function"){a.clear()}else if(qa(a)){Zh(a)}else{bj(a)}},Ia=function(a,b,c){if(typeof a.$=="function"){a.$(b,c)}else if(qa(a)||V(a)){qc(a,b,c)}else{var d=Bf(a),e=Gc(a),f=e.length;for(var h=0;h<f;h++){b.call(c,e[h],d&&d[h],a)}}},wj=function(a,b,c){if(typeof a.some=="function"){return a.some(b,
c)}if(qa(a)||V(a)){return ci(a,b,c)}var d=Bf(a),e=Gc(a),f=e.length;for(var h=0;h<f;h++){if(b.call(c,e[h],d&&d[h],a)){return true}}return false};var q=function(a){this.c={};if(a){this.Hb(a)}};q.ah=":";q.prototype.o=0;q.prototype.s=function(){return this.o};q.Ke=function(a){return a.charAt(0)==q.ah};q.zi=function(a){return a.substring(1)};q.vd=function(a){return q.ah+a};q.prototype.D=function(){var a=[];for(var b in this.c){if(q.Ke(b)){a.push(this.c[b])}}return a};q.prototype.fa=function(){var a=[];for(var b in this.c){if(q.Ke(b)){a.push(q.zi(b))}}return a};q.prototype.K=function(a){return q.vd(a)in this.c};q.prototype.Nc=function(a){for(var b in this.c){if(q.Ke(b)&&
this.c[b]==a){return true}}return false};q.prototype.Ea=function(){return this.o==0};q.prototype.clear=function(){this.c={};this.o=0};q.prototype.remove=function(a){if(Dd(this.c,q.vd(a))){this.o--;return true}return false};q.prototype.get=function(a,b){var c=q.vd(a);if(c in this.c){return this.c[c]}return b};q.prototype.set=function(a,b){var c=q.vd(a);if(!(c in this.c)){this.o++}this.c[c]=b};q.prototype.Hb=function(a){var b,c;if(a instanceof q){b=a.fa();c=a.D()}else{b=Fc(a);c=sf(a)}for(var d=0;d<
b.length;d++){this.set(b[d],c[d])}};q.prototype.clone=function(){return new q(this)};q.s=function(a){return uj(a)};q.D=function(a){return Gc(a)};q.fa=function(a){if(typeof a.fa==Qa){return a.fa()}var b=[];if(qa(a)){for(var c=0;c<a.length;c++){b.push(c)}}else{return Fc(a)}return b};q.K=function(a,b){if(typeof a.K==Qa){return a.K(b)}if(qa(a)){return b<a.length}return cj(a,b)};q.Nc=function(a,b){return tj(a,b)};q.Ea=function(a){return vj(a)};q.clear=function(a){sj(a)};q.remove=function(a,b){if(typeof a.remove==
Qa){return a.remove(b)}if(qa(a)){return Je(a,b)}return Dd(a,b)};q.add=function(a,b,c){if(typeof a.add==Qa){a.add(b,c)}else if(q.K(a,b)){throw Error('The collection already contains the key "'+b+'"');}else{hj(a,b,c)}};q.get=function(a,b,c){if(typeof a.get==Qa){return a.get(b,c)}if(q.K(a,b)){return a[b]}return c};q.set=function(a,b,c){if(typeof a.set==Qa){a.set(b,c)}else{a[b]=c}};var Ha=function(a){this.c=new q;if(a){this.Hb(a)}},Jd=function(a){var b=typeof a;if(b=="object"){return"o"+da(a)}else{return b.substr(0,1)+a}};Ha.prototype.s=function(){return this.c.s()};Ha.prototype.add=function(a){this.c.set(Jd(a),a)};Ha.prototype.Hb=function(a){var b=Gc(a),c=b.length;for(var d=0;d<c;d++){this.add(b[d])}};Ha.prototype.remove=function(a){return this.c.remove(Jd(a))};Ha.prototype.clear=function(){this.c.clear()};Ha.prototype.Ea=function(){return this.c.Ea()};Ha.prototype.contains=
function(a){return this.c.K(Jd(a))};Ha.prototype.D=function(){return this.c.D()};Ha.prototype.clone=function(){return new Ha(this)};var l=function(a){var b;if(a instanceof l){this.wc(a.we());this.xc(a.ze());this.sc(a.Vb());this.vc(a.yb());this.uc(a.fd());this.Eb(a.gd().clone());this.tc(a.pe())}else if(a&&(b=String(a).match(l.Bi()))){this.wc(b[1],true);this.xc(b[2],true);this.sc(b[3],true);this.vc(b[4]);this.uc(b[5],true);this.Eb(b[6]);this.tc(b[7],true)}else{this.O=new l.QueryData(null,this)}};l.RANDOM_PARAM="zx";l.prototype.U="";l.prototype.jb="";l.prototype.ma="";l.prototype.ta=null;l.prototype.ha="";l.prototype.O=null;l.prototype.na=
"";l.prototype.toString=function(){if(this.I){return this.I}var a=[];if(this.U){a.push(l.$d(this.U,l.Fh),":")}if(this.ma){a.push("//");if(this.jb){a.push(l.$d(this.jb,l.Fh),"@")}a.push(l.$f(this.ma));if(this.ta!=null){a.push(":",String(this.yb()))}}if(this.ha){a.push(l.$d(this.ha,l.bj))}var b=String(this.O);if(b){a.push("?",b)}if(this.na){a.push("#",l.$f(this.na))}return this.I=a.join("")};l.prototype.resolve=function(a){var b=this.clone(),c=a.Lg();if(c){b.wc(a.we())}else{c=a.Mg()}if(c){b.xc(a.ze())}else{c=
a.kd()}if(c){b.sc(a.Vb())}else{c=a.ld()}var d=a.fd();if(c){b.vc(a.yb())}else{c=a.Ig();if(c){if(!/^\//.test(d)){d=b.fd().replace(/\/?[^\/]*$/,"/"+d)}}}if(c){b.uc(d)}else{c=a.Jg()}if(c){b.Eb(a.qg())}else{c=a.Hg()}if(c){b.tc(a.pe())}return b};l.prototype.clone=function(){return new l.create(this.U,this.jb,this.ma,this.ta,this.ha,this.O.clone(),this.na)};l.prototype.we=function(){return this.U};l.prototype.wc=function(a,b){delete this.I;this.U=b?l.Ob(a):a;if(this.U){this.U=this.U.replace(/:$/,"")}return this};
l.prototype.Lg=function(){return!(!this.U)};l.prototype.ze=function(){return this.jb};l.prototype.xc=function(a,b){delete this.I;this.jb=b?l.Ob(a):a;return this};l.prototype.Mg=function(){return!(!this.jb)};l.prototype.Vb=function(){return this.ma};l.prototype.sc=function(a,b){delete this.I;this.ma=b?l.Ob(a):a;return this};l.prototype.kd=function(){return!(!this.ma)};l.prototype.yb=function(){return this.ta};l.prototype.vc=function(a){delete this.I;if(a){a=Number(a);if(isNaN(a)||a<0){throw Error("Bad port number "+
a);}this.ta=a}else{this.ta=null}return this};l.prototype.ld=function(){return this.ta!=null};l.prototype.fd=function(){return this.ha};l.prototype.uc=function(a,b){delete this.I;this.ha=b?l.Ob(a):a;return this};l.prototype.Ig=function(){return!(!this.ha)};l.prototype.Jg=function(){return this.O!==null&&this.O.toString()!==""};l.prototype.Eb=function(a){delete this.I;if(a instanceof l.QueryData){this.O=a;this.O.l=this}else{this.O=new l.QueryData(a,this)}return this};l.prototype.qg=function(){return this.O.toString()};
l.prototype.gd=function(){return this.O};l.prototype.B=function(a,b){delete this.I;this.O.set(a,b);return this};l.prototype.Wh=function(a,b){delete this.I;if(!S(b)){b=[String(b)]}this.O.bi(a,b);return this};l.prototype.dd=function(a){return this.O.get(a)};l.prototype.pe=function(){return this.na};l.prototype.tc=function(a,b){delete this.I;this.na=b?l.Ob(a):a;return this};l.prototype.Hg=function(){return!(!this.na)};l.prototype.Kg=function(a){return(!this.kd()&&!a.kd()||this.Vb()==a.Vb())&&(!this.ld()&&
!a.ld()||this.yb()==a.yb())};l.parse=function(a){return a instanceof l?a.clone():new l(a)};l.create=function(a,b,c,d,e,f,h){var i=new l;i.wc(a);i.xc(b);i.sc(c);i.vc(d);i.uc(e);i.Eb(f);i.tc(h);return i};l.resolve=function(a,b){if(!(a instanceof l)){a=l.parse(a)}if(!(b instanceof l)){b=l.parse(b)}return a.resolve(b)};l.Ob=function(a){return a?Hd(a):""};l.$f=function(a){if(V(a)){return encodeURIComponent(a)}return null};l.$d=function(a,b){if(V(a)){return encodeURI(a).replace(b,l.vi)}return null};l.vi=
function(a){var b=a.charCodeAt(0);return"%"+(b>>4&15).toString(16)+(b&15).toString(16)};l.ef=null;l.Bi=function(){if(!l.ef){l.ef=/^(?:([^:\/?#]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/?#:@]*)(?::([0-9]+))?)?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/}return l.ef};l.Fh=/[#\/\?@]/g;l.bj=/[\#\?]/g;l.haveSameDomain=function(a,b){var c=new l(a),d=new l(b);return c.Kg(d)};l.QueryData=function(a,b){this.F=new q;this.l=b;if(a){var c=a.split("&");for(var d=0;d<c.length;d++){var e=c[d].split("=");this.add(Hd(e[0]),e.length>
1?Hd(e[1]):"")}}};l.QueryData.prototype.o=0;l.QueryData.prototype.s=function(){return this.o};l.QueryData.prototype.add=function(a,b){this.Ab();if(!this.K(a)){this.F.set(a,[b])}else{this.F.get(a).push(b)}this.o++;return this};l.QueryData.prototype.remove=function(a){if(this.F.K(a)){this.Ab();this.o-=this.F.get(a).length;return this.F.remove(a)}return false};l.QueryData.prototype.clear=function(){this.Ab();this.F.clear();this.o=0};l.QueryData.prototype.Ea=function(){return this.o==0};l.QueryData.prototype.K=
function(a){return this.F.K(a)};l.QueryData.prototype.Nc=function(a){var b=this.D();return gb(b,a)};l.QueryData.prototype.fa=function(){var a=this.F.D(),b=this.F.fa(),c=[];for(var d=0;d<b.length;d++){for(var e=0;e<a[d].length;e++){c.push(b[d])}}return c};l.QueryData.prototype.D=function(a){if(a){if(this.K(a)){return this.F.get(a)}else{return[]}}else{var b=this.F.D();return Array.prototype.concat.apply([],b)}};l.QueryData.prototype.set=function(a,b){this.Ab();if(this.K(a)){var c=this.F.get(a);this.o-=
c.length}this.F.set(a,[b]);this.o++;return this};l.QueryData.prototype.get=function(a,b){if(this.K(a)){return this.F.get(a)[0]}else{return b}};l.QueryData.prototype.bi=function(a,b){this.Ab();if(this.K(a)){var c=this.F.get(a);this.o-=c.length}if(b.length>0){this.F.set(a,b);this.o+=b.length}};l.QueryData.prototype.toString=function(){if(this.I){return this.I}var a=[],b=this.fa(),c=this.D();for(var d=0;d<b.length;d++){a.push(encodeURIComponent(b[d])+"="+encodeURIComponent(c[d]))}return this.I=a.join("&")};
l.QueryData.prototype.Ab=function(){delete this.I;if(this.l){delete this.l.I}};l.QueryData.prototype.clone=function(){var a=new l.QueryData;a.F=this.F.clone();return a};var Ed=function(){this.Xa=M?[]:"";for(var a=0;a<arguments.length;a++){this.append(arguments[a])}};Ed.prototype.append=function(){if(M){for(var a=0;a<arguments.length;a++){this.Xa.push(arguments[a])}}else{for(var a=0;a<arguments.length;a++){this.Xa+=arguments[a]}}return this};Ed.prototype.clear=function(){if(M){this.Xa.length=0}else{this.Xa=""}};Ed.prototype.toString=function(){if(M){var a=this.Xa.join("");this.clear();if(a){this.Xa.push(a)}return a}else{return this.Xa}};var ki=function(a){var b=[];for(var c=0;c<a.length;c++){if(S(a[c])){b.push(ki(a[c]))}else{b.push(a[c])}}return"[ "+b.join(", ")+" ]"},li=function(a,b){try{var c=pi(a),d="Message: "+sa(c.message)+'\nUrl: <a href="view-source:'+c.filename+'" target="_new">'+c.fileName+"</a>\nLine: "+c.lineNumber+"\n\nBrowser stack:\n"+sa(c.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+sa(oi(b)+"-> ");return d}catch(e){return"Exception trying to expose exception! You win, we lose. "+e}},pi=function(a){return typeof a==
"string"?{message:a,name:"Unknown error",lineNumber:"Not available",fileName:t.document.location.href,stack:"Not available"}:(!a.lineNumber||!a.fileName||!a.stack?{message:a.message,name:a.name,lineNumber:"Not available",fileName:t.document.location.href,stack:"Not available"}:a)},oi=function(a){return Qe(a||arguments.callee.caller,[])},Qe=function(a,b){var c=[];if(gb(b,a)){c.push("[...circular reference...]")}else if(a&&b.length<50){c.push(ni(a)+"(");var d=a.arguments;for(var e=0;e<d.length;e++){if(e>
0){c.push(", ")}var f=typeof d[e]=="object"&&d[e].toSource?d[e].toSource():String(d[e]);if(f.length>40){f=f.substr(0,40)+"..."}c.push(f)}b.push(a);c.push(")\n");try{c.push(Qe(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("")},ni=function(a){if(!tc[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,".")}tc[a]=c}else{tc[a]="[Anonymous]"}}return tc[a]},
mi=function(a,b,c,d){if(document.all){return""}var e=b||t,f=c||"",h=d||0;if(e==a){return f}for(var i in e){if(i=="Packages"||i=="sun"||i=="netscape"||i=="java"){continue}if(e[i]==a){return f+i}if((typeof e[i]=="function"||typeof e[i]=="object")&&e[i]!=t&&e[i]!=t.document&&e.hasOwnProperty(i)&&h<6){var j=mi(a,e[i],f+i+".",h+1);if(j)return j}}return""},tc={};var X=function(a){this.Fa=a;this.m=null;this.qi={};this.Gg=[]};X.prototype.Ra=null;var Ea=function(a,b){this.name=a;this.value=b},Sl=new Ea("OFF",Infinity),Oe=new Ea("SHOUT",1200),ad=new Ea("SEVERE",1000),bd=new Ea("WARNING",900),Ne=new Ea("INFO",800),ji=new Ea("CONFIG",700),Me=new Ea("FINE",500),Ql=new Ea("FINER",400),Rl=new Ea("FINEST",300),Pl=new Ea("ALL",0),Pe=function(a){return Le(a)};X.prototype.bd=function(){return this.Fa};X.prototype.qa=function(){return this.m};X.prototype.yd=function(a){this.Ra=
a};X.prototype.wb=function(){return this.Ra};X.prototype.qd=function(a){if(this.Ra){return a.value>=this.Ra.value}if(this.m){return this.m.qd(a)}return false};X.prototype.log=function(a,b,c){if(!this.qd(a)){return}var d=new ua(a,String(b),this.Fa);if(c){d.Sh(c);d.Th(li(c,arguments.callee.caller))}this.eh(d)};X.prototype.severe=function(a,b){this.log(ad,a,b)};X.prototype.warning=function(a,b){this.log(bd,a,b)};X.prototype.info=function(a,b){this.log(Ne,a,b)};X.prototype.fine=function(a,b){this.log(Me,
a,b)};X.prototype.eh=function(a){if(!this.qd(a.wb())){return}var b=this;while(b){b.Mf(a);b=b.qa()}};X.prototype.Mf=function(a){for(var b=0;b<this.Gg.length;b++){this.Gg[b](a)}};X.prototype.Xh=function(a){this.m=a};X.prototype.Ff=function(a,b){this.qi[a]=b};var $c={},sc=null,hi=function(){if(!sc){sc=new X("");$c[""]=sc;sc.yd(ji)}},Le=function(a){hi();var b=$c[a];if(b==null){b=gi(a)}return b},gi=function(a){var b=new X(a),c=a.split("."),d=c[c.length-1];c.length=c.length-1;var e=c.join("."),f=Le(e);
f.Ff(d,b);b.Xh(f);$c[a]=b;return b};var ua=function(a,b,c){this.Dj=ii++;this.jj=rf();this.Ra=a;this.Si=b;this.Oi=c};ua.prototype.fe=null;ua.prototype.ee=null;var ii=0;ua.prototype.re=function(){return this.Oi};ua.prototype.hg=function(){return this.fe};ua.prototype.Sh=function(a){this.fe=a};ua.prototype.ig=function(){return this.ee};ua.prototype.Th=function(a){this.ee=a};ua.prototype.wb=function(){return this.Ra};ua.prototype.yd=function(a){this.Ra=a};ua.prototype.se=function(){return this.Si};ua.prototype.te=function(){return this.jj};var L=function(a){this.Bh=a||"";this.Hh=rf()};L.prototype.zd=true;L.prototype.rf=true;L.prototype.qf=true;L.prototype.bb=function(a){throw Error("Must override formatRecord");};L.fg=function(a){var b=new Date(a.te());return L.cb(b.getFullYear()-2000)+L.cb(b.getMonth()+1)+L.cb(b.getDate())+" "+L.cb(b.getHours())+":"+L.cb(b.getMinutes())+":"+L.cb(b.getSeconds())+"."+L.cb(Math.floor(b.getMilliseconds()/10))};L.cb=function(a){if(a<10){return"0"+a}return String(a)};L.rg=function(a,b){var c=a.te()-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};var Ke=function(a){L.call(this,a)};Ke.inherits(L);Ke.prototype.bb=function(a){var b;switch(a.wb()){case Oe:b="dbg-sh";break;case ad:b="dbg-sev";break;case bd:b="dbg-w";break;case Ne:b="dbg-i";break;case Me:default:b="dbg-f";break}var c=[];c.push(this.Bh);c.push(" ");if(this.zd){c.push("["+L.fg(a)+"] ")}if(this.rf){c.push("[");c.push(Id(L.rg(a,this.Hh)));c.push("s] ")}if(this.qf){c.push("[");c.push(sa(a.re()));
c.push("] ")}c.push('<span class="'+b+'">');c.push(Fd(Id(sa(a.se()))));if(a.hg()){c.push("<br>");c.push(Fd(Id(a.ig())))}c.push("</span><br>");return c.join("")};var cd=function(a){L.call(this,a)};cd.inherits(L);cd.prototype.bb=function(a){var b=[];b.push(this.Bh);b[b.length]=" ";if(this.zd){b.push("[");b.push(L.fg(a));b.push("] ")}if(this.rf){b.push("[");b.push(L.rg(a,this.Hh));b.push("s] ")}if(this.qf){b.push("["+a.re()+"] ")}b.push(a.se());b.push("\n");return b.join("")};var fi=function(){this.Cj=this.sh.bind(this);this.je=new cd;this.je.zd=false;this.xj=false;this.Ni=""};fi.prototype.sh=function(a){if(window.console&&window.console["firebug"]){var b=this.je.bb(a);switch(a.wb()){case Oe:window.console["info"](b);break;case ad:window.console["error"](b);break;case bd:window.console["warn"](b);break;default:window.console["debug"](b);break}}else if(window.console){window.console.log(b)}else{this.Ni+=this.je.bb(a)}};var wa=function(){};wa.prototype.get=function(){};wa.prototype.set=function(a){};wa.prototype.p=function(a){};wa.prototype.i=function(a){};wa.prototype.r=function(a){};wa.prototype.V=function(a,b){};wa.prototype.g=function(){};wa.prototype.Va=function(a){};wa.prototype.h=function(){};wa.prototype.load=function(){};wa.prototype.N=function(){};var Sb="NOT_LOADED",Ua=function(){};Ua.prototype.set=function(a){};Ua.prototype.p=function(a){return new $a};Ua.prototype.i=function(a,b){return null};Ua.prototype.r=
function(a){return null};Ua.prototype.h=function(){var a="",b=this.g();if(this.xb&&this.xb()){a=this.xb().h()+(b.indexOf("[")!=-1?"":"/")}return a+b};Ua.prototype.load=function(){};Ua.prototype.xb=null;var xb=function(){};xb.prototype.add=function(a){};xb.prototype.get=function(a){};xb.prototype.oa=function(a){};xb.prototype.s=function(){};xb.prototype.Ha=function(a,b){};xb.prototype.removeNode=function(a){};var aa=function(a){this.c={};this.Cb=[];this.Pa={};if(a){for(var b=0,c;c=a[b];b++){this.add(c)}}};
aa.prototype.add=function(a){this.Cb.push(a);var b=a.g();if(b!=null){this.c[b]=a;this.Pa[b]=this.Cb.length-1}};aa.prototype.get=function(a){return this.c[a]||null};aa.prototype.oa=function(a){return this.Cb[a]||null};aa.prototype.s=function(){return this.Cb.length};aa.prototype.Ha=function(a,b){if(b==null){this.removeNode(a)}else{var c=this.Pa[a];if(c!=null){this.c[a]=b;this.Cb[c]=b}else{this.add(b)}}};aa.prototype.removeNode=function(a){var b=this.Pa[a];if(b!=null){this.Cb.splice(b,1);delete this.c[a];
delete this.Pa[a];for(var c in this.Pa){if(this.Pa[c]>b){this.Pa[c]--}}}return b!=null};aa.prototype.indexOf=function(a){return this.Pa[a]};var $a=function(){aa.call(this)};$a.inherits(aa);$a.prototype.add=function(a){throw Error("Can't add to EmptyNodeList");};var ba=Pe("goog.ds");var Y=function(){this.qb=new aa;this.Lf=new q;this.Ve={};this.hc={};this.Jf={};this.xi=0;this.wj={}},kd=null;Y.inherits(wa);var J=function(){if(!kd){kd=new Y}return kd};Y.prototype.Gf=function(a,b,c){var d=!(!b),e=c||a.g();if(!Wa(e,"$")){e="$"+e}a.Va(e);this.qb.add(a);this.Lf.set(e,d)};Y.prototype.$c=function(a){if(this.Jf[a]){return this.Jf[a].Xb()}else{return this.qb.get(a)}};Y.prototype.get=function(){return this.qb};Y.prototype.set=function(a){throw Error("Can't set on DataManager");};Y.prototype.p=
function(a){if(a){return new aa([this.i(a)])}else{return this.qb}};Y.prototype.i=function(a){return this.$c(a)};Y.prototype.r=function(a){var b=this.$c(a);return b?b.get():null};Y.prototype.g=function(){return""};Y.prototype.h=function(){return""};Y.prototype.load=function(){var a=this.qb.s();for(var b=0;b<a;b++){var c=this.qb.oa(b),d=this.Lf.get(c.g());if(d){c.load()}}};Y.prototype.N=function(){return false};Y.prototype.mb=function(a,b,c){var d=0;if(ya(b,"/...")){d=1000;b=b.substring(0,b.length-
4)}else if(ya(b,"/*")){d=1;b=b.substring(0,b.length-2)}c=c||"";var e=b+":"+c+":"+da(a),f={dataPath:b,id:c,fn:a},h=Q(b),i=da(a);if(!this.hc[i]){this.hc[i]={}}this.hc[i][e]={listener:f,items:[]};while(h){var j={listener:f,maxAncestors:d},k=this.Ve[h.jd()];if(k==null){k={};this.Ve[h.jd()]=k}k[e]=j;d=0;h=h.qa();this.hc[i][e].items.push({key:e,obj:k})}};Y.prototype.Kh=function(a,b,c){if(b&&ya(b,"/...")){b=b.substring(0,b.length-4)}else if(b&&ya(b,"/*")){b=b.substring(0,b.length-2)}this.Lh(this.hc,false,
a,b,c)};Y.prototype.Lh=function(a,b,c,d,e){var f=da(c),h=a[f];if(h!=null){for(var i in h){var j=h[i],k=j.listener;if((!d||d==k["dataPath"])&&(!e||e==k["id"])){if(b){this.Kh(k["fn"],k["dataPath"],k["id"])}if(j.items){for(var n=0;n<j.items.length;n++){var w=j.items[n];delete w.obj[w.key]}}delete h[i]}}}};Y.prototype.u=function(a){if(this.vj){return}var b=Q(a),c=0;while(b){var d=this.Ve[b.jd()];if(d){for(var e in d){var f=d[e],h=f.listener;if(c<=f.maxAncestors){h.fn(a,h.id)}}}c++;b=b.qa()}this.xi++};var N=function(a){if(a){this.of(a)}};N.prototype.of=function(a,b,c,d){this.sf=a;if(!c&&!d){if(ya(a,"?")){this.Nf=true;a=a.substring(0,a.length-1)}if(ya(a,"()")){if(ya(a,"name()")||ya(a,"count()")||ya(a,"position()")){var e=a.lastIndexOf("/");if(e!=-1){this.Yc=a.substring(e+1);a=a.substring(0,e)}else{this.Yc=a;a="."}if(this.Yc=="count()"){this.Ii=true}}}}this.Ta=b||a.split("/");this.v=this.Ta.length;this.Se=this.Ta[this.v-1];this.d=this.Ta[0];if(this.v==1){this.jf=this;this.gc=Wa(a,"$")}else{this.jf=
ld(this.d,null,this,null);this.gc=this.jf.gc;this.d=this.jf.d}if(this.v==1&&!this.gc){this.Yg=a=="."||a=="";this.$g=Wa(a,"@");this.Wg=a=="*|text()";this.Vg=a=="@*";this.Xg=a=="*"}};N.prototype.jd=function(){return this.sf};N.prototype.qa=function(){if(!this.Yi){if(this.v>1){this.Zi=ld(null,this.Ta.slice(0,this.Ta.length-1),this,null)}this.Yi=true}return this.Zi};N.prototype.ue=function(){if(!this.Ti){if(this.v>1){this.Ui=ld(null,this.Ta.slice(1),null,this)}this.Ti=true}return this.Ui};N.prototype.S=
function(a){if(a==null){a=J()}else if(this.gc){a=a.getDataRoot?a.getDataRoot():J()}if(this.Ii){var b=this.mg(a);return b.s()}if(this.v==1){return a.r(this.d)}else if(this.v==0){return a.get()}var c=a.i(this.d);if(c==null){return null}else{return this.ue().S(c)}};N.prototype.mg=function(a,b){return this.cd(a,false,b)};N.prototype.Xb=function(a,b){return this.cd(a,true,b)};N.prototype.cd=function(a,b,c){if(a==null){a=J()}else if(this.gc){a=a.getDataRoot?a.getDataRoot():J()}if(this.v==0&&b){return a}else if(this.v==
0&&!b){return new aa([a])}else if(this.v==1){if(b){return a.i(this.d,c)}else{var d=a.i(this.d);if(d&&d.N()){return d.p()}else{return a.p(this.d)}}}else{var e=a.i(this.d,c);if(e==null&&b){return null}else if(e==null&&!b){return new $a}return this.ue().cd(e,b,c)}};N.prototype.Nf=false;N.prototype.Ta=[];N.prototype.v=null;N.prototype.d=null;N.prototype.Se=null;N.prototype.Yg=false;N.prototype.$g=false;N.prototype.Wg=false;N.prototype.Vg=false;N.prototype.Xg=false;N.prototype.Yc=null;var Q=function(a){var b=
vc[a];if(b==null){b=new N(a);vc[a]=b}return b},ld=function(a,b,c,d){var e=a||b.join("/"),f=vc[e];if(f==null){f=new N;f.of(e,b,c,d);vc[e]=f}return f},vc={},Xl=Q("."),Ul=Q("*|text()"),Vl=Q("*"),Tl=Q("@*"),Yl=Q("name()"),Wl=Q("count()"),Zl=Q("position()");var Ta=function(a,b){if(!a){throw Error("Cannot create a fast data node without a data name");}this["__dataName"]=a;this["__parent"]=b};Ta.prototype.g=function(){return this["__dataName"]};Ta.prototype.Va=function(a){this["__dataName"]=a};Ta.prototype.h=function(){var a;if(this["__parent"]){a=this["__parent"].h()+"/"}else{a=""}return a+this.g()};var B=function(a,b,c){Ta.call(this,b,c);this.ge(a)};B.inherits(Ta);B.prototype.ge=function(a){for(var b in a){this[b]=a[b]}};B.fromJs=function(a,b,c){if(S(a)){return new T(a,
b,c)}else if(ra(a)){return new B(a,b,c)}else{return new Fa(a,b,c)}};B.ui=new $a;B.prototype.set=function(a){throw"Not implemented yet";};B.prototype.p=function(a){if(!a||a=="*"){return this}else if(a.indexOf("*")==-1){throw Error("Getting child nodes with selectors is not supported, yet.");}else{throw Error("Unsupported selector: "+a);}};B.prototype.Af=function(a){var b=this[a];if(b!=null&&!b.g){this[a]=B.fromJs(this[a],a,this)}};B.prototype.i=function(a,b){this.Af(a);var c=this[a]||null;if(c==null&&
b){c=new B({},a,this);this[a]=c}return c};B.prototype.V=function(a,b){if(b!=null){this[a]=b}else{delete this[a]}J().u(this.h()+"/"+a)};B.prototype.r=function(a){var b=this[a];if(b!=null){return b.g?b.get():b}else{return null}};B.prototype.N=function(){return false};B.prototype.Ma=function(){var a={};for(var b in this){if(!Wa(b,"__")&&!Cb(this[b])){a[b]=this[b]["__dataName"]?this[b].Ma():this[b]}}return a};B.prototype.clone=function(){return B.fromJs(this.Ma(),this.g())};B.prototype.add=function(a){this.V(a.g(),
a)};B.prototype.get=function(a){if(arguments.length==0){return this}else{return this.i(a)}};B.prototype.oa=function(a){var b=0;for(var c in this){if(!Wa(c,"__")&&!Cb(this[c])){if(b==a){this.Af(c);return this[c]}++b}}return null};B.prototype.s=function(){var a=0;for(var b in this){if(!Wa(b,"__")&&!Cb(this[b])){++a}}return a};B.prototype.Ha=function(a,b){this.V(a,b)};B.prototype.removeNode=function(a){delete this[a]};var Fa=function(a,b,c){this.kb=a;Ta.call(this,b,c)};Fa.inherits(Ta);Fa.prototype.get=
function(){return this.kb};Fa.prototype.set=function(a){if(S(a)||ra(a)){throw"can only set PrimitiveFastDataNode to primitive values";}this.kb=a;J().u(this.h())};Fa.prototype.p=function(){return B.ui};Fa.prototype.i=function(a){return null};Fa.prototype.r=function(a){return null};Fa.prototype.V=function(a,b){throw Error("Cannot set a child node for a PrimitiveFastDataNode");};Fa.prototype.N=function(){return false};Fa.prototype.Ma=function(){return this.kb};var T=function(a,b,c){this.w=[];for(var d=
0;d<a.length;++d){var e=a[d].id||"["+d+"]";this.w.push(B.fromJs(a[d],e,this));if(a[d].id){if(!this.c){this.c={}}this.c[a[d].id]=d}}Ta.call(this,b,c)};T.inherits(Ta);T.prototype.set=function(a){throw Error("Cannot set a FastListNode to a new value");};T.prototype.p=function(){return this};T.prototype.i=function(a,b){var c=this.Wb(a);if(c==null&&this.c){c=this.c[a]}if(c!=null&&this.w[c]){return this.w[c]}else if(b){this.V(a,{});return this.i(a)}else{return null}};T.prototype.r=function(a){var b=this.i(a);
return b?b.get():null};T.prototype.Wb=function(a){if(a.charAt(0)=="["&&a.charAt(a.length-1)=="]"){return Number(a.substring(1,a.length-1))}else{return null}};T.prototype.V=function(a,b){var c=this.w.length;if(b!=null){if(!b.g){b=B.fromJs(b,a,this)}var d=this.Wb(a);if(d!=null){if(d<0||d>=this.w.length){throw Error("List index out of bounds: "+d);}this.w[a]=b}else{if(!this.c){this.c={}}this.w.push(b);this.c[a]=this.w.length-1}}else{this.removeNode(a)}var e=J();e.u(this.h()+"/"+a);if(this.w.length!=
c){this.td()}};T.prototype.td=function(){var a=J();a.u(this.h());a.u(this.h()+"/count()")};T.prototype.N=function(){return true};T.prototype.Ma=function(){var a=[];for(var b=0;b<this.w.length;++b){a.push(this.w[b].Ma())}return a};T.prototype.add=function(a){if(!a.g){a=B.fromJs(a,String(this.w.length),this)}this.w.push(a);var b=J();b.u(this.h()+"/["+(this.w.length-1)+"]");this.td()};T.prototype.get=function(a){if(arguments.length==0){return this.w}else{return this.i(a)}};T.prototype.oa=function(a){var b=
this.w[a];return b!=null?b:null};T.prototype.s=function(){return this.w.length};T.prototype.Ha=function(a,b){throw Error("Setting child nodes of a FastListNode is not implemented, yet");};T.prototype.removeNode=function(a){var b=this.Wb(a);if(b==null&&this.c){b=this.c[a]}if(b!=null){this.w.splice(b,1);if(this.c){var c=null;for(var d in this.c){if(this.c[d]==b){c=d}else if(this.c[d]>b){--this.c[d]}}if(c){delete this.c[c]}}var e=J();e.u(this.h()+"/["+b+"]");this.td()}};T.prototype.indexOf=function(a){var b=
this.Wb(a);if(b==null&&this.c){b=this.c[a]}if(b==null){throw Error("Cannot determine index for: "+a);}return b};var zi=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");},Ai=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 qf=function(){var a=$i();if(a){return new ActiveXObject(a)}else{return new XMLHttpRequest}},Cd=null,$i=function(){if(!Cd&&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);Cd=c;return c}catch(d){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return Cd};var G=function(a,b,c){this.m=b;this.G=c||(a?a.nodeName:null);this.Vh(a)};G.mi="@*";G.prototype.Vh=function(a){this.ga=a;if(a!=null){switch(a.nodeType){case 2:case 3:this.kb=a.nodeValue;break;case 1:if(a.childNodes.length==1&&a.firstChild.nodeType==3){this.kb=a.firstChild.nodeValue}}}};G.prototype.Ja=function(){if(this.C){return}var a=new aa;if(this.ga!=null){var b=this.ga.childNodes;for(var c=0,d;d=b[c];c++){if(d.nodeType!=3||!G.Ki(d.nodeValue)){var e=new G(d,this,d.nodeName);a.add(e)}}}this.C=a};
G.prototype.Qf=function(){if(this.Kf){return}var a=new aa;if(this.ga!=null&&this.ga.attributes!=null){var b=this.ga.attributes;for(var c=0,d;d=b[c];c++){var e=new G(d,this,d.nodeName);a.add(e)}}this.Kf=a};G.prototype.get=function(){this.Ja();return this.kb!=null?this.kb:this.C};G.prototype.set=function(a){throw Error("Can't set on XmlDataSource yet");};G.prototype.p=function(a){if(a&&a==G.mi){this.Qf();return this.Kf}else if(a==null||a=="*"){this.Ja();return this.C}else{throw new Error("Unsupported selector");
}};G.prototype.i=function(a){if(Wa(a,"@")){var b=this.ga.getAttributeNode(a.substring(1));return b?new G(b,this):null}else{return this.p().get(a)}};G.prototype.r=function(a){if(Wa(a,"@")){var b=this.ga.getAttributeNode(a.substring(1));return b?b.nodeValue:null}else{var b=this.i(a);return b?b.get():null}};G.prototype.g=function(){return this.G};G.prototype.Va=function(a){this.G=a};G.prototype.h=function(){var a="";if(this.m){a=this.m.h()+(this.G.indexOf("[")!=-1?"":"/")}return a+this.G};G.prototype.load=
function(){};G.Ki=function(a){return/^[\r\n\t ]*$/.test(a)};G.Nd=function(){return zi("nothing")};var Tb=function(a,b){G.call(this,null,null,b);if(a){this.l=new l(a)}else{this.l=null}};Tb.inherits(G);Tb.prototype.M=Sb;Tb.prototype.load=function(){if(this.l){ba.info("Sending XML request for DataSource "+this.g()+" to "+this.l);this.M="LOADING";this.Mi=new ib(this.l,F(this.Ac,this),F(this.bg,this))}else{this.ga=G.Nd();this.M=Sb}};Tb.prototype.Ac=function(){ba.info("Got data for DataSource "+this.g());
var a=this.Mi.sg(),b=a.responseXML;if(b&&!b.hasChildNodes()&&ra(a.responseText)){b=Ai(a.responseText)}if(!b||!b.hasChildNodes()){this.M="FAILED";this.ga=G.Nd()}else{this.M="LOADED";this.ga=b.documentElement}if(this.g()){J().u(this.g())}};Tb.prototype.bg=function(){ba.info("Data retrieve failed for DataSource "+this.g());this.M="FAILED";this.ga=G.Nd();if(this.g()){J().u(this.g())}};var ib=function(a,b,c){this.hb=null;this.Wi=b;this.nh=c||this.Bg;this.l=new l(a);this.dh()};ib.prototype.dh=function(){this.hb=
new qf;if(this.hb){try{this.hb.onreadystatechange=F(this.kc,this);this.hb.open("GET",String(this.l),true);this.hb.send(null)}catch(a){this.nh.call(this)}}};ib.prototype.kc=function(){var a=this.hb,b=a.readyState;if(b==4){var c=a.status,d;if(c==200||c==0){d=F(this.jc,this)}else{d=F(this.oh,this)}window.setTimeout(d,10)}};ib.prototype.jc=function(){this.Wi(this)};ib.prototype.oh=function(){this.nh(this)};ib.prototype.Bg=function(){throw Error("Error fetching data from URL: "+this.l);};ib.prototype.sg=
function(){return this.hb};var Ec="complete";var Pa=function(){};Pa.prototype.Rc=false;Pa.prototype.pa=function(){return this.Rc};Pa.prototype.dispose=function(){if(!this.Rc){this.Rc=true}};var Ga={},ga={},Ze="on",Yb="_",u=function(a,b,c,d,e){if(S(b)){for(var f=0;f<b.length;f++){u(a,b[f],c,d,e)}return null}var h=jb(b),i=xc(a,h,c,d,e);if(i in Ga){return i}var j=da(a);if(!(j in ga)){ga[j]={};ga[j].o=0}if(!(h in ga[j])){ga[j].o++;ga[j][h]=[]}ga[j][h].push(i);var k=Di(a,i,b);Ga[i]=new Xe(c,k,a,b,d,e);if(b instanceof Xb){b.If(Ga[i])}else{if(a.addEventListener){if(a==t||!a.Td){a.addEventListener(b,k,d)}}else if(a.attachEvent){a.attachEvent(Ze+b,k)}else{throw Error("Object {"+a+"} does not support event listeners.");
}}return i},U=function(a,b,c,d,e){if(S(b)){for(var f=0;f<b.length;f++){U(a,b[f],c,d,e)}return null}var h=xc(a,b,c,d,e);return zc(h)},zc=function(a){if(!(a in Ga)){return false}var b=Ga[a],c=b.src,d=b.type,e=b.proxy;if(d instanceof Xb){d.Jh(b)}else{if(c.removeEventListener){if(c==t||!c.Td){c.removeEventListener(d,e,b.capture)}}else if(c.detachEvent){c.detachEvent(Ze+d,e)}}delete Ga[a];var f=jb(d),h=da(c),i=ga[h],j=i[f];Ie(j,a);if(j.length==0){i.o--;delete i[f]}if(i.o==0){delete ga[h]}return true},
Ji=function(a,b,c){var d=0;if(a){var e=Ci(a,b,c);for(var f=0;f<e.length;f++){var h=e[f];if(h){zc(xc(h.src,h.type,h.listener,h.capture,h.handler));d++}}}else{for(var i in Ga){zc(i);d++}}return d},Ci=function(a,b,c){var d=da(a),e=[];if(d in ga){var f=ga[d];if(b){var h=jb(b);if(b in f){Ye(e,f[h],c)}}else{for(var i in f){Ye(e,f[i],c)}}}return e},jb=function(a){return a instanceof Xb?da(a):a},Ye=function(a,b,c){var d=!I(c);for(var e=0;e<b.length;e++){var f=b[e],h=Ga[f];if(d||h.capture==c){a.push(h)}}},
Ei=function(a,b,c){var d=da(a);if(d in ga){var e=jb(b);if(e in ga[d]){return ga[d][e]}}return null},ka="click",Wb="mousedown",Ab="mouseover",wc="mousemove",Vb="keypress",Ub="keydown",Fi=function(a,b,c){var d=Ga[a];if(!d){return undefined}if(!d.src.addEventListener&&!Hi(d)){return undefined}if(!c&&window.event||c&&Ii(c)){var e=new zb(c||window.event,this);try{e.stopPropagation();e.Ua=false;var f,h=false;if(nd){f=[]}else{f=Ki;f.length=0;h=true;nd=true}for(var i=e.currentTarget;i;i=i.parentNode){f.push(i)}var j=
true;for(var k=f.length-1;!e.Ua&&k>=0;k--){e.currentTarget=f[k];j&=yc(f[k],b,true,e)}for(var k=0;!e.Ua&&k<f.length;k++){e.currentTarget=f[k];j&=yc(f[k],b,false,e)}if(h){nd=false}return j}finally{e.dispose()}}else if(c&&Gi(c)){var n=new zb(c,this);try{return md(d,n)}finally{n.dispose()}}else{return md(d,c)}},Di=function(a,b,c){return function(d){return Fi.call(a,b,c,d)}},Ki=[],nd=false,Hi=function(a){var b=jb(a.type),c=xc(a.src,a.type,a.listener,a.capture,a.handler),d=da(a.src);return ga[d][b][0]==
c},yc=function(a,b,c,d){var e=1,f=Ei(a,b,c);for(var h=0;f&&h<f.length;h++){var i=Ga[f[h]];if(i.capture==c){e&=md(i,d)!==false}}return Boolean(e)},md=function(a,b){return a.zb.call(a,b)},Bi=[],xc=function(a,b,c,d,e){if(M){var f=Bi;f[0]=da(a);f[1]=jb(b);f[2]=da(c);f[3]=d?"1":"0";f[4]=e?da(e):"";return f.join(Yb)}else{return da(a)+Yb+jb(b)+Yb+da(c)+Yb+Boolean(d)+Yb+(e?da(e):"")}},Gi=function(a){return ra(a)&&/event/i.test(a)},Ii=function(a){return M&&ra(a)&&I(a.srcElement)&&I(a.cancelBubble)&&I(a.type)};var Xb=function(){};Xb.prototype.If=function(a){throw Error("Not implemented");};Xb.prototype.Jh=function(a){throw Error("Not implemented");};var Z=function(a,b){this.type=a;this.target=b;this.currentTarget=this.target};Z.inherits(Pa);Z.prototype.Ua=false;Z.prototype.oc=true;Z.prototype.stopPropagation=function(){this.Ua=true};Z.prototype.preventDefault=function(){this.oc=false};var zb=function(a,b){this.type=a.type;this.timestamp=new Date;this.target=a.target||a.srcElement;this.currentTarget=b;this.relatedTarget=null;if(I(a.relatedTarget)){this.relatedTarget=a.relatedTarget}else if(this.type==Ab){this.relatedTarget=a.fromElement}else if(this.type=="mouseout"){this.relatedTarget=a.toElement}this.offsetX=I(a.layerX)?a.layerX:a.offsetX;this.offsetY=I(a.layerY)?a.layerY:a.offsetY;this.clientX=I(a.clientX)?a.clientX:a.pageX;this.clientY=I(a.clientY)?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==Vb?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.ab=a};zb.inherits(Z);zb.prototype.stopPropagation=function(){this.Ua=true;if(this.ab.stopPropagation){this.ab.stopPropagation()}else{this.ab.cancelBubble=true}};zb.prototype.preventDefault=function(){this.oc=false;if(!this.ab.preventDefault){this.ab.returnValue=false}else{this.ab.preventDefault()}};
zb.prototype.dispose=function(){if(!this.pa()){Z.prototype.dispose.call(this);this.ab=null}};var Xe=function(a,b,c,d,e,f){if(Cb(a)){this.Zg=true}else if(a&&typeof a.zb=="function"){this.Zg=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};Xe.prototype.zb=function(a){if(this.Zg){return this.listener.call(this.handler||this.src,a)}return this.listener.zb.call(this.listener,a)};var O=function(){};O.inherits(Pa);O.prototype.ed=function(){return null};O.prototype.addEventListener=function(a,b,c,d){u(this,a,b,c,d)};O.prototype.removeEventListener=function(a,b,c,d){U(this,a,b,c,d)};O.prototype.dispatchEvent=function(a){if(V(a)){a=new Z(a,this)}else if(!(a instanceof Z)){var b=a;a=new Z(a.type,this);pf(a,b)}else{a.target=a.target||this}var c=[];for(var d=this;d;d=d.ed()){c.push(d)}var e=1;for(var f=c.length-1;!a.Ua&&f>=0;f--){a.currentTarget=c[f];e&=yc(c[f],a.type,true,a)&&a.oc!=
false}for(var f=0;!a.Ua&&f<c.length;f++){a.currentTarget=c[f];e&=yc(c[f],a.type,false,a)&&a.oc!=false}return Boolean(e)};O.prototype.dispose=function(){if(!this.pa()){Pa.prototype.dispose.call(this);Ji(this)}};O.prototype.Td=true;var of=function(a,b){switch(typeof a){case "string":nf(a,b);break;case "number":Yi(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(S(a)){Xi(a,b);break}Zi(a,b);break;default:throw Error("Unknown type: "+typeof a);}},zd={'"':'\\"',"\\":"\\\\","/":"\\/","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\u000b"},nf=function(a,b){b.push('"',a.replace(/[\\\"\x00-\x1f\x80-\uffff]/g,function(c){if(c in
zd){return zd[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 zd[c]=e+d.toString(16)}),'"')},Yi=function(a,b){b.push(isFinite(a)&&!isNaN(a)?a:"null")},Xi=function(a,b){var c=a.length;b.push("[");var d="";for(var e=0;e<c;e++){b.push(d);of(a[e],b);d=","}b.push("]")},Zi=function(a,b){b.push("{");var c="";for(var d in a){b.push(c);nf(d,b);b.push(":");of(a[d],b);c=","}b.push("}")};var H=function(){O.call(this);this.headers=new q;this.We=Pe("goog.net.XhrLite");this.headers.set("Content-type","application/x-www-form-urlencoded;charset=utf-8")};H.inherits(O);H.prototype.lb=false;H.prototype.k=null;H.prototype.Re="";H.prototype.Qe="";H.prototype.rd="";H.prototype.Bc=0;H.prototype.Wa=null;H.prototype.send=function(a,b,c,d){if(this.lb){throw Error("[goog.net.XhrLite] Object is active with another request");}var e=b||"GET";this.Re=a;this.rd="";this.Qe=e;this.lb=true;this.k=new qf;
this.k.onreadystatechange=this.kc.bind(this);try{this.sa("Opening Xhr");this.k.open(e,a,true)}catch(f){this.sa("Error opening Xhr: "+f.message);this.ce(f);return}var h=c?String(c):"";if(e=="POST"){this.k.setRequestHeader("Content-Length",h.length)}var i=this.headers.clone();if(d){Ia(d,function(j,k){i.set(k,j)})}Ia(i,function(j,k){this.k.setRequestHeader(k,j)},this);try{if(this.Wa){t.clearTimeout(this.Wa);this.Wa=null}if(this.Bc>0){this.sa("Will abort after "+this.Bc+"ms if incomplete");this.Wa=t.setTimeout(F(this.hi,
this),this.Bc)}this.sa("Sending request");this.k.send(h)}catch(f){this.sa("Send error: "+f.message);this.ce(f)}};H.prototype.hi=function(){if(typeof Yc=="undefined"){}else if(this.k){this.sa("Timed out after "+this.Bc+"ms, aborting");this.dispatchEvent("timeout");this.abort()}};H.prototype.ce=function(a){this.k.abort();this.lb=false;this.rd=a;this.dispatchEvent(Ec);this.dispatchEvent("error");this.Lc()};H.prototype.abort=function(){if(this.k){this.sa("Aborting");this.k.abort();this.lb=false;this.dispatchEvent("abort");
this.Lc()}};H.prototype.dispose=function(){if(!this.pa()){this.abort();H.aa.dispose.call(this)}};H.prototype.kc=function(){if(typeof Yc=="undefined"){}else if(M&&this.Yb()==4&&this.$b()==2){this.sa("Local request error detected and ignored")}else{this.dispatchEvent("readystatechange");if(this.Je()){this.sa("Request complete");this.lb=false;if(this.Le()){this.dispatchEvent(Ec);this.dispatchEvent("success")}else{this.rd=this.vg()+" ["+this.$b()+"]";this.dispatchEvent(Ec);this.dispatchEvent("error")}this.Lc()}}};
H.prototype.Lc=function(){if(this.k){this.k.onreadystatechange=M?aj:null;this.k=null;if(this.Wa){t.clearTimeout(this.Wa);this.Wa=null}this.dispatchEvent("ready")}};H.prototype.Je=function(){return this.Yb()==4};H.prototype.Le=function(){switch(this.$b()){case 0:case 200:case 304:return true;default:return false}};H.prototype.Yb=function(){return this.k?this.k.readyState:0};H.prototype.$b=function(){try{return this.Yb()>2?this.k.status:-1}catch(a){this.We.warning("Can not get status: "+a.message);
return-1}};H.prototype.vg=function(){try{return this.Yb()>2?this.k.statusText:""}catch(a){this.We.fine("Can not get status: "+a.message);return""}};H.prototype.tg=function(){return this.k?this.k.responseText:""};H.prototype.getResponseHeader=function(a){return this.k&&this.Je()?this.k.getResponseHeader(a):undefined};H.prototype.sa=function(a){this.We.fine(a+" ["+this.Qe+" "+this.Re+" "+this.$b()+"]")};var R=function(a,b,c){this.m=c;this.G=b;this.nf(a)};R.prototype.nf=function(a){this.d=a;this.C=null};R.prototype.get=function(){return!ra(this.d)?this.d:this.p()};R.prototype.set=function(a){if(a&&ra(this.d)){throw Error("Can't set group nodes to new values yet");}if(this.m){this.m.d[this.G]=a}this.d=a;this.C=null;J().u(this.h())};R.prototype.p=function(a){if(!this.d){return new $a}if(!a||a=="*"){this.Ja(false);return this.C}else if(a.indexOf("*")==-1){if(this.d[a]!=null){return new aa([this.i(a)])}else{return new $a}}else{throw new Error("Selector not supported yet ("+
a+")");}};R.prototype.Ja=function(a){if(this.C&&!a){return}if(!ra(this.d)){this.C=new $a;return}var b=new aa;if(this.d!=null){var c;if(S(this.d)){var d=this.d.length;for(var e=0;e<d;e++){var f=this.d[e],h=f.id,i=h!=null?String(h):"["+e+"]";c=new R(f,i,this);b.add(c)}}else{for(var i in this.d){var j=this.d[i];if(j.g){b.add(j)}else if(!Cb(j)){c=new R(j,i,this);b.add(c)}}}}this.C=b};R.prototype.i=function(a,b){if(!this.d){return null}var c=this.p().get(a);if(!c&&b){var d={};if(S(this.d)){d["id"]=a;this.d.push(d)}else{this.d[a]=
d}c=new R(d,a,this);if(this.C){this.C.add(c)}}return c};R.prototype.r=function(a){if(this.C){var b=this.p().get(a);return b?b.get():null}else if(this.d){return this.d[a]}else{return null}};R.prototype.V=function(a,b){var c=null,d=null,e=false;if(b!=null){if(b.g){d=b;d.m=this}else{if(S(b)||ra(b)){d=new R(b,a,this)}else{d=new yb(this.d,a,this)}}}if(S(this.d)){this.Ja();var f=this.C.indexOf(a);if(b==null){var h=this.C.get(a);if(h){c=h.h()}this.d.splice(f,1)}else{if(f){this.d[f]=b}else{this.d.push(b)}}if(f==
null){e=true}this.C.Ha(a,d)}else if(ra(this.d)){if(b==null){this.Ja();var h=this.C.get(a);if(h){c=h.h()}delete this.d[a]}else{if(!this.d[a]){e=true}this.d[a]=b}if(this.C){this.C.Ha(a,d)}}var i=J();if(d){i.u(d.h());if(e&&this.N()){i.u(this.h());i.u(this.h()+"/count()")}}else if(c){i.u(c);if(this.N()){i.u(this.h());i.u(this.h()+"/count()")}}return d};R.prototype.g=function(){return this.G};R.prototype.Va=function(a){this.G=a};R.prototype.h=function(){var a="";if(this.m){a=this.m.h()+"/"}return a+this.G};
R.prototype.load=function(){};R.prototype.N=function(){return this.Li!=null?this.Li:S(this.d)};var yb=function(a,b,c){Ua.call(this);this.G=b;this.m=a;this.Xi=c||this.m};yb.inherits(Ua);yb.prototype.get=function(){return this.m[this.G]};yb.prototype.set=function(a){var b=this.m[this.G];this.m[this.G]=a;if(b!=a){J().u(this.h())}};yb.prototype.g=function(){return this.G};yb.prototype.xb=function(){return this.Xi};var ab=function(a,b){R.call(this,null,b,null);if(a){this.l=new l(a)}else{this.l=null}};
ab.inherits(R);ab.prototype.M=Sb;ab["dataSources"]={};ab.prototype.load=function(){if(this.l){ab["dataSources"][this.G]=this;ba.info("Sending JS request for DataSource "+this.g()+" to "+this.l);this.M="LOADING";var a=new l(this.l);a.Wh("callback","JsonReceive."+this.G);t["JsonReceive"][this.G]=F(this.Gh,this);var b=fd("script");b.src=a;b.onload=F(this.jc,this);b.onreadystatechange=F(this.th,this);qi("head")[0].appendChild(b)}else{this.d={};this.M=Sb}};ab.prototype.th=function(a){};ab.prototype.jc=
function(a){};ab.prototype.Gh=function(a){this.nf(a);this.M="LOADED";J().u(this.g())};t["JsonReceive"]={};var hb=function(a,b,c,d,e){B.call(this,{},b,null);if(a){this.l=new l(a);this.k=new H;this.nj=!(!e);u(this.k,Ec,this.Pf,false,this)}else{this.l=null}this.zc=c;this.Wc=d};hb.inherits(B);hb.prototype.zc=null;hb.prototype.Wc=null;hb.prototype.load=function(){ba.info("Sending JS request for DataSource "+this.g()+" to "+this.l);if(this.l){if(this.nj){var a=this.l.gd(),b=this.l.clone();b.Eb(null);this.k.send(b,"POST",a)}else{this.k.send(this.l)}}else{this.M=Sb}};hb.prototype.Ac=function(){J().u(this.g())};
hb.prototype.Pf=function(a){if(this.k.Le()){ba.info("Got data for DataSource "+this.g());var b=this.k.tg();if(this.zc){var c=b.indexOf(this.zc);b=b.substring(c+this.zc.length)}if(this.Wc){var d=b.lastIndexOf(this.Wc);b=b.substring(0,d)}try{var e=eval("["+b+"][0]");this.ge(e);this.M="LOADED"}catch(f){this.M="FAILED";ba.severe("Failed to parse data: "+f.message)}t.setTimeout(F(this.Ac,this),0)}else{ba.info("Data retrieve failed for DataSource "+this.g());this.M="FAILED"}};var pa=function(a,b,c,d){O.call(this);if(!S(a)||!S(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.yc=a;this.wi=b;this.Uc=c;this.Ef=d;this.Ya=[]};pa.inherits(O);pa.prototype.ua=0;pa.prototype.ke=0;pa.prototype.T=0;pa.prototype.ib=null;pa.prototype.be=null;pa.prototype.sd=null;pa.prototype.Cc=null;pa.prototype.play=function(a){if(a||this.ua==0){this.T=0;this.Ya=this.yc}else if(this.ua==
1){return false}t.clearTimeout(this.Cc);this.ib=(new Date).valueOf();if(this.ua==-1){this.ib-=this.Uc*this.T}this.be=this.ib+this.Uc;this.sd=this.ib;if(this.T==0){this.ya("begin")}this.ya("play");if(this.ua==-1){this.ya("resume")}this.ua=1;this.Ud();return true};pa.prototype.stop=function(a){t.clearTimeout(this.Cc);this.ua=0;if(a)this.T=1;this.Bd(this.T);this.ya("stop");this.ya("end")};pa.prototype.Ud=function(){t.clearTimeout(this.Cc);var a=(new Date).valueOf();this.T=(a-this.ib)/(this.be-this.ib);
if(this.T>=1)this.T=1;this.ke=1000/(a-this.sd);this.sd=a;if(Cb(this.Ef)){this.Bd(this.Ef(this.T))}else{this.Bd(this.T)}if(this.T==1){this.ua=0;this.ya("finish");this.ya("end")}else if(this.ua==1){this.ya("animate");var b=this.Ud.bind(this);this.Cc=t.setTimeout(b,20)}};pa.prototype.Bd=function(a){this.Ya=new Array(this.yc.length);for(var b=0;b<this.yc.length;b++){this.Ya[b]=(this.wi[b]-this.yc[b])*a+this.yc[b]}};pa.prototype.ya=function(a){this.dispatchEvent(new mf(a,this))};var mf=function(a,b){Z.call(this,
a);this.coords=b.Ya;this.x=b.Ya[0];this.y=b.Ya[1];this.z=b.Ya[2];this.duration=b.Uc;this.progress=b.T;this.fps=b.ke;this.state=b.ua;this.anim=b};mf.inherits(Z);var y=function(a){O.call(this);this.e=a||hd();this.Ge=null};y.inherits(O);y.Vi=0;y.EventType={CHANGE:"change",RESIZE:"resize",ACTION:"action",HIGHLIGHT:"highlight",SELECT:"select"};y.Error={NOT_SUPPORTED:"Method not supported",DECORATE_INVALID:"Invalid element to decorate",ALREADY_RENDERED:"Component already rendered",PARENT_UNABLE_TO_BE_SET:"Can not set parent element of rendered component",NOT_IN_DOCUMENT:"Operation not supported while component id not in document"};y.prototype.db=false;y.prototype.a=
null;y.prototype.kh=null;y.prototype.m=null;y.prototype.R=function(){return this.Ge||(this.Ge=this.lg())};y.prototype.Zc=function(){return"goog.ui.Component"};y.prototype.ad=function(){return this.a};y.prototype.qa=function(){return this.m};y.prototype.ed=function(){return this.qa()};y.prototype.pd=function(){return this.db};y.prototype.n=function(){this.a=this.e.createElement("div")};y.prototype.render=function(a){this.Ga(a)};y.prototype.Ga=function(a,b){if(this.db){throw Error(y.Error.ALREADY_RENDERED);
}if(!this.a){this.n()}if(a){a.insertBefore(this.a,b||null)}else{this.e.Aa().body.appendChild(this.a)}this.tb()};y.prototype.decorate=function(a){if(this.db){throw Error(y.Error.ALREADY_RENDERED);}else if(a&&this.Kb(a)){this.Oc(a);this.tb()}else{throw Error(y.Error.DECORATE_INVALID);}};y.prototype.Kb=function(a){return true};y.prototype.Oc=function(a){this.a=a};y.prototype.tb=function(){this.db=true};y.prototype.Sb=function(){this.db=false};y.prototype.dispose=function(){if(!this.pa()){if(this.db){this.Sb()}this.a=
null;this.kh=null;this.m=null;y.aa.dispose.call(this)}};y.prototype.lg=function(){return this.Zc()+"."+y.Vi++};var Va=function(a,b,c){this.target=a;this.handle=b||a;this.Zf=true;this.Rb=false;this.limits=c||new nb;this.la=this.target.ownerDocument||this.target.document;this.screenX=0;this.screenY=0;this.deltaX=0;this.deltaY=0;u(this.handle,Wb,this.tf,true,this);u(this.la,wc,this.fb,false,this);u(this.la,"mouseup",this.ae,false,this)};Va.inherits(O);Va.prototype.dispose=function(){if(this.pa())return;O.prototype.dispose.call(this);U(this.handle,Wb,this.tf,true,this);U(this.la,wc,this.fb,false,this);U(this.la,
"mouseup",this.ae,false,this);delete this.target;delete this.handle};Va.prototype.tf=function(a){if(this.Zf&&!this.Rb){var b=this.dispatchEvent(new bc("start",this,a.clientX,a.clientY));if(b!==false){this.screenX=a.screenX;this.screenY=a.screenY;this.deltaX=this.target.offsetLeft;this.deltaY=this.target.offsetTop;this.Rb=true;a.preventDefault()}}};Va.prototype.ae=function(a){if(this.Rb){this.Rb=false;var b=this.Te(this.deltaX),c=this.Ue(this.deltaY);this.dispatchEvent(new bc("end",this,a.clientX,
a.clientY,b,c))}};Va.prototype.fb=function(a){if(this.Rb&&this.Zf){var b=a.screenX-this.screenX,c=a.screenY-this.screenY;this.deltaX+=b;this.deltaY+=c;var d=this.Te(this.deltaX),e=this.Ue(this.deltaY);this.screenX=a.screenX;this.screenY=a.screenY;var f=this.dispatchEvent(new bc("beforedrag",this,a.clientX,a.clientY,d,e));if(f!==false){this.Wf(d,e);this.dispatchEvent(new bc("drag",this,a.clientX,a.clientY,d,e));a.preventDefault()}}};Va.prototype.Te=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))};Va.prototype.Ue=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))};Va.prototype.Wf=function(a,b){this.target.style.left=a+"px";this.target.style.top=b+"px"};var bc=function(a,b,c,d,e,f){Z.call(this,a);this.type=a;this.clientX=c;this.clientY=
d;this.left=I(e)?e:b.deltaX;this.top=I(f)?f:b.deltaY;this.dragger=b};bc.inherits(Z);var v=function(a,b,c){y.call(this,c);this.J=a||"modal-dialog";this.xf=!(!b);this.da=Ff};v.inherits(y);v.prototype.J=null;v.prototype.xf=false;v.prototype.uh=0.3;v.prototype.Dc="";v.prototype.ob="";v.prototype.da=null;v.prototype.Z=false;v.prototype.ca=null;v.prototype.P=null;v.prototype.W=null;v.prototype.Ia=null;v.prototype.wa=null;v.prototype.Q=null;v.prototype.H=null;v.prototype.Zc=function(){return"goog.ui.Dialog"};v.prototype.me=function(){if(!this.pd()){this.render()}return this.Q};v.prototype.n=
function(){if(this.xf){this.P=this.e.n("iframe",{frameborder:0,style:"border: 0",className:this.J+"-bg"});za(this.P,false);Ef(this.P,0)}this.ca=this.e.n("div",{className:this.J+"-bg"});Ef(this.ca,this.uh);za(this.ca,false);this.a=this.e.n("div",{className:this.J},this.W=this.e.n("div",{className:this.J+"-title"},this.Ia=this.e.n("span",{className:this.J+"-title-text"},this.Dc),this.wa=this.e.n("span",{className:this.J+"-title-close"})),this.Q=this.e.n("div",{className:this.J+"-content"}),this.H=this.e.n("div",
{className:this.J+"-buttons"}));if(this.ob){this.Q.innerHTML=this.ob}za(this.a,false);if(this.da){this.da.Gc(this.H)}};v.prototype.render=function(a){if(this.pd()){throw Error(y.Error.ALREADY_RENDERED);}if(!this.a){this.n()}var b=a||this.e.Aa().body;if(this.P){b.appendChild(this.P)}b.appendChild(this.ca);v.aa.render.call(this,b)};v.prototype.Kb=function(a){return a&&a.tagName&&a.tagName=="DIV"&&v.aa.Kb.call(this,a)};v.prototype.Oc=function(a){this.a=a;ja(this.a,this.J);var b=this.J+"-content";this.Q=
Pb(this.a,function(h){return h.nodeType==1&&vb(h,b)});if(this.Q){this.ob=this.Q.innerHTML}else{this.Q=this.e.n("div",{className:b});if(this.ob){this.Q.innerHTML=this.ob}this.a.appendChild(this.Q)}var c=this.J+"-title",d=this.J+"-title-text",e=this.J+"-title-close";this.W=Pb(this.a,function(h){return h.nodeType==1&&vb(h,c)});if(this.W){this.Ia=Pb(this.W,function(h){return h.nodeType==1&&vb(h,d)});this.wa=Pb(this.W,function(h){return h.nodeType==1&&vb(h,e)})}else{this.W=this.e.n("div",{className:c});
this.a.insertBefore(this.W,this.Q)}if(this.Ia){this.Dc=Ue(this.Ia)}else{this.Ia=this.e.n("span",{className:d},this.Dc);this.W.appendChild(this.Ia)}if(!this.wa){this.wa=this.e.n("span",{className:e},this.Dc);this.W.appendChild(this.wa)}var f=this.J+"-buttons";this.H=Pb(this.a,function(h){return h.nodeType==1&&vb(h,f)});if(this.H){this.da=new $(this.e);this.da.decorate(this.H)}else{this.H=this.e.n("div",{className:f});this.a.appendChild(this.H);if(this.da){this.da.Gc(this.H)}}};v.prototype.tb=function(){v.aa.tb.call(this);
this.Tc=new Va(this.a,this.W);u(this.wa,ka,this.af,false,this);u(this.H,ka,this.Xe,false,this)};v.prototype.Sb=function(){U(this.wa,ka,this.af,this);U(this.H,ka,this.Xe,this);if(this.Bb()){this.ia(false)}if(this.Tc){this.Tc.dispose();this.Tc=null}v.aa.Sb.call(this)};v.prototype.ia=function(a){if(a==this.Z){return}var b=this.e.Aa(),c=dc?window:id(b)||window;if(!this.pd()){this.render(b.body)}if(a){this.gf();this.reposition();u(b,Ub,this.Ye,true,this);u(c,"resize",this.Ze,true,this)}else{U(b,Ub,this.Ye,
true,this);U(c,"resize",this.Ze,true,this)}if(this.P){za(this.P,a)}za(this.ca,a);za(this.a,a);if(a&&this.vb().oe()){var d=this.H.getElementsByTagName("button");for(var e=0,f;f=d[e];e++){if(f.name==this.vb().oe()){f.focus();break}}}this.Z=a};v.prototype.Bb=function(){return this.Z};v.prototype.gf=function(){if(this.P){za(this.P,false)}za(this.ca,false);var a=this.e.Aa(),b=id(a)||window,c=uc(b),d=a.body.scrollWidth,e=Math.max(a.body.scrollHeight,c.height);if(this.P){za(this.P,true);Ja(this.P,d,e)}za(this.ca,
true);Ja(this.ca,d,e);var f=W(this.a);this.Tc.limits=new nb(0,0,d-f.width,e-f.height)};v.prototype.reposition=function(){var a=this.e.Aa(),b=id(a)||window,c=ui(b),d=c.x,e=c.y,f=W(this.a),h=uc(b),i=Math.max(d+h.width/2-f.width/2,0),j=Math.max(e+h.height/2-f.height/2,0);Ld(this.a,i,j)};v.prototype.af=function(a){var b=this.vb(),c=b.Tb();if(c){var d=b.get(c);if(this.dispatchEvent(new Hc(c,d))){this.ia(false)}}else{this.ia(false)}};v.prototype.dispose=function(){if(!this.pa()){v.aa.dispose.call(this);
Sa(this.H);Sa(this.Q);Sa(this.wa);Sa(this.Ia);Sa(this.W);Sa(this.a);Sa(this.ca);this.ca=null;this.a=null;this.W=null;this.Ia=null;this.wa=null;this.Q=null;this.H=null}};v.prototype.lf=function(a){this.da=a;if(this.H){this.da.Gc(this.H)}};v.prototype.vb=function(){return this.da};v.prototype.Xe=function(a){if(a.target.tagName=="BUTTON"){var b=a.target.name,c=this.vb().get(b);if(this.dispatchEvent(new Hc(b,c))){this.ia(false)}}};v.prototype.Ye=function(a){if(a.keyCode==27){var b=this.vb();if(b.Tb()){var c=
b.get(b.Tb());if(this.dispatchEvent(new Hc(b.Tb(),c))){this.ia(false)}}else{this.ia(false)}}};v.prototype.Ze=function(a){this.gf()};var Hc=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};Hc.inherits(Z);var $=function(a){this.e=a||hd();q.call(this)},Ff,zj,Aj,yj;$.inherits(q);$.prototype.Wd=null;$.prototype.a=null;$.prototype.Jd=null;$.prototype.set=function(a,b,c,d){q.prototype.set.call(this,a,b);if(c){this.Wd=a}if(d){this.Jd=a}};$.prototype.Gc=function(a){this.a=a;this.render()};
$.prototype.render=function(){if(this.a){this.a.innerHTML="";Ia(this,function(a,b){this.a.appendChild(this.e.n("button",{name:b},a))},this)}};$.prototype.decorate=function(a){if(!a||a.nodeType!=1){return}this.a=a;var b=this.a.getElementsByTagName("button");for(var c=0,d,e,f;d=b[c];c++){e=d.name||d.id;f=Ue(d)||d.value;if(e){this.set(e,f,c==0,d.name=="cancel")}}};$.prototype.oe=function(){return this.Wd};$.prototype.Tb=function(){return this.Jd};(function(){var a=Bb("OK"),b=Bb("Cancel"),c=Bb("Yes"),
d=Bb("No"),e=Bb("Save"),f=Bb("Continue"),h=new $;h.set("ok",a,true);h.set("cancel",b,false,true);Ff=h;var i=new $;i.set("yes",c,true);i.set("no",d,false,true);zj=i;var j=new $;j.set("yes",c);j.set("no",d,true);j.set("cancel",b,false,true);Aj=j;var k=new $;k.set("continue",f);k.set("save",e);k.set("cancel",b,true,true);yj=k})();var P=function(a,b){if(a instanceof P){this.ba=a.ii()}else if(qa(a)&&P.isValidArray(a)){this.ba=$h(a)}else if(a instanceof Ca){this.ba=P.Tf(a.width,a.height)}else if(yd(a)&&yd(b)&&a>0&&b>0){this.ba=P.Tf(a,b)}else{throw Error("Invalid argument(s) for Matrix contructor");}this.v=new Ca(this.ba.length,this.ba[0].length)};P.createIdentityMatrix=function(a){var b=[];for(var c=0;c<a;c++){b[c]=[];for(var d=0;d<a;d++){b[c][d]=c==d?1:0}}return new P(b)};P.Tf=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};P.isValidArray=function(a){var b=0;for(var c=0;c<a.length;c++){if(!qa(a[c])||b>0&&a[c].length!=b){return false}for(var d=0;d<a[c].length;d++){if(!yd(a[c][d])){return false}}if(b==0){b=a[c].length}}return b!=0};P.$=function(a,b,c){for(var d=0;d<a.hd().width;d++){for(var e=0;e<a.hd().height;e++){b.call(c,a.wg(d,e),d,e,a)}}};P.map=function(a,b,c){var d=new P(a.hd());P.$(a,function(e,f,h){d.ai(f,h,b.call(c,e,f,h,a))});return d};P.prototype.ba=null;P.prototype.v=
null;P.prototype.hd=function(){return this.v};P.prototype.wg=function(a,b){if(a<0||a>=this.v.width||b<0||b>this.v.height){return null}return this.ba[a][b]};P.prototype.ai=function(a,b,c){if(a<0||b<0||a>=this.v.width||b>=this.v.height){throw Error("Index out of bounds when setting matrix value, ("+a+","+b+")");}this.ba[a][b]=c};P.prototype.ii=function(){return this.ba};P.prototype.toString=function(){var a=0;P.$(this,function(c){var d=String(c).length;if(d>a){a=d}});var b=[];qc(this.ba,function(c,
d){b.push("[ ");qc(c,function(e,f){e=String(e);b.push(pj(" ",a-e.length)+e+" ")});b.push("]\n")});return b.join("")};var z=function(a,b){var c=b||window;if(a==z.Type.Parent){this.uf=z.PARENT_STUB_PREFIX+Number(new Date);this.gb=z.CHILD_STUB_NAME}else{this.uf=z.CHILD_STUB_NAME;this.gb=this.og();this.Sa=c.opener||c.parent;if(this.gb&&!this.Sa[this.gb]){var d=0;while(this.Sa&&!this.Sa[this.gb]&&d<10){this.Sa=this.Sa.parent;d++}}c[z.CHILD_PROXY_NAME]=this}c[this.uf]=this.gi.bind(this);this.Ej=a};z.inherits(O);z.getTopProxy=function(a){var b=a||window;return b[z.CHILD_PROXY_NAME]};z.prototype.Rh=function(a){this.Sa=
a};z.Type={Parent:"Parent",Child:"Child"};z.CHILD_STUB_NAME="ChildStub";z.PARENT_STUB_PREFIX="ParentStub";z.STUB_URL_PARAMETER="eventCallback";z.CHILD_PROXY_NAME="__topLevelProxy__";z.prototype.type=null;z.prototype.og=function(){var a=new l(document.location.href);return a.dd(z.STUB_URL_PARAMETER)};z.prototype.xe=function(){return this.uf};z.prototype.Qb=function(a){return this.Eh(a)};z.prototype.Eh=function(a){if(this.Sa[this.gb]){return this.Sa[this.gb](a)}else{return true}};z.prototype.gi=function(a){var b=
O.prototype.dispatchEvent.call(this,a);return b};var Zd=function(){};Zd.inherits(O);Zd.prototype.mf=function(a){this.aj=a};Zd.prototype.dispatchEvent=function(a){if(this.aj.Qb(a)){O.prototype.dispatchEvent.call(this,a)}};var s=function(a){z.call(this,z.Type.Parent,a||window)};s.inherits(z);s.Param={X:"x",Y:"y",WIDTH:"width",HEIGHT:"height",MOCK:"mock",BORDER:"border",HIDE:"hide",MAXIMIZE:"maximize"};s.Border={NONE:"NONE",THIN:"THIN",OUTSET:"OUTSET"};s.EventType={CLOSE:"CLOSE",SHOW:"SHOW",PRESHOW:"PRESHOW"};s.nb=null;s.ni=function(a){switch(a){case s.Border.NONE:return"0";case s.Border.THIN:return"1px solid black";case s.Border.OUTSET:return"2px outset black"}};s.Od=function(a,b,c){var d=b||{};d["border"]=d["border"]||
s.Border.OUTSET;var e=new Fb(c);e.Mb(a,d,null);return e};s.Sf=function(a,b,c,d){var e=b||{};e["border"]=e["border"]||s.Border.NONE;var f=Qb(c),h=new ta(d);h.Mb(a,e,f);return h};s.prototype.Mb=function(a,b,c){};s.prototype.show=function(){};s.prototype.hide=function(){};s.prototype.dispose=function(){};s.Ci=function(a,b){var c=new l(s.yi()+"/ui/"+a),d=new l(document.location.href);if(d.dd("js")){c.B("js",d.dd("js"))}c.B("js","RAW");if(b){Ia(b,function(e,f){if(e!=null){c.B(f,e)}})}return c};s.yi=function(){if(s.nb){return s.nb}else if(t["manifest"]){return t["manifest"]["serverBase"]}else{return""}};
s.setBaseUri=function(a){s.nb=a.toString()};s.o=0;s.Ai=function(){return"hosted-"+s.o++ +"-"+Number(new Date)};var ta=function(a){s.call(this,a)};ta.inherits(s);ta.Lb=function(a,b,c){var d=s.Ai(),e=Za(d);if(!e){e=Ra("iframe",{id:d});Db(e,"display","block");Db(e,"backgroundColor","#FFF");Db(e,"border",s.ni(c));Ja(e,a,b)}return e};ta.prototype.Mb=function(a,b,c){this.l=s.Ci(a,b);this.oi=b[s.Param.BORDER];this.Z=!(b[s.Param.HIDE]=="true");this.jh=b[s.Param.MOCK];this.rj=b[s.Param.X]||20;this.sj=b[s.Param.Y]||20;this.qj=b[s.Param.WIDTH]||600;this.Ei=b[s.Param.HEIGHT]||480;this.Qi=b[s.Param.MAXIMIZE]=="true";this.wd=
c;var d=ta.Lb(this.qj,this.Ei,this.oi);if(!this.jh){this.l.B("eventCallback",this.xe());this.l.B("js","RAW");d.src=this.l.toString()}this.Xc(d);if(this.jh){new z(z.Type.Child,d.contentWindow);d.contentWindow[z.CHILD_PROXY_NAME].gb=this.xe()}this.Rh(d.contentWindow)};ta.prototype.Xc=function(a){this.Ca=a;if(this.wd){this.wd.appendChild(a);this.li()}else{a.style.position="absolute";document.body.appendChild(a);bb(a,this.rj,this.sj)}if(!this.Z){a.style.display="none"}};ta.prototype.li=function(){if(this.wd&&
this.Qi){Ja(this.Ca,W(this.wd))}};ta.prototype.show=function(){this.Qb(s.EventType.PRESHOW);this.Ca.style.display="block";this.Qb(s.EventType.SHOW)};ta.prototype.hide=function(){this.Ca.style.display="none"};ta.prototype.dispose=function(){if(this.Ca!=null){this.Ca.parentNode.removeChild(this.Ca);this.Ca=null}s.prototype.dispose.call(this)};var Fb=function(a){ta.call(this,a)};Fb.inherits(ta);Fb.prototype.Xc=function(a){if(Ic){ja(document.body,"background")}var b=new v;b.me().appendChild(a);b.lf(new $);b.ia(this.Z);this.Pc=b;this.Ca=a};Fb.prototype.show=function(){this.Pc.ia(true)};Fb.prototype.hide=function(){this.Pc.ia(false)};Fb.prototype.dispose=function(){this.Pc.dispose();oa(document.body,"background");this.Pc=null;this.Ca=null;ta.prototype.dispose.call(this)};var ia=function(){this.Rd={}};ia.prototype.Rd=null;var Yd=null,Vk=function(){if(!Yd){Yd=new ia}return Yd};ia.prototype.ne=function(a){return this.Rd[a]};ia.prototype.create=function(a,b,c){var d=this.ne(a);if(d){if(b){b=Qb(b)}return d(b,c,a)}};ia.prototype.Md=function(a){var b=this.ne(a);if(b){var c={},d=(new l(document.location.href)).gd();Ia(d,function(h,i){c[i]=h});var e=new z(z.Type.Child),f=b(document.body,c,a);if(f.mf){f.mf(e)}}};ia.prototype.Hc=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 h=e[f].name;if(Wa(h,"g:")){d[h.substring(2)]=e[f].value}}this.create(c,b,d)}var i=b.childNodes.length;for(var f=0;f<i;f++){var j=b.childNodes[f];if(j.nodeType==1){this.Hc(j)}}};ia.prototype.he=function(a){var b=z.getTopProxy();if(b){if(V(a)){a=new Z(a)}return b.Qb(a)}else{return true}};var Wk=function(){Li("Xuit",Vk());kb(ia.prototype,"buildUi",ia.prototype.Hc);kb(ia.prototype,"create",ia.prototype.create);kb(ia.prototype,"createAsFullPage",ia.prototype.Md);kb(ia.prototype,"fireHostedEvent",ia.prototype.he);kb(s.prototype,"hide",s.prototype.hide);kb(s.prototype,"show",s.prototype.show);kb(s.prototype,"dispose",s.prototype.dispose)};Wk();var la={},ca=function(){this.nb="..";this.hf={};this.zf={};this.Gb={};this.dc={};this.Fi={};this.yf={}},ma=function(){if(!td){td=new ca}return td},td=null;ca.prototype.Yh=function(a,b,c){a=new l(a);if(b&&c){if(!this.Gb[b]){this.Gb[b]={}}this.Gb[b][c]=a}else if(b){this.zf[b]=a}else if(c){this.hf[c]=a}else{this.nb=a}};ca.prototype.Zb=function(a,b){if(this.Gb[a]&&this.Gb[a][b]){return this.Gb[a][b]}else if(this.zf[a]){return this.zf[a]}else if(this.hf[b]){return this.hf[b]}else{return this.nb}};ca.prototype.Gd=
function(a,b,c){var d=this.dc[a];if(d&&d.attach){d.attach(b,c);return true}var e=this.Fi[a];if(e&&e.attach){e.attach(b,c);return true}return false};ca.prototype.za=function(a,b,c){var d=this.dc[a];if(d&&d.za){d.za(b,c);return true}return false};ca.prototype.$a=function(a,b,c){var d=this.dc[a];if(d&&d.$a){d.$a(b,c);return true}return false};var Ti=0;ca.prototype.Sf=function(a,b,c,d,e,f){var h=e||document,i=c;if(!i){var j=uc(),k=j.width>b.width?Math.round(j.width-b.width)/2:0,n=j.height>b.height?Math.round(j.height-
b.height)/2:0;i=new ea(k,n)}var w=this.dc[a],o=w.R()+"-iframe-div",K=w.R()+"-iframe",E=Za(K);if(!E){var x=Ra("div");x.id=o;x.style.position="absolute";x.style.zIndex=50;h.body.appendChild(x);E=this.Lb(a,b);x.appendChild(E)}bb(x,i.x,i.y);Ja(E,b.width,b.height);E.src=this.Qd(a,d,f)};ca.prototype.Od=function(a,b,c,d){if(Md&&Ic){ja(document.body,"background")}var e=this.Lb(a,b),f=new v;f.me().appendChild(e);f.lf(new $);f.ia(true);e.src=this.Qd(a,c,d);this.yf[a]=f;return e.contentWindow};ca.prototype.Lb=
function(a,b){var c=a+"-iframe",d=Za(c);if(!d){d=Ra("iframe",{id:c});Db(d,"display","block");Db(d,"backgroundColor","#FFF");Db(d,"border","2px outset black");Ja(d,b.width,b.height)}return d};ca.prototype.Qd=function(a,b,c){var d=new l(this.Zb()+"/ui/"+a);if(c){var e="UiWidgetCallback"+Ti++;t[e]=c;d.B("done",e)}d.B("js","RAW");d.B("pop","TRUE");if(b){Ia(b,function(f,h){if(f!=null){d.B(h,f)}})}return d};ca.prototype.ag=function(a){var b=this.yf[a];if(b){b.dispose();oa(document.body,"background")}delete this.yf[a]};
ca.prototype.Qh=function(a,b){var c=this.dc[a],d=Za(c.R()+"-iframe");if(d&&d.contentWindow["UI_receive"]){d.contentWindow["UI_receive"](b)}};ca.prototype.Ed=function(a){var b=a||document;for(var c=b.firstChild;c;c=c.nextSibling){this.Ed(c)}if(b.getAttribute){var d=b.getAttribute("gtype");if(d){var e={};for(var f=0;f<b.attributes.length;f++){var h=b.attributes[f];e[h.name]=h.value}var i=this.Gd(d,b,e);if(!i){this.za(d,b,e)}}}};var lf=0;ca.prototype.Qc=function(a,b,c,d,e){var f=e||document,h=f.createElement("div");
h.style.position="absolute";h.style.zIndex=40;h.id="UiWidget"+lf++;f.body.appendChild(h);bb(h,b.x,b.y);if(c){Ja(h,c.width,c.height)}this.za(a,h,d);return h.id};ca.prototype.Qc=function(a,b,c,d,e){var f=e||document,h=f.createElement("div");h.style.position="absolute";h.style.zIndex=40;h.id="UiWidget"+lf++;f.body.appendChild(h);bb(h,b.x,b.y);if(c){Ja(h,c.width,c.height)}this.za(a,h,d);return h.id};ca.prototype.erase=function(a,b){var c=b||document,d=c.getElementById(a);if(d){d.parentNode.removeChild(d)}};
window["UI_setServerBase"]=function(a,b,c){ma().Yh(a,b,c)};window["UI_getServerBase"]=function(a,b){ma().Zb(a,b)};window["UI_attachAndDisplayAllWidgets"]=function(a){ma().Ed(a)};window["UI_attachWidget"]=function(a,b,c){ma().Gd(a,b,c)};window["UI_displayInline"]=function(a,b,c){ma().za(a,b,c)};window["UI_displayIframe"]=function(a,b){ma().$a(a,b)};var mb=function(a){this.b=a;this.gj=100;this.$i=1000;u(a,["input","propertychange"],this.Ee,false,this);u(a,Vb,this.Dg,false,this);u(a,Ub,this.Cg,false,this);var b=["focus",ka,"blur"];u(a,b,this.Eg,false,this)};mb.mixin(O.prototype);mb.prototype.Dg=function(a){t.setTimeout(this.Ee.bind(this),0);if(!this.dispatchEvent(a)){a.preventDefault()}};mb.prototype.Cg=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(c){var d=this.dispatchEvent(c);if(!d){a.preventDefault()}}};mb.prototype.Eg=function(a){this.dispatchEvent(a)};mb.prototype.Ee=function(a){var b=this.b.defaulted?"":this.b.value;this.Yd("VALUE",b);if(this.ei){t.clearTimeout(this.ei)}this.ei=t.setTimeout(this.Ld.bind(this,"STABLE_VALUE",b),this.gj);if(this.xh){t.clearTimeout(this.xh)}this.xh=t.setTimeout(this.Ld.bind(this,"PAUSED_VALUE",b),this.$i)};mb.prototype.Ld=function(a,b){var c=this.b.defaulted?"":this.b.value;if(c==b){this.Yd(a,
b)}};mb.prototype.Yd=function(a,b){var c=new Z(a);c.value=b;this.dispatchEvent(c)};var ud=function(a,b,c,d){var e=a.split("."),f=d||t,h=f,i=e.length;for(var j=0;j<i-1;j++){if(!h[e[j]]){h[e[j]]={}}h=h[e[j]]}h[e[i-1]]=b;if(c){f[c]=b}},pd=function(a){this.Sg=a;this.lh=-1};pd.prototype.show=function(a,b){this.lh=a;this.fc();if(!b){this.Ga()}};pd.prototype.fc=function(){if(!this.Qa){t.setTimeout(F(this.Ga,this),0)}this.Qa=true};pd.prototype.Ga=function(a){if(this.Qa){for(var b=0;b<this.Sg.length;b++){var c=
this.Sg[b],d=Za(c);if(this.lh==c){this.Fj=c;d.style.display="block"}else{d.style.display="none"}}this.Qa=false}};var Vi=function(a,b){if(a.value==""||a.value==b||a.value==a.defaultText){a.defaulted=true;a.value=b;ja(a,"input-default")}a.defaultText=b;u(a,"focus",function(){if(a.defaulted){a.value="";oa(a,"input-default");a.defaulted=false}});u(a,"blur",Ui.bind(null,a));u(a,Vb,function(c){if(c.keyCode==27){a.value=""}})},Ui=function(a){if(a.value==""&&!a.defaulted){a.defaulted=true;a.value=a.defaultText;
ja(a,"input-default")}},df=function(a,b,c){if(a){this.Da=a;this.Tg=b||a.getAttribute("icon");if(this.Tg){this.ea=Ra("div",{className:this.Da.className});this.Da.className="inner";this.od=fd("img");this.od.src=this.Tg;this.od.style.verticalAlign="bottom";this.ea.appendChild(this.od);a.parentNode.replaceChild(this.ea,a);this.ea.appendChild(a);this.Da.style.border="0px";this.Da.style.padding="0px";this.Da.style.paddingLeft="4px";this.ea.style.verticalAlign="top";this.Da.style.width="80%";var d=M?0:wd(this.ea)-
2;this.ea.style.height=W(this.ea).height-d+"px";this.ea.style.overflow="hidden";t.setTimeout(this.Ie.bind(this),0);u(window,"resize",this.Ie,false,this)}this.rb=c||a.getAttribute("defaultText");if(this.rb){Vi(this.Da,this.rb)}}};df.prototype.Ie=function(){this.di=false;t.setTimeout(this.ci.bind(this),0)};df.prototype.ci=function(){if(!this.di){var a=W(this.Da),b=W(this.od).width,c=b?b:16;a.width=W(this.ea).width-c-20;this.Da.style.width=a.width+"px";this.di=true}};var Zb=function(a,b){this.b=a;if(a==
null){return}this.Vc=b?la.BooleanExpr.create(b):null;if(this.Vc){var c=F(this.vf,this);Ia(this.Vc.getDataDeps(),function(i){J().mb(c,i.sf)});this.vf()}if(M){var d=W(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 h=f>=2?f-2:0;a.style.paddingBottom=String(h)+"px"}u(a,Wb,F(this.zh,this));u(a,"mouseup",F(this.df,this));u(a,"mouseout",F(this.fh,this));u(a,Ab,
F(this.ji,this));u(a,ka,F(this.df,this))};Zb.prototype.zh=function(a){ja(a.target,"presubmit");a.target.Ah=true};Zb.prototype.df=function(a){oa(a.target,"presubmit");a.target.Ah=false};Zb.prototype.fh=function(a){oa(a.target,"presubmit")};Zb.prototype.ji=function(a){if(a.target.Ah){ja(a.target,"presubmit")}};Zb.prototype.vf=function(){if(this.Vc){this.b.disabled=!this.Vc.S()}};var xd=function(a,b){this.L=a;this.Vd=b||"$LastMessage";this.Ri=Q(this.Vd+"/Message");this.mj=Q(this.Vd+"/Level");J().mb(F(this.fc,
this),this.Vd+"/...");this.Qa=false};xd.prototype.fc=function(){if(!this.Qa){t.setTimeout(F(this.Ga,this),0)}this.Qa=true};xd.prototype.Ga=function(){if(this.Qa){var a=this.Ri.S();if(a==null){oa(this.L,"error");oa(this.L,"info");this.L.innerHTML=""}else{var b=this.mj.S();if(b==la.UserMessages.Level.INFO){ja(this.L,"info");oa(this.L,"error")}else{ja(this.L,"error");oa(this.L,"info")}ja(this.L,"hilite");if(a.length<150){this.L.innerHTML=sa(a)}else{var c=Ra("div",{style:"display:none; position:absolute; background-color:white;padding:8px; border:1px dashed #AAA;text-decoration: none"});
c.innerHTML=sa(a).replace(/\n/g,"<br/>");var d=Ra("a",{href:"#"});u(d,ka,function(){if(c.style.display=="block"){c.style.display="none"}else{c.style.display="block"}});d.innerHTML="Details";this.L.innerHTML="";this.L.appendChild(document.createTextNode("An unknown error occurred. "));this.L.appendChild(d);this.L.appendChild(c);var e=ob(this.L),f=W(this.L),h=W(c);Ld(c,e.x+f.width-h.width,e.y+f.height)}t.setTimeout(F(this.yh,this),1000)}this.Qa=false}};xd.prototype.yh=function(){oa(this.L,"hilite")};
var Dc=function(a,b,c,d,e){this.b=Qb(a);this.Ka=Q(b);this.ri=c;this.rb=d||this.b.getAttribute("defaultText");this.ih=e;if(this.ih){this.b["maxLength"]=this.ih}J().mb(F(this.Nb,this),b);u(this.b,"change",this.sb,false,this);if(this.ri){u(this.b,"keyup",this.sb,false,this)}var f=this.Ka.S();if(f){this.b.value=f}if(this.rb){u(this.b,"blur",this.Kc,false,this);u(this.b,"focus",this.ph,false,this);this.Kc()}};Dc.prototype.Nb=function(){if(!this.cc){var a=this.Ka.S();this.bc=true;this.b.value=a?a:"";this.bc=
false;this.Pb=false;if(this.rb){this.Kc()}}};Dc.prototype.sb=function(){if(!this.bc){var a=this.b.value||null;this.cc=true;var b=this.Ka.qa().Xb(null,true);b.V(this.Ka.Se,a);this.cc=false}};Dc.prototype.Kc=function(){if(this.b.value==""&&!this.Pb){this.Pb=true;ja(this.b,"input-default");this.b.value=this.rb}else{oa(this.b,"input-default");this.Pb=false}};Dc.prototype.ph=function(){if(this.Pb){this.b.value="";oa(this.b,"input-default");this.Pb=false}};var jf=function(a,b,c){this.b=Qb(a);this.Ka=Q(b);
var d=this.Ka.S();if(c){this.uj=c;Ia(c.D(),function(h,i){var j=fd("option");j.value=i;j.text=h;this.b.options[this.b.options.length++]=j})}for(var e=0;e<this.b.options.length;e++){var f=this.b.options[e];if(d==f.value){f.selected=true}}J().mb(F(this.Nb,this),b);u(this.b,"change",this.sb,false,this)};jf.prototype.Nb=function(){if(!this.cc){var a=this.Ka.S();this.bc=true;this.b.value=a?a:"";this.bc=false}};jf.prototype.sb=function(){if(!this.bc){var a=this.b.value||null;this.cc=true;la.ContactUtil.setData(this.Ka.sf,
a);this.cc=false}};var Pi=function(a,b){this.Ge=a;this.yj=b};Pi.prototype.R=function(){return this.id};var Oi=function(a){this.w=a||{};this.pj=new q(this.w)};Oi.prototype.D=function(){return this.pj};var Ri=function(a){for(var b=a.firstChild;b;b=b.nextSibling){Ri(b)}if(a.nodeType==1&&a.getAttribute("maximize")=="true"){a.style.width="1px";a.style.height="1px"}},Si=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=
uc();c=e.width;d=e.height}else{var f=a.parentNode;c=a.parentNode.offsetWidth-vd(f);if(!M){c-=vd(a)}d=a.parentNode.offsetHeight-wd(f)}a.style.width=c+"px";a.style.height=d+"px";if(a.offsetHeight>d){a.style.height=2*d-a.offsetHeight+"px"}if(a.nodeName=="TABLE"){var h=null,i=0,j;for(var j=0;j<a.rows.length;j++){var k=a.rows[j];if(k.getAttribute("maximize")=="true"){h=k;h.style.height="100%"}}if(h){for(var j=0;j<a.rows.length;j++){var k=a.rows[j];if(k!=h){i+=k.offsetHeight}}h.style.height=d-i-2+"px";
h.style.width=""}}}for(b=a.firstChild;b;b=b.nextSibling){Si(b)}},vd=function(a){return xa(a,"paddingLeft")+xa(a,"paddingRight")+xa(a,"marginLeft")+xa(a,"marginRight")+xa(a,"borderLeftWidth")+xa(a,"borderRightWidth")},wd=function(a){return xa(a,"paddingTop")+xa(a,"paddingBottom")+xa(a,"marginTop")+xa(a,"marginBottom")+xa(a,"borderTopWidth")+xa(a,"borderBottomWidth")},xa=function(a,b){var c=Rb(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(ya(d,"px")){return Number(d.substring(0,d.length-2))}else{return 0}};var xi=function(a,b){if(typeof a.selectionStart=="number"){a.selectionStart=b}else if(M){var c=jd(a),d=c[0],e=c[1];if(!d.inRange(e)){return}var f=a.value,h=0,i=b;while(h!=-1&&h<i){h=f.indexOf("\r\n",h);if(h!=-1&&h<i){b--;h++}}d.collapse(true);d.move("character",b);d.select()}else{throw Error("Cannot set the selection start");}},We=function(a){if(typeof a.selectionStart=="number"){return a.selectionStart}if(M){var b=jd(a),c=b[0],d=b[1];if(!c.inRange(d)){return-1}c.setEndPoint("EndToStart",d);return c.text.length}return-1},
wi=function(a,b){if(typeof a.selectionEnd=="number"){a.selectionEnd=b}else if(M){var c=jd(a),d=c[0],e=c[1];if(!d.inRange(e)){return}e.collapse();e.moveEnd("character",b-We(a));e.select()}else{throw Error("Cannot set the selection end");}},jd=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]};var m=function(a,b,c){Pa.call(this);this.hh=a;this.Ph=c;this.nc=b;u(b,[m.EventType.HILITE,m.EventType.SELECT,m.EventType.CANCEL_DISMISS,m.EventType.DISMISS],this);this.xa=null;this.Pi=10;this.A=[];this.Oa=-1;this.La=0;this.Fb=null;this.Za=null};m.inherits(Pa);m.EventType={HILITE:"hilite",SELECT:"select",DISMISS:"dismiss",CANCEL_DISMISS:"canceldismiss"};m.prototype.zb=function(a){if(a.target==this.nc){switch(a.type){case m.EventType.HILITE:this.Na(a.row);break;case m.EventType.SELECT:this.qc();break;
case m.EventType.CANCEL_DISMISS:this.Jc();break;case m.EventType.DISMISS:this.Xd();break}}};m.prototype.$h=function(a){if(this.xa==a){return}this.xa=a;this.hh.xd(this.xa,this.Pi,this.gh.bind(this));this.Jc()};m.prototype.Zh=function(a){this.Fb=a};m.prototype.Ng=function(){if(this.Oa>=this.La&&this.Oa<this.La+this.A.length-1){this.Na(this.Oa+1);return true}return false};m.prototype.Og=function(){if(this.Oa>this.La){this.Na(this.Oa-1);return true}return false};m.prototype.Na=function(a){if(this.qe(a)!=
-1){this.Oa=a;this.nc.Na(a);return true}return false};m.prototype.qc=function(){var a=this.qe(this.Oa);if(a!=-1){this.Ph.rc(this.A[a]);this.dismiss();return true}return false};m.prototype.dismiss=function(){this.Oa=-1;this.xa=null;this.La+=this.A.length;this.A.length=0;window.clearTimeout(this.Za);this.Za=null;this.nc.dismiss()};m.prototype.Xd=function(){if(!this.Za){this.Za=window.setTimeout(this.dismiss.bind(this),50)}};m.prototype.Jc=function(){window.setTimeout((function(){if(this.Za){window.clearTimeout(this.Za);
this.Za=null}}).bind(this),10)};m.prototype.dispose=function(){if(!this.pa()){m.aa.dispose.call(this);this.nc.dispose();this.Ph.dispose();this.hh=null}};m.prototype.gh=function(a,b){if(this.xa!=a){return}this.La+=this.A.length;this.A=b;var c=[];for(var d=0;d<b.length;++d){c.push({id:this.jg(d),data:b[d]})}this.nc.Oh(c,this.xa,this.Fb);if(c.length!=0){this.Na(this.La)}};m.prototype.qe=function(a){var b=a-this.La;if(b<0||b>=this.A.length){return-1}return b};m.prototype.jg=function(a){return this.La+
a};m.ArrayMatcher=function(a,b){this.A=a;this.oj=!b};m.ArrayMatcher.prototype.xd=function(a,b,c){var d=this.pg(a,b);if(d.length==0&&this.oj){d=this.ug(a,b)}c(a,d)};m.ArrayMatcher.prototype.pg=function(a,b){var c=[];if(a!=""){var d=Gd(a),e=new RegExp("(^|\\W+)"+d,"i");wj(this.A,function(f){if(String(f).match(e)){c.push(f)}return c.length>=b})}return c};m.ArrayMatcher.prototype.ug=function(a,b){var c=[];Ia(this.A,function(f){var h=a.toLowerCase(),i=String(f).toLowerCase(),j=0;if(i.indexOf(h)!=-1){j=parseInt(i.indexOf(h)/
4,10)}else{var k=h.split(""),n=-1,j=0,w=10;for(var o=0,K;K=k[o];o++){var E=i.indexOf(K);if(E>n){var x=E-n-1;if(x>w-5){x=w-5}j+=x;n=E}else{j+=w;w+=5}}}if(j<h.length*6){c.push({str:f,score:j})}});c.sort(function(f,h){return f.score-h.score});var d=[];for(var e=0;e<b&&e<c.length;e++){d.push(c[e].str)}return d};m.InputHandler=function(a,b,c){this.t=null;this.Zd=[];this.Db=a||",;";this.si=this.Db.substring(0,1);this.lj=new RegExp("^[\\s"+this.Db+"]+|[\\s"+this.Db+"]+$","g");this.ej=new RegExp("s*["+this.Db+"]$");this.bh=b||"";this.hj=50;this.Pe=null;this.Sd=null;this.Vf=0;this.ic=c!=null?c:true};m.InputHandler.inherits(Pa);m.InputHandler.STANDARD_LIST_SEPARATORS=",;";m.InputHandler.QUOTE_LITERALS='"';m.InputHandler.prototype.dispose=function(){if(!this.pa()){m.InputHandler.aa.dispose.call(this);this.Xf.apply(this,
this.Zd)}};m.InputHandler.prototype.Ec=function(){for(var a=0;a<arguments.length;a++){var b=arguments[a];this.Zd.push(b);u(b,Vb,this.Oe,false,this);u(b,Ub,this.Ne,false,this);var c=["focus",ka];u(b,c,this.ie,false,this);u(b,"blur",this.Hd,false,this)}};m.InputHandler.prototype.Xf=function(){for(var a=0;a<arguments.length;a++){var b=arguments[a];U(b,Vb,this.Oe,false,this);U(b,Ub,this.Ne,false,this);var c=["focus",ka];U(b,c,this.ie,false,this);U(b,"blur",this.Hd,false,this);Ie(this.Zd,b)}};m.InputHandler.prototype.Fd=
function(a){this.t=a};m.InputHandler.prototype.rc=function(a){if(this.ic){var b=this.Sd,c=this.Vf,d=this.Ad(b.value),e=d[c].replace(this.wf(d[c]),a.toString());if(!this.ej.test(e)){e=rj(e)+this.si+" "}d[c]=e;if(c!=0){d[c]=" "+e}b.value=d.join("");var f=0;for(var h=0;h<=c;h++){f+=d[h].length}b.focus();xi(b,f);wi(b,f)}else{this.Sd.value=a.toString()}};m.InputHandler.prototype.Oe=function(a){var b=a.keyCode;if(this.Db.indexOf(String.fromCharCode(a.charCode))!=-1){if(this.t&&this.t.qc()&&this.ic){a.preventDefault()}}else if(b==
13){if(this.t&&this.t.qc()&&this.ic){a.preventDefault()}}else if(b!=40&&b!=38&&b!=27&&b!=9){this.$e(a)}};m.InputHandler.prototype.Ne=function(a){var b=a.keyCode;if(b==40){if(this.t&&this.t.Ng()){a.preventDefault()}}else if(b==38){if(this.t&&this.t.Og()){a.preventDefault()}}else if(b==9){t.clearTimeout(this.Pe);this.Ic(a.currentTarget);if(this.t&&this.t.qc()&&this.ic){a.preventDefault()}}else if(b==27){if(this.t){this.t.dismiss()}}else if(M&&(b==8||b==46)){this.$e(a)}};m.InputHandler.prototype.$e=
function(a){t.clearTimeout(this.Pe);this.Pe=t.setTimeout(this.Ic.bind(this,a.currentTarget),this.hj)};m.InputHandler.prototype.ie=function(a){if(this.t){this.t.Jc()}this.Ic(a.currentTarget)};m.InputHandler.prototype.Hd=function(a){if(this.t){this.t.Xd()}};m.InputHandler.prototype.Ic=function(a){var b=We(a),c=this.wh(a.value,b);this.Sd=a;this.Vf=this.ye(a.value,b);if(this.t){this.t.Zh(a);this.t.$h(c)}};m.InputHandler.prototype.wh=function(a,b){return this.wf(this.Ad(a)[this.ye(a,b)])};m.InputHandler.prototype.wf=
function(a){return String(a).replace(this.lj,"")};m.InputHandler.prototype.ye=function(a,b){var c=this.Ad(a),d=0;for(var e=0,f=0;e<c.length&&f<b;e++){f+=c[e].length;d=e}return d};m.InputHandler.prototype.Ad=function(a){if(!this.ic){return[a]}var b=String(a).split(""),c=[],d=[];for(var e=0,f=false;e<b.length;e++){if(this.bh&&this.bh.indexOf(b[e])!=-1){if(!f){c.push(d.join(""));d.length=0}d.push(b[e]);f=!f}else if(!f&&this.Db.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};m.Renderer=function(a,b,c){this.m=a||Te().body;this.e=hd(this.m);this.cj=!a;this.a=null;this.xa="";this.A=[];this.nd=-1;this.Z=false;this.className="ac-renderer";this.rowClassName="ac-row";this.activeClassName="active";this.pb=b;this.dj=c!=null?c:false;this.Me=null;this.kj=false};m.Renderer.inherits(O);m.Renderer.prototype.Oh=function(a,b,c){this.xa=b;this.A=a;this.nd=0;this.Fb=c;this.pc=[];this.redraw()};m.Renderer.prototype.dismiss=function(){if(this.Z){this.Z=false;za(this.a,false)}};m.Renderer.prototype.show=
function(){if(!this.Z){this.Z=true;za(this.a,true)}};m.Renderer.prototype.Bb=function(){return this.Z};m.Renderer.prototype.Pg=function(a){if(a>=0&&a<this.a.childNodes.length){if(this.nd>=0){oa(this.pc[this.nd],this.activeClassName)}ja(this.pc[a],this.activeClassName);this.nd=a}};m.Renderer.prototype.Na=function(a){for(var b=0;b<this.A.length;b++){if(this.A[b].id==a){this.Pg(b);return}}};m.Renderer.prototype.Uh=function(a){ja(a,this.className)};m.Renderer.prototype.redraw=function(){if(!this.a){this.a=
this.e.n("div",{style:"display: none"});this.Uh(this.a);this.e.appendChild(this.m,this.a);u(this.a,ka,this.Ae,false,this);u(this.a,Wb,this.Ce,false,this);u(this.e.Aa(),ka,this.Be,false,this);u(this.a,Ab,this.De,false,this)}this.pc.length=0;this.e.Ih(this.a);if(this.pb&&this.pb.render){this.pb.render(this,this.a,this.A,this.xa)}else{Ia(this.A,function(e){this.e.appendChild(this.a,this.Nh(e,this.xa))},this)}if(this.A.length==0){this.dismiss();return}else{this.show()}this.Ch(this.a);if(this.Fb&&this.cj){var a=
ob(this.Fb),b=W(this.Fb),c=W(Cf()),d=W(this.a);a.y=this.kj?a.y-d.height:a.y+b.height;if((this.dj||a.x+d.width>c.width)&&this.Me!="LEFT"){a.x=a.x+b.width-d.width;this.Me="RIGHT"}else{this.Me="LEFT"}bb(this.a,a)}};m.Renderer.prototype.dispose=function(){if(!this.pa()){m.Renderer.aa.dispose.call(this);if(this.a){U(this.a,ka,this.Ae,false,this);U(this.a,Wb,this.Ce,false,this);U(this.e.Aa(),ka,this.Be,false,this);U(this.a,Ab,this.De,false,this);this.e.removeNode(this.a);this.a=null}this.m=null}};m.Renderer.prototype.Ch=
function(a){if(Ic&&Md){a.style.width="";a.style.overflow="visible";a.style.width=a.offsetWidth;a.style.overflow="auto"}};m.Renderer.prototype.Mh=function(a,b,c){c.innerHTML=sa(a.data.toString())};m.Renderer.prototype.Fe=function(a,b){if(a.nodeType==3){var c=a.nodeValue;b=Gd(b);var d=new RegExp("(.*?)(^|\\W+)("+b+")","gi"),e=[],f=0,h=d.exec(c);while(h){e.push(h[1]);e.push(h[2]);e.push(h[3]);f=d.lastIndex;h=d.exec(c)}e.push(c.substring(f));if(e.length>1){a.nodeValue=e[0]+e[1];var i=this.e.createElement("b");
this.e.appendChild(i,this.e.createTextNode(e[2]));i=a.parentNode.insertBefore(i,a.nextSibling);for(var j=e.length-1;j>=3;j--){a.parentNode.insertBefore(this.e.createTextNode(e[j]),i.nextSibling)}}}else{var k=a.firstChild;while(k){var n=k.nextSibling;this.Fe(k,b);k=n}}};m.Renderer.prototype.Nh=function(a,b){var c=this.e.n("div",{className:this.rowClassName});if(this.pb&&this.pb.ff){this.pb.ff(a,b,c)}else{this.Mh(a,b,c)}if(b){this.Fe(c,b)}ja(c,this.rowClassName);this.pc.push(c);return c};m.Renderer.prototype.ve=
function(a){while(a&&a!=this.a&&!vb(a,this.rowClassName)){a=a.parentNode}return a?Zc(this.pc,a):-1};m.Renderer.prototype.Ae=function(a){var b=this.ve(a.target);if(b>=0){this.dispatchEvent({type:m.EventType.SELECT,row:this.A[b].id})}a.stopPropagation()};m.Renderer.prototype.Ce=function(a){this.dispatchEvent(m.EventType.CANCEL_DISMISS);a.stopPropagation()};m.Renderer.prototype.Be=function(a){this.dispatchEvent(m.EventType.DISMISS)};m.Renderer.prototype.De=function(a){var b=this.ve(a.target);if(b>=0){this.dispatchEvent({type:m.EventType.HILITE,
row:this.A[b].id})}};m.Renderer.CustomRenderer=function(){};m.Renderer.CustomRenderer.prototype.render=function(a,b,c,d){};m.Basic=function(a,b,c,d){var e=new m.ArrayMatcher(a,!d),f=new m.Renderer,h=new m.InputHandler(null,null,!(!c));m.call(this,e,f,h);h.Fd(this);h.Ec(b)};m.Basic.inherits(m);var $b=function(){this.He=false;this.Mc=[];this.tj=[];this.eb=null;this.ec=[];this.yg=[]},af=function(a){return Q("Emails/[0]/Address").S(a)||Q("Email").S(a)};$b.prototype.init=function(a,b,c,d,e){if(this.He){ba.warning("Init already called");return}this.He=true;var f=new l(b);f.B("jsx","true");f.B("out","js");var h=new hb(f,"Contacts","&&&START&&&","&&&END&&&"),i=J();i.Gf(h,true);i.mb(F(this.xg,this),"$Contacts");i.load();var j=e?new kf:null,k=new m.Renderer(null,j,d);this.eb=new Bc(m.InputHandler.STANDARD_LIST_SEPARATORS,
m.InputHandler.QUOTE_LITERALS);var n=new m(this,k,this.eb);this.eb.Fd(n);if(a){this.Hf(a)}};$b.prototype.Hf=function(a){if(!this.He){ba.warning("Init should be called first");return}if(S(a)){this.ec=this.ec.concat(a);for(var b=0;b<a.length;b++){this.eb.Ec.call(this.eb,a[b])}}else{this.ec.push(a);this.eb.Ec.call(this.eb,a)}};$b.prototype.xd=function(a,b,c){var d=[];if(a!=""){var e=Gd(a),f=f=new RegExp('(^|<| |")'+e,"i"),h=this.yg;for(var i=0;i<h.length&&d.length<b;++i){var j=h[i];if(j.bd().match(f)){d.push(j)}}h=
this.Mc;for(var i=0;i<h.length&&d.length<b;++i){var j=h[i];if(j.toString().match(f)){d.push(j)}}}c(a,d)};$b.prototype.xg=function(a,b){var c=J().$c("$Contacts");ba.info("Got contacts");var d=c.i("Body");if(!d){ba.info("No response body");return}var e=d.i("Contacts");if(!e){ba.info("No contacts");return}var f=e.p(),h=f.s();ba.info("Got "+h+" contacts");if(h>0){for(var i=0;i<this.ec.length;i++){this.ec[i].setAttribute("autocomplete","off")}}var j=new q;for(var i=0;i<h;i++){var k=f.oa(i),n=af(k);if(!n){continue}var w=
k.r("Name"),o=k.r("Groups");if(o!=null){var K=o.length;for(var E=0;E<K;E++){var x=j.get(o[E].id);if(x==null){x=[];j.set(o[E].id,x)}x.push($e(w,o[E].value))}}var e={};e.contactData=k;var Aa=$e(w,n);e.formattedValue=Aa;e.toString=function(){return this.formattedValue};this.Mc.push(e)}ba.info("Created contact array");var Ma=c.i("Body").i("Groups");if(Ma!=null){var o=Ma.p();h=o.s();ba.info("Got "+h+" groups");for(var i=0;i<h;i++){var Na=o.oa(i),eb=Na.r("id"),w=Na.r("Name");if(eb.charAt(0)!="^"){var ee=
j.get(eb);if(ee!=null){this.yg.push(new Ac(w,ee))}}}}};var kf=function(){};kf.prototype.ff=function(a,b,c){var d=a.data.contactData.r("Name"),e=af(a.data.contactData),f="";if(d&&e){f=sa(d)+"<br/>"+sa(e)}else if(d&&V(d)){f=sa(d)}else if(e&&V(e)){f=sa(e)}c.innerHTML=f};var _emailAutocomplete=t["_emailAutocomplete"]=new $b;t["_initEmailAutocomplete"]=F(t["_emailAutocomplete"].init,t["_emailAutocomplete"]);var _initEmailAutocomplete=t["_initEmailAutocomplete"],$e=function(a,b){if(a==null||a.length==0){return" <"+
b+">"}else{return'"'+a+'" <'+b+">"}},Bc=function(a,b,c){m.InputHandler.call(this,a,b,c)};Bc.inherits(m.InputHandler);Bc.prototype.rc=function(a){if(a.le){a=a.le().join(", ")}Bc.aa.rc.call(this,a)};var Ac=function(a,b){this.Fa=a;this.Mc=b};Ac.prototype.toString=function(){return this.Fa+" (Group)"};Ac.prototype.bd=function(){return this.Fa};Ac.prototype.le=function(){return this.Mc};var rd,sd,od="/ui/",cf=function(a){od=a};t["HtmlUtil_setServerBase"]=cf;var ef=function(a,b){var c=307,d;if(a){var e=document.getElementById(a);d=ob(e);var f=W(e);d.y+=f.height}else{d=new ea(0,0)}var h=f.width>c?f.width:c,i=554,j=313,k=600;if(b){d.x+=b.screenX-b.clientX;d.y+=b.screenY-b.clientY}if(d.x+j>screen.width){d.x=screen.width-j}if(d.y+k>screen.height){d.y=screen.height-k}var n=new nb(d.x,d.y,h,i);return n},hf=function(a,b,c){var d=ef(a,b),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=ff(a,c);window.open(f.toString(),"_picker",e)},ff=function(a,b){var c=new l(od+"ContactPicker");if(a){c.B("inputId",a)}if(b){c.B("dm","goog")}c.B("js","RAW");return c},Qi=function(a,b,c){if(rd){gf()}var d=ef(a,null),e=ff(a,c);window["iframeDone"]=gf;e.B("done","iframeDone");var f=Za("picker-iframe-div");if(f==null){var f=Ra("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 h=Za("picker-iframe");h.style.display="block";bb(f,d.left,d.top);Ja(h,d.width,d.height);h.src=e;sd=f;rd=h},gf=function(){Sa(sd);sd=null;rd=null},Mi=function(a){var b=new l(od+"ContactManager"),c=a||"THREE";b.B("style",c);b.B("js","RAW");b.B("pop","TRUE");return b},Ni=function(a,b){var c=b=="TWO"?502:750,d=new nb(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=Mi(b).toString();window.open(f,"_manager",e)},qd=function(){},ac={};qd.prototype.R=function(){return"photopicker.PhotoPicker"};qd.prototype.attach=function(a,b){for(var c in ac){var d=ac[c];if(!d.b||!ed(document,d.b)){d.dispose();delete ac[c]}}if(a&&!ac[a.id]){var e=new ha(a,b);ac[a.id]=e}};qd.prototype.$a=function(a,b){var c=new Ca(546,376);if(M){c.width+=1;c.height-=14}var d=ma().Od(this.R(),c,a,b)};var ha=function(a,b){this.b=a;this.Dd=
b;this.bf=b["exists"]=="true";this.ub=[];this.Fc(a);if(!this.bf){this.Pd("Add a picture",false,true)}this.ub.push(u(t,"resize",this.cf.bind(this)))};ha.prototype.dispose=function(){for(var a=0;a<this.ub.length;a++){zc(this.ub[a])}if(this.va&&this.va.parentNode){this.va.parentNode.removeChild(this.va)}if(this.ka&&this.va.ka){this.ka.parentNode.removeChild(this.va)}};ha.prototype.Fc=function(a){this.ub.push(u(a,Ab,this.rh,false,this));this.ub.push(u(a,"mouseout",this.qh,false,this));this.ub.push(u(a,
ka,this.vh,false,this))};ha.prototype.ea=null;ha.prototype.ac=null;ha.prototype.rh=function(a){if(this.ka){this.Kd();return}this.ka=this.Rf();if(this.bf){this.Pd("Change picture",true)}};ha.prototype.Rf=function(){var a=W(this.b);a.width-=vd(this.b);a.height-=wd(this.b);if(M){a.width+=4;a.height+=4}a.width+=2;a.height+=2;var b=Ra("div");this.Fc(b);b.style.position="absolute";b.style.zIndex=20;Ja(b,a);b.style.border="2px solid blue";var c=ob(this.b);c.x-=3;c.y-=3;b=this.b.parentNode.insertBefore(b,
this.b);bb(b,c);return b};ha.prototype.Pd=function(a,b,c){if(!this.b.parentNode){return}var d=Ra("div");this.Fc(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="absolute";d.style.zIndex=20;d=this.b.parentNode.insertBefore(d,this.b);this.va=d;this.pi=c;this.cf()};ha.prototype.cf=function(){var a=this.va;if(a){var b=W(this.b);a.style.width=b.width+
"px";var c=W(a),d=ob(this.b);if(this.pi){d.y+=(b.height-c.height)/2-4}bb(a,d)}};ha.prototype.qh=function(a){if(this.ka){var b=a.relatedTarget;if(!b||b!=this.b&&!ed(this.ka,b)){this.md(true)}}};ha.prototype.ng=function(a){var b={dn:a.getDisplayName()},c=a.getPictureUrl(true);if(c){b["eUrl"]=c}var d=Q("$UserData/IsPicasaUser").S(),e=Q("$UserData/Email").S(),f=d&&e&&(ya(e,"gmail.com")||ya(e,"googlemail.com"));b["userId"]=f?e.substring(0,e.indexOf("@")):null;b["dpUrl"]=ma().Zb().toString()+"/static/images/NoPicture.gif";
var h=Q("$AuthToken/Value").Xb().get();b["extraUploadParams"]="out=hjs;tok="+h;return b};ha.prototype.vh=function(){this.md(false);var a=Q("$Contacts/"+this.Dd.contactid).Xb(),b=this.ng(a);ma().$a("photopicker.PhotoPicker",b,this.Fg.bind(this))};ha.prototype.md=function(a){this.Kd();if(a){var b=F(this.md,this,false);this.ac=t.setTimeout(b,20);return}if(this.b&&this.ka){this.ka.parentNode.removeChild(this.ka);this.ka=null;if(this.bf){this.va.parentNode.removeChild(this.va);this.va=null}}};ha.prototype.Kd=
function(){if(this.ac){t.clearTimeout(this.ac);this.ac=null}};ha.prototype.Fg=function(a){var b=this.Dd.contactid;if(a.type=="PHOTO_PICKED"){if(a.evergreen){la.ContactData.get().chooseEvergreen(b)}else if(a.noPhoto){la.ContactData.get().deletePhoto(b)}else{la.ContactData.get().savePhoto(b,a.imageUrl,a.cropString)}}else if(a.type=="SUGGEST_DONE"&&a.suggestMessage){la.ContactData.get().sendPhotoSuggestion(b,a.suggestMessage)}else{ma().Qh("photopicker.PhotoPicker",{type:"CLOSE"});ma().ag("photopicker.PhotoPicker")}};
var lb=function(){};lb.prototype.init=function(){la.ContactUtil.installShortcuts();var a=la.ContactData.get();a.setUseGroups(true);a.setGetAllFields(true);a.setUseThumbs(true);a.load()};lb.prototype.R=function(){return"goog.focus.Hovercard"};lb.prototype.init=function(){var a=ma().Zb("CONTACTS");la.ContactUtil.installShortcuts();la.ViewManager.get().addXmlView(a+"/ui/view/Hovercard.xml");var b=la.ContactData.get();b.setUseGroups(true);b.setGetAllFields(true);b.setUseThumbs(true);b.setMaxContacts(100);
b.load();u(la.ViewManager.get(),"WidgetEvent",this.Ag,false)};lb.prototype.Ag=function(a){};lb.prototype.R=function(){return"goog.focus.Hovercard"};lb.prototype.attach=function(a,b){a.style.color="green";var c=new Cc(a,b);u(a,Ab,c.Qg,false,c)};lb.prototype.za=function(a,b){la.ViewManager.get().renderView("Hovercard",a,null,{Email:b["email"]})};var Cc=function(a,b){this.b=a;this.Dd=b};Cc.prototype.fb=function(a){var b=new ea(a.clientX,a.clientY),c=bf(b,this.b)||bf(b,this.ti);if(!c){this.fi()}};var bf=
function(a,b){var c=ob(b),d=W(b);c.x-=10;c.y-=10;d.width+=20;d.height+=20;return c.x<a.x&&a.x<c.x+d.width&&c.y<a.y&&a.y<c.y+d.height};Cc.prototype.Qg=function(a){if(this.b.Rg)return;this.b.style.textDecoration="underline";this.b.style.cursor="pointer";var b=new ea(a.offsetX+5,a.offsetY+5);this.Yf=ma().Qc("goog.focus.Hovercard",b,null,this.Dd);this.ti=Za(this.Yf);u(document,wc,this.fb,false,this);this.b.Rg=true};Cc.prototype.fi=function(){U(document,wc,this.fb,false,this);this.b.style.color="green";
this.b.style.textDecoration="";ma().erase(this.Yf);this.b.Rg=false};ud("goog.focus.ContactManagerLauncher.popManager",Ni);ud("goog.focus.PickerLauncher.popPicker",hf);ud("goog.focus.PickerLauncher.popIframe",Qi);;function vg(a){if(a in Pc){return Pc[a]}return Pc[a]=navigator.userAgent.toLowerCase().indexOf(a)!=-1}var Pc={};function Ag(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 kc(a,b){if(Ag(a,b))return;a.className+=" "+b}var Wh={Gi:function(a){return a.document.body.clientWidth},Hi:function(a){return a.document.documentElement.clientWidth},e:function(a){return a.innerWidth}};
function zg(a,b){try{if(!window.opera&&"compatMode"in a.document&&a.document.compatMode=="CSS1Compat"){return b.Hi(a)}else if(vg("msie")&&!window.opera){return b.Gi(a)}}catch(c){}return b.e(a)}function Bg(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 de?de[c]:"?"})}var de={lt:"<",gt:">",quot:'"',
nbsp:" ",amp:"&",apos:"'"};function lc(a){return encodeURIComponent(a)}function Ah(a){return document.getElementById(a)}function Bh(a){return document.all[a]}var zh=document.getElementById?Ah:Bh;function Rd(a){try{if(window.parent!=window&&window.parent.log){window.parent.log(window.name+"::"+a);return}}catch(b){}var c=zh("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 Xh=this;if(!Function.prototype.apply){Function.prototype.apply=function(a,b){var c=[],d,e;if(!a)a=Xh;var f=b||[];for(var h=0;h<f.length;h++){c[h]="args["+h+"]"}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.$){Array.prototype.$=
function(a,b){for(var c=0;c<this.length;c++){a.call(b,this[c],c,this)}}}function ah(a,b,c){var d=a.Id||[];d=d.concat(Array.prototype.slice.call(arguments,2));if(typeof a.Jb!="undefined"){b=a.Jb}if(typeof a.Ib!="undefined"){a=a.Ib}var e=function(){var f=d.concat(Array.prototype.slice.call(arguments));return a.apply(b,f)};e.Id=d;e.Jb=b;e.Ib=a;return e}Function.prototype.bind=function(a){return ah.apply(null,[this,a].concat(Array.prototype.slice.call(arguments,1)))};Function.prototype.inherits=function(a){var b=
function(){};b.prototype=a.prototype;this.aa=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}};var oc;function Rg(){var a=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.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);oc=c;break}catch(d){}}if(!oc){throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed.");}}}Rg();function Pg(){if(oc){return new ActiveXObject(oc)}else{return new XMLHttpRequest}}
function Qg(a,b,c){a.onreadystatechange=c;a.open("GET",b,true);Sg(a,null)}function Sg(a,b){try{a.send(b)}catch(c){Rd("XMLHttpSend failed "+c.toString()+"<br>"+c.stack);throw c;}};if("undefined"==typeof Rd){Rd=function(){}};function be(a){var b=function(d){return"string"==typeof d&&d.length>0?d:null},c=a.match(/^(?:([^:\/?#]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/?#:@]*)(?::([0-9]+))?)?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/);if(!c){return null}return new rb(b(c[1]),b(c[2]),b(c[3]),b(c[4]),b(c[5]),b(c[6]),b(c[7]))}function Il(a,b){if("string"==typeof a){return encodeURI(a).replace(b,Jl)}return null}function Jl(a){var b=a.charCodeAt(0);return"%"+"0123456789ABCDEF".charAt(b>>4&15)+"0123456789ABCDEF".charAt(b&15)}function rb(a,b,
c,d,e,f,h){this.U=a;this.Uf=b;this.ma=c;this.ta=d;this.ha=e;this.mc=f;this.na=h;this.lc=null}rb.prototype.toString=function(){var a=[];if(null!==this.U){a.push(this.U,":")}if(null!==this.ma){a.push("//");if(null!==this.Uf){a.push(this.Uf,"@")}a.push(this.ma);if(null!==this.ta){a.push(":",this.ta.toString())}}if(null!==this.ha){a.push(this.ha)}if(null!==this.mc){a.push("?",this.mc)}if(null!==this.na){a.push("#",this.na)}return a.join("")};rb.prototype.Df=function(a){this.ha=Il(a,/[\#\?]/g);return this};
rb.prototype.Cf=function(a){this.lc=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.mc=b.join("");return this};rb.prototype.Bf=function(){if(!this.lc){if(!this.mc){this.lc=[]}else{var a=this.mc.split(/[&\?]/),b=[];for(var c=0;c<a.length;++c){var d=a[c].match(/^([^=]*)(?:=(.*))?$/);b.push(qg(d[1]),qg(d[2]||""))}this.lc=b}}};rb.prototype.ja=function(a,b){if(typeof b==="string"){b=
[b]}this.Bf();var c=0,d=this.lc,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.Cf(e);return this};function qg(a){return decodeURIComponent(a).replace(/\+/g," ")};var Lb=[];Lb.HIDE_TIMEOUT=100;Lb.SHOW_TIMEOUT=100;var Qc="menu-normalsb",mc="menu-shim";function Hg(){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 Gg(a,b){var c=b.id;if(!c){c=a.currentTarget.id}var d=window.setTimeout(ge(c),Lb.HIDE_TIMEOUT),e=document.getElementById(c);e.VideoTabHideTimer=d}function he(a){var b=document.getElementById(a);
if(b===null){return}if(b.bt!==null){b.bt.className=Qc}if(b.style===null){return}b.style.display="none";var c=document.getElementById(mc);if(c!==null&&c.style!==null){c.style.display="none"}}function Mg(a){var b=document.getElementById(a);if(b==null){return}if(b.bt!=null){if(b.bt.className==Qc){b.bt.className="menu-selectsb"}else{b.bt.className=Qc}}if(b.style!==null){if(b.style.display=="none"){b.style.display="block";var c=document.getElementById(mc);if(c!==null){c.style.display="block"}}else{b.style.display=
"none";var c=document.getElementById(mc);if(c!==null&&c.style!==null){c.style.display="none"}}}}function Ig(a){window.clearTimeout(a.VideoTabHideTimer);a.VideoTabHideTimer=null}function Fg(a,b,c){var d=a.VideoTabPopupTimer;if(d!==null){window.clearTimeout(d);a.VideoTabPopupTimer=null}var e=window.setTimeout(ge(a.id),Lb.HIDE_TIMEOUT);a.VideoTabHideTimer=e}function Lg(a,b,c){if(a.VideoTabHideTimer){window.clearTimeout(a.VideoTabHideTimer);a.VideoTabHideTimer=null}var d=window.setTimeout(Dg(a.id),Lb.SHOW_TIMEOUT);
a.VideoTabPopupTimer=d;a.bt=b}function Kg(a){if(a===null||a.style===null){return}var b=a.bt,c=tg(b),d=ug(b)+b.offsetHeight-1,e=c.toString()+"px",f=d.toString()+"px",h=Hg();a.style.position="absolute";a.style.left="-500px";a.style.top=f;a.style.zIndex="2000";a.style.display="block";var i=c+a.offsetWidth;if(i<=h-5){a.style.left=e}else{var j=h-5-a.offsetWidth;a.style.left=j.toString()+"px"}b.className="menu-selectsb";var k=document.getElementById(mc);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 Jg(a){if(a===null){return}a.className="menu-menuitem-sel"}function Eg(a){if(a===null){return}a.className="menu-menuitem"}function ge(a){if(!a){return}return function(){he(a)}}function Dg(a){if(!a){return}return function(){Kg(document.getElementById(a))}};function yg(a,b){if(a=="goFullscreen"||a=="donePlaying"){if(this[a]){var c=eval("["+b+"]");this[a].apply(this,c)}}else if(a=="clickVideo"){oh()}}function oh(){var a=g("thumbflashpreview");if(!a||typeof a=="undefined"){return}var b=a.parentNode.parentNode.childNodes;ql();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 gl(a,b){var c=new Date;c.setYear(c.getFullYear()+1);document.cookie=
a+"="+b+"; expires="+c.toGMTString()}function $d(a,b){var c=new Date,d=Ba(VP_vpref),e="";c.setSeconds(c.getSeconds()+VP_vprefAge);if(d){var f=d.split(/\s*:\s*/);for(var h=0;h<f.length;h++){var i=f[h].split("=");if(a!=i[0]){e+=i[0]+"="+i[1]+":"}}}e+=a+"="+b;document.cookie=VP_vpref+"="+e+"; expires="+c.toGMTString()}function Gb(a,b,c,d){var e=a+"="+encodeURIComponent(b);if(c){e+="; domain="+c}if(d){e+="; path="+d}document.cookie=e}function qb(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 jh(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 Ba(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 fl(a,
b,c){for(var d=0;d<a.childNodes.length;d++){if(a.childNodes[d].nodeName==b){hl(a.childNodes[d],c)}}}function ql(){var a=g("thumbflashpreview");if(a&&typeof a!="undefined"){var b=a.parentNode.parentNode;Jk(a.parentNode);fl(b,"A",true)}}var fc=navigator.appVersion.indexOf("MSIE")!=-1?true:false,Qd=navigator.appVersion.toLowerCase().indexOf("win")!=-1?true:false,Of=navigator.userAgent.indexOf("Opera")!=-1?true:false;function xh(a){if(!a&&fc&&Qd)return;for(var b=25;b>0;b--){var c;if(fc&&Qd&&!Of){c=VBGetSwfVer(b)}else{c=
navigator.plugins["Shockwave Flash"].description.substring(16,19)}if(c==-1){Sc();return false}else if(c!=0){var d;if(fc&&Qd&&!Of){var e=c.split(" "),f=e[1];d=f.split(",")}else{d=c.split(".")}var h=d[0];if(h<7){Sc();return false}else{return true}}}Sc();return false}function Sc(){if(confirm("You need Flash 7 or higher to watch videos.")){window.location="http://www.macromedia.com/go/getflashplayer"}}function g(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 p(a){a.style.display="none"}function r(a){a.style.display=""}function Al(a,b){tb=g(a);mg(tb,b)}function mg(a,b){var c=function(){p(a)};window.setTimeout(c,b)}function hl(a,b){if(b){r(a)}else{p(a)}}function Dl(a){var b=g(a);if(!b){return true}else if(se(b,"display","display")=="block"||se(b,"display","display")=="inline"){b.className="invisible"}else{b.className=
"visible"}}function se(a,b,c){if(a.currentStyle){return a.currentStyle[b]}else if(window.getComputedStyle){var d=window.getComputedStyle(a,"");return d.getPropertyValue(c)}}function Jk(a){a.parentNode.removeChild(a)}function Eb(a){a=encodeURIComponent(a);var b=/(%20)+/g;return a.replace(b,"+")}function Xf(a){window.location="/videosearch?q="+Eb(a);return false}function qh(a){var b=a.options[a.selectedIndex].value;if(b)document.location.href=b}function Ek(a,b,c){var d=Ba(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}qb(b,d,c)}function Sh(){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 Mf=Sh();function hh(){var a;if(Mf){a=new ActiveXObject(Mf)}else{a=new XMLHttpRequest}return a}function C(a,b,c,d,e){var f=
hh(),h="GET";if(c){h="POST";if(!e){e="application/x-www-form-urlencoded"}}f.open(h,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 fb(){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 A(a,b,c,d){var e=a.createElement(c);if(d){e.appendChild(a.createTextNode(d))}b.appendChild(e);return e}function D(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 ke;function Vh(){if(!Ba("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";ke=new Image;ke.src=a}}}function jl(a,b){if(a.value.length>b){a.value=a.value.substring(0,b)}};function tb(a){return document.getElementById(a)}function Jc(a){return Math.floor(a)+"px"}function tg(a){var b=0;while(a){b+=a.offsetLeft;a=a.offsetParent}return b}function ug(a){var b=0;while(a){b+=a.offsetTop;a=a.offsetParent}return b}function ce(a,b){if(b){this.coord=[a.offsetLeft,a.offsetTop+1,a.offsetWidth-2,a.offsetHeight-2]}else{this.coord=[tg(a),ug(a),a.offsetWidth,a.offsetHeight]}};ce.prototype.add=function(a){for(var b=0;b<this.coord.length;++b){this.coord[b]+=a[b]}};ce.prototype.apply=
function(a){a.style.left=Jc(this.coord[0]);a.style.top=Jc(this.coord[1]);a.style.width=Jc(this.coord[2]);a.style.height=Jc(this.coord[3])};function _handleShowAlertPanelClick(){if(pb("addalert")){ec("addalert");g("zip").src="common/plus_sm.gif"}else{Mc("addalert");g("zip").src="common/minus_sm.gif"}}function _sendCreateAlertRequest(a,b){g("msg-create-alert-status").innerHTML=MSG_CREATING_ALERT;Mc("msg-create-alert-status");we(g("createalertbutton"));ec("msg-alert-create-bad-email");ec("msg-alert-created");C(a,Ij,b)}function Ij(a,b,c,d,e){if(a.readyState==4){var f=a.responseText;if(f=="alertCreated"){ec("msg-create-alert-status");Mc("msg-alert-created");
g("email").value=""}else if(f=="alertCreatedUnverified"){g("msg-create-alert-status").innerHTML=MSG_CREATE_ALERT_UNVERIFIED;g("email").value=""}else if(f=="alertCreateBadEmail"){ec("msg-create-alert-status");Mc("msg-alert-create-bad-email")}else{g("msg-create-alert-status").innerHTML=MSG_CREATE_ALERT_ERROR}Ae(g("createalertbutton"))}}function Mc(a){g(a).style.display=""}function ec(a){g(a).style.display="none"};function Ak(a,b,c){var d=g("tag_error");if(!c||g("taginput").value==MSG_ADD_LABEL){jc(MSG_ERROR_TAG_MISSING,null);return}if(c.length>50){jc(MSG_ERROR_TAG_TOO_LONG,null);return}c=c.replace(/(^\s+)|(\s+$)/g,"");if(c!==""){Lc(MSG_ANNOTATION_SAVING,null);g("taginput").tagUploadState="uploading";Oc(a,b,c,null,null)}else{g("taginput").value=""}}function Oc(a,b,c,d,e){var f=fb(),h=A(f,f,"tags");A(f,h,"docid",b);if(c){A(f,h,"name",c);if(d){A(f,h,"mark",d);if(e){A(f,h,"id",e)}}}C(a+"?frame=label"+VP_langParam,
Yj,f,null,'text/xml; charset="UTF-8"')}var lg;function hg(a,b,c){var d=g("tag_error");d.innerHTML=a;d.style.display="";window.clearTimeout(lg);if(b!==null){lg=setTimeout(te,b)}if(!c||c=="info"){d.className="ratingsInfo"}else{d.className="ratingsError"}}function jc(a,b){hg(a,b,"error")}function Lc(a,b){hg(a,b,"info")}function Wd(a){a.innerHTML=""}function Yj(a,b,c,d,e){te();var f=g("common_tags_short"),h=g("common_tags_all"),i=g("remove_tags"),j=g("remove_tags_links");if(!b||!a.responseXML){jc(MSG_UNKNOWN_ERROR,
null)}else{var k=a.responseXML.documentElement;if(k.tagName=="error"){var n=D(k,"errormessage");jc(n,null)}else if(k.tagName!="tags"){jc(MSG_UNKNOWN_ERROR,null)}else{Wd(f);Wd(h);Wd(i);var w=k.getElementsByTagName("common_tag"),o,K;if(w.length>0){var E=document.createTextNode(MSG_BROWSE+" ");h.appendChild(E);f.appendChild(E.cloneNode(false));j.style.display="inline"}else{j.style.display="none"}for(K=0;K<w.length;++K){o=w.item(K);var x=document.createTextNode(", ");if(K!==0){h.appendChild(x);if(K<3){f.appendChild(x.cloneNode(false))}i.appendChild(x.cloneNode(false))}if(K<
3){f.appendChild(Vc(o,null))}h.appendChild(Vc(o,null));i.appendChild(Vc(o,"delete"))}if(w.length>3){var Aa=document.createElement("A");Aa.className="taglink";Aa.href="javascript:void(0)";h.appendChild(x.cloneNode(false));var Ma=Aa.cloneNode(true);Ma.onclick=function(){Mb("common_tags","false");gc()};Ma.innerHTML="<b>&laquo;</b>";h.appendChild(Ma);f.appendChild(x.cloneNode(false));var Na=Aa.cloneNode(true);Na.onclick=function(){Mb("common_tags","true");gc()};Na.innerHTML="<b>"+MSG_MORE_TAGS+"&nbsp;&raquo;</b>";
f.appendChild(Na)}var eb=g("taginput");if(eb&&eb.tagUploadState=="uploading"){Lc(MSG_ANNOTATION_SAVED,5000);eb.value="";eb.tagUploadState=null}else if(g("tag_error").tagUploadState=="removing"){Lc(MSG_REMOVED_TAG,5000);g("tag_error").tagUploadState=null}}}}function Vc(a,b){var c=document.createElement("A"),d=D(a,"name"),e=D(a,"raw_name"),f=D(a,"short_name"),h=D(a,"tag_mode"),i=D(a,"id");if(!b||b===null||b=="click"){c.className="taglink";c.title=d;if(h=="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(h=="user_tag"){c.title+=" ("+MSG_YOUR_TAG+")";c.style.fontWeight="bold"}c.href="javascript:void(0);";c.onclick=function(){Lk(TAG_DISPLAY_URI,did,e,i);c.className="striketaglink"};c.innerHTML="<nobr>"+f+"&nbsp;";c.innerHTML+="</nobr>"}return c}function Lk(a,b,c,d){var e=g("tag_error");
Lc(MSG_REMOVED_TAG,null);e.tagUploadState="removing";if(VP_isOps){Oc(a,b,c,"OPS",d)}else{Oc(a,b,c,"SPAM",d)}}function Mb(a,b){var c=g(a+"_all"),d=g(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 te(){g("tag_error").innerHTML=""}function zl(a){if(!a){a=window.event}var b=a.keyCode||a.which;if(b==13&&g("taginput").value!=MSG_ADD_LABEL){g("taginputbutton").onclick()}}
;function bh(){var a=g("site"),b=true;g("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){g("username").value=decodeURIComponent(VP_cookieUsername);a.selectedIndex=VP_cookieSiteIndex;g("password").focus()}g("rememberc").checked=VP_cookieRememberMe}function Qf(){if(Kl()){al()}return false}function Kl(){ak();var a=true;if(g("username").value==""){a=false;r(g("username-error"))}if(g("password").value==
""){a=false;r(g("password-error"))}if(g("site").selectedIndex<=0){a=false;r(g("site-error"))}if(!rg("login-")){a=false}return a}function ak(){p(g("username-error"));p(g("password-error"));p(g("site-error"));Lf("login-");p(g("login-error"))}function sl(){if(Ll()){el()}return false}function Ll(){var a=true;if(g("title").value==""){a=false;r(g("title-error"))}else{p(g("title-error"))}if(!rg("submit-")){a=false}return a}function al(){xe(true);var a=g("site"),b="req=login&name="+encodeURIComponent(g("username").value)+
"&pass="+encodeURIComponent(g("password").value)+"&site="+encodeURIComponent(a.options[a.selectedIndex].value);b+=Fe("login-");C(Ee(),Lj,b);r(g("loginstatus"))}function Ee(){var a="/blogpost",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 xe(a){g("loginbutton").disabled=a;g("username").disabled=a;g("password").disabled=a;g("site").disabled=a;kh("login-",a);g("loginbutton").disabled=a;g("rememberc").disabled=
a}function Lj(a){if(a.readyState==4){p(g("loginstatus"));xe(false);var b=a.responseText.split("\t");if(b[0]-0==0){if(!Sf("login-",b)){kk(b[1])}}else{lk(b)}}}function kk(a){g("login-error").innerHTML=a;r(g("login-error"))}function lk(a){rl();VP_supportFlash=""+a[1];yk(a);if(a[0]==1){Vf()}else{p(g("logintablediv"));p(g("bloggersdiv"));r(g("blogselect"))}}function rl(){var a=g("site").selectedIndex;if(g("rememberc").checked){a="1"+a+g("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 yk(a){var b=g("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 Vf(){rh();g("player-big").checked=true;g("autoplay").checked=false;p(g("blogselect"));p(g("logindiv"));r(g("submitdiv"));p(g("finisheddiv"))}function rh(){var a;if(VP_supportFlash=="true"){Tg();a=document.createElement("div");a.innerHTML=VP_flashPath}else{Ug();
a=document.createElement("img");a.id="playerImg";a.src=VP_thumbnailPath;a.width="320";a.height="240"}g("playerplaceholder").appendChild(a)}function Ug(){g("playercell").style.height="250px";g("autoplaydisplay").style.display="none";g("playersizelabel").style.display="none";g("thumbsizelabel").style.display="inline"}function Tg(){g("playercell").style.height="330px";g("autoplaydisplay").style.display="inline";g("playersizelabel").style.display="inline";g("thumbsizelabel").style.display="none"}function el(){g("submitbutton").disabled=
true;var a=g("site"),b=g("blog"),c=b.selectedIndex;if(c<0){c=0}var d=150,e=g("title").value;if(e.length>d){e=e.substring(0,d)}var f="req=submit&docid="+encodeURIComponent(VP_docid)+"&name="+encodeURIComponent(g("username").value)+"&pass="+encodeURIComponent(g("password").value)+"&title="+encodeURIComponent(e)+"&descr="+encodeURIComponent(g("description").value)+He()+"&size="+encodeURIComponent(VP_playersize)+"&site="+encodeURIComponent(a.options[a.selectedIndex].value)+"&auto="+encodeURIComponent(g("autoplay").checked)+
"&blog="+encodeURIComponent(b.options[c].value);f+=Fe("submit-");C(Ee(),Xj,f);r(g("submitstatus"))}function Xj(a){if(a.readyState==4){var b=a.responseText.split("\t"),c;if(b[0]-0==0){if(Sf("submit-",b)){g("submitbutton").disabled=false;p(g("submitstatus"));return}else{tl();c=b[1]}}else{vl();c='<a href="javascript:void(0)" onclick="window.open(&quot;'+b[1]+'&quot;, &quot;_blank&quot;);">'+b[1]+"</a>"}g("messagediv").innerHTML=c;r(g("messagediv"));p(g("submitstatus"));g("submitbutton").disabled=false}}
function tl(){r(g("faildiv"));p(g("logindiv"));p(g("submitdiv"));r(g("finisheddiv"))}function vl(){r(g("successdiv"));r(g("refreshmsgdiv"));p(g("logindiv"));p(g("submitdiv"));r(g("finisheddiv"))}function Ok(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=g("VideoPlayback").style;b.width=VP_playerwidth;b.height=VP_playerheight}else{if(a==1){g("playerImg").width=
"160";g("playerImg").height="120"}else{g("playerImg").width="320";g("playerImg").height="240"}}}function $g(){g("password").value="";r(g("logintablediv"));r(g("bloggersdiv"));p(g("blogselect"));$j("login-");Lf("login-");dg("login-",false,"","")}function dh(a){if(!a){a=window.event}var b=a.keyCode||a.which;if(b==13){Qf()}}function nl(a){g(a+"captcha-section").style.display=""}function $j(a){g(a+"captcha-section").style.display="none"}function ml(a){r(g(a+"captcha-error"))}function Lf(a){p(g(a+"captcha-error"))}
function dg(a,b,c,d){g(a+"captcha-required").value=b;g(a+"captcha-image").src=c;g(a+"captcha-token").value=d}function kh(a,b){g(a+"captcha-text").disabled=b}function rg(a){if(g(a+"captcha-required").value=="true"&&g(a+"captcha-text").value==""){ml(a);return false}return true}function Fe(a){var b="";if(g(a+"captcha-required").value=="true"){var c=g(a+"captcha-text").value;if(c!=""){b+="&captcha="+encodeURIComponent(c)}b+="&captchatoken="+encodeURIComponent(g(a+"captcha-token").value)}return b}function Sf(a,
b){if(b[1]=="captcha-required"){dg(a,"true",b[2],b[3]);nl(a);return true}return false};var Ud=[];function _addOnLoadAction(a){Ud.push(a)}function _runOnLoadActions(){for(var a=0;a<Ud.length;a++){Ud[a]()}}function Kb(a,b,c,d,e,f,h,i,j,k){this.Sc=a;this.ij=b;this.fj=c;this.Aj=d;this.Uc=e;this.Ug=f;this.Ji=h;this.Di=i;this.Bj=k}var _ContentListItem=Kb;Kb.prototype.dg=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 h=this;if(c){e.onclick=function(i){a.de(b,h)}}return e};Kb.prototype.Ub=function(a,b,c){var d=this.cg(b);kc(d,"contentitemcore");var e=document.createElement("div");e.style.width="150px";kc(e,"contentitem");var f;if(this.Ug){f=document.createTextNode("advertisement")}else{f=document.createTextNode(" ")}var h=document.createElement("div");h.appendChild(f);
kc(h,"contentitemad");e.appendChild(h);var i=document.createElement("div");for(var j=0;j<c.length;j++){i.appendChild(this.dg(a,c[j],this.Ji));i.appendChild(document.createElement("br"))}kc(i,"contentitemcontrols");e.appendChild(i);e.appendChild(d);e.id=b;return e};Kb.prototype.cg=function(a){var b=document.createElement("div"),c=document.createElement("img");c.src=this.ij;c.alt="";c.border="1";c.width=100;c.height=75;if(this.Di){c.title="Click here to edit destination URL";c.style.cursor="pointer";
var d=this;c.onclick=function(){pl(d.Sc)}}var e=document.createTextNode(this.fj);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.Fa=a;this.Sc=b;this.j=[]};_ContentListTimeline.prototype.Ba=function(a){return this.Fa+"_items_"+a};function _addItemToTimeline(a,b){b._addItem(a)}function _addItemHashToTimeline(a,b){var c=new Kb(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.zj+=a.duration;this.j.push(a);var b=a.Ub(this,this.Ba(this.j.length-1),Nc),c=this,d=0;if(fc&&this.versionMajor==6){d=500}setTimeout(function(){c._finishAddItem(b)},d)};_ContentListTimeline.prototype._finishAddItem=function(a){var b=document.getElementById(this.Fa);b.appendChild(a);b.style.width=this.j.length*150+50+"px";if(a.clientHeight>b.clientHeight){b.style.height=a.clientHeight+"px"}this.kf()};_ContentListTimeline.prototype.kf=
function(){var a=document.getElementById("sessionfield"),b="[";for(var c=0;c<this.j.length;c++){b+=sk(this.j[c]);if(c<this.j.length-1){b+=","}}b+="]";a.value=b};var Nc=["remove","noop","up","down"];_ContentListTimeline.prototype.swap=function(a,b){var c=document.getElementById(this.Ba(a)),d=document.getElementById(this.Ba(b)),e=this.j[a];this.j[a]=this.j[b];this.j[b]=e;var f=this.j[a].Ub(this,this.Ba(a),Nc),h=this.j[b].Ub(this,this.Ba(b),Nc),i=c.parentNode;i.replaceChild(f,c);i.replaceChild(h,d)};
_ContentListTimeline.prototype.Of=function(){var a=this.j.length;for(var b=0;b<a;b++){this.de("remove",this.j[0])}};function _clearAllItemsInTimeline(a){a.Of()}_ContentListTimeline.prototype.de=function(a,b){var c=-1;for(var d=0;d<this.j.length;d++){if(this.j[d]==b){c=d}}if(a=="up"){if(c>0){this.swap(c,c-1)}}else if(a=="down"){if(c<this.j.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.j.length-1){this.swap(c,this.j.length-1)}}else if(a=="remove"){for(var d=
c;d<this.j.length-1;d++){this.swap(d,d+1)}this.j.splice(this.j.length-1,1);var e=document.getElementById(this.Ba(this.j.length));e.parentNode.removeChild(e);document.getElementById(this.Fa).style.width=this.j.length*150+50+"px"}this.kf()};function _getTimelineIds(a){var b=[];for(var c=0;c<a.j.length;c++){b.push(a.j[c].Sc)}return b.join(" ")}function pl(a){document.getElementById("editvideometadiv").innerHTML="";document.getElementById("editvideometadiv").style.display="block";C("/videometaedit?docid="+
a,mh,null,null)}function mh(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.ki=function(a,b){for(var c=0;c<this.j.length;c++){if(this.j[c].Sc==a){this.j[c].Ug=b;var d=document.getElementById(this.Ba(c)),e=this.j[c].Ub(this,this.Ba(c),Nc),f=d.parentNode;f.replaceChild(e,d)}}};function _saveVideoMetadata(a,b,c,d,e){var f="/videometawrite?";
f+="docid="+lc(b);f+="&url="+lc(c);f+="&urllabel="+lc(d);f+="&isad="+lc(e?"on":"off");C(f,null,null,null);_hideVideoMetadata();a.ki(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 sk=function(a){var b=["{"],c,d,e;function f(h){if(c){b.push(",")}b.push(d.toJSONString(),":",h);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(h){if(h&&typeof h==="object"){for(var i in h){if(h.hasOwnProperty(i)){h[i]=e(h[i])}}}return c(h)};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 Dh=function(){var a=be(document.URL);a.Df("/accountheader");a.ja("continueUrl",[document.URL]);a.ja("frame",["1"]);C(a,Ch)},Ch=function(a,b,c,d,e){if(b){var f=g("guser");f.innerHTML=a.responseText}},_gb_refreshGaiaBar=Dh;var Nb,ub,na,Wc="GenrePageState",Jh=function(a,b,c){Nb=a;ub=b;na={};for(var d=0;d<c.length;d++){var e=c[d];if(e.numPages>0){na[e.sectionId]=e}}Qh()},Qh=function(){var a=Ba(Wc),b=Ce(a);for(var c in na){var d=na[c];if(!b||b.pageId!=Nb){d.initialVisibility=true}else if(b.seed!=ub){d.initialVisibility=false}else{d.initialVisibility=true;if(c in b.sectionIdToPageNumMap){var e=b.sectionIdToPageNumMap[c];if(e!=d.currentPage){d.initialVisibility=false}}}}},Lh=function(){if(!Ph()){De()}},De=function(){var a=
{};for(var b in na){var c=na[b];a[b]=c.currentPage}var d=new Xc(Nb,ub,a);Gb(Wc,d.eg(),null,window.location.pathname)},Ph=function(){var a=Ba(Wc),b=Ce(a);if(b==null){return false}if(b.pageId!=Nb){return false}var c=false;if(b.seed!=ub){ub=b.seed;c=true}var d=false;for(var e in na){var f=na[e],h=f.currentPage;if(e in b.sectionIdToPageNumMap){h=b.sectionIdToPageNumMap[e]}if(h>=f.numPages){h=f.numPages-1}if(h<0){h=0}if(c||h!=f.currentPage){f.ud(h);d=true}}return d},Mh=function(){var a=g("narrow-css"),
b=zg(window,Wh);if(!isNaN(b)){a.disabled=b>=990}},Nh=function(a){var b=na[a],c=g(b.ra()+"-contents"),d=(c.clientHeight-41)/2,e=g(b.ra()+"-prev-active"),f=g(b.ra()+"-prev-inactive");e.style.margin=d+"px 0";f.style.margin=d+"px 0";var h=g(b.ra()+"-next-active"),i=g(b.ra()+"-next-inactive");h.style.margin=d+"px 0";i.style.margin=d+"px 0"},Kh=function(a){na[a].mh()},Oh=function(a){na[a].Dh()},Ih=function(a){return na[a].kg()},Rh=function(a,b){na[a].pf(b)},Oa=function(a,b,c){this.sectionId=a;this.numPages=
c;this.currentPage=b;this.initialVisibility=false;this.pendingRequest=false;this.prevAndNextButtonsAreInitialized=false};Oa.prototype.ra=function(){return"gp-section-"+this.sectionId};Oa.prototype.Cd=function(){function a(c,d){switch(d){case "hidden":g(c+"-active").style.display="none";g(c+"-inactive").style.display="none";break;case "active":g(c+"-active").style.display="";g(c+"-inactive").style.display="none";break;case "inactive":g(c+"-active").style.display="none";g(c+"-inactive").style.display=
"";break;default:break}}var b=this.pendingRequest?"inactive":"active";a(this.ra()+"-prev",this.currentPage==0?"hidden":b);a(this.ra()+"-next",this.currentPage+1==this.numPages?"hidden":b)};Oa.prototype.pf=function(a){var b=g(this.ra());if(a){this.Cd();b.style.visibility="visible"}else{b.style.visibility="hidden"}};Oa.prototype.kg=function(){return this.initialVisibility};Oa.prototype.ud=function(a){if(!this.pendingRequest){this.pendingRequest=true;this.Cd();var b=this,c=be(document.URL);c.ja("output",
["AJAX"]);c.ja("gpid",[Nb]);c.ja("seed",[ub]);c.ja("sectionid",[this.sectionId]);c.ja("page",[a.toString()]);c.ja("frame",["1"]);C(c,function(d,e,f,h,i){b.zg(d,e,f,h,i)},null,{sectionId:this.sectionId,pageNum:a})}};Oa.prototype.mh=function(){this.ud(this.currentPage+1)};Oa.prototype.Dh=function(){this.ud(this.currentPage-1)};Oa.prototype.zg=function(a,b,c,d,e){if(b){var f=g(this.ra()+"-contents"),h=a.responseText,i=h.indexOf("\n");if(i>=0){var j=h.slice(0,i+1).split("\t"),k=parseInt(j[0],10),n=parseInt(j[1],
10),w=h.slice(i+2);if(k>=0&&n>=1&&w){f.innerHTML=w;this.currentPage=k;this.numPages=n;this.pf(true);De()}}}else{if(a.status&&a.status==410){window.location.reload(true)}}this.pendingRequest=false;this.Cd()};var Xc=function(a,b,c){this.pageId=a;this.seed=b;this.sectionIdToPageNumMap=c},Ce=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 h=0;h<e.length;h++){var i=e[h],
j=i.split(":"),k=parseInt(j[0],10),n=parseInt(j[1],10);if(isNaN(k)||isNaN(n)){return null}f[k]=n}return new Xc(c,d,f)};Xc.prototype.eg=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=Jh,_gp_onLoad=Lh,_gp_onWindowResize=Mh,_gp_positionArrows=Nh,_gp_nextPage=Kh,_gp_previousPage=Oh,_gp_getInitialVisibility=Ih,_gp_setVisibility=Rh,_gp_PageableSection=Oa;var mk=function(){g("framed_video_data").style.display="none";g("collapse_link").style.display="none";g("expand_link").style.display="inline";Sd();$d(VP_collapsedFrameCookieName,1)},nk=function(){g("framed_video_data").style.display="inline";g("expand_link").style.display="none";g("collapse_link").style.display="inline";Sd();$d(VP_collapsedFrameCookieName,0)},Rf=new Array("related-videos","flagtab","sendemail-form"),ok=function(a,b){for(var c=0;c<Rf.length;c++){var d=Rf[c];if(d===a){g(d).style.display=
"inline";g(d+"-link").className="framemenu_active"}else{g(d).style.display="none";g(d+"-link").className="framemenu_inactive"}$d(VP_tabFrameCookieName,b)}},Sd=function(){var a=g("lpaf_framefull"),b=g("3rdPartyFrame"),c=window.innerHeight||document.documentElement.offsetHeight,d=c-a.offsetHeight-(M?3:0);d=Math.max(0,d);b.style.height=d+"px";if(M||dc||cc){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=nk,_lpaf_setActiveTab=ok,_lpaf_collapse=mk,_lpaf_onResize=Sd;var pc=30,pe=8,oe=50;function Cg(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(pc);this.cachedNo=0;this.visibleIndex=0;this.targetVisibleIndex=0;this.animating=false;this.cachingState=0}function fe(a,b,c,d,e,f,h,i){this.docid=a;this.thumbSrc=b;this.shortTitle=c;this.origTitle=d;this.duration=e;this.height=f;this.provider=h;this.playPageUrl=i}function dk(){for(var a in resultBoxes){ck(resultBoxes[a])}}function ck(a){var b="/videofeed?type=search&output=ajax&frame=morebox&docid="+
VP_docId+"&q="+a.query+"&filter="+a.filter+"&num="+pc+"&start=0&msg=-1";b=Da(b);C(b,Od,null,a.name)}function Od(a,b,c,d,e){if(a.readyState==4){var f=a.responseText.replace(/\"/g,"'");Wf(encodeURIComponent(f),e)}}function Ka(a,b){g(a+"active").style.display=b?"inline":"none";g(a+"inactive").style.display=b?"none":"inline"}function kg(a,b){g(a+"_searching").style.display=b==1?"inline":"none";g(a+"_noresults").style.display=b==2?"inline":"none";g(a+"_links").style.display=b==4?"inline":"none";if(b==
4){g(a+"_items").style.height="19em";g(a+"_main").className="resultboxmainscroll"}g(a+"_main").style.display=b>=3?"inline":"none"}function ol(a){if(a.cachedNo==0){return}var b=Hh(a);g(a.name+"_items").innerHTML=b;ng(a);og(a);kg(a.name,a.cachedNo>3?4:3)}function Hh(a){var b='<table cellpadding="0" cellspacing="2" class="resultboxtable" id="'+a.name+'_table"><tbody>';for(var c=0;c<a.cachedNo;c++){b+=Eh(a.cached[c],a.name+"_item_"+c)}b+="</tbody></table>";return b}function Eh(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 og(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}g(a.name+"_linkstext").innerHTML=d}function ng(a){if(a.total==0){Ka(a.name+"_prev",false);Ka(a.name+"_next",false);return}var b=a.resultIndex+a.visibleIndex+1;Ka(a.name+"_prev",b>1?true:false);Ka(a.name+"_next",a.visibleIndex+3<a.cachedNo?true:false)}function Wf(a,b){var c=resultBoxes[b];c.cachingState=2;if(c.animating){var d='processResponse("'+a+'","'+b+'")';setTimeout(d,
400);return}ch(decodeURIComponent(a),c);if(c.total==0||c.cachedNo==0){Ka(b+"_prev",false);Ka(b+"_next",false);kg(b,2)}else{ol(c);$k(c)}c.cachingState=0}function $k(a){var b=a.name+"_item_"+a.visibleIndex,c=g(b).offsetTop-2;g(a.name+"_items").scrollTop=c}function ch(a,b){var c=a.split("\r\n"),d=c[0].split("\t"),e=1*d[0],f=1*d[1];th(d[2],b);if(e<0||e>pc||f<0){return}var h=true;if(f<b.resultIndex){h=false}var i=pc-e;if(i>b.cachedNo){i=b.cachedNo}var j=b.cachedNo-i;if(h){var k=b.cachedNo-i;for(var n=
0;n<i;n++){b.cached[n]=b.cached[k+n]}}else{for(var n=i-1;n>=0;n--){b.cached[e+n]=b.cached[n]}}if(h){for(var n=1;n<=e;n++){d=c[n].split("\t");b.cached[i+n-1]=new fe(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7])}}else{for(var n=1;n<=e;n++){d=c[n].split("\t");b.cached[n-1]=new fe(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7])}}b.cachedNo=i+e;if(h){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 th(a,b){if(b.total<0&&a){var c=1*a;if(c>=0){b.total=c}}}function Pk(a){Ka(a+"_prev",false);Ka(a+"_next",false);var b=resultBoxes[a];if(b.cachingState==2){var c='resultBoxNextClicked("'+a+'")';setTimeout(c,100)}else{ne(true,a)}}function Qk(a){Ka(a+"_prev",false);Ka(a+"_next",false);var b=resultBoxes[a];if(b.cachingState==2){var c='resultBoxPrevClicked("'+a+'")';setTimeout(c,100)}else{ne(false,a)}}function ne(a,b){var c=resultBoxes[b];c.animating=true;if(a){uh(c);Vg(c)}else{vh(c);Xg(c)}}
function uh(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=Da(d);a.cachingState=1;C(d,Od,null,a.name)}function vh(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=Da(c);a.cachingState=1;C(c,Od,null,a.name)}function Vg(a){if(a.total==0||a.cachedNo<=0||a.visibleIndex+3>=a.cachedNo){return}var b=a.name+"_item_"+a.visibleIndex,c=g(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=g(b).offsetTop-2;Rc(a.name,c,d,pe,oe,true)}function Xg(a){if(a.total==0||a.cachedNo<=0||a.visibleIndex<0){return}var b=
a.name+"_item_"+a.visibleIndex,c=g(b).offsetTop-2;a.targetVisibleIndex=a.visibleIndex-3;if(a.targetVisibleIndex<0){a.targetVisibleIndex=0}b=a.name+"_item_"+a.targetVisibleIndex;var d=g(b).offsetTop-2;Rc(a.name,c,d,pe,oe,false)}function Rc(a,b,c,d,e,f){var h;if(f){h=c-b}else{h=b-c}if(d<=0||h<=0){g(a+"_items").scrollTop=c;Wg(a,f);return}var i=parseInt(h/d,10),j=f?b+i:b-i;g(a+"_items").scrollTop=j;var k="animate('"+a+"',"+j+","+c+","+(d-1)+","+e+","+f+")";setTimeout(k,e)}function Wg(a,b){var c=resultBoxes[a];
c.visibleIndex=c.targetVisibleIndex;og(resultBoxes[a]);ng(resultBoxes[a]);c.animating=false};var Xd={},Sk=function(a,b){Xd[a]=new Kc(a,b)},Tk=function(a,b){Xd[a].show(b)},Rk=function(a,b){Xd[a].hide(b)},Kc=function(a,b){this.resultNum=a;this.previewContents=b;this.visible=false};Kc.prototype.Bb=function(){return this.visible};Kc.prototype.show=function(a){var b=g("preview-zippy-"+this.resultNum),c=g("show-preview-text-"+this.resultNum),d=g("hide-preview-text-"+this.resultNum),e=g("preview-body-"+this.resultNum);e.innerHTML=this.previewContents;b.setAttribute("src","/images/zippy_minus_sm.gif");
c.style.display="none";d.style.display="";e.style.display="";if(a){C(a,null)}this.visible=true};Kc.prototype.hide=function(a){var b=g("preview-zippy-"+this.resultNum),c=g("show-preview-text-"+this.resultNum),d=g("hide-preview-text-"+this.resultNum),e=g("preview-body-"+this.resultNum);e.innerHTML="";b.setAttribute("src","/images/zippy_plus_sm.gif");c.style.display="";d.style.display="none";e.style.display="none";if(a){C(a,null)}this.visible=false};var _rl_registerPreview=Sk,_rl_showPreview=Tk,_rl_hidePreview=
Rk;function Hk(a){var b=be(a.URL),c=a.getElementById("regionselect").value;b.ja("cr",c);window.location=b}var _rs_regionSelectChanged=Hk;function we(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 Ae(a){if(document.all||document.getElementById){a.disabled=false}else if(a){a.onclick=a.oldonclick;a.value=a.oldvalue}}function dl(a,b){C(a,Uj,b);var c=g("send-status");Nk();La(c,"error",MSG_SENDING)}function Uj(a){var b=g("send-status");if(a.readyState==4){var c=a.responseText;if(c==0){La(b,"error",MSG_SENT);g("to").value="";g("msg").value=
""}else{La(b,"","");if(c==1){La(g("from-comment"),"error",MSG_INVALID_EMAIL_ADDRESS)}else if(c==2){La(g("to-comment"),"error",MSG_INVALID_EMAIL_ADDRESS)}else{La(b,"error",MSG_UNKNOWN_ERROR)}}Ae(sendform.sendvideobutton)}}function Nk(){La(g("from-comment"),"example",MSG_EG_EMAIL);La(g("to-comment"),"example",MSG_SEPARATE_EMAILS_W_COMMA)};function Uh(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 eg(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 ue="VideoEmailFromList",ve="VideoEmailToList",Tc="from",Uc="to",Be=30;function il(){if(document.getElementById(Tc)!==
null){eg(ue,document.getElementById(Tc).value,Be)}if(document.getElementById(Uc)!==null){eg(ve,document.getElementById(Uc).value,Be)}}function Pf(a,b){var c=Uh(b);if(c!==null&&document.getElementById(a)!==null){document.getElementById(a).value=c}}function jk(){Pf(Tc,ue);Pf(Uc,ve)};function Cl(a){var b=Ge(a);if(a.checked){$f(b,a);a.form.toggleAll.checked=fk(a.form)}else{ag(b,a);a.form.toggleAll.checked=false}}function Uk(a){var b=a.form;for(var c=0;c<b.elements.length;c++){var d=b.elements[c];if(Pd(d)&&d.checked!=a.checked){var e=Ge(d);if(a.checked){$f(e,d)}else{ag(e,d)}}}}function fk(a){for(var b=0;b<a.elements.length;b++){var c=a.elements[b];if(Pd(c)&&c.checked==false){return false}}return true}function hk(a){for(var b=0;b<a.elements.length;b++){var c=a.elements[b];if(Pd(c)&&
c.checked){return false}}return true}function Pd(a){return a.id.indexOf("box_")==0}function Ge(a){return g("tr_"+a.id.substr(4))}function bg(a,b){if(b&&b.checked){a.style.backgroundColor="#ffffff"}else{a.style.backgroundColor="#f0f0f0"}}function $f(a,b){b.checked=true;if(a){bg(a,b)}}function ag(a,b){b.checked=false;if(a){bg(a,b)}};function Ng(a,b,c){var d=Pg(),e={};e.request=d;e.successPage=b;e.errorPage=c;Qg(d,a,function(){Og(e)})}function Og(a){var b=a.request;if(b.readyState==4){var c=b.responseText,d=c.split("\n"),e=-1;for(var f=0;f<d.length;f++){var h=d[f].split("=");if(h[0]=="status"){e=h[1]}}if(e==0){me(a.successPage)}else{var i=a.errorPage+"?status="+e;me(i)}}}function me(a){if(document.images){document.location.replace(a)}else{document.location.href=a}};function Hl(a,b){var c=document.getElementById("video_"+a+"_form"),d,e,f,h,i;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")h=k.value;if(k.name=="language")i=k.value}var n=fb(),w=A(n,n,"uploadedvideos"),o=A(n,w,"update");o.setAttribute("contentId",d);A(n,o,"title",e);A(n,o,"description",f);var K=A(n,o,"genres");A(n,K,"genre",h);A(n,o,"language",i);var E="/uploadedvideos";if(b)E+=
b;C(E,Zj,n,null,'text/xml; charset="utf-8"');var x=document.getElementById("title-"+a);x.innerHTML=e}function Zj(a,b,c,d,e){};var Nd="",qe="";function ae(a){g("downloaddiv").innerHTML='    <iframe marginwidth="0" marginheight="0" src="'+a+'\t   " frameborder="0" width="1" height="1"></iframe>'}function cg(a,b){Nd=a;qe=b;ye("eventHandler=DataStoreHandler")}function wg(a,b){this["args"]=b;eval(a+"(this.args)")}function gh(a){if(a["isInstalled"]=="true"){p(g("clientunknowndiv"));r(g("clientpresentdiv"));ae(Nd)}else{p(g("clientunknowndiv"));r(g("clientmissingdiv"));ae(qe);ye("setVars=fetchOnInstallUrl="+Nd.replace("&","%2526"))}}
function ye(a){a="container=videoPlayerSettings&"+a;Nf("datastoreflashdiv","http://video.google.com/datastore.swf",a)};function db(a){if(a.indexOf("/videoswv?")==0){C(a,Tj);Mk();ig();g("matchedsegs").innerHTML="<font size=-1>"+MSG_SEARCHING+"<br>&nbsp;</font>"}else if(a.indexOf("/videorelated?")==0){if(a.indexOf("topframe")>0){C(a,Sj)}else{C(a,Rj);fa("relatedvids",false)}}else if(a.indexOf("/videomorefrom?")==0){C(a,Nj);fa("morefromvids",false)}else if(a.indexOf("/videoplaylistnext?")==0){C(a,Pj);fa("next10",false)}else if(a.indexOf("/videostats?")==0){C(a,Wj)}else if(a.indexOf("/videoevents?")==0){C(a,null)}else{return}}
function bl(){if(VP_next10DocId=="0"){fa("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 h=Math.max(0,e-40),i=Math.min(d,h+90);b=c.splice(h,i-h).join(",")}else{b=VP_myPlaylist}var j="/videoplaylistnext?docid="+VP_next10DocId+"&num=10&q="+b+"n"+a;db(Da(j))}function cl(a){var b=window.location.search.split("docid=")[1].split("&")[0],c="/videoplaylistnext?docid="+
a+"&num=10&q="+VP_myPlaylist+"p"+b;db(Da(c))}function Tj(a){if(a.readyState==4){var b=a.responseText,c=g("matchedsegs"),d="<br>",e=b.split("\r\n"),f,h=e[0];if(e[1]=="0"){d+="<font size=-1>"+MSG_YOUR_SEARCH_0_DID_NOT_MATCH.replace(/%0/,"<b>"+h+"</b>")+"</font>"}else{g("nummatches").innerHTML="<b>"+e[1]+"</b> ";if(e[1]>1){g("nummatches").innerHTML+=MSG_MATCHES+"&nbsp;"}else{g("nummatches").innerHTML+=MSG_MATCH+"&nbsp;"}for(var i=2;i<e.length-1;i++){f=e[i].split("\t");d+="<div class='playresultimage' id='seg"+
i+"'><a href='javascript:void(0)' onclick='vpseek("+f[0]+")'><img src='"+f[1]+"' alt=''></a></div><div class='playresulttext'>  <div class='playsectiontranscript'>"+f[2]+"</div><div class='timestamp'>"+f[3]+"</div></div>"}}c.innerHTML=d}}function Rj(a){if(a.readyState==4){Uf("relatedvidsactive",a.responseText);fa("relatedvids",true)}}function Sj(a){if(a.readyState==4){wk("related-videos",a.responseText)}}function Nj(a){if(a.readyState==4){Uf("morefromvidsactive",a.responseText);fa("morefromvids",
true)}}function Pj(a){if(a.readyState==4){Fl(a.responseText);fa("next10",true)}}function Wj(a){}function Kj(a,b,c,d,e){var f=MSG_UNKNOWN_ERROR;if(a.readyState==4&&b){var h=a.responseXML.documentElement;if(h.tagName=="flag-response"){var i=D(h,"error-code"),j=D(h,"message");if(i){if(i.indexOf("ok")==0){p(g("flag-form"))}f=j}}}g("flag-message").innerHTML=f;r(g("flag-message"))}function Th(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 wh(a,b,c,d){var e=fb(),f=A(e,e,"flag-request");A(e,f,"docid",b);A(e,f,"cid",c);A(e,f,"flag",d);g("flag-submitting-feedback-message").innerHTML=MSG_SAVING_FEEDBACK;r(g("flag-submitting-feedback-message"));C(a+"?frame=comment"+VP_langParam,Kj,e,"flagorama",'text/xml; charset="UTF-8"')}function Zg(){Dk();Yf();Gk();Zf("dmrcfp","p");gg(false)}function Dk(){var a=Ba(VP_playlistSettingsCookieName);if(!a){hc()}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 Gk(){if(g("collapselink")){if(VP_collapseDescr){g("collapselink").onclick()}else{g("expandlink").onclick()}}}function Zf(a,b){if(a!=null&&b!=null&&a.indexOf(VP_visibleTab)<0){VP_visibleTab=b}if(VP_visibleTab=="d"){g("ldetails").onclick()}else if(VP_visibleTab=="m"){g("lmorefrom").onclick()}else if(VP_visibleTab=="r"){g("lrelated").onclick()}else if(VP_visibleTab=="c"&&g("lcomments")){g("lcomments").onclick()}else if(VP_visibleTab==
"f"){g("lflag").onclick()}else{VP_visibleTab="p";if(g("lupnext")&&g("lupnext").onclick){g("lupnext").onclick()}}}function fg(){Gb(VP_playlistCookieName,VP_myPlaylist,VP_cookieDomain);Gb(VP_playlistIndexCookieName,VP_myPlaylistIndex,VP_cookieDomain);gg(true);hc()}function Xk(a){var b=Ba(VP_playlistSettingsCookieName);if(!b){hc();return}qb(VP_playlistSettingsCookieName,(a?"1":"0")+b.substring(1,3),VP_cookieDomain)}function Yk(a){VP_collapseDescr=a;var b=Ba(VP_playlistSettingsCookieName);if(!b){hc();
return}qb(VP_playlistSettingsCookieName,b.charAt(0)+(a?"1":"0")+b.charAt(2),VP_cookieDomain)}function Zk(a){VP_visibleTab=a;var b=Ba(VP_playlistSettingsCookieName);if(!b){hc();return}qb(VP_playlistSettingsCookieName,b.substring(0,2)+a,VP_cookieDomain)}function hc(){qb(VP_playlistSettingsCookieName,(VP_autoplayEnabled?"1":"0")+(VP_collapseDescr?"1":"0")+VP_visibleTab,VP_cookieDomain)}function gg(a){if(a){Gb(VP_playlistParametersCookieName,"1",VP_cookieDomain)}else{Gb(VP_playlistParametersCookieName,
"0",VP_cookieDomain)}}function yh(){VP_autoplayEnabled=!VP_autoplayEnabled;Xk(VP_autoplayEnabled);Yf()}function ic(a,b){var c=g(a);if(c&&c.style&&c.style){c.style.display=b}}function Yf(){if(VP_autoplayEnabled){ic("autoplayon","inline");ic("autoplayoff","none")}else{ic("autoplayon","none");ic("autoplayoff","inline")}}function Fl(a){var b=a.split("\r\n"),c=window.location.search.split("docid=")[1].split("&")[0];if(b[0]=="0"){lh();g("upnextvids").innerHTML="";return}var d=Gh(b,c);g("upnextvids").innerHTML=
d;g("summary").scrollTop=0;Gl(b,c)}function lh(){fa("nextlink",false);fa("prevlink",false);fa("next10link",false)}function fa(a,b){if(b){g(a+"active").style.display="inline";g(a+"inactive").style.display="none"}else{g(a+"active").style.display="none";g(a+"inactive").style.display="inline"}}function Gh(a,b){var c='<table cellpadding="4" cellspacing="0" id="upnexttable"> <tbody> ',d=Math.min(a.length-4,11);for(var e=1;e<=d;e++){var f=a[e].split("\t");c+='<tr style="';if(f[0]==b){c+="background-color:#E1DAE1;"}c+=
'">';c+=Fh(f)}c+="</tbody> </table>";return c}function Fh(a){var b='<td> <a href="'+a[7]+'" onclick="setMyPlaylist()" rel="nofollow"><img src="'+a[1]+'" title="'+a[3]+'" height="'+a[5]+'" width="100" alt="" border="1"> </a> </td>';b+='<td class="playlistentry" valign="top"> <a href="'+a[7]+'" onclick="setMyPlaylist()" " rel="nofollow" title="'+a[3]+'"> '+a[2]+"</a> <br> ";b+='<span class="meta"> ';if(a[6]!="."){b+=a[6]+" <br> "}b+=a[4]+" </span> </td> </tr> ";return b}function Gl(a,b){var c=a.length,
d=c-3,e=a[d];if(e=="0"){fa("prevlink",false)}else{g("playlistPrev").href="/videoplay?docid="+e+VP_queryParam+VP_langParam;fa("prevlink",true)}if(c>5){d=2;g("playlistNext").href=Bg(a[d].split("\t")[7]);fa("nextlink",true)}else{fa("nextlink",false)}if(c==16){d=12;VP_next10DocId=a[d].split("\t")[0];fa("next10link",true)}else{VP_next10DocId="0";fa("next10link",false)}if(!gk(VP_myPlaylist)){d=c-2;Ml(a[d],b,e)}}function gk(a){if(a.length>=4){var b=a.indexOf(",0",a.length-4);if(b>=0){return true}}return false}
function Ml(a,b,c){var d=a.split(","),e=-1,f=-1,h=0;if(c==0){h++}for(var i=0;i<d.length;i++){if(b==d[i]){e=i;h++}else if(c==d[i]){f=i;h++}if(h==2){break}}var j=true,k=e;if(h==2){j=false}if(j){if(c!=0){if(f<0){d[0]=c;f=0;if(e<=0){d[1]=b;k=1}}else if(e<0){if(f==0){d[1]=b;k=1}else{d[0]=b;k=0}}}else if(e<0){d[0]=b;k=0}a=d.join(",")}VP_myPlaylist=a;VP_myPlaylistIndex=k}function Uf(a,b){var c="",d=b.split("\r\n"),e,f="",h;if(d[0]=="0"){c+="<br/><font size=-1>"+MSG_NO_MATCHING_VIDEOS+"</font>"}else{for(var i=
1;i<d.length-1;i++){e=d[i].split("\t");f+=e[0]+","}c+="<table cellpadding=0 cellspacing=3>";for(var i=1;i<d.length-1;i++){e=d[i].split("\t");if(i%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(i==1){h=e[0]}if(i%2==0){c+="</tr>";c+="<tr><td height=10></td></tr>"}}if(i%2==0){c+="<td></td></tr>"}c+="</table>"}g(a).innerHTML=c}function wk(a,b){var c="",d=b.split("\r\n"),e,f="/videoplay?docid=";if(d[0]=="0"){c+="<br/><font size=-1>"+MSG_NO_MATCHING_VIDEOS+"</font>"}else{c+="<div class='related_videos_more_div'><a href='"+
VP_relatedResultsSearchLink+"'>"+MSG_MORE_RELATED+"&nbsp;&raquo;</a></div>";c+="<div class='related_videos_thumbstrip_div'>";for(var h=1;h<d.length-1;h++){e=d[h].split("\t");var i=fh(100,parseInt(e[5],10),80,60);c+="<div class='related_video_thumb'>";c+="<center><table cellpadding=0 cellspacing=0'><tr><td align=center valign=bottom height=62><a href='"+f+e[0]+'\' rel="nofollow"><img border=1 height='+i[1]+" width="+i[0]+" alt=''title=\""+e[3]+"\" src='"+e[1]+"'></a></td></tr>";c+="<tr><td align=center valign=top><div><a href='"+
f+e[0]+'\' rel="nofollow">'+e[2]+"</a></div></td></tr></table></center>";c+="</div>"}c+="</div>"}g(a).innerHTML=c}function fh(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 La(a,b,c){a.className=b;a.innerHTML=c}function Mk(){La(g("matchedsegs"),"","");La(g("nummatches"),"","")}function ig(){p(g("summary"));r(g("matches"))}function Ol(a){var b=window.location.search.split("docid=")[1].split("&")[0];db("/videoswv?docid="+
b+"&q="+Eb(a));return false}function Nl(a,b,c){if(b){return Xf(a)}else if(c){return Ol(a)}else{ig();return false}}function sg(a){var b=g("VideoPlayback");b.SetVariable("seekTime",a/1000)}function nh(){var a=g("VideoPlayback");a.SetVariable("doPlay",true)}function Yh(a,b,c,d,e){var f=/&begin=[0-9]+/i,h=a.replace(f,"&begin="+Math.floor(d*1000)),i=window.open("http://"+window.location.host+"/videopopup?q="+Eb(h)+"&docid="+Eb(b)+"&fscid="+Eb(c)+"&windowtitle="+Eb(window.document.title+" - "+MSG_FULL_SCREEN),
"GoogleVideo","toolbar=no,status=no,resizable=yes,scrollbars=0");i.focus()}function sh(){window.moveTo(0,0);window.resizeTo(screen.availWidth,screen.availHeight)}function Kk(){document.body.scroll="no"}function Da(a){return a+"&ms="+(new Date).getTime()}function ph(){if(!VP_autoplayEnabled){return}if(VP_waitForSale){setTimeout(jg,10000)}else{setTimeout(jg,5000)}}function jg(){if(!VP_autoplayEnabled||pb("send")||pb("embed")||pb("videopurchasediv")||g("playlistNext").href==null){return}fg();window.location.href=
g("hidden_playlistNextAuto").href}function pb(a){return g(a).style.display==""}var sb=["upnext","details","morefrom","related","comments","flag"];function wl(a){for(var b=0;b<sb.length;b++){var c=g(sb[b]);if(c){if(a==sb[b]){g("l"+sb[b]).className="nodecoration";r(c)}else{g("l"+sb[b]).className="decorated";p(c)}}}}var nc,Ya,Xa,le,ie=2,je=19;function Ib(a,b){ll(a,b,"px")}function ll(a,b,c){tb=g(a);if(!tb||tb.style==null||b<0){return}var d=b.toString()+c;tb.style.height=d}function Tf(){if(!(nc=window.innerHeight)){if(!(nc=
document.documentElement.clientHeight)){nc=document.body.clientHeight}}Ya=nc-g("playvideoblock").offsetTop;le=Ya-g("flashobjectplaceholder").offsetTop;Ib("playvideoblock",Ya);Ib("flashobjectplaceholder",le);Ib("playrightblock",Ya);Ib("summary",Ya-ie);Ib("matches",Ya-ie);Xa=Ya-g("abovecorner").offsetHeight-je;Ib("corner",Xa);if(this["onWindowResizeExtra"]){uk()}}function ek(a,b){var c=document.createElement("div");g(b).appendChild(c);c.innerHTML=a}function Kf(){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 rk(){var a=g("playvideoblock");if(a){if(VP_divOffset!=a.offsetTop||a.clientHeight<a.scrollHeight){VP_divOffset=a.offsetTop;Tf()}}var b=Kf();if(b!=VP_hashPos){VP_hashPos=b;sg(VP_hashPos*1000)}}function ik(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 h=f;if(f.substring(0,1)==":"){h=f.substring(1)}var i=h.split(":"),j=0,k=0,n=0;switch(i.length){case 2:k=i[0];n=i[1];break;case 3:j=i[0];k=i[1];n=i[2];break}var w=(3600*j+60*k+1*n)*1000;if(w<=0||w>VP_videoDurationMs){c=c+f}else{var o="vpseek("+w+");doPlay();return false;";c=c+'<a onclick="'+o+'" href="#'+j+"h"+
k+"m"+n+'s">'+f+"</a>"}}return c+a}function cb(a,b){if(typeof b=="string"){a.value=b}a.style.color="black";a.style.fontStyle="normal";a.onfocus=null}function pg(a,b,c,d,e,f){var h=fb(),i=A(h,h,"review");A(h,i,"docid",b);if(f){A(h,i,"name",e?e:"");A(h,i,"text",f)}else{g("commentlist").innerHTML="";g("gettingreviews").innerHTML=MSG_GETTING_REVIEWS;r(g("gettingreviews"))}A(h,i,"sort",c?"rating":"date");C(a+"?frame=comment"+VP_langParam,If,h,d,'text/xml; charset="UTF-8"')}function If(a,b,c,d,e){var f,
h=g("summary"),i=true;g("gettingreviews").innerHTML="";p(g("gettingreviews"));g("reviewpublishstatus_top").innerHTML="";g("reviewpublishstatus_bottom").innerHTML="";if(!e||e!="top"&&e!="bottom"){f=g("commentlist")}else{f=g("reviewpublisherror_"+e)}if(!b||!a.responseXML){Jb(f,MSG_REVIEW_PUBLISH_ERROR,e)}else{var j=a.responseXML.documentElement;if(j.tagName=="error"){var k="errorin";k+=D(j,"errorsource");k+="_"+e;var n=D(j,"errormessage"),w=g(k);if(w){f=w}Jb(f,n,e)}else if(j.tagName!="reviews"){Jb(f,
"Unknown error",e)}else{var o="";i=D(j,"value")=="true";var K=j.getElementsByTagName("review"),E;for(E=0;E<K.length;E++){var x=K.item(E);o+='<div style="margin:2px 0pt .5em;" id="comment';o+=D(x,"id");o+='"><font size="-1"><b>';o+=D(x,"name");o+="</b>&nbsp;&nbsp;&nbsp;";if(VP_canUserDeleteComments){o+='<span align="right" class="markcomment" onclick="markComment(';o+=D(x,"id");o+=", 'OPS',";o+='MSG_MARKING);"';o+=' id="OPS'+D(x,"id")+'">';o+="<nobr>"+MSG_DELETE_COMMENT+"</nobr>";o+="</span>"}o+="<br/>";
var Aa=D(x,"rating");if(Aa&&Aa>0){o+=ih(Aa,Aa!=null);o+="&nbsp;"}o+="<font color=green>";o+="<nobr>"+D(x,"textdate")+"</nobr>";o+="</font>";o+="&nbsp;";o+='<span align="right" class="markcomment" ';if(i){o+='onclick="markComment(';o+=D(x,"id");o+=", 'SPAM', MSG_MARKING);\""}else{o+="onclick='this.innerHTML = \"<br/>";o+=D(j,"reason");o+='"; this.className="error"\''}o+=' id="SPAM'+D(x,"id")+'">';o+="<nobr>"+MSG_MARK_AS_SPAM+"</nobr>";o+="</span>";o+="<br/>";o+=ik(D(x,"text"));o+="</font></div>"}g("commentlist").innerHTML=
o;p(g("leavecomment_top"));p(g("topreviewshown"));r(g("topreviewhidden"));r(g("commentlist"));if(K.length==0){r(g("nocomments"));p(g("sortit"))}else{p(g("nocomments"));r(g("sortit"))}if(e=="top"){g("reviewtext_top").value="";cb(g("reviewtext_bottom"),"");cb(g("reviewername_bottom"),g("reviewername_top").value)}else if(e=="bottom"){g("reviewtext_bottom").value="";cb(g("reviewtext_top"),"");cb(g("reviewername_top"),g("reviewername_bottom").value);h.scrollTop=0}}}if(i){p(g("reviewpublisherror_top"));
p(g("reviewpublisherror_bottom"));g("publishreview_bottom").disabled=false;g("publishreview_top").disabled=false}else{var Ma=D(j,"reason");g("reviewpublisherror_top").innerHTML=Ma;g("reviewpublisherror_bottom").innerHTML=Ma;r(g("reviewpublisherror_top"));r(g("reviewpublisherror_bottom"))}var Na=g("leavecomment_bottom");r(Na);r(g("reviewboxandtext_bottom"));r(g("reviewblankdiv"));if(h.scrollHeight-Na.scrollHeight>h.clientHeight){r(g("reviewboxandtext_top"));p(g("reviewblankdiv"))}else{p(g("reviewboxandtext_top"));
r(g("reviewblankdiv"))}}var pk=[];function qk(a,b,c){var d=fb(),e=A(d,d,"review");A(d,e,"docid",VP_docIdString);A(d,e,"mark",b);A(d,e,"id",a);if(b=="SPAM"){C(VP_commentsUrl+"?frame=markcomment"+VP_langParam,Mj,d,null,'text/xml; charset="UTF-8"');g("SPAM"+a).innerHTML=MSG_MARKING;g("SPAM"+a).className="";g("SPAM"+a).style.color="#cd3700";pk.push(setTimeout("hideEle(ele('comment"+a+"'))",250))}else{C(VP_commentsUrl+"?frame=markcomment"+VP_langParam,If,d,null,'text/xml; charset="UTF-8"');g(b+a).innerHTML=
c;g(b+a).style.textDecoration="none";g(b+a).style.color="#cd3700"}}function Mj(){}function Jb(a,b,c){a.innerHTML=b;r(a);if(c){var d=g("summary");if(c!="bottom"){d.scrollTop=0}else{d.scrollTop=d.scrollHeight-d.clientHeight}}}function zk(a,b,c,d,e){var f=g("reviewpublisherror_"+c);if(e&&e.length>0){e=e.replace(/(^\s+)|(\s+$)/g,"").replace(/ {2,}/g," ")}if(!e||e.length==0||g("reviewtext_"+c).style.color!="black"){Jb(f,MSG_EMPTY_REVIEW,c);return}if(e.length>512){Jb(f,MSG_REVIEW_TOO_LONG,c);return}if(d&&
d.length>60){Jb(f,MSG_NAME_TOO_LONG,c);return}g("publishreview_"+c).disabled=true;var h=g("reviewername_"+c);if(h.style.color!="black"){cb(h,"");d=""}else{d=d.replace(/(^\s+)|(\s+$)/g,"");h.value=d}p(g("reviewpublisherror_"+c));p(g("errorinname_"+c));g("reviewpublishstatus_"+c).innerHTML=MSG_ANNOTATION_SAVING;VP_commentName=d;gc();pg(a,b,pb("commentsbyrating"),c,d,e)}var re=false;function Vj(){var a=window.location.search.split("docid=")[1].split("&")[0];if(pb("sharelinks")){p(g("sharelinks"));p(g("send"));
p(g("embed"));db(Da("/videostats?shareclick=close&docid="+a+"&frame=share"))}else{r(g("sharelinks"));Jf();db(Da("/videostats?shareclick=open&docid="+a+"&frame=share"))}if(!re){_initEmailAutocomplete(g("to"),"/data/contacts?max=250",false);re=true}}function Jf(){var a=window.location.search.split("docid=")[1].split("&")[0];g("lsend").className="nodecoration";g("lembed").className="decorated";p(g("embed"));r(g("send"));g("sendform").from.focus();db(Da("/videostats?shareclick=send&docid="+a+"&frame=share"))}
function Jj(){var a=window.location.search.split("docid=")[1].split("&")[0];g("lembed").className="nodecoration";g("lsend").className="decorated";p(g("send"));r(g("embed"));db(Da("/videostats?shareclick=embed&docid="+a+"&frame=share"))}function bk(a){var b=g("to-label");if(VP_usePicker&&b){b.innerHTML='<a href="javascript:void(0)" onclick="handlePickerClick(event)">'+b.innerHTML+"</a>"}}function Oj(a){cf(VP_contactsBaseUrl+"/ui/");hf("to",a)}var Vd=false,Td=-1;function kl(a,b,c,d){g("rating_info_"+
d).style.display="inline";if(d=="top"){g("communityRating").style.display="none"}g("rating_info_"+d).innerHTML=MSG_ANNOTATION_SAVING;Vd=true;ul(a,b,c,d)}function xk(a,b,c,d){Vd=false;d.style.cursor="pointer";g("rating_info_"+b).style.display="inline";if(b=="top"){g("communityRating").style.display="none"}g("1_"+b).src=VP_largeStarLeftOff;g("2_"+b).src=VP_largeStarMidOff;g("3_"+b).src=VP_largeStarMidOff;g("4_"+b).src=VP_largeStarMidOff;g("5_"+b).src=VP_largeStarRightOff;if(a>=1){g("1_"+b).src=VP_largeStarLeftOn;
if(b=="top"){g("rating_info_"+b).innerHTML=MSG_RATING_POOR}else{g("rating_info_"+b).innerHTML=MSG_RATING_POOR_SHORT}}if(a>=2){g("2_"+b).src=VP_largeStarMidOn;if(b=="top"){g("rating_info_"+b).innerHTML=MSG_RATING_BELOW_AVERAGE}else{g("rating_info_"+b).innerHTML=MSG_RATING_BELOW_AVERAGE_SHORT}}if(a>=3){g("3_"+b).src=VP_largeStarMidOn;if(b=="top"){g("rating_info_"+b).innerHTML=MSG_RATING_AVERAGE}else{g("rating_info_"+b).innerHTML=MSG_RATING_AVERAGE_SHORT}}if(a>=4){g("4_"+b).src=VP_largeStarMidOn;if(b==
"top"){g("rating_info_"+b).innerHTML=MSG_RATING_ABOVE_AVERAGE}else{g("rating_info_"+b).innerHTML=MSG_RATING_ABOVE_AVERAGE_SHORT}}if(a>=5){g("5_"+b).src=VP_largeStarRightOn;if(b=="top"){g("rating_info_"+b).innerHTML=MSG_RATING_EXCELLENT}else{g("rating_info_"+b).innerHTML=MSG_RATING_EXCELLENT_SHORT}}}function vk(a,b,c,d){d.style.cursor="default";if(!Vd){if(c!=0){g("communityRating").style.display="inline"}if(Td==-1){Hb(c,b)}else{Hb(Td,b)}}}function ul(a,b,c,d){var e=fb(),f=A(e,e,"rating");A(e,f,"docid",
b);A(e,f,"user_rating",c);C(a+"?frame=rating"+VP_langParam,Qj,e,d,'text/xml; charset="UTF-8"')}function Qj(a,b,c,d,e){g("rating_info_"+e).style.display="none";g("communityRating").style.display="inline";g("rating_info_"+e).innerHTML="";var f;f=g("rating_error_"+e);if(!b||!a.responseXML){f.innerHTML=MSG_UNKNOWN_ERROR;f.style.display="inline"}else{var h=a.responseXML.documentElement,i=parseInt(D(h,"user_rating"),10);if(h.tagName=="error"){var j=D(h,"errormessage");f.innerHTML=j;f.style.display="inline";
Hb(i,e)}else{var k=parseFloat(D(h,"community_rating")),n=parseInt(D(h,"num_raters"),10);if(n<VP_numVotes){k=VP_numVotes*VP_communityRating+i;k/=VP_numVotes+1;n=VP_numVotes+1;if(VP_userHasRated){n=VP_numVotes}}Hb(i,"top");Hb(i,"top_bottom");Hb(i,"bottom_bottom");g("rating_info_"+e).style.display="inline";if(e=="top"){g("communityRating").style.display="none"}g("rating_info_"+e).innerHTML=MSG_ANNOTATION_SAVED;Td=i;El(k,n);setTimeout("concealRatingInfo()",5000)}}}function eh(){var a=g("rating_info_top");
if(a){a.style.display="none";a.innerHTML=""}var b=g("rating_info_top_bottom");if(b){b.style.display="none";b.innerHTML=""}var c=g("rating_info_bottom_bottom");if(c){c.style.display="none";c.innerHTML=""}var d=g("rating_info_top_frame");if(d){d.style.display="none";d.innerHTML=""}var e=g("communityRating");if(e){e.style.display="inline"}}function Hb(a,b){var c=g("rating_info_"+b);if(c){c.innerHTML="";c.style.display="none"}var d={};for(var e=1;e<6;e++){d[e]=g(e+"_"+b)}if(d[1]){d[1].src=a>=1?VP_largeStarLeftOn:
VP_largeStarLeftOff}if(d[2]){d[2].src=a>=2?VP_largeStarMidOn:VP_largeStarMidOff}if(d[3]){d[3].src=a>=3?VP_largeStarMidOn:VP_largeStarMidOff}if(d[4]){d[4].src=a>=4?VP_largeStarMidOn:VP_largeStarMidOff}if(d[5]){d[5].src=a>=5?VP_largeStarRightOn:VP_largeStarRightOff}}function ih(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 Yg(){if(!VP_allowAnnotations){return}Ck();if(VP_commentName&&
VP_commentName!=""){if(g("reviewername_bottom")){cb(g("reviewername_bottom"),VP_commentName)}if(g("reviewername_top")){cb(g("reviewername_top"),VP_commentName)}}if(VP_showMoreTags==true){Mb("common_tags","true")}else{Mb("common_tags","false")}}function Ck(){var a=Ba(VP_annotationsCookieName);if(!a){gc()}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 gc(){var a=Ba(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;qb(VP_annotationsCookieName,b,VP_cookieDomain)}function ze(a){var b="targetId="+a+"&functionName=pause";Nf("proxyflashdiv","/proxy.swf",b)}function Nf(a,b,c){var d;if(fc){d='classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'}else{d='data="'+b+'"'}g(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 El(a,b){ for(var c=1;c<=5;c++){var d=g("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(g("numOfRaters")){g("numOfRaters").innerHTML=b}}function He(){if(!VP_subtitleEnabled){return""}else{return"&subtitle="+
(VP_subtitleOn?"on":"off")}}function xg(a,b){if(a=="subtitleUpdate"){var c=b.split(",");VP_subtitleEnabled=c[0]=="true"?true:false;VP_subtitleOn=c[1]=="true"?true:false}}function Ik(a){try{if(top==window){window.location.replace(a)}}catch(b){}};function uk(){var a=g("videopurchasediv"),b=g("videopurchaseiframe");if(a&&b){a.style.height=Xa;b.style.height=Xa}}function xl(){p(g("thumbsetc"));p(g("purchaseorthumbs"));r(g("videopurchasediv"));r(g("thumbsorpurchase"));Xa=Ya-g("abovecorner").offsetHeight-je;g("corner").style.height=Xa;g("videopurchasediv").style.height=Xa;g("videopurchaseiframe").style.height=Xa}function yl(){p(g("videopurchasediv"));p(g("thumbsorpurchase"));r(g("thumbsetc"));r(g("purchaseorthumbs"))}function tk(a,b,c,d){if(!d||
d=="gvp"){r(g("gvpdownloaddiv"));p(g("directdownloaddiv"))}else{r(g("directdownloaddiv"));p(g("gvpdownloaddiv"))}r(g("videodownloaddiv"));if(!d||d=="gvp"){cg(b,c)}else{if(g("macdownloaddiv")){p(g("macdownloaddiv"))}if(g("ipoddownloaddiv")){p(g("ipoddownloaddiv"))}if(g("pspdownloaddiv")){p(g("pspdownloaddiv"))}r(g(d+"downloaddiv"));window.setTimeout(function(){ae(g(d+"downloadlink").href)},0)}ze(a)}function Fk(a){window.parent._gb_refreshGaiaBar();window.location.href=a};function Bk(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 Bl(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"]=Rc;window["timedHideEle"]=mg;window["timedHideEleById"]=Al;window["appendElement"]=A;window["applyAnnotationsSettings"]=Yg;window["applyPlaylistSettings"]=Zg;window["backLinkClicked"]=$g;window["blogpostInitialize"]=bh;window["checkEnterKey"]=dh;window["concealRatingInfo"]=eh;window["contents"]=gh;window["DataStoreHandler"]=wg;window["DoFSCommand"]=xg;window["deleteCookie"]=jh;window["disableButton"]=we;window["discloseTags"]=Mb;window["donePlaying"]=ph;window["doPause"]=ze;window["doPlay"]=
nh;window["dropdownNav"]=qh;window["ele"]=g;window["expand"]=sh;window["flagVideo"]=wh;window["flash7OrHigher"]=xh;window["FlashRequest"]=yg;window["flipAutoplay"]=yh;window["getCheckedValue"]=Th;window["getElementValue"]=D;window["getNoCacheURL"]=Da;window["getPrefCookie"]=Vh;window["getSubtitleArgForFlash"]=He;window["getXmlDocument"]=fb;window["goFullscreen"]=Yh;window["handleEmbedHTMLClick"]=Jj;window["handlePickerClick"]=Oj;window["handleSendEmailLinkClick"]=Jf;window["handleSharePanelClick"]=
Vj;window["hashTextToTime"]=Kf;window["hideEle"]=p;window["insertHtmlInEle"]=ek;window["initializeResultBoxes"]=dk;window["initPicker"]=bk;window["isNoneSelected"]=hk;window["isVisName"]="isVisible";window[window["isVisName"]]=pb;window["loadEmailCookieForFromAndTo"]=jk;window["loginButtonClicked"]=Qf;window["massageReviewInput"]=cb;window["markComment"]=qk;window["monitorDivOffset"]=rk;window["onDownloadClick"]=tk;window["onWindowResize"]=Tf;window["outStars"]=vk;window["overStars"]=xk;window["proceedToSubmit"]=
Vf;window["processResponse"]=Wf;window["publishComment"]=zk;window["publishTag"]=Ak;window["pvsearch"]=Xf;window["qs"]=Bk;window["recordFlaggedVideo"]=Ek;window["redirectToPurchase"]=Fk;window["refreshVisibleTab"]=Zf;window["reloadWithFrameIfNeeded"]=Ik;window["removeScrollBars"]=Kk;window["resizePlayer"]=Ok;window["ResultBox"]=Cg;window["resultBoxNextClicked"]=Pk;window["resultBoxPrevClicked"]=Qk;window["rowToggleAll"]=Uk;window["saveCollapseDescr"]=Yk;window["saveAnnotationsSettings"]=gc;window["saveVisibleTab"]=
Zk;window["selectDownload"]=cg;window["sendAjaxRequest"]=C;window["sendPlaylistNextRequest"]=bl;window["sendPlaylistPrevRequest"]=cl;window["sendRequest"]=db;window["sendSendLinkRequest"]=dl;window["setCookie"]=gl;window["setElementDisplay"]=ic;window["setEmailCookieForFromAndTo"]=il;window["setMaxLength"]=jl;window["setMyPlaylist"]=fg;window["setPermanentCookie"]=qb;window["setSessionCookie"]=Gb;window["setStars"]=kl;window["showEle"]=r;window["submitButtonClicked"]=sl;window["switchTab"]=wl;window["switchToPurchase"]=
xl;window["switchToThumbs"]=yl;window["tagInputFieldOnKeyDown"]=zl;window["togDisp"]=Bl;window["toggleRow"]=Cl;window["toggleVisibility"]=Dl;window["updateReviews"]=pg;window["updateTags"]=Oc;window["uploadedVideoUpdateMetadata"]=Hl;window["vpsearch"]=Nl;window["vpseek"]=sg;window["VMT_deselectMenu"]=Eg;window["VMT_hideMenu"]=he;window["VMT_hideMenuButtonFromTimeout"]=Fg;window["VMT_hideMenuTimeout"]=Gg;window["VMT_persistMenu"]=Ig;window["VMT_selectMenu"]=Jg;window["VMT_showMenuFromButtonTimeout"]=
Lg;window["VMT_toggleMenu"]=Mg;window["VP_linksArray"]=sb;window["VUP_checkUploadStatus"]=Ng;
