// JavaScript Document
function b(a){throw a;}var h=true,i=null,j=false,l=l||{};l.global=this;l.DEBUG=h;l.LOCALE="en";l.zc=i;l.provide=function(a){l.Df(a)};l.Df=function(a,c,d){a=a.split(".");d=d||l.global;!(a[0]in d)&&d.execScript&&d.execScript("var "+a[0]);for(var e;a.length&&(e=a.shift());)if(!a.length&&l.isDef(c))d[e]=c;else d=d[e]?d[e]:(d[e]={})};l.getObjectByName=function(a,c){a=a.split(".");c=c||l.global;for(var d;d=a.shift();)if(c[d])c=c[d];else return i;return c};
l.globalize=function(a,c){c=c||l.global;for(var d in a)c[d]=a[d]};l.addDependency=function(){};l.require=function(){};l.useStrictRequires=j;l.basePath="";l.nullFunction=function(){};l.identityFunction=function(){return arguments[0]};l.abstractMethod=function(){b(Error("unimplemented abstract method"))};l.addSingletonGetter=function(a){a.getInstance=function(){return a.Fi||(a.Fi=new a)}};
l.typeOf=function(a){var c=typeof a;if(c=="object")if(a){if(a instanceof Array||!(a instanceof Object)&&Object.prototype.toString.call(a)=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(!(a instanceof Object)&&(Object.prototype.toString.call(a)=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call")))return"function"}else return"null";
else if(c=="function"&&typeof a.call=="undefined")return"object";return c};l.Si=function(a,c){if(c in a)for(var d in a)if(d==c&&Object.prototype.hasOwnProperty.call(a,c))return h;return j};l.kj=function(a,c){return a instanceof Object?Object.prototype.propertyIsEnumerable.call(a,c):l.Si(a,c)};l.isDef=function(a){return a!==undefined};l.isNull=function(a){return a===i};l.isDefAndNotNull=function(a){return a!=i};l.isArray=function(a){return l.typeOf(a)=="array"};
l.isArrayLike=function(a){var c=l.typeOf(a);return c=="array"||c=="object"&&typeof a.length=="number"};l.isDateLike=function(a){return l.isObject(a)&&typeof a.getFullYear=="function"};l.isString=function(a){return typeof a=="string"};l.isBoolean=function(a){return typeof a=="boolean"};l.isNumber=function(a){return typeof a=="number"};l.isFunction=function(a){return l.typeOf(a)=="function"};l.isObject=function(a){a=l.typeOf(a);return a=="object"||a=="array"||a=="function"};
l.getHashCode=function(a){if(a.hasOwnProperty&&a.hasOwnProperty(l.Pa))return a[l.Pa];a[l.Pa]||(a[l.Pa]=++l.Di);return a[l.Pa]};l.removeHashCode=function(a){"removeAttribute"in a&&a.removeAttribute(l.Pa);try{delete a[l.Pa]}catch(c){}};l.Pa="closure_hashCode_"+Math.floor(Math.random()*2147483648).toString(36);l.Di=0;l.cloneObject=function(a){var c=l.typeOf(a);if(c=="object"||c=="array"){if(a.clone)return a.clone.call(a);c=c=="array"?[]:{};for(var d in a)c[d]=l.cloneObject(a[d]);return c}return a};
l.bind=function(a,c){var d=c||l.global;if(arguments.length>2){var e=Array.prototype.slice.call(arguments,2);return function(){var f=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(f,e);return a.apply(d,f)}}else return function(){return a.apply(d,arguments)}};l.partial=function(a){var c=Array.prototype.slice.call(arguments,1);return function(){var d=Array.prototype.slice.call(arguments);d.unshift.apply(d,c);return a.apply(this,d)}};l.mixin=function(a,c){for(var d in c)a[d]=c[d]};
l.now=Date.now||function(){return(new Date).getTime()};l.globalEval=function(a){if(l.global.execScript)l.global.execScript(a,"JavaScript");else if(l.global.eval){if(l.zc==i){l.global.eval("var _et_ = 1;");if(typeof l.global._et_!="undefined"){delete l.global._et_;l.zc=h}else l.zc=j}if(l.zc)l.global.eval(a);else{var c=l.global.document,d=c.createElement("script");d.type="text/javascript";d.defer=j;d.appendChild(c.createTextNode(a));c.body.appendChild(d);c.body.removeChild(d)}}else b(Error("goog.globalEval not available"))};
l.typedef=h;l.getCssName=function(a,c){a=a+(c?"-"+c:"");return l.Ad&&a in l.Ad?l.Ad[a]:a};l.setCssNameMapping=function(a){l.Ad=a};l.getMsg=function(a,c){c=c||{};for(var d in c)a=a.replace(new RegExp("\\{\\$"+d+"\\}","gi"),c[d]);return a};l.exportSymbol=function(a,c,d){l.Df(a,c,d)};l.exportProperty=function(a,c,d){a[c]=d};l.inherits=function(a,c){function d(){}d.prototype=c.prototype;a.h=c.prototype;a.prototype=new d;a.prototype.constructor=a};l.MODIFY_FUNCTION_PROTOTYPES=h;
if(l.MODIFY_FUNCTION_PROTOTYPES){Function.prototype.bind=function(a){if(arguments.length>1){var c=Array.prototype.slice.call(arguments,1);c.unshift(this,a);return l.bind.apply(i,c)}else return l.bind(this,a)};Function.prototype.partial=function(){var a=Array.prototype.slice.call(arguments);a.unshift(this,i);return l.bind.apply(i,a)};Function.prototype.inherits=function(a){l.inherits(this,a)};Function.prototype.mixin=function(a){l.mixin(this.prototype,a)}};l.string={};l.string.Unicode={NBSP:"\u00a0"};l.string.startsWith=function(a,c){return a.indexOf(c)==0};l.string.endsWith=function(a,c){var d=a.length-c.length;return d>=0&&a.lastIndexOf(c,d)==d};l.string.caseInsensitiveStartsWith=function(a,c){return l.string.caseInsensitiveCompare(c,a.substr(0,c.length))==0};l.string.caseInsensitiveEndsWith=function(a,c){return l.string.caseInsensitiveCompare(c,a.substr(a.length-c.length,c.length))==0};
l.string.subs=function(a){for(var c=1;c<arguments.length;c++){var d=String(arguments[c]).replace(/\$/g,"$$$$");a=a.replace(/\%s/,d)}return a};l.string.collapseWhitespace=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};l.string.p=function(a){return/^[\s\xa0]*$/.test(a)};l.string.isEmptySafe=function(a){return l.string.p(l.string.makeSafe(a))};l.string.isBreakingWhitespace=function(a){return!/[^\t\n\r ]/.test(a)};l.string.isAlpha=function(a){return!/[^a-zA-Z]/.test(a)};
l.string.isNumeric=function(a){return!/[^0-9]/.test(a)};l.string.isAlphaNumeric=function(a){return!/[^a-zA-Z0-9]/.test(a)};l.string.isSpace=function(a){return a==" "};l.string.isUnicodeChar=function(a){return a.length==1&&a>=" "&&a<="~"||a>="\u0080"&&a<="\ufffd"};l.string.stripNewlines=function(a){return a.replace(/(\r\n|\r|\n)+/g," ")};l.string.canonicalizeNewlines=function(a){return a.replace(/(\r\n|\r|\n)/g,"\n")};l.string.normalizeWhitespace=function(a){return a.replace(/\xa0|\s/g," ")};
l.string.normalizeSpaces=function(a){return a.replace(/\xa0|[ \t]+/g," ")};l.string.trim=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};l.string.trimLeft=function(a){return a.replace(/^[\s\xa0]+/,"")};l.string.trimRight=function(a){return a.replace(/[\s\xa0]+$/,"")};l.string.caseInsensitiveCompare=function(a,c){a=String(a).toLowerCase();c=String(c).toLowerCase();return a<c?-1:a==c?0:1};l.string.Tg=/(\.\d+)|(\d+)|(\D+)/g;
l.string.numerateCompare=function(a,c){if(a==c)return 0;if(!a)return-1;if(!c)return 1;for(var d=a.toLowerCase().match(l.string.Tg),e=c.toLowerCase().match(l.string.Tg),f=Math.min(d.length,e.length),g=0;g<f;g++){var k=d[g],n=e[g];if(k!=n){a=parseInt(k,10);if(!isNaN(a)){c=parseInt(n,10);if(!isNaN(c)&&a-c)return a-c}return k<n?-1:1}}if(d.length!=e.length)return d.length-e.length;return a<c?-1:1};l.string.zi=/^[a-zA-Z0-9\-_.!~*'()]*$/;
l.string.urlEncode=function(a){a=String(a);if(!l.string.zi.test(a))return encodeURIComponent(a);return a};l.string.urlDecode=function(a){return decodeURIComponent(a.replace(/\+/g," "))};l.string.newLineToBr=function(a,c){return a.replace(/(\r\n|\r|\n)/g,c?"<br />":"<br>")};
l.string.htmlEscape=function(a,c){if(c)return a.replace(l.string.df,"&amp;").replace(l.string.Gg,"&lt;").replace(l.string.dg,"&gt;").replace(l.string.dh,"&quot;");else{if(!l.string.ni.test(a))return a;if(a.indexOf("&")!=-1)a=a.replace(l.string.df,"&amp;");if(a.indexOf("<")!=-1)a=a.replace(l.string.Gg,"&lt;");if(a.indexOf(">")!=-1)a=a.replace(l.string.dg,"&gt;");if(a.indexOf('"')!=-1)a=a.replace(l.string.dh,"&quot;");return a}};l.string.df=/&/g;l.string.Gg=/</g;l.string.dg=/>/g;l.string.dh=/\"/g;
l.string.ni=/[&<>\"]/;l.string.unescapeEntities=function(a){if(l.string.contains(a,"&"))return"document"in l.global&&!l.string.contains(a,"<")?l.string.dj(a):l.string.ej(a);return a};l.string.dj=function(a){var c=l.global.document.createElement("a");c.innerHTML=a;c[l.string.Ye]&&c[l.string.Ye]();a=c.firstChild.nodeValue;c.innerHTML="";return a};
l.string.ej=function(a){return a.replace(/&([^;]+);/g,function(c,d){switch(d){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if(d.charAt(0)=="#"){d=Number("0"+d.substr(1));if(!isNaN(d))return String.fromCharCode(d)}return c}})};l.string.Ye="normalize";l.string.whitespaceEscape=function(a,c){return l.string.newLineToBr(a.replace(/  /g," &#160;"),c)};
l.string.stripQuotes=function(a,c){for(var d=c.length,e=0;e<d;e++){var f=d==1?c:c.charAt(e);if(a.charAt(0)==f&&a.charAt(a.length-1)==f)return a.substring(1,a.length-1)}return a};l.string.truncate=function(a,c,d){if(d)a=l.string.unescapeEntities(a);if(a.length>c)a=a.substring(0,c-3)+"...";if(d)a=l.string.htmlEscape(a);return a};
l.string.truncateMiddle=function(a,c,d){if(d)a=l.string.unescapeEntities(a);if(a.length>c){var e=Math.floor(c/2),f=a.length-e;e+=c%2;a=a.substring(0,e)+"..."+a.substring(f)}if(d)a=l.string.htmlEscape(a);return a};l.string.se={"\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\x0B",'"':'\\"',"'":"\\'","\\":"\\\\"};l.string.quote=function(a){a=String(a);if(a.quote)return a.quote();else{for(var c=['"'],d=0;d<a.length;d++)c[d+1]=l.string.escapeChar(a.charAt(d));c.push('"');return c.join("")}};
l.string.escapeChar=function(a){if(a in l.string.se)return l.string.se[a];var c=a,d=a.charCodeAt(0);if(d>31&&d<127)c=a;else{if(d<256){c="\\x";if(d<16||d>256)c+="0"}else{c="\\u";if(d<4096)c+="0"}c+=d.toString(16).toUpperCase()}return l.string.se[a]=c};l.string.toMap=function(a){for(var c={},d=0;d<a.length;d++)c[a.charAt(d)]=h;return c};l.string.contains=function(a,c){return a.indexOf(c)!=-1};
l.string.removeAt=function(a,c,d){var e=a;if(c>=0&&c<a.length&&d>0)e=a.substr(0,c)+a.substr(c+d,a.length-c-d);return e};l.string.remove=function(a,c){c=new RegExp(l.string.regExpEscape(c),"");return a.replace(c,"")};l.string.ra=function(a,c){c=new RegExp(l.string.regExpEscape(c),"g");return a.replace(c,"")};l.string.regExpEscape=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};l.string.repeat=function(a,c){return(new Array(c+1)).join(a)};
l.string.padNumber=function(a,c,d){a=l.isDef(d)?a.toFixed(d):String(a);d=a.indexOf(".");if(d==-1)d=a.length;return l.string.repeat("0",Math.max(0,c-d))+a};l.string.makeSafe=function(a){return a==i?"":String(a)};l.string.buildString=function(){return Array.prototype.join.call(arguments,"")};l.string.getRandomString=function(){return Math.floor(Math.random()*2147483648).toString(36)+(Math.floor(Math.random()*2147483648)^(new Date).getTime()).toString(36)};
l.string.compareVersions=function(a,c){var d=0;a=l.string.trim(String(a)).split(".");c=l.string.trim(String(c)).split(".");for(var e=Math.max(a.length,c.length),f=0;d==0&&f<e;f++){var g=a[f]||"",k=c[f]||"",n=new RegExp("(\\d*)(\\D*)","g"),o=new RegExp("(\\d*)(\\D*)","g");do{var q=n.exec(g)||["","",""],r=o.exec(k)||["","",""];if(q[0].length==0&&r[0].length==0)break;d=q[1].length==0?0:parseInt(q[1],10);var u=r[1].length==0?0:parseInt(r[1],10);d=l.string.wd(d,u)||l.string.wd(q[2].length==0,r[2].length==
0)||l.string.wd(q[2],r[2])}while(d==0)}return d};l.string.wd=function(a,c){if(a<c)return-1;else if(a>c)return 1;return 0};l.string.ci=4294967296;l.string.hashCode=function(a){for(var c=0,d=0;d<a.length;++d){c=31*c+a.charCodeAt(d);c%=l.string.ci}return c};l.string.gj=l.now();l.string.createUniqueString=function(){return"goog_"+l.string.gj++};l.string.toNumber=function(a){var c=Number(a);if(c==0&&l.string.p(a))return NaN;return c};l.userAgent={};l.userAgent.flash={};
(function(){function a(n){n=n.match(/[\d]+/g);n.length=3;return n.join(".")}var c=j,d="";if(navigator.plugins&&navigator.plugins.length){var e=navigator.plugins["Shockwave Flash"];if(e){c=h;if(e.description)d=a(e.description)}if(navigator.plugins["Shockwave Flash 2.0"]){c=h;d="2.0.0.11"}}else if(navigator.mimeTypes&&navigator.mimeTypes.length){if(c=(e=navigator.mimeTypes["application/x-shockwave-flash"])&&e.enabledPlugin)d=a(e.enabledPlugin.description)}else try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
c=h;d=a(e.GetVariable("$version"))}catch(f){try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");c=h;d="6.0.21"}catch(g){try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");c=h;d=a(e.GetVariable("$version"))}catch(k){}}}l.userAgent.flash.HAS_FLASH=c;l.userAgent.flash.VERSION=d})();l.userAgent.flash.isVersion=function(a){return l.string.compareVersions(l.userAgent.flash.VERSION,a)>=0};var m={};m.util={};m.util.csi={};m.util.csi.recordCSIStart=function(a,c){if(window.jstiming){window.jstiming[a]=new window.jstiming.Timer;c&&window.jstiming[a].tick(c)}};m.util.csi.reportCSI=function(a,c,d,e){if(window.jstiming&&window.jstiming.report&&c&&a&&d){e?window.jstiming[a].tick(d,e):window.jstiming[a].tick(d);window.jstiming[a].name=c;window.jstiming.report(window.jstiming[a])}};m.util.csi.recordCSIPageLoad=function(a){m.util.csi.reportCSI("load",a,"plt")};
l.exportSymbol("recordCSIStart",m.util.csi.recordCSIStart);l.exportSymbol("reportCSI",m.util.csi.reportCSI);l.exportSymbol("_recordCSIPageLoad",m.util.csi.recordCSIPageLoad);m.util.flash={};m.util.flash.bi="flash-upgrade";m.util.flash.Sb=i;m.util.flash.wg=h;m.util.flash.checkFlashVersion=function(){m.util.flash.Sb=document.getElementById(m.util.flash.bi);m.util.flash.wg=l.userAgent.flash.HAS_FLASH&&l.userAgent.flash.isVersion("9.0.0");if(!m.util.flash.wg&&m.util.flash.Sb)m.util.flash.Sb.style.display="block"};m.util.flash.hideFlashUpgradeMessage=function(){if(m.util.flash.Sb)m.util.flash.Sb.style.display="none"};l.exportSymbol("_checkFlashVersion",m.util.flash.checkFlashVersion);
l.exportSymbol("_hideFlashUpgradeMessage",m.util.flash.hideFlashUpgradeMessage);m.util.util={};m.util.util.Bi=function(){return document.getSelection?document.getSelection():document.selection&&document.selection.createRange?document.selection.createRange().text:""};m.util.util.isCurrentSelectionEmpty=function(){return m.util.util.Bi()==""};m.util.util.Ai=function(){var a,c=i;try{a=new ActiveXObject(c="Msxml2.XMLHTTP")}catch(d){a=j;c=i}if(!a)try{new ActiveXObject(c="Microsoft.XMLHTTP")}catch(e){c=i}return c};m.util.util.isStringEmpty=function(a){return/^[\s\xa0]*$/.test(a)};
m.util.util.ieActiveXType=m.util.util.Ai();m.util.util.createAjaxRequest=function(){var a;return a=m.util.util.ieActiveXType?new ActiveXObject(m.util.util.ieActiveXType):new XMLHttpRequest};m.util.util.toggleElementShowStatus=function(a,c){a.style.display=c?"":"none"};l.Disposable=function(){};l.Disposable.prototype.yc=j;l.Disposable.prototype.vg=function(){return this.yc};l.Disposable.prototype.dispose=function(){if(!this.yc){this.yc=h;this.b()}};l.Disposable.prototype.b=function(){};l.dispose=function(a){a&&typeof a.dispose=="function"&&a.dispose()};l.object={};l.object.forEach=function(a,c,d){for(var e in a)c.call(d,a[e],e,a)};l.object.filter=function(a,c,d){var e={};for(var f in a)if(c.call(d,a[f],f,a))e[f]=a[f];return e};l.object.map=function(a,c,d){var e={};for(var f in a)e[f]=c.call(d,a[f],f,a);return e};l.object.some=function(a,c,d){for(var e in a)if(c.call(d,a[e],e,a))return h;return j};l.object.every=function(a,c,d){for(var e in a)if(!c.call(d,a[e],e,a))return j;return h};l.object.r=function(a){var c=0;for(var d in a)c++;return c};
l.object.getAnyKey=function(a){for(var c in a)return c};l.object.getAnyValue=function(a){for(var c in a)return a[c]};l.object.contains=function(a,c){return l.object.Ra(a,c)};l.object.i=function(a){var c=[],d=0;for(var e in a)c[d++]=a[e];return c};l.object.o=function(a){var c=[],d=0;for(var e in a)c[d++]=e;return c};l.object.wa=function(a,c){return c in a};l.object.Ra=function(a,c){for(var d in a)if(a[d]==c)return h;return j};
l.object.findKey=function(a,c,d){for(var e in a)if(c.call(d,a[e],e,a))return e;return undefined};l.object.findValue=function(a,c,d){return(c=l.object.findKey(a,c,d))&&a[c]};l.object.p=function(a){for(var c in a)return j;return h};l.object.clear=function(a){for(var c=l.object.o(a),d=c.length-1;d>=0;d--)l.object.remove(a,c[d])};l.object.remove=function(a,c){var d;if(d=c in a)delete a[c];return d};
l.object.add=function(a,c,d){if(c in a)b(Error('The object already contains the key "'+c+'"'));l.object.set(a,c,d)};l.object.get=function(a,c,d){if(c in a)return a[c];return d};l.object.set=function(a,c,d){a[c]=d};l.object.setIfUndefined=function(a,c,d){return c in a?a[c]:(a[c]=d)};l.object.clone=function(a){var c={};for(var d in a)c[d]=a[d];return c};l.object.transpose=function(a){var c={};for(var d in a)c[a[d]]=d;return c};
l.object.Ze=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];l.object.extend=function(a){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<l.object.Ze.length;f++){c=l.object.Ze[f];if(Object.prototype.hasOwnProperty.call(d,c))a[c]=d[c]}}};
l.object.create=function(){var a=arguments.length;if(a==1&&l.isArray(arguments[0]))return l.object.create.apply(i,arguments[0]);if(a%2)b(Error("Uneven number of arguments"));for(var c={},d=0;d<a;d+=2)c[arguments[d]]=arguments[d+1];return c};l.object.createSet=function(){var a=arguments.length;if(a==1&&l.isArray(arguments[0]))return l.object.createSet.apply(i,arguments[0]);for(var c={},d=0;d<a;d++)c[arguments[d]]=h;return c};l.structs={};l.structs.SimplePool=function(a,c){l.Disposable.call(this);this.Jg=c;this.Va=[];this.of(a)};l.inherits(l.structs.SimplePool,l.Disposable);l.structs.SimplePool.prototype.uc=i;l.structs.SimplePool.prototype.Gd=i;l.structs.SimplePool.prototype.Fb=function(a){this.uc=a};l.structs.SimplePool.prototype.ka=function(){if(this.Va.length)return this.Va.pop();return this.zd()};l.structs.SimplePool.prototype.la=function(a){this.Va.length<this.Jg?this.Va.push(a):this.Fd(a)};
l.structs.SimplePool.prototype.of=function(a){if(a>this.Jg)b(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var c=0;c<a;c++)this.Va.push(this.zd())};l.structs.SimplePool.prototype.zd=function(){return this.uc?this.uc():{}};l.structs.SimplePool.prototype.Fd=function(a){if(this.Gd)this.Gd(a);else if(l.isFunction(a.dispose))a.dispose();else for(var c in a)delete a[c]};
l.structs.SimplePool.prototype.b=function(){l.structs.SimplePool.h.b.call(this);for(var a=this.Va;a.length;)this.Fd(a.pop());delete this.Va};l.array={};l.array.ArrayLike=l.typedef;l.array.peek=function(a){return a[a.length-1]};l.array.indexOf=function(a,c,d){if(a.indexOf)return a.indexOf(c,d);if(Array.indexOf)return Array.indexOf(a,c,d);for(d=d=d==i?0:d<0?Math.max(0,a.length+d):d;d<a.length;d++)if(d in a&&a[d]===c)return d;return-1};
l.array.lastIndexOf=function(a,c,d){d=d==i?a.length-1:d;if(a.lastIndexOf)return a.lastIndexOf(c,d);if(Array.lastIndexOf)return Array.lastIndexOf(a,c,d);if(d<0)d=Math.max(0,a.length+d);for(d=d;d>=0;d--)if(d in a&&a[d]===c)return d;return-1};l.array.forEach=function(a,c,d){if(a.forEach)a.forEach(c,d);else if(Array.forEach)Array.forEach(a,c,d);else for(var e=a.length,f=l.isString(a)?a.split(""):a,g=0;g<e;g++)g in f&&c.call(d,f[g],g,a)};
l.array.forEachRight=function(a,c,d){var e=a.length,f=l.isString(a)?a.split(""):a;for(e=e-1;e>=0;--e)e in f&&c.call(d,f[e],e,a)};l.array.filter=function(a,c,d){if(a.filter)return a.filter(c,d);if(Array.filter)return Array.filter(a,c,d);for(var e=a.length,f=[],g=0,k=l.isString(a)?a.split(""):a,n=0;n<e;n++)if(n in k){var o=k[n];if(c.call(d,o,n,a))f[g++]=o}return f};
l.array.map=function(a,c,d){if(a.map)return a.map(c,d);if(Array.map)return Array.map(a,c,d);for(var e=a.length,f=[],g=0,k=l.isString(a)?a.split(""):a,n=0;n<e;n++)if(n in k)f[g++]=c.call(d,k[n],n,a);return f};l.array.reduce=function(a,c,d,e){if(a.reduce)return e?a.reduce(l.bind(c,e),d):a.reduce(c,d);var f=d;l.array.forEach(a,function(g,k){f=c.call(e,f,g,k,a)});return f};
l.array.reduceRight=function(a,c,d,e){if(a.reduceRight)return e?a.reduceRight(l.bind(c,e),d):a.reduceRight(c,d);var f=d;l.array.forEachRight(a,function(g,k){f=c.call(e,f,g,k,a)});return f};l.array.some=function(a,c,d){if(a.some)return a.some(c,d);if(Array.some)return Array.some(a,c,d);for(var e=a.length,f=l.isString(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&c.call(d,f[g],g,a))return h;return j};
l.array.every=function(a,c,d){if(a.every)return a.every(c,d);if(Array.every)return Array.every(a,c,d);for(var e=a.length,f=l.isString(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&!c.call(d,f[g],g,a))return j;return h};l.array.find=function(a,c,d){c=l.array.findIndex(a,c,d);return c<0?i:l.isString(a)?a.charAt(c):a[c]};l.array.findIndex=function(a,c,d){for(var e=a.length,f=l.isString(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&c.call(d,f[g],g,a))return g;return-1};
l.array.findRight=function(a,c,d){c=l.array.findIndexRight(a,c,d);return c<0?i:l.isString(a)?a.charAt(c):a[c]};l.array.findIndexRight=function(a,c,d){var e=a.length,f=l.isString(a)?a.split(""):a;for(e=e-1;e>=0;e--)if(e in f&&c.call(d,f[e],e,a))return e;return-1};l.array.contains=function(a,c){if(a.contains)return a.contains(c);return l.array.indexOf(a,c)>-1};l.array.p=function(a){return a.length==0};l.array.clear=function(a){if(!l.isArray(a))for(var c=a.length-1;c>=0;c--)delete a[c];a.length=0};
l.array.insert=function(a,c){l.array.contains(a,c)||a.push(c)};l.array.insertAt=function(a,c,d){l.array.splice(a,d,0,c)};l.array.insertArrayAt=function(a,c,d){l.partial(l.array.splice,a,d,0).apply(i,c)};l.array.insertBefore=function(a,c,d){var e;arguments.length==2||(e=l.array.indexOf(a,d))==-1?a.push(c):l.array.insertAt(a,c,e)};l.array.remove=function(a,c){c=l.array.indexOf(a,c);var d;if(d=c!=-1)l.array.removeAt(a,c);return d};
l.array.removeAt=function(a,c){return Array.prototype.splice.call(a,c,1).length==1};l.array.removeIf=function(a,c,d){c=l.array.findIndex(a,c,d);if(c>=0){l.array.removeAt(a,c);return h}return j};l.array.clone=function(a){if(l.isArray(a))return a.concat();else{for(var c=[],d=0,e=a.length;d<e;d++)c[d]=a[d];return c}};l.array.toArray=function(a){if(l.isArray(a))return a.concat();return l.array.clone(a)};
l.array.extend=function(a){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(l.isArrayLike(d)){d=l.array.toArray(d);a.push.apply(a,d)}else a.push(d)}};l.array.splice=function(a){return Array.prototype.splice.apply(a,l.array.slice(arguments,1))};l.array.slice=function(a,c,d){return arguments.length<=2?Array.prototype.slice.call(a,c):Array.prototype.slice.call(a,c,d)};
l.array.removeDuplicates=function(a,c){c=c||a;for(var d={},e=0,f=0;f<a.length;){var g=a[f++],k=l.isObject(g)?l.getHashCode(g):g;if(!Object.prototype.hasOwnProperty.call(d,k)){d[k]=h;c[e++]=g}}c.length=e};l.array.binarySearch=function(a,c,d){var e=0,f=a.length-1;for(d=d||l.array.defaultCompare;e<=f;){var g=e+f>>1,k=d(c,a[g]);if(k>0)e=g+1;else if(k<0)f=g-1;else return g}return-(e+1)};l.array.sort=function(a,c){Array.prototype.sort.call(a,c||l.array.defaultCompare)};
l.array.stableSort=function(a,c){for(var d=0;d<a.length;d++)a[d]={index:d,value:a[d]};var e=c||l.array.defaultCompare;function f(g,k){return e(g.value,k.value)||g.index-k.index}l.array.sort(a,f);for(d=0;d<a.length;d++)a[d]=a[d].value};l.array.sortObjectsByKey=function(a,c,d){var e=d||l.array.defaultCompare;l.array.sort(a,function(f,g){return e(f[c],g[c])})};
l.array.equals=function(a,c,d){if(!l.isArrayLike(a)||!l.isArrayLike(c)||a.length!=c.length)return j;var e=a.length;d=d||l.array.defaultCompareEquality;for(var f=0;f<e;f++)if(!d(a[f],c[f]))return j;return h};l.array.compare=function(a,c,d){return l.array.equals(a,c,d)};l.array.defaultCompare=function(a,c){return a>c?1:a<c?-1:0};l.array.defaultCompareEquality=function(a,c){return a===c};l.array.binaryInsert=function(a,c,d){d=l.array.binarySearch(a,c,d);if(d<0){l.array.insertAt(a,c,-(d+1));return h}return j};
l.array.binaryRemove=function(a,c,d){c=l.array.binarySearch(a,c,d);return c>=0?l.array.removeAt(a,c):j};l.array.bucket=function(a,c){for(var d={},e=0;e<a.length;e++){var f=a[e],g=c(f,e,a);if(l.isDef(g)){g=d[g]||(d[g]=[]);g.push(f)}}return d};l.array.repeat=function(a,c){for(var d=[],e=0;e<c;e++)d[e]=a;return d};l.array.flatten=function(){for(var a=[],c=0;c<arguments.length;c++){var d=arguments[c];l.isArray(d)?a.push.apply(a,l.array.flatten.apply(i,d)):a.push(d)}return a};
l.array.rotate=function(a,c){if(a.length){c%=a.length;if(c>0)Array.prototype.unshift.apply(a,a.splice(-c,c));else c<0&&Array.prototype.push.apply(a,a.splice(0,-c))}return a};l.debug={};l.debug.errorHandlerWeakDep={protectEntryPoint:function(a){return a}};l.userAgent.ASSUME_IE=j;l.userAgent.ASSUME_GECKO=j;l.userAgent.ASSUME_CAMINO=j;l.userAgent.ASSUME_WEBKIT=j;l.userAgent.ASSUME_MOBILE_WEBKIT=j;l.userAgent.ASSUME_OPERA=j;l.userAgent.Oa=l.userAgent.ASSUME_IE||l.userAgent.ASSUME_GECKO||l.userAgent.ASSUME_CAMINO||l.userAgent.ASSUME_MOBILE_WEBKIT||l.userAgent.ASSUME_WEBKIT||l.userAgent.ASSUME_OPERA;l.userAgent.getUserAgentString=function(){return l.global.navigator?l.global.navigator.userAgent:i};l.userAgent.getNavigator=function(){return l.global.navigator};
l.userAgent.bc=function(){l.userAgent.Rb=j;l.userAgent.uf=j;l.userAgent.xc=j;l.userAgent.wf=j;l.userAgent.Ed=j;l.userAgent.Qb=j;var a;if(!l.userAgent.Oa&&(a=l.userAgent.getUserAgentString())){var c=l.userAgent.getNavigator();l.userAgent.Rb=a.indexOf("Opera")==0;l.userAgent.uf=!l.userAgent.Rb&&a.indexOf("MSIE")!=-1;l.userAgent.xc=!l.userAgent.Rb&&a.indexOf("WebKit")!=-1;l.userAgent.wf=l.userAgent.xc&&a.indexOf("Mobile")!=-1;l.userAgent.Ed=!l.userAgent.Rb&&!l.userAgent.xc&&c.product=="Gecko";l.userAgent.Qb=
l.userAgent.Ed&&c.vendor=="Camino"}};l.userAgent.Oa||l.userAgent.bc();l.userAgent.OPERA=l.userAgent.Oa?l.userAgent.ASSUME_OPERA:l.userAgent.Rb;l.userAgent.IE=l.userAgent.Oa?l.userAgent.ASSUME_IE:l.userAgent.uf;l.userAgent.GECKO=l.userAgent.Oa?l.userAgent.ASSUME_GECKO||l.userAgent.ASSUME_CAMINO:l.userAgent.Ed;l.userAgent.CAMINO=l.userAgent.Oa?l.userAgent.ASSUME_CAMINO:l.userAgent.Qb;l.userAgent.WEBKIT=l.userAgent.Oa?l.userAgent.ASSUME_WEBKIT||l.userAgent.ASSUME_MOBILE_WEBKIT:l.userAgent.xc;
l.userAgent.MOBILE=l.userAgent.ASSUME_MOBILE_WEBKIT||l.userAgent.wf;l.userAgent.SAFARI=l.userAgent.WEBKIT;l.userAgent.wi=function(){var a=l.userAgent.getNavigator();return a&&a.platform||""};l.userAgent.PLATFORM=l.userAgent.wi();l.userAgent.ASSUME_MAC=j;l.userAgent.ASSUME_WINDOWS=j;l.userAgent.ASSUME_LINUX=j;l.userAgent.ASSUME_X11=j;l.userAgent.Kb=l.userAgent.ASSUME_MAC||l.userAgent.ASSUME_WINDOWS||l.userAgent.ASSUME_LINUX||l.userAgent.ASSUME_X11;
l.userAgent.Ei=function(){l.userAgent.si=l.string.contains(l.userAgent.PLATFORM,"Mac");l.userAgent.ti=l.string.contains(l.userAgent.PLATFORM,"Win");l.userAgent.ri=l.string.contains(l.userAgent.PLATFORM,"Linux");l.userAgent.vi=!!l.userAgent.getNavigator()&&l.string.contains(l.userAgent.getNavigator().appVersion||"","X11")};l.userAgent.Kb||l.userAgent.Ei();l.userAgent.MAC=l.userAgent.Kb?l.userAgent.ASSUME_MAC:l.userAgent.si;l.userAgent.WINDOWS=l.userAgent.Kb?l.userAgent.ASSUME_WINDOWS:l.userAgent.ti;
l.userAgent.LINUX=l.userAgent.Kb?l.userAgent.ASSUME_LINUX:l.userAgent.ri;l.userAgent.X11=l.userAgent.Kb?l.userAgent.ASSUME_X11:l.userAgent.vi;l.userAgent.xi=function(){var a="",c;if(l.userAgent.OPERA&&l.global.opera){a=l.global.opera.version;a=typeof a=="function"?a():a}else{if(l.userAgent.GECKO)c=/rv\:([^\);]+)(\)|;)/;else if(l.userAgent.IE)c=/MSIE\s+([^\);]+)(\)|;)/;else if(l.userAgent.WEBKIT)c=/WebKit\/(\S+)/;if(c)a=(a=c.exec(l.userAgent.getUserAgentString()))?a[1]:""}return a};
l.userAgent.VERSION=l.userAgent.xi();l.userAgent.compare=function(a,c){return l.string.compareVersions(a,c)};l.userAgent.Bg={};l.userAgent.isVersion=function(a){return l.userAgent.Bg[a]||(l.userAgent.Bg[a]=l.string.compareVersions(l.userAgent.VERSION,a)>=0)};l.events={};l.events.Event=function(a,c){l.Disposable.call(this);this.type=a;this.currentTarget=this.target=c};l.inherits(l.events.Event,l.Disposable);l.events.Event.prototype.b=function(){delete this.type;delete this.target;delete this.currentTarget};l.events.Event.prototype.Aa=j;l.events.Event.prototype.hb=h;l.events.Event.prototype.stopPropagation=function(){this.Aa=h};l.events.Event.prototype.preventDefault=function(){this.hb=j};l.events.BrowserEvent=function(a,c){a&&this.init(a,c)};l.inherits(l.events.BrowserEvent,l.events.Event);l.events.BrowserEvent.MouseButton={LEFT:0,MIDDLE:1,RIGHT:2};l.events.BrowserEvent.di=[1,4,2];l.events.BrowserEvent.prototype.type=i;l.events.BrowserEvent.prototype.target=i;l.events.BrowserEvent.prototype.relatedTarget=i;l.events.BrowserEvent.prototype.offsetX=0;l.events.BrowserEvent.prototype.offsetY=0;l.events.BrowserEvent.prototype.clientX=0;l.events.BrowserEvent.prototype.clientY=0;
l.events.BrowserEvent.prototype.screenX=0;l.events.BrowserEvent.prototype.screenY=0;l.events.BrowserEvent.prototype.button=0;l.events.BrowserEvent.prototype.keyCode=0;l.events.BrowserEvent.prototype.charCode=0;l.events.BrowserEvent.prototype.ctrlKey=j;l.events.BrowserEvent.prototype.altKey=j;l.events.BrowserEvent.prototype.shiftKey=j;l.events.BrowserEvent.prototype.metaKey=j;l.events.BrowserEvent.prototype.ba=i;
l.events.BrowserEvent.prototype.init=function(a,c){this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=c;this.relatedTarget=a.relatedTarget?a.relatedTarget:this.type=="mouseover"?a.fromElement:this.type=="mouseout"?a.toElement:i;this.offsetX=typeof a.layerX=="number"?a.layerX:a.offsetX;this.offsetY=typeof a.layerY=="number"?a.layerY:a.offsetY;this.clientX=typeof a.clientX=="number"?a.clientX:a.pageX;this.clientY=typeof a.clientY=="number"?a.clientY:a.pageY;this.screenX=a.screenX||
0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(this.type=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.ba=a;delete this.hb;delete this.Aa};l.events.BrowserEvent.prototype.qe=function(a){return l.userAgent.IE?this.type=="click"?a==l.events.BrowserEvent.MouseButton.LEFT:!!(this.ba.button&l.events.BrowserEvent.di[a]):this.ba.button==a};
l.events.BrowserEvent.prototype.stopPropagation=function(){this.Aa=h;if(this.ba.stopPropagation)this.ba.stopPropagation();else this.ba.cancelBubble=h};l.events.BrowserEvent.prototype.preventDefault=function(){this.hb=j;if(this.ba.preventDefault)this.ba.preventDefault();else{this.ba.returnValue=j;try{this.ba.keyCode=-1}catch(a){}}};l.events.BrowserEvent.prototype.Gf=function(){return this.ba};l.events.BrowserEvent.prototype.b=function(){l.events.BrowserEvent.h.b.call(this);this.ba=i};l.events.EventWrapper=function(){};l.events.EventWrapper.prototype.listen=function(){};l.events.EventWrapper.prototype.unlisten=function(){};l.userAgent.jscript={};l.userAgent.jscript.ASSUME_NO_JSCRIPT=j;l.userAgent.jscript.bc=function(){var a="ScriptEngine"in l.global;l.userAgent.jscript.Ue=a&&l.global.ScriptEngine()=="JScript";l.userAgent.jscript.Zh=l.userAgent.jscript.Ue?l.global.ScriptEngineMajorVersion()+"."+l.global.ScriptEngineMinorVersion()+"."+l.global.ScriptEngineBuildVersion():"0"};l.userAgent.jscript.ASSUME_NO_JSCRIPT||l.userAgent.jscript.bc();l.userAgent.jscript.HAS_JSCRIPT=l.userAgent.jscript.ASSUME_NO_JSCRIPT?j:l.userAgent.jscript.Ue;
l.userAgent.jscript.VERSION=l.userAgent.jscript.ASSUME_NO_JSCRIPT?"0":l.userAgent.jscript.Zh;l.userAgent.jscript.isVersion=function(a){return l.string.compareVersions(l.userAgent.jscript.VERSION,a)>=0};l.events.Listener=function(){};l.events.Listener.pi=0;l.events.Listener.prototype.key=0;l.events.Listener.prototype.removed=j;l.events.Listener.prototype.Da=j;l.events.Listener.prototype.init=function(a,c,d,e,f,g){if(l.isFunction(a))this.xg=h;else if(a&&a.handleEvent&&l.isFunction(a.handleEvent))this.xg=j;else b(Error("Invalid listener argument"));this.listener=a;this.proxy=c;this.src=d;this.type=e;this.capture=!!f;this.handler=g;this.Da=j;this.key=++l.events.Listener.pi;this.removed=j};
l.events.Listener.prototype.handleEvent=function(a){if(this.xg)return this.listener.call(this.handler||this.src,a);return this.listener.handleEvent.call(this.listener,a)};l.events.pools={};
(function(){var a=l.userAgent.jscript.HAS_JSCRIPT&&!l.userAgent.jscript.isVersion("5.7");function c(){return{l:0,ma:0}}function d(){return[]}var e;l.events.pools.setProxyCallbackFunction=function(w){e=w};function f(){var w=function(ya){return e.call(w.src,w.key,ya)};return w}function g(){return new l.events.Listener}function k(){return new l.events.BrowserEvent}if(a){l.events.pools.ka=function(){return n.ka()};l.events.pools.la=function(w){n.la(w)};l.events.pools.getArray=function(){return o.ka()};l.events.pools.releaseArray=
function(w){o.la(w)};l.events.pools.getProxy=function(){return q.ka()};l.events.pools.releaseProxy=function(){q.la(f())};l.events.pools.getListener=function(){return r.ka()};l.events.pools.releaseListener=function(w){r.la(w)};l.events.pools.getEvent=function(){return u.ka()};l.events.pools.releaseEvent=function(w){u.la(w)};var n=new l.structs.SimplePool(0,600);n.Fb(c);var o=new l.structs.SimplePool(0,600);o.Fb(d);var q=new l.structs.SimplePool(0,600);q.Fb(f);var r=new l.structs.SimplePool(0,600);
r.Fb(g);var u=new l.structs.SimplePool(0,600);u.Fb(k)}else{l.events.pools.ka=c;l.events.pools.la=l.nullFunction;l.events.pools.getArray=d;l.events.pools.releaseArray=l.nullFunction;l.events.pools.getProxy=f;l.events.pools.releaseProxy=l.nullFunction;l.events.pools.getListener=g;l.events.pools.releaseListener=l.nullFunction;l.events.pools.getEvent=k;l.events.pools.releaseEvent=l.nullFunction}})();l.events.La={};l.events.t={};l.events.ta={};l.events.Pi="on";l.events.Ae={};l.events.ij="_";
l.events.listen=function(a,c,d,e,f){if(c)if(l.isArray(c)){for(var g=0;g<c.length;g++)l.events.listen(a,c[g],d,e,f);return i}else{e=!!e;var k=l.events.t;c in k||(k[c]=l.events.pools.ka());k=k[c];if(!(e in k)){k[e]=l.events.pools.ka();k.l++}k=k[e];var n=l.getHashCode(a),o;k.ma++;if(k[n]){o=k[n];for(g=0;g<o.length;g++){k=o[g];if(k.listener==d&&k.handler==f){if(k.removed)break;return o[g].key}}}else{o=k[n]=l.events.pools.getArray();k.l++}g=l.events.pools.getProxy();g.src=a;k=l.events.pools.getListener();
k.init(d,g,a,c,e,f);d=k.key;g.key=d;o.push(k);l.events.La[d]=k;l.events.ta[n]||(l.events.ta[n]=l.events.pools.getArray());l.events.ta[n].push(k);if(a.addEventListener){if(a==l.global||!a.Bd)a.addEventListener(c,g,e)}else a.attachEvent(l.events.Vf(c),g);return d}else b(Error("Invalid event type"))};l.events.gc=function(a,c,d,e,f){if(l.isArray(c)){for(var g=0;g<c.length;g++)l.events.gc(a,c[g],d,e,f);return i}a=l.events.listen(a,c,d,e,f);c=l.events.La[a];c.Da=h;return a};
l.events.Eg=function(a,c,d,e,f){c.listen(a,d,e,f)};l.events.unlisten=function(a,c,d,e,f){if(l.isArray(c)){for(var g=0;g<c.length;g++)l.events.unlisten(a,c[g],d,e,f);return i}e=!!e;a=l.events.Vd(a,c,e);if(!a)return j;for(g=0;g<a.length;g++)if(a[g].listener==d&&a[g].capture==e&&a[g].handler==f)return l.events.unlistenByKey(a[g].key);return j};
l.events.unlistenByKey=function(a){if(!l.events.La[a])return j;var c=l.events.La[a];if(c.removed)return j;var d=c.src,e=c.type,f=c.proxy,g=c.capture;if(d.removeEventListener){if(d==l.global||!d.Bd)d.removeEventListener(e,f,g)}else d.detachEvent&&d.detachEvent(l.events.Vf(e),f);d=l.getHashCode(d);f=l.events.t[e][g][d];if(l.events.ta[d]){var k=l.events.ta[d];l.array.remove(k,c);k.length==0&&delete l.events.ta[d]}c.removed=h;f.Rg=h;l.events.kf(e,g,d,f);delete l.events.La[a];return h};
l.events.Th=function(a,c,d,e,f){c.unlisten(a,d,e,f)};
l.events.kf=function(a,c,d,e){if(!e.Xc)if(e.Rg){for(var f=0,g=0;f<e.length;f++)if(e[f].removed){var k=e[f].proxy;k.src=i;l.events.pools.releaseProxy(k);l.events.pools.releaseListener(e[f])}else{if(f!=g)e[g]=e[f];g++}e.length=g;e.Rg=j;if(g==0){l.events.pools.releaseArray(e);delete l.events.t[a][c][d];l.events.t[a][c].l--;if(l.events.t[a][c].l==0){l.events.pools.la(l.events.t[a][c]);delete l.events.t[a][c];l.events.t[a].l--}if(l.events.t[a].l==0){l.events.pools.la(l.events.t[a]);delete l.events.t[a]}}}};
l.events.ra=function(a,c,d){var e=0,f=a==i,g=c==i,k=d==i;d=!!d;if(f)l.object.forEach(l.events.ta,function(o){for(var q=o.length-1;q>=0;q--){var r=o[q];if((g||c==r.type)&&(k||d==r.capture)){l.events.unlistenByKey(r.key);e++}}});else{a=l.getHashCode(a);if(l.events.ta[a]){a=l.events.ta[a];for(f=a.length-1;f>=0;f--){var n=a[f];if((g||c==n.type)&&(k||d==n.capture)){l.events.unlistenByKey(n.key);e++}}}}return e};l.events.getListeners=function(a,c,d){return l.events.Vd(a,c,d)||[]};
l.events.Vd=function(a,c,d){var e=l.events.t;if(c in e){e=e[c];if(d in e){e=e[d];a=l.getHashCode(a);if(e[a])return e[a]}}return i};l.events.getListener=function(a,c,d,e,f){e=!!e;if(a=l.events.Vd(a,c,e))for(c=0;c<a.length;c++)if(a[c].listener==d&&a[c].capture==e&&a[c].handler==f)return a[c];return i};
l.events.hasListener=function(a,c,d){a=l.getHashCode(a);var e=l.events.ta[a];if(e){var f=l.isDef(c),g=l.isDef(d);if(f&&g){e=l.events.t[c];return!!e&&!!e[d]&&a in e[d]}else return f||g?l.array.some(e,function(k){return f&&k.type==c||g&&k.capture==d}):h}return j};l.events.expose=function(a){var c=[];for(var d in a)a[d]&&a[d].id?c.push(d+" = "+a[d]+" ("+a[d].id+")"):c.push(d+" = "+a[d]);return c.join("\n")};
l.events.EventType={CLICK:"click",DBLCLICK:"dblclick",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEMOVE:"mousemove",SELECTSTART:"selectstart",KEYPRESS:"keypress",KEYDOWN:"keydown",KEYUP:"keyup",BLUR:"blur",FOCUS:"focus",DEACTIVATE:"deactivate",FOCUSIN:l.userAgent.IE?"focusin":"DOMFocusIn",FOCUSOUT:l.userAgent.IE?"focusout":"DOMFocusOut",CHANGE:"change",SELECT:"select",SUBMIT:"submit",LOAD:"load",UNLOAD:"unload",ERROR:"error",HELP:"help",RESIZE:"resize",SCROLL:"scroll",
READYSTATECHANGE:"readystatechange",CONTEXTMENU:"contextmenu",HASHCHANGE:"hashchange"};l.events.Vf=function(a){if(a in l.events.Ae)return l.events.Ae[a];return l.events.Ae[a]=l.events.Pi+a};l.events.fireListeners=function(a,c,d,e){var f=l.events.t;if(c in f){f=f[c];if(d in f)return l.events.pb(f[d],a,c,d,e)}return h};
l.events.pb=function(a,c,d,e,f){var g=1;c=l.getHashCode(c);if(a[c]){a.ma--;a=a[c];if(a.Xc)a.Xc++;else a.Xc=1;try{for(var k=a.length,n=0;n<k;n++){var o=a[n];if(o&&!o.removed)g&=l.events.fireListener(o,f)!==j}}finally{a.Xc--;l.events.kf(d,e,c,a)}}return Boolean(g)};l.events.fireListener=function(a,c){c=a.handleEvent(c);a.Da&&l.events.unlistenByKey(a.key);return c};l.events.getTotalListenerCount=function(){return l.object.r(l.events.La)};
l.events.dispatchEvent=function(a,c){if(l.isString(c))c=new l.events.Event(c,a);else if(c instanceof l.events.Event)c.target=c.target||a;else{var d=c;c=new l.events.Event(c.type,a);l.object.extend(c,d)}d=1;var e,f=c.type,g=l.events.t;if(!(f in g))return h;g=g[f];f=h in g;var k;if(f){e=[];for(k=a;k;k=k.Zd())e.push(k);k=g[h];k.ma=k.l;for(var n=e.length-1;!c.Aa&&n>=0&&k.ma;n--){c.currentTarget=e[n];d&=l.events.pb(k,e[n],c.type,h,c)&&c.hb!=j}}if(k=j in g){k=g[j];k.ma=k.l;if(f)for(n=0;!c.Aa&&n<e.length&&
k.ma;n++){c.currentTarget=e[n];d&=l.events.pb(k,e[n],c.type,j,c)&&c.hb!=j}else for(a=a;!c.Aa&&a&&k.ma;a=a.Zd()){c.currentTarget=a;d&=l.events.pb(k,a,c.type,j,c)&&c.hb!=j}}return Boolean(d)};l.events.protectBrowserEventEntryPoint=function(a,c){l.events.Pc=a.protectEntryPoint(l.events.Pc,c);l.events.pools.setProxyCallbackFunction(l.events.Pc)};
l.events.Pc=function(a,c){if(!l.events.La[a])return h;a=l.events.La[a];var d=a.type,e=l.events.t;if(!(d in e))return h;e=e[d];var f,g;if(l.userAgent.IE){f=c||l.getObjectByName("window.event");c=h in e;var k=j in e;if(c){if(l.events.Gi(f))return h;l.events.Ii(f)}var n=l.events.pools.getEvent();n.init(f,this);f=h;try{if(c){for(var o=l.events.pools.getArray(),q=n.currentTarget;q;q=q.parentNode)o.push(q);g=e[h];g.ma=g.l;for(var r=o.length-1;!n.Aa&&r>=0&&g.ma;r--){n.currentTarget=o[r];f&=l.events.pb(g,
o[r],d,h,n)}if(k){g=e[j];g.ma=g.l;for(r=0;!n.Aa&&r<o.length&&g.ma;r++){n.currentTarget=o[r];f&=l.events.pb(g,o[r],d,j,n)}}}else f=l.events.fireListener(a,n)}finally{if(o){o.length=0;l.events.pools.releaseArray(o)}n.dispose();l.events.pools.releaseEvent(n)}return f}g=new l.events.BrowserEvent(c,this);try{f=l.events.fireListener(a,g)}finally{g.dispose()}return f};l.events.pools.setProxyCallbackFunction(l.events.Pc);
l.events.Ii=function(a){var c=j;if(a.keyCode==0)try{a.keyCode=-1;return}catch(d){c=h}if(c||a.returnValue==undefined)a.returnValue=h};l.events.Gi=function(a){return a.keyCode<0||a.returnValue!=undefined};l.events.fj=0;l.events.getUniqueId=function(a){return a+"_"+l.events.fj++};l.events.EventHandler=function(a){this.ca=a};l.inherits(l.events.EventHandler,l.Disposable);l.events.EventHandler.KEY_POOL_INITIAL_COUNT=0;l.events.EventHandler.KEY_POOL_MAX_COUNT=100;l.events.EventHandler.Dg=new l.structs.SimplePool(l.events.EventHandler.KEY_POOL_INITIAL_COUNT,l.events.EventHandler.KEY_POOL_MAX_COUNT);l.events.EventHandler.d=i;l.events.EventHandler.za=i;
l.events.EventHandler.prototype.listen=function(a,c,d,e,f){if(l.isArray(c))for(var g=0;g<c.length;g++)this.listen(a,c[g],d,e,f);else{a=l.events.listen(a,c,d||this,e||j,f||this.ca||this);this.Ce(a)}return this};l.events.EventHandler.prototype.gc=function(a,c,d,e,f){if(l.isArray(c))for(var g=0;g<c.length;g++)this.gc(a,c[g],d,e,f);else{a=l.events.gc(a,c,d||this,e||j,f||this.ca||this);this.Ce(a)}return this};l.events.EventHandler.prototype.Eg=function(a,c,d,e,f){c.listen(a,d,e,f,this)};
l.events.EventHandler.prototype.Ce=function(a){if(this.d)this.d[a]=h;else if(this.za){this.d=l.events.EventHandler.Dg.ka();this.d[this.za]=h;this.za=i;this.d[a]=h}else this.za=a};l.events.EventHandler.prototype.unlisten=function(a,c,d,e,f){if(this.za||this.d)if(l.isArray(c))for(var g=0;g<c.length;g++)this.unlisten(a,c[g],d,e,f);else if(a=l.events.getListener(a,c,d||this,e||j,f||this.ca||this)){a=a.key;l.events.unlistenByKey(a);if(this.d)l.object.remove(this.d,a);else if(this.za==a)this.za=i}return this};
l.events.EventHandler.prototype.Th=function(a,c,d,e,f){c.unlisten(a,d,e,f,this)};l.events.EventHandler.prototype.ra=function(){if(this.d){for(var a in this.d){l.events.unlistenByKey(a);delete this.d[a]}l.events.EventHandler.Dg.la(this.d);this.d=i}else this.za&&l.events.unlistenByKey(this.za)};l.events.EventHandler.prototype.b=function(){l.events.EventHandler.h.b.call(this);this.ra()};l.events.EventHandler.prototype.handleEvent=function(){b(Error("EventHandler.handleEvent not implemented"))};l.math={};l.math.Coordinate=function(a,c){this.x=l.isDef(a)?a:0;this.y=l.isDef(c)?c:0};l.math.Coordinate.prototype.clone=function(){return new l.math.Coordinate(this.x,this.y)};if(l.DEBUG)l.math.Coordinate.prototype.toString=function(){return"("+this.x+", "+this.y+")"};l.math.Coordinate.equals=function(a,c){if(a==c)return h;if(!a||!c)return j;return a.x==c.x&&a.y==c.y};l.math.Coordinate.distance=function(a,c){var d=a.x-c.x;a=a.y-c.y;return Math.sqrt(d*d+a*a)};
l.math.Coordinate.squaredDistance=function(a,c){var d=a.x-c.x;a=a.y-c.y;return d*d+a*a};l.math.Coordinate.difference=function(a,c){return new l.math.Coordinate(a.x-c.x,a.y-c.y)};l.math.Coordinate.sum=function(a,c){return new l.math.Coordinate(a.x+c.x,a.y+c.y)};l.math.Size=function(a,c){this.width=a;this.height=c};l.math.Size.equals=function(a,c){if(a==c)return h;if(!a||!c)return j;return a.width==c.width&&a.height==c.height};l.math.Size.prototype.clone=function(){return new l.math.Size(this.width,this.height)};if(l.DEBUG)l.math.Size.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};l.math.Size.prototype.area=function(){return this.width*this.height};l.math.Size.prototype.p=function(){return!this.area()};
l.math.Size.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};l.math.Size.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};l.math.Size.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};l.math.Size.prototype.scale=function(a){this.width*=a;this.height*=a;return this};l.dom={};l.dom.classes={};l.dom.classes.set=function(a,c){a.className=c};l.dom.classes.get=function(a){return(a=a.className)&&typeof a.split=="function"?a.split(" "):[]};l.dom.classes.add=function(a){var c=l.dom.classes.get(a),d=l.array.slice(arguments,1);d=l.dom.classes.cf(c,d);a.className=c.join(" ");return d};l.dom.classes.remove=function(a){var c=l.dom.classes.get(a),d=l.array.slice(arguments,1);d=l.dom.classes.gh(c,d);a.className=c.join(" ");return d};
l.dom.classes.cf=function(a,c){for(var d=0,e=0;e<c.length;e++)if(!l.array.contains(a,c[e])){a.push(c[e]);d++}return d==c.length};l.dom.classes.gh=function(a,c){for(var d=0,e=0;e<a.length;e++)if(l.array.contains(c,a[e])){l.array.splice(a,e--,1);d++}return d==c.length};l.dom.classes.swap=function(a,c,d){for(var e=l.dom.classes.get(a),f=j,g=0;g<e.length;g++)if(e[g]==c){l.array.splice(e,g--,1);f=h}if(f){e.push(d);a.className=e.join(" ")}return f};
l.dom.classes.addRemove=function(a,c,d){var e=l.dom.classes.get(a);if(l.isString(c))l.array.remove(e,c);else l.isArray(c)&&l.dom.classes.gh(e,c);if(l.isString(d)&&!l.array.contains(e,d))e.push(d);else l.isArray(d)&&l.dom.classes.cf(e,d);a.className=e.join(" ")};l.dom.classes.has=function(a,c){return l.array.contains(l.dom.classes.get(a),c)};l.dom.classes.enable=function(a,c,d){d?l.dom.classes.add(a,c):l.dom.classes.remove(a,c)};
l.dom.classes.toggle=function(a,c){var d=!l.dom.classes.has(a,c);l.dom.classes.enable(a,c,d);return d};l.dom.TagName={A:"A",ABBR:"ABBR",ACRONYM:"ACRONYM",ADDRESS:"ADDRESS",APPLET:"APPLET",AREA:"AREA",B:"B",BASE:"BASE",BASEFONT:"BASEFONT",BDO:"BDO",BIG:"BIG",BLOCKQUOTE:"BLOCKQUOTE",BODY:"BODY",BR:"BR",BUTTON:"BUTTON",CAPTION:"CAPTION",CENTER:"CENTER",CITE:"CITE",CODE:"CODE",COL:"COL",COLGROUP:"COLGROUP",DD:"DD",DEL:"DEL",DFN:"DFN",DIR:"DIR",DIV:"DIV",DL:"DL",DT:"DT",EM:"EM",FIELDSET:"FIELDSET",FONT:"FONT",FORM:"FORM",FRAME:"FRAME",FRAMESET:"FRAMESET",H1:"H1",H2:"H2",H3:"H3",H4:"H4",H5:"H5",H6:"H6",
HEAD:"HEAD",HR:"HR",HTML:"HTML",I:"I",IFRAME:"IFRAME",IMG:"IMG",INPUT:"INPUT",INS:"INS",ISINDEX:"ISINDEX",KBD:"KBD",LABEL:"LABEL",LEGEND:"LEGEND",LI:"LI",LINK:"LINK",MAP:"MAP",MENU:"MENU",META:"META",NOFRAMES:"NOFRAMES",NOSCRIPT:"NOSCRIPT",OBJECT:"OBJECT",OL:"OL",OPTGROUP:"OPTGROUP",OPTION:"OPTION",P:"P",PARAM:"PARAM",PRE:"PRE",Q:"Q",S:"S",SAMP:"SAMP",SCRIPT:"SCRIPT",SELECT:"SELECT",SMALL:"SMALL",SPAN:"SPAN",STRIKE:"STRIKE",STRONG:"STRONG",STYLE:"STYLE",SUB:"SUB",SUP:"SUP",TABLE:"TABLE",TBODY:"TBODY",
TD:"TD",TEXTAREA:"TEXTAREA",TFOOT:"TFOOT",TH:"TH",THEAD:"THEAD",TITLE:"TITLE",TR:"TR",TT:"TT",U:"U",UL:"UL",VAR:"VAR"};l.dom.ASSUME_QUIRKS_MODE=j;l.dom.ASSUME_STANDARDS_MODE=j;l.dom.Wh=l.dom.ASSUME_QUIRKS_MODE||l.dom.ASSUME_STANDARDS_MODE;l.dom.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};l.dom.c=function(a){return a?new l.dom.DomHelper(l.dom.m(a)):l.dom.qi||(l.dom.qi=new l.dom.DomHelper)};l.dom.z=function(){return document};
l.dom.a=function(a){return l.isString(a)?document.getElementById(a):a};l.dom.Qe=l.dom.a;l.dom.Wa=function(a,c,d){return l.dom.Of(document,a,c,d)};
l.dom.Of=function(a,c,d,e){e=e||a;c=c&&c!="*"?c.toLowerCase():"";if(e.querySelectorAll&&(c||d)&&(!l.userAgent.WEBKIT||l.dom.ub(a)||l.userAgent.isVersion("528"))){d=c+(d?"."+d:"");return e.querySelectorAll(d)}if(d&&e.getElementsByClassName){a=e.getElementsByClassName(d);if(c){e={};for(var f=0,g=0,k;k=a[g];g++)if(c==k.nodeName.toLowerCase())e[f++]=k;e.length=f;return e}else return a}a=e.getElementsByTagName(c||"*");if(d){e={};for(g=f=0;k=a[g];g++){c=k.className;if(typeof c.split=="function"&&l.array.contains(c.split(" "),
d))e[f++]=k}e.length=f;return e}else return a};l.dom.Re=l.dom.Wa;l.dom.hd=function(a,c){l.object.forEach(c,function(d,e){if(e=="style")a.style.cssText=d;else if(e=="class")a.className=d;else if(e=="for")a.htmlFor=d;else if(e in l.dom.Ve)a.setAttribute(l.dom.Ve[e],d);else a[e]=d})};l.dom.Ve={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",type:"type"};
l.dom.Oc=function(a){return l.dom.bg(a||window)};l.dom.bg=function(a){var c=a.document;if(l.userAgent.WEBKIT&&!l.userAgent.isVersion("500")&&!l.userAgent.MOBILE){if(typeof a.innerHeight=="undefined")a=window;c=a.innerHeight;var d=a.document.documentElement.scrollHeight;if(a==a.top)if(d<c)c-=15;return new l.math.Size(a.innerWidth,c)}a=l.dom.ub(c)&&(!l.userAgent.OPERA||l.userAgent.OPERA&&l.userAgent.isVersion("9.50"))?c.documentElement:c.body;return new l.math.Size(a.clientWidth,a.clientHeight)};
l.dom.Lf=function(){return l.dom.Mf(window)};l.dom.Mf=function(a){var c=a.document,d=0;if(c){a=l.dom.bg(a).height;d=c.body;var e=c.documentElement;if(l.dom.ub(c)&&e.scrollHeight)d=e.scrollHeight!=a?e.scrollHeight:e.offsetHeight;else{c=e.scrollHeight;var f=e.offsetHeight;if(e.clientHeight!=f){c=d.scrollHeight;f=d.offsetHeight}d=c>a?c>f?c:f:c<f?c:f}}return d};l.dom.getPageScroll=function(a){a=a||l.global||window;return l.dom.c(a.document).Ga()};l.dom.Ga=function(){return l.dom.Nf(document)};
l.dom.Nf=function(a){a=l.dom.Qd(a);return new l.math.Coordinate(a.scrollLeft,a.scrollTop)};l.dom.Jc=function(){return l.dom.Qd(document)};l.dom.Qd=function(a){return!l.userAgent.WEBKIT&&l.dom.ub(a)?a.documentElement:a.body};l.dom.$a=function(a){return a?l.dom.ce(a):window};
l.dom.ce=function(a){if(a.parentWindow)return a.parentWindow;if(l.userAgent.WEBKIT&&!l.userAgent.isVersion("500")&&!l.userAgent.MOBILE){var c=a.createElement("script");c.innerHTML="document.parentWindow=window";var d=a.documentElement;d.appendChild(c);d.removeChild(c);return a.parentWindow}return a.defaultView};l.dom.g=function(){return l.dom.nf(document,arguments)};
l.dom.nf=function(a,c){var d=c[0],e=c[1];if(l.userAgent.IE&&e&&(e.name||e.type)){d=["<",d];e.name&&d.push(' name="',l.string.htmlEscape(e.name),'"');if(e.type){d.push(' type="',l.string.htmlEscape(e.type),'"');e=l.cloneObject(e);delete e.type}d.push(">");d=d.join("")}var f=a.createElement(d);if(e)if(l.isString(e))f.className=e;else l.dom.hd(f,e);if(c.length>2){function g(k){if(k)f.appendChild(l.isString(k)?a.createTextNode(k):k)}for(e=2;e<c.length;e++){d=c[e];l.isArrayLike(d)&&!l.dom.Vc(d)?l.array.forEach(l.dom.isNodeList(d)?
l.array.clone(d):d,g):g(d)}}return f};l.dom.Se=l.dom.g;l.dom.createElement=function(a){return document.createElement(a)};l.dom.createTextNode=function(a){return document.createTextNode(a)};l.dom.og=function(a){return l.dom.pg(document,a)};l.dom.pg=function(a,c){var d=a.createElement("div");d.innerHTML=c;if(d.childNodes.length==1)return d.firstChild;else{for(a=a.createDocumentFragment();d.firstChild;)a.appendChild(d.firstChild);return a}};l.dom.Kf=function(){return l.dom.pa()?"CSS1Compat":"BackCompat"};
l.dom.pa=function(){return l.dom.ub(document)};l.dom.ub=function(a){if(l.dom.Wh)return l.dom.ASSUME_STANDARDS_MODE;return a.compatMode=="CSS1Compat"};l.dom.canHaveChildren=function(a){if(a.nodeType!=l.dom.NodeType.ELEMENT)return j;if("canHaveChildren"in a)return a.canHaveChildren;switch(a.tagName){case l.dom.TagName.APPLET:case l.dom.TagName.AREA:case l.dom.TagName.BR:case l.dom.TagName.COL:case l.dom.TagName.FRAME:case l.dom.TagName.HR:case l.dom.TagName.IMG:case l.dom.TagName.INPUT:case l.dom.TagName.IFRAME:case l.dom.TagName.ISINDEX:case l.dom.TagName.LINK:case l.dom.TagName.NOFRAMES:case l.dom.TagName.NOSCRIPT:case l.dom.TagName.META:case l.dom.TagName.OBJECT:case l.dom.TagName.PARAM:case l.dom.TagName.SCRIPT:case l.dom.TagName.STYLE:return j}return h};
l.dom.appendChild=function(a,c){a.appendChild(c)};l.dom.Cb=function(a){for(var c;c=a.firstChild;)a.removeChild(c)};l.dom.pe=function(a,c){c.parentNode&&c.parentNode.insertBefore(a,c)};l.dom.oe=function(a,c){c.parentNode&&c.parentNode.insertBefore(a,c.nextSibling)};l.dom.removeNode=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):i};l.dom.replaceNode=function(a,c){var d=c.parentNode;d&&d.replaceChild(a,c)};
l.dom.Nd=function(a){var c,d=a.parentNode;if(d&&d.nodeType!=l.dom.NodeType.DOCUMENT_FRAGMENT)if(a.removeNode)return a.removeNode(j);else{for(;c=a.firstChild;)d.insertBefore(c,a);return l.dom.removeNode(a)}};l.dom.Vb=function(a){return l.dom.Mc(a.firstChild,h)};l.dom.Ud=function(a){return l.dom.Mc(a.lastChild,j)};l.dom.Wd=function(a){return l.dom.Mc(a.nextSibling,h)};l.dom.$d=function(a){return l.dom.Mc(a.previousSibling,j)};
l.dom.Mc=function(a,c){for(;a&&a.nodeType!=l.dom.NodeType.ELEMENT;)a=c?a.nextSibling:a.previousSibling;return a};l.dom.Vc=function(a){return l.isObject(a)&&a.nodeType>0};l.dom.Vh=l.userAgent.WEBKIT&&l.userAgent.isVersion("522");
l.dom.contains=function(a,c){if(typeof a.contains!="undefined"&&!l.dom.Vh&&c.nodeType==l.dom.NodeType.ELEMENT)return a==c||a.contains(c);if(typeof a.compareDocumentPosition!="undefined")return a==c||Boolean(a.compareDocumentPosition(c)&16);for(;c&&a!=c;)c=c.parentNode;return c==a};
l.dom.compareNodeOrder=function(a,c){if(a==c)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(c)&2?1:-1;if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var d=a.nodeType==l.dom.NodeType.ELEMENT,e=c.nodeType==l.dom.NodeType.ELEMENT;if(d&&e)return a.sourceIndex-c.sourceIndex;else{var f=a.parentNode,g=c.parentNode;if(f==g)return l.dom.mf(a,c);if(!d&&l.dom.contains(f,c))return-1*l.dom.lf(a,c);if(!e&&l.dom.contains(g,a))return l.dom.lf(c,a);return(d?a.sourceIndex:
f.sourceIndex)-(e?c.sourceIndex:g.sourceIndex)}}e=l.dom.m(a);d=e.createRange();d.selectNode(a);d.collapse(h);a=e.createRange();a.selectNode(c);a.collapse(h);return d.compareBoundaryPoints(l.global.Range.START_TO_END,a)};l.dom.lf=function(a,c){var d=a.parentNode;if(d==c)return-1;for(c=c;c.parentNode!=d;)c=c.parentNode;return l.dom.mf(c,a)};l.dom.mf=function(a,c){for(c=c;c=c.previousSibling;)if(c==a)return-1;return 1};
l.dom.findCommonAncestor=function(){var a,c=arguments.length;if(c){if(c==1)return arguments[0]}else return i;var d=[],e=Infinity;for(a=0;a<c;a++){for(var f=[],g=arguments[a];g;){f.unshift(g);g=g.parentNode}d.push(f);e=Math.min(e,f.length)}f=i;for(a=0;a<e;a++){g=d[0][a];for(var k=1;k<c;k++)if(g!=d[k][a])return f;f=g}return f};l.dom.m=function(a){return a.nodeType==l.dom.NodeType.DOCUMENT?a:a.ownerDocument||a.document};
l.dom.Wb=function(a){return a=l.userAgent.WEBKIT?a.document||a.contentWindow.document:a.contentDocument||a.contentWindow.document};l.dom.Sd=function(a){return a.contentWindow||l.dom.ce(l.dom.Wb(a))};l.dom.jd=function(a,c){if("textContent"in a)a.textContent=c;else if(a.firstChild&&a.firstChild.nodeType==l.dom.NodeType.TEXT){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=c}else{l.dom.Cb(a);var d=l.dom.m(a);a.appendChild(d.createTextNode(c))}};
l.dom.getOuterHtml=function(a){if("outerHTML"in a)return a.outerHTML;else{var c=l.dom.m(a);c=c.createElement("div");c.appendChild(a.cloneNode(h));return c.innerHTML}};l.dom.Kd=function(a,c){var d=[];return(a=l.dom.Md(a,c,d,h))?d[0]:undefined};l.dom.Ld=function(a,c){var d=[];l.dom.Md(a,c,d,j);return d};l.dom.Md=function(a,c,d,e){if(a!=i)for(var f=0,g;g=a.childNodes[f];f++){if(c(g)){d.push(g);if(e)return h}if(l.dom.Md(g,c,d,e))return h}return j};l.dom.$e={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};
l.dom.oc={IMG:" ",BR:"\n"};l.dom.isFocusableTabIndex=function(a){var c=a.getAttributeNode("tabindex");if(c&&c.specified){a=a.tabIndex;return l.isNumber(a)&&a>=0}return j};l.dom.setFocusableTabIndex=function(a,c){if(c)a.tabIndex=0;else a.removeAttribute("tabIndex")};l.dom.Ya=function(a){if(l.userAgent.IE&&"innerText"in a)a=l.string.canonicalizeNewlines(a.innerText);else{var c=[];l.dom.be(a,c,h);a=c.join("")}a=a.replace(/\xAD/g,"");a=a.replace(/ +/g," ");if(a!=" ")a=a.replace(/^\s*/,"");return a};
l.dom.getRawTextContent=function(a){var c=[];l.dom.be(a,c,j);return c.join("")};l.dom.be=function(a,c,d){if(!(a.nodeName in l.dom.$e))if(a.nodeType==l.dom.NodeType.TEXT)d?c.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):c.push(a.nodeValue);else if(a.nodeName in l.dom.oc)c.push(l.dom.oc[a.nodeName]);else for(a=a.firstChild;a;){l.dom.be(a,c,d);a=a.nextSibling}};l.dom.Xd=function(a){return l.dom.Ya(a).length};
l.dom.Yd=function(a,c){c=c||l.dom.m(a).body;for(var d=[];a&&a!=c;){for(var e=a;e=e.previousSibling;)d.unshift(l.dom.Ya(e));a=a.parentNode}return l.string.trimLeft(d.join("")).replace(/ +/g," ").length};
l.dom.getNodeAtOffset=function(a,c,d){a=[a];for(var e=0,f;a.length>0&&e<c;){f=a.pop();if(!(f.nodeName in l.dom.$e))if(f.nodeType==l.dom.NodeType.TEXT){var g=f.nodeValue.replace(/(\r\n|\r|\n)/g,"").replace(/ +/g," ");e+=g.length}else if(f.nodeName in l.dom.oc)e+=l.dom.oc[f.nodeName].length;else for(g=f.childNodes.length-1;g>=0;g--)a.push(f.childNodes[g])}if(l.isObject(d)){d.remainder=f?f.nodeValue.length+c-e-1:0;d.node=f}return f};
l.dom.isNodeList=function(a){if(a&&typeof a.length=="number")if(l.isObject(a))return typeof a.item=="function"||typeof a.item=="string";else if(l.isFunction(a))return typeof a.item=="function";return j};l.dom.Od=function(a,c,d){return l.dom.Ec(a,function(e){return(!c||e.nodeName==c)&&(!d||l.dom.classes.has(e,d))},h)};l.dom.Ec=function(a,c,d,e){if(!d)a=a.parentNode;d=e==i;for(var f=0;a&&(d||f<=e);){if(c(a))return a;a=a.parentNode;f++}return i};
l.dom.DomHelper=function(a){this.ia=a||l.global.document||document};l.dom.DomHelper.prototype.c=l.dom.c;l.dom.DomHelper.prototype.z=function(){return this.ia};l.dom.DomHelper.prototype.a=function(a){return l.isString(a)?this.ia.getElementById(a):a};l.dom.DomHelper.prototype.Qe=l.dom.DomHelper.prototype.a;l.dom.DomHelper.prototype.Wa=function(a,c,d){return l.dom.Of(this.ia,a,c,d)};l.dom.DomHelper.prototype.Re=l.dom.DomHelper.prototype.Wa;l.dom.DomHelper.prototype.hd=l.dom.hd;
l.dom.DomHelper.prototype.Oc=function(a){return l.dom.Oc(a||this.$a())};l.dom.DomHelper.prototype.Lf=function(){return l.dom.Mf(this.$a())};l.dom.DomHelper.prototype.g=function(){return l.dom.nf(this.ia,arguments)};l.dom.DomHelper.prototype.Se=l.dom.DomHelper.prototype.g;l.dom.DomHelper.prototype.createElement=function(a){return this.ia.createElement(a)};l.dom.DomHelper.prototype.createTextNode=function(a){return this.ia.createTextNode(a)};
l.dom.DomHelper.prototype.og=function(a){return l.dom.pg(this.ia,a)};l.dom.DomHelper.prototype.Kf=function(){return this.pa()?"CSS1Compat":"BackCompat"};l.dom.DomHelper.prototype.pa=function(){return l.dom.ub(this.ia)};l.dom.DomHelper.prototype.$a=function(){return l.dom.ce(this.ia)};l.dom.DomHelper.prototype.Jc=function(){return l.dom.Qd(this.ia)};l.dom.DomHelper.prototype.Ga=function(){return l.dom.Nf(this.ia)};l.dom.DomHelper.prototype.appendChild=l.dom.appendChild;
l.dom.DomHelper.prototype.Cb=l.dom.Cb;l.dom.DomHelper.prototype.pe=l.dom.pe;l.dom.DomHelper.prototype.oe=l.dom.oe;l.dom.DomHelper.prototype.removeNode=l.dom.removeNode;l.dom.DomHelper.prototype.replaceNode=l.dom.replaceNode;l.dom.DomHelper.prototype.Nd=l.dom.Nd;l.dom.DomHelper.prototype.Vb=l.dom.Vb;l.dom.DomHelper.prototype.Ud=l.dom.Ud;l.dom.DomHelper.prototype.Wd=l.dom.Wd;l.dom.DomHelper.prototype.$d=l.dom.$d;l.dom.DomHelper.prototype.Vc=l.dom.Vc;l.dom.DomHelper.prototype.contains=l.dom.contains;
l.dom.DomHelper.prototype.m=l.dom.m;l.dom.DomHelper.prototype.Wb=l.dom.Wb;l.dom.DomHelper.prototype.Sd=l.dom.Sd;l.dom.DomHelper.prototype.jd=l.dom.jd;l.dom.DomHelper.prototype.Kd=l.dom.Kd;l.dom.DomHelper.prototype.Ld=l.dom.Ld;l.dom.DomHelper.prototype.Ya=l.dom.Ya;l.dom.DomHelper.prototype.Xd=l.dom.Xd;l.dom.DomHelper.prototype.Yd=l.dom.Yd;l.dom.DomHelper.prototype.Od=l.dom.Od;l.dom.DomHelper.prototype.Ec=l.dom.Ec;l.events.EventTarget=function(){l.Disposable.call(this)};l.inherits(l.events.EventTarget,l.Disposable);l.events.EventTarget.prototype.Bd=h;l.events.EventTarget.prototype.ad=i;l.events.EventTarget.prototype.Zd=function(){return this.ad};l.events.EventTarget.prototype.jc=function(a){this.ad=a};l.events.EventTarget.prototype.addEventListener=function(a,c,d,e){l.events.listen(this,a,c,d,e)};l.events.EventTarget.prototype.removeEventListener=function(a,c,d,e){l.events.unlisten(this,a,c,d,e)};
l.events.EventTarget.prototype.dispatchEvent=function(a){return l.events.dispatchEvent(this,a)};l.events.EventTarget.prototype.b=function(){l.events.EventTarget.h.b.call(this);l.events.ra(this);this.ad=i};l.math.Box=function(a,c,d,e){this.top=a;this.right=c;this.bottom=d;this.left=e};l.math.Box.boundingBox=function(){for(var a=new l.math.Box(arguments[0].y,arguments[0].x,arguments[0].y,arguments[0].x),c=1;c<arguments.length;c++){var d=arguments[c];a.top=Math.min(a.top,d.y);a.right=Math.max(a.right,d.x);a.bottom=Math.max(a.bottom,d.y);a.left=Math.min(a.left,d.x)}return a};l.math.Box.prototype.clone=function(){return new l.math.Box(this.top,this.right,this.bottom,this.left)};
if(l.DEBUG)l.math.Box.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};l.math.Box.prototype.contains=function(a){return l.math.Box.contains(this,a)};l.math.Box.prototype.expand=function(a,c,d,e){if(l.isObject(a)){this.top-=a.top;this.right+=a.right;this.bottom+=a.bottom;this.left-=a.left}else{this.top-=a;this.right+=c;this.bottom+=d;this.left-=e}return this};
l.math.Box.equals=function(a,c){if(a==c)return h;if(!a||!c)return j;return a.top==c.top&&a.right==c.right&&a.bottom==c.bottom&&a.left==c.left};l.math.Box.contains=function(a,c){if(!a||!c)return j;if(c instanceof l.math.Box)return c.left>=a.left&&c.right<=a.right&&c.top>=a.top&&c.bottom<=a.bottom;return c.x>=a.left&&c.x<=a.right&&c.y>=a.top&&c.y<=a.bottom};
l.math.Box.distance=function(a,c){if(c.x>=a.left&&c.x<=a.right){if(c.y>=a.top&&c.y<=a.bottom)return 0;return c.y<a.top?a.top-c.y:c.y-a.bottom}if(c.y>=a.top&&c.y<=a.bottom)return c.x<a.left?a.left-c.x:c.x-a.right;return l.math.Coordinate.distance(c,new l.math.Coordinate(c.x<a.left?a.left:a.right,c.y<a.top?a.top:a.bottom))};l.math.Rect=function(a,c,d,e){this.left=a;this.top=c;this.width=d;this.height=e};l.math.Rect.prototype.clone=function(){return new l.math.Rect(this.left,this.top,this.width,this.height)};l.math.Rect.createFromBox=function(a){return new l.math.Rect(a.left,a.top,a.right-a.left,a.bottom-a.top)};if(l.DEBUG)l.math.Rect.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};
l.math.Rect.equals=function(a,c){if(a==c)return h;if(!a||!c)return j;return a.left==c.left&&a.width==c.width&&a.top==c.top&&a.height==c.height};l.math.Rect.prototype.intersection=function(a){var c=Math.max(this.left,a.left),d=Math.min(this.left+this.width,a.left+a.width);if(c<=d){var e=Math.max(this.top,a.top);a=Math.min(this.top+this.height,a.top+a.height);if(e<=a){this.left=c;this.top=e;this.width=d-c;this.height=a-e;return h}}return j};
l.math.Rect.intersection=function(a,c){var d=Math.max(a.left,c.left),e=Math.min(a.left+a.width,c.left+c.width);if(d<=e){var f=Math.max(a.top,c.top);a=Math.min(a.top+a.height,c.top+c.height);if(f<=a)return new l.math.Rect(d,f,e-d,a-f)}return i};l.math.Rect.intersects=function(a,c){var d=Math.max(a.left,c.left),e=Math.min(a.left+a.width,c.left+c.width);if(d<=e){d=Math.max(a.top,c.top);a=Math.min(a.top+a.height,c.top+c.height);if(d<=a)return h}return j};
l.math.Rect.prototype.intersects=function(a){return l.math.Rect.intersects(this,a)};
l.math.Rect.difference=function(a,c){var d=l.math.Rect.intersection(a,c);if(!d||!d.height||!d.width)return[a.clone()];d=[];var e=a.top,f=a.height,g=a.left+a.width,k=a.top+a.height,n=c.left+c.width,o=c.top+c.height;if(c.top>a.top){d.push(new l.math.Rect(a.left,a.top,a.width,c.top-a.top));e=c.top;f-=c.top-a.top}if(o<k){d.push(new l.math.Rect(a.left,o,a.width,k-o));f=o-e}c.left>a.left&&d.push(new l.math.Rect(a.left,e,c.left-a.left,f));n<g&&d.push(new l.math.Rect(n,e,g-n,f));return d};
l.math.Rect.prototype.difference=function(a){return l.math.Rect.difference(this,a)};l.math.Rect.prototype.ud=function(a){var c=Math.max(this.left+this.width,a.left+a.width),d=Math.max(this.top+this.height,a.top+a.height);this.left=Math.min(this.left,a.left);this.top=Math.min(this.top,a.top);this.width=c-this.left;this.height=d-this.top};l.math.Rect.ud=function(a,c){if(!a||!c)return i;a=a.clone();a.ud(c);return a};
l.math.Rect.prototype.contains=function(a){return a instanceof l.math.Rect?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};l.math.Rect.prototype.Nc=function(){return new l.math.Size(this.width,this.height)};l.userAgent.product={};l.userAgent.product.ASSUME_FIREFOX=j;l.userAgent.product.ASSUME_CAMINO=j;l.userAgent.product.ASSUME_IPHONE=j;l.userAgent.product.ASSUME_ANDROID=j;l.userAgent.product.ASSUME_CHROME=j;l.userAgent.product.ASSUME_SAFARI=j;l.userAgent.product.Qa=l.userAgent.ASSUME_IE||l.userAgent.ASSUME_OPERA||l.userAgent.product.ASSUME_FIREFOX||l.userAgent.product.ASSUME_CAMINO||l.userAgent.product.ASSUME_IPHONE||l.userAgent.product.ASSUME_ANDROID||l.userAgent.product.ASSUME_CHROME||l.userAgent.product.ASSUME_SAFARI;
l.userAgent.product.bc=function(){l.userAgent.product.tf=j;l.userAgent.product.Qb=j;l.userAgent.product.vf=j;l.userAgent.product.rf=j;l.userAgent.product.sf=j;l.userAgent.product.xf=j;var a=l.userAgent.getUserAgentString();if(a)if(a.indexOf("Firefox")!=-1)l.userAgent.product.tf=h;else if(a.indexOf("Camino")!=-1)l.userAgent.product.Qb=h;else if(a.indexOf("iPhone")!=-1||a.indexOf("iPod")!=-1)l.userAgent.product.vf=h;else if(a.indexOf("Android")!=-1)l.userAgent.product.rf=h;else if(a.indexOf("Chrome")!=
-1)l.userAgent.product.sf=h;else if(a.indexOf("Safari")!=-1)l.userAgent.product.xf=h};l.userAgent.product.Qa||l.userAgent.product.bc();l.userAgent.product.OPERA=l.userAgent.OPERA;l.userAgent.product.IE=l.userAgent.IE;l.userAgent.product.FIREFOX=l.userAgent.product.Qa?l.userAgent.product.ASSUME_FIREFOX:l.userAgent.product.tf;l.userAgent.product.CAMINO=l.userAgent.product.Qa?l.userAgent.product.ASSUME_CAMINO:l.userAgent.product.Qb;
l.userAgent.product.IPHONE=l.userAgent.product.Qa?l.userAgent.product.ASSUME_IPHONE:l.userAgent.product.vf;l.userAgent.product.ANDROID=l.userAgent.product.Qa?l.userAgent.product.ASSUME_ANDROID:l.userAgent.product.rf;l.userAgent.product.CHROME=l.userAgent.product.Qa?l.userAgent.product.ASSUME_CHROME:l.userAgent.product.sf;l.userAgent.product.SAFARI=l.userAgent.product.Qa?l.userAgent.product.ASSUME_SAFARI:l.userAgent.product.xf;l.style={};l.style.setStyle=function(a,c,d){l.isString(c)?l.style.wh(a,d,c):l.object.forEach(c,l.partial(l.style.wh,a))};l.style.wh=function(a,c,d){a.style[l.style.toCamelCase(d)]=c};l.style.getStyle=function(a,c){return a.style[l.style.toCamelCase(c)]};l.style.getComputedStyle=function(a,c){var d=l.dom.m(a);if(d.defaultView&&d.defaultView.getComputedStyle)if(a=d.defaultView.getComputedStyle(a,""))return a[c];return i};
l.style.getCascadedStyle=function(a,c){return a.currentStyle?a.currentStyle[c]:i};l.style.s=function(a,c){return l.style.getComputedStyle(a,c)||l.style.getCascadedStyle(a,c)||a.style[c]};l.style.getComputedPosition=function(a){return l.style.s(a,"position")};l.style.getBackgroundColor=function(a){return l.style.s(a,"backgroundColor")};l.style.getComputedOverflowX=function(a){return l.style.s(a,"overflowX")};l.style.getComputedOverflowY=function(a){return l.style.s(a,"overflowY")};
l.style.getComputedZIndex=function(a){return l.style.s(a,"zIndex")};l.style.getComputedTextAlign=function(a){return l.style.s(a,"textAlign")};l.style.getComputedCursor=function(a){return l.style.s(a,"cursor")};
l.style.setPosition=function(a,c,d){var e,f=l.userAgent.GECKO&&(l.userAgent.MAC||l.userAgent.X11)&&l.userAgent.isVersion("1.9");if(c instanceof l.math.Coordinate){e=c.x;c=c.y}else{e=c;c=d}a.style.left=typeof e=="number"?(f?Math.round(e):e)+"px":e;a.style.top=typeof c=="number"?(f?Math.round(c):c)+"px":c};l.style.Xf=function(a){return new l.math.Coordinate(a.offsetLeft,a.offsetTop)};
l.style.getClientViewportElement=function(a){a=a?a.nodeType==l.dom.NodeType.DOCUMENT?a:l.dom.m(a):l.dom.z();if(l.userAgent.IE&&!l.dom.c(a).pa())return a.body;return a.documentElement};l.style.Ef=function(a){var c=a.getBoundingClientRect();if(l.userAgent.IE){a=a.ownerDocument;c.left-=a.documentElement.clientLeft+a.body.clientLeft;c.top-=a.documentElement.clientTop+a.body.clientTop}return c};
l.style.getOffsetParent=function(a){if(l.userAgent.IE)return a.offsetParent;var c=l.dom.m(a),d=l.style.s(a,"position"),e=d=="fixed"||d=="absolute";for(a=a.parentNode;a&&a!=c;a=a.parentNode){d=l.style.s(a,"position");e=e&&d=="static"&&a!=c.documentElement&&a!=c.body;if(!e&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||d=="fixed"||d=="absolute"))return a}return i};
l.style.getVisibleRectForElement=function(a){var c=new l.math.Box(0,Infinity,Infinity,0),d=l.dom.c(a),e=d.Jc(),f;for(a=a;a=l.style.getOffsetParent(a);)if((!l.userAgent.IE||a.clientWidth!=0)&&(a.scrollWidth!=a.clientWidth||a.scrollHeight!=a.clientHeight)&&l.style.s(a,"overflow")!="visible"){var g=l.style.getPageOffset(a),k=l.style.getClientLeftTop(a);g.x+=k.x;g.y+=k.y;c.top=Math.max(c.top,g.y);c.right=Math.min(c.right,g.x+a.clientWidth);c.bottom=Math.min(c.bottom,g.y+a.clientHeight);c.left=Math.max(c.left,
g.x);f=f||a!=e}a=e.scrollLeft;e=e.scrollTop;if(l.userAgent.WEBKIT){c.left+=a;c.top+=e}else{c.left=Math.max(c.left,a);c.top=Math.max(c.top,e)}if(!f||l.userAgent.WEBKIT){c.right+=a;c.bottom+=e}d=d.Oc();c.right=Math.min(c.right,a+d.width);c.bottom=Math.min(c.bottom,e+d.height);return c.top>=0&&c.left>=0&&c.bottom>c.top&&c.right>c.left?c:i};
l.style.scrollIntoContainerView=function(a,c,d){var e=l.style.getPageOffset(a),f=l.style.getPageOffset(c),g=l.style.getBorderBox(c),k=e.x-f.x-g.left;e=e.y-f.y-g.top;f=c.clientWidth-a.offsetWidth;a=c.clientHeight-a.offsetHeight;if(d){c.scrollLeft+=k-f/2;c.scrollTop+=e-a/2}else{c.scrollLeft+=Math.min(k,Math.max(k-f,0));c.scrollTop+=Math.min(e,Math.max(e-a,0))}};
l.style.getClientLeftTop=function(a){if(l.userAgent.GECKO&&!l.userAgent.isVersion("1.9")){var c=parseFloat(l.style.getComputedStyle(a,"borderLeftWidth"));if(l.style.vb(a)){var d=a.offsetWidth-a.clientWidth-c-parseFloat(l.style.getComputedStyle(a,"borderRightWidth"));c+=d}return new l.math.Coordinate(c,parseFloat(l.style.getComputedStyle(a,"borderTopWidth")))}return new l.math.Coordinate(a.clientLeft,a.clientTop)};
l.style.getPageOffset=function(a){var c,d=l.dom.m(a),e=l.style.s(a,"position"),f=l.userAgent.GECKO&&d.getBoxObjectFor&&!a.getBoundingClientRect&&e=="absolute"&&(c=d.getBoxObjectFor(a))&&(c.screenX<0||c.screenY<0),g=new l.math.Coordinate(0,0),k=l.style.getClientViewportElement(d);if(a==k)return g;if(a.getBoundingClientRect){c=l.style.Ef(a);a=l.dom.c(d).Ga();g.x=c.left+a.x;g.y=c.top+a.y}else if(d.getBoxObjectFor&&!f){c=d.getBoxObjectFor(a);a=d.getBoxObjectFor(k);g.x=c.screenX-a.screenX;g.y=c.screenY-
a.screenY}else{c=a;do{g.x+=c.offsetLeft;g.y+=c.offsetTop;if(c!=a){g.x+=c.clientLeft||0;g.y+=c.clientTop||0}if(l.userAgent.WEBKIT&&l.style.getComputedPosition(c)=="fixed"){g.x+=d.body.scrollLeft;g.y+=d.body.scrollTop;break}c=c.offsetParent}while(c&&c!=a);if(l.userAgent.OPERA||l.userAgent.WEBKIT&&e=="absolute")g.y-=d.body.offsetTop;for(c=a;(c=l.style.getOffsetParent(c))&&c!=d.body&&c!=k;){g.x-=c.scrollLeft;if(!l.userAgent.OPERA||c.tagName!="TR")g.y-=c.scrollTop}}return g};
l.style.getPageOffsetLeft=function(a){return l.style.getPageOffset(a).x};l.style.getPageOffsetTop=function(a){return l.style.getPageOffset(a).y};l.style.getFramedPageOffset=function(a,c){var d=new l.math.Coordinate(0,0),e=l.dom.$a(l.dom.m(a));a=a;do{var f=e==c?l.style.getPageOffset(a):l.style.getClientPosition(a);d.x+=f.x;d.y+=f.y}while(e&&e!=c&&(a=e.frameElement)&&(e=e.parent));return d};
l.style.translateRectForAnotherFrame=function(a,c,d){if(c.z()!=d.z()){var e=c.z().body;d=l.style.getFramedPageOffset(e,d.$a());d=l.math.Coordinate.difference(d,l.style.getPageOffset(e));if(l.userAgent.IE&&!c.pa())d=l.math.Coordinate.difference(d,c.Ga());a.left+=d.x;a.top+=d.y}};l.style.getRelativePosition=function(a,c){a=l.style.getClientPosition(a);c=l.style.getClientPosition(c);return new l.math.Coordinate(a.x-c.x,a.y-c.y)};
l.style.getClientPosition=function(a){var c=new l.math.Coordinate;if(a.nodeType==l.dom.NodeType.ELEMENT)if(a.getBoundingClientRect){var d=l.style.Ef(a);c.x=d.left;c.y=d.top}else{d=l.dom.c(a).Ga();a=l.style.getPageOffset(a);c.x=a.x-d.x;c.y=a.y-d.y}else{c.x=a.clientX;c.y=a.clientY}return c};l.style.setPageOffset=function(a,c,d){var e=l.style.getPageOffset(a);if(c instanceof l.math.Coordinate){d=c.y;c=c.x}c=c-e.x;d=d-e.y;l.style.setPosition(a,a.offsetLeft+c,a.offsetTop+d)};
l.style.setSize=function(a,c,d){if(c instanceof l.math.Size){d=c.height;c=c.width}else{if(d==undefined)b(Error("missing height argument"));d=d}a.style.width=typeof c=="number"?Math.round(c)+"px":c;a.style.height=typeof d=="number"?Math.round(d)+"px":d};
l.style.Nc=function(a){var c=l.userAgent.OPERA&&!l.userAgent.isVersion("10");if(l.style.s(a,"display")!="none")return c?new l.math.Size(a.offsetWidth||a.clientWidth,a.offsetHeight||a.clientHeight):new l.math.Size(a.offsetWidth,a.offsetHeight);var d=a.style,e=d.display,f=d.visibility,g=d.position;d.visibility="hidden";d.position="absolute";d.display="inline";if(c){c=a.offsetWidth||a.clientWidth;a=a.offsetHeight||a.clientHeight}else{c=a.offsetWidth;a=a.offsetHeight}d.display=e;d.position=g;d.visibility=
f;return new l.math.Size(c,a)};l.style.getBounds=function(a){var c=l.style.getPageOffset(a);a=l.style.Nc(a);return new l.math.Rect(c.x,c.y,a.width,a.height)};l.style.Mh={};l.style.toCamelCase=function(a){return l.style.Mh[a]||(l.style.Mh[a]=String(a).replace(/\-([a-z])/g,function(c,d){return d.toUpperCase()}))};l.style.toSelectorCase=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};
l.style.getOpacity=function(a){var c=a.style;a="";if("opacity"in c)a=c.opacity;else if("MozOpacity"in c)a=c.MozOpacity;else if("filter"in c)if(c=c.filter.match(/alpha\(opacity=([\d.]+)\)/))a=String(c[1]/100);return a==""?a:Number(a)};l.style.setOpacity=function(a,c){a=a.style;if("opacity"in a)a.opacity=c;else if("MozOpacity"in a)a.MozOpacity=c;else if("filter"in a)a.filter=c===""?"":"alpha(opacity="+c*100+")"};
l.style.setTransparentBackgroundImage=function(a,c){a=a.style;if(l.userAgent.IE&&!l.userAgent.isVersion("8"))a.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+c+'", sizingMethod="crop")';else{a.backgroundImage="url("+c+")";a.backgroundPosition="top left";a.backgroundRepeat="no-repeat"}};l.style.clearTransparentBackgroundImage=function(a){a=a.style;if("filter"in a)a.filter="";else a.backgroundImage="none"};l.style.showElement=function(a,c){a.style.display=c?"":"none"};
l.style.isElementShown=function(a){return a.style.display!="none"};l.style.installStyles=function(a,c){c=l.dom.c(c);var d=i;if(l.userAgent.IE){d=c.z().createStyleSheet();l.style.setStyles(d,a)}else{var e=c.Wa("head")[0];if(!e){d=c.Wa("body")[0];e=c.g("head");d.parentNode.insertBefore(e,d)}d=c.g("style");l.style.setStyles(d,a);c.appendChild(e,d)}return d};l.style.uninstallStyles=function(a){a=a.ownerNode||a.owningElement||a;l.dom.removeNode(a)};
l.style.setStyles=function(a,c){if(l.userAgent.IE)a.cssText=c;else{var d=l.userAgent.WEBKIT?"innerText":"innerHTML";a[d]=c}};l.style.setPreWrap=function(a){a=a.style;if(l.userAgent.IE&&!l.userAgent.isVersion("8")){a.whiteSpace="pre";a.wordWrap="break-word"}else a.whiteSpace=l.userAgent.GECKO?"-moz-pre-wrap":l.userAgent.OPERA?"-o-pre-wrap":"pre-wrap"};
l.style.setInlineBlock=function(a){a=a.style;a.position="relative";if(l.userAgent.IE&&!l.userAgent.isVersion("8")){a.zoom="1";a.display="inline"}else a.display=l.userAgent.GECKO?l.userAgent.isVersion("1.9a")?"inline-block":"-moz-inline-box":"inline-block"};l.style.vb=function(a){return"rtl"==l.style.s(a,"direction")};l.style.Ne=l.userAgent.GECKO?"MozUserSelect":l.userAgent.WEBKIT?"WebkitUserSelect":i;
l.style.isUnselectable=function(a){if(l.style.Ne)return a.style[l.style.Ne].toLowerCase()=="none";else if(l.userAgent.IE||l.userAgent.OPERA)return a.getAttribute("unselectable")=="on";return j};
l.style.setUnselectable=function(a,c,d){d=!d?a.getElementsByTagName("*"):i;var e=l.style.Ne;if(e){c=c?"none":"";a.style[e]=c;if(d){a=0;for(var f;f=d[a];a++)f.style[e]=c}}else if(l.userAgent.IE||l.userAgent.OPERA){c=c?"on":"";a.setAttribute("unselectable",c);if(d)for(a=0;f=d[a];a++)f.setAttribute("unselectable",c)}};l.style.getBorderBoxSize=function(a){return new l.math.Size(a.offsetWidth,a.offsetHeight)};
l.style.setBorderBoxSize=function(a,c){var d=l.dom.m(a),e=l.dom.c(d).pa();if(l.userAgent.IE&&(!e||!l.userAgent.isVersion("8"))){d=a.style;if(e){e=l.style.getPaddingBox(a);a=l.style.getBorderBox(a);d.pixelWidth=c.width-a.left-e.left-e.right-a.right;d.pixelHeight=c.height-a.top-e.top-e.bottom-a.bottom}else{d.pixelWidth=c.width;d.pixelHeight=c.height}}else l.style.lh(a,c,"border-box")};
l.style.getContentBoxSize=function(a){var c=l.dom.m(a),d=l.userAgent.IE&&a.currentStyle;if(d&&l.dom.c(c).pa()&&d.width!="auto"&&d.height!="auto"&&!d.boxSizing){c=l.style.rb(a,d.width,"width","pixelWidth");a=l.style.rb(a,d.height,"height","pixelHeight");return new l.math.Size(c,a)}else{d=l.style.getBorderBoxSize(a);c=l.style.getPaddingBox(a);a=l.style.getBorderBox(a);return new l.math.Size(d.width-a.left-c.left-c.right-a.right,d.height-a.top-c.top-c.bottom-a.bottom)}};
l.style.setContentBoxSize=function(a,c){var d=l.dom.m(a),e=l.dom.c(d).pa();if(l.userAgent.IE&&(!e||!l.userAgent.isVersion("8"))){d=a.style;if(e){d.pixelWidth=c.width;d.pixelHeight=c.height}else{e=l.style.getPaddingBox(a);a=l.style.getBorderBox(a);d.pixelWidth=c.width+a.left+e.left+e.right+a.right;d.pixelHeight=c.height+a.top+e.top+e.bottom+a.bottom}}else l.style.lh(a,c,"content-box")};
l.style.lh=function(a,c,d){a=a.style;if(l.userAgent.GECKO)a.MozBoxSizing=d;else if(l.userAgent.WEBKIT)a.WebkitBoxSizing=d;else if(l.userAgent.OPERA&&!l.userAgent.isVersion("9.50"))d?a.setProperty("box-sizing",d):a.removeProperty("box-sizing");else a.boxSizing=d;a.width=c.width+"px";a.height=c.height+"px"};
l.style.rb=function(a,c,d,e){if(/^\d+px?$/.test(c))return parseInt(c,10);else{var f=a.style[d],g=a.runtimeStyle[d];a.runtimeStyle[d]=a.currentStyle[d];a.style[d]=c;c=a.style[e];a.style[d]=f;a.runtimeStyle[d]=g;return c}};l.style.Lc=function(a,c){return l.style.rb(a,l.style.getCascadedStyle(a,c),"left","pixelLeft")};
l.style.Ff=function(a,c){if(l.userAgent.IE){var d=l.style.Lc(a,c+"Left"),e=l.style.Lc(a,c+"Right"),f=l.style.Lc(a,c+"Top");a=l.style.Lc(a,c+"Bottom");return new l.math.Box(f,e,a,d)}else{d=l.style.getComputedStyle(a,c+"Left");e=l.style.getComputedStyle(a,c+"Right");f=l.style.getComputedStyle(a,c+"Top");a=l.style.getComputedStyle(a,c+"Bottom");return new l.math.Box(parseFloat(f),parseFloat(e),parseFloat(a),parseFloat(d))}};l.style.getPaddingBox=function(a){return l.style.Ff(a,"padding")};
l.style.getMarginBox=function(a){return l.style.Ff(a,"margin")};l.style.rg={thin:2,medium:4,thick:6};l.style.Kc=function(a,c){if(l.style.getCascadedStyle(a,c+"Style")=="none")return 0;c=l.style.getCascadedStyle(a,c+"Width");if(c in l.style.rg)return l.style.rg[c];return l.style.rb(a,c,"left","pixelLeft")};
l.style.getBorderBox=function(a){if(l.userAgent.IE){var c=l.style.Kc(a,"borderLeft"),d=l.style.Kc(a,"borderRight"),e=l.style.Kc(a,"borderTop");a=l.style.Kc(a,"borderBottom");return new l.math.Box(e,d,a,c)}else{c=l.style.getComputedStyle(a,"borderLeftWidth");d=l.style.getComputedStyle(a,"borderRightWidth");e=l.style.getComputedStyle(a,"borderTopWidth");a=l.style.getComputedStyle(a,"borderBottomWidth");return new l.math.Box(parseFloat(e),parseFloat(d),parseFloat(a),parseFloat(c))}};
l.style.getFontFamily=function(a){var c=l.dom.m(a),d="";if(c.createTextRange){d=c.body.createTextRange();d.moveToElementText(a);d=d.queryCommandValue("FontName")}if(!d){d=l.style.s(a,"fontFamily");if(l.userAgent.OPERA&&l.userAgent.LINUX)d=d.replace(/ \[[^\]]*\]/,"")}a=d.split(",");if(a.length>1)d=a[0];return l.string.stripQuotes(d,"\"'")};l.style.Hi=/[^\d]+$/;l.style.getLengthUnits=function(a){return(a=a.match(l.style.Hi))&&a[0]||i};l.style.Uh={cm:1,"in":1,mm:1,pc:1,pt:1};l.style.Xh={em:1,ex:1};
l.style.getFontSize=function(a){var c=l.style.s(a,"fontSize"),d=l.style.getLengthUnits(c);if(c&&"px"==d)return parseInt(c,10);if(l.userAgent.IE)if(d in l.style.Uh)return l.style.rb(a,c,"left","pixelLeft");else if(a.parentNode&&a.parentNode.nodeType==l.dom.NodeType.ELEMENT&&d in l.style.Xh){a=a.parentNode;d=l.style.s(a,"fontSize");return l.style.rb(a,c==d?"1em":c,"left","pixelLeft")}d=l.dom.g("span",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});
l.dom.appendChild(a,d);c=d.offsetHeight;l.dom.removeNode(d);return c};l.style.parseStyleAttribute=function(a){var c={};l.array.forEach(a.split(/\s*;\s*/),function(d){d=d.split(/\s*:\s*/);if(d.length==2)c[l.style.toCamelCase(d[0].toLowerCase())]=d[1]});return c};l.style.toStyleAttribute=function(a){var c=[];l.object.forEach(a,function(d,e){c.push(l.style.toSelectorCase(e),":",d,";")});return c.join("")};l.style.setFloat=function(a,c){a.style[l.userAgent.IE?"styleFloat":"cssFloat"]=c};
l.style.getFloat=function(a){return a.style[l.userAgent.IE?"styleFloat":"cssFloat"]||""};l.positioning={};l.positioning.Corner={TOP_LEFT:0,TOP_RIGHT:2,BOTTOM_LEFT:1,BOTTOM_RIGHT:3,TOP_START:4,TOP_END:6,BOTTOM_START:5,BOTTOM_END:7};l.positioning.CornerBit={BOTTOM:1,RIGHT:2,FLIP_RTL:4};l.positioning.Overflow={IGNORE:0,ADJUST_X:1,FAIL_X:2,ADJUST_Y:4,FAIL_Y:8,RESIZE_WIDTH:16,RESIZE_HEIGHT:32};l.positioning.OverflowStatus={NONE:0,ADJUSTED_X:1,ADJUSTED_Y:2,WIDTH_ADJUSTED:4,HEIGHT_ADJUSTED:8,FAILED_LEFT:16,FAILED_RIGHT:32,FAILED_TOP:64,FAILED_BOTTOM:128,FAILED_OUTSIDE_VIEWPORT:256};
l.positioning.OverflowStatus.FAILED=l.positioning.OverflowStatus.FAILED_LEFT|l.positioning.OverflowStatus.FAILED_RIGHT|l.positioning.OverflowStatus.FAILED_TOP|l.positioning.OverflowStatus.FAILED_BOTTOM|l.positioning.OverflowStatus.FAILED_OUTSIDE_VIEWPORT;
l.positioning.positionAtAnchor=function(a,c,d,e,f,g,k,n){var o,q=d.offsetParent;if(q){var r=q.tagName==l.dom.TagName.HTML||q.tagName==l.dom.TagName.BODY;if(!r||l.style.getComputedPosition(q)!="static"){o=l.style.getPageOffset(q);r||(o=l.math.Coordinate.difference(o,new l.math.Coordinate(q.scrollLeft,q.scrollTop)))}}q=l.positioning.Ci(a);l.style.translateRectForAnotherFrame(q,l.dom.c(a),l.dom.c(d));a=l.positioning.getEffectiveCorner(a,c);c=new l.math.Coordinate(a&l.positioning.CornerBit.RIGHT?q.left+
q.width:q.left,a&l.positioning.CornerBit.BOTTOM?q.top+q.height:q.top);if(o)c=l.math.Coordinate.difference(c,o);if(f){c.x+=(a&l.positioning.CornerBit.RIGHT?-1:1)*f.x;c.y+=(a&l.positioning.CornerBit.BOTTOM?-1:1)*f.y}var u;if(k)if((u=l.style.getVisibleRectForElement(d))&&o){u.top=Math.max(0,u.top-o.y);u.right-=o.x;u.bottom-=o.y;u.left=Math.max(0,u.left-o.x)}return l.positioning.positionAtCoordinate(c,d,e,g,u,k,n)};
l.positioning.Ci=function(a){var c=l.style.getBounds(a);(a=l.style.getVisibleRectForElement(a))&&c.intersection(l.math.Rect.createFromBox(a));return c};
l.positioning.positionAtCoordinate=function(a,c,d,e,f,g,k){a=a.clone();var n=l.positioning.OverflowStatus.NONE;d=l.positioning.getEffectiveCorner(c,d);var o=l.style.Nc(c);k=k?k.clone():o;if(e||d!=l.positioning.Corner.TOP_LEFT){if(d&l.positioning.CornerBit.RIGHT)a.x-=k.width+(e?e.right:0);else if(e)a.x+=e.left;if(d&l.positioning.CornerBit.BOTTOM)a.y-=k.height+(e?e.bottom:0);else if(e)a.y+=e.top}if(g){n=f?l.positioning.adjustForViewport(a,k,f,g):l.positioning.OverflowStatus.FAILED_OUTSIDE_VIEWPORT;
if(n&l.positioning.OverflowStatus.FAILED)return n}l.style.setPosition(c,a);l.math.Size.equals(o,k)||l.style.setSize(c,k);return n};
l.positioning.adjustForViewport=function(a,c,d,e){var f=l.positioning.OverflowStatus.NONE;if(a.x<d.left&&e&l.positioning.Overflow.ADJUST_X){a.x=d.left;f|=l.positioning.OverflowStatus.ADJUSTED_X}if(a.x<d.left&&a.x+c.width>d.right&&e&l.positioning.Overflow.RESIZE_WIDTH){c.width-=a.x+c.width-d.right;f|=l.positioning.OverflowStatus.WIDTH_ADJUSTED}if(a.x+c.width>d.right&&e&l.positioning.Overflow.ADJUST_X){a.x=Math.max(d.right-c.width,d.left);f|=l.positioning.OverflowStatus.ADJUSTED_X}if(e&l.positioning.Overflow.FAIL_X)f|=
(a.x<d.left?l.positioning.OverflowStatus.FAILED_LEFT:0)|(a.x+c.width>d.right?l.positioning.OverflowStatus.FAILED_RIGHT:0);if(a.y<d.top&&e&l.positioning.Overflow.ADJUST_Y){a.y=d.top;f|=l.positioning.OverflowStatus.ADJUSTED_Y}if(a.y>=d.top&&a.y+c.height>d.bottom&&e&l.positioning.Overflow.RESIZE_HEIGHT){c.height-=a.y+c.height-d.bottom;f|=l.positioning.OverflowStatus.HEIGHT_ADJUSTED}if(a.y+c.height>d.bottom&&e&l.positioning.Overflow.ADJUST_Y){a.y=Math.max(d.bottom-c.height,d.top);f|=l.positioning.OverflowStatus.ADJUSTED_Y}if(e&
l.positioning.Overflow.FAIL_Y)f|=(a.y<d.top?l.positioning.OverflowStatus.FAILED_TOP:0)|(a.y+c.height>d.bottom?l.positioning.OverflowStatus.FAILED_BOTTOM:0);return f};l.positioning.getEffectiveCorner=function(a,c){return(c&l.positioning.CornerBit.FLIP_RTL&&l.style.vb(a)?c^l.positioning.CornerBit.RIGHT:c)&~l.positioning.CornerBit.FLIP_RTL};l.positioning.flipCornerHorizontal=function(a){return a^l.positioning.CornerBit.RIGHT};l.positioning.flipCornerVertical=function(a){return a^l.positioning.CornerBit.BOTTOM};
l.positioning.flipCorner=function(a){return a^l.positioning.CornerBit.BOTTOM^l.positioning.CornerBit.RIGHT};l.events.KeyCodes={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,CONTEXT_MENU:93,NUM_ZERO:96,
NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229};
l.events.KeyCodes.isTextModifyingKeyEvent=function(a){if(a.altKey&&!a.ctrlKey||a.metaKey||a.keyCode>=l.events.KeyCodes.F1&&a.keyCode<=l.events.KeyCodes.F12)return j;switch(a.keyCode){case l.events.KeyCodes.ALT:case l.events.KeyCodes.SHIFT:case l.events.KeyCodes.CTRL:case l.events.KeyCodes.PAUSE:case l.events.KeyCodes.CAPS_LOCK:case l.events.KeyCodes.ESC:case l.events.KeyCodes.PAGE_UP:case l.events.KeyCodes.PAGE_DOWN:case l.events.KeyCodes.HOME:case l.events.KeyCodes.END:case l.events.KeyCodes.LEFT:case l.events.KeyCodes.RIGHT:case l.events.KeyCodes.UP:case l.events.KeyCodes.DOWN:case l.events.KeyCodes.INSERT:case l.events.KeyCodes.NUMLOCK:case l.events.KeyCodes.CONTEXT_MENU:case l.events.KeyCodes.PRINT_SCREEN:return j;
default:return h}};
l.events.KeyCodes.firesKeyPressEvent=function(a,c,d,e){if(!l.userAgent.IE&&!(l.userAgent.WEBKIT&&l.userAgent.isVersion("525")))return h;if(l.userAgent.IE&&!d&&(c==l.events.KeyCodes.CTRL||c==l.events.KeyCodes.ALT))return j;if(l.userAgent.IE&&e&&c==a)return j;if(a>=l.events.KeyCodes.ZERO&&a<=l.events.KeyCodes.NINE)return h;if(a>=l.events.KeyCodes.NUM_ZERO&&a<=l.events.KeyCodes.NUM_MULTIPLY)return h;if(a>=l.events.KeyCodes.A&&a<=l.events.KeyCodes.Z)return h;if(a==l.events.KeyCodes.ESC&&l.userAgent.WEBKIT)return j;
switch(a){case l.events.KeyCodes.ENTER:case l.events.KeyCodes.ESC:case l.events.KeyCodes.SPACE:case l.events.KeyCodes.QUESTION_MARK:case l.events.KeyCodes.NUM_PLUS:case l.events.KeyCodes.NUM_MINUS:case l.events.KeyCodes.NUM_PERIOD:case l.events.KeyCodes.NUM_DIVISION:case l.events.KeyCodes.SEMICOLON:case l.events.KeyCodes.DASH:case l.events.KeyCodes.EQUALS:case l.events.KeyCodes.COMMA:case l.events.KeyCodes.PERIOD:case l.events.KeyCodes.SLASH:case l.events.KeyCodes.APOSTROPHE:case l.events.KeyCodes.SINGLE_QUOTE:case l.events.KeyCodes.OPEN_SQUARE_BRACKET:case l.events.KeyCodes.BACKSLASH:case l.events.KeyCodes.CLOSE_SQUARE_BRACKET:return h;
default:return j}};
l.events.KeyCodes.isCharacterKey=function(a){if(a>=l.events.KeyCodes.ZERO&&a<=l.events.KeyCodes.NINE)return h;if(a>=l.events.KeyCodes.NUM_ZERO&&a<=l.events.KeyCodes.NUM_MULTIPLY)return h;if(a>=l.events.KeyCodes.A&&a<=l.events.KeyCodes.Z)return h;switch(a){case l.events.KeyCodes.SPACE:case l.events.KeyCodes.QUESTION_MARK:case l.events.KeyCodes.NUM_PLUS:case l.events.KeyCodes.NUM_MINUS:case l.events.KeyCodes.NUM_PERIOD:case l.events.KeyCodes.NUM_DIVISION:case l.events.KeyCodes.SEMICOLON:case l.events.KeyCodes.DASH:case l.events.KeyCodes.EQUALS:case l.events.KeyCodes.COMMA:case l.events.KeyCodes.PERIOD:case l.events.KeyCodes.SLASH:case l.events.KeyCodes.APOSTROPHE:case l.events.KeyCodes.SINGLE_QUOTE:case l.events.KeyCodes.OPEN_SQUARE_BRACKET:case l.events.KeyCodes.BACKSLASH:case l.events.KeyCodes.CLOSE_SQUARE_BRACKET:return h;default:return j}};l.dom.a11y={};l.dom.a11y.State={ACTIVEDESCENDANT:"activedescendant",AUTOCOMPLETE:"autocomplete",CHECKED:"checked",DISABLED:"disabled",EXPANDED:"expanded",HASPOPUP:"haspopup",LABELLEDBY:"labelledby",LEVEL:"level",PRESSED:"pressed",SELECTED:"selected",VALUEMAX:"valuemax",VALUEMIN:"valuemin",VALUENOW:"valuenow"};
l.dom.a11y.Role={BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",LINK:"link",LISTBOX:"listbox",MAIN:"main",MENU:"menu",MENUBAR:"menubar",MENU_ITEM:"menuitem",MENU_ITEM_CHECKBOX:"menuitemcheckbox",MENU_ITEM_RADIO:"menuitemradio",NAVIGATION:"navigation",OPTION:"option",GROUP:"group",SLIDER:"slider",TAB:"tab",TAB_LIST:"tablist",TAB_PANEL:"tabpanel",TOOLBAR:"toolbar"};l.dom.a11y.setRole=function(a,c){if(l.userAgent.GECKO||l.dom.a11y.xe){a.setAttribute("role",c);a.roleName=c}};
l.dom.a11y.getRole=function(a){return a.roleName||""};l.dom.a11y.n=function(a,c,d){if(l.userAgent.GECKO||l.dom.a11y.xe)a.setAttribute("aria-"+c,d)};l.dom.a11y.Ha=function(a,c){return a.getAttribute("aria-"+c)||""};l.dom.a11y.getNoBrowserCheck=function(){return!!l.dom.a11y.xe};l.dom.a11y.setNoBrowserCheck=function(a){l.dom.a11y.xe=a};l.dom.a11y.getActiveDescendant=function(a){var c=l.dom.a11y.Ha(a,l.dom.a11y.State.ACTIVEDESCENDANT);return l.dom.m(a).getElementById(c)};
l.dom.a11y.setActiveDescendant=function(a,c){l.dom.a11y.n(a,l.dom.a11y.State.ACTIVEDESCENDANT,c?c.id:"")};l.ui={};l.ui.IdGenerator=function(){};l.addSingletonGetter(l.ui.IdGenerator);l.ui.IdGenerator.prototype.Sg=0;l.ui.IdGenerator.prototype.Uf=function(){return":"+(this.Sg++).toString(36)};l.ui.IdGenerator.instance=l.ui.IdGenerator.getInstance();l.ui.Component=function(a){l.events.EventTarget.call(this);this.v=a||l.dom.c();this.Db=l.ui.Component.qf};l.inherits(l.ui.Component,l.events.EventTarget);l.ui.Component.prototype.qg=l.ui.IdGenerator.getInstance();l.ui.Component.qf=i;
l.ui.Component.EventType={BEFORE_SHOW:"beforeshow",SHOW:"show",HIDE:"hide",DISABLE:"disable",ENABLE:"enable",HIGHLIGHT:"highlight",UNHIGHLIGHT:"unhighlight",ACTIVATE:"activate",DEACTIVATE:"deactivate",SELECT:"select",UNSELECT:"unselect",CHECK:"check",UNCHECK:"uncheck",FOCUS:"focus",BLUR:"blur",OPEN:"open",CLOSE:"close",ENTER:"enter",LEAVE:"leave",ACTION:"action",CHANGE:"change"};
l.ui.Component.Error={NOT_SUPPORTED:"Method not supported",DECORATE_INVALID:"Invalid element to decorate",ALREADY_RENDERED:"Component already rendered",PARENT_UNABLE_TO_BE_SET:"Unable to set parent component",CHILD_INDEX_OUT_OF_BOUNDS:"Child component index out of bounds",NOT_OUR_CHILD:"Child is not in parent component",NOT_IN_DOCUMENT:"Operation not supported while component is not in document",STATE_INVALID:"Invalid component state"};
l.ui.Component.State={ALL:255,DISABLED:1,HOVER:2,ACTIVE:4,SELECTED:8,CHECKED:16,FOCUSED:32,OPENED:64};
l.ui.Component.getStateTransitionEvent=function(a,c){switch(a){case l.ui.Component.State.DISABLED:return c?l.ui.Component.EventType.DISABLE:l.ui.Component.EventType.ENABLE;case l.ui.Component.State.HOVER:return c?l.ui.Component.EventType.HIGHLIGHT:l.ui.Component.EventType.UNHIGHLIGHT;case l.ui.Component.State.ACTIVE:return c?l.ui.Component.EventType.ACTIVATE:l.ui.Component.EventType.DEACTIVATE;case l.ui.Component.State.SELECTED:return c?l.ui.Component.EventType.SELECT:l.ui.Component.EventType.UNSELECT;
case l.ui.Component.State.CHECKED:return c?l.ui.Component.EventType.CHECK:l.ui.Component.EventType.UNCHECK;case l.ui.Component.State.FOCUSED:return c?l.ui.Component.EventType.FOCUS:l.ui.Component.EventType.BLUR;case l.ui.Component.State.OPENED:return c?l.ui.Component.EventType.OPEN:l.ui.Component.EventType.CLOSE;default:}b(Error(l.ui.Component.Error.STATE_INVALID))};l.ui.Component.setDefaultRightToLeft=function(a){l.ui.Component.qf=a};l.ui.Component.prototype.cb=i;l.ui.Component.prototype.v=i;
l.ui.Component.prototype.Ja=j;l.ui.Component.prototype.e=i;l.ui.Component.prototype.Db=i;l.ui.Component.prototype.Og=i;l.ui.Component.prototype.ea=i;l.ui.Component.prototype.va=i;l.ui.Component.prototype.Ea=i;l.ui.Component.prototype.Pe=j;l.ui.Component.prototype.Qf=function(){return this.cb||(this.cb=this.qg.Uf())};l.ui.Component.prototype.qh=function(a){if(this.ea&&this.ea.Ea){l.object.remove(this.ea.Ea,this.cb);l.object.add(this.ea.Ea,a,this)}this.cb=a};l.ui.Component.prototype.a=function(){return this.e};
l.ui.Component.prototype.Fe=function(a){this.e=a};l.ui.Component.prototype.Xa=function(){return this.sb||(this.sb=new l.events.EventHandler(this))};l.ui.Component.prototype.sh=function(a){if(this==a)b(Error(l.ui.Component.Error.PARENT_UNABLE_TO_BE_SET));if(a&&this.ea&&this.cb&&this.ea.Pd(this.cb)&&this.ea!=a)b(Error(l.ui.Component.Error.PARENT_UNABLE_TO_BE_SET));this.ea=a;l.ui.Component.h.jc.call(this,a)};l.ui.Component.prototype.Wf=function(){return this.ea};
l.ui.Component.prototype.jc=function(a){if(this.ea&&this.ea!=a)b(Error(l.ui.Component.Error.NOT_SUPPORTED));l.ui.Component.h.jc.call(this,a)};l.ui.Component.prototype.c=function(){return this.v};l.ui.Component.prototype.dc=function(){return this.Ja};l.ui.Component.prototype.g=function(){this.e=this.v.createElement("div")};
l.ui.Component.prototype.decorate=function(a){if(this.Ja)b(Error(l.ui.Component.Error.ALREADY_RENDERED));else if(a&&this.ha(a)){this.Pe=h;if(!this.v||this.v.z()!=l.dom.m(a))this.v=l.dom.c(a);this.Fa(a);this.ga()}else b(Error(l.ui.Component.Error.DECORATE_INVALID))};l.ui.Component.prototype.ha=function(){return h};l.ui.Component.prototype.Fa=function(a){this.e=a};l.ui.Component.prototype.ga=function(){this.Ja=h;this.Dc(function(a){!a.dc()&&a.a()&&a.ga()})};
l.ui.Component.prototype.Ua=function(){this.Dc(function(a){a.dc()&&a.Ua()});this.sb&&this.sb.ra();this.Ja=j};l.ui.Component.prototype.b=function(){l.ui.Component.h.b.call(this);this.Ja&&this.Ua();if(this.sb){this.sb.dispose();delete this.sb}this.Dc(function(a){a.dispose()});!this.Pe&&this.e&&l.dom.removeNode(this.e);this.ea=this.Og=this.e=this.Ea=this.va=i};l.ui.Component.prototype.xa=function(){return this.e};
l.ui.Component.prototype.vb=function(){if(this.Db==i)this.Db=l.style.vb(this.Ja?this.e:this.v.z().body);return this.Db};l.ui.Component.prototype.sa=function(a){if(this.Ja)b(Error(l.ui.Component.Error.ALREADY_RENDERED));this.Db=a};l.ui.Component.prototype.kg=function(){return!!this.va&&this.va.length!=0};l.ui.Component.prototype.Pd=function(a){return this.Ea&&a?l.object.get(this.Ea,a)||i:i};l.ui.Component.prototype.If=function(a){return this.va?this.va[a]||i:i};
l.ui.Component.prototype.Dc=function(a,c){this.va&&l.array.forEach(this.va,a,c)};l.ui.Component.prototype.removeChild=function(a,c){if(a){var d=l.isString(a)?a:a.Qf();a=this.Pd(d);if(d&&a){l.object.remove(this.Ea,d);l.array.remove(this.va,a);if(c){a.Ua();a.e&&l.dom.removeNode(a.e)}a.sh(i)}}if(!a)b(Error(l.ui.Component.Error.NOT_OUR_CHILD));return a};l.ui.Component.prototype.eh=function(a,c){return this.removeChild(this.If(a),c)};l.ui.Component.prototype.Cb=function(a){for(;this.kg();)this.eh(0,a)};l.ui.ControlContent=l.typedef;l.ui.ControlRenderer=function(){};l.addSingletonGetter(l.ui.ControlRenderer);l.ui.ControlRenderer.getCustomRenderer=function(a,c){a=new a;a.w=function(){return c};return a};l.ui.ControlRenderer.CSS_CLASS="goog-control";l.ui.ControlRenderer.IE6_CLASS_COMBINATIONS=[];l.ui.ControlRenderer.prototype.qb=function(){return undefined};l.ui.ControlRenderer.prototype.g=function(a){return a.c().g("div",this.Hc(a).join(" "),a.Ic())};l.ui.ControlRenderer.prototype.xa=function(a){return a};
l.ui.ControlRenderer.prototype.ob=function(a,c,d){if(a=a.a?a.a():a)if(l.userAgent.IE&&!l.userAgent.isVersion("7")){var e=this.Fc(l.dom.classes.get(a),c);e.push(c);c=d?l.dom.classes.add:l.dom.classes.remove;l.partial(c,a).apply(i,e)}else l.dom.classes.enable(a,c,d)};l.ui.ControlRenderer.prototype.Hd=function(a,c,d){this.ob(a,c,d)};l.ui.ControlRenderer.prototype.ha=function(){return h};
l.ui.ControlRenderer.prototype.decorate=function(a,c){c.id&&a.qh(c.id);var d=this.xa(c);d&&d.firstChild?a.gd(d.firstChild.nextSibling?l.array.clone(d.childNodes):d.firstChild):a.gd(i);var e=0,f=this.w(),g=this.Xb(),k=j,n=j;d=j;var o=l.dom.classes.get(c);l.array.forEach(o,function(r){if(!k&&r==f){k=h;if(g==f)n=h}else if(!n&&r==g)n=h;else e|=this.Zf(r)},this);a.vh(e);if(!k){o.push(f);if(g==f)n=h}n||o.push(g);(a=a.Rd())&&o.push.apply(o,a);if(l.userAgent.IE&&!l.userAgent.isVersion("7")){var q=this.Fc(o);
if(q.length>0){o.push.apply(o,q);d=h}}if(!k||!n||a||d)l.dom.classes.set(c,o.join(" "));return c};l.ui.ControlRenderer.prototype.Sc=function(a){a.vb()&&this.sa(a.a(),h);a.da()&&this.ib(a,a.aa())};l.ui.ControlRenderer.prototype.Ee=function(a){if(l.userAgent.GECKO){var c=this.qb();c&&l.dom.a11y.setRole(a,c)}};l.ui.ControlRenderer.prototype.Na=function(a,c){l.style.setUnselectable(a,!c,!l.userAgent.IE&&!l.userAgent.OPERA)};l.ui.ControlRenderer.prototype.sa=function(a,c){this.ob(a,this.Xb()+"-rtl",c)};
l.ui.ControlRenderer.prototype.Uc=function(a){var c;if(a.qa(l.ui.Component.State.FOCUSED)&&(c=a.ya()))return l.dom.isFocusableTabIndex(c);return j};l.ui.ControlRenderer.prototype.ib=function(a,c){var d;if(a.qa(l.ui.Component.State.FOCUSED)&&(d=a.ya())){if(!c&&a.re()){try{d.blur()}catch(e){}a.re()&&a.ee(i)}l.dom.isFocusableTabIndex(d)!=c&&l.dom.setFocusableTabIndex(d,c)}};l.ui.ControlRenderer.prototype.fa=function(a,c){l.style.showElement(a,c)};
l.ui.ControlRenderer.prototype.n=function(a,c,d){var e=a.a();if(e){var f=this.Gc(c);f&&this.ob(a,f,d);this.Ca(e,c,d)}};
l.ui.ControlRenderer.prototype.Ca=function(a,c,d){if(l.userAgent.GECKO){if(!l.ui.ControlRenderer.Te)l.ui.ControlRenderer.Te=l.object.create(l.ui.Component.State.DISABLED,l.dom.a11y.State.DISABLED,l.ui.Component.State.ACTIVE,l.dom.a11y.State.PRESSED,l.ui.Component.State.SELECTED,l.dom.a11y.State.SELECTED,l.ui.Component.State.CHECKED,l.dom.a11y.State.CHECKED,l.ui.Component.State.OPENED,l.dom.a11y.State.EXPANDED);(c=l.ui.ControlRenderer.Te[c])&&l.dom.a11y.n(a,c,d)}};
l.ui.ControlRenderer.prototype.ya=function(a){return a.a()};l.ui.ControlRenderer.prototype.w=function(){return l.ui.ControlRenderer.CSS_CLASS};l.ui.ControlRenderer.prototype.Rf=function(){return[]};l.ui.ControlRenderer.prototype.Xb=function(){return this.w()};l.ui.ControlRenderer.prototype.Hc=function(a){var c=this.w(),d=[c],e=this.Xb();e!=c&&d.push(e);(c=this.Jf(a.Ha()))&&d.push.apply(d,c);(a=a.Rd())&&d.push.apply(d,a);l.userAgent.IE&&!l.userAgent.isVersion("7")&&d.push.apply(d,this.Fc(d));return d};
l.ui.ControlRenderer.prototype.Fc=function(a,c){var d=[];if(c)a=a.concat([c]);l.array.forEach(this.Rf(),function(e){if(l.array.every(e,l.partial(l.array.contains,a))&&(!c||l.array.contains(e,c)))d.push(e.join("_"))});return d};l.ui.ControlRenderer.prototype.Jf=function(a){if(a){for(var c=[],d=1;a;d<<=1)if(a&d){c.push(this.Gc(d));a&=~d}return c}return i};l.ui.ControlRenderer.prototype.Gc=function(a){this.rc||this.yd();return this.rc[a]};
l.ui.ControlRenderer.prototype.Zf=function(a){this.Ih||this.pf();a=parseInt(this.Ih[a],10);return isNaN(a)?0:a};l.ui.ControlRenderer.prototype.yd=function(){var a=this.Xb();this.rc=l.object.create(l.ui.Component.State.DISABLED,a+"-disabled",l.ui.Component.State.HOVER,a+"-hover",l.ui.Component.State.ACTIVE,a+"-active",l.ui.Component.State.SELECTED,a+"-selected",l.ui.Component.State.CHECKED,a+"-checked",l.ui.Component.State.FOCUSED,a+"-focused",l.ui.Component.State.OPENED,a+"-open")};
l.ui.ControlRenderer.prototype.pf=function(){this.rc||this.yd();this.Ih=l.object.transpose(this.rc)};l.ui.ButtonRenderer=function(){l.ui.ControlRenderer.call(this)};l.inherits(l.ui.ButtonRenderer,l.ui.ControlRenderer);l.addSingletonGetter(l.ui.ButtonRenderer);l.ui.ButtonRenderer.CSS_CLASS="goog-button";l.ui.ButtonRenderer.prototype.qb=function(){return l.dom.a11y.Role.BUTTON};l.ui.ButtonRenderer.prototype.Ca=function(a,c,d){if(l.userAgent.GECKO)c==l.ui.Component.State.CHECKED?l.dom.a11y.n(a,l.dom.a11y.State.PRESSED,d):l.ui.ButtonRenderer.h.Ca.call(this,a,c,d)};
l.ui.ButtonRenderer.prototype.g=function(a){var c=l.ui.ButtonRenderer.h.g.call(this,a),d=a.Za();d&&this.kc(c,d);(d=a.Ia())&&this.jb(c,d);a.qa(l.ui.Component.State.CHECKED)&&this.Ca(c,l.ui.Component.State.CHECKED,j);return c};l.ui.ButtonRenderer.prototype.decorate=function(a,c){c=l.ui.ButtonRenderer.h.decorate.call(this,a,c);a.Bh(this.Ia(c));a.zh(this.Za(c));a.qa(l.ui.Component.State.CHECKED)&&this.Ca(c,l.ui.Component.State.CHECKED,j);return c};l.ui.ButtonRenderer.prototype.Ia=l.nullFunction;
l.ui.ButtonRenderer.prototype.jb=l.nullFunction;l.ui.ButtonRenderer.prototype.Za=function(a){return a.title};l.ui.ButtonRenderer.prototype.kc=function(a,c){if(a)a.title=c||""};l.ui.ButtonRenderer.prototype.w=function(){return l.ui.ButtonRenderer.CSS_CLASS};l.events.KeyHandler=function(a){l.events.EventTarget.call(this);a&&this.attach(a)};l.inherits(l.events.KeyHandler,l.events.EventTarget);l.events.KeyHandler.prototype.e=i;l.events.KeyHandler.prototype.ec=i;l.events.KeyHandler.prototype.Wc=i;l.events.KeyHandler.prototype.fc=i;l.events.KeyHandler.prototype.xb=-1;l.events.KeyHandler.prototype.eb=-1;l.events.KeyHandler.EventType={KEY:"key"};
l.events.KeyHandler.ih={"3":l.events.KeyCodes.ENTER,"12":l.events.KeyCodes.NUMLOCK,"63232":l.events.KeyCodes.UP,"63233":l.events.KeyCodes.DOWN,"63234":l.events.KeyCodes.LEFT,"63235":l.events.KeyCodes.RIGHT,"63236":l.events.KeyCodes.F1,"63237":l.events.KeyCodes.F2,"63238":l.events.KeyCodes.F3,"63239":l.events.KeyCodes.F4,"63240":l.events.KeyCodes.F5,"63241":l.events.KeyCodes.F6,"63242":l.events.KeyCodes.F7,"63243":l.events.KeyCodes.F8,"63244":l.events.KeyCodes.F9,"63245":l.events.KeyCodes.F10,"63246":l.events.KeyCodes.F11,
"63247":l.events.KeyCodes.F12,"63248":l.events.KeyCodes.PRINT_SCREEN,"63272":l.events.KeyCodes.DELETE,"63273":l.events.KeyCodes.HOME,"63275":l.events.KeyCodes.END,"63276":l.events.KeyCodes.PAGE_UP,"63277":l.events.KeyCodes.PAGE_DOWN,"63289":l.events.KeyCodes.NUMLOCK,"63302":l.events.KeyCodes.INSERT};
l.events.KeyHandler.Cg={Up:l.events.KeyCodes.UP,Down:l.events.KeyCodes.DOWN,Left:l.events.KeyCodes.LEFT,Right:l.events.KeyCodes.RIGHT,Enter:l.events.KeyCodes.ENTER,F1:l.events.KeyCodes.F1,F2:l.events.KeyCodes.F2,F3:l.events.KeyCodes.F3,F4:l.events.KeyCodes.F4,F5:l.events.KeyCodes.F5,F6:l.events.KeyCodes.F6,F7:l.events.KeyCodes.F7,F8:l.events.KeyCodes.F8,F9:l.events.KeyCodes.F9,F10:l.events.KeyCodes.F10,F11:l.events.KeyCodes.F11,F12:l.events.KeyCodes.F12,"U+007F":l.events.KeyCodes.DELETE,Home:l.events.KeyCodes.HOME,
End:l.events.KeyCodes.END,PageUp:l.events.KeyCodes.PAGE_UP,PageDown:l.events.KeyCodes.PAGE_DOWN,Insert:l.events.KeyCodes.INSERT};l.events.KeyHandler.Qg={61:187,59:186};l.events.KeyHandler.ii=l.userAgent.IE||l.userAgent.WEBKIT&&l.userAgent.isVersion("525");
l.events.KeyHandler.prototype.eg=function(a){if(l.events.KeyHandler.ii&&!l.events.KeyCodes.firesKeyPressEvent(a.keyCode,this.xb,a.shiftKey,a.ctrlKey))this.handleEvent(a);else this.eb=l.userAgent.GECKO&&a.keyCode in l.events.KeyHandler.Qg?l.events.KeyHandler.Qg[a.keyCode]:a.keyCode};l.events.KeyHandler.prototype.gg=function(){this.eb=this.xb=-1};
l.events.KeyHandler.prototype.handleEvent=function(a){var c=a.Gf(),d,e;if(l.userAgent.IE&&a.type==l.events.EventType.KEYPRESS){d=this.eb;e=d!=l.events.KeyCodes.ENTER&&d!=l.events.KeyCodes.ESC?c.keyCode:0}else if(l.userAgent.WEBKIT&&a.type==l.events.EventType.KEYPRESS){d=this.eb;e=c.charCode>=0&&c.charCode<63232&&l.events.KeyCodes.isCharacterKey(d)?c.charCode:0}else if(l.userAgent.OPERA){d=this.eb;e=l.events.KeyCodes.isCharacterKey(d)?c.keyCode:0}else{d=c.keyCode||this.eb;e=c.charCode||0;if(l.userAgent.MAC&&
e==l.events.KeyCodes.QUESTION_MARK&&!d)d=l.events.KeyCodes.SLASH}var f=d,g=c.keyIdentifier;if(d)if(d>=63232&&d in l.events.KeyHandler.ih)f=l.events.KeyHandler.ih[d];else{if(d==25&&a.shiftKey)f=9}else if(g&&g in l.events.KeyHandler.Cg)f=l.events.KeyHandler.Cg[g];a=f==this.xb;this.xb=f;c=new l.events.KeyEvent(f,e,a,c);try{this.dispatchEvent(c)}finally{c.dispose()}};
l.events.KeyHandler.prototype.attach=function(a){this.fc&&this.detach();this.e=a;this.ec=l.events.listen(this.e,l.events.EventType.KEYPRESS,this);this.Wc=l.events.listen(this.e,l.events.EventType.KEYDOWN,this.eg,j,this);this.fc=l.events.listen(this.e,l.events.EventType.KEYUP,this.gg,j,this)};l.events.KeyHandler.prototype.detach=function(){if(this.ec){l.events.unlistenByKey(this.ec);l.events.unlistenByKey(this.Wc);l.events.unlistenByKey(this.fc);this.fc=this.Wc=this.ec=i}this.e=i;this.xb=-1};
l.events.KeyHandler.prototype.b=function(){l.events.KeyHandler.h.b.call(this);this.detach()};l.events.KeyEvent=function(a,c,d,e){l.events.BrowserEvent.call(this,e);this.type=l.events.KeyHandler.EventType.KEY;this.keyCode=a;this.charCode=c;this.repeat=d};l.inherits(l.events.KeyEvent,l.events.BrowserEvent);l.ui.registry={};l.ui.registry.getDefaultRenderer=function(a){for(var c;a;){c=l.getHashCode(a);if(c=l.ui.registry.Cd[c])break;a=a.h?a.h.constructor:i}if(c)return l.isFunction(c.getInstance)?c.getInstance():new c;return i};l.ui.registry.setDefaultRenderer=function(a,c){if(!l.isFunction(a))b(Error("Invalid component class "+a));if(!l.isFunction(c))b(Error("Invalid renderer class "+c));a=l.getHashCode(a);l.ui.registry.Cd[a]=c};
l.ui.registry.getDecoratorByClassName=function(a){return a in l.ui.registry.wc?l.ui.registry.wc[a]():i};l.ui.registry.setDecoratorByClassName=function(a,c){if(!a)b(Error("Invalid class name "+a));if(!l.isFunction(c))b(Error("Invalid decorator function "+c));l.ui.registry.wc[a]=c};l.ui.registry.getDecorator=function(a){for(var c=l.dom.classes.get(a),d=0,e=c.length;d<e;d++)if(a=l.ui.registry.getDecoratorByClassName(c[d]))return a;return i};
l.ui.registry.reset=function(){l.ui.registry.Cd={};l.ui.registry.wc={}};l.ui.registry.Cd={};l.ui.registry.wc={};l.ui.decorate=function(a){var c=l.ui.registry.getDecorator(a);c&&c.decorate(a);return c};l.ui.Control=function(a,c,d){l.ui.Component.call(this,d);this.k=c||l.ui.registry.getDefaultRenderer(this.constructor);this.gd(a)};l.inherits(l.ui.Control,l.ui.Component);l.ui.Control.registerDecorator=l.ui.registry.setDecoratorByClassName;l.ui.Control.getDecorator=l.ui.registry.getDecorator;l.ui.Control.decorate=l.ui.decorate;l.ui.Control.prototype.tc=i;l.ui.Control.prototype.kb=0;l.ui.Control.prototype.Hb=l.ui.Component.State.DISABLED|l.ui.Component.State.HOVER|l.ui.Component.State.ACTIVE|l.ui.Component.State.FOCUSED;
l.ui.Control.prototype.Nb=l.ui.Component.State.ALL;l.ui.Control.prototype.Jh=0;l.ui.Control.prototype.nc=h;l.ui.Control.prototype.ja=i;l.ui.Control.prototype.Qc=h;l.ui.Control.prototype.rd=j;l.ui.Control.prototype.yg=function(){return this.Qc};l.ui.Control.prototype.oh=function(a){this.dc()&&a!=this.Qc&&this.Id(a);this.Qc=a};l.ui.Control.prototype.ya=function(){return this.k.ya(this)};l.ui.Control.prototype.Tf=function(){return this.wb||(this.wb=new l.events.KeyHandler)};
l.ui.Control.prototype.ae=function(){return this.k};l.ui.Control.prototype.Rd=function(){return this.ja};l.ui.Control.prototype.af=function(a){if(a){if(this.ja)l.array.contains(this.ja,a)||this.ja.push(a);else this.ja=[a];this.k.Hd(this,a,h)}};l.ui.Control.prototype.fh=function(a){if(a&&this.ja){l.array.remove(this.ja,a);if(this.ja.length==0)this.ja=i;this.k.Hd(this,a,j)}};l.ui.Control.prototype.ob=function(a,c){c?this.af(a):this.fh(a)};
l.ui.Control.prototype.g=function(){var a=this.k.g(this);this.Fe(a);this.k.Ee(a);this.Tc()||this.k.Na(a,j);this.aa()||this.k.fa(a,j)};l.ui.Control.prototype.xa=function(){return this.k.xa(this.a())};l.ui.Control.prototype.ha=function(a){return this.k.ha(a)};l.ui.Control.prototype.Fa=function(a){a=this.k.decorate(this,a);this.Fe(a);this.k.Ee(a);this.Tc()||this.k.Na(a,j);this.nc=a.style.display!="none"};
l.ui.Control.prototype.ga=function(){l.ui.Control.h.ga.call(this);this.k.Sc(this);if(this.Hb&~l.ui.Component.State.DISABLED){this.yg()&&this.Id(h);if(this.qa(l.ui.Component.State.FOCUSED)){var a=this.ya();if(a){var c=this.Tf();c.attach(a);this.Xa().listen(c,l.events.KeyHandler.EventType.KEY,this.fg).listen(a,l.events.EventType.FOCUS,this.tb).listen(a,l.events.EventType.BLUR,this.ee)}}}};
l.ui.Control.prototype.Id=function(a){var c=this.Xa(),d=this.a();if(a){c.listen(d,l.events.EventType.MOUSEOVER,this.ab).listen(d,l.events.EventType.MOUSEDOWN,this.ge).listen(d,l.events.EventType.MOUSEUP,this.je).listen(d,l.events.EventType.MOUSEOUT,this.ie);l.userAgent.IE&&c.listen(d,l.events.EventType.DBLCLICK,this.fe)}else{c.unlisten(d,l.events.EventType.MOUSEOVER,this.ab).unlisten(d,l.events.EventType.MOUSEDOWN,this.ge).unlisten(d,l.events.EventType.MOUSEUP,this.je).unlisten(d,l.events.EventType.MOUSEOUT,
this.ie);l.userAgent.IE&&c.unlisten(d,l.events.EventType.DBLCLICK,this.fe)}};l.ui.Control.prototype.Ua=function(){l.ui.Control.h.Ua.call(this);this.wb&&this.wb.detach();this.aa()&&this.da()&&this.k.ib(this,j)};l.ui.Control.prototype.b=function(){l.ui.Control.h.b.call(this);if(this.wb){this.wb.dispose();delete this.wb}delete this.k;this.ja=this.tc=i};l.ui.Control.prototype.Ic=function(){return this.tc};l.ui.Control.prototype.gd=function(a){this.tc=a};
l.ui.Control.prototype.Hf=function(){var a=this.Ic();if(!a||l.isString(a))return a;return(a=l.isArray(a)?l.array.map(a,l.dom.Ya).join(""):l.dom.Ya(a))&&l.string.trim(a)};l.ui.Control.prototype.sa=function(a){l.ui.Control.h.sa.call(this,a);var c=this.a();c&&this.k.sa(c,a)};l.ui.Control.prototype.Tc=function(){return this.rd};l.ui.Control.prototype.Na=function(a){this.rd=a;var c=this.a();c&&this.k.Na(c,a)};l.ui.Control.prototype.aa=function(){return this.nc};
l.ui.Control.prototype.fa=function(a,c){if(c||this.nc!=a&&this.dispatchEvent(a?l.ui.Component.EventType.SHOW:l.ui.Component.EventType.HIDE)){(c=this.a())&&this.k.fa(c,a);this.da()&&this.k.ib(this,a);this.nc=a;return h}return j};l.ui.Control.prototype.da=function(){return!this.oa(l.ui.Component.State.DISABLED)};l.ui.Control.prototype.zg=function(){var a=this.Wf();return!!a&&typeof a.da=="function"&&!a.da()};
l.ui.Control.prototype.nh=function(a){if(!this.zg()&&this.Ka(l.ui.Component.State.DISABLED,!a)){if(!a){this.setActive(j);this.Gb(j)}this.aa()&&this.k.ib(this,a);this.n(l.ui.Component.State.DISABLED,!a)}};l.ui.Control.prototype.Gb=function(a){this.Ka(l.ui.Component.State.HOVER,a)&&this.n(l.ui.Component.State.HOVER,a)};l.ui.Control.prototype.tg=function(){return this.oa(l.ui.Component.State.ACTIVE)};
l.ui.Control.prototype.setActive=function(a){this.Ka(l.ui.Component.State.ACTIVE,a)&&this.n(l.ui.Component.State.ACTIVE,a)};l.ui.Control.prototype.uh=function(a){this.Ka(l.ui.Component.State.SELECTED,a)&&this.n(l.ui.Component.State.SELECTED,a)};l.ui.Control.prototype.ug=function(){return this.oa(l.ui.Component.State.CHECKED)};l.ui.Control.prototype.mh=function(a){this.Ka(l.ui.Component.State.CHECKED,a)&&this.n(l.ui.Component.State.CHECKED,a)};l.ui.Control.prototype.re=function(){return this.oa(l.ui.Component.State.FOCUSED)};
l.ui.Control.prototype.Ge=function(a){this.Ka(l.ui.Component.State.FOCUSED,a)&&this.n(l.ui.Component.State.FOCUSED,a)};l.ui.Control.prototype.isOpen=function(){return this.oa(l.ui.Component.State.OPENED)};l.ui.Control.prototype.rh=function(a){this.Ka(l.ui.Component.State.OPENED,a)&&this.n(l.ui.Component.State.OPENED,a)};l.ui.Control.prototype.Ha=function(){return this.kb};l.ui.Control.prototype.oa=function(a){return!!(this.kb&a)};
l.ui.Control.prototype.n=function(a,c){if(this.qa(a)&&c!=this.oa(a)){this.k.n(this,a,c);this.kb=c?this.kb|a:this.kb&~a}};l.ui.Control.prototype.vh=function(a){this.kb=a};l.ui.Control.prototype.qa=function(a){return!!(this.Hb&a)};l.ui.Control.prototype.xh=function(a,c){if(this.dc()&&this.oa(a)&&!c)b(Error(l.ui.Component.Error.ALREADY_RENDERED));!c&&this.oa(a)&&this.n(a,j);this.Hb=c?this.Hb|a:this.Hb&~a};l.ui.Control.prototype.$=function(a){return!!(this.Nb&a)&&this.qa(a)};
l.ui.Control.prototype.kh=function(a,c){this.Nb=c?this.Nb|a:this.Nb&~a};l.ui.Control.prototype.Ka=function(a,c){return this.qa(a)&&this.oa(a)!=c&&(!(this.Jh&a)||this.dispatchEvent(l.ui.Component.getStateTransitionEvent(a,c)))&&!this.vg()};l.ui.Control.prototype.ab=function(a){a.relatedTarget&&!l.dom.contains(this.a(),a.relatedTarget)&&this.dispatchEvent(l.ui.Component.EventType.ENTER)&&this.da()&&this.$(l.ui.Component.State.HOVER)&&this.Gb(h)};
l.ui.Control.prototype.ie=function(a){if(a.relatedTarget&&!l.dom.contains(this.a(),a.relatedTarget)&&this.dispatchEvent(l.ui.Component.EventType.LEAVE)){this.$(l.ui.Component.State.ACTIVE)&&this.setActive(j);this.$(l.ui.Component.State.HOVER)&&this.Gb(j)}};
l.ui.Control.prototype.ge=function(a){if(this.da()){this.$(l.ui.Component.State.HOVER)&&this.Gb(h);if(a.qe(l.events.BrowserEvent.MouseButton.LEFT)){this.$(l.ui.Component.State.ACTIVE)&&this.setActive(h);this.k.Uc(this)&&this.ya().focus()}}!this.Tc()&&a.qe(l.events.BrowserEvent.MouseButton.LEFT)&&a.preventDefault()};l.ui.Control.prototype.je=function(a){if(this.da()){this.$(l.ui.Component.State.HOVER)&&this.Gb(h);this.tg()&&this.Bb(a)&&this.$(l.ui.Component.State.ACTIVE)&&this.setActive(j)}};
l.ui.Control.prototype.fe=function(a){this.da()&&this.Bb(a)};l.ui.Control.prototype.Bb=function(a){this.$(l.ui.Component.State.CHECKED)&&this.mh(!this.ug());this.$(l.ui.Component.State.SELECTED)&&this.uh(h);this.$(l.ui.Component.State.OPENED)&&this.rh(!this.isOpen());var c=new l.events.Event(l.ui.Component.EventType.ACTION,this);if(a)for(var d=["altKey","ctrlKey","metaKey","shiftKey"],e,f=0;e=d[f];f++)c[e]=a[e];return this.dispatchEvent(c)};
l.ui.Control.prototype.tb=function(){this.$(l.ui.Component.State.FOCUSED)&&this.Ge(h)};l.ui.Control.prototype.ee=function(){this.$(l.ui.Component.State.ACTIVE)&&this.setActive(j);this.$(l.ui.Component.State.FOCUSED)&&this.Ge(j)};l.ui.Control.prototype.fg=function(a){if(this.aa()&&this.da()&&this.Yb(a)){a.preventDefault();a.stopPropagation();return h}return j};l.ui.Control.prototype.Yb=function(a){return a.keyCode==l.events.KeyCodes.ENTER&&this.Bb(a)};
l.ui.registry.setDefaultRenderer(l.ui.Control,l.ui.ControlRenderer);l.ui.registry.setDecoratorByClassName(l.ui.ControlRenderer.CSS_CLASS,function(){return new l.ui.Control(i)});l.ui.NativeButtonRenderer=function(){l.ui.ButtonRenderer.call(this)};l.inherits(l.ui.NativeButtonRenderer,l.ui.ButtonRenderer);l.addSingletonGetter(l.ui.NativeButtonRenderer);l.ui.NativeButtonRenderer.prototype.qb=function(){return undefined};l.ui.NativeButtonRenderer.prototype.g=function(a){this.He(a);return a.c().g("button",{"class":this.Hc(a).join(" "),disabled:!a.da(),title:a.Za()||"",value:a.Ia()||""},a.Hf()||"")};
l.ui.NativeButtonRenderer.prototype.ha=function(a){return a.tagName=="BUTTON"||a.tagName=="INPUT"&&(a.type=="button"||a.type=="submit"||a.type=="reset")};l.ui.NativeButtonRenderer.prototype.decorate=function(a,c){this.He(a);c.disabled&&l.dom.classes.add(c,this.Gc(l.ui.Component.State.DISABLED));return l.ui.NativeButtonRenderer.h.decorate.call(this,a,c)};l.ui.NativeButtonRenderer.prototype.Sc=function(a){a.Xa().listen(a.a(),l.events.EventType.CLICK,a.Bb)};l.ui.NativeButtonRenderer.prototype.Na=l.nullFunction;
l.ui.NativeButtonRenderer.prototype.sa=l.nullFunction;l.ui.NativeButtonRenderer.prototype.Uc=function(a){return a.da()};l.ui.NativeButtonRenderer.prototype.ib=l.nullFunction;l.ui.NativeButtonRenderer.prototype.n=function(a,c,d){l.ui.NativeButtonRenderer.h.n.call(this,a,c,d);if((a=a.a())&&c==l.ui.Component.State.DISABLED)a.disabled=d};l.ui.NativeButtonRenderer.prototype.Ia=function(a){return a.value};l.ui.NativeButtonRenderer.prototype.jb=function(a,c){if(a)a.value=c};
l.ui.NativeButtonRenderer.prototype.Ca=l.nullFunction;l.ui.NativeButtonRenderer.prototype.He=function(a){a.oh(j);a.kh(l.ui.Component.State.ALL,j);a.xh(l.ui.Component.State.FOCUSED,j)};l.ui.Button=function(a,c,d){l.ui.Control.call(this,a,c||l.ui.NativeButtonRenderer.getInstance(),d)};l.inherits(l.ui.Button,l.ui.Control);l.ui.Button.Side={NONE:0,START:1,END:2,BOTH:3};l.ui.Button.prototype.Ia=function(){return this.Oe};l.ui.Button.prototype.jb=function(a){this.Oe=a;this.ae().jb(this.a(),a)};l.ui.Button.prototype.Bh=function(a){this.Oe=a};l.ui.Button.prototype.Za=function(){return this.Me};l.ui.Button.prototype.kc=function(a){this.Me=a;this.ae().kc(this.a(),a)};
l.ui.Button.prototype.zh=function(a){this.Me=a};l.ui.Button.prototype.b=function(){l.ui.Button.h.b.call(this);delete this.Oe;delete this.Me};l.ui.Button.prototype.ga=function(){l.ui.Button.h.ga.call(this);if(this.qa(l.ui.Component.State.FOCUSED)){var a=this.ya();a&&this.Xa().listen(a,l.events.EventType.KEYUP,this.Yb)}};
l.ui.Button.prototype.Yb=function(a){if(a.keyCode==l.events.KeyCodes.ENTER&&a.type==l.events.KeyHandler.EventType.KEY||a.keyCode==l.events.KeyCodes.SPACE&&a.type==l.events.EventType.KEYUP)return this.Bb(a);return a.keyCode==l.events.KeyCodes.SPACE};l.ui.registry.setDecoratorByClassName(l.ui.ButtonRenderer.CSS_CLASS,function(){return new l.ui.Button(i)});l.ui.INLINE_BLOCK_CLASSNAME="goog-inline-block";l.ui.CustomButtonRenderer=function(){l.ui.ButtonRenderer.call(this)};l.inherits(l.ui.CustomButtonRenderer,l.ui.ButtonRenderer);l.addSingletonGetter(l.ui.CustomButtonRenderer);l.ui.CustomButtonRenderer.CSS_CLASS="goog-custom-button";l.ui.CustomButtonRenderer.prototype.g=function(a){var c=this.Hc(a);c={"class":l.ui.INLINE_BLOCK_CLASSNAME+" "+c.join(" "),title:a.Za()||""};return a.c().g("div",c,this.xd(a.Ic(),a.c()))};l.ui.CustomButtonRenderer.prototype.xa=function(a){return a&&a.firstChild.firstChild};
l.ui.CustomButtonRenderer.prototype.xd=function(a,c){return c.g("div",l.ui.INLINE_BLOCK_CLASSNAME+" "+(this.w()+"-outer-box"),c.g("div",l.ui.INLINE_BLOCK_CLASSNAME+" "+(this.w()+"-inner-box"),a))};l.ui.CustomButtonRenderer.prototype.ha=function(a){return a.tagName=="DIV"};l.ui.CustomButtonRenderer.prototype.jg=function(a,c){if((c=a.c().Vb(c))&&c.className.indexOf(this.w()+"-outer-box")!=-1)if((a=a.c().Vb(c))&&a.className.indexOf(this.w()+"-inner-box")!=-1)return h;return j};
l.ui.CustomButtonRenderer.prototype.decorate=function(a,c){l.ui.CustomButtonRenderer.Sh(c,h);l.ui.CustomButtonRenderer.Sh(c,j);this.jg(a,c)||c.appendChild(this.xd(c.childNodes,a.c()));l.dom.classes.add(c,l.ui.INLINE_BLOCK_CLASSNAME,this.w());return l.ui.CustomButtonRenderer.h.decorate.call(this,a,c)};l.ui.CustomButtonRenderer.prototype.w=function(){return l.ui.CustomButtonRenderer.CSS_CLASS};
l.ui.CustomButtonRenderer.Sh=function(a,c){if(a)for(var d=c?a.firstChild:a.lastChild,e;d&&d.parentNode==a;){e=c?d.nextSibling:d.previousSibling;if(d.nodeType==l.dom.NodeType.TEXT){var f=d.nodeValue;if(l.string.trim(f)=="")a.removeChild(d);else{d.nodeValue=c?l.string.trimLeft(f):l.string.trimRight(f);break}}else break;d=e}};l.ui.CustomButton=function(a,c,d){l.ui.Button.call(this,a,c||l.ui.CustomButtonRenderer.getInstance(),d)};l.inherits(l.ui.CustomButton,l.ui.Button);l.ui.registry.setDecoratorByClassName(l.ui.CustomButtonRenderer.CSS_CLASS,function(){return new l.ui.CustomButton(i)});l.ui.ScrollFloater=function(a,c){c=a?l.dom.c(a):c;l.ui.Component.call(this,c);this.Qi=a||this.c().z().body;this.$c={}};l.inherits(l.ui.ScrollFloater,l.ui.Component);l.ui.ScrollFloater.prototype.ed=h;l.ui.ScrollFloater.prototype.Tb=j;l.ui.ScrollFloater.hi=["position","top","left","width","cssFloat"];l.ui.ScrollFloater.fi=["position","top","left","display","cssFloat","marginTop","marginLeft","marginRight","marginBottom"];l.ui.ScrollFloater.Yh="goog-scrollfloater";
l.ui.ScrollFloater.prototype.g=function(){l.ui.ScrollFloater.h.g.call(this);this.Fa(this.a())};l.ui.ScrollFloater.prototype.Fa=function(a){l.ui.ScrollFloater.h.Fa.call(this,a);l.dom.classes.add(a,l.ui.ScrollFloater.Yh)};
l.ui.ScrollFloater.prototype.ga=function(){l.ui.ScrollFloater.h.ga.call(this);if(!this.gb)this.gb=this.c().g("div",{style:"visibility:hidden"});this.$g=l.style.getPageOffsetTop(this.a());this.th(this.ed);this.Xa().listen(window,l.events.EventType.SCROLL,this.pd);this.Xa().listen(window,l.events.EventType.RESIZE,this.hg)};l.ui.ScrollFloater.prototype.b=function(){l.ui.ScrollFloater.h.b.call(this);delete this.gb};l.ui.ScrollFloater.prototype.th=function(a){if(this.ed=a){this.ef();this.pd()}else this.md()};
l.ui.ScrollFloater.prototype.pd=function(){if(this.ed){this.c().z();var a=this.c().Ga().y;a>this.$g?this.Hh():this.md()}};
l.ui.ScrollFloater.prototype.Hh=function(){if(!this.Tb){var a=this.a();this.c().z();var c=l.style.getPageOffsetLeft(a),d=l.style.getContentBoxSize(a).width;this.$c={};l.object.forEach(l.ui.ScrollFloater.hi,function(e){this.$c[e]=a.style[e]},this);l.object.forEach(l.ui.ScrollFloater.fi,function(e){this.gb.style[e]=a.style[e]||l.style.getCascadedStyle(a,e)||l.style.getComputedStyle(a,e)},this);l.style.setSize(this.gb,a.offsetWidth,a.offsetHeight);l.style.setStyle(a,{left:c+"px",width:d+"px",cssFloat:"none"});
a.parentNode.replaceChild(this.gb,a);this.Qi.appendChild(a);if(this.Yc()){a.style.position="absolute";a.style.setExpression("top",'document.compatMode=="CSS1Compat"?documentElement.scrollTop:document.body.scrollTop')}else{a.style.position="fixed";a.style.top="0"}this.Tb=h}};l.ui.ScrollFloater.prototype.md=function(){if(this.Tb){var a=this.a();for(var c in this.$c)a.style[c]=this.$c[c];this.Yc()&&a.style.removeExpression("top");this.gb.parentNode.replaceChild(a,this.gb);this.Tb=j}};
l.ui.ScrollFloater.prototype.hg=function(){this.md();this.$g=l.style.getPageOffsetTop(this.a());this.pd()};l.ui.ScrollFloater.prototype.Yc=function(){return l.userAgent.IE&&!(l.userAgent.isVersion("7")&&this.c().pa())};
l.ui.ScrollFloater.prototype.ef=function(){if(this.Yc()){var a=this.c().z();a=l.style.getClientViewportElement(a);if(a.currentStyle.backgroundImage=="none"){a.style.backgroundImage=this.c().$a().location.protocol=="https:"?"url(https:///)":"url(about:blank)";a.style.backgroundAttachment="fixed"}}};l.positioning.AbstractPosition=function(){};l.positioning.AbstractPosition.prototype.reposition=function(){};l.positioning.AnchoredPosition=function(a,c){this.element=a;this.corner=c};l.inherits(l.positioning.AnchoredPosition,l.positioning.AbstractPosition);l.positioning.AnchoredPosition.prototype.reposition=function(a,c,d){l.positioning.positionAtAnchor(this.element,this.corner,a,c,undefined,d)};l.positioning.ViewportPosition=function(a,c){this.coordinate=a instanceof l.math.Coordinate?a:new l.math.Coordinate(a,c)};l.inherits(l.positioning.ViewportPosition,l.positioning.AbstractPosition);l.positioning.ViewportPosition.prototype.reposition=function(a,c,d,e){l.positioning.positionAtAnchor(l.style.getClientViewportElement(a),l.positioning.Corner.TOP_LEFT,a,c,this.coordinate,d,i,e)};l.iter={};l.iter.Iterable=l.typedef;l.iter.StopIteration="StopIteration"in l.global?l.global.StopIteration:Error("StopIteration");l.iter.Iterator=function(){};l.iter.Iterator.prototype.next=function(){b(l.iter.StopIteration)};l.iter.Iterator.prototype.__iterator__=function(){return this};
l.iter.toIterator=function(a){if(a instanceof l.iter.Iterator)return a;if(typeof a.__iterator__=="function")return a.__iterator__(j);if(l.isArrayLike(a)){var c=0,d=new l.iter.Iterator;d.next=function(){for(;1;){if(c>=a.length)b(l.iter.StopIteration);if(c in a)return a[c++];else c++}};return d}b(Error("Not implemented"))};
l.iter.forEach=function(a,c,d){if(l.isArrayLike(a))try{l.array.forEach(a,c,d)}catch(e){if(e!==l.iter.StopIteration)b(e)}else{a=l.iter.toIterator(a);try{for(;1;)c.call(d,a.next(),undefined,a)}catch(f){if(f!==l.iter.StopIteration)b(f)}}};l.iter.filter=function(a,c,d){a=l.iter.toIterator(a);var e=new l.iter.Iterator;e.next=function(){for(;1;){var f=a.next();if(c.call(d,f,undefined,a))return f}};return e};
l.iter.range=function(a,c,d){var e=0,f=a,g=d||1;if(arguments.length>1){e=a;f=c}if(g==0)b(Error("Range step argument must not be zero"));var k=new l.iter.Iterator;k.next=function(){if(g>0&&e>=f||g<0&&e<=f)b(l.iter.StopIteration);var n=e;e+=g;return n};return k};l.iter.join=function(a,c){return l.iter.toArray(a).join(c)};l.iter.map=function(a,c,d){a=l.iter.toIterator(a);var e=new l.iter.Iterator;e.next=function(){for(;1;){var f=a.next();return c.call(d,f,undefined,a)}};return e};
l.iter.reduce=function(a,c,d,e){var f=d;l.iter.forEach(a,function(g){f=c.call(e,f,g)});return f};l.iter.some=function(a,c,d){a=l.iter.toIterator(a);try{for(;1;)if(c.call(d,a.next(),undefined,a))return h}catch(e){if(e!==l.iter.StopIteration)b(e)}return j};l.iter.every=function(a,c,d){a=l.iter.toIterator(a);try{for(;1;)if(!c.call(d,a.next(),undefined,a))return j}catch(e){if(e!==l.iter.StopIteration)b(e)}return h};
l.iter.chain=function(){var a=arguments,c=a.length,d=0,e=new l.iter.Iterator;e.next=function(){try{if(d>=c)b(l.iter.StopIteration);var f=l.iter.toIterator(a[d]);return f.next()}catch(g){if(g!==l.iter.StopIteration||d>=c)b(g);else{d++;return this.next()}}};return e};l.iter.dropWhile=function(a,c,d){a=l.iter.toIterator(a);var e=new l.iter.Iterator,f=h;e.next=function(){for(;1;){var g=a.next();if(!(f&&c.call(d,g,undefined,a))){f=j;return g}}};return e};
l.iter.takeWhile=function(a,c,d){a=l.iter.toIterator(a);var e=new l.iter.Iterator,f=h;e.next=function(){for(;1;)if(f){var g=a.next();if(c.call(d,g,undefined,a))return g;else f=j}else b(l.iter.StopIteration)};return e};l.iter.toArray=function(a){if(l.isArrayLike(a))return l.array.toArray(a);a=l.iter.toIterator(a);var c=[];l.iter.forEach(a,function(d){c.push(d)});return c};
l.iter.equals=function(a,c){a=l.iter.toIterator(a);c=l.iter.toIterator(c);var d,e;try{for(;1;){d=e=j;var f=a.next();d=h;var g=c.next();e=h;if(f!=g)return j}}catch(k){if(k!==l.iter.StopIteration)b(k);else{if(d&&!e)return j;if(!e)try{c.next();return j}catch(n){if(n!==l.iter.StopIteration)b(n);return h}}}return j};l.iter.nextOrValue=function(a,c){try{return l.iter.toIterator(a).next()}catch(d){if(d!=l.iter.StopIteration)b(d);return c}};l.structs.r=function(a){if(typeof a.r=="function")return a.r();if(l.isArrayLike(a)||l.isString(a))return a.length;return l.object.r(a)};l.structs.i=function(a){if(typeof a.i=="function")return a.i();if(l.isString(a))return a.split("");if(l.isArrayLike(a)){for(var c=[],d=a.length,e=0;e<d;e++)c.push(a[e]);return c}return l.object.i(a)};
l.structs.o=function(a){if(typeof a.o=="function")return a.o();if(typeof a.i=="function")return undefined;if(l.isArrayLike(a)||l.isString(a)){var c=[];a=a.length;for(var d=0;d<a;d++)c.push(d);return c}return l.object.o(a)};l.structs.contains=function(a,c){if(typeof a.contains=="function")return a.contains(c);if(typeof a.Ra=="function")return a.Ra(c);if(l.isArrayLike(a)||l.isString(a))return l.array.contains(a,c);return l.object.Ra(a,c)};
l.structs.p=function(a){if(typeof a.p=="function")return a.p();if(l.isArrayLike(a)||l.isString(a))return l.array.p(a);return l.object.p(a)};l.structs.clear=function(a){if(typeof a.clear=="function")a.clear();else l.isArrayLike(a)?l.array.clear(a):l.object.clear(a)};
l.structs.forEach=function(a,c,d){if(typeof a.forEach=="function")a.forEach(c,d);else if(l.isArrayLike(a)||l.isString(a))l.array.forEach(a,c,d);else for(var e=l.structs.o(a),f=l.structs.i(a),g=f.length,k=0;k<g;k++)c.call(d,f[k],e&&e[k],a)};
l.structs.filter=function(a,c,d){if(typeof a.filter=="function")return a.filter(c,d);if(l.isArrayLike(a)||l.isString(a))return l.array.filter(a,c,d);var e,f=l.structs.o(a),g=l.structs.i(a),k=g.length;if(f){e={};for(var n=0;n<k;n++)if(c.call(d,g[n],f[n],a))e[f[n]]=g[n]}else{e=[];for(n=0;n<k;n++)c.call(d,g[n],undefined,a)&&e.push(g[n])}return e};
l.structs.map=function(a,c,d){if(typeof a.map=="function")return a.map(c,d);if(l.isArrayLike(a)||l.isString(a))return l.array.map(a,c,d);var e,f=l.structs.o(a),g=l.structs.i(a),k=g.length;if(f){e={};for(var n=0;n<k;n++)e[f[n]]=c.call(d,g[n],f[n],a)}else{e=[];for(n=0;n<k;n++)e[n]=c.call(d,g[n],undefined,a)}return e};
l.structs.some=function(a,c,d){if(typeof a.some=="function")return a.some(c,d);if(l.isArrayLike(a)||l.isString(a))return l.array.some(a,c,d);for(var e=l.structs.o(a),f=l.structs.i(a),g=f.length,k=0;k<g;k++)if(c.call(d,f[k],e&&e[k],a))return h;return j};
l.structs.every=function(a,c,d){if(typeof a.every=="function")return a.every(c,d);if(l.isArrayLike(a)||l.isString(a))return l.array.every(a,c,d);for(var e=l.structs.o(a),f=l.structs.i(a),g=f.length,k=0;k<g;k++)if(!c.call(d,f[k],e&&e[k],a))return j;return h};l.structs.Map=function(a){this.j={};this.d=[];var c=arguments.length;if(c>1){if(c%2)b(Error("Uneven number of arguments"));for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.Mb(a)};l.structs.Map.prototype.l=0;l.structs.Map.prototype.Ib=0;l.structs.Map.prototype.r=function(){return this.l};l.structs.Map.prototype.i=function(){this.mb();for(var a=[],c=0;c<this.d.length;c++){var d=this.d[c];a.push(this.j[d])}return a};l.structs.Map.prototype.o=function(){this.mb();return this.d.concat()};
l.structs.Map.prototype.wa=function(a){return l.structs.Map.bb(this.j,a)};l.structs.Map.prototype.Ra=function(a){for(var c=0;c<this.d.length;c++){var d=this.d[c];if(l.structs.Map.bb(this.j,d)&&this.j[d]==a)return h}return j};l.structs.Map.prototype.equals=function(a,c){if(this===a)return h;if(this.l!=a.r())return j;c=c||l.structs.Map.defaultEquals;this.mb();for(var d,e=0;d=this.d[e];e++)if(!c(this.get(d),a.get(d)))return j;return h};l.structs.Map.defaultEquals=function(a,c){return a===c};
l.structs.Map.prototype.p=function(){return this.l==0};l.structs.Map.prototype.clear=function(){this.j={};this.Ib=this.l=this.d.length=0};l.structs.Map.prototype.remove=function(a){if(l.structs.Map.bb(this.j,a)){delete this.j[a];this.l--;this.Ib++;this.d.length>2*this.l&&this.mb();return h}return j};
l.structs.Map.prototype.mb=function(){if(this.l!=this.d.length){for(var a=0,c=0;a<this.d.length;){var d=this.d[a];if(l.structs.Map.bb(this.j,d))this.d[c++]=d;a++}this.d.length=c}if(this.l!=this.d.length){var e={};for(c=a=0;a<this.d.length;){d=this.d[a];if(!l.structs.Map.bb(e,d)){this.d[c++]=d;e[d]=1}a++}this.d.length=c}};l.structs.Map.prototype.get=function(a,c){if(l.structs.Map.bb(this.j,a))return this.j[a];return c};
l.structs.Map.prototype.set=function(a,c){if(!l.structs.Map.bb(this.j,a)){this.l++;this.d.push(a);this.Ib++}this.j[a]=c};l.structs.Map.prototype.Mb=function(a){var c;if(a instanceof l.structs.Map){c=a.o();a=a.i()}else{c=l.object.o(a);a=l.object.i(a)}for(var d=0;d<c.length;d++)this.set(c[d],a[d])};l.structs.Map.prototype.clone=function(){return new l.structs.Map(this)};
l.structs.Map.prototype.transpose=function(){for(var a=new l.structs.Map,c=0;c<this.d.length;c++){var d=this.d[c],e=this.j[d];a.set(e,d)}return a};l.structs.Map.prototype.__iterator__=function(a){this.mb();var c=0,d=this.d,e=this.j,f=this.Ib,g=this,k=new l.iter.Iterator;k.next=function(){for(;1;){if(f!=g.Ib)b(Error("The map has changed since the iterator was created"));if(c>=d.length)b(l.iter.StopIteration);var n=d[c++];return a?n:e[n]}};return k};
l.structs.Map.bb=function(a,c){return Object.prototype.hasOwnProperty.call(a,c)};l.structs.Map.r=function(a){return l.structs.r(a)};l.structs.Map.i=function(a){return l.structs.i(a)};l.structs.Map.o=function(a){if(typeof a.o=="function")return a.o();var c=[];if(l.isArrayLike(a))for(var d=0;d<a.length;d++)c.push(d);else return l.object.o(a);return c};l.structs.Map.wa=function(a,c){if(typeof a.wa=="function")return a.wa(c);if(l.isArrayLike(a))return Number(c)<a.length;return l.object.wa(a,c)};
l.structs.Map.Ra=function(a,c){return l.structs.contains(a,c)};l.structs.Map.p=function(a){return l.structs.p(a)};l.structs.Map.clear=function(a){l.structs.clear(a)};l.structs.Map.remove=function(a,c){if(typeof a.remove=="function")return a.remove(c);if(l.isArrayLike(a))return l.array.removeAt(a,Number(c));return l.object.remove(a,c)};
l.structs.Map.add=function(a,c,d){if(typeof a.add=="function")a.add(c,d);else if(l.structs.Map.wa(a,c))b(Error('The collection already contains the key "'+c+'"'));else l.structs.Map.set(a,c,d)};l.structs.Map.get=function(a,c,d){if(typeof a.get=="function")return a.get(c,d);if(l.structs.Map.wa(a,c))return a[c];return d};l.structs.Map.set=function(a,c,d){if(typeof a.set=="function")a.set(c,d);else a[c]=d};l.structs.Set=function(a){this.j=new l.structs.Map;a&&this.Mb(a)};l.structs.Set.Td=function(a){var c=typeof a;return c=="object"&&a||c=="function"?"o"+l.getHashCode(a):c.substr(0,1)+a};l.structs.Set.prototype.r=function(){return this.j.r()};l.structs.Set.prototype.add=function(a){this.j.set(l.structs.Set.Td(a),a)};l.structs.Set.prototype.Mb=function(a){a=l.structs.i(a);for(var c=a.length,d=0;d<c;d++)this.add(a[d])};l.structs.Set.prototype.ra=function(a){a=l.structs.i(a);for(var c=a.length,d=0;d<c;d++)this.remove(a[d])};
l.structs.Set.prototype.remove=function(a){return this.j.remove(l.structs.Set.Td(a))};l.structs.Set.prototype.clear=function(){this.j.clear()};l.structs.Set.prototype.p=function(){return this.j.p()};l.structs.Set.prototype.contains=function(a){return this.j.wa(l.structs.Set.Td(a))};l.structs.Set.prototype.intersection=function(a){var c=new l.structs.Set;a=l.structs.i(a);for(var d=0;d<a.length;d++){var e=a[d];this.contains(e)&&c.add(e)}return c};l.structs.Set.prototype.i=function(){return this.j.i()};
l.structs.Set.prototype.clone=function(){return new l.structs.Set(this)};l.structs.Set.prototype.equals=function(a){return this.r()==l.structs.r(a)&&this.Ag(a)};l.structs.Set.prototype.Ag=function(a){var c=l.structs.r(a);if(this.r()>c)return j;if(!(a instanceof l.structs.Set)&&c>5)a=new l.structs.Set(a);return l.structs.every(this,function(d){return l.structs.contains(a,d)})};l.structs.Set.prototype.__iterator__=function(){return this.j.__iterator__(j)};l.Timer=function(a,c){l.events.EventTarget.call(this);this.cc=a||1;this.mc=c||l.Timer.defaultTimerObject;this.td=l.bind(this.Lh,this);this.ve=l.now()};l.inherits(l.Timer,l.events.EventTarget);l.Timer.ei=2147483647;l.Timer.prototype.enabled=j;l.Timer.defaultTimerObject=l.global.window;l.Timer.intervalScale=0.8;l.Timer.prototype.ua=i;l.Timer.prototype.setInterval=function(a){this.cc=a;if(this.ua&&this.enabled){this.stop();this.start()}else this.ua&&this.stop()};
l.Timer.prototype.Lh=function(){if(this.enabled){var a=l.now()-this.ve;if(a>0&&a<this.cc*l.Timer.intervalScale)this.ua=this.mc.setTimeout(this.td,this.cc-a);else{this.yf();if(this.enabled){this.ua=this.mc.setTimeout(this.td,this.cc);this.ve=l.now()}}}};l.Timer.prototype.yf=function(){this.dispatchEvent(l.Timer.TICK)};l.Timer.prototype.start=function(){this.enabled=h;if(!this.ua){this.ua=this.mc.setTimeout(this.td,this.cc);this.ve=l.now()}};
l.Timer.prototype.stop=function(){this.enabled=j;if(this.ua){this.mc.clearTimeout(this.ua);this.ua=i}};l.Timer.prototype.b=function(){l.Timer.h.b.call(this);this.stop();delete this.mc};l.Timer.TICK="tick";l.Timer.Da=function(a,c,d){if(l.isFunction(a)){if(d)a=l.bind(a,d)}else if(a&&typeof a.handleEvent=="function")a=l.bind(a.handleEvent,a);else b(Error("Invalid listener argument"));return c>l.Timer.ei?-1:l.Timer.defaultTimerObject.setTimeout(a,c||0)};l.Timer.clear=function(a){l.Timer.defaultTimerObject.clearTimeout(a)};l.positioning.AbsolutePosition=function(a,c){this.coordinate=a instanceof l.math.Coordinate?a:new l.math.Coordinate(a,c)};l.inherits(l.positioning.AbsolutePosition,l.positioning.AbstractPosition);l.positioning.AbsolutePosition.prototype.reposition=function(a,c,d,e){l.positioning.positionAtCoordinate(this.coordinate,a,c,d,i,i,e)};l.positioning.AnchoredViewportPosition=function(a,c,d){l.positioning.AnchoredPosition.call(this,a,c);this.li=d};l.inherits(l.positioning.AnchoredViewportPosition,l.positioning.AnchoredPosition);
l.positioning.AnchoredViewportPosition.prototype.reposition=function(a,c,d,e){var f=l.positioning.positionAtAnchor(this.element,this.corner,a,c,i,d,l.positioning.Overflow.FAIL_X|l.positioning.Overflow.FAIL_Y,e)&l.positioning.OverflowStatus.FAILED;if(f)if(f=l.positioning.positionAtAnchor(this.element,c,a,this.corner,i,d,l.positioning.Overflow.FAIL_X|l.positioning.Overflow.FAIL_Y,e)&l.positioning.OverflowStatus.FAILED)this.li?l.positioning.positionAtAnchor(this.element,this.corner,a,c,i,d,l.positioning.Overflow.ADJUST_X|
l.positioning.Overflow.ADJUST_Y,e):l.positioning.positionAtAnchor(this.element,this.corner,a,c,i,d,l.positioning.Overflow.IGNORE,e)};l.positioning.ClientPosition=function(a,c){this.coordinate=a instanceof l.math.Coordinate?a:new l.math.Coordinate(a,c)};l.inherits(l.positioning.ClientPosition,l.positioning.AbstractPosition);l.positioning.ClientPosition.prototype.reposition=function(a,c,d,e){var f=l.style.getClientViewportElement(a),g=new l.math.Coordinate(this.coordinate.x+f.scrollLeft,this.coordinate.y+f.scrollTop);l.positioning.positionAtAnchor(f,l.positioning.Corner.TOP_LEFT,a,c,g,d,i,e)};l.positioning.ViewportClientPosition=function(a,c){l.positioning.ClientPosition.call(this,a,c)};l.inherits(l.positioning.ViewportClientPosition,l.positioning.ClientPosition);
l.positioning.ViewportClientPosition.prototype.reposition=function(a,c,d,e){var f=l.style.getClientViewportElement(a);f=l.style.getVisibleRectForElement(f);var g=l.dom.c(a).Jc();g=new l.math.Coordinate(this.coordinate.x+g.scrollLeft,this.coordinate.y+g.scrollTop);var k=l.positioning.Overflow.FAIL_X|l.positioning.Overflow.FAIL_Y,n=c,o=l.positioning.positionAtCoordinate(g,a,n,d,f,k,e);if((o&l.positioning.OverflowStatus.FAILED)!=0){if(o&l.positioning.OverflowStatus.FAILED_LEFT||o&l.positioning.OverflowStatus.FAILED_RIGHT)n=
l.positioning.flipCornerHorizontal(n);if(o&l.positioning.OverflowStatus.FAILED_TOP||o&l.positioning.OverflowStatus.FAILED_BOTTOM)n=l.positioning.flipCornerVertical(n);o=l.positioning.positionAtCoordinate(g,a,n,d,f,k,e);(o&l.positioning.OverflowStatus.FAILED)!=0&&l.positioning.positionAtCoordinate(g,a,c,d,f,undefined,e)}};l.ui.PopupBase=function(a,c){this.ca=new l.events.EventHandler(this);this.ic(a||i);c&&this.Ah(c)};l.inherits(l.ui.PopupBase,l.events.EventTarget);l.ui.PopupBase.Type={TOGGLE_DISPLAY:"toggle_display",MOVE_OFFSCREEN:"move_offscreen"};l.ui.PopupBase.prototype.e=i;l.ui.PopupBase.prototype.hf=h;l.ui.PopupBase.prototype.sd=i;l.ui.PopupBase.prototype.db=j;l.ui.PopupBase.prototype.Ch=j;l.ui.PopupBase.prototype.ue=-1;l.ui.PopupBase.prototype.te=-1;l.ui.PopupBase.prototype.mg=j;
l.ui.PopupBase.prototype.Bf=h;l.ui.PopupBase.prototype.lb=l.ui.PopupBase.Type.TOGGLE_DISPLAY;l.ui.PopupBase.EventType={BEFORE_SHOW:"beforeshow",SHOW:"show",BEFORE_HIDE:"beforehide",HIDE:"hide"};l.ui.PopupBase.DEBOUNCE_DELAY_MS=150;l.ui.PopupBase.prototype.$f=function(){return this.lb};l.ui.PopupBase.prototype.Ah=function(a){this.lb=a};l.ui.PopupBase.prototype.a=function(){return this.e};l.ui.PopupBase.prototype.ic=function(a){this.Cf();this.e=a};l.ui.PopupBase.prototype.Cf=function(){if(this.db)b(Error("Can not change this state of the popup while showing."))};
l.ui.PopupBase.prototype.aa=function(){return this.db};l.ui.PopupBase.prototype.fa=function(a){a?this.Gh():this.$b()};l.ui.PopupBase.prototype.reposition=function(){};
l.ui.PopupBase.prototype.Gh=function(){if(!this.db)if(this.zb()){if(!this.e)b(Error("Caller must call setElement before trying to show the popup"));this.reposition();var a=l.dom.m(this.e);this.mg&&this.ca.listen(a,l.events.EventType.KEYDOWN,this.Vg,h);if(this.hf){this.ca.listen(a,l.events.EventType.MOUSEDOWN,this.ze,h);if(l.userAgent.IE){for(var c=a.activeElement;c&&c.nodeName=="IFRAME";){try{var d=l.dom.Wb(c)}catch(e){break}a=d;c=a.activeElement}this.ca.listen(a,l.events.EventType.MOUSEDOWN,this.ze,
h);this.ca.listen(a,l.events.EventType.DEACTIVATE,this.ye)}else this.ca.listen(a,l.events.EventType.BLUR,this.ye)}if(this.lb==l.ui.PopupBase.Type.TOGGLE_DISPLAY)this.Fh();else this.lb==l.ui.PopupBase.Type.MOVE_OFFSCREEN&&this.reposition();this.db=h;this.Yg()}};
l.ui.PopupBase.prototype.$b=function(a){if(!this.db||!this.Ug(a))return j;this.ca&&this.ca.ra();if(this.lb==l.ui.PopupBase.Type.TOGGLE_DISPLAY)this.Ch?l.Timer.Da(this.ne,0,this):this.ne();else this.lb==l.ui.PopupBase.Type.MOVE_OFFSCREEN&&this.Pg();this.db=j;this.Ab(a);return h};l.ui.PopupBase.prototype.Fh=function(){this.e.style.visibility="visible";l.style.showElement(this.e,h)};l.ui.PopupBase.prototype.ne=function(){this.e.style.visibility="hidden";l.style.showElement(this.e,j)};
l.ui.PopupBase.prototype.Pg=function(){this.e.style.left="-200px";this.e.style.top="-200px"};l.ui.PopupBase.prototype.zb=function(){return this.dispatchEvent(l.ui.PopupBase.EventType.BEFORE_SHOW)};l.ui.PopupBase.prototype.Yg=function(){this.ue=l.now();this.te=-1;this.dispatchEvent(l.ui.PopupBase.EventType.SHOW)};l.ui.PopupBase.prototype.Ug=function(a){return this.dispatchEvent({type:l.ui.PopupBase.EventType.BEFORE_HIDE,target:a})};
l.ui.PopupBase.prototype.Ab=function(a){this.te=l.now();this.dispatchEvent({type:l.ui.PopupBase.EventType.HIDE,target:a})};l.ui.PopupBase.prototype.ze=function(a){a=a.target;if(!l.dom.contains(this.e,a)&&(!this.sd||l.dom.contains(this.sd,a))&&!this.Ie())this.$b(a)};l.ui.PopupBase.prototype.Vg=function(a){if(a.keyCode==l.events.KeyCodes.ESC)if(this.$b(a.target)){a.preventDefault();a.stopPropagation()}};
l.ui.PopupBase.prototype.ye=function(a){if(this.Bf){var c=l.dom.m(this.e);if(l.userAgent.IE||l.userAgent.OPERA){if((a=c.activeElement)&&l.dom.contains(this.e,a))return}else if(a.target!=c)return;this.Ie()||this.$b()}};l.ui.PopupBase.prototype.Ie=function(){return l.now()-this.ue<l.ui.PopupBase.DEBOUNCE_DELAY_MS};l.ui.PopupBase.prototype.b=function(){l.ui.PopupBase.h.b.call(this);this.ca.dispose();delete this.e;delete this.ca};l.ui.Popup=function(a,c){this.Ri=l.positioning.Corner.TOP_START;this.bd=c||undefined;l.ui.PopupBase.call(this,a)};l.inherits(l.ui.Popup,l.ui.PopupBase);l.ui.Popup.Corner=l.positioning.Corner;l.ui.Popup.Overflow=l.positioning.Overflow;l.ui.Popup.prototype.Xf=function(){return this.bd||i};l.ui.Popup.prototype.setPosition=function(a){this.bd=a||undefined;this.aa()&&this.reposition()};
l.ui.Popup.prototype.reposition=function(){if(this.bd){var a=!this.aa()&&this.$f()!=l.ui.PopupBase.Type.MOVE_OFFSCREEN,c=this.a();if(a){c.style.visibility="hidden";l.style.showElement(c,h)}this.bd.reposition(c,this.Ri,this.jj);a&&l.style.showElement(c,j)}};l.ui.Popup.positionPopup=function(a,c,d,e,f,g,k){return(l.positioning.positionAtAnchor(a,c,d,e,f,g,k)&l.positioning.OverflowStatus.FAILED)==0};l.ui.Popup.positionAtCoordinate=function(a,c,d,e){l.positioning.positionAtCoordinate(a,c,d,e);return h};
l.ui.Popup.AnchoredPosition=l.positioning.AnchoredPosition;l.ui.Popup.AnchoredViewPortPosition=l.positioning.AnchoredViewportPosition;l.ui.Popup.AbsolutePosition=l.positioning.AbsolutePosition;l.ui.Popup.ViewPortPosition=l.positioning.ViewportPosition;l.ui.Popup.ClientPosition=l.positioning.ClientPosition;l.ui.Popup.ViewPortClientPosition=l.positioning.ViewportClientPosition;l.ui.Tooltip=function(a,c,d){this.v=d||(a?l.dom.c(l.dom.a(a)):l.dom.c());l.ui.Popup.call(this,this.v.g("div",{style:"position:absolute;display:none;"}));this.cursorPosition=new l.math.Coordinate(1,1);this.u=i;this.nb=new l.structs.Set;a&&this.attach(a);c!=i&&this.yh(c)};l.inherits(l.ui.Tooltip,l.ui.Popup);l.ui.Tooltip.Lb=[];l.ui.Tooltip.prototype.className="goog-tooltip";l.ui.Tooltip.prototype.Dh=500;l.ui.Tooltip.prototype.lg=0;
l.ui.Tooltip.State={INACTIVE:0,WAITING_TO_SHOW:1,SHOWING:2,WAITING_TO_HIDE:3,UPDATING:4};l.ui.Tooltip.prototype.c=function(){return this.v};
l.ui.Tooltip.prototype.attach=function(a){a=l.dom.a(a);this.nb.add(a);l.events.listen(a,l.events.EventType.MOUSEOVER,this.ab,j,this);l.events.listen(a,l.events.EventType.MOUSEOUT,this.Zb,j,this);l.events.listen(a,l.events.EventType.MOUSEMOVE,this.he,j,this);l.events.listen(a,l.events.EventType.FOCUS,this.tb,j,this);l.events.listen(a,l.events.EventType.BLUR,this.Zb,j,this)};
l.ui.Tooltip.prototype.detach=function(a){if(a){a=l.dom.a(a);this.Dd(a);this.nb.remove(a)}else{for(var c=this.nb.i(),d=0;a=c[d];d++)this.Dd(a);this.nb.clear()}};
l.ui.Tooltip.prototype.Dd=function(a){l.events.unlisten(a,l.events.EventType.MOUSEOVER,this.ab,j,this);l.events.unlisten(a,l.events.EventType.MOUSEOUT,this.Zb,j,this);l.events.unlisten(a,l.events.EventType.MOUSEMOVE,this.he,j,this);l.events.unlisten(a,l.events.EventType.FOCUS,this.tb,j,this);l.events.unlisten(a,l.events.EventType.BLUR,this.Zb,j,this)};l.ui.Tooltip.prototype.Pf=function(){return this.lg};l.ui.Tooltip.prototype.yh=function(a){l.dom.jd(this.a(),a)};
l.ui.Tooltip.prototype.ph=function(a){this.a().innerHTML=a};l.ui.Tooltip.prototype.ic=function(a){var c=this.a();c&&l.dom.removeNode(c);l.ui.Tooltip.h.ic.call(this,a);a&&l.dom.appendChild(this.v.z().body,a)};l.ui.Tooltip.prototype.Ha=function(){return this.showTimer?this.aa()?l.ui.Tooltip.State.UPDATING:l.ui.Tooltip.State.WAITING_TO_SHOW:this.hideTimer?l.ui.Tooltip.State.WAITING_TO_HIDE:this.aa()?l.ui.Tooltip.State.SHOWING:l.ui.Tooltip.State.INACTIVE};
l.ui.Tooltip.prototype.zb=function(){if(!l.ui.PopupBase.prototype.zb.call(this))return j;if(this.anchor)for(var a,c=0;a=l.ui.Tooltip.Lb[c];c++)l.dom.contains(a.a(),this.anchor)||a.fa(j);l.array.insert(l.ui.Tooltip.Lb,this);a=this.a();a.className=this.className;this.Pb();l.events.listen(a,l.events.EventType.MOUSEOVER,this.le,j,this);l.events.listen(a,l.events.EventType.MOUSEOUT,this.ke,j,this);this.sc();return h};
l.ui.Tooltip.prototype.Ab=function(){l.array.remove(l.ui.Tooltip.Lb,this);for(var a=this.a(),c,d=0;c=l.ui.Tooltip.Lb[d];d++)c.anchor&&l.dom.contains(a,c.anchor)&&c.fa(j);this.bh&&this.bh.ld();l.events.unlisten(a,l.events.EventType.MOUSEOVER,this.le,j,this);l.events.unlisten(a,l.events.EventType.MOUSEOUT,this.ke,j,this);this.anchor=undefined;if(this.Ha()==l.ui.Tooltip.State.INACTIVE)this.fd=j;l.ui.PopupBase.prototype.Ab.call(this)};
l.ui.Tooltip.prototype.Ng=function(a,c){if(this.anchor==a)if(this.fd||!this.lj){this.fa(j);this.aa()||this.Be(a,c)}else this.anchor=undefined;this.showTimer=undefined};l.ui.Tooltip.prototype.Eh=function(a,c){this.attach(a);this.u=a;this.Be(a,c)};l.ui.Tooltip.prototype.Be=function(a,c){if(c)c=c;else{c=new l.math.Coordinate(this.cursorPosition.x,this.cursorPosition.y);c=new l.ui.Tooltip.CursorTooltipPosition(c)}this.anchor=a;this.setPosition(c);this.fa(h)};
l.ui.Tooltip.prototype.Lg=function(a){this.hideTimer=undefined;if(a==this.anchor)if((this.u==i||this.u!=this.a()&&!this.nb.contains(this.u))&&!this.ig())this.fa(j)};l.ui.Tooltip.prototype.ig=function(){return!!(this.jf&&this.jf.u)};l.ui.Tooltip.prototype.ab=function(a){this.u=a=this.Ub(a.target);this.Pb();if(a!=this.anchor){this.anchor=a;this.Je(a);this.vd()}};l.ui.Tooltip.prototype.Ub=function(a){try{for(;a&&!this.nb.contains(a);)a=a.parentNode;return a}catch(c){return i}};
l.ui.Tooltip.prototype.he=function(a){var c=this.v.Ga();this.cursorPosition.x=a.clientX+c.x;this.cursorPosition.y=a.clientY+c.y;this.fd=h};l.ui.Tooltip.prototype.tb=function(a){this.u=a=this.Ub(a.target);this.fd=h;if(this.anchor!=a){this.anchor=a;var c=new l.ui.Tooltip.ElementTooltipPosition(this.u);this.Pb();this.Je(a,c);this.vd()}};l.ui.Tooltip.prototype.vd=function(){if(this.anchor)for(var a,c=0;a=l.ui.Tooltip.Lb[c];c++)if(l.dom.contains(a.a(),this.anchor)){a.jf=this;this.bh=a}};
l.ui.Tooltip.prototype.Zb=function(a){var c=this.Ub(a.target),d=this.Ub(a.relatedTarget);if(c!=d){if(c==this.u)this.u=i;this.sc();this.fd=j;if(this.aa()&&(!a.relatedTarget||!l.dom.contains(this.a(),a.relatedTarget)))this.ld();else this.anchor=undefined}};l.ui.Tooltip.prototype.le=function(){var a=this.a();if(this.u!=a){this.Pb();this.u=a}};l.ui.Tooltip.prototype.ke=function(a){var c=this.a();if(this.u==c&&(!a.relatedTarget||!l.dom.contains(c,a.relatedTarget))){this.u=i;this.ld()}};
l.ui.Tooltip.prototype.Je=function(a,c){if(!this.showTimer)this.showTimer=l.Timer.Da(l.bind(this.Ng,this,a,c),this.Dh)};l.ui.Tooltip.prototype.sc=function(){if(this.showTimer){l.Timer.clear(this.showTimer);this.showTimer=undefined}};l.ui.Tooltip.prototype.ld=function(){if(this.Ha()==l.ui.Tooltip.State.SHOWING)this.hideTimer=l.Timer.Da(l.bind(this.Lg,this,this.anchor),this.Pf())};l.ui.Tooltip.prototype.Pb=function(){if(this.hideTimer){l.Timer.clear(this.hideTimer);this.hideTimer=undefined}};
l.ui.Tooltip.prototype.b=function(){this.fa(j);this.sc();this.detach();this.a()&&l.dom.removeNode(this.a());this.u=i;delete this.v;l.ui.Tooltip.h.b.call(this)};l.ui.Tooltip.CursorTooltipPosition=function(a,c){l.positioning.ViewportPosition.call(this,a,c)};l.inherits(l.ui.Tooltip.CursorTooltipPosition,l.positioning.ViewportPosition);
l.ui.Tooltip.CursorTooltipPosition.prototype.reposition=function(a,c,d){c=l.style.getClientViewportElement(a);c=l.style.getVisibleRectForElement(c);d=d?new l.math.Box(d.top+10,d.right,d.bottom,d.left+10):new l.math.Box(10,0,0,10);l.positioning.positionAtCoordinate(this.coordinate,a,l.positioning.Corner.TOP_START,d,c,l.positioning.Overflow.ADJUST_X|l.positioning.Overflow.FAIL_Y)&l.positioning.OverflowStatus.FAILED&&l.positioning.positionAtCoordinate(this.coordinate,a,l.positioning.Corner.TOP_START,
d,c,l.positioning.Overflow.ADJUST_X|l.positioning.Overflow.ADJUST_Y)};l.ui.Tooltip.ElementTooltipPosition=function(a){l.positioning.AnchoredPosition.call(this,a,l.positioning.Corner.BOTTOM_RIGHT)};l.inherits(l.ui.Tooltip.ElementTooltipPosition,l.positioning.AnchoredPosition);
l.ui.Tooltip.ElementTooltipPosition.prototype.reposition=function(a,c,d){var e=new l.math.Coordinate(10,0);l.positioning.positionAtAnchor(this.element,this.corner,a,c,e,d,l.positioning.Overflow.ADJUST_X|l.positioning.Overflow.FAIL_Y)&l.positioning.OverflowStatus.FAILED&&l.positioning.positionAtAnchor(this.element,l.positioning.Corner.TOP_RIGHT,a,l.positioning.Corner.BOTTOM_LEFT,e,d,l.positioning.Overflow.ADJUST_X|l.positioning.Overflow.ADJUST_Y)};m.artistAlbumsList={};m.artistAlbumsList.HTTP_LOOKUP_URI="artistalbums";m.artistAlbumsList.LIST_DIV_ID="artist-albums-list";m.artistAlbumsList.SPIN_IMG_ID_PREFIX="artist-albums-spin-";m.artistAlbumsList.VIEW_OPTION_SPAN_ID_PREFIX="artist-albums-sort-option-";m.artistAlbumsList.VIEW_OPTION_SELECTED_SPAN_ID_PREFIX=m.artistAlbumsList.VIEW_OPTION_SPAN_ID_PREFIX+"selected-";m.artistAlbumsList.VIEW_OPTION_UNSELECTED_SPAN_ID_PREFIX=m.artistAlbumsList.VIEW_OPTION_SPAN_ID_PREFIX+"unselected-";
m.artistAlbumsList.VIEW_OPTION_PARAM="&sort=";m.artistAlbumsList.we={};m.artistAlbumsList.vc=i;m.artistAlbumsList.initialize=function(a){var c=document.getElementById(m.artistAlbumsList.LIST_DIV_ID);if(c){m.artistAlbumsList.we[a]=c.innerHTML;m.artistAlbumsList.vc=a}};
m.artistAlbumsList.switchListViewOption=function(a,c){if(m.util.util.isCurrentSelectionEmpty()){var d=m.artistAlbumsList.we[c];if(d)m.artistAlbumsList.Kh(c,d);else{a=m.artistAlbumsList.HTTP_LOOKUP_URI+p.ID_PARAM+a+m.artistAlbumsList.VIEW_OPTION_PARAM+c;m.artistAlbumsList.Vi(a,m.artistAlbumsList.Rc,c)}}};
m.artistAlbumsList.Vi=function(a,c,d){m.artistAlbumsList.Nh(d,h);var e=m.util.util.createAjaxRequest();e.open("GET",a,h);e.onreadystatechange=function(){e.readyState==4&&c&&c(e,e.status&&e.status==200,d)};e.send(i)};m.artistAlbumsList.Rc=function(a,c,d){m.artistAlbumsList.Nh(d,j);if(c){m.artistAlbumsList.we[d]=a.responseText;m.artistAlbumsList.Kh(d,a.responseText)}};
m.artistAlbumsList.Nh=function(a,c){a=m.artistAlbumsList.SPIN_IMG_ID_PREFIX+a;(a=document.getElementById(a))&&m.util.util.toggleElementShowStatus(a,c)};m.artistAlbumsList.Kh=function(a,c){if(c){var d=document.getElementById(m.artistAlbumsList.LIST_DIV_ID);d.innerHTML=c;m.artistAlbumsList.hj(a);p.resetListDisplayState()}};
m.artistAlbumsList.hj=function(a){var c=document.getElementById(m.artistAlbumsList.VIEW_OPTION_SELECTED_SPAN_ID_PREFIX+a),d=document.getElementById(m.artistAlbumsList.VIEW_OPTION_UNSELECTED_SPAN_ID_PREFIX+a),e=document.getElementById(m.artistAlbumsList.VIEW_OPTION_UNSELECTED_SPAN_ID_PREFIX+m.artistAlbumsList.vc),f=document.getElementById(m.artistAlbumsList.VIEW_OPTION_SELECTED_SPAN_ID_PREFIX+m.artistAlbumsList.vc);m.util.util.toggleElementShowStatus(c,h);m.util.util.toggleElementShowStatus(d,j);m.util.util.toggleElementShowStatus(e,
h);m.util.util.toggleElementShowStatus(f,j);m.artistAlbumsList.vc=a};var _aal_switchListViewOption=m.artistAlbumsList.switchListViewOption,_aal_initialize=m.artistAlbumsList.initialize;m.autoComplete={};var aa=h,ba,s,t,v,x="",y,z=i,A=i,B=i,C=-1,ca,D,E,F,G=i,H=i,I,J,K=i,da,ea="suggestqueries.google.com",L=0,M=0,N=0,O=i,P,Q=j,R=j,fa,S,ga,ha=navigator.userAgent.toLowerCase();fa=ha.indexOf("opera")!=-1;S=ha.indexOf("msie")!=-1&&!fa;ga=ha.indexOf("webkit")!=-1;var T=i,ia=new RegExp("^[\\s\\u1100-\\u11FF\\u3040-\\u30FF\\u3130-\\u318F\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\u9FFF\\uAC00-\\uD7A3\\uF900-\\uFAFF\\uFF65-\\uFFDC]+$"),ja=h;
function ka(a,c,d,e,f,g,k,n,o,q,r){ca=a;D=c;ba=e;T=f;ja=g;if(o)ea=o;if(la()!=i){a=window.google.kHL;P=/^(zh-(CN|TW)|ja|ko)$/.test(a);da="/complete/search?hl="+a+(q?"&gl="+q:"")+(d?"&ds="+d:"")+(n?"&pq="+(encodeURIComponent||escape)(n):"")+(k?"&expid="+k:"")+(r?"&tok="+(encodeURIComponent||escape)(r):"")+"&client=suggest&hjson=t";D.setAttribute("autocomplete","off");U(D,"blur",ma);U(D,"beforedeactivate",na);if(D.addEventListener){if(ga)D.onkeydown=oa;else D.onkeypress=oa;D.onkeyup=pa}else{U(D,S?"keydown":
"keypress",oa);U(D,"keyup",pa)}t=v=s=V();y=qa(D);E=document.createElement("table");E.id="completeTable";E.cellSpacing=E.cellPadding="0";F=E.style;E.className="google-ac-m";W();document.body.appendChild(E);if(S){G=document.createElement("iframe");H=G.style;G.id="completeIFrame";H.zIndex="1";H.position="absolute";H.display="block";H.borderWidth=0;document.body.appendChild(G)}X();ra();U(window,"resize",X);U(window,"pageshow",sa);P&&window.setInterval(ta,10);I=ua("aq","f",j);J=ua("oq",t,h);Y()}}
function sa(a){if(a.persisted)I.value="f";J.value=V()}
function ra(){var a=document.body.dir=="rtl",c=a?"right":"left";a=a?"left":"right";var d=document.getElementsByTagName("head")[0],e=document.createElement("style"),f=i,g=i,k=j;if(document.styleSheets){d.appendChild(e);k=h;f=e.sheet?e.sheet:e.styleSheet}if(!f){g=document.createTextNode("");e.appendChild(g)}var n=function(o,q){var r=o+" { "+q+" }";if(f)if(f.insertRule)f.insertRule(r,f.cssRules.length);else f.addRule&&f.addRule(o,q);else g.data+=r+"\n"};n(".google-ac-m","font-size:13px;font-family:arial,sans-serif;cursor:default;line-height:17px;border:1px solid black;z-index:99;position:absolute;background-color:white;margin:0;");
n(".google-ac-a","background-color:white;");n(".google-ac-b","background-color:#36c;color:white;");n(".google-ac-c","white-space:nowrap;overflow:hidden;text-align:"+c+";padding-"+c+":3px;"+(S||fa?"padding-bottom:1px;":""));n(".google-ac-d","white-space:nowrap;overflow:hidden;font-size:10px;text-align:"+a+";color:green;padding-"+c+":3px;padding-"+a+":3px;");n(".google-ac-b td","color:white;");n(".google-ac-e td","padding:0 3px 2px;text-align:"+a+";font-size:10px;line-height:15px;");n(".google-ac-e span",
"color:blue;text-decoration:underline;cursor:pointer;");k||d.appendChild(e)}function X(){if(E){F.left=va(D,"offsetLeft")+"px";F.top=va(D,"offsetTop")+D.offsetHeight-1+"px";F.width=D.offsetWidth+"px";if(G){H.left=F.left;H.top=F.top;H.width=E.offsetWidth+"px";H.height=E.offsetHeight+"px"}}}function wa(a,c){a.visibility=c?"visible":"hidden"}function ua(a,c,d){var e=document.createElement("input");e.type="hidden";e.name=a;e.value=c;e.disabled=d;return ca.appendChild(e)}function ma(){Q||W();Q=j}
function na(){if(Q){window.event.cancelBubble=h;window.event.returnValue=j}Q=j}function oa(a){var c=a.keyCode;if(c==27&&F.visibility=="visible"){W();xa(t);a.cancelBubble=h;return a.returnValue=j}if(!(Z(c)||$(c)))return h;N++;N%3==1&&za(c);return j}function pa(a){a=a.keyCode;!(P&&(Z(a)||$(a)))&&N==0&&za(a);N=0;return!(Z(a)||$(a))}
function za(a){P&&(Z(a)||$(a))&&Aa();if(V()!=s||a==39){t=V();y=qa(D);if(a!=39)J.value=t}if($(a))Ba(C+1);else Z(a)&&Ba(C-1);X();if(x!=t&&!O)O=window.setTimeout(W,500);s=V();s==""&&!z&&Y()}function Z(a){return a==38||a==63232}function $(a){return a==40||a==63233}function Ca(){D.blur();I.value=this.completeId;xa(this.completeString);if(ja)Da()&&ca.submit();else W()}
function Ea(){if(!R){if(B)B.className="google-ac-a";this.className="google-ac-b";B=this;for(var a=0;a<A.length;a++)if(A[a]==B){C=a;break}}}function Fa(){if(R){R=j;Ea.call(this)}}
function Ba(a){if(x==""&&t!=""){v="";Y()}else if(!(t!=x||!z))if(!(!A||A.length<=0))if(F.visibility=="visible"){var c=A.length;if(T)c-=1;if(B)B.className="google-ac-a";if(a==c||a==-1){C=-1;xa(t);Ga();I.value="f"}else{if(a>c)a=0;else if(a<-1)a=c-1;C=a;B=A.item(a);B.className="google-ac-b";xa(B.completeString);I.value=B.completeId}}else Ha()}function W(){if(O){window.clearTimeout(O);O=i}wa(F,j);G&&wa(H,j)}function Ha(){if(aa){wa(F,h);G&&wa(H,h);X();R=h}}
function Ia(a){L>0&&L--;if(a[0]==t){if(O){window.clearTimeout(O);O=i}x=a[0];Ja(a[1]);C=-1;A=E.rows;(A.length>0?Ha:W)()}}function Da(){W();J.disabled=h;if(J.value!=V()){I.value=A.item(C).completeId;J.disabled=j}else if(M>=3||L>=10)I.value="o";return h}
function Y(){if(!aa)return j;if(M>=3)return j;if(v!=t&&t){var a=(encodeURIComponent||escape)(t);L++;if(ba){var c=document.createElement("script");c.setAttribute("type","text/javascript");c.setAttribute("charset","utf-8");c.setAttribute("id","jsonpACScriptTag");c.setAttribute("src","http://"+ea+da+"&jsonp=window.google.ac.hr&q="+a+"&cp="+y);a=document.getElementById("jsonpACScriptTag");var d=document.getElementsByTagName("head")[0];a&&d.removeChild(a);d.appendChild(c)}else Ka(a);Ga()}v=t;c=100;for(a=
1;a<=(L-2)/2;++a)c*=2;c+=50;z=window.setTimeout(Y,c);return h}function xa(a){m.hint.setInputValue(D,a);s=a}function Ga(){D.focus()}function va(a,c){for(var d=0;a;){d+=a[c];a=a.offsetParent}return d}function La(a,c){a.appendChild(document.createTextNode(c))}
function Ja(a){for(;E.rows.length>0;)E.deleteRow(-1);var c=0;for(var d in a){var e=a[d];if(e){c++;var f=E.insertRow(-1);f.onclick=Ca;f.onmousedown=Ma;f.onmouseover=Ea;f.onmousemove=Fa;f.completeString=e[0];f.completeId=e[2];f.className="google-ac-a";var g=document.createElement("td");La(g,e[0]);g.className="google-ac-c";if(S&&ia.test(e[0]))g.style.paddingTop="2px";f.appendChild(g);g=document.createElement("td");La(g,e[1]);g.className="google-ac-d";f.appendChild(g)}}if(T&&c>0){a=E.insertRow(-1);a.onmousedown=
Ma;c=document.createElement("td");c.colSpan=2;a.className="google-ac-e";d=document.createElement("span");a.appendChild(c);c.appendChild(d);La(d,T);d.onclick=function(){W();x="";window.clearTimeout(z);z=i;I.value="x"}}}function Ma(a){if(a&&a.stopPropagation){a.stopPropagation();Ha();D.focus()}else Q=h;return j}
function la(){var a=i;try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(d){a=i}}if(!a&&typeof XMLHttpRequest!="undefined")a=new XMLHttpRequest;return a}
function Ka(a){K&&K.readyState!=0&&K.readyState!=4&&K.abort();if(K)K.onreadystatechange=Na;if(K=la()){K.open("GET",da+"&q="+a+"&cp="+y,h);K.onreadystatechange=function(){if(K.readyState==4)switch(K.status){case 403:M=1000;break;case 302:case 500:case 502:case 503:M++;break;case 200:Ia(eval(K.responseText));default:M=0}};K.send(i)}}function Na(){}function ta(){var a=V();a!=s&&za(0);s=a}function Aa(){Q=h;D.blur();window.setTimeout(Ga,10)}
function qa(a){var c=0,d=0;if(Oa(a)){c=a.selectionStart;d=a.selectionEnd}if(S){a=a.createTextRange();var e=document.selection.createRange();if(a.inRange(e)){a.setEndPoint("EndToStart",e);c=a.text.length;a.setEndPoint("EndToEnd",e);d=a.text.length}}if(c&&d&&c==d)return c;return 0}function Oa(a){try{return typeof a.selectionStart=="number"}catch(c){return j}}
function U(a,c,d){var e="on"+c;if(a.addEventListener)a.addEventListener(c,d,j);else if(a.attachEvent)a.attachEvent(e,d);else{var f=a[e];a[e]=function(){var g=f.apply(this,arguments),k=d.apply(this,arguments);return g==undefined?k:k==undefined?g:k&&g}}}function V(){return m.hint.getInputValue(D)}m.autoComplete.install=ka;m.base={};String.prototype.trim=function(){return this.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};m.buttonUtil={};m.buttonUtil.createLaunchPlayerButton=function(a,c){if(a=document.getElementById(a)){var d=new l.ui.CustomButton(i);d.decorate(a);d.nh(c)}};l.exportSymbol("_createLaunchPlayerButton",m.buttonUtil.createLaunchPlayerButton);m.floatElement={};m.floatElement.regFloatElement=function(a){if(a=document.getElementById(a)){var c=new l.ui.ScrollFloater;c.decorate(a)}};l.exportSymbol("_initFloatElement",m.floatElement.regFloatElement);m.google={};m.google.floatMsg={};m.google.floatMsg.FloatMsg=function(a,c,d){this.yb=document.getElementById(a);this.Bc=c;this.Ta=new l.events.EventHandler;if(d)this.ff=d};
m.google.floatMsg.FloatMsg.prototype.Le=function(a){if(this.yb)if(a){this.od();this.yb.style.display="block";this.Ta.listen(window,l.events.EventType.SCROLL,this.od,j,this);this.Ta.listen(window,l.events.EventType.RESIZE,this.od,j,this);if(this.ff){this.gf&&window.clearTimeout(this.gf);this.gf=window.setTimeout(l.bind(this.Le,this,j),this.ff)}}else{this.yb.style.display="none";this.Ta.ra()}};
m.google.floatMsg.FloatMsg.prototype.od=function(){this.yb.style.position="absolute";var a=l.style.getClientViewportElement(this.yb),c=0,d=0;if(l.userAgent.IE){if(this.Bc&l.positioning.CornerBit.BOTTOM)d=-a.scrollTop;if(this.Bc&l.positioning.CornerBit.RIGHT)c=-a.scrollLeft}l.positioning.positionAtAnchor(a,this.Bc,this.yb,this.Bc,new l.math.Coordinate(c,d))};m.google.floatMsg.Cc={};
m.google.floatMsg.initFloatMsg=function(a,c,d){c=c?c:l.positioning.Corner.TOP_LEFT;m.google.floatMsg.Cc[a]||(m.google.floatMsg.Cc[a]=new m.google.floatMsg.FloatMsg(a,c,d?d:i))};m.google.floatMsg.maybeToggleFloatMsg=function(a,c){m.google.floatMsg.Cc[a]&&m.google.floatMsg.Cc[a].Le(c)};l.exportSymbol("_initFloatMsg",m.google.floatMsg.initFloatMsg);l.exportSymbol("_maybeToggleFloatMsg",m.google.floatMsg.maybeToggleFloatMsg);m.grouping={};m.grouping.$h="expanded_groupings";m.grouping.ai=new RegExp("(\\?|&)expanded_groupings(?:=[^&]*)?(?:&|$)","gi");
m.grouping.toggleExpand=function(a){var c=document.getElementById("grouping_btn_"+a);if(!c)b(new Error("Button element does not exist"));var d=document.getElementById("grouping_items_"+a);if(!d)b(new Error("Items element does not exist"));a=document.getElementById("grouping_title_"+a);if(!a)b(new Error("Title element does not exist"));if(d.style.display=="none"){d.style.display="block";c.className="grouping_btn opened";a.className="grouping opened"}else{d.style.display="none";c.className="grouping_btn closed";
a.className="grouping closed"}};
m.grouping.addExpandedGroupingParam=function(a){var c=new RegExp("(?:\\?|&)q=([^&]*)(?:&|$)","g"),d=c.exec(a.href),e=d[0].length;e=c.lastIndex-e+1;a.href=a.href.substring(0,e)+a.href.substring(c.lastIndex);e=window.decodeURIComponent(d[1]);e=e.replace(m.grouping.ai,"$1");c=new m.grouping.GroupingUrlBuilder(e);d=window._groupingNames;e=d.length;for(var f=0;f<e;++f){var g="grouping_items_"+d[f];g=document.getElementById(g);!g||g.style.display=="none"||c.bf(d[f])}e=a.href.substring(a.href.length-1);
if(e!="?"&&e!="&")a.href+="&";a.href+="q="+window.encodeURIComponent(c.ag())};m.grouping.GroupingUrlBuilder=function(a){this.Ob=a;this.Jd=[]};m.grouping.GroupingUrlBuilder.prototype.bf=function(a){this.Jd.push(a);return this};m.grouping.GroupingUrlBuilder.prototype.ag=function(){if(this.Jd.length==0)return this.Ob;var a=this.Ob.substring(this.Ob.length-1);if(a!="?"&&a!="&")this.Ob+="&";return this.Ob+m.grouping.$h+"="+this.Jd.join(",")};l.exportSymbol("_toggleExpand",m.grouping.toggleExpand);
l.exportSymbol("_addExpandedGroupingParam",m.grouping.addExpandedGroupingParam);m.hint={};m.hint.IS_HINT="is_hint";m.hint.ng={};m.hint.Kg=function(a){if(a){var c=m.hint.ng[a];if(c&&(a.value.trim()==""||a.value==c)){a.setAttribute(m.hint.IS_HINT,"1");a.className+=" hint";a.value=c}}};m.hint.Mg=function(a){if(a)if(a.getAttribute(m.hint.IS_HINT)=="1"){a.className=a.className.replace(/\bhint\b/g,"").trim();a.setAttribute(m.hint.IS_HINT,"0");a.value=""}};m.hint.getInputValue=function(a){if(!a||a.getAttribute(m.hint.IS_HINT)=="1")return"";return a.value};m.hint.onInputBlur=function(a){m.hint.Kg(a)};
m.hint.onInputFocus=function(a){m.hint.Mg(a)};m.hint.setInputValue=function(a,c){if(!(!a||c==i||c==undefined))if(c==""){a.value="";m.hint.Kg(a)}else{m.hint.Mg(a);a.value=c}};m.hint.isHint=function(a){if(!a||a.getAttribute(m.hint.IS_HINT)=="0")return j;return h};m.hint.onSubmit=function(a){if(!a)return j;a=a.q;if(!a)return j;if(a.getAttribute(m.hint.IS_HINT)=="1")a.value="";return h};m.hint.onInputChange=function(a,c){if(a&&c)c.value=m.hint.getInputValue(a)};
m.hint.initHint=function(a,c,d){var e=document.getElementById(c);if(e){l.events.listen(e,l.events.EventType.BLUR,function(){m.hint.onInputBlur(e)},j);l.events.listen(e,l.events.EventType.FOCUS,function(){m.hint.onInputFocus(e)},j);if(d)if(c=document.getElementById(d)){l.events.listen(e,l.events.EventType.CHANGE,l.bind(m.hint.onInputChange,i,e,c),j);c.value=m.hint.getInputValue(e)}m.hint.ng[e]=a;m.hint.onInputBlur(e)}};l.exportSymbol("_onSearchQuerySubmit",m.hint.onSubmit);
l.exportSymbol("_initSearchHint",m.hint.initHint);m.google.PageRotator=function(a,c,d,e,f,g,k){this.Ui=e;this.bj=c;this.Ta=new l.events.EventHandler(this);if(c>0){this.Ma=[];if(f){this.me=h;this.fb=[];this.Eb=[]}else this.me=j;for(var n=0;n<c;++n){this.Ma[n]=document.getElementById(a+n);if(this.Ma[n]){this.Ta.listen(this.Ma[n],l.events.EventType.MOUSEOVER,this.Ke,j,this);this.Ta.listen(this.Ma[n],l.events.EventType.MOUSEOUT,this.Wg,j,this)}if(this.me){this.fb[n]=document.getElementById(f+n);this.Eb[n]=document.getElementById(f+n+"_selected");this.fb[n]&&
this.Eb[n]&&this.Ta.listen(this.fb[n],l.events.EventType.CLICK,l.bind(this.Zg,this,n))}}}this.Oi=g?g:e;if(k)this.Xg=k;this.na=d;this.De=j};m.google.PageRotator.prototype.lc=function(){if(!this.dd){this.dd=window.setInterval(l.bind(this.cg,this),this.Ui);this.De=h}};m.google.PageRotator.prototype.Ke=function(){if(this.dd){window.clearInterval(this.dd);this.dd=i}};m.google.PageRotator.prototype.Zg=function(a){this.Ke();this.de(a);this.De&&window.setTimeout(l.bind(this.lc,this),this.Oi)};
m.google.PageRotator.prototype.Wg=function(){this.De&&this.lc()};m.google.PageRotator.prototype.cg=function(){var a=this.na+1>=this.bj?0:this.na+1;this.de(a)};
m.google.PageRotator.prototype.de=function(a){if(this.Ma[a]){if(this.Ma[this.na]){this.Ma[this.na].style.display="none";this.Ma[a].style.display=""}if(this.me){if(this.fb[this.na]&&this.Eb[this.na]){this.Eb[this.na].style.display="none";this.fb[this.na].style.display=""}if(this.fb[a]&&this.Eb[a]){this.fb[a].style.display="none";this.Eb[a].style.display=""}}}this.Xg&&this.Xg(this.na,a);this.na=a};l.exportSymbol("_PageRotator",m.google.PageRotator);
l.exportSymbol("_PageRotator.prototype.startRotate",m.google.PageRotator.prototype.lc);m.popupBlockerDetection={};m.popupBlockerDetection.MESSAGE_ID_WINDOW_BLOCKED="popup-window-blocked-message-container";m.popupBlockerDetection.openWindowWithMessageIfBlocked=function(a,c,d){(a=window.open(a,c,d))?m.google.floatMsg.maybeToggleFloatMsg(m.popupBlockerDetection.MESSAGE_ID_WINDOW_BLOCKED,j):m.google.floatMsg.maybeToggleFloatMsg(m.popupBlockerDetection.MESSAGE_ID_WINDOW_BLOCKED,h);return a};m.screener={};m.screener.playSong=function(a){if(a&&m.screener.nd){a=m.screener.nd+"?id="+a+"&type=song";window._sl_onclickStreaming(a)}};m.screener.addToPlaylist=function(a){if(a&&m.screener.nd){a=m.screener.nd+"?id="+a+"&type=song&autoplay=false";window._sl_onclickStreaming(a)}};m.screener.downloadSong=function(a){if(a&&m.screener.zf&&m.screener.Af){a=m.screener.zf+"?id="+a;m.popupBlockerDetection.openWindowWithMessageIfBlocked(a,"",m.screener.Af)}};
m.screener.openRingtonePage=function(a){a&&m.screener.hh&&m.popupBlockerDetection.openWindowWithMessageIfBlocked(a,"",m.screener.hh)};m.screener.openLyricsPage=function(a){if(a&&m.screener.Hg&&m.screener.Ig){a=m.screener.Hg+"?id="+a;m.popupBlockerDetection.openWindowWithMessageIfBlocked(a,"",m.screener.Ig)}};m.screener.onScreenerReady=function(){m.util.flash.hideFlashUpgradeMessage()};
m.screener.initScreenerApi=function(a,c,d,e,f,g){m.screener.zf=a;m.screener.Af=c;m.screener.Hg=d;m.screener.Ig=e;m.screener.nd=f;m.screener.hh=g};l.exportSymbol("playSong",m.screener.playSong);l.exportSymbol("addToPlaylist",m.screener.addToPlaylist);l.exportSymbol("downloadSong",m.screener.downloadSong);l.exportSymbol("openRingtonePage",m.screener.openRingtonePage);l.exportSymbol("openLyricsPage",m.screener.openLyricsPage);l.exportSymbol("onScreenerReady",m.screener.onScreenerReady);
l.exportSymbol("initScreenerApi",m.screener.initScreenerApi);window.setApiParams&&window.setApiParams();var p={};p.MIDDLE_SONGLIST_ID="-expand-body-";p.MIDDLE_EXPAND_BUTTON_ID="-expand-zippy-";p.MIDDLE_COLLAPSE_BUTTON_ID="-collapse-zippy-";p.MIDDLE_SHOW_ID="-show-";p.MIDDLE_HIDE_ID="-hide-";p.MIDDLE_SPIN_ID="-spin-";p.STREAMING_ID="-streaming-";p.ITEM_TOGGLE_NAME="item_toggle";p.ITEM_TOGGLE_All="toggle_all";p.SIMILARITY_SEARCH_OPTION="similarity_search_option";p.TOOLTIP_ATTACHED_CLASSNAME="Similarity";p.TOOLTIP_ELE_ID_PREFIX="tooltip";p.gi="play_button";p.ID_PARAM="?id=";p.ALBUM_ID="album";
p.ALBUM_SECTION_EXPANSION_URI=p.ALBUM_ID+p.ID_PARAM;p.ARTIST_ID="artist";p.ARTIST_SECTION_EXPANSION_URI=p.ARTIST_ID+p.ID_PARAM;p.SHOW_SUBLIST_ONLY="&output=sub_list";p.PAGE_PARAM="&page=";p.SORT_OPTION_PARAM="&sort=";p.FULL_DESCRIPTION_DIV_ID="description-full";p.TRUNCATED_DESCRIPTION_DIV_ID="description-trunc";p.RE_MATCH_SONG_ITEM_TR="<tr.*classs*=s*(\"|')SongItem.*>";p.PLAYER_POPUP_FEATURE="scrollbars=0, resizable=0, status=0, width=800, height=602";p.ONLINE_PLAYER_SINGLETON_NAME="OnlinePlayerSingleton";
p.We="disclaimer-container";p.SONG_ADDING_MESSAGE_CONTAINER_ID="song-adding-message-container";p.Xe='<div id="'+p.We+'">';p.qc="row";p.qd="snippetRow";p.isPlayerLoading=j;p.playerPageTarget=i;p.Jb={};p.cd={};p.ac={};p.sg={};p.Rh={};p.Ba={};p.allStreamingLinks=[];p.allListStreamingLinks=[];p.kd={};p.ah=h;p.Fg={};p.Ac=0;
p.oi=function(a){a=document.getElementsByName(a);for(var c=0;c<a.length;c++){var d=a[c];if(d.addEventListener){d.removeEventListener("click",p.Zc,j);d.addEventListener("click",p.Zc,j)}else{d.detachEvent("onclick",p.Zc);d.attachEvent("onclick",p.Zc)}}};
p.toggleCursorStyle=function(a){if(!p.allStreamingLinks.length)p.allStreamingLinks=document.getElementsByName("StreamingLink");for(var c=0;c<p.allStreamingLinks.length;c++)p.allStreamingLinks[c].style.cursor=a?"wait":document.all?"hand":"pointer";if(!p.allListStreamingLinks.length)p.allListStreamingLinks=document.getElementsByName("SongList");for(c=0;c<p.allListStreamingLinks.length;c++)p.allListStreamingLinks[c].style.cursor=a?"wait":"auto";document.body.style.cursor=a?"wait":"auto"};
p.mi=function(a){p.toggleCursorStyle(j);p.isPlayerLoading=j;p.playerPageTarget&&!p.playerPageTarget.closed&&a.indexOf("id")!=-1&&a.indexOf("type")!=-1&&m.google.floatMsg.maybeToggleFloatMsg(p.SONG_ADDING_MESSAGE_CONTAINER_ID,h)};
p.onclickStreaming=function(a){if(p.isPlayerLoading)return j;p.isPlayerLoading=h;p.playerPageTarget=m.popupBlockerDetection.openWindowWithMessageIfBlocked(a,p.ONLINE_PLAYER_SINGLETON_NAME,p.PLAYER_POPUP_FEATURE);p.toggleCursorStyle(h);var c=window.setInterval(d,300);function d(){if(!p.checkIsLoading()){window.clearInterval(c);p.mi(a)}}p.playerPageTarget.focus();return j};
p.checkIsLoading=function(){if(!p.playerPageTarget||p.playerPageTarget.closed)return j;if(p.playerPageTarget.length>=2)return j;try{if(p.playerPageTarget.loaded)return p.playerPageTarget.loaded=j;else return h}catch(a){return h}};p.Sf=function(a,c){var d=p.sg[a];if(d)return d;else if(c){var e=new RegExp(p.RE_MATCH_SONG_ITEM_TR,"ig"),f;for(d=[];(f=e.exec(c))!=i;)d.push(f.index);return p.sg[a]=d}else return i};p.Yf=function(a){p.kd[a]||(p.kd[a]=document.getElementById(a));return p.kd[a]};
p.Qh=function(a,c,d){var e=document.getElementById(a+p.MIDDLE_SONGLIST_ID+c),f=document.getElementById(a+p.MIDDLE_SHOW_ID+c),g=document.getElementById(a+p.MIDDLE_HIDE_ID+c),k=document.getElementById(a+p.MIDDLE_EXPAND_BUTTON_ID+c),n=document.getElementById(a+p.MIDDLE_COLLAPSE_BUTTON_ID+c);f.style.display=d?"none":"";g.style.display=d?"":"none";k.style.display=f.style.display;n.style.display=g.style.display;e.style.display=g.style.display;p.Jb[a+c]=d?h:j;p.Ki(a+c,d)};
p.Ki=function(a,c){if(!p.ah&&p.Fg[a]!=undefined)if(c){if(m.util.util.isStringEmpty(p.Sa.innerHTML))p.Sa.innerHTML=p.yi;++p.Ac}else{--p.Ac;if(!p.Ac)p.Sa.innerHTML=""}};p.hc=function(a,c,d){var e=p.ac[a+c],f=p.Yf(a+p.MIDDLE_SONGLIST_ID+c);e=p.Sf(a+c,e);if(f&&e){if(f=p.Ba[a+c])if(f.rollState==d)return;else p.Ba[a+c].rollState=d;else{p.Ba[a+c]={};p.Ba[a+c].rollState=d;p.Ba[a+c].visibleItemsCounter=d?0:e.length;p.Ba[a+c].timer=window.setInterval(l.bind(p.Ti,p,a,c,d),20)}d&&p.Qh(a,c,d)}};
p.Ti=function(a,c){var d=p.ac[a+c],e=p.Yf(a+p.MIDDLE_SONGLIST_ID+c),f=p.Sf(a+c,d),g=d.lastIndexOf("</table>"),k=p.Ba[a+c];if(k){k.rollState?++k.visibleItemsCounter:--k.visibleItemsCounter;if((k.visibleItemsCounter<f.length&&k.rollState||k.visibleItemsCounter>0&&!k.rollState)&&g!=-1)e.innerHTML=d.substring(0,f[k.visibleItemsCounter])+d.substring(g);else{e.innerHTML=k.rollState?d:"";window.clearInterval(k.timer);k.rollState||p.Qh(a,c,k.rollState);delete p.Ba[a+c]}}};
p.resetListDisplayState=function(){p.Ba={};for(var a in p.Jb)p.Jb[a]=j;p.kd={};p.Ac=0;if(p.Sa)p.Sa.innerHTML=""};p.Rc=function(a,c,d,e,f){if(d=document.getElementById(e+p.MIDDLE_SPIN_ID+f))d.style.display="none";if(c){a=a.responseText;c=a.indexOf(p.Xe);if(c!=-1){p.Xi(a.substring(c,a.length),e+f);a=a.substring(0,c)}p.ac[e+f]=a;p.hc(e,f,h)}else p.Jb[e+f]=j;delete p.cd[e+f]};
p.Xi=function(a,c){a=a.substring(p.Xe.length,a.lastIndexOf("</div>"));if(!m.util.util.isStringEmpty(a)){if(!p.Sa)p.Sa=document.getElementById(p.We);p.yi=a;if(m.util.util.isStringEmpty(p.Sa.innerHTML))p.ah=j;p.Fg[c]=h}};
p.jh=function(a,c,d,e){var f=document.getElementById(d+p.MIDDLE_SPIN_ID+e);if(f)f.style.display="";var g=m.util.util.createAjaxRequest();f="GET";g.open(f,a,h);g.onreadystatechange=function(){if(g.readyState==4&&c){c(g,g.status&&g.status==200,a,d,e);g.onreadystatechange=function(){}}};p.cd[d+e]=g;m.util.util.ieActiveXType?g.send():g.send(i)};
p.$i=function(a,c){if(m.util.util.isCurrentSelectionEmpty()){var d=p.ALBUM_ID,e=d+a;if(!p.cd[e])if(p.Jb[e])p.hc(d,a,j);else(e=p.ac[e])?p.hc(d,a,h):p.jh(p.ALBUM_SECTION_EXPANSION_URI+a+p.SHOW_SUBLIST_ONLY+p.PAGE_PARAM+c,p.Rc,d,a)}};p.aj=function(a,c){if(m.util.util.isCurrentSelectionEmpty()){var d=p.ARTIST_ID,e=d+a;if(!p.cd[e])if(p.Jb[e])p.hc(d,a,j);else(e=p.ac[e])?p.hc(d,a,h):p.jh(p.ARTIST_SECTION_EXPANSION_URI+a+p.SHOW_SUBLIST_ONLY+p.PAGE_PARAM+c,p.Rc,d,a)}};
p.Zi=function(){if(m.util.util.isCurrentSelectionEmpty()){var a=document.getElementById(p.FULL_DESCRIPTION_DIV_ID),c=document.getElementById(p.TRUNCATED_DESCRIPTION_DIV_ID);if(a.style.display=="none"){a.style.display="";c.style.display="none"}else{a.style.display="none";c.style.display=""}}};
p.ki=function(a,c,d){a=document.getElementsByName(p.ITEM_TOGGLE_NAME+a);for(var e=0,f=p.ID_PARAM,g=0;g<a.length;g++)if(a[g].checked){if(e>0)f+=",";f+=a[g].value;e++}c=c+f+"&type=song";if(l.isDef(d)&&!d)c+="&autoplay=false";p.onclickStreaming(c)};p.ji=function(a,c){a=document.getElementsByName(p.ITEM_TOGGLE_NAME+a);for(var d=0,e=p.ID_PARAM,f=0;f<a.length;f++){if(d>0)e+=",";e+=a[f].value;d++}c=c+e+"&type=song";p.onclickStreaming(c)};
p.Zc=function(a){a=a;if(!a)a=window.event;a.cancelBubble=h;a.stopPropagation&&a.stopPropagation()};p.Oh=function(a,c){a=document.getElementsByName(p.gi+a);for(var d=0;d<a.length;d++)a[d].disabled=!c};p.Ph=function(a,c){a=document.getElementsByName(p.ITEM_TOGGLE_All+a);for(var d=0;d<a.length;d++)a[d].checked=c};
p.Yi=function(a,c){var d=document.getElementsByName(p.ITEM_TOGGLE_NAME+a);p.Ph(a,c.checked);for(var e=0;e<d.length;e++){d[e].checked=c.checked;var f=document.getElementById(p.qc+d[e].id);f.style.background=c.checked?"#f6f6f6":"#fff";if(f=document.getElementById(p.qd+d[e].id))f.style.background=c.checked?"#f6f6f6":"#fff"}p.Oh(a,c.checked)};
p.Li=function(a){var c=document.getElementById(p.qc+a.id);c.style.background=a.checked?"#f6f6f6":"#fff";c=document.getElementsByName(a.name);for(var d=0,e=0;e<c.length;e++)c[e].checked&&d++;a=a.name.substring(p.ITEM_TOGGLE_NAME.length,a.name.length);p.Oh(a,d!=0);p.Ph(a,d==c.length)};p.Wi=function(){try{document.execCommand("BackgroundImageCache",j,h)}catch(a){}};
p.cj=function(){var a=document.getElementsByName(p.ITEM_TOGGLE_NAME),c=document.getElementById(p.ITEM_TOGGLE_All);if(c){c.checked=j;for(c=0;c<a.length;c++)a[c].checked=j}};p.Ji=function(a,c,d){if(!p.Rh[a.id]){var e=new l.ui.Tooltip(a);(c=document.getElementById(c))&&e.ph(c.innerHTML);p.Rh[a.id]=e;d&&e.Eh(a,new l.ui.Tooltip.ElementTooltipPosition(a))}};
p.Mi=function(a){var c=document.getElementById(a);if(!c||!c.checked){if(c=document.getElementById(p.qc+a))c.style.background="#ffffff";if(a=document.getElementById(p.qd+a))a.style.background="#ffffff"}};p.Ni=function(a){var c=document.getElementById(p.qc+a);if(c)c.style.background="#f6f6f6";if(a=document.getElementById(p.qd+a))a.style.background="#f6f6f6"};
p.sendLoggingRequest=function(a){var c=m.util.util.createAjaxRequest();c.open("GET",a,h);c.onreadystatechange=function(){return j};m.util.util.ieActiveXType?c.send():c.send(i)};
var _sl_toggleSongListInAlbum=p.$i,_sl_toggleSongListOfArtist=p.aj,_sl_toggleAllSongs=p.Yi,_sl_toggleDescription=p.Zi,_sl_addSongsToPlaylist=p.ki,_sl_addAllSongsToPlaylist=p.ji,_sl_attachEvent=p.oi,_sl_onClickCheckbox=p.Li,_sl_setBackgroundImageCache=p.Wi,_sl_unCheckAllSongItemCheckbox=p.cj,_sl_onclickStreaming=p.onclickStreaming,_sl_onMouseOutSongItem=p.Mi,_sl_onMouseOverSongItem=p.Ni,_sl_maybeAttachTooltip=p.Ji,_sl_sendLoggingRequest=p.sendLoggingRequest;m.suggest={};window.google={};window.google.kHL="zh-CN";m.suggest.installSuggest=function(){m.autoComplete.install(document.f,document.f.q,"music",j,"\u5173\u95ed",h,"","")};l.exportSymbol("_installSuggest",m.suggest.installSuggest);
