var goog={};this.goog=goog;goog.global=this;var n=goog.provide=function(a){var b=a.split("."),c=goog.global;for(var d;d=b.shift();){if(c[d]){c=c[d]}else{c=(c[d]={})}}};goog.getObjectByName=function(a){var b=a.split("."),c=goog.global;for(var d;d=b.shift();){if(c[d]){c=c[d]}else{return null}}return c};goog.globalize=function(a,b){Le(b||goog.global,a||goog)};goog.addDependency=function(a,b,c){};var k=goog.require=function(a){};goog.addIncludeRoot=function(a,b){};goog.basePath="";var Ai=goog.nullFunction=
function(){};var F=goog.isDef=function(a){return typeof a!="undefined"};goog.isNull=function(a){return a===null};var ta=goog.isArray=function(a){return a instanceof Array||ua(a)&&mc(a.join)&&mc(a.reverse)},W=goog.isArrayLike=function(a){return ua(a)&&typeof a.length=="number"},G=goog.isString=function(a){return typeof a=="string"};goog.isBoolean=function(a){return typeof a=="boolean"};goog.isNumber=function(a){return typeof a=="number"};var mc=goog.isFunction=function(a){return typeof a=="function"},
ua=goog.isObject=function(a){return a!=null&&typeof a=="object"},fa=goog.getHashCode=function(a){if(a.hasOwnProperty&&a.hasOwnProperty(Ua)){return a[Ua]}if(!a[Ua]){a[Ua]=++goog.Dd}return a[Ua]};goog.removeHashCode=function(a){if("removeAttribute"in a){a.removeAttribute(Ua)}try{delete a[Ua]}catch(b){}};var Ua=goog.Me="closure_hashCode_";goog.Dd=0;var rh=goog.cloneObject=function(a){if(ua(a)){if(a.clone){return a.clone()}var b=ta(a)?[]:{};for(var c in a){b[c]=rh(a[c])}return b}return a},da=goog.bind=
function(a,b){var c=a.Lc||[];c=c.concat(Array.prototype.slice.call(arguments,2));if(a.yb){b=a.yb}if(a.xb){a=a.xb}var d=function(){var e=c.concat(Array.prototype.slice.call(arguments));return a.apply(b,e)};d.Lc=c;d.yb=b;d.xb=a;return d};goog.partial=function(a){return da.apply(null,[a,null].concat(Array.prototype.slice.call(arguments,1)))};var Le=goog.mixin=function(a,b){for(var c in b){a[c]=b[c]}},Pe=goog.now=function(){return(new Date).getTime()};goog.globalEval=function(a){if(goog.global.execScript){goog.global.execScript(a,
"JavaScript")}else if(goog.global.eval){goog.global.eval(a)}else{throw Error("goog.globalEval not available");}};goog.getMsg=function(a,b){var c=b||{};for(var d in c){a=a.replace(new RegExp("\\{\\$"+d+"\\}","gi"),c[d])}return a};if(!Function.prototype.apply){Function.prototype.apply=function(a,b){var c=[],d,e;if(!a)a=goog.global;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 da.apply(null,[this,a].concat(Array.prototype.slice.call(arguments,1)))};Function.prototype.partial=function(){return da.apply(null,[this,null].concat(Array.prototype.slice.call(arguments)))};Function.prototype.inherits=function(a){var b=function(){};b.prototype=a.prototype;this.ta=a.prototype;this.prototype=new b};Function.prototype.mixin=function(a){Le(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}};n("goog.array");var v=goog.array;v.indexOf=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};v.lastIndexOf=function(a,b,c){if(c==null){c=a.length-1}if(a.lastIndexOf){return a.lastIndexOf(b,c)}if(Array.lastIndexOf){return Array.lastIndexOf(a,b,c)}if(c<0){c=Math.max(0,a.length+c)}for(var d=c;d>=0;d--){if(a[d]===b)return d}return-1};var lh=v.forEach=
function(a,b,c){if(a.forEach){a.forEach(b,c)}else if(Array.forEach){Array.forEach(a,b,c)}else{var d=a.length,e=G(a)?a.split(""):a;for(var f=0;f<d;f++){b.call(c,e[f],f,a)}}};v.filter=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=G(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};var ph=v.map=function(a,b,c){if(a.map){return a.map(b,c)}if(Array.map){return Array.map(a,b,c)}var d=a.length,e=[],f=
G(a)?a.split(""):a;for(var h=0;h<d;h++){e.push(b.call(c,f[h],h,a))}return e},qh=v.some=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=G(a)?a.split(""):a;for(var f=0;f<d;f++){if(b.call(c,e[f],f,a)){return true}}return false},kh=v.every=function(a,b,c){if(a.every){return a.every(b,c)}if(Array.every){return Array.every(a,b,c)}var d=a.length,e=G(a)?a.split(""):a;for(var f=0;f<d;f++){if(!b.call(c,e[f],f,a)){return false}}return true},Oa=v.contains=
function(a,b){if(a.contains){return a.contains(b)}return v.indexOf(a,b)>-1},oh=v.D=function(a){return a.length==0};v.clear=function(a){if(!ta(a)){for(var b=a.length-1;b>=0;b--){delete a[b]}}a.length=0};var mh=v.insert=function(a,b){if(!Oa(a,b)){a.push(b)}},nh=v.insertAt=function(a,b,c){v.splice(a,c,0,b)};v.insertBefore=function(a,b,c){var d;if(arguments.length==2||(d=v.indexOf(a,c))==-1){a.push(b)}else{nh(a,b,d)}};v.remove=function(a,b){var c=v.indexOf(a,b),d;if(d=c!=-1){be(a,c)}return d};var be=
v.removeAt=function(a,b){return Array.prototype.splice.call(a,b,1).length==1};v.clone=function(a){return a.concat()};v.splice=function(a,b,c,d){return Array.prototype.splice.apply(a,v.slice(arguments,1))};v.slice=function(a,b,c){if(arguments.length<=2){return Array.prototype.slice.call(a,b)}else{return Array.prototype.slice.call(a,b,c)}};v.find=v.indexOf;v.insertValue=mh;v.deleteValue=v.remove;n("goog.object");var ca=goog.object,Ci=ca.forEach=function(a,b,c){for(var d in a){b.call(c,a[d],d,a)}};goog.object.filter=function(a,b,c){var d={};for(var e in a){if(b.call(c,a[e],e,a)){d[e]=a[e]}}return d};ca.map=function(a,b,c){var d={};for(var e in a){d[e]=b.call(c,a[e],e,a)}return d};ca.some=function(a,b,c){for(var d in a){if(b.call(c,a[d],d,a)){return true}}return false};ca.every=function(a,b,c){for(var d in a){if(!b.call(c,a[d],d,a)){return false}}return true};var Di=ca.m=function(a){var b=
0;for(var c in a){b++}return b};ca.contains=function(a,b){return Qe(a,b)};var Re=ca.n=function(a){var b=[];for(var c in a){b.push(a[c])}return b},nc=ca.C=function(a){var b=[];for(var c in a){b.push(c)}return b},Bi=ca.p=function(a,b){return b in a},Qe=ca.Ra=function(a,b){for(var c in a){if(a[c]==b){return true}}return false},Ei=ca.D=function(a){for(var b in a){return false}return true};goog.object.clear=function(a){var b=nc(a);for(var c=b.length-1;c>=0;c--){goog.object.remove(a,b[c])}};goog.object.remove=
function(a,b){var c;if(c=b in a){delete a[b]}return c};goog.object.add=function(a,b,c){if(b in a){throw Error('The object already contains the key "'+b+'"');}Se(a,b,c)};ca.get=function(a,b,c){if(b in a){return a[b]}return c};var Se=ca.set=function(a,b,c){a[b]=c};ca.clone=function(a){var b={};for(var c in a){b[c]=a[c]}return b};n("goog.string");var x=goog.string,Jb=x.startsWith=function(a,b){return a.indexOf(b)==0},ab=x.endsWith=function(a,b){var c=a.length-b.length;return c>=0&&a.lastIndexOf(b,c)==c};x.subs=function(a){for(var b=1;b<arguments.length;b++){a=a.replace(/\%s/,String(arguments[b]))}return a};x.collapseWhitespace=function(a){return a.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")};x.D=function(a){return/^\s*$/.test(a)};x.isAlpha=function(a){return!/[^a-zA-Z]/.test(a)};x.isNumeric=function(a){return!/[^0-9]/.test(a)};
x.isAlphaNumeric=function(a){return!/[^a-zA-Z0-9]/.test(a)};x.isSpace=function(a){return a==" "};x.stripNewlines=function(a){return a.replace(/(\r\n|\r|\n)+/g," ")};x.canonicalizeNewlines=function(a){return a.replace(/(\r\n|\r|\n)/g,"\n")};x.normalizeSpaces=function(a){return a.replace(/\xa0|\s/g," ")};var Ji=x.trim=function(a){return a.replace(/^\s+|\s+$/g,"")};x.trimLeft=function(a){return a.replace(/^\s+/,"")};var Ki=x.trimRight=function(a){return a.replace(/\s+$/,"")};x.caseInsensitiveCompare=
function(a,b){var c=String(a).toLowerCase(),d=String(b).toLowerCase();if(c<d){return-1}else if(c==d){return 0}else{return 1}};x.urlEncode=function(a){return encodeURIComponent(a)};var cd=x.urlDecode=function(a){return decodeURIComponent(a.replace(/\+/g," "))},ad=x.newLineToBr=function(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")},ka=x.htmlEscape=function(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;")},Li=x.unescapeEntities=function(a){if(a.indexOf("&")>=
0){var b=document.createElement("a");b.innerHTML=a;if(b.normalize){b.normalize()}a=b.firstChild.nodeValue;b.innerHTML=""}return a},dd=x.whitespaceEscape=function(a,b){return ad(a.replace(/  /g," &#160;"),b)};x.stripQuotes=function(a,b){if(a.charAt(0)==b&&a.charAt(a.length-1)==b){return a.substring(1,a.length-1)}return a};x.truncate=function(a,b,c){if(c){a=Li(a)}if(a.length>b){a=a.substring(0,b)+"..."}if(c){a=ka(a)}return a};var $c=x.Jf={"\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t",
"\u000b":"\\x0B",'"':'\\"',"'":"'","\\":"\\"};x.quote=function(a){a=String(a);if(a.quote){return a.quote()}else{var b='"';for(var c=0;c<a.length;c++){b+=Hi(a.charAt(c))}return b+'"'}};var Hi=x.escapeChar=function(a){if(a in $c){return $c[a]}var b=a,c=a.charCodeAt(0);if(c>31&&c<127){b=a}else{if(c<256){b="\\x";if(c<16||c>256){b+="0"}}else{b="\\u";if(c<4096){b+="0"}}b+=c.toString(16).toUpperCase()}return $c[a]=b},Ii=x.toMap=function(a){var b={};for(var c=0;c<a.length;c++){b[a.charAt(c)]=true}return b},
Fi=x.Ne=Ii("()[]{}+-?*.$^|,:#<!\\"),Gi=x.contains=function(a,b){return a.indexOf(b)!=-1},bd=x.regExpEscape=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 Fi){c="\\"+c}b+=c}return b};x.padNumber=function(a,b,c){var d=Math.floor(a),e=String(d);return(new Array(Math.max(0,b-e.length+1))).join("0")+(F(c)?a.toFixed(c):a)};n("goog.math");var Fb=goog.math,Gb=Fb.Size=function(a,b){this.width=F(a)?Number(a):undefined;this.height=F(b)?Number(b):undefined};Gb.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};var Ka=Fb.Coordinate=function(a,b){this.x=F(a)?Number(a):undefined;this.y=F(b)?Number(b):undefined};Ka.prototype.toString=function(){return"("+this.x+", "+this.y+")"};var ga=Fb.Range=function(a,b){a=Number(a);b=Number(b);this.start=a<b?a:b;this.end=a<b?b:a};ga.equals=function(a,b){if(a==b){return true}if(a==
null||b==null){return false}return a.start==b.start&&a.end==b.end};var Ke=ga.intersection=function(a,b){var c=Math.max(a.start,b.start),d=Math.min(a.end,b.end);return c<=d?new ga(c,d):null},Je=ga.boundingRange=function(a,b){return new ga(Math.min(a.start,b.start),Math.max(a.end,b.end))},va=Fb.Rect=function(a,b,c,d){this.left=F(a)?Number(a):undefined;this.top=F(b)?Number(b):undefined;this.width=F(c)?Number(c):undefined;this.height=F(d)?Number(d):undefined};va.equals=function(a,b){if(a==b){return true}if(a==
null||b==null){return false}return a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height};va.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};va.intersection=function(a,b){if(!a||!b){return null}var c=Ke(new ga(a.left,a.left+a.width),new ga(b.left,b.left+b.width));if(!c){return null}var d=Ke(new ga(a.top,a.top+a.height),new ga(b.top,b.top+b.height));if(!d){return null}return new va(c.start,d.start,c.end-c.start,d.end-d.start)};
var vi=Fb.Box=function(a,b,c,d){this.top=F(a)?Number(a):undefined;this.right=F(b)?Number(b):undefined;this.bottom=F(c)?Number(c):undefined;this.left=F(d)?Number(d):undefined};vi.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};va.boundingRect=function(a,b){if(!a||!b){return null}var c=Je(new ga(a.left,a.left+a.width),new ga(b.left,b.left+b.width)),d=Je(new ga(a.top,a.top+a.height),new ga(b.top,b.top+b.height));return new va(c.start,d.start,
c.end-c.start,d.end-d.start)};n("goog.userAgent");var A=goog.userAgent;(function(){var a=navigator.userAgent,b=typeof opera!="undefined",c=!b&&a.indexOf("MSIE")!=-1,d=!b&&navigator.product=="Gecko",e=!b&&a.indexOf("Konqueror")!=-1,f=!b&&a.indexOf("Safari")!=-1,h=e||f,i,j;if(b){i=opera.version()}else{if(d){j=/rv\:([^\);]+)(\)|;)/}else if(c){j=/MSIE\s+([^\);]+)(\)|;)/}else if(f){j=/AppleWebKit\/(\S+)/}else if(e){j=/Konqueror\/([^\);]+)(\)|;)/}if(j){j.test(a);i=RegExp.$1}}A.OPERA=b;A.IE=c;A.GECKO=d;A.KONQUEROR=e;A.SAFARI=f;A.KHTML=
h;A.VERSION=i;A.PLATFORM=navigator.platform})();var Ri=A.compare=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};A.isVersion=function(a){return Ri(A.VERSION,
a)>=0};n("goog.dom");var t=goog.dom;n("goog.dom.DomHelper");z=goog.dom.DomHelper;n("goog.dom.NodeType");zb=goog.dom.NodeType;k("goog.string");k("goog.object");k("goog.array");k("goog.math");k("goog.userAgent");var zb=t.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12},ib=t.tf=function(){if(!t.Eb){t.Eb=new z}return t.Eb},ne=t.Kb=function(){return ib().Kb()},Jh=t.Mb=function(a){return ib().Mb(a)},
bc=t.xc=Jh,Kh=t.Nb=function(a,b,c){return ib().Nb(a,b,c)},Bh=t.yc=Kh,qe=t.Be=function(a,b){Ci(b,function(c,d){if(d=="style"){a.style.cssText=c}else{a[d]=c}})},Qh=t.rd=function(a){var b=a||goog.global||window,c=b.document.body,d,e;if(b.innerWidth){d=b.innerWidth;e=b.innerHeight}else if(c&&c.parentElement&&c.parentElement.clientWidth){d=c.parentElement.clientWidth;e=c.parentElement.clientHeight}else if(c&&c.clientWidth){d=c.clientWidth;e=c.clientHeight}return new Gb(d,e)},cc=t.Ab=function(a){var b=
ib();return b.Ab.apply(b,arguments)},Fh=zb.ATTRIBUTE,le=zb.DOCUMENT,Lc=zb.ELEMENT,Ab=zb.TEXT;t.zc=cc;t.createElement=function(a){return ib().createElement(a)};t.createTextNode=function(a){return ib().createTextNode(a)};t.appendChild=function(a,b){a.appendChild(b)};var oe=t.le=function(a){var b;while(b=a.firstChild){a.removeChild(b)}},ec=t.oe=function(a){if(a.parentNode){a.parentNode.removeChild(a)}},Lh=t.Yc=function(a){return dc(a.firstChild,true)},Nh=t.bd=function(a){return dc(a.lastChild,false)},
Oh=t.cd=function(a){return dc(a.nextSibling,true)},Ph=t.jd=function(a){return dc(a.previousSibling,false)},dc=t.uf=function(a,b){while(a&&a.nodeType!=Lc){a=b?a.nextSibling:a.previousSibling}return a},Rh=t.Pd=function(a){return ua(a)&&a.nodeType>0},Gh=t.contains=function(a,b){if(typeof a.contains!="undefined"){return a.contains(b)}if(typeof a.compareDocumentPosition!="undefined"){return Boolean(a.compareDocumentPosition(b)&16)}while(b&&a!=b){b=b.parentNode}return b==a},Fa=t.fd=function(a){return a.nodeType==
le?a:a.ownerDocument||a.document},Mh=t.Zc=function(a){return A.SAFARI?a.document:a.contentDocument||a.contentWindow.document},Sh=t.De=function(a,b){if("textContent"in a){a.textContent=b}else if(a.firstChild&&a.firstChild.nodeType==Ab){while(a.lastChild!=a.firstChild){a.removeChild(a.lastChild)}a.firstChild.data=b}else{while(a.hasChildNodes()){a.removeChild(a.lastChild)}var c=Fa(a);a.appendChild(c.createTextNode(b))}},Hh=t.Uc=function(a,b){var c=[];Nc(a,b,c,true);return c[0]},Ih=t.Vc=function(a,b){var c=
[];Nc(a,b,c,false);return c},Nc=t.mf=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}}Nc(f,b,c,d)}}},z=t.DomHelper=function(a){this.ga=a||goog.global.document||document};z.prototype.Kb=function(){return this.ga};var Dh=z.prototype.Mb=function(a){if(G(a)){return this.ga.getElementById(a)}else{return a}};z.prototype.xc=Dh;var Eh=z.prototype.Nb=function(a,b,c){var d=a||"*",e=c||this.ga,f=e.getElementsByTagName(d);if(b){return v.filter(f,function(h){return Oa(h.className.split(" "),
b)})}else{return f}};z.prototype.yc=Eh;z.prototype.Be=qe;z.prototype.rd=Qh;var Ch=z.prototype.Ab=function(a,b){if(A.IE&&b&&b.name){a="<"+a+' name="'+ka(b.name)+'">'}var c=this.createElement(a);if(b){qe(c,b)}if(arguments.length>2){var d=v.slice(arguments,2);for(var e=0;e<d.length;e++){if(G(d[e])){this.appendChild(c,this.createTextNode(d[e]))}else if(d[e]){this.appendChild(c,d[e])}}}return c};z.prototype.zc=Ch;z.prototype.createElement=function(a){return this.ga.createElement(a)};z.prototype.createTextNode=
function(a){return this.ga.createTextNode(a)};z.prototype.appendChild=t.appendChild;z.prototype.le=oe;z.prototype.oe=ec;z.prototype.Yc=Lh;z.prototype.bd=Nh;z.prototype.cd=Oh;z.prototype.jd=Ph;z.prototype.Pd=Rh;z.prototype.contains=Gh;z.prototype.fd=Fa;z.prototype.Zc=Mh;z.prototype.De=Sh;z.prototype.Uc=Hh;z.prototype.Vc=Ih;n("goog.style");var aa=goog.style;k("goog.dom");k("goog.math");k("goog.userAgent");var af=aa.setStyle=function(a,b,c){a.style[hd(b)]=c};aa.getStyle=function(a,b){return a.style[hd(b)]};var Ze=aa.yf=function(a,b){var c=Fa(a),d=hd(b);if(c.defaultView&&c.defaultView.getComputedStyle){var e=c.defaultView.getComputedStyle(a,"");if(e){return e[d]}}if(a.currentStyle){return a.currentStyle[d]}else{return a.style[d]}};goog.style.setPosition=function(a,b,c){var d,e;if(b instanceof Ka){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};aa.getPosition=function(a){return new Ka(a.offsetLeft,a.offsetTop)};var Ye=aa.getClientViewportElement=function(a){var b;if(a){if(a.nodeType==le){b=a}else{b=Fa(a)}}else{b=ne()}if(A.IE&&b.compatMode!="CSS1Compat"){return b.body}return b.documentElement},cb=aa.getPageOffset=function(a){var b=Fa(a),c=new Ka(0,0),d=Ye(b);if(a==d){return c}var e=null,f;if(a.getBoundingClientRect){f=a.getBoundingClientRect();
var h=d.scrollTop,i=d.scrollLeft;return new Ka(f.left+i,f.top+h)}else if(b.getBoxObjectFor){f=b.getBoxObjectFor(a);var j=b.getBoxObjectFor(d);return new Ka(f.screenX-j.screenX,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(A.OPERA||A.SAFARI&&Ze(a,"position")=="absolute"){c.y-=b.body.offsetTop}}e=a.parentNode;while(e&&e!=d){c.x-=e.scrollLeft;c.y-=e.scrollTop;e=e.parentNode}return c};aa.getPageOffsetLeft=
function(a){return cb(a).x};aa.getPageOffsetTop=function(a){return cb(a).y};aa.getRelativePosition=function(a,b){var c=cb(a),d=cb(b);return new Ka(c.x-d.x,c.y-d.y)};var gd=aa.setPageOffset=function(a,b,c){var d=cb(a);if(b instanceof Ka){c=b.y;b=b.x}var e=b-d.x,f=c-d.y;goog.style.setPosition(a,a.offsetLeft+e,a.offsetTop+f)},$e=aa.setSize=function(a,b,c){var d;if(b instanceof Gb){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},pc=aa.getSize=function(a){if(Ze(a,"display")!="none"){return new Gb(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 Gb(e,f)},hd=aa.toCamelCase=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};aa.toSelectorCase=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};aa.setOpacity=
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+")"}};n("goog.dom.classes");var Y=goog.dom.classes;k("goog.array");Y.set=function(a,b){a.className=b};var Mc=Y.get=function(a){return a.className.split(" ")};Y.add=function(a,b){var c=Mc(a),d=v.slice(arguments,1),e=1;for(var f=0;f<d.length;f++){if(!Oa(c,d[f])){c.push(d[f]);e&=1}else{e&=0}}a.className=c.join(" ");return Boolean(e)};Y.remove=function(a,b){var c=Mc(a),d=v.slice(arguments,1),e=0;for(var f=0;f<c.length;f++){if(Oa(d,c[f])){v.splice(c,f--,1);e++}}a.className=c.join(" ");return e==d.length};Y.swap=
function(a,b,c){var d=Y.remove(a,b);if(d){Y.add(a,c)}return d};var me=Y.has=function(a,b){return Oa(Mc(a),b)};Y.toggle=function(a,b){if(me(a,b)){Y.remove(a,b);return false}else{Y.add(a,b);return true}};n("goog.structs");var $=goog.structs;k("goog.array");k("goog.object");var We=$.m=function(a){if(typeof a.m=="function"){return a.m()}if(W(a)||G(a)){return a.length}return Di(a)},bb=$.n=function(a){if(typeof a.n=="function"){return a.n()}if(G(a)){return a.split("")}if(W(a)){var b=[],c=a.length;for(var d=0;d<c;d++){b.push(a[d])}return b}return Re(a)},Lb=$.C=function(a){if(typeof a.C=="function"){return a.C()}if(typeof a.n=="function"){return undefined}if(W(a)||G(a)){var b=[],c=a.length;for(var d=0;d<
c;d++){b.push(d)}return b}return nc(a)},Ve=$.contains=function(a,b){if(typeof a.contains=="function"){return a.contains(b)}if(W(a)||G(a)){return Oa(a,b)}return Qe(a,b)},Xe=$.D=function(a){if(typeof a.D=="function"){return a.D()}if(W(a)||G(a)){return oh(a)}return Ei(a)};$.clear=function(a){if(typeof a.clear=="function"){a.clear()}else if(W(a)){v.clear(a)}else{goog.object.clear(a)}};var Kb=$.forEach=function(a,b,c){if(typeof a.forEach=="function"){a.forEach(b,c)}else if(W(a)||G(a)){lh(a,b,c)}else{var d=
Lb(a),e=bb(a),f=e.length;for(var h=0;h<f;h++){b.call(c,e[h],d&&d[h],a)}}};$.filter=function(a,b,c,d){if(typeof a.filter=="function"){return a.filter(b,c)}if(W(a)||G(a)){return v.filter(a,b,c)}var e,f=Lb(a),h=bb(a),i=h.length;if(f&&w){e=new (d||Object);for(var j=0;j<i;j++){if(b.call(c,h[j],f[j],a)){Ue(e,f[j],h[j])}}}else if(D){e=new (d||Array);for(var j=0;j<i;j++){if(b.call(c,h[j],undefined,a)){D.add(e,h[j])}}}return e};$.map=function(a,b,c,d){if(typeof a.map=="function"){return a.map(b,c)}if(W(a)||
G(a)){return ph(a,b,c)}var e,f=Lb(a),h=bb(a),i=h.length;if(f&&w){e=new (d||Object);for(var j=0;j<i;j++){Ue(e,f[j],b.call(c,h[j],f[j],a))}}else if(D){e=new (d||Array);for(var j=0;j<i;j++){D.add(e,f[j],b.call(c,h[j],undefined,a))}}return e};var Oi=$.some=function(a,b,c){if(typeof a.some=="function"){return a.some(b,c)}if(W(a)||G(a)){return qh(a,b,c)}var d=Lb(a),e=bb(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};$.every=function(a,b,c){if(typeof a.every==
"function"){return a.every(b,c)}if(W(a)||G(a)){return kh(a,b,c)}var d=Lb(a),e=bb(a),f=e.length;for(var h=0;h<f;h++){if(!b.call(c,e[h],d&&d[h],a)){return false}}return true};n("goog.structs.Map");w=goog.structs.Map;k("goog.object");var w=$.Map=function(a){this.b={};if(a){this.Oa(a)}};w.prototype.l=0;w.prototype.m=function(){return this.l};var ed=w.Hf=function(a){return a.charAt(0)==":"},Mi=w.ad=function(a){return a.substring(1)},oc=w.Nf=function(a){return":"+a};w.prototype.n=function(){var a=[];for(var b in this.b){if(ed(b)){a.push(this.b[b])}}return a};w.prototype.C=function(){var a=[];for(var b in this.b){if(ed(b)){a.push(Mi(b))}}return a};w.prototype.p=function(a){return oc(a)in
this.b};w.prototype.Ra=function(a){for(var b in this.b){if(ed(b)&&this.b[b]==a){return true}}return false};w.prototype.D=function(){return this.l==0};w.prototype.clear=function(){this.b={};this.l=0};w.prototype.remove=function(a){if(goog.object.remove(this.b,oc(a))){this.l--;return true}return false};w.prototype.get=function(a,b){var c=oc(a);if(c in this.b){return this.b[c]}return b};w.prototype.set=function(a,b){var c=oc(a);if(!(c in this.b)){this.l++}this.b[c]=b};w.prototype.Oa=function(a){var b,
c;if(a instanceof w){b=a.C();c=a.n()}else{b=nc(a);c=Re(a)}for(var d=0;d<b.length;d++){this.set(b[d],c[d])}};w.prototype.clone=function(){return new w(this)};w.m=function(a){return We(a)};w.n=function(a){return bb(a)};w.C=function(a){if(typeof a.C=="function"){return a.C()}var b=[];if(W(a)){for(var c=0;c<a.length;c++){b.push(c)}}else{return nc(a)}return b};var Te=w.p=function(a,b){if(typeof a.p=="function"){return a.p(b)}if(W(a)){return b<a.length}return Bi(a,b)};w.Ra=function(a,b){return Ve(a,b)};
w.D=function(a){return Xe(a)};w.clear=function(a){$.clear(a)};w.remove=function(a,b){if(typeof a.remove=="function"){return a.remove(b)}if(W(a)){return be(a,b)}return goog.object.remove(a,b)};w.add=function(a,b,c){if(typeof a.add=="function"){a.add(b,c)}else if(Te(a,b)){throw Error('The collection already contains the key "'+b+'"');}else{Se(a,b,c)}};w.get=function(a,b,c){if(typeof a.get=="function"){return a.get(b,c)}if(Te(a,b)){return a[b]}return c};var Ue=w.set=function(a,b,c){if(typeof a.set==
"function"){a.set(b,c)}else{a[b]=c}};n("goog.structs.Set");D=goog.structs.Set;k("goog.structs");k("goog.structs.Map");var D=$.Set=function(a){this.b=new w;if(a){this.Oa(a)}},fd=D.ad=function(a){var b=typeof a;if(b=="object"){return"o"+fa(a)}else{return b.substr(0,1)+a}};D.prototype.m=function(){return this.b.m()};D.prototype.add=function(a){this.b.set(fd(a),a)};D.prototype.Oa=function(a){var b=Ni(a),c=b.length;for(var d=0;d<c;d++){this.add(b[d])}};D.prototype.remove=function(a){return this.b.remove(fd(a))};D.prototype.clear=function(){this.b.clear()};
D.prototype.D=function(){return this.b.D()};D.prototype.contains=function(a){return this.b.p(fd(a))};D.prototype.n=function(){return this.b.n()};D.prototype.clone=function(){return new D(this)};D.m=function(a){return We(a)};var Ni=D.n=function(a){return bb(a)};D.contains=function(a,b){return Ve(a,b)};D.D=function(a){return Xe(a)};D.clear=function(a){$.clear(a)};D.remove=function(a,b){if(typeof a.remove=="function"){return a.remove(b)}else if(W(a)){return v.remove(a,b)}else{for(var c in a){if(a[c]==
b){delete a[c];return true}}return false}};D.add=function(a,b){if(typeof a.add=="function"){a.add(b)}else if(W(a)){a[a.length]=b}else{throw Error('The collection does not know how to add "'+b+'"');}};n("goog.Uri");m=goog.Uri;n("goog.Uri.QueryData");N=goog.Uri.QueryData;k("goog.string");k("goog.array");k("goog.structs.Map");var m=goog.Uri=function(a){var b;if(a instanceof m){this.Ka(a.Xb());this.La(a.Zb());this.Fa(a.Lb());this.Ia(a.ab());this.Ha(a.$a());this.Ja(a.ld());this.Ga(a.Ob())}else if(a&&(b=String(a).match(ih()))){this.Ka(b[1],true);this.La(b[2],true);this.Fa(b[3],true);this.Ia(b[4]);this.Ha(b[5],true);this.Ja(b[6]);this.Ga(b[7],true)}else{this.v=new N(null,this)}};m.prototype.w="";m.prototype.ea=
"";m.prototype.H="";m.prototype.K=null;m.prototype.J="";m.prototype.v=null;m.prototype.I="";m.prototype.toString=function(){if(this.j){return this.j}var a=[];if(this.w){a.push(Ec(this.w,ae),":")}if(this.H){a.push("//");if(this.ea){a.push(Ec(this.ea,ae),"@")}a.push($d(this.H));if(this.K!=null){a.push(":",String(this.ab()))}}if(this.J){a.push(Ec(this.J,jh))}var b=String(this.v);if(b){a.push("?",b)}if(this.I){a.push("#",$d(this.I))}return this.j=a.join("")};m.prototype.resolve=function(a){var b=this.clone(),
c=a.Bd();if(c){b.Ka(a.Xb())}else{c=a.Cd()}if(c){b.La(a.Zb())}else{c=a.wd()}if(c){b.Fa(a.Lb())}else{c=a.zd()}var d=a.$a();if(c){b.Ia(a.ab())}else{c=a.yd();if(c){if(!/^\//.test(d)){d=b.$a().replace(/\/?[^\/]*$/,"/"+d)}}}if(c){b.Ha(d)}else{c=a.Ad()}if(c){b.Ja(a.kd())}else{c=a.xd()}if(c){b.Ga(a.Ob())}return b};m.prototype.clone=function(){return new gh(this.w,this.ea,this.H,this.K,this.J,this.v,this.I)};m.prototype.Xb=function(){return this.w};m.prototype.Ka=function(a,b){delete this.j;this.w=b?yb(a):
a;if(this.w){this.w=this.w.replace(/:$/,"")}return this};m.prototype.Bd=function(){return!(!this.w)};m.prototype.Zb=function(){return this.ea};m.prototype.La=function(a,b){delete this.j;this.ea=b?yb(a):a;return this};m.prototype.Cd=function(){return!(!this.ea)};m.prototype.Lb=function(){return this.H};m.prototype.Fa=function(a,b){delete this.j;this.H=b?yb(a):a;return this};m.prototype.wd=function(){return!(!this.H)};m.prototype.ab=function(){return this.K};m.prototype.Ia=function(a){delete this.j;
if(a){a=Number(a);if(isNaN(a)||a<0){throw Error("Bad port number "+a);}this.K=a}else{this.K=null}return this};m.prototype.zd=function(){return this.K!=null};m.prototype.$a=function(){return this.J};m.prototype.Ha=function(a,b){delete this.j;this.J=b?yb(a):a;return this};m.prototype.yd=function(){return!(!this.J)};m.prototype.Ad=function(){return this.v!==null&&this.v.toString()!==""};m.prototype.Ja=function(a){delete this.j;if(a instanceof N){this.v=a;this.v.d=this}else{this.v=new N(a,this)}return this};
m.prototype.kd=function(){return this.v.toString()};m.prototype.ld=function(){return this.v};m.prototype.G=function(a,b){delete this.j;this.v.set(a,b);return this};m.prototype.ze=function(a,b){delete this.j;if(!ta(b)){b=[String(b)]}this.v.Fe(a,b);return this};m.prototype.Ob=function(){return this.I};m.prototype.Ga=function(a,b){delete this.j;this.I=b?yb(a):a;return this};m.prototype.xd=function(){return!(!this.I)};m.parse=function(a){return a instanceof m?a.clone():new m(a)};var gh=m.create=function(a,
b,c,d,e,f,h){var i=new m;i.Ka(a);i.La(b);i.Fa(c);i.Ia(d);i.Ha(e);i.Ja(f);i.Ga(h);return i};m.resolve=function(a,b){if(!(a instanceof m)){a=m.parse(a)}if(!(b instanceof m)){b=m.parse(b)}return a.resolve(b)};var yb=m.hf=function(a){return a?cd(a):""},$d=m.lf=function(a){if(G(a)){return encodeURIComponent(a)}return null},Ec=m.kf=function(a,b){if(G(a)){return encodeURI(a).replace(b,hh)}return null},hh=m.jf=function(a){var b=a.charCodeAt(0);return"%"+(b>>4&15).toString(16)+(b&15).toString(16)},Fc=m.je=
null,ih=m.vf=function(){if(!Fc){Fc=(m.je=/^(?:([^:\/?#]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/?#:@]*)(?::([0-9]+))?)?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/)}return Fc},ae=m.Pf=/[#\/\?@]/g,jh=m.Of=/[\#\?]/g,N=m.QueryData=function(a,b){this.k=new w;this.d=b;if(a){var c=a.split("&");for(var d=0;d<c.length;d++){var e=c[d].split("=");this.add(cd(e[0]),e.length>1?cd(e[1]):"")}}};N.prototype.l=0;N.prototype.m=function(){return this.l};N.prototype.add=function(a,b){this.la();if(!this.p(a)){this.k.set(a,[b])}else{this.k.get(a).push(b)}this.l++;
return this};N.prototype.remove=function(a){if(this.k.p(a)){this.la();this.l-=this.k.get(a).length;return this.k.remove(a)}return false};N.prototype.clear=function(){this.la();this.k.clear();this.l=0};N.prototype.D=function(){return this.l==0};N.prototype.p=function(a){return this.k.p(a)};N.prototype.Ra=function(a){var b=this.n();return Oa(b,a)};N.prototype.C=function(){var a=this.k.n(),b=this.k.C(),c=[];for(var d=0;d<b.length;d++){for(var e=0;e<a[d].length;e++){c.push(b[d])}}return c};N.prototype.n=
function(a){if(a){if(this.p(a)){return this.k.get(a)}else{return[]}}else{var b=this.k.n();return Array.prototype.concat.apply([],b)}};N.prototype.set=function(a,b){this.la();if(this.p(a)){var c=this.k.get(a);this.l-=c.length}this.k.set(a,[b]);this.l++;return this};N.prototype.get=function(a,b){if(this.p(a)){return this.k.get(a)[0]}else{return b}};N.prototype.Fe=function(a,b){this.la();if(this.p(a)){var c=this.k.get(a);this.l-=c.length}if(b.length>0){this.k.set(a,b);this.l+=b.length}};N.prototype.toString=
function(){if(this.j){return this.j}var a=[],b=this.C(),c=this.n();for(var d=0;d<b.length;d++){a.push(encodeURIComponent(b[d])+"="+encodeURIComponent(c[d]))}return this.j=a.join("&")};N.prototype.la=function(){delete this.j;if(this.d){delete this.d.j}};n("goog.debug");var T=goog.debug;k("goog.array");k("goog.string");T.catchErrors=function(a,b,c){var d=a||Ic(),e=c||goog.global,f=e.onerror;e.onerror=function(h,i,j){if(f){f(h,i,j)}var l=String(i).split(/[\/\\]/).pop();d.severe("Error: "+h+" ("+l+" @ Line: "+j+")");return Boolean(b)}};T.expose=function(a){if(a==null)return"NULL";var b=[];for(var c in a){var d=c+" = ";try{d+=a[c]}catch(e){d+="*** "+e+" ***"}b.push(d)}return b.join("\n")};var wh=T.exposeArray=function(a){var b=[];for(var c=0;c<a.length;c++){if(ta(a[c])){b.push(wh(a[c]))}else{b.push(a[c])}}return"[ "+
b.join(", ")+" ]"},xh=T.exposeException=function(a,b){var c=Ah(a),d="Message: "+ka(c.message)+'\nUrl: <a href="view-source:'+c.filename+'" target="_new">'+c.fileName+"</a>\nLine: "+c.lineNumber+"\n\nBrowser stack:\n"+ka(c.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+ka(ke(b||arguments.callee)+"-> ");return d},Ah=T.normalizeErrorObject=function(a){return typeof a=="string"?{message:a,name:"Unknown error",lineNumber:"Not available",fileName:goog.global.document.location.href,stack:"Not available"}:
(!a.lineNumber||!a.fileName||!a.stack?{message:a.message,name:a.name,lineNumber:"Not available",fileName:goog.global.document.location.href,stack:"Not available"}:a)},vh=T.MAX_STACK_DEPTH=50,ke=T.getStacktrace=function(a,b){var c="",d=b||[];if(Oa(d,a)){c+="[...circular reference...]"}else if(a&&d.length<vh){c+=zh(a)+"(";var e=a.arguments;for(var f=0;f<e.length;f++){if(f>0){c+=", "}var h=typeof e[f]=="object"&&e[f].toSource?e[f].toSource():String(e[f]);if(h.length>40){h=h.substr(0,40)+"..."}c+=h}d.push(a);
c+=")\n"+ke(a.caller,d)}else if(a){c+="[...long stack...]"}else{c+="[end]"}return c},zh=T.getFunctionName=function(a){if(!ac[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,".")}ac[a]=c}else{ac[a]="[Anonymous]"}}return ac[a]},yh=T.rf=function(a,b,c,d){if(document.all){return""}var e=b||goog.global,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]!=goog.global&&e[i]!=goog.global.document&&e.hasOwnProperty(i)&&h<6){var j=yh(a,e[i],f+i+".",h+1);if(j)return j}}return""},ac=T.of={};n("goog.debug.Logger");K=goog.debug.Logger;n("goog.debug.LogManager");hb=goog.debug.LogManager;k("goog.debug");k("goog.debug.LogRecord");var K=T.Logger=function(a){this.oa=a;this.t=null;this.Oc={};this.$=[]};K.prototype.ba=null;var M=K.Level=function(a,b){this.name=a;this.value=b};M.OFF=new M("OFF",Number.INFINITY);var uh=M.SHOUT=new M("SHOUT",1200),he=M.SEVERE=new M("SEVERE",1000),ie=M.WARNING=new M("WARNING",900),ge=M.INFO=new M("INFO",800),th=M.CONFIG=new M("CONFIG",700),fe=M.FINE=new M("FINE",
500);M.FINER=new M("FINER",400);M.FINEST=new M("FINEST",300);M.ALL=new M("ALL",0);var je=K.getLogger=function(a){return ee(a)};K.prototype.Ub=function(){return this.oa};K.prototype.Gc=function(a){this.$.push(a)};K.prototype.ne=function(a){for(var b=0;b<this.$.length;b++){if(this.$[b]==a){this.$.splice(b,1);return true}}return false};K.prototype.xa=function(){return this.t};K.prototype.sc=function(a){this.ba=a};K.prototype.db=function(a){if(this.ba){return a.value>=this.ba.value}if(this.t){return this.t.db(a)}return false};
K.prototype.log=function(a,b,c){if(!this.db(a)){return}var d=new ba(a,String(b),this.oa);if(c){d.we(c);d.xe(xh(c,arguments.callee.caller))}this.Td(d)};K.prototype.severe=function(a,b){this.log(he,a,b)};K.prototype.warning=function(a,b){this.log(ie,a,b)};K.prototype.info=function(a,b){this.log(ge,a,b)};K.prototype.fine=function(a,b){this.log(fe,a,b)};K.prototype.Td=function(a){if(!this.db(a.Qb())){return}var b=this;while(b){b.Mc(a);b=b.xa()}};K.prototype.Mc=function(a){for(var b=0;b<this.$.length;b++){this.$[b](a)}};
K.prototype.Ae=function(a){this.t=a};K.prototype.Ec=function(a,b){this.Oc[a]=b};var hb=T.LogManager={},Jc=hb.Lf={},Kc=hb.Qf=new K("");Jc[""]=Kc;Kc.sc(th);var Ic=hb.getRoot=function(){return Kc},ee=hb.getLogger=function(a){var b=Jc[a];if(b==null){b=sh(a)}return b},sh=hb.gf=function(a){var b=new K(a),c=a.split("."),d=c[c.length-1];c.length=c.length-1;var e=c.join("."),f=ee(e);f.Ec(d,b);b.Ae(f);Jc[a]=b;return b};n("goog.debug.LogRecord");ba=goog.debug.LogRecord;var ba=T.LogRecord=function(a,b,c){this.Rf=goog.debug.LogRecord.ae++;this.Ie=Pe();this.ba=a;this.Yd=b;this.Ud=c};ba.prototype.Hb=null;ba.prototype.Gb=null;ba.ae=0;ba.prototype.Rb=function(){return this.Ud};ba.prototype.Wc=function(){return this.Hb};ba.prototype.we=function(a){this.Hb=a};ba.prototype.Xc=function(){return this.Gb};ba.prototype.xe=function(a){this.Gb=a};ba.prototype.Qb=function(){return this.ba};ba.prototype.sc=function(a){this.ba=a};
ba.prototype.Sb=function(){return this.Yd};ba.prototype.Tb=function(){return this.Ie};n("goog.debug.Formatter");ia=goog.debug.Formatter;n("goog.debug.HtmlFormatter");Hc=goog.debug.HtmlFormatter;n("goog.debug.TextFormatter");$b=goog.debug.TextFormatter;var ia=T.Formatter=function(a){this.mc=a||"";this.oc=Pe()};ia.prototype.ob=true;ia.prototype.vc=true;ia.prototype.uc=true;ia.prototype.wa=function(a){throw Error("Must override formatRecord");};var ce=ia.sf=function(a){var b=new Date(a.Tb());return Va(b.getFullYear()-2000)+Va(b.getMonth()+1)+Va(b.getDate())+" "+Va(b.getHours())+":"+Va(b.getMinutes())+
":"+Va(b.getSeconds())+"."+Va(Math.floor(b.getMilliseconds()/10))},Va=ia.zf=function(a){if(a<10){return"0"+a}return String(a)},de=ia.xf=function(a,b){var c=a.Tb()-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},Hc=T.HtmlFormatter=function(a){ia.call(this,a)};Hc.inherits(ia);Hc.prototype.wa=function(a){var b;switch(a.Qb()){case uh:b="dbg-sh";break;case he:b="dbg-sev";break;case ie:b="dbg-w";break;case ge:b="dbg-i";break;case fe:default:b="dbg-f";
break}var c=[];c.push(this.mc);c.push(" ");if(this.ob){c.push("["+ce(a)+"] ")}if(this.vc){c.push("[");c.push(dd(de(a,this.oc)));c.push("s] ")}if(this.uc){c.push("[");c.push(ka(a.Rb()));c.push("] ")}c.push('<span class="'+b+'">');c.push(ad(dd(ka(a.Sb()))));if(a.Wc()){c.push("<br>");c.push(ad(dd(a.Xc())))}c.push("</span><br>");return c.join("")};var $b=T.TextFormatter=function(a){ia.call(this,a)};$b.inherits(ia);$b.prototype.wa=function(a){var b=[];b.push(this.mc);b[b.length]=" ";if(this.ob){b.push("[");
b.push(ce(a));b.push("] ")}if(this.vc){b.push("[");b.push(de(a,this.oc));b.push("s] ")}if(this.uc){b.push("["+a.Rb()+"] ")}b.push(a.Sb());b.push("\n");return b.join("")};n("goog.debug.Console");Ea=goog.debug.Console;k("goog.debug.Logger");k("goog.debug.Formatter");var Ea=T.Console=function(){this.nc=this.de.bind(this);this.Xa=new $b;this.Xa.ob=false;this.Kd=false;this.kc=""};Ea.prototype.ve=function(a){if(a==this.Kd){return}if(a){Ic().Gc(this.nc)}else{Ic().ne(this.nc);this.logBuffer=""}};Ea.prototype.de=function(a){if(window.console){window.console.log(this.Xa.wa(a))}else{this.kc+=this.Xa.wa(a)}};var Gc=Ea.instance=null;Ea.autoInstall=function(){if(!Ea.bc){Gc=(Ea.instance=
new Ea)}if(document.location.href.indexOf("Debug=true")!=-1){Gc.ve(true)}};Ea.show=function(){alert(Gc.kc)};n("goog.ds.BasicNodeList");Z=goog.ds.BasicNodeList;n("goog.ds.DataNode");na=goog.ds.DataNode;n("goog.ds.DataNodeList");Cb=goog.ds.DataNodeList;n("goog.ds.EmptyNodeList");Wa=goog.ds.EmptyNodeList;n("goog.ds.LoadState");Db=goog.ds.LoadState;n("goog.ds.logger");U=goog.ds.logger;n("goog.ds.Util");var di=goog.ds.Util;k("goog.structs.Map");k("goog.debug.Logger");var na=goog.ds.DataNode=function(){};na.prototype.get=function(){};na.prototype.set=function(a){};na.prototype.r=function(a){};na.prototype.o=
function(a){};na.prototype.B=function(a){};na.prototype.e=function(){};na.prototype.mb=function(a){};na.prototype.ia=function(){};na.prototype.load=function(){this.Xf("load")};var Db=goog.ds.LoadState={LOADED:"LOADED",LOADING:"LOADING",FAILED:"FAILED",NOT_LOADED:"NOT_LOADED"},Cb=goog.ds.DataNodeList=function(){},gc=Db.FAILED,Rc=Db.LOADED,xe=Db.LOADING,Eb=Db.NOT_LOADED;Cb.prototype.add=function(a){};Cb.prototype.get=function(a){};Cb.prototype.P=function(a){};Cb.prototype.m=null;var Z=goog.ds.BasicNodeList=
function(a){this.b=new w;this.gb=[];if(a){for(var b=0,c;c=a[b];b++){this.add(c)}}};Z.prototype.add=function(a){this.gb.push(a);var b=a.e();if(b!=null)this.b.set(b,a)};Z.prototype.get=function(a){return this.b.get(a)||null};Z.prototype.P=function(a){return this.gb[a]||null};Z.prototype.m=function(){return this.gb.length};var Wa=goog.ds.EmptyNodeList=function(){Z.call(this)};Wa.inherits(Z);Wa.prototype.add=function(a){throw Error("Can't add to EmptyNodeList");};var ye=goog.ds.Bc="@",$h=goog.ds.STR_ALL_CHILDREN_SELECTOR=
"*",ci=goog.ds.STR_WILDCARD="*",bi=goog.ds.STR_PATH_SEPARATOR="/",ai=goog.ds.STR_ARRAY_START="[",U=goog.ds.logger=je("goog.ds");di.makeReferenceNode=function(a,b){var c=function(){};c.prototype=a;var d=new c;d.e=function(){return b};return d};n("goog.ds.DataManager");Q=goog.ds.DataManager;k("goog.ds.BasicNodeList");k("goog.ds.DataNode");k("goog.ds.Expr");k("goog.structs.Map");k("goog.structs.Set");k("goog.string");var Q=goog.ds.DataManager=function(){this.Y=new Z;this.vb=new w;this.hb={};this.Ca={};this.sb={}},Oc=Q.bc=null;Q.inherits(na);var ma=Q.getInstance=function(){if(!Oc){Oc=(Q.bc=new Q)}return Oc};Q.prototype.Fc=function(a,b,c){var d=!(!b),e=c||a.e();if(!Jb(e,"$")){e="$"+e}a.mb(e);this.Y.add(a);this.vb.set(e,d)};Q.prototype.Ya=function(a){if(this.sb[a]){return this.sb[a].dd()}else{return this.Y.get(a)}};
Q.prototype.get=function(){return this.Y};Q.prototype.set=function(a){throw Error("Can't set on DataManager");};Q.prototype.r=function(a){if(a){return new Z([this.o(a)])}else{return this.Y}};Q.prototype.o=function(a){return this.Ya(a)};Q.prototype.B=function(a){var b=this.Ya(a);return b?b.get():null};Q.prototype.e=function(){return""};Q.prototype.ia=function(){return""};Q.prototype.load=function(){var a=this.Y.m();for(var b=0;b<a;b++){var c=this.Y.P(b),d=this.vb.get(c.e());if(d){c.load()}}};Q.prototype.Ic=
function(a,b,c){var d=0;if(ab(b,"/...")){d=1000;b=b.substring(0,b.length-4)}else if(ab(b,"/*")){d=1;b=b.substring(0,b.length-2)}var e=b+":"+c+":"+fa(a),f={dataPath:b,id:c,fn:a},h=Ha(b),i=fa(a);if(!this.Ca[i]){this.Ca[i]={}}this.Ca[i][e]={listener:f,items:[]};while(h){var j={listener:f,maxAncestors:d},l=this.hb[h.qb];if(l==null){l={};this.hb[h.qb]=l}l[e]=j;d=0;h=h.xa();this.Ca[i][e].items.push({key:e,obj:l})}};Q.prototype.ha=function(a){var b,c=Ha(a),d=0;while(c){var e=this.hb[c.qb];if(e){Kb(e,function(f,
h){b=f.listener;if(d<=f.maxAncestors){b.fn(a,b.id)}})}d++;c=c.xa()}};n("goog.ds.Expr");s=goog.ds.Expr;k("goog.string");var s=goog.ds.Expr=function(a){if(a){this.tc(a)}};s.prototype.tc=function(a,b,c,d){this.qb=a;if(!c&&!d){if(ab(a,Vh)){this.Nc=true;a=a.substring(0,a.length-1)}if(ab(a,"()")){if(ab(a,ve)||ab(a,ue)||ab(a,we)){var e=a.lastIndexOf(Zh);if(e!=-1){this.Wa=a.substring(e+1);a=a.substring(0,e)}else{this.Wa=a;a=Pc}if(this.Wa==goog.ds.Le){this.Md=true}}}}this.T=b||a.split("/");this.z=this.T.length;this.Qd=this.T[this.z-1];this.a=this.T[0];if(this.z==1){this.ra=
this;this.ma=Jb(a,"$");var f=this.a.indexOf(Yh);if(f!=-1){this.aa=true;this.ja=Number(this.a.substring(f+1,this.a.indexOf(Xh)));this.a=this.a.substring(0,f)}}else{this.ra=Qc(this.a,null,this,null);this.ma=this.ra.ma;this.aa=this.ra.aa;this.ja=this.ra.ja;this.a=this.ra.a}if(this.z==1&&!this.ma){this.Nd=a==Pc||a==Wh;this.Od=Jb(a,Uh);this.Id=a==se;this.Hd=a==re;this.Jd=a==te}};s.prototype.xa=function(){if(!this.fe){if(this.z>1){this.ge=Qc(null,this.T.slice(0,this.T.length-1),this,null)}this.fe=true}return this.ge};
s.prototype.Vb=function(){if(!this.Zd){if(this.z>1){this.$d=Qc(null,this.T.slice(1),null,this)}this.Zd=true}return this.$d};s.prototype.qd=function(a){if(a==null){a=ma()}else if(this.ma){a=a.getDataRoot?a.getDataRoot():ma()}if(this.z==1){return a.B(this.a)}else if(this.z==0){return a.get()}if(this.Md){var b=this.ed(a);return b.m()}var c=a.o(this.a);if(this.aa&&c){c=c.r().P(this.ja)}if(c==null){return null}else{return this.Vb().qd(c)}};s.prototype.ed=function(a){return this.Za(a,false)};s.prototype.dd=
function(a){return this.Za(a,true)};s.prototype.Za=function(a,b){if(a==null){a=ma()}else if(this.ma){a=a.getDataRoot?a.getDataRoot():ma()}if(this.z==0&&b){return a}else if(this.z==0&&!b){return new Z([a])}else if(this.z==1&&this.aa){var c=a.o(this.a),d=c.r().P(this.ja);if(b){return d}else{return new Z([d])}}else if(this.z==1&&!this.aa){if(b){return a.o(this.a)}else{return a.r(this.a)}}else{var e=a.o(this.a);if(this.aa&&e){e=e.r().P(this.ja)}if(e==null&&b){return null}else if(e==null&&!b){return new Wa}return this.Vb().Za(e,
b)}};s.prototype.Nc=false;s.prototype.T=[];s.prototype.z=null;s.prototype.a=null;s.prototype.Qd=null;s.prototype.Nd=false;s.prototype.Od=false;s.prototype.Id=false;s.prototype.Hd=false;s.prototype.Jd=false;s.prototype.Wa=null;var Ha=s.create=function(a){var b=fc[a];if(b==null){b=new s(a);fc[a]=b}return b},Qc=s.ef=function(a,b,c,d){var e=a||b.join("/"),f=fc[e];if(f==null){f=new s;f.tc(e,b,c,d);fc[e]=f}return f},fc=s.af={},Zh=s.Ze="/",Pc=s.Te=".",Wh=s.Ue="",Uh=s.Bc="@",se=s.Pe="*|text()",re=s.Oe="@*",
te=s.Qe="*",ve=s.Xe="name()",ue=s.Se="count()",we=s.Ye="position()",Yh=s.We="[",Xh=s.Ve="]",Vh=s.Re="?";s.CURRENT=Ha(Pc);s.ALL_CHILD_NODES=Ha(se);s.ALL_ELEMENTS=Ha(te);s.ALL_ATTRIBUTES=Ha(re);s.NAME=Ha(ve);s.COUNT=Ha(ue);s.POSITION=Ha(we);n("goog.dom.xml");var Bb=goog.dom.xml;Bb.createDocument=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(Lc,a,b||""))}return c}}throw Error("Your browser does not support creating new documents");};
var Th=Bb.loadXml=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}};Bb.selectSingleNode=function(a,b){if(typeof a.selectSingleNode!="undefined"){var c=Fa(a);if(typeof c.setProperty!="undefined"){c.setProperty("SelectionLanguage","XPath")}return a.selectSingleNode(b)}else if(document.implementation.hasFeature("XPath","3.0")){var c=Fa(a),d=c.createNSResolver(c.documentElement),
e=c.evaluate(b,a,d,XPathResult.FIRST_ORDERED_NODE_TYPE,null);return e.singleNodeValue}};Bb.selectNodes=function(a,b){if(typeof a.selectNodes!="undefined"){var c=Fa(a);if(typeof c.setProperty!="undefined"){c.setProperty("SelectionLanguage","XPath")}return a.selectNodes(b)}else if(document.implementation.hasFeature("XPath","3.0")){var c=Fa(a),d=c.createNSResolver(c.documentElement),e=c.evaluate(b,a,d,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),f=[],h=e.snapshotLength;for(var i=0;i<h;i++){f.push(e.snapshotItem(i))}return f}else{return[]}};n("goog.net.XmlHttp");Pa=goog.net.XmlHttp;var Pa=goog.net.XmlHttp=function(){if(Pa.bb){return new ActiveXObject(Pa.bb)}else{return new XMLHttpRequest}},Ib=Pa.ReadyState={},zi=Ib.UNINITIALIZED=0;Ib.LOADING=1;var Oe=Ib.LOADED=2;Ib.INTERACTIVE=3;var Zc=Ib.COMPLETE=4;(function(){if(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);
Pa.bb=c;break}catch(d){}}if(!Pa.bb){throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}}})();n("goog.ds.XmlDataSource");L=goog.ds.XmlDataSource;n("goog.ds.XmlHttpDataSource");Xa=goog.ds.XmlHttpDataSource;k("goog.dom");k("goog.dom.xml");k("goog.ds.BasicNodeList");k("goog.ds.DataManager");k("goog.ds.LoadState");k("goog.ds.logger");k("goog.net.XmlHttp");k("goog.string");k("goog.Uri");var L=goog.ds.XmlDataSource=function(a,b,c){this.t=b;this.A=c||(a?a.nodeName:null);this.ye(a)},ei=L.Ke="@*";L.prototype.ye=function(a){this.F=a;if(a!=null){switch(a.nodeType){case Fh:case Ab:this.rb=a.nodeValue;
break;case Lc:if(a.childNodes.length==1&&a.firstChild.nodeType==Ab){this.rb=a.firstChild.nodeValue}}}};L.prototype.va=function(){if(this.u){return}var a=new Z;if(this.F!=null){var b=this.F.childNodes;for(var c=0,d;d=b[c];c++){if(d.nodeType!=Ab||!fi(d.nodeValue)){var e=new L(d,this,d.nodeName);a.add(e)}}}this.u=a};L.prototype.Qc=function(){if(this.ub){return}var a=new Z;if(this.F!=null&&this.F.attributes!=null){var b=this.F.attributes;for(var c=0,d;d=b[c];c++){var e=new L(d,this,d.nodeName);a.add(e)}}this.ub=
a};L.prototype.get=function(){this.va();return this.rb!=null?this.rb:this.u};L.prototype.set=function(a){throw Error("Can't set on XmlDataSource yet");};L.prototype.r=function(a){if(a&&a==ei){this.Qc();return this.ub}else if(a==null){this.va();return this.u}else{throw new Error("Unsupported selector");}};L.prototype.o=function(a){if(Jb(a,ye)){var b=this.F.getAttributeNode(a.substring(1));return b?new L(b,this):null}else{return this.r().get(a)}};L.prototype.B=function(a){if(Jb(a,ye)){return this.F.getAttributeNode(a.substring(1)).nodeValue}else{var b=
this.o(a);return b?b.get():null}};L.prototype.e=function(){return this.A};L.prototype.mb=function(a){this.A=a};L.prototype.ia=function(){throw Error("Can't getDataPath on XmlDataSource yet");};L.prototype.load=function(){};var fi=L.Ef=function(a){return/^[\r\n\t ]*$/.test(a)},Sc=L.df=function(){return Bb.createDocument("nothing")},Xa=goog.ds.XmlHttpDataSource=function(a,b){L.call(this,null,null,b);if(a){this.d=new m(a)}else{this.d=null}};Xa.inherits(L);Xa.prototype.s=Eb;Xa.prototype.load=function(){if(this.d){U.info("Sending XML request for DataSource "+
this.e()+" to "+this.d);this.s=xe;this.Sd=new Ya(this.d,da(this.Ge,this),da(this.Tc,this))}else{this.F=Sc();this.s=Eb}};Xa.prototype.Ge=function(){U.info("Got data for DataSource "+this.e());var a=this.Sd.md(),b=a.responseXML;if(b&&!b.hasChildNodes()&&ua(a.responseText)){b=Th(a.responseText)}if(!b||!b.hasChildNodes()){this.s=gc;this.F=Sc()}else{this.s=Rc;this.F=b.documentElement}if(this.e()){ma().ha(this.e())}};Xa.prototype.Tc=function(){U.info("Data retrieve failed for DataSource "+this.e());this.s=
gc;this.F=Sc();if(this.e()){ma().ha(this.e())}};var Ya=goog.ds.$e=function(a,b,c){this.W=null;this.ce=b;this.lc=c||this.ud;this.d=new m(a);this.Rd()};Ya.prototype.Rd=function(){this.W=new Pa;if(this.W){try{this.W.onreadystatechange=da(this.kb,this);this.W.open("GET",String(this.d),true);this.W.send(null)}catch(a){this.lc.call(this)}}};Ya.prototype.kb=function(){var a=this.W,b=a.readyState;if(b==Zc){var c=a.status,d;if(c==200||c==0){d=da(this.jb,this)}else{d=da(this.be,this)}window.setTimeout(d,10)}};
Ya.prototype.jb=function(){this.ce(this)};Ya.prototype.be=function(){this.lc(this)};Ya.prototype.ud=function(){throw Error("Error fetching data from URL: "+this.d);};Ya.prototype.md=function(){return this.W};n("goog.net.Events");$a=goog.net.Events;var $a=goog.net.Events={COMPLETE:"complete",SUCCESS:"success",ERROR:"error",ABORT:"abort",READY:"ready",READY_STATE_CHANGE:"readystatechange"},wi=$a.ABORT,Hb=$a.COMPLETE,Me=$a.ERROR,Ne=$a.READY,xi=$a.READY_STATE_CHANGE,yi=$a.SUCCESS;n("goog.Disposable");Da=goog.Disposable;n("goog.dispose");var Da=goog.Disposable=function(){};Da.prototype.Ta=false;Da.prototype.Z=function(){return this.Ta};var fh=Da.prototype.dispose=function(){if(!this.Ta){this.Ta=true}};goog.dispose=function(a){if(typeof a.dispose=="function"){a.dispose()}};n("goog.events");var u=goog.events;k("goog.events.BrowserEvent");k("goog.events.EventWrapper");k("goog.events.Listener");k("goog.array");k("goog.userAgent");var ra=u.Kf={},ea=u.Mf={},ja=u.listen=function(a,b,c,d,e){if(ta(b)){for(var f=0;f<b.length;f++){ja(a,b[f],c,d,e)}return null}var h=mb(b),i=hc(a,h,c,d,e);if(i in ra){return i}var j=fa(a);if(!(j in ea)){ea[j]={}}if(!(h in ea[j])){ea[j][h]=[]}ea[j][h].push(i);var l=ii.bind(a,i,b),r=new Tc(c,l,a,b,d,e);ra[i]=r;if(b instanceof lb){b.Jc(r)}else{if(a.addEventListener){if(a==
goog.global||!a.Db){a.addEventListener(b,l,d)}}else if(a.attachEvent){a.attachEvent("on"+b,l)}else{throw Error("Object {"+a+"} does not support event listeners.");}}return i},nb=u.unlisten=function(a,b,c,d,e){if(ta(b)){for(var f=0;f<b.length;f++){nb(a,b[f],c,d,e)}return null}var h=hc(a,b,c,d,e);return Vc(h)},Vc=u.unlistenByKey=function(a){if(!(a in ra)){return false}var b=ra[a],c=b.src,d=b.type,e=b.proxy;if(d instanceof lb){d.me(b)}else{if(c.removeEventListener){if(c==goog.global||!c.Db){c.removeEventListener(d,
e,b.capture)}}else if(c.detachEvent){c.detachEvent("on"+d,e)}}delete ra[a];var f=mb(d);v.remove(ea[fa(c)][f],a);return true},mi=u.removeAll=function(a,b,c){var d=0;if(a){var e=gi(a,b,c);for(var f=0;f<e.length;f++){var h=e[f];if(h){Vc(hc(h.src,h.type,h.listener,h.capture,h.handler));d++}}}else{for(var i in ra){Vc(i);d++}}return d},gi=u.qf=function(a,b,c){var d=fa(a),e=[];if(d in ea){var f=ea[d];if(b){var h=mb(b);if(b in f){ze(e,f[h],c)}}else{for(var i in f){ze(e,f[i],c)}}}return e},mb=u.Af=function(a){return a instanceof
lb?fa(a):a},ze=u.pf=function(a,b,c){var d=!F(c);for(var e=0;e<b.length;e++){var f=b[e],h=ra[f];if(d||h.capture==c){a.push(h)}}},hi=u.getListeners=function(a,b,c){var d=fa(a),e=[];if(d in ea){var f=ea[d],h=mb(b);if(h in f){var i=f[h];for(var j=0;j<i.length;j++){var l=ra[i[j]];if(l.capture==c){e.push(l)}}}}return e};u.hasListener=function(a,b,c){var d=fa(a);if(d in ea){var e=ea[d],f=mb(b);if(f in e){var h=e[f];for(var i=0;i<h.length;i++){var j=ra[h[i]];if(j.capture==c){return true}}}}return false};
u.expose=function(a){var b=[];for(var c in a){if(a[c]&&a[c].id){b.push(c+" = "+a[c]+" ("+a[c].id+")")}else{b.push(c+" = "+a[c])}}return b.join("\n")};u.types={CLICK:"click",DBLCLICK:"dblclick",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEMOVE:"mousemove",KEYPRESS:"keypress",KEYDOWN:"keydown",KEYUP:"keyup",BLUR:"blur",FOCUS:"focus",FOCUSIN:document.all?"focusin":"DOMFocusIn",FOCUSOUT:document.all?"focusout":"DOMFocusOut",CHANGE:"change",SELECT:"select",SUBMIT:"submit",
LOAD:"load",UNLOAD:"unload",HELP:"help",RESIZE:"resize",SCROLL:"scroll",READYSTATECHANGE:"readystatechange"};var ii=u.Bf=function(a,b){var c=v.slice(arguments,2),d=ra[a];if(!d.src.addEventListener&&!ki(d)){return undefined}if(c.length==0&&window.event||c.length==1&&li(c[0])){var e=c[0]||window.event,f=new Za(e,this);try{f.stopPropagation();f.U=false;var h=[];for(var i=f.currentTarget;i;i=i.parentNode){h.push(i)}var j=true;for(var l=h.length-1;!f.U&&l>=0;l--){f.currentTarget=h[l];j&=ic(h[l],b,true,
[f])}for(var l=0;!f.U&&l<h.length;l++){f.currentTarget=h[l];j&=ic(h[l],b,false,[f])}return j}finally{f.dispose()}}else if(c.length==1&&ji(c[0])){var r=c[0]=new Za(c[0],this);try{return Uc(d,c)}finally{r.dispose()}}else{return Uc(d,c)}},ki=u.Ff=function(a){var b=hc(a.src,a.type,a.listener,a.capture,a.handler),c=fa(a.src);return ea[c][a.type][0]==b},ic=u.fireListeners=function(a,b,c,d){var e=hi(a,b,c),f=1;for(var h=0;h<e.length;h++){f&=Uc(e[h],d)!==false}return Boolean(f)},Uc=u.nf=function(a,b){return a.Aa.apply(a,
b)},hc=u.ff=function(a,b,c,d,e){return fa(a)+"_"+mb(b)+"_"+fa(c)+"_"+Boolean(d)+"_"+(e?fa(e):"")},ji=u.Df=function(a){return ua(a)&&/event/i.test(a)},li=u.Gf=function(a){return ua(a)&&F(a.srcElement)&&F(a.cancelBubble)&&F(a.type)&&!A.SAFARI};u.Cf=function(a){throw a;};n("goog.events.EventWrapper");lb=goog.events.EventWrapper;var lb=u.EventWrapper=function(){};lb.prototype.Jc=function(a){throw Error("Not implemented");};lb.prototype.me=function(a){throw Error("Not implemented");};n("goog.events.Event");Ia=goog.events.Event;k("goog.Disposable");var Ia=u.Event=function(a,b){this.type=a;this.target=b;this.currentTarget=this.target};Ia.inherits(Da);Ia.prototype.U=false;Ia.prototype.Da=true;Ia.prototype.stopPropagation=function(){this.U=true};Ia.prototype.preventDefault=function(){this.Da=false};n("goog.events.BrowserEvent");Za=goog.events.BrowserEvent;k("goog.events.Event");var Za=u.BrowserEvent=function(a,b){this.type=a.type;this.timestamp=new Date;this.target=a.target||a.srcElement;this.currentTarget=b;this.relatedTarget=null;if(F(a.relatedTarget)){this.relatedTarget=a.relatedTarget}else if(this.type==u.types.MOUSEOVER){this.relatedTarget=a.fromElement}else if(this.type==u.types.MOUSEOUT){this.relatedTarget=a.toElement}this.offsetX=F(a.layerX)?a.layerX:a.offsetX;this.offsetY=F(a.layerY)?
a.layerY:a.offsetY;this.clientX=F(a.clientX)?a.clientX:a.pageX;this.clientY=F(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==u.types.KEYPRESS?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.O=a};Za.inherits(Ia);Za.prototype.stopPropagation=function(){this.U=true;if(this.O.stopPropagation){this.O.stopPropagation()}else{this.O.cancelBubble=true}};
Za.prototype.preventDefault=function(){this.Da=false;if(!this.O.preventDefault){this.O.returnValue=false}else{this.O.preventDefault()}};Za.prototype.dispose=function(){if(!this.Z()){Ia.prototype.dispose.call(this);this.O=null}};n("goog.events.Listener");Tc=goog.events.Listener;var Tc=u.Listener=function(a,b,c,d,e,f){if(mc(a)){this.cc=true}else if(typeof a.Aa=="function"){this.cc=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};Tc.prototype.Aa=function(){if(this.cc){return this.listener.apply(this.handler||this.src,arguments)}return this.listener.Aa.apply(this.listener,arguments)};n("goog.events.EventTarget");oa=goog.events.EventTarget;k("goog.Disposable");k("goog.events");k("goog.events.Event");var oa=u.EventTarget=function(){};oa.inherits(Da);oa.prototype.gd=function(){return null};oa.prototype.addEventListener=function(a,b,c,d){ja(this,a,b,c,d)};oa.prototype.removeEventListener=function(a,b,c,d){nb(this,a,b,c,d)};oa.prototype.dispatchEvent=function(a){if(G(a)){a=new Ia(a,this)}else{a.target=a.target||this}var b=[];for(var c=this;c;c=c.gd()){b.push(c)}var d=1;for(var e=b.length-
1;!a.U&&e>=0;e--){a.currentTarget=b[e];d&=ic(b[e],a.type,true,[a])&&a.Da!=false}for(var e=0;!a.U&&e<b.length;e++){a.currentTarget=b[e];d&=ic(b[e],a.type,false,[a])&&a.Da!=false}return Boolean(d)};oa.prototype.dispose=function(){if(!this.Z()){fh.call(this);mi(this)}};oa.prototype.Db=true;n("goog.json");var Ja=goog.json,ri=Ja.If=function(a){if(a==""){return false}a=a.replace(/"(\\.|[^"\\])*"/g,"");return a==""||!/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(a)};Ja.parse=function(a){a=String(a);if(typeof a.parseJSON=="function"){return a.parseJSON()}if(ri(a)){try{return eval("("+a+")")}catch(b){}}throw Error("Invalid JSON string: "+a);};Ja.serialize=function(a){if(a!=null&&typeof a.toJSONString=="function"){return a.toJSONString()}var b=[];Yc(a,b);return b.join("")};var Yc=Ja.Wf=function(a,
b){switch(typeof a){case "string":Ie(a,b);break;case "number":ti(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(ta(a)){si(a,b);break}ui(a,b);break;default:throw Error("Unknown type: "+typeof a);}},Xc=Ja.bf={'"':'\\"',"\\":"\\\\","/":"\\/","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\u000b"},Ie=Ja.Vf=function(a,b){b.push('"',a.replace(/[\\\"\x00-\x1f\x80-\uffff]/g,function(c){if(c in Xc){return Xc[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 Xc[c]=e+d.toString(16)}),'"')},ti=Ja.Tf=function(a,b){b.push(isFinite(a)&&!isNaN(a)?a:"null")},si=Ja.Sf=function(a,b){var c=a.length;b.push("[");var d="";for(var e=0;e<c;e++){b.push(d);Yc(a[e],b);d=","}b.push("]")},ui=Ja.Uf=function(a,b){b.push("{");var c="";for(var d in a){b.push(c);Ie(d,b);b.push(":");Yc(a[d],b);c=","}b.push("}")};n("goog.net.XhrLite");C=goog.net.XhrLite;k("goog.debug.Logger");k("goog.events.EventTarget");k("goog.json");k("goog.net.Events");k("goog.net.XmlHttp");k("goog.userAgent");k("goog.structs");k("goog.structs.Map");var C=goog.net.XhrLite=function(){oa.call(this);this.headers=new w;this.ib=je("goog.net.XhrLite");this.headers.set("Content-type","application/x-www-form-urlencoded")};C.inherits(oa);C.send=function(a,b,c,d,e){var f=new C;if(b){ja(f,Hb,b)}ja(f,Ne,f.dispose,false,f);f.send(a,c,d,e)};C.prototype.fa=
false;C.prototype.c=null;C.prototype.ic="";C.prototype.hc="";C.prototype.fb="";C.prototype.send=function(a,b,c,d){if(this.fa){throw Error("[goog.net.XhrLite] Object is active with another request");}var e=b||"GET";this.ic=a;this.fb="";this.hc=e;this.fa=true;this.c=new Pa;this.c.onreadystatechange=this.kb.bind(this);try{this.S("Opening Xhr");this.c.open(e,a,true)}catch(f){this.S("Error opening Xhr: "+f.message);this.Fb(f);return}var h=c?String(c):"";if(e=="POST"){this.c.setRequestHeader("Content-Length",
h.length)}var i=this.headers.clone();if(d){Kb(d,function(j,l){i.set(l,j)})}Kb(i,function(j,l){this.c.setRequestHeader(l,j)},this);try{this.S("Sending request");this.c.send(h)}catch(f){this.S("Send error: "+f.message);this.Fb(f)}};C.prototype.Fb=function(a){this.fa=false;this.fb=a;this.dispatchEvent(Hb);this.dispatchEvent(Me);this.Qa()};C.prototype.abort=function(){if(this.c){this.S("Aborting");this.c.abort();this.fa=false;this.dispatchEvent(wi);this.Qa()}};C.prototype.dispose=function(){if(!this.Z()){C.ta.dispose.call(this);
this.abort()}};C.prototype.kb=function(){if(typeof goog=="undefined"){}else if(A.IE&&this.ya()==Zc&&this.za()==2){this.S("Local request error detected and ignored")}else{this.dispatchEvent(xi);if(this.Ld()){this.S("Request complete");this.fa=false;if(this.dc()){this.dispatchEvent(Hb);this.dispatchEvent(yi)}else{this.fb=this.pd()+" ["+this.za()+"]";this.dispatchEvent(Hb);this.dispatchEvent(Me)}this.Qa()}}};C.prototype.Qa=function(){if(this.c){this.c.onreadystatechange=A.IE?Ai:null;this.c=null;this.dispatchEvent(Ne)}};
C.prototype.Ld=function(){return this.ya()==Zc};C.prototype.dc=function(){switch(this.za()){case 0:case 200:case 304:return true;default:return false}};C.prototype.ya=function(){return this.c?this.c.readyState:zi};C.prototype.za=function(){try{return this.ya()>Oe?this.c.status:-1}catch(a){this.ib.fine("Can not get status: "+a.message);return-1}};C.prototype.pd=function(){try{return this.ya()>Oe?this.c.statusText:""}catch(a){this.ib.fine("Can not get status: "+a.message);return""}};C.prototype.nd=
function(){return this.c?this.c.responseText:""};C.prototype.S=function(a){this.ib.fine(a+" ["+this.hc+" "+this.ic+" "+this.za()+"]")};n("goog.ds.JsDataSource");O=goog.ds.JsDataSource;n("goog.ds.JsonDataSource");qa=goog.ds.JsonDataSource;k("goog.dom");k("goog.ds.BasicNodeList");k("goog.ds.DataManager");k("goog.ds.LoadState");k("goog.ds.logger");k("goog.Uri");var O=goog.ds.JsDataSource=function(a,b,c){this.t=c;this.A=b;this.nb(a)};O.prototype.nb=function(a){this.a=a;this.u=null};O.prototype.get=function(){return!ua(this.a)?this.a:this.r()};O.prototype.set=function(a){if(a&&ua(this.a)){throw Error("Can't set group nodes to new values yet");
}if(this.t){this.t.a[this.A]=a}this.a=a;this.u=null;ma().ha(this.ia())};O.prototype.r=function(a){if(!this.a){return new Wa}if(!a||a==$h){this.va(false);return this.u}else if(a.indexOf(ci)==-1){if(this.a[a]!=null){return new Z([this.o(a)])}else{return new Wa}}else{throw new Error("Selector not supported yet ("+a+")");}};O.prototype.va=function(a){if(this.u&&!a){return}if(!ua(this.a)){this.u=new Wa;return}var b=new Z;if(this.a!=null){var c;if(ta(this.a)){for(var d=0;d<this.a.length;d++){var e=this.a[d].id||
"["+d+"]";c=new O(this.a[d],e,this);b.add(c)}}else{for(var e in this.a){var f=this.a[e];if(!mc(f)){c=new O(f,e,this);b.add(c)}}}}this.u=b};O.prototype.o=function(a){if(!this.a){return null}var b=this.r().get(a);if(!b){if(!ta(this.a)){this.a[a]=null}b=new O(null,a,this);if(this.u){this.u.add(b)}}return b};O.prototype.B=function(a){if(this.u){var b=this.r().get(a);return b?b.get():null}else if(this.a){return this.a[a]}else{return null}};O.prototype.e=function(){return this.A};O.prototype.mb=function(a){this.A=
a};O.prototype.ia=function(){var a="";if(this.t){a=this.t.ia()+(this.A.indexOf(ai)!=-1?"":bi)}return a+this.A};O.prototype.load=function(){};var qa=goog.ds.JsonDataSource=function(a,b){O.call(this,null,b,null);if(a){this.d=new m(a)}else{this.d=null}};qa.inherits(O);qa.prototype.s=Eb;qa["dataSources"]={};qa.prototype.load=function(){if(this.d){qa.dataSources[this.A]=this;U.info("Sending JS request for DataSource "+this.e()+" to "+this.d);this.s=xe;var a=new m(this.d);a.ze("callback","JsonReceive."+
this.A);goog.global["JsonReceive"][this.A]=da(this.ke,this);var b=t.createElement("script");b.src=a;b.onload=da(this.jb,this);b.onreadystatechange=da(this.ee,this);Bh("head")[0].appendChild(b)}else{this.a={};this.s=Eb}};qa.prototype.ee=function(a){};qa.prototype.jb=function(a){};qa.prototype.ke=function(a){this.nb(a);this.s=Rc;ma().ha(this.e())};goog.global["JsonReceive"]={};n("goog.ds.JsXmlHttpDataSource");kb=goog.ds.JsXmlHttpDataSource;k("goog.ds.JsDataSource");k("goog.ds.logger");k("goog.net.XhrLite");k("goog.Uri");var kb=goog.ds.JsXmlHttpDataSource=function(a,b,c,d){O.call(this,null,b,null);if(a){this.d=new m(a);this.c=new C;ja(this.c,Hb,this.Pc,false,this)}else{this.d=null}this.Ma=c;this.Va=d};kb.inherits(O);kb.prototype.Ma=null;kb.prototype.Va=null;kb.prototype.load=function(){U.info("Sending JS request for DataSource "+this.e()+" to "+this.d);if(this.d){this.c.send(this.d)}else{this.a=
{};this.s=Eb}};kb.prototype.Pc=function(a){if(this.c.dc()){U.info("Got data for DataSource "+this.e());var b=this.c.nd();if(this.Ma){var c=b.indexOf(this.Ma);b=b.substring(c+this.Ma.length)}if(this.Va){var d=b.lastIndexOf(this.Va);b=b.substring(0,d)}try{var e=eval("["+b+"][0]");this.nb(e);this.s=Rc}catch(f){this.s=gc;U.severe("Failed to parse data: "+f.message)}ma().ha(this.e())}else{U.info("Data retrieve failed for DataSource "+this.e());this.s=gc}};n("goog.dom.selection");var Ga=goog.dom.selection;k("goog.userAgent");Ga.setStart=function(a,b){if(typeof a.selectionStart=="number"){a.selectionStart=b}else if(A.IE){var c=jb(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");}};var pe=Ga.getStart=function(a){if(typeof a.selectionStart=="number"){return a.selectionStart}if(A.IE){var b=
jb(a),c=b[0],d=b[1];if(!c.inRange(d)){return-1}c.setEndPoint("EndToStart",d);return c.text.length}throw Error("Cannot get the selection start");};Ga.setEnd=function(a,b){if(typeof a.selectionEnd=="number"){a.selectionEnd=b}else if(A.IE){var c=jb(a),d=c[0],e=c[1];if(!d.inRange(e)){return}e.collapse();e.moveEnd("character",b-pe(a));e.select()}else{throw Error("Cannot set the selection end");}};Ga.getEnd=function(a){if(typeof a.selectionEnd=="number"){return a.selectionEnd}if(A.IE){var b=jb(a),c=b[0],
d=b[1];if(!c.inRange(d)){return 0}c.setEndPoint("EndToEnd",d);return c.text.length}throw Error("Cannot get the selection end");};Ga.setText=function(a,b){if(typeof a.selectionEnd=="number"){var c=a.value,d=a.selectionStart,e=c.substr(0,d),f=c.substr(a.selectionEnd);a.value=e+b+f;a.selectionStart=d;a.selectionEnd=d+b.length}else if(A.IE){var h=jb(a),i=h[0],j=h[1];if(!i.inRange(j)){return}var l=j.duplicate();j.text=b;j.setEndPoint("StartToStart",l);j.select()}else{throw Error("Cannot set the selection end");
}};Ga.getText=function(a){if(typeof a.selectionEnd=="number"){var b=a.value;return b.substring(a.selectionStart,a.selectionEnd)}if(A.IE){var c=jb(a),d=c[0],e=c[1];if(!d.inRange(e)){return""}return e.text}throw Error("Cannot get the selection text");};var jb=Ga.wf=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]};n("goog.ui.AutoComplete");H=goog.ui.AutoComplete;k("goog.array");k("goog.Disposable");k("goog.events");var H=goog.ui.AutoComplete=function(a,b,c){Da.call(this);this.Wd=a;this.rc=c;this.V=b;ja(b,[b.HILITE,b.SELECT],this);this.L="";this.Xd=10;this.h=[];this.N=-1;this.M=0;this.da=null};H.inherits(Da);H.prototype.Aa=function(a){if(a.target==this.V){switch(a.type){case this.V.HILITE:this.Q(a.row);break;case this.V.SELECT:this.Q(a.row);this.Ea();break}}};H.prototype.Ee=function(a){this.L=a;this.Wd.qc(this.L,
this.Xd,this.Vd.bind(this))};H.prototype.Ce=function(a){this.da=a};H.prototype.Ed=function(){if(this.N>=this.M&&this.N<this.M+this.h.length-1){this.Q(this.N+1);return true}return false};H.prototype.Fd=function(){if(this.N>this.M){this.Q(this.N-1);return true}return false};H.prototype.Q=function(a){if(this.Pb(a)!=-1){this.N=a;this.V.Q(a);return true}return false};H.prototype.Ea=function(){var a=this.Pb(this.N);if(a!=-1){this.rc.lb(this.h[a]);this.dismiss();return true}return false};H.prototype.dismiss=
function(){this.N=-1;this.L="";this.M+=this.h.length;this.h.length=0;this.V.dismiss()};H.prototype.dispose=function(){if(!this.Z()){H.ta.dispose.call(this);this.V.dispose();this.rc.dispose()}};H.prototype.Vd=function(a,b){if(this.L!=a){return}this.M+=this.h.length;this.h=b;var c=[];for(var d=0;d<b.length;++d){c.push({id:this.$c(d),data:b[d]})}this.V.re(c,this.L,this.da);if(c.length!=0){this.Q(this.M)}};H.prototype.Pb=function(a){var b=a-this.M;if(b<0||b>=this.h.length){return-1}return b};H.prototype.$c=
function(a){return this.M+a};n("goog.ui.AutoComplete.ArrayMatcher");Mb=goog.ui.AutoComplete.ArrayMatcher;k("goog.string");k("goog.structs");var Mb=H.ArrayMatcher=function(a){this.h=a};Mb.prototype.qc=function(a,b,c){var d=this.hd(a,b);if(d.length==0){d=this.od(a,b)}c(a,d)};Mb.prototype.hd=function(a,b){var c=[];if(a!=""){var d=bd(a),e=new RegExp("(^|\\W+)"+d,"i");Oi(this.h,function(f){if(String(f).match(e)){c.push(f)}return c.length>=b})}return c};Mb.prototype.od=function(a,b){var c=[];Kb(this.h,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 l=h.split(""),r=-1,j=0,I=10;for(var o=0,V;V=l[o];o++){var S=i.indexOf(V);if(S>r){var B=S-r-1;if(B>I-5){B=I-5}j+=B;r=S}else{j+=I;I+=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};n("goog.ui.AutoComplete.InputHandler");E=goog.ui.AutoComplete.InputHandler;k("goog.ui.AutoComplete");k("goog.dom.selection");k("goog.events");k("goog.Disposable");k("goog.string");k("goog.userAgent");var E=H.InputHandler=function(a,b,c){this.g=null;this.Ua=[];this.ca=a||",;";this.Rc=this.ca.substring(0,1);this.Je=new RegExp("/^[s"+this.ca+"]+|[s"+this.ca+"]+$/g");this.ue=new RegExp("s*["+this.ca+"]$");this.jc=b||"";this.He=50;this.gc=null;this.Sa=null;this.Cb=0;this.na=c!=null?c:true};E.inherits(Da);
var Qi=E.STANDARD_LIST_SEPARATORS=",;",Pi=E.QUOTE_LITERALS='"';E.prototype.dispose=function(){if(!this.Z()){E.ta.dispose.call(this);this.Sc.apply(this,this.Ua)}};E.prototype.Pa=function(){for(var a=0;a<arguments.length;a++){var b=arguments[a];this.Ua.push(b);ja(b,u.types.KEYPRESS,this.fc,false,this);ja(b,u.types.KEYDOWN,this.ec,false,this);var c=[u.types.FOCUS,u.types.CLICK];ja(b,c,this.Ib,false,this);ja(b,u.types.BLUR,this.wb,false,this)}};E.prototype.Sc=function(){for(var a=0;a<arguments.length;a++){var b=
arguments[a];nb(b,u.types.KEYPRESS,this.fc,false,this);nb(b,u.types.KEYDOWN,this.ec,false,this);var c=[u.types.FOCUS,u.types.CLICK];nb(b,c,this.Ib,false,this);nb(b,u.types.BLUR,this.wb,false,this);v.remove(this.Ua,b)}};E.prototype.tb=function(a){this.g=a};E.prototype.lb=function(a){if(this.na){var b=this.Sa,c=this.Cb,d=this.pb(b.value),e=d[c].replace(this.wc(d[c]),a.toString());if(!this.ue.test(e)){e=Ki(e)+this.Rc+" "}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}Ga.setStart(b,f);Ga.setEnd(b,f)}else{this.Sa.value=a.toString()}};E.prototype.fc=function(a){var b=a.keyCode;if(this.ca.indexOf(String.fromCharCode(a.charCode))!=-1){if(this.g&&this.g.Ea()&&this.na){a.preventDefault()}}else if(b==13){if(this.g&&this.g.Ea()&&this.na){a.preventDefault()}}else if(b!=40&&b!=38&&b!=27&&b!=9){goog.global.clearTimeout(this.gc);this.gc=goog.global.setTimeout(this.zb.bind(this,a.currentTarget),this.He)}};E.prototype.ec=function(a){var b=a.keyCode;if(b==40){if(this.g&&
this.g.Ed()){a.preventDefault()}}else if(b==38){if(this.g&&this.g.Fd()){a.preventDefault()}}else if(b==9){if(this.g&&this.g.Ea()&&this.na){a.preventDefault()}}else if(b==27){if(this.g){this.g.dismiss()}}};E.prototype.Ib=function(a){goog.global.clearTimeout(this.Kc);this.zb(a.currentTarget)};E.prototype.wb=function(a){if(this.g){this.Kc=goog.global.setTimeout(this.g.dismiss.bind(this.g),150)}};E.prototype.zb=function(a){var b=pe(a),c=this.he(a.value,b);this.Sa=a;this.Cb=this.Yb(a.value,b);if(this.g){this.g.Ce(a);
this.g.Ee(Ji(c))}};E.prototype.he=function(a,b){return this.wc(this.pb(a)[this.Yb(a,b)])};E.prototype.wc=function(a){return String(a).replace(this.Je,"")};E.prototype.Yb=function(a,b){var c=this.pb(a),d=0;for(var e=0,f=0;e<c.length&&f<b;e++){f+=c[e].length;d=e}return d};E.prototype.pb=function(a){if(!this.na){return[a]}var b=String(a).split(""),c=[],d=[];for(var e=0,f=false;e<b.length;e++){if(this.jc&&this.jc.indexOf(b[e])!=-1){if(!f){c.push(d.join(""));d.length=0}d.push(b[e]);f=!f}else if(!f&&this.ca.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};n("goog.ui.AutoComplete.Renderer");R=goog.ui.AutoComplete.Renderer;k("goog.dom");k("goog.dom.classes");k("goog.style");k("goog.structs");k("goog.events.EventTarget");k("goog.userAgent");k("goog.string");var R=H.Renderer=function(a,b,c){this.t=a||ne().body;this.se=!a;this.i=null;this.L="";this.h=[];this.Ba=-1;this.Na=false;this.className="ac-renderer";this.rowClassName="ac-row";this.activeClassName="active";this.HILITE="hilite";this.SELECT="select";this.X=b;this.te=c!=null?c:false;this.eb=null};R.inherits(oa);
R.prototype.re=function(a,b,c){this.L=b;this.h=a;this.Ba=0;this.da=c;this.sa=[];this.redraw()};R.prototype.dismiss=function(){if(this.Na){this.Na=false;af(this.i,"display","none")}};R.prototype.show=function(){if(!this.Na){this.Na=true;af(this.i,"display","block")}};R.prototype.Gd=function(a){if(a>=0&&a<this.i.childNodes.length){if(this.Ba>=0){Y.remove(this.sa[this.Ba],this.activeClassName)}Y.add(this.sa[a],this.activeClassName);this.Ba=a}};R.prototype.Q=function(a){for(var b=0;b<this.h.length;b++){if(this.h[b].id==
a){this.Gd(b);return}}};R.prototype.redraw=function(){if(!this.i){this.i=t.createElement("div");Y.add(this.i,this.className);t.appendChild(this.t,this.i);ja(this.i,u.types.CLICK,this.td,false,this);ja(this.i,u.types.MOUSEOVER,this.vd,false,this)}this.sa.length=0;oe(this.i);if(this.X&&this.X.render){this.X.render(this,this.i,this.h,this.L)}else{Kb(this.h,function(e){t.appendChild(this.i,this.qe(e,this.L))},this)}if(this.h.length==0){this.dismiss();return}else{this.show()}this.ie(this.i);if(this.da&&
this.se){var a=cb(this.da),b=pc(this.da),c=pc(Ye()),d=pc(this.i);a.y=b.height+a.y;if((this.te||a.x+d.width>c.width)&&this.eb!="LEFT"){a.x=a.x+b.width-d.width;this.eb="RIGHT"}else{this.eb="LEFT"}gd(this.i,a)}};R.prototype.dispose=function(){if(!this.Z()){E.ta.dispose.call(this);if(this.i){ec(this.i)}this.i=null;this.t=null}};R.prototype.ie=function(a){if(A.GECKO&&Gi(A.PLATFORM,"Mac")){a.style.width="";a.style.overflow="visible";a.style.width=a.offsetWidth;a.style.overflow="auto"}};R.prototype.pe=function(a,
b,c){c.innerHTML=ka(a.data.toString())};R.prototype.ac=function(a,b){if(a.nodeType==Ab){var c=a.nodeValue;b=bd(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=t.createElement("b");t.appendChild(i,t.createTextNode(e[2]));i=a.parentNode.insertBefore(i,a.nextSibling);for(var j=e.length-1;j>=3;j--){a.parentNode.insertBefore(t.createTextNode(e[j]),
i.nextSibling)}}}else{var l=a.firstChild;while(l){var r=l.nextSibling;this.ac(l,b);l=r}}};R.prototype.qe=function(a,b){var c=cc("div",{className:this.rowClassName});if(this.X&&this.X.pc){this.X.pc(a,b,c)}else{this.pe(a,b,c)}this.ac(c,b);Y.add(c,this.rowClassName);this.sa.push(c);return c};R.prototype.Wb=function(a){while(a&&a.tagName!="DIV"&&!me(a,this.rowClassName)){a=a.parentNode}return a?v.indexOf(this.sa,a):-1};R.prototype.td=function(a){var b=this.Wb(a.target);if(b>=0){this.dispatchEvent({type:this.SELECT,
row:this.h[b].id})}};R.prototype.vd=function(a){var b=this.Wb(a.target);if(b>=0){this.dispatchEvent({type:this.HILITE,row:this.h[b].id})}};n("goog.ui.AutoComplete.Basic");bf=goog.ui.AutoComplete.Basic;k("goog.ui.AutoComplete");k("goog.ui.AutoComplete.InputHandler");k("goog.ui.AutoComplete.Renderer");k("goog.ui.AutoComplete.ArrayMatcher");var bf=H.Basic=function(a,b,c,d){var e=new Mb(a),f=new R,h=new E(null,null,!(!c));H.call(this,e,f,h);h.tb(this);h.Pa(b)};bf.inherits(H);n("goog.focus.AutoComplete");var ni=goog.focus.AutoComplete;k("goog.dom");k("goog.ui.autocomplete.AutoComplete");k("goog.ui.autocomplete.Renderer");k("goog.ui.autocomplete.InputHandler");k("goog.ds.DataSource");k("goog.ds.XmlDataSource");k("goog.ds.JsDataSource");k("goog.ds.logger");k("goog.structs.Map");var ob=goog.focus.EmailAutocomplete=function(){this.cb=false;this.ua=[];this.cf=[];this.R=null;this.ka=[];this.$b=[]};ob.prototype.init=function(a,b,c,d,e){if(this.cb){U.warning("Init already called");
return}this.cb=true;var f;f=c?new qa(b,"Contacts"):new Xa(b,"Contacts");var h=ma();h.Fc(f,true);h.Ic(da(this.sd,this),"$Contacts");h.load();var i=e?new He:null,j=new R(null,i,d);this.R=new kc(Qi,Pi);var l=new H(this,j,this.R);this.R.tb(l);if(a){this.Hc(a)}};ob.prototype.Hc=function(a){if(!this.cb){U.warning("Init should be called first");return}if(ta(a)){this.ka=this.ka.concat(a);for(var b=0;b<a.length;b++){this.R.Pa.call(this.R,a[b])}}else{this.ka.push(a);this.R.Pa.call(this.R,a)}};ob.prototype.qc=
function(a,b,c){var d=[];if(a!=""){var e=bd(a),f=new RegExp("(^|\\W+)"+e,"i");f=new RegExp("(^|<| )"+e,"i");var h=this.$b;for(var i=0;i<h.length&&d.length<b;++i){var j=h[i];if(j.Ub().match(f)){d.push(j)}}h=this.ua;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)};ob.prototype.sd=function(a,b){var c=ma().Ya("$Contacts");U.info("Got contacts");var d=c.o("Body");if(!d){U.info("No response body");return}var e=d.o("Contacts");if(!e){U.info("No contacts");
return}var f=e.r(),h=f.m();U.info("Got "+h+" contacts");if(h>0){for(var i=0;i<this.ka.length;i++){this.ka[i].setAttribute("autocomplete","off")}}var j=new w;for(var i=0;i<h;i++){var l=f.P(i),r=l.B("Email"),I=l.B("Name"),o=l.B("Groups");if(o!=null){var V=o.length;for(var S=0;S<V;S++){var B=j.get(o[S].id);if(B==null){B=[];j.set(o[S].id,B)}B.push(Be(I,o[S].value))}}var e={};e.contactData=l;var la=Be(I,r);e.formattedValue=la;e.toString=function(){return this.formattedValue};this.ua.push(e)}U.info("Created contact array");
var za=c.o("Body").o("Groups");if(za!=null){var o=za.r();h=o.m();U.info("Got "+h+" groups");for(var i=0;i<h;i++){var Aa=o.P(i),Ta=Aa.B("id"),I=Aa.B("Name");if(Ta.charAt(0)!="^"){var yd=j.get(Ta);if(yd!=null){this.$b.push(new jc(I,yd))}}}}};var He=goog.focus.TwoLineEmailRenderer=function(){};He.prototype.pc=function(a,b,c){var d=a.data.contactData.B("Name"),e=a.data.contactData.B("Email"),f="";if(d&&e){f=ka(d)+"<br/>"+ka(e)}else if(d&&G(d)){f=ka(d)}else if(e&&G(e)){f=ka(e)}c.innerHTML=f};var _emailAutocomplete=
new ob,_initEmailAutocomplete=da(_emailAutocomplete.init,_emailAutocomplete),Be=ob.formatEntry=function(a,b){if(a==null){return" <"+b+">"}else{return a+" <"+b+">"}},kc=goog.focus.GroupsInputHandler=function(a,b,c){E.call(this,a,b,c)};kc.inherits(E);kc.prototype.lb=function(a){if(a.Jb){a=a.Jb().join(", ")}kc.ta.lb.call(this,a)};var jc=ni.Group=function(a,b){this.oa=a;this.ua=b};jc.prototype.toString=function(){return this.oa+" (Group)"};jc.prototype.Ub=function(){return this.oa};jc.prototype.Jb=function(){return this.ua};n("goog.focus.HtmlUtil");var Wc=goog.focus.HtmlUtil;n("goog.focus.PickerLauncher");var pa=goog.focus.PickerLauncher;n("goog.focus.ContactManagerLauncher");var Ae=goog.focus.ContactManagerLauncher;n("goog.focus.PhotoPickerLauncher");var sa=goog.focus.PhotoPickerLauncher;k("goog.math.Coordinate");var lc=Wc.serverBase="/ui/",pi=Wc.setServerBase=function(a){lc=(Wc.serverBase=a)},Ee=pa.getCoordinates=function(a,b){var c=307,d;if(a){var e=document.getElementById(a);d=cb(e);var f=pc(e);d.y+=f.height}else{d=
new Ka(0,0)}var h=f.width>c?f.width:c,i=554,j=313,l=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+l>screen.height){d.y=screen.height-l}var r=new va(d.x,d.y,h,i);return r},qi=pa.popPicker=function(a,b,c){var d=Ee(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=Fe(a,c).toString();window.open(f,"_picker",e)},Fe=pa.getUri=function(a,b){var c=
new m(lc+"ContactPicker");if(a){c.G("inputId",a)}if(b){c.G("dm","goog")}c.G("js","RAW");return c};pa.popIframe=function(a,b,c){if(pa.curIframe){Ge()}var d=Ee(a,null),e=Fe(a,c);window["iframeDone"]=Ge;e.G("done","iframeDone");var f=bc("picker-iframe-div");if(f==null){var f=cc("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=
bc("picker-iframe");h.style.display="block";gd(f,d.left,d.top);$e(h,d.width,d.height);h.src=e;pa.curIframeDiv=f;pa.curIframe=h};var Ge=pa.iframeDone=function(){ec(pa.curIframeDiv);pa.curIframeDiv=null;pa.curIframe=null},oi=Ae.getUri=function(a){var b=new m(lc+"ContactManager"),c=a||"THREE";b.G("style",c);b.G("js","RAW");b.G("pop","TRUE");return b};Ae.popManager=function(a,b){var c=b=="TWO"?502:653,d=new va(0,0,c,412),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=oi(b).toString();window.open(f,"_manager",e)};var Ce=sa.getUri=function(a){var b=new m(lc+"PhotoPicker");b.G("js","RAW");b.G("pop","TRUE");return b};sa.popPicker=function(a){var b=543,c=356,d=new va(50,50,b,c),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=Ce().toString();window.open(f,"_manager",e)};sa.popIframe=function(){if(sa.curIframe){De()}var a=
545,b=356,c=new va(50,50,a,b),d=Ce(),e=bc("ppicker-iframe-div");if(e==null){var e=cc("div",{id:"ppicker-iframe-div",style:"position: absolute; background-color; #FFF",zIndex:10});document.body.appendChild(e);e.innerHTML='<iframe id="ppicker-iframe" style="display:none; background-color; #FFF; border: 0"></iframe>'}var f=bc("ppicker-iframe");f.style.display="block";gd(e,c.left,c.top);$e(f,c.width,c.height);window["ppickerIframeDone"]=De;d.G("done","ppickerIframeDone");f.src=d.toString();sa.curIframeDiv=
e;sa.curIframe=f};var De=sa.iframeDone=function(){ec(sa.curIframeDiv);sa.curIframeDiv=null;sa.curIframe=null};function Sa(){}var Of=Sa.raise=function(a){if(typeof Error!="undefined"){throw new Error(a||"Assertion Failed");}else{throw a;}},Ub=Sa.fail=function(a){if(a===undefined)a="Assertion failed";if(!(vd===undefined))vd(a+"\n");Of(a)};Sa.isTrue=function(a,b){if(!a){if(b===undefined)b="Assertion failed";Ub(b)}};Sa.equals=function(a,b,c){if(a!=b){if(c===undefined){c="AS_Assert.equals failed: <"+a+"> != <"+b+">"}Ub(c)}};Sa.typeOf=function(a,b,c){if(typeof a==b)return;if(a||a==""){try{if(b==Mf[typeof a]||a instanceof
b){return}}catch(d){}}if(c===undefined){if(typeof b=="function"){var e=b.toString().match(/^\s*function\s+([^\s\{]+)/);if(e)b=e[1]}c="AS_Assert.typeOf failed: <"+a+"> not typeof "+b}Ub(c)};var Mf=Sa.TYPE_MAP={string:String,number:Number,"boolean":Boolean},Nf=Sa.numArgs=function(a,b){var c=Nf.caller;if(c&&c.arguments.length!=a){if(b===undefined){b=c.name+" expected "+a+" arguments  but received "+c.arguments.length}Ub(b)}};var ud=false;function vd(a){try{throw a;}catch(b){wd(b)}}function wd(a,b){var c="Javascript exception: "+(b?b:"")+" "+a;if(qd()){c+=" "+a.name+": "+a.message+" ("+a.number+")"}var d="";if(typeof a=="string"){d=a+"\n"}else{for(var e in a){try{d+=e+": "+a[e]+"\n"}catch(f){}}}d+=sd(wd.caller);Rf(c+"\n"+d,1)}var Vg=/function (\w+)/;function Pf(a){var b=Vg.exec(String(a));if(b){return b[1]}return""}function sd(a){try{if(!qd()&&!(Vb("safari")||Vb("konqueror"))&&Vb("mozilla")){return Error().stack}if(!a)return"";
var b="- "+Pf(a)+"(";for(var c=0;c<a.arguments.length;c++){if(c>0)b+=", ";var d=String(a.arguments[c]);if(d.length>40){d=d.substr(0,40)+"..."}b+=d}b+=")\n";b+=sd(a.caller);return b}catch(e){return"[Cannot get stack trace]: "+e+"\n"}}var Sf;var La=null,xc=false;function Qf(){if((La==null||La.closed)&&!xc){try{xc=true;La=window.open("","debug","width=700,height=500,toolbar=no,resizable=yes,scrollbars=yes,left=16,top=16,screenx=16,screeny=16");La.blur();La.document.open();xc=false;var a="<font color=#ff0000><b>To turn off this debugging window,hit 'D' inside the main caribou window, then close this window.</b></font><br>";
td(a)}catch(b){}}}function Rf(a,b){if(!ud){if(typeof Ob!="undefined"){Ob(xd(a))}return}try{var c=(new Date).getTime()-Sf,d="["+c+"] "+xd(a).replace(/\n/g,"<br>")+"<br>";if(b==1){d="<font color=#ff0000><b>Error: "+d+"</b></font>";La.focus()}td(d)}catch(e){}}function td(a){if(!ud){return}try{Qf();La.document.write(a);La.scrollTo(0,1000000)}catch(b){}};function Vb(a){if(a in wc){return wc[a]}return wc[a]=navigator.userAgent.toLowerCase().indexOf(a)!=-1}var wc={};function qd(){return Vb("msie")&&!window.opera};var og=/&/g,uj=/</g,Si=/>/g;function xd(a){if(!a)return"";return a.replace(og,"&amp;").replace(uj,"&lt;").replace(Si,"&gt;").replace(Lj,"&quot;")}var Lj=/\"/g;function Tg(a){return document.getElementById(a)}function Ug(a){return document.all[a]}var Sg=document.getElementById?Tg:Ug;function Ob(a){try{if(window.parent!=window&&window.parent.log){window.parent.log(window.name+
"::"+a);return}}catch(b){}var c=Sg("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 Yb;function kg(){var a=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];if(typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){for(var b=0;b<a.length;b++){var c=a[b];try{new ActiveXObject(c);Yb=c;break}catch(d){}}if(!Yb){throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed.");}}}kg();function ig(){if(Yb){return new ActiveXObject(Yb)}else{return new XMLHttpRequest}}function jg(a,b,c){a.onreadystatechange=
c;a.open("GET",b,true);lg(a,null)}function lg(a,b){try{a.send(b)}catch(c){Ob("XMLHttpSend failed "+c.toString()+"<br>"+c.stack);throw c;}};if("undefined"==typeof Ob){Ob=function(){}};function Lk(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 tb(b(c[1]),b(c[2]),b(c[3]),b(c[4]),b(c[5]),b(c[6]),b(c[7]))}function tb(a,b,c,d,e,f,h){this.w=a;this.Bb=b;this.H=c;this.K=d;this.J=e;this.qa=f;this.I=h;this.pa=null}tb.prototype.toString=function(){var a=[];if(null!==this.w){a.push(this.w,":")}if(null!==this.H){a.push("//");if(null!==
this.Bb){a.push(this.Bb,"@")}a.push(this.H);if(null!==this.K){a.push(":",this.K.toString())}}if(null!==this.J){a.push(this.J)}if(null!==this.qa){a.push("?",this.qa)}if(null!==this.I){a.push("#",this.I)}return a.join("")};tb.prototype.Cc=function(a){this.pa=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.qa=b.join("");return this};tb.prototype.Ac=function(){if(!this.pa){if(!this.qa){this.pa=
[]}else{var a=this.qa.split(/[&\?]/),b=[];for(var c=0;c<a.length;++c){var d=a[c].match(/^([^=]*)(?:=(.*))?$/);b.push(If(d[1]),If(d[2]||""))}this.pa=b}}};tb.prototype.Dc=function(a,b){if(typeof b==="string"){b=[b]}this.Ac();var c=0,d=this.pa,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.Cc(e);return this};function If(a){return decodeURIComponent(a).replace(/\+/g," ")};var ub=[];ub.HIDE_TIMEOUT=100;ub.SHOW_TIMEOUT=100;var yc="menu-normalsb",Wb="menu-shim";function ag(){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 $f(a,b){var c=b.id;if(!c){c=a.currentTarget.id}var d=window.setTimeout(Ad(c),ub["HIDE_TIMEOUT"]),e=document.getElementById(c);e.VideoTabHideTimer=d}function Bd(a){var b=document.getElementById(a);
if(b===null){return}if(b.bt!==null){b.bt.className=yc}if(b.style===null){return}b.style.display="none";var c=document.getElementById(Wb);if(c!==null&&c.style!==null){c.style.display="none"}}function fg(a){var b=document.getElementById(a);if(b==null){return}if(b.bt!=null){if(b.bt.className==yc){b.bt.className="menu-selectsb"}else{b.bt.className=yc}}if(b.style!==null){if(b.style.display=="none"){b.style.display="block";var c=document.getElementById(Wb);if(c!==null){c.style.display="block"}}else{b.style.display=
"none";var c=document.getElementById(Wb);if(c!==null&&c.style!==null){c.style.display="none"}}}}function bg(a){window.clearTimeout(a.VideoTabHideTimer);a.VideoTabHideTimer=null}function Zf(a,b,c){var d=a.VideoTabPopupTimer;if(d!==null){window.clearTimeout(d);a.VideoTabPopupTimer=null}var e=window.setTimeout(Ad(a.id),ub["HIDE_TIMEOUT"]);a.VideoTabHideTimer=e}function eg(a,b,c){if(a.VideoTabHideTimer){window.clearTimeout(a.VideoTabHideTimer);a.VideoTabHideTimer=null}var d=window.setTimeout(Xf(a.id),
ub["SHOW_TIMEOUT"]);a.VideoTabPopupTimer=d;a.bt=b}function dg(a){if(a===null||a.style===null){return}var b=a.bt,c=Kf(b),d=Lf(b)+b.offsetHeight-1,e=c.toString()+"px",f=d.toString()+"px",h=ag();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 l=document.getElementById(Wb);if(l!==null&&l.style!==null){l.style.top=
a.style.top;l.style.left=a.style.left;l.style.width=a.offsetWidth.toString()+"px";l.style.height=a.offsetHeight.toString()+"px";l.style.zIndex="1999";l.style.backgroundColor="#ffffff";l.style.display="block"}}function cg(a){if(a===null){return}a.className="menu-menuitem-sel"}function Yf(a){if(a===null){return}a.className="menu-menuitem"}function Ad(a){if(fb===null){return}return function(){Bd(a)}}function Xf(a){if(fb===null){return}return function(){dg(document.getElementById(a))}};function Vf(a,b){if(a=="goFullscreen"||a=="donePlaying"||a=="stateChanged"||a=="beginScrub"||a=="endScrub"){if(this[a]){var c=eval("["+b+"]");this[a].apply(this,c)}}else if(a=="clickVideo"){Gg()}}function Gg(){var a=g("thumbflashpreview");if(!a||typeof a=="undefined"){return}var b=a.parentNode.parentNode.childNodes;vk();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 nk(a,b){var c=
new Date;c.setYear(c.getFullYear()+1);document.cookie=a+"="+b+"; expires="+c.toGMTString()}function Sb(a,b,c){document.cookie=a+"="+encodeURIComponent(b)+"; domain="+c}function Ra(a,b,c){var d=new Date;d.setYear(d.getFullYear()+1);document.cookie=a+"="+encodeURIComponent(b)+"; domain="+c+"; expires="+d.toGMTString()}function Dg(a,b){var c=new Date;c.setYear(c.getFullYear()-1);document.cookie=a+"=0; domain="+b+"; expires="+c.toGMTString()}function Ca(a){var b=document.cookie.split(/\s*;\s*/),c=null;
for(var d=0;d<b.length;d++){var e=b[d].split("=");if(a==e[0]){c=decodeURIComponent(e[1]);break}}return c}function mk(a,b,c){for(var d=0;d<a.childNodes.length;d++){if(a.childNodes[d].nodeName==b){ok(a.childNodes[d],c)}}}function vk(){var a=g("thumbflashpreview");if(a&&typeof a!="undefined"){var b=a.parentNode.parentNode;Uj(a.parentNode);mk(b,"A",true)}}var qc=navigator.appVersion.indexOf("MSIE")!=-1?true:false,ld=navigator.appVersion.toLowerCase().indexOf("win")!=-1?true:false,hf=navigator.userAgent.indexOf("Opera")!=
-1?true:false;function Qg(a){if(!a&&qc&&ld)return;for(var b=25;b>0;b--){var c;if(qc&&ld&&!hf){c=VBGetSwfVer(b)}else{c=navigator.plugins["Shockwave Flash"].description.substring(16,19)}if(c==-1){Ac();return false}else if(c!=0){var d;if(qc&&ld&&!hf){var e=c.split(" "),f=e[1];d=f.split(",")}else{d=c.split(".")}var h=d[0];if(h<7){Ac();return false}else{return true}}}Ac();return false}function Ac(){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 q(a){a.style.display=""}function ok(a,b){if(b){q(a)}else{p(a)}}function Hk(a){var b=g(a);if(!b){return true}else if(Nd(b,"display","display")=="block"||Nd(b,"display","display")=="inline"){b.className=
"invisible"}else{b.className="visible"}}function Nd(a,b,c){if(a.currentStyle){return a.currentStyle[b]}else if(window.getComputedStyle){var d=window.getComputedStyle(a,"");return d.getPropertyValue(c)}}function Uj(a){a.parentNode.removeChild(a)}function pb(a){a=encodeURIComponent(a);var b=/(%20)+/g;return a.replace(b,"+")}function pf(a){window.location="/videosearch?q="+pb(a);return false}function Ig(a){var b=a.options[a.selectedIndex].value;if(b)document.location.href=b}function Pj(a,b,c){var d=
Ca(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}Ra(b,d,c)}function $g(){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 ff=$g();function Bg(){var a;if(ff){a=new ActiveXObject(ff)}else{a=new XMLHttpRequest}return a}
function P(a,b,c,d,e){var f=Bg(),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(f,f.status&&f.status==200,a,c,d);f.onreadystatechange=function(){}}};f.send(c)}function gb(){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 J(a,b,c,d){var e=a.createElement(c);if(d){e.appendChild(a.createTextNode(d))}b.appendChild(e);return e}function y(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 Ed;function dh(){if(!Ca("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";Ed=new Image;Ed.src=a}}}function qk(a,b){if(a.value.length>b){a.value=a.value.substring(0,b)}};function fb(a){return document.getElementById(a)}function sc(a){return Math.floor(a)+"px"}function Kf(a){var b=0;while(a){b+=a.offsetLeft;a=a.offsetParent}return b}function Lf(a){var b=0;while(a){b+=a.offsetTop;a=a.offsetParent}return b}function rd(a,b){if(b){this.coord=[a.offsetLeft,a.offsetTop+1,a.offsetWidth-2,a.offsetHeight-2]}else{this.coord=[Kf(a),Lf(a),a.offsetWidth,a.offsetHeight]}};rd.prototype.add=function(a){for(var b=0;b<this.coord.length;++b){this.coord[b]+=a[b]}};rd.prototype.apply=
function(a){a.style.left=sc(this.coord[0]);a.style.top=sc(this.coord[1]);a.style.width=sc(this.coord[2]);a.style.height=sc(this.coord[3])};function _handleShowAlertPanelClick(){if(db("addalert")){Nb("addalert");g("zip").src="common/plus_sm.gif"}else{uc("addalert");g("zip").src="common/minus_sm.gif"}}function _sendCreateAlertRequest(a,b){g("msg-create-alert-status").innerHTML=MSG_CREATING_ALERT;uc("msg-create-alert-status");Rd(g("createalertbutton"));Nb("msg-alert-create-bad-email");Nb("msg-alert-created");P(a,Ti,b)}function Ti(a,b,c,d,e){if(a.readyState==4){var f=a.responseText;if(f=="alertCreated"){Nb("msg-create-alert-status");uc("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"){Nb("msg-create-alert-status");uc("msg-alert-create-bad-email")}else{g("msg-create-alert-status").innerHTML=MSG_CREATE_ALERT_ERROR}Vd(g("createalertbutton"))}}function uc(a){g(a).style.display=""}function Nb(a){g(a).style.display="none"};function Jj(a,b,c){var d=g("tag_error");if(!c||g("taginput").value==MSG_ADD_LABEL){Tb(MSG_ERROR_TAG_MISSING,null);return}if(c.length>50){Tb(MSG_ERROR_TAG_TOO_LONG,null);return}c=c.replace(/(^\s+)|(\s+$)/g,"");if(c!==""){tc(MSG_ANNOTATION_SAVING,null);g("taginput").tagUploadState="uploading";vc(a,b,c,null,null)}else{g("taginput").value=""}}function vc(a,b,c,d,e){var f=gb(),h=J(f,f,"tags");J(f,h,"docid",b);if(c){J(f,h,"name",c);if(d){J(f,h,"mark",d);if(e){J(f,h,"id",e)}}}P(a+"?frame=label"+VP_langParam,
hj,f,null,'text/xml; charset="utf-8"')}var Ef;function zf(a,b,c){var d=g("tag_error");d.innerHTML=a;d.style.display="";window.clearTimeout(Ef);if(b!==null){Ef=setTimeout(Od,b)}if(!c||c=="info"){d.className="ratingsInfo"}else{d.className="ratingsError"}}function Tb(a,b){zf(a,b,"error")}function tc(a,b){zf(a,b,"info")}function od(a){a.innerHTML=""}function hj(a,b,c,d,e){Od();var f=g("common_tags_short"),h=g("common_tags_all"),i=g("remove_tags"),j=g("remove_tags_links");if(!b||!a.responseXML){Tb(MSG_UNKNOWN_ERROR,
null)}else{var l=a.responseXML.documentElement;if(l.tagName=="error"){var r=y(l,"errormessage");Tb(r,null)}else if(l.tagName!="tags"){Tb(MSG_UNKNOWN_ERROR,null)}else{od(f);od(h);od(i);var I=l.getElementsByTagName("common_tag"),o,V;if(I.length>0){var S=document.createTextNode(MSG_BROWSE+" ");h.appendChild(S);f.appendChild(S.cloneNode(false));j.style.display="inline"}else{j.style.display="none"}for(V=0;V<I.length;++V){o=I.item(V);var B=document.createTextNode(", ");if(V!==0){h.appendChild(B);if(V<3){f.appendChild(B.cloneNode(false))}i.appendChild(B.cloneNode(false))}if(V<
3){f.appendChild(Dc(o,null))}h.appendChild(Dc(o,null));i.appendChild(Dc(o,"delete"))}if(I.length>3){var la=document.createElement("A");la.className="taglink";la.href="javascript:void(0)";h.appendChild(B.cloneNode(false));var za=la.cloneNode(true);za.onclick=function(){xb("common_tags","false");Pb()};za.innerHTML="<b>&laquo;</b>";h.appendChild(za);f.appendChild(B.cloneNode(false));var Aa=la.cloneNode(true);Aa.onclick=function(){xb("common_tags","true");Pb()};Aa.innerHTML="<b>"+MSG_MORE_TAGS+"&nbsp;&raquo;</b>";
f.appendChild(Aa)}var Ta=g("taginput");if(Ta&&Ta.tagUploadState=="uploading"){tc(MSG_ANNOTATION_SAVED,5000);Ta.value="";Ta.tagUploadState=null}else if(g("tag_error").tagUploadState=="removing"){tc(MSG_REMOVED_TAG,5000);g("tag_error").tagUploadState=null}}}}function Dc(a,b){var c=document.createElement("A"),d=y(a,"name"),e=y(a,"raw_name"),f=y(a,"short_name"),h=y(a,"tag_mode"),i=y(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"}c.href="/videosearch?q=label:"+encodeURIComponent(e);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(){Wj(TAG_DISPLAY_URI,did,e,i);c.className="striketaglink"};c.innerHTML="<nobr>"+f+"&nbsp;";c.innerHTML+="</nobr>"}return c}function Wj(a,b,c,d){var e=g("tag_error");tc(MSG_REMOVED_TAG,null);e.tagUploadState=
"removing";if(VP_isOps){vc(a,b,c,"OPS",d)}else{vc(a,b,c,"SPAM",d)}}function xb(a,b){var c=g(a+"_all"),d=g(a+"_short");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 Od(){g("tag_error").innerHTML=""}function Ek(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 wg(){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 kf(){if(Mk()){hk()}return false}function Mk(){ij();var a=true;if(g("username").value==""){a=false;q(g("username-error"))}if(g("password").value==
""){a=false;q(g("password-error"))}if(g("site").selectedIndex<=0){a=false;q(g("site-error"))}return a}function ij(){p(g("username-error"));p(g("password-error"));p(g("site-error"));p(g("login-error"))}function xk(){if(Nk()){lk()}return false}function Nk(){var a=true;if(g("title").value==""){a=false;q(g("title-error"))}else{p(g("title-error"))}return a}function hk(){Sd(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);P(Xd(),Wi,b);q(g("loginstatus"))}function Xd(){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 Sd(a){g("loginbutton").disabled=a;g("username").disabled=a;g("password").disabled=a;g("site").disabled=a;g("loginbutton").disabled=a;g("rememberc").disabled=a}function Wi(a){if(a.readyState==4){p(g("loginstatus"));Sd(false);var b=a.responseText.split("\t");
if(b[0]-0==0){sj(b[1])}else{tj(b)}}}function sj(a){g("login-error").innerHTML=a;q(g("login-error"))}function tj(a){wk();VP_supportFlash=""+a[1];Hj(a);if(a[0]==1){nf()}else{p(g("logintablediv"));p(g("bloggersdiv"));q(g("blogselect"))}}function wk(){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 Hj(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 nf(){Jg();g("player-big").checked=true;g("autoplay").checked=false;p(g("blogselect"));p(g("logindiv"));q(g("submitdiv"));p(g("finisheddiv"))}function Jg(){var a;if(VP_supportFlash=="true"){mg();a=document.createElement("div");a.innerHTML=VP_flashPath}else{ng();a=document.createElement("img");a.id="playerImg";a.src=VP_thumbnailPath;a.width="320";a.height="240"}g("playerplaceholder").appendChild(a)}
function ng(){g("playercell").style.height="250px";g("autoplaydisplayl").style.display="none";g("autoplaydisplayc").style.display="none";g("playersizelabel").style.display="none";g("thumbsizelabel").style.display="inline"}function mg(){g("playercell").style.height="330px";g("autoplaydisplayl").style.display="inline";g("autoplaydisplayc").style.display="inline";g("playersizelabel").style.display="inline";g("thumbsizelabel").style.display="none"}function lk(){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)+Zd()+"&size="+encodeURIComponent(VP_playersize)+"&site="+encodeURIComponent(a.options[a.selectedIndex].value)+"&auto="+encodeURIComponent(g("autoplay").checked)+
"&blog="+encodeURIComponent(b.options[c].value);P(Xd(),gj,f);q(g("submitstatus"))}function gj(a){if(a.readyState==4){var b=a.responseText.split("\t"),c;if(b[0]-0==0){yk();c=b[1]}else{Ak();c='<a href="javascript:void(0)" onclick="window.open(&quot;'+b[1]+'&quot;, &quot;_blank&quot;);">'+b[1]+"</a>"}g("messagediv").innerHTML=c;q(g("messagediv"));p(g("submitstatus"));g("submitbutton").disabled=false}}function yk(){q(g("faildiv"));p(g("logindiv"));p(g("submitdiv"));q(g("finisheddiv"))}function Ak(){q(g("successdiv"));
q(g("refreshmsgdiv"));p(g("logindiv"));p(g("submitdiv"));q(g("finisheddiv"))}function Zj(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 ug(){g("password").value=
"";q(g("logintablediv"));q(g("bloggersdiv"));p(g("blogselect"))}function yg(a){if(!a){a=window.event}var b=a.keyCode||a.which;if(b==13){kf()}};function Aj(){Nj();if(VP_selectedVideoListTab=="t"){Cf("sidebar-top100")}else if(VP_selectedVideoListTab=="z"){Cf("sidebar-movshake")}ek()}function Bj(){var a=document.getElementById("narrow-css"),b=ah();if(b>=1000){a.disabled=true}else if(b<1000){a.disabled=false}}function ah(){if(window.innerWidth){return window.innerWidth}else if(document.documentElement&&document.documentElement.clientWidth!=0){return document.documentElement.clientWidth}else if(document.body){return document.body.clientWidth}return 0}
VP_sidebarVideoListTabsArray=["sidebar-top100","sidebar-movshake"];function Cf(a){for(var b=0;b<VP_sidebarVideoListTabsArray.length;b++){var c=document.getElementById(VP_sidebarVideoListTabsArray[b]+"-content");if(c){var d=document.getElementById(VP_sidebarVideoListTabsArray[b]+"-tab");if(a==VP_sidebarVideoListTabsArray[b]){d.className="selected-tab";q(c)}else{d.className="unselected-tab";p(c)}}}}function Nj(){var a=Ca(VP_homepageSettingsCookieName);if(a){var b=0,c=a.split(";");if(c.length>1){b=parseInt(c[0],
10)}if(b==1){if(c.length==3){if(c[2]=="t"||c[2]=="z"){VP_selectedVideoListTab=c[2]}}}}}function ek(){Rk(VP_numShown,VP_selectedVideoListTab)}function Rk(a,b){var c=""+VP_homepageSettingsCookieVersion+";"+a+";"+b;Ra(VP_homepageSettingsCookieName,c,VP_cookieDomain)};var Zb=30,Kd=8,Jd=50;function Wf(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(Zb);this.cachedNo=0;this.visibleIndex=0;this.targetVisibleIndex=0;this.animating=false;this.cachingState=0}function zd(a,b,c,d,e,f,h){this.docid=a;this.thumbSrc=b;this.shortTitle=c;this.origTitle=d;this.duration=e;this.height=f;this.provider=h}function lj(){for(var a in resultBoxes){kj(resultBoxes[a])}}function kj(a){var b="/videofeed?type=search&output=ajax&frame=morebox&docid="+
VP_docId+"&q="+a.query+"&filter="+a.filter+"&num="+Zb+"&start=0&msg=-1";b=ha(b);P(b,jd,null,a.name)}function jd(a,b,c,d,e){if(a.readyState==4){var f=a.responseText.replace(/\"/g,"'");of(encodeURIComponent(f),e)}}function xa(a,b){g(a+"active").style.display=b?"inline":"none";g(a+"inactive").style.display=b?"none":"inline"}function Df(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 tk(a){if(a.cachedNo==0){return}var b=Zg(a);g(a.name+"_items").innerHTML=b;Ff(a);Gf(a);Df(a.name,a.cachedNo>3?4:3)}function Zg(a){var b='<table cellpadding="0" cellspacing="2" class="resultboxtable" id="'+a.name+'_table"><tbody>';for(var c=0;c<a.cachedNo;c++){b+=Wg(a.cached[c],a.name+"_item_"+c)}b+="</tbody></table>";return b}function Wg(a,b){var c='<tr class="itemrow"><td class="resultboxthumbcell"><a href="/videoplay?docid='+
a.docid+VP_queryParam+VP_langParam+'" 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="/videoplay?docid='+a.docid+VP_queryParam+VP_langParam+'" 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 Gf(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 Ff(a){if(a.total==0){xa(a.name+"_prev",false);xa(a.name+"_next",false);return}var b=a.resultIndex+a.visibleIndex+1;xa(a.name+"_prev",b>1?true:false);xa(a.name+"_next",a.visibleIndex+3<a.cachedNo?true:false)}function of(a,b){var c=resultBoxes[b];c.cachingState=2;if(c.animating){var d=
'processResponse("'+a+'","'+b+'")';setTimeout(d,400);return}xg(decodeURIComponent(a),c);if(c.total==0||c.cachedNo==0){xa(b+"_prev",false);xa(b+"_next",false);Df(b,2)}else{tk(c);gk(c)}c.cachingState=0}function gk(a){var b=a.name+"_item_"+a.visibleIndex,c=g(b).offsetTop-2;g(a.name+"_items").scrollTop=c}function xg(a,b){var c=a.split("\r\n"),d=c[0].split("\t"),e=1*d[0],f=1*d[1];Mg(d[2],b);if(e<0||e>Zb||f<0){return}var h=true;if(f<b.resultIndex){h=false}var i=Zb-e;if(i>b.cachedNo){i=b.cachedNo}var j=
b.cachedNo-i;if(h){var l=b.cachedNo-i;for(var r=0;r<i;r++){b.cached[r]=b.cached[l+r]}}else{for(var r=i-1;r>=0;r--){b.cached[e+r]=b.cached[r]}}if(h){for(var r=1;r<=e;r++){d=c[r].split("\t");b.cached[i+r-1]=new zd(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}}else{for(var r=1;r<=e;r++){d=c[r].split("\t");b.cached[r-1]=new zd(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}}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 Mg(a,b){if(b.total<0&&a){var c=1*a;if(c>=0){b.total=c}}}function $j(a){xa(a+"_prev",false);xa(a+"_next",false);var b=resultBoxes[a];if(b.cachingState==2){var c='resultBoxNextClicked("'+a+'")';setTimeout(c,100)}else{Id(true,a)}}function ak(a){xa(a+"_prev",false);xa(a+"_next",false);var b=resultBoxes[a];if(b.cachingState==2){var c='resultBoxPrevClicked("'+a+'")';setTimeout(c,100)}else{Id(false,a)}}function Id(a,b){var c=resultBoxes[b];c.animating=true;
if(a){Ng(c);pg(c)}else{Og(c);rg(c)}}function Ng(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=ha(d);a.cachingState=1;P(d,jd,null,a.name)}function Og(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=ha(c);a.cachingState=1;P(c,jd,null,a.name)}function pg(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;zc(a.name,c,d,Kd,Jd,true)}function rg(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;zc(a.name,c,d,Kd,Jd,false)}function zc(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;qg(a,f);return}var i=parseInt(h/d,10),j=f?b+i:b-i;g(a+"_items").scrollTop=j;var l="animate('"+a+"',"+j+","+c+","+(d-1)+","+e+","+f+")";setTimeout(l,e)}function qg(a,
b){var c=resultBoxes[a];c.visibleIndex=c.targetVisibleIndex;Gf(resultBoxes[a]);Ff(resultBoxes[a]);c.animating=false};function Tj(a){var b=Lk(a.URL),c=a.getElementById("regionselect").value;b.Dc("cr",c);window.location=b}var _rs_regionSelectChanged=Tj;function Rd(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 Vd(a){if(document.all||document.getElementById){a.disabled=false}else if(a){a.onclick=a.oldonclick;a.value=a.oldvalue}}function kk(a,b){P(a,dj,b);var c=g("send-status");Yj();ya(c,"error",MSG_SENDING)}function dj(a){var b=g("send-status");if(a.readyState==4){var c=a.responseText;if(c==0){ya(b,"error",MSG_SENT);g("to").value="";g("msg").value=
""}else{ya(b,"","");if(c==1){ya(g("from-comment"),"error",MSG_INVALID_EMAIL_ADDRESS)}else if(c==2){ya(g("to-comment"),"error",MSG_INVALID_EMAIL_ADDRESS)}else{ya(b,"error",MSG_UNKNOWN_ERROR)}}Vd(sendform.sendvideobutton)}}function Yj(){ya(g("from-comment"),"example",MSG_EG_EMAIL);ya(g("to-comment"),"example",MSG_SEPARATE_EMAILS_W_COMMA)};function ch(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 wf(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 Pd="VideoEmailFromList",Qd="VideoEmailToList",Bc="from",Cc="to",Wd=30;function pk(){if(document.getElementById(Bc)!==
null){wf(Pd,document.getElementById(Bc).value,Wd)}if(document.getElementById(Cc)!==null){wf(Qd,document.getElementById(Cc).value,Wd)}}function jf(a,b){var c=ch(b);if(c!==null&&document.getElementById(a)!==null){document.getElementById(a).value=c}}function rj(){jf(Bc,Pd);jf(Cc,Qd)};function Gk(a){var b=Yd(a);if(a.checked){sf(b,a);a.form.toggleAll.checked=nj(a.form)}else{tf(b,a);a.form.toggleAll.checked=false}}function bk(a){var b=a.form;for(var c=0;c<b.elements.length;c++){var d=b.elements[c];if(kd(d)&&d.checked!=a.checked){var e=Yd(d);if(a.checked){sf(e,d)}else{tf(e,d)}}}}function nj(a){for(var b=0;b<a.elements.length;b++){var c=a.elements[b];if(kd(c)&&c.checked==false){return false}}return true}function pj(a){for(var b=0;b<a.elements.length;b++){var c=a.elements[b];if(kd(c)&&
c.checked){return false}}return true}function kd(a){return a.id.indexOf("box_")==0}function Yd(a){return g("tr_"+a.id.substr(4))}function uf(a,b){if(b&&b.checked){a.style.backgroundColor="#ffffff"}else{a.style.backgroundColor="#f0f0f0"}}function sf(a,b){b.checked=true;if(a){uf(a,b)}}function tf(a,b){b.checked=false;if(a){uf(a,b)}};function gg(a,b,c){var d=ig(),e={};e.request=d;e.successPage=b;e.errorPage=c;jg(d,a,function(){hg(e)})}function hg(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){Hd(a.successPage)}else{var i=a.errorPage+"?status="+e;Hd(i)}}}function Hd(a){if(document.images){document.location.replace(a)}else{document.location.href=a}};var id="",Ld="";function pd(a){g("downloaddiv").innerHTML='    <iframe marginwidth="0" marginheight="0" src="'+a+'\t   " frameborder="0" width="1" height="1"></iframe>'}function vf(a,b){id=a;Ld=b;Td("eventHandler=DataStoreHandler")}function Tf(a,b){this["args"]=b;eval(a+"(this.args)")}function Ag(a){if(a["isInstalled"]=="true"){p(g("clientunknowndiv"));q(g("clientpresentdiv"));pd(id)}else{p(g("clientunknowndiv"));q(g("clientmissingdiv"));pd(Ld);Td("setVars=fetchOnInstallUrl="+id.replace("&","%2526"))}}
function Td(a){a="container=videoPlayerSettings&"+a;gf("datastoreflashdiv","http://video.google.com/datastore.swf",a)};function wa(a){if(a.indexOf("/videoswv?")==0){P(a,cj);Xj();Af();g("matchedsegs").innerHTML="<font size=-1>"+MSG_SEARCHING+"<br>&nbsp;</font>"}else if(a.indexOf("/videorelated?")==0){P(a,bj);X("relatedvids",false)}else if(a.indexOf("/videomorefrom?")==0){P(a,Yi);X("morefromvids",false)}else if(a.indexOf("/videoplaylistnext?")==0){P(a,$i);X("next10",false)}else if(a.indexOf("/videostats?"==0)){P(a,fj)}else{return}}function ik(){if(VP_next10DocId=="0"){X("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;wa(ha(j))}function jk(a){var b=window.location.search.split("docid=")[1].split("&")[0],c="/videoplaylistnext?docid="+a+"&num=10&q="+VP_myPlaylist+"p"+b;wa(ha(c))}function cj(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 bj(a){if(a.readyState==4){mf("relatedvidsactive",a.responseText);X("relatedvids",true)}}function Yi(a){if(a.readyState==4){mf("morefromvidsactive",a.responseText);X("morefromvids",true)}}function $i(a){if(a.readyState==4){Jk(a.responseText);X("next10",true)}}function fj(a){}function Vi(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=y(h,
"error-code"),j=y(h,"message");if(i){if(i.indexOf("ok")==0){p(g("flag-form"))}f=j}}}g("flag-message").innerHTML=f;q(g("flag-message"))}function bh(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 Pg(a,b,c){var d=gb(),e=J(d,d,"flag-request");J(d,e,"cid",b);J(d,e,"flag",c);g("flag-message").innerHTML=MSG_SAVING_FEEDBACK;q(g("flag-message"));P(a+"?frame=comment"+VP_langParam,Vi,d,"flagorama",'text/xml; charset="utf-8"')}
function tg(){Oj();qf();Rj();Sj();yf(false)}function Oj(){var a=Ca(VP_playlistSettingsCookieName);if(!a){Qb()}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 Rj(){if(g("collapselink")){if(VP_collapseDescr){g("collapselink").onclick()}else{g("expandlink").onclick()}}}function Sj(){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 xf(){Sb(VP_playlistCookieName,VP_myPlaylist,VP_cookieDomain);Sb(VP_playlistIndexCookieName,VP_myPlaylistIndex,VP_cookieDomain);yf(true);Qb()}function ck(a){var b=Ca(VP_playlistSettingsCookieName);if(!b){Qb();return}Ra(VP_playlistSettingsCookieName,(a?"1":"0")+
b.substring(1,3),VP_cookieDomain)}function dk(a){VP_collapseDescr=a;var b=Ca(VP_playlistSettingsCookieName);if(!b){Qb();return}Ra(VP_playlistSettingsCookieName,b.charAt(0)+(a?"1":"0")+b.charAt(2),VP_cookieDomain)}function fk(a){VP_visibleTab=a;var b=Ca(VP_playlistSettingsCookieName);if(!b){Qb();return}Ra(VP_playlistSettingsCookieName,b.substring(0,2)+a,VP_cookieDomain)}function Qb(){Ra(VP_playlistSettingsCookieName,(VP_autoplayEnabled?"1":"0")+(VP_collapseDescr?"1":"0")+VP_visibleTab,VP_cookieDomain)}
function yf(a){if(a){Sb(VP_playlistParametersCookieName,"1",VP_cookieDomain)}else{Sb(VP_playlistParametersCookieName,"0",VP_cookieDomain)}}function Rg(){VP_autoplayEnabled=!VP_autoplayEnabled;ck(VP_autoplayEnabled);qf()}function Rb(a,b){var c=g(a);if(c&&c.style&&c.style){c.style.display=b}}function qf(){if(VP_autoplayEnabled){Rb("autoplayon","inline");Rb("autoplayoff","none")}else{Rb("autoplayon","none");Rb("autoplayoff","inline")}}function Jk(a){var b=a.split("\r\n"),c=window.location.search.split("docid=")[1].split("&")[0];
if(b[0]=="0"){Eg();g("upnextvids").innerHTML="";return}var d=Yg(b,c);g("upnextvids").innerHTML=d;g("summary").scrollTop=0;Kk(b,c)}function Eg(){X("nextlink",false);X("prevlink",false);X("next10link",false)}function X(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 Yg(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+=Xg(f)}c+="</tbody> </table>";return c}function Xg(a){var b='<td> <a href="/videoplay?docid='+a[0]+VP_queryParam+VP_langParam+'" 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="/videoplay?docid='+a[0]+VP_queryParam+VP_langParam+'" 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 Kk(a,b){var c=a.length,d=c-3,e=a[d];if(e=="0"){X("prevlink",false)}else{g("playlistPrev").href="/videoplay?docid="+e+VP_queryParam+VP_langParam;X("prevlink",true)}if(c>5){d=2;g("playlistNext").href="/videoplay?docid="+a[d].split("\t")[0]+VP_queryParam+VP_langParam;X("nextlink",true)}else{X("nextlink",false)}if(c==16){d=12;VP_next10DocId=a[d].split("\t")[0];X("next10link",
true)}else{VP_next10DocId="0";X("next10link",false)}if(!oj(VP_myPlaylist)){d=c-2;Ok(a[d],b,e)}}function oj(a){if(a.length>=4){var b=a.indexOf(",0",a.length-4);if(b>=0){return true}}return false}function Ok(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,l=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;l=1}}else if(e<0){if(f==0){d[1]=b;l=1}else{d[0]=b;l=0}}}else if(e<0){d[0]=
b;l=0}a=d.join(",")}VP_myPlaylist=a;VP_myPlaylistIndex=l}function mf(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='/videoplay?docid="+e[0]+VP_langParam+"' 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='/videoplay?docid="+e[0]+VP_langParam+"' 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 ya(a,b,c){a.className=b;a.innerHTML=c}function Xj(){ya(g("matchedsegs"),"","");ya(g("nummatches"),"","")}function Af(){p(g("summary"));q(g("matches"))}function Qk(a){var b=window.location.search.split("docid=")[1].split("&")[0];wa("/videoswv?docid="+b+"&q="+pb(a));return false}function Pk(a,b,c){if(b){return pf(a)}else if(c){return Qk(a)}else{Af();return false}}function Jf(a){var b=
g("VideoPlayback");b.SetVariable("seekTime",a/1000)}function Fg(){var a=g("VideoPlayback");a.SetVariable("doPlay",true)}function eh(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="+pb(h)+"&docid="+pb(b)+"&fscid="+pb(c)+"&windowtitle="+pb(window.document.title+" - "+MSG_FULL_SCREEN),"GoogleVideo","toolbar=no,status=no,resizable=yes,scrollbars=0");i.focus()}function Lg(){window.moveTo(0,0);window.resizeTo(screen.availWidth,
screen.availHeight)}function Vj(){document.body.scroll="no"}function ha(a){return a+"&ms="+(new Date).getTime()}function Hg(){if(!VP_autoplayEnabled){return}rc("finished");wb=false;if(VP_waitForSale){setTimeout(Bf,10000)}else{setTimeout(Bf,5000)}}function Bf(){if(!VP_autoplayEnabled||wb||db("send")||db("embed")||db("videopurchasediv")||g("playlistNext").href==null){return}xf();window.location.href=g("playlistNext").href+"&auto=true"}function db(a){return g(a).style.display==""}var eb=["upnext","details",
"morefrom","related","comments","flag"];function Bk(a){for(var b=0;b<eb.length;b++){var c=g(eb[b]);if(c){if(a==eb[b]){g("l"+eb[b]).className="nodecoration";q(c)}else{g("l"+eb[b]).className="decorated";p(c)}}}}var Xb,Na,Ma,Fd,Cd=2,Dd=19;function rb(a,b){sk(a,b,"px")}function sk(a,b,c){fb=g(a);if(fb===null||fb.style==null||b<0){return}var d=b.toString()+c;fb.style.height=d}function lf(){if(!(Xb=window.innerHeight)){if(!(Xb=document.documentElement.clientHeight)){Xb=document.body.clientHeight}}Na=Xb-
g("playvideoblock").offsetTop;Fd=Na-g("flashobjectplaceholder").offsetTop;rb("playvideoblock",Na);rb("flashobjectplaceholder",Fd);rb("playrightblock",Na);rb("summary",Na-Cd);rb("matches",Na-Cd);Ma=Na-g("abovecorner").offsetHeight-Dd;rb("corner",Ma);if(this["onWindowResizeExtra"]){Dj()}}function mj(a,b){var c=document.createElement("div");g(b).appendChild(c);c.innerHTML=a}var vb=0,Gd=0,Ba="paused",wb=false;function uk(a,b,c){if(Ba!=a){wa(ha("/videostats?error=BADSTATE&os="+a+"&ns="+b+"&ps="+Ba))}if(a==
"playing"){rc(b)}else{wb=true;if(b=="playing"){Gj(c)}}Ba=b}function vg(a){wb=true;if(Ba=="playing"){rc("scrub")}}function Kg(a){wb=true}function Gj(a){vb=a;var b=new Date;Gd=b.getTime()}function rc(a){if(vb==-1){return}var b=new Date,c=(b.getTime()-Gd)/1000,d=vb+c,e=window.location.search.split("docid=")[1].split("&")[0];wa(ha("/videostats?docid="+e+"&begin="+vb+"&end="+d+"&endEvent="+a+"&frame=stats"+(VP_sponsoredVideoAdDocId!=null?"&adDocId="+VP_sponsoredVideoAdDocId:"")));vb=-1}function Cj(){if(Ba==
"playing"){rc("unload")}}function ef(){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 xj(){var a=g("playvideoblock");if(a){if(VP_divOffset!=a.offsetTop||a.clientHeight<a.scrollHeight){VP_divOffset=a.offsetTop;lf()}}var b=ef();if(b!=VP_hashPos){VP_hashPos=b;Jf(VP_hashPos*1000)}}function qj(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,l=0,r=0;switch(i.length){case 2:l=i[0];r=i[1];break;case 3:j=i[0];l=i[1];r=i[2];break}var I=(3600*j+60*l+1*r)*1000;if(I<=0||I>VP_videoDurationMs){c=c+f}else{var o="vpseek("+I+");doPlay();return false;";c=c+'<a onclick="'+
o+'" href="#'+j+"h"+l+"m"+r+'s">'+f+"</a>"}}return c+a}function Qa(a,b){if(typeof b=="string"){a.value=b}a.style.color="black";a.style.fontStyle="normal";a.onfocus=null}function Hf(a,b,c,d,e,f){var h=gb(),i=J(h,h,"review");J(h,i,"docid",b);if(f){J(h,i,"name",e?e:"");J(h,i,"text",f)}else{g("commentlist").innerHTML="";g("gettingreviews").innerHTML=MSG_GETTING_REVIEWS;q(g("gettingreviews"))}J(h,i,"sort",c?"rating":"date");P(a+"?frame=comment"+VP_langParam,cf,h,d,'text/xml; charset="utf-8"')}function cf(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){sb(f,MSG_REVIEW_PUBLISH_ERROR,e)}else{var j=a.responseXML.documentElement;if(j.tagName=="error"){var l="errorin";l+=y(j,"errorsource");l+="_"+e;var r=y(j,"errormessage"),I=g(l);if(I){f=I}sb(f,r,e)}else if(j.tagName!=
"reviews"){sb(f,"Unknown error",e)}else{var o="";i=y(j,"value")=="true";var V=j.getElementsByTagName("review"),S;for(S=0;S<V.length;S++){var B=V.item(S);o+='<div style="margin:2px 0pt .5em;" id="comment';o+=y(B,"id");o+='"><font size="-1"><b>';o+=y(B,"name");o+="</b>&nbsp;&nbsp;&nbsp;";if(VP_canUserDeleteComments){o+='<span align="right" class="markcomment" onclick="markComment(';o+=y(B,"id");o+=", 'OPS',";o+='MSG_MARKING);"';o+=' id="OPS'+y(B,"id")+'">';o+="<nobr>"+MSG_DELETE_COMMENT+"</nobr>";o+=
"</span>"}o+="<br/>";var la=y(B,"rating");if(la&&la>0){o+=Cg(la,la!=null);o+="&nbsp;"}o+="<font color=green>";o+="<nobr>"+y(B,"textdate")+"</nobr>";o+="</font>";o+="&nbsp;";o+='<span align="right" class="markcomment" ';if(i){o+='onclick="markComment(';o+=y(B,"id");o+=", 'SPAM', MSG_MARKING);\""}else{o+="onclick='this.innerHTML = \"<br/>";o+=y(j,"reason");o+='"; this.className="error"\''}o+=' id="SPAM'+y(B,"id")+'">';o+="<nobr>"+MSG_MARK_AS_SPAM+"</nobr>";o+="</span>";o+="<br/>";o+=qj(y(B,"text"));
o+="</font></div>"}g("commentlist").innerHTML=o;p(g("leavecomment_top"));p(g("topreviewshown"));q(g("topreviewhidden"));q(g("commentlist"));if(V.length==0){q(g("nocomments"));p(g("sortit"))}else{p(g("nocomments"));q(g("sortit"))}if(e=="top"){g("reviewtext_top").value="";Qa(g("reviewtext_bottom"),"");Qa(g("reviewername_bottom"),g("reviewername_top").value)}else if(e=="bottom"){g("reviewtext_bottom").value="";Qa(g("reviewtext_top"),"");Qa(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 za=y(j,"reason");g("reviewpublisherror_top").innerHTML=za;g("reviewpublisherror_bottom").innerHTML=za;q(g("reviewpublisherror_top"));q(g("reviewpublisherror_bottom"))}var Aa=g("leavecomment_bottom");q(Aa);q(g("reviewboxandtext_bottom"));q(g("reviewblankdiv"));if(h.scrollHeight-Aa.scrollHeight>h.clientHeight){q(g("reviewboxandtext_top"));
p(g("reviewblankdiv"))}else{p(g("reviewboxandtext_top"));q(g("reviewblankdiv"))}}var vj=[];function wj(a,b,c){var d=gb(),e=J(d,d,"review");J(d,e,"docid",VP_docIdString);J(d,e,"mark",b);J(d,e,"id",a);if(b=="SPAM"){P(VP_commentsUrl+"?frame=markcomment"+VP_langParam,Xi,d,null,'text/xml; charset="utf-8"');g("SPAM"+a).innerHTML=MSG_MARKING;g("SPAM"+a).className="";g("SPAM"+a).style.color="#cd3700";vj.push(setTimeout("hideEle(ele('comment"+a+"'))",250))}else{P(VP_commentsUrl+"?frame=markcomment"+VP_langParam,
cf,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 Xi(){}function sb(a,b,c){a.innerHTML=b;q(a);if(c){var d=g("summary");if(c!="bottom"){d.scrollTop=0}else{d.scrollTop=d.scrollHeight-d.clientHeight}}}function Ij(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"){sb(f,MSG_EMPTY_REVIEW,c);return}if(e.length>
512){sb(f,MSG_REVIEW_TOO_LONG,c);return}if(d&&d.length>60){sb(f,MSG_NAME_TOO_LONG,c);return}g("publishreview_"+c).disabled=true;var h=g("reviewername_"+c);if(h.style.color!="black"){Qa(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;Pb();Hf(a,b,db("commentsbyrating"),c,d,e)}var Md=false;function ej(){var a=window.location.search.split("docid=")[1].split("&")[0];
if(db("sharelinks")){p(g("sharelinks"));p(g("send"));p(g("embed"));wa(ha("/videostats?shareclick=close&docid="+a+"&frame=share&ps="+Ba))}else{q(g("sharelinks"));df();wa(ha("/videostats?shareclick=open&docid="+a+"&frame=share&ps="+Ba))}if(!Md){_initEmailAutocomplete(g("to"),"/data/contacts?max=250",false);Md=true}}function df(){var a=window.location.search.split("docid=")[1].split("&")[0];g("lsend").className="nodecoration";g("lembed").className="decorated";p(g("embed"));q(g("send"));g("sendform").from.focus();
wa(ha("/videostats?shareclick=send&docid="+a+"&frame=share&ps="+Ba))}function Ui(){var a=window.location.search.split("docid=")[1].split("&")[0];g("lembed").className="nodecoration";g("lsend").className="decorated";p(g("send"));q(g("embed"));wa(ha("/videostats?shareclick=embed&docid="+a+"&frame=share&ps="+Ba))}function jj(a){var b=g("to-label");if(VP_usePicker&&b){b.innerHTML='<a href="javascript:void(0)" onclick="handlePickerClick(event)">'+b.innerHTML+"</a>"}}function Zi(a){pi(VP_contactsBaseUrl+
"/ui/");qi("to",a)}var nd=false,md=-1;function rk(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;nd=true;zk(a,b,c,d)}function Fj(a,b,c,d){nd=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 Ej(a,b,c,d){d.style.cursor="default";if(!nd){g("communityRating").style.display="inline";if(md==-1){qb(c,b)}else{qb(md,
b)}}}function zk(a,b,c,d){var e=gb(),f=J(e,e,"rating");J(e,f,"docid",b);J(e,f,"user_rating",c);P(a+"?frame=rating"+VP_langParam,aj,e,d,'text/xml; charset="utf-8"')}function aj(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=y(h,"user_rating");if(h.tagName=="error"){var j=
y(h,"errormessage");f.innerHTML=j;f.style.display="inline";qb(i,e)}else{var l=y(h,"community_rating"),r=y(h,"num_raters");qb(i,"top");qb(i,"top_bottom");qb(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;md=i;Ik(l,r);setTimeout("concealRatingInfo()",5000)}}}function zg(){g("rating_info_top").style.display="none";g("rating_info_top_bottom").style.display="none";g("rating_info_bottom_bottom").style.display=
"none";g("communityRating").style.display="inline";g("rating_info_top").innerHTML="";g("rating_info_top_bottom").innerHTML="";g("rating_info_bottom_bottom").innerHTML=""}function qb(a,b){g("rating_info_"+b).innerHTML="";g("rating_info_"+b).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(a>=2){g("2_"+b).src=VP_largeStarMidOn}if(a>=
3){g("3_"+b).src=VP_largeStarMidOn}if(a>=4){g("4_"+b).src=VP_largeStarMidOn}if(a>=5){g("5_"+b).src=VP_largeStarRightOn}}function Cg(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 sg(){if(!VP_allowAnnotations){return}Mj();if(VP_commentName&&VP_commentName!=""){if(g("reviewername_bottom")){Qa(g("reviewername_bottom"),VP_commentName)}if(g("reviewername_top")){Qa(g("reviewername_top"),
VP_commentName)}}if(VP_showMoreTags==true){xb("common_tags","true")}else{xb("common_tags","false")}}function Mj(){var a=Ca(VP_annotationsCookieName);if(!a){Pb()}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 Pb(){var a=Ca(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;Ra(VP_annotationsCookieName,b,VP_cookieDomain)}function Ud(a){var b="targetId="+a+"&functionName=pause";gf("proxyflashdiv","/proxy.swf",b)}function gf(a,b,c){var d;if(qc){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 Ik(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 Zd(){if(!VP_subtitleEnabled){return""}else{return"&subtitle="+(VP_subtitleOn?"on":"off")}}function Uf(a,b){if(a=="subtitleUpdate"){var c=b.split(",");VP_subtitleEnabled=c[0]=="true"?true:false;VP_subtitleOn=c[1]=="true"?true:false}}function yj(){};function Dj(){var a=g("videopurchasediv"),b=g("videopurchaseiframe");if(a&&b){a.style.height=Ma;b.style.height=Ma}}function Ck(){p(g("thumbsetc"));p(g("purchaseorthumbs"));q(g("videopurchasediv"));q(g("thumbsorpurchase"));Ma=Na-g("abovecorner").offsetHeight-Dd;g("corner").style.height=Ma;g("videopurchasediv").style.height=Ma;g("videopurchaseiframe").style.height=Ma}function Dk(){p(g("videopurchasediv"));p(g("thumbsorpurchase"));q(g("thumbsetc"));q(g("purchaseorthumbs"))}function zj(a,b,c,d){if(!d||
d=="gvp"){q(g("gvpdownloaddiv"));p(g("directdownloaddiv"))}else{q(g("directdownloaddiv"));p(g("gvpdownloaddiv"))}q(g("videodownloaddiv"));if(!d||d=="gvp"){vf(b,c)}else{if(g("macdownloaddiv")){p(g("macdownloaddiv"))}if(g("ipoddownloaddiv")){p(g("ipoddownloaddiv"))}if(g("pspdownloaddiv")){p(g("pspdownloaddiv"))}q(g(d+"downloaddiv"));window.setTimeout(function(){pd(g(d+"downloadlink").href)},0)}Ud(a)}function rf(){var a=top.frames["accountheaderframe"];if(a){a.location.href=a.location.href}}function Qj(a){rf();
var b=top.frames["videopurchaseiframe"];if(b){b.location.href=a}};function Kj(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 Fk(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"]=zc;window["appendElement"]=J;window["applyAnnotationsSettings"]=sg;window["applyPlaylistSettings"]=tg;window["backLinkClicked"]=ug;window["beginScrub"]=vg;window["blogpostInitialize"]=wg;window["checkEnterKey"]=yg;window["concealRatingInfo"]=zg;window["contents"]=Ag;window["DataStoreHandler"]=Tf;window["deleteCookie"]=Dg;window["disableButton"]=Rd;window["discloseTags"]=xb;window["donePlaying"]=Hg;window["doPause"]=Ud;window["doPlay"]=Fg;window["dropdownNav"]=Ig;window["ele"]=g;
window["endScrub"]=Kg;window["expand"]=Lg;window["flagVideo"]=Pg;window["flash7OrHigher"]=Qg;window["FlashRequest"]=Vf;window["flipAutoplay"]=Rg;window["getCheckedValue"]=bh;window["getElementValue"]=y;window["getNoCacheURL"]=ha;window["getPrefCookie"]=dh;window["getXmlDocument"]=gb;window["goFullscreen"]=eh;window["handleEmbedHTMLClick"]=Ui;window["handlePickerClick"]=Zi;window["handleSendEmailLinkClick"]=df;window["handleSharePanelClick"]=ej;window["hashTextToTime"]=ef;window["hideEle"]=p;window["insertHtmlInEle"]=
mj;window["initializeResultBoxes"]=lj;window["initPicker"]=jj;window["isNoneSelected"]=pj;window["isVisName"]="isVisible";window[window["isVisName"]]=db;window["loadEmailCookieForFromAndTo"]=rj;window["loginButtonClicked"]=kf;window["massageReviewInput"]=Qa;window["markComment"]=wj;window["monitorDivOffset"]=xj;window["monitorHashTime"]=yj;window["onDownloadClick"]=zj;window["onGenreLoad"]=Aj;window["onGenreWindowResize"]=Bj;window["onUnloadPlaybackSegmentEnded"]=Cj;window["onWindowResize"]=lf;window["outStars"]=
Ej;window["overStars"]=Fj;window["proceedToSubmit"]=nf;window["processResponse"]=of;window["publishComment"]=Ij;window["publishTag"]=Jj;window["pvsearch"]=pf;window["qs"]=Kj;window["recordFlaggedVideo"]=Pj;window["redirectToPurchase"]=Qj;window["refreshGaiaHeader"]=rf;window["removeScrollBars"]=Vj;window["resizePlayer"]=Zj;window["ResultBox"]=Wf;window["resultBoxNextClicked"]=$j;window["resultBoxPrevClicked"]=ak;window["rowToggleAll"]=bk;window["saveCollapseDescr"]=dk;window["saveAnnotationsSettings"]=
Pb;window["saveVisibleTab"]=fk;window["selectDownload"]=vf;window["sendAjaxRequest"]=P;window["sendPlaylistNextRequest"]=ik;window["sendPlaylistPrevRequest"]=jk;window["sendRequest"]=wa;window["sendSendLinkRequest"]=kk;window["setCookie"]=nk;window["setElementDisplay"]=Rb;window["setEmailCookieForFromAndTo"]=pk;window["setMaxLength"]=qk;window["setMyPlaylist"]=xf;window["setPermanentCookie"]=Ra;window["setSessionCookie"]=Sb;window["setStars"]=rk;window["showEle"]=q;window["stateChanged"]=uk;window["submitButtonClicked"]=
xk;window["switchTab"]=Bk;window["switchToPurchase"]=Ck;window["switchToThumbs"]=Dk;window["tagInputFieldOnKeyDown"]=Ek;window["togDisp"]=Fk;window["toggleRow"]=Gk;window["toggleVisibility"]=Hk;window["updateReviews"]=Hf;window["updateTags"]=vc;window["vpsearch"]=Pk;window["vpseek"]=Jf;window["VMT_deselectMenu"]=Yf;window["VMT_hideMenu"]=Bd;window["VMT_hideMenuButtonFromTimeout"]=Zf;window["VMT_hideMenuTimeout"]=$f;window["VMT_persistMenu"]=bg;window["VMT_selectMenu"]=cg;window["VMT_showMenuFromButtonTimeout"]=
eg;window["VMT_toggleMenu"]=fg;window["VP_linksArray"]=eb;window["VUP_checkUploadStatus"]=gg;window["getSubtitleArgForFlash"]=Zd;window["DoFSCommand"]=Uf;
