if(!Array.prototype.filter){Array.prototype.filter=function(a,b){var d=[];this.forEach(function(f,g,h){if(a.call(b,f,g,h)){d.push(f)}});return d}}if(!Array.prototype.map){Array.prototype.map=function(a,b){var d=[];this.forEach(function(f,g,h){d.push(a.call(b,f,g,h))});return d}}if(!Array.prototype.some){Array.prototype.some=function(a,b){for(var d=0;d<this.length;d++){if(a.call(b,this[d],d,this)){return true}}return false}}if(!Array.prototype.every){Array.prototype.every=function(a,b){for(var d=0;d<
this.length;d++){if(!a.call(b,this[d],d,this)){return false}}return true}}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(a,b){var d=b||0;if(d<0){d=Math.max(this.length+d,0)}for(var f=d;f<this.length;f++){if(a===this[f]){return f}}return-1}}if(!Array.prototype.lastIndexOf){Array.prototype.lastIndexOf=function(a,b){var d=b==null?this.length-1:b;if(d<0){d=this.length+d}for(var f=d;f>=0;f--){if(a===this[f]){return f}}return-1}}Array.prototype.contains=function(a){return this.indexOf(a)!=
-1};var c=this;String.prototype.ob=function(a){return this.indexOf(a)==0};String.prototype.Ja=function(a){var b=this.length-a.length;return b>=0&&this.lastIndexOf(a,b)==b};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};String.prototype.subs=function(){var a=this;for(var b=0;b<arguments.length;b++){a=a.replace(/\%s/,String(arguments[b]))}return a};if(!Function.prototype.apply){Function.prototype.apply=function(a,b){var d=[],f,g;if(!a)a=c;var h=b||[];for(var i=0;i<h.length;i++){d[i]=
"args["+i+"]"}g="oScope.__applyTemp__.peek()("+d.join(",")+");";if(!a.__applyTemp__){a.__applyTemp__=[]}a.__applyTemp__.push(this);f=eval(g);a.__applyTemp__.pop();return f}}if(!Array.prototype.push){Array.prototype.push=function(a){for(var b=0;b<arguments.length;b++){this[this.length]=arguments[b]}return this.length}}if(!Array.prototype.pop){Array.prototype.pop=function(){if(!this.length){return}var a=this[this.length-1];this.length--;return a}}Array.prototype.peek=function(){return this[this.length-
1]};if(!Array.prototype.shift){Array.prototype.shift=function(){if(this.length==0){return}var a=this[0];for(var b=0;b<this.length-1;b++){this[b]=this[b+1]}this.length--;return a}}if(!Array.prototype.unshift){Array.prototype.unshift=function(a){var b=arguments.length;for(var d=this.length-1;d>=0;d--){this[d+b]=this[d]}for(var f=0;f<b;f++){this[f]=arguments[f]}return this.length}}if(!Array.prototype.forEach){Array.prototype.forEach=function(a,b){for(var d=0;d<this.length;d++){a.call(b,this[d],d,this)}}}function e(a,
b,d){var f=a.Y||[];f=f.concat(Array.prototype.slice.call(arguments,2));if(typeof a.L!="undefined"){b=a.L}if(typeof a.K!="undefined"){a=a.K}var g=function(){var h=f.concat(Array.prototype.slice.call(arguments));return a.apply(b,h)};g.Y=f;g.L=b;g.K=a;return g}Function.prototype.bind=function(a){return e.apply(null,[this,a].concat(Array.prototype.slice.call(arguments,1)))};Function.prototype.partial=function(){return e.apply(null,[this,null].concat(Array.prototype.slice.call(arguments)))};Function.prototype.inherits=
function(a){var b=function(){};b.prototype=a.prototype;this.pb=a.prototype;this.prototype=new b};Function.prototype.mixin=function(a){for(var b in a){this.prototype[b]=a[b]}if(typeof a.toString=="function"&&a.toString!=this.prototype.toString){this.prototype.toString=a.toString}};var p={};p.Detect={};(function(){function a(){this.IE=function(){if(this.OPERA())return false;try{return this.Run(document.all&&!document.contains)!=false}catch(b){if(document.all)return true;return false}};this.IE_5_5_newer=function(){try{return this.Run(this.IE()&&Array.prototype.pop)!=false}catch(b){return false}};this.IE_5_Mac=function(){try{return true==undefined}catch(b){return(document.all&&document.getElementById&&!document.mimeType&&!window.opera)!=false}};this.OPERA=function(){try{return"opera"in
window}catch(b){}return false};this.OPERA_9=function(){try{if(this.OPERA()){var b=navigator.userAgent.toLowerCase(),d=parseFloat(b.substring(b.indexOf("opera ")+6));return d>=9}}catch(f){}return false};this.MOZILLA=function(){try{return this.Run(document.implementation&&document.implementation.createDocument&&!document.contains)!=false}catch(b){return false}};this.SAFARI=function(){try{return this.Run(document.implementation&&document.implementation.createDocument&&document.contains)!=false}catch(b){return false}};
this.DOM=function(){return document.getElementById};this.Run=function(b){if(b==undefined){return false}else{return b}}}p.Detect=new a})();p.constants={};var s="absolute";var t=18242;p.listen={};var u,v,w;(function(){var a={},b=0;u=d.partial(false);v=d.partial(true);function d(h,i,j,m){var k={node:i,event:j,callback:m,id:b++};k.handler=f.partial(k,h);if(i.addEventListener){i.addEventListener(j,k.handler,false)}else if(i.attachEvent){i.attachEvent("on"+j,k.handler)}else{throw new Error;}a[k.id]=k;return k.id}w=function(h){var i=a[h];delete a[h];if(i){if(i.node.removeEventListener){i.node.removeEventListener(i.event,i.handler,false)}else if(i.node.detachEvent){i.node.detachEvent("on"+
i.event,i.handler)}for(var j in i){delete i[j]}delete i;return true}return false};function f(h,i,j){var m=h.callback;if(i)w(h.id);if(m){m(j)}}function g(){for(var h in a){w(h)}}v(window,"unload",g)})();p.style={};p.style.setStyles=function(a,b){if(a instanceof Array){for(var d=0;d<a.length;d++){p.style.setStyles(a[d],b)}}else{for(var f in b){var g=b[f],h=p.style.Ma[f];a.style[f]=h?h(g):g}}};p.style.setAttributeForNodeAndChildren=function(a,b,d){if(a.setAttribute){a.setAttribute(b,d);var f=a.childNodes;for(var g=0;g<f.length;g++){p.style.setAttributeForNodeAndChildren(f[g],b,d)}}};p.style.setAttributes=function(a,b){if(a instanceof Array){a.forEach(function(g){p.style.setAttributes(g,b)})}else{for(var d in b){var f=
b[d];a[d]=f}}};p.style.setStylesForNodeAndChildren=function(a,b){if(a.style){p.style.setStyles(a,b);for(var d=a.firstChild;d!=null;d=d.nextSibling){p.style.setStylesForNodeAndChildren(d,b)}}};p.style.oa=function(a){return a.toString().replace(p.style.ec,"$1px")};p.style.ec=/\b(-?\d+(?!%))\b/g;p.style.Ma={};(function(){function a(i,j){p.style.Ma[j]=i}var b=["top","left","right","bottom","width","height","fontSize"];for(var d=0;d<b.length;d++){a(p.style.oa,b[d])}var f=["margin","padding","border"],
g=["Top","Left","Right","Bottom"];for(var d=0;d<f.length;d++){a(p.style.oa,f[d]);for(var h=0;h<g.length;h++){a(p.style.oa,f[d]+g[h])}}})();var x={color:"#0000cc",cursor:"pointer",textDecoration:"underline"};p.dom={};p.dom.getNodeWidth=function(a){return a.clientWidth};p.dom.getNodeHeight=function(a){return a.clientHeight};p.dom.getOffsetWidth=function(a){return a.offsetWidth};p.dom.getOffsetHeight=function(a){return a.offsetHeight};p.dom.getMaxWidth=function(a){return Math.max(a.clientWidth,a.offsetWidth)};p.dom.getMaxHeight=function(a){return Math.max(a.clientHeight,a.offsetHeight)};p.dom.getWindowHeight=function(){return window.innerHeight||p.dom.getWindowProperty("clientHeight")};p.dom.getWindowWidth=
function(){return window.innerWidth||p.dom.getWindowProperty("clientWidth")};p.dom.getWindowProperty=function(a,b){var d=b||document;if(d.compatMode=="BackCompat"){return d.body[a]}else if(d.compatMode=="CSS1Compat"){return d.documentElement[a]}else if(d.body[a]){return d.body[a]}};p.dom.getYPosition=function(a){return p.dom.getPosition(a).y};p.dom.getXPosition=function(a){return p.dom.getPosition(a).x};p.dom.getPosition=function(a,b){var d={x:0,y:0},f=a;while(a){d.x+=a.offsetLeft;d.y+=a.offsetTop;
a=a.offsetParent}if(b){var a=f.offsetParent;while(a&&a.tagName&&!p.dom.isNodeType(a,"body")){d.x-=a.scrollLeft;d.y-=a.scrollTop;a=a.parentNode}}return d};p.dom.getOffset=function(a,b){var d={x:0,y:0},f=b;while(f){if(f==a)return d;d.x+=f.offsetLeft;d.y+=f.offsetTop;f=f.parentNode}};p.dom.getNodeBox=function(a){var b=p.dom.getPosition(a,true);return new p.Box(b.x,b.y,b.x+p.dom.getNodeWidth(a),b.y+p.dom.getNodeHeight(a))};p.dom.wrapNodeInDiv=function(a){var b=document.createElement("div");p.dom.wrapNode(a,
b);return b};p.dom.wrapNode=function(a,b){var d=a.parentNode;d.insertBefore(b,a);p.dom.removeNode(a);b.appendChild(a)};p.dom.removeNode=function(a){a.parentNode.removeChild(a)};p.dom.maybeRemoveNode=function(a){if(a.parentNode)p.dom.removeNode(a)};p.dom.wrapBelowNode=function(a,b){var d=b||p.dom.createElement("div");p.dom.insertFirst(a,d);while(d.nextSibling){p.dom.appendChild(d,d.nextSibling)}return d};p.dom.createElement=function(a,b){return(b||document).createElement(a)};p.dom.createTextNode=function(a,
b){return(b||document).createTextNode(a)};p.dom.appendChild=function(a,b){a.appendChild(b);return b};p.dom.insertFirst=function(a,b){if(a.firstChild){a.insertBefore(b,a.firstChild)}else{a.appendChild(b)}return b};p.dom.focusElement=function(a){if(a.focus)a.focus()};p.dom.emptyNode=function(a){while(a.firstChild){a.removeChild(a.firstChild)}};p.dom.walkDOM=function(a,b,d){var f=a.firstChild;while(f){if(f.tagName){if(b(f)){if(d)return f}var g=p.dom.walkDOM(f,b,d);if(g)return g}f=f.nextSibling}};p.dom.isNodeType=
function(a,b){return a.tagName.toLowerCase()==b.toLowerCase()};p.dom.getParent=function(a,b){while(a){if(b(a))return a;a=a.parentNode}};p.dom.Sb=function(a,b){return p.dom.isClass(b,a)};p.dom.getParentWithClass=function(a,b){return p.dom.getParent(a,p.dom.Sb.partial(b))};p.dom.Ub=function(a,b){return p.dom.isNodeType(b,a)};p.dom.getParentWithTagName=function(a,b){return p.dom.getParent(a,p.dom.Ub.partial(b))};p.dom.isClass=function(a,b){if(b instanceof Array){return a.className.split(" ").some(function(d){return b.contains(d)})}else return p.dom.isClass(a,
[b])};p.dom.makeUnselectable=function(a){if(p.Detect.MOZILLA()){p.style.setStylesForNodeAndChildren(a,{MozUserSelect:"none"})}else if(p.Detect.IE()){p.style.setAttributeForNodeAndChildren(a,"unselectable","on")}else if(p.Detect.SAFARI()){}};p.dom.contains=function(a,b){return!(!p.dom.getParent(b,function(d){return d==a}))};p.dom.setClass=function(a,b){a.className=b};p.util={};p.util.arrayToHash=function(a){var b={};for(var d=0;d<a.length;d++){b[a[d]]=true}return b};p.util.getUniqueId=function(){return"_nn"+p.util.Eb++};p.util.Eb=0;p.util.compareIntegers=function(a,b){return a-b};p.util.getArrayIterator=function(a){var b=0;return{hasNext:function(){return b<a.length},next:function(){return a[b++]}}};p.util.emptyFunction=function(){};p.util.format=function(a){for(var b=1;b<arguments.length;b++){var d=p.util.Na[b]||(p.util.Na[b]=new RegExp("\\%"+b+"\\$."));a=a.replace(d,
arguments[b].toString())}return a};p.util.Na={};p.util.instanceOf=function(a,b){return a instanceof b};p.util.reverseInstanceOf=function(a,b){return b instanceof a};p.util.getNumKeys=function(a){var b=0;for(var d in a)b++;return b};p.util.evaluate=function(a){if(a instanceof Function){return a()}else{return a}};p.util.getBody=function(){return p.util.zb||(p.util.zb=document.getElementsByTagName("body")[0])};p.util.getElemById=function(a){return document.getElementById(a)};p.util.getHTMLEscapedString=
function(a,b){var d=[],f=0;for(var g=0;g<a.length;g++){var h=a.charAt(g);for(var i in p.util.Lb){if(h==i){h=p.util.Lb[i]}}h=encodeURIComponent(h);if(b&&f+h.length>b){break}f+=h.length;d.push(h)}return d.join("")};p.util.sc={"&":"&amp;",'"':"&quot;","'":"&#039","<":"&lt;",">":"&gt;"};p.util.getHandCursorStyle=function(){return p.Detect.IE()?"hand":"pointer"};p.util.parseInt=function(a,b){return window.parseInt(a,b||10)};var y=y||{};y.global=this;y.Q=null;y.provide=function(a){y.La(a)};y.La=function(a,b){var d=a.split("."),f=y.global,g;while(g=d.shift()){if(!d.length&&y.isDef(b)){f[g]=b}else if(f[g]){f=f[g]}else{f=(f[g]={})}}};y.getObjectByName=function(a){var b=a.split("."),d=y.global;for(var f;f=b.shift();){if(d[f]){d=d[f]}else{return null}}return d};y.globalize=function(a,b){var d=b||y.global;for(var f in a){d[f]=a[f]}};y.addDependency=function(a,b,d){};y.require=function(a){};y.basePath="";y.nullFunction=function(){};
y.abstractMethod=function(){throw Error("unimplemented abstract method");};y.typeOf=function(a){var b=typeof a;if(b=="object"){if(a){if(typeof a.length=="number"&&typeof a.splice!="undefined"&&!y.ib(a,"length")){return"array"}if(typeof a.call!="undefined"){return"function"}}else{return"null"}}else if(b=="function"&&typeof a.call=="undefined"){return"object"}return b};if(Object.prototype.propertyIsEnumerable){y.ib=function(a,b){return Object.prototype.propertyIsEnumerable.call(a,b)}}else{y.ib=function(a,
b){if(b in a){for(var d in a){if(d==b){return true}}}return false}}y.isDef=function(a){return typeof a!="undefined"};y.isNull=function(a){return a===null};y.isDefAndNotNull=function(a){return y.isDef(a)&&!y.isNull(a)};y.isArray=function(a){return y.typeOf(a)=="array"};y.isArrayLike=function(a){var b=y.typeOf(a);return b=="array"||b=="object"&&typeof a.length=="number"};y.isDateLike=function(a){return y.isObject(a)&&typeof a.getFullYear=="function"};y.isString=function(a){return typeof a=="string"};
y.isBoolean=function(a){return typeof a=="boolean"};y.isNumber=function(a){return typeof a=="number"};y.isFunction=function(a){return y.typeOf(a)=="function"};y.isObject=function(a){var b=y.typeOf(a);return b=="object"||b=="array"||b=="function"};y.getHashCode=function(a){if(a.hasOwnProperty&&a.hasOwnProperty(y.i)){return a[y.i]}if(!a[y.i]){a[y.i]=++y.Qb}return a[y.i]};y.removeHashCode=function(a){if("removeAttribute"in a){a.removeAttribute(y.i)}try{delete a[y.i]}catch(b){}};y.i="closure_hashCode_";
y.Qb=0;y.cloneObject=function(a){var b=y.typeOf(a);if(b=="object"||b=="array"){if(a.clone){return a.clone()}var d=b=="array"?[]:{};for(var f in a){d[f]=y.cloneObject(a[f])}return d}return a};y.bind=function(a,b){var d=a.Y;if(arguments.length>2){var f=Array.prototype.slice.call(arguments,2);if(d){f.unshift.apply(f,d)}d=f}b=a.L||b;a=a.K||a;var g,h=b||y.global;if(d){g=function(){var i=Array.prototype.slice.call(arguments);i.unshift.apply(i,d);return a.apply(h,i)}}else{g=function(){return a.apply(h,arguments)}}g.Y=
d;g.L=b;g.K=a;return g};y.partial=function(a){var b=Array.prototype.slice.call(arguments,1);b.unshift(a,null);return y.bind.apply(null,b)};y.mixin=function(a,b){for(var d in b){a[d]=b[d]}};y.now=function(){return(new Date).getTime()};y.globalEval=function(a){if(y.global.execScript){y.global.execScript(a,"JavaScript")}else if(y.global.eval){if(y.Q==null){y.global.eval("var _et_ = 1;");if(typeof y.global._et_!="undefined"){delete y.global._et_;y.Q=true}else{y.Q=false}}if(y.Q){y.global.eval(a)}else{var b=
y.global.document,d=b.createElement("script");d.type="text/javascript";d.defer=false;d.innerHTML=a;b.body.appendChild(d);b.body.removeChild(d)}}else{throw Error("goog.globalEval not available");}};y.getMsg=function(a,b){var d=b||{};for(var f in d){a=a.replace(new RegExp("\\{\\$"+f+"\\}","gi"),d[f])}return a};y.exportSymbol=function(a,b){y.La(a,b)};y.exportProperty=function(a,b,d){a[b]=d};if(!Function.prototype.apply){Function.prototype.apply=function(a,b){var d=[],f,g;if(!a)a=y.global;if(!b)b=[];
for(var h=0;h<b.length;h++){d[h]="args["+h+"]"}g="oScope.__applyTemp__.peek().("+d.join(",")+");";if(!a.__applyTemp__){a.__applyTemp__=[]}a.__applyTemp__.push(this);f=eval(g);a.__applyTemp__.pop();return f}}Function.prototype.bind=function(a){if(arguments.length>1){var b=Array.prototype.slice.call(arguments,1);b.unshift(this,a);return y.bind.apply(null,b)}else{return y.bind(this,a)}};Function.prototype.partial=function(){var a=Array.prototype.slice.call(arguments);a.unshift(this,null);return y.bind.apply(null,
a)};Function.prototype.inherits=function(a){y.inherits(this,a)};y.inherits=function(a,b){function d(){}d.prototype=b.prototype;a.pb=b.prototype;a.prototype=new d;a.prototype.constructor=a};Function.prototype.mixin=function(a){y.mixin(this.prototype,a)};y.Disposable=function(){};y.Disposable.prototype.P=false;y.Disposable.prototype.R=function(){return this.P};y.Disposable.prototype.dispose=function(){if(!this.P){this.P=true}};y.dispose=function(a){if(typeof a.dispose=="function"){a.dispose()}};y.events={};y.events.Event=function(a,b){this.type=a;this.target=b;this.currentTarget=this.target};y.inherits(y.events.Event,y.Disposable);y.events.Event.prototype.f=false;y.events.Event.prototype.o=true;y.events.Event.prototype.stopPropagation=function(){this.f=true};y.events.Event.prototype.preventDefault=function(){this.o=false};y.string={};y.string.ob=function(a,b){return a.indexOf(b)==0};y.string.Ja=function(a,b){var d=a.length-b.length;return d>=0&&a.lastIndexOf(b,d)==d};y.string.caseInsensitiveStartsWith=function(a,b){return y.string.caseInsensitiveCompare(b,a.substr(0,b.length))==0};y.string.caseInsensitiveEndsWith=function(a,b){return y.string.caseInsensitiveCompare(b,a.substr(a.length-b.length,b.length))==0};y.string.subs=function(a){for(var b=1;b<arguments.length;b++){var d=String(arguments[b]).replace(/\$/g,"$$$$");
a=a.replace(/\%s/,d)}return a};y.string.collapseWhitespace=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};y.string.isEmpty=function(a){return/^[\s\xa0]*$/.test(a)};y.string.isEmptySafe=function(a){return y.string.isEmpty(y.string.makeSafe(a))};y.string.isAlpha=function(a){return!/[^a-zA-Z]/.test(a)};y.string.isNumeric=function(a){return!/[^0-9]/.test(a)};y.string.isAlphaNumeric=function(a){return!/[^a-zA-Z0-9]/.test(a)};y.string.isSpace=function(a){return a==" "};y.string.isUnicodeChar=
function(a){return a.length==1&&a>=" "&&a<="~"||a>="\u0080"&&a<="\ufffd"};y.string.stripNewlines=function(a){return a.replace(/(\r\n|\r|\n)+/g," ")};y.string.canonicalizeNewlines=function(a){return a.replace(/(\r\n|\r|\n)/g,"\n")};y.string.normalizeWhitespace=function(a){return a.replace(/\xa0|\s/g," ")};y.string.normalizeSpaces=function(a){return a.replace(/\xa0|[ \t]+/g," ")};y.string.trim=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};y.string.trimLeft=function(a){return a.replace(/^[\s\xa0]+/,
"")};y.string.trimRight=function(a){return a.replace(/[\s\xa0]+$/,"")};y.string.caseInsensitiveCompare=function(a,b){var d=String(a).toLowerCase(),f=String(b).toLowerCase();if(d<f){return-1}else if(d==f){return 0}else{return 1}};y.string.gb=/(\.\d+)|(\d+)|(\D+)/g;y.string.numerateCompare=function(a,b){if(a==b){return 0}if(!a){return-1}if(!b){return 1}var d=a.toLowerCase().match(y.string.gb),f=b.toLowerCase().match(y.string.gb),g=Math.min(d.length,f.length);for(var h=0;h<g;h++){var i=d[h],j=f[h];if(i!=
j){var m=parseInt(i,10);if(!isNaN(m)){var k=parseInt(j,10);if(!isNaN(k)&&m-k){return m-k}}return i<j?-1:1}}if(d.length!=f.length){return d.length-f.length}return a<b?-1:1};y.string.Kb=/^[a-zA-Z0-9\-_.!~*'()]*$/;y.string.urlEncode=function(a){a=String(a);if(!y.string.Kb.test(a)){return encodeURIComponent(a)}return a};y.string.urlDecode=function(a){return decodeURIComponent(a.replace(/\+/g," "))};y.string.newLineToBr=function(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")};y.string.htmlEscape=
function(a,b){if(b){return a.replace(y.string.Aa,"&amp;").replace(y.string.db,"&lt;").replace(y.string.Ra,"&gt;").replace(y.string.jb,"&quot;")}else{if(!y.string.xb.test(a))return a;if(a.indexOf("&")!=-1){a=a.replace(y.string.Aa,"&amp;")}if(a.indexOf("<")!=-1){a=a.replace(y.string.db,"&lt;")}if(a.indexOf(">")!=-1){a=a.replace(y.string.Ra,"&gt;")}if(a.indexOf('"')!=-1){a=a.replace(y.string.jb,"&quot;")}return a}};y.string.Aa=/&/g;y.string.db=/</g;y.string.Ra=/>/g;y.string.jb=/\"/g;y.string.xb=/[&<>\"]/;
y.string.unescapeEntities=function(a){if(y.string.contains(a,"&")){if("document"in y.global&&!y.string.contains(a,"<")){return y.string.lc(a)}else{return y.string.mc(a)}}return a};y.string.lc=function(a){var b=y.global.document.createElement("a");b.innerHTML=a;if(b[y.string.xa]){b[y.string.xa]()}a=b.firstChild.nodeValue;b.innerHTML="";return a};y.string.mc=function(a){return a.replace(/&([^;]+);/g,function(b,d){switch(d){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';
default:if(d.charAt(0)=="#"){var f=Number("0"+d.substr(1));if(!isNaN(f)){return String.fromCharCode(f)}}return b}})};y.string.xa="normalize";y.string.whitespaceEscape=function(a,b){return y.string.newLineToBr(a.replace(/  /g," &#160;"),b)};y.string.stripQuotes=function(a,b){if(a.charAt(0)==b&&a.charAt(a.length-1)==b){return a.substring(1,a.length-1)}return a};y.string.truncate=function(a,b,d){if(d){a=y.string.unescapeEntities(a)}if(a.length>b){a=a.substring(0,b-3)+"..."}if(d){a=y.string.htmlEscape(a)}return a};
y.string.truncateMiddle=function(a,b,d){if(d){a=y.string.unescapeEntities(a)}if(a.length>b){var f=Math.floor(b/2),g=a.length-f;f+=b%2;a=a.substring(0,f)+"..."+a.substring(g)}if(d){a=y.string.htmlEscape(a)}return a};y.string.ga={"\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\x0B",'"':'\\"',"'":"\\'","\\":"\\\\"};y.string.quote=function(a){a=String(a);if(a.quote){return a.quote()}else{var b=['"'];for(var d=0;d<a.length;d++){b.push(y.string.escapeChar(a.charAt(d)))}b.push('"');
return b.join("")}};y.string.escapeChar=function(a){if(a in y.string.ga){return y.string.ga[a]}var b=a,d=a.charCodeAt(0);if(d>31&&d<127){b=a}else{if(d<256){b="\\x";if(d<16||d>256){b+="0"}}else{b="\\u";if(d<4096){b+="0"}}b+=d.toString(16).toUpperCase()}return y.string.ga[a]=b};y.string.toMap=function(a){var b={};for(var d=0;d<a.length;d++){b[a.charAt(d)]=true}return b};y.string.ub=y.string.toMap("()[]{}+-?*.$^|,:#<!\\");y.string.contains=function(a,b){return a.indexOf(b)!=-1};y.string.regExpEscape=
function(a){a=String(a);var b="",d;for(var f=0;f<a.length;f++){d=a.charAt(f);if(d=="\u0008"){d="\\x08"}else if(d in y.string.ub){d="\\"+d}b+=d}return b};y.string.repeat=function(a,b){return(new Array(b+1)).join(a)};y.string.padNumber=function(a,b,d){var f=Math.floor(a),g=String(f);return y.string.repeat("0",Math.max(0,b-g.length))+(y.isDef(d)?a.toFixed(d):a)};y.string.makeSafe=function(a){return a==null?"":String(a)};y.string.buildString=function(){return Array.prototype.join.call(arguments,"")};
y.string.getRandomString=function(){return Math.floor(Math.random()*2147483648).toString(36)+(Math.floor(Math.random()*2147483648)^(new Date).getTime()).toString(36)};y.string.compareVersions=function(a,b){var d=0,f=String(a).split("."),g=String(b).split("."),h=Math.max(f.length,g.length);for(var i=0;d==0&&i<h;i++){var j=f[i]||"",m=g[i]||"",k=new RegExp("(\\d*)(\\D*)","g"),l=new RegExp("(\\d*)(\\D*)","g");do{var n=k.exec(j)||["","",""],o=l.exec(m)||["","",""];if(n[0].length==0&&o[0].length==0){break}var q=
n[1].length==0?0:parseInt(n[1],10),r=o[1].length==0?0:parseInt(o[1],10);d=y.string.Z(q,r)||y.string.Z(n[2].length==0,o[2].length==0)||y.string.Z(n[2],o[2])}while(d==0)}return d};y.string.Z=function(a,b){if(a<b){return-1}else if(a>b){return 1}return 0};y.string.tb=4294967296;y.string.hashCode=function(a){var b=0;for(var d=0;d<a.length;++d){b=31*b+a.charCodeAt(d);b%=y.string.tb}return b};y.userAgent={};(function(){var a=false,b=false,d=false,f=false,g=false,h=false,i=false,j=false,m=false,k=false,l=false,n="";if(y.global.navigator){var o=navigator.userAgent;a=typeof opera!="undefined";b=!a&&o.indexOf("MSIE")!=-1;d=!a&&o.indexOf("WebKit")!=-1;l=d&&o.indexOf("Mobile")!=-1;f=!a&&navigator.product=="Gecko"&&!d;g=f&&navigator.vendor=="Camino";h=!a&&o.indexOf("Konqueror")!=-1;i=h||d;var q,r;if(a){q=opera.version()}else{if(f){r=/rv\:([^\);]+)(\)|;)/}else if(b){r=/MSIE\s+([^\);]+)(\)|;)/}else if(d){r=
/WebKit\/(\S+)/}else if(h){r=/Konqueror\/([^\);]+)(\)|;)/}if(r){r.test(o);q=RegExp.$1}}n=navigator.platform;j=n.indexOf("Mac")!=-1;m=n.indexOf("Win")!=-1;k=n.indexOf("Linux")!=-1}y.userAgent.OPERA=a;y.userAgent.IE=b;y.userAgent.GECKO=f;y.userAgent.CAMINO=g;y.userAgent.KONQUEROR=h;y.userAgent.SAFARI=d;y.userAgent.KHTML=i;y.userAgent.VERSION=q;y.userAgent.PLATFORM=n;y.userAgent.MAC=j;y.userAgent.WINDOWS=m;y.userAgent.LINUX=k;y.userAgent.MOBILE=l})();y.userAgent.compare=function(a,b){return y.string.compareVersions(a,
b)};y.userAgent.isVersion=function(a){return y.userAgent.compare(y.userAgent.VERSION,a)>=0};y.events.BrowserEvent=function(a,b){if(a){this.init(a,b)}};y.inherits(y.events.BrowserEvent,y.events.Event);y.events.BrowserEvent.MouseButton={LEFT:0,MIDDLE:1,RIGHT:2};y.events.BrowserEvent.rc=[1,4,2];y.events.BrowserEvent.prototype.type=null;y.events.BrowserEvent.prototype.target=null;y.events.BrowserEvent.prototype.currentTarget=null;y.events.BrowserEvent.prototype.relatedTarget=null;y.events.BrowserEvent.prototype.offsetX=0;y.events.BrowserEvent.prototype.offsetY=0;y.events.BrowserEvent.prototype.clientX=
0;y.events.BrowserEvent.prototype.clientY=0;y.events.BrowserEvent.prototype.screenX=0;y.events.BrowserEvent.prototype.screenY=0;y.events.BrowserEvent.prototype.button=0;y.events.BrowserEvent.prototype.keyCode=0;y.events.BrowserEvent.prototype.charCode=0;y.events.BrowserEvent.prototype.ctrlKey=false;y.events.BrowserEvent.prototype.altKey=false;y.events.BrowserEvent.prototype.shiftKey=false;y.events.BrowserEvent.prototype.metaKey=false;y.events.BrowserEvent.prototype.d=null;y.events.BrowserEvent.prototype.init=
function(a,b){this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;if(a.relatedTarget){this.relatedTarget=a.relatedTarget}else if(this.type==y.events.EventType.MOUSEOVER){this.relatedTarget=a.fromElement}else if(this.type==y.events.EventType.MOUSEOUT){this.relatedTarget=a.toElement}else{this.relatedTarget=null}this.offsetX=typeof a.layerX=="number"?a.layerX:a.offsetX;this.offsetY=typeof a.layerY=="number"?a.layerY:a.offsetY;this.clientX=typeof a.clientX=="number"?a.clientX:a.pageX;
this.clientY=typeof a.clientY=="number"?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(this.type==y.events.EventType.KEYPRESS?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.d=a;this.o=null;this.f=null};y.events.BrowserEvent.prototype.stopPropagation=function(){this.f=true;if(this.d.stopPropagation){this.d.stopPropagation()}else{this.d.cancelBubble=
true}};y.events.BrowserEvent.prototype.preventDefault=function(){this.o=false;if(!this.d.preventDefault){this.d.returnValue=false;try{this.d.keyCode=-1}catch(a){}}else{this.d.preventDefault()}};y.events.BrowserEvent.prototype.dispose=function(){if(!this.R()){y.events.Event.prototype.dispose.call(this);this.d=null}};y.events.Listener=function(){};y.events.Listener.Ab=0;y.events.Listener.prototype.U=null;y.events.Listener.prototype.listener=null;y.events.Listener.prototype.proxy=null;y.events.Listener.prototype.src=null;y.events.Listener.prototype.type=null;y.events.Listener.prototype.capture=null;y.events.Listener.prototype.handler=null;y.events.Listener.prototype.key=0;y.events.Listener.prototype.removed=false;y.events.Listener.prototype.M=false;y.events.Listener.prototype.init=function(a,b,d,f,g,h){if(y.isFunction(a)){this.U=
true}else if(a&&a.z&&y.isFunction(a.z)){this.U=false}else{throw Error("Invalid listener argument");}this.listener=a;this.proxy=b;this.src=d;this.type=f;this.capture=!(!g);this.handler=h;this.M=false;this.key=++y.events.Listener.Ab;this.removed=false};y.events.Listener.prototype.z=function(a){if(this.U){return this.listener.call(this.handler||this.src,a)}return this.listener.z.call(this.listener,a)};y.array={};y.array.peek=function(a){return a[a.length-1]};y.array.indexOf=function(a,b,d){if(a.indexOf){return a.indexOf(b,d)}if(Array.indexOf){return Array.indexOf(a,b,d)}var f=d==null?0:Math.max(0,a.length+d);for(var g=f;g<a.length;g++){if(g in a&&a[g]===b)return g}return-1};y.array.lastIndexOf=function(a,b,d){var f=d==null?a.length-1:d;if(a.lastIndexOf){return a.lastIndexOf(b,f)}if(Array.lastIndexOf){return Array.lastIndexOf(a,b,f)}if(f<0){f=Math.max(0,a.length+f)}for(var g=f;g>=0;g--){if(g in
a&&a[g]===b)return g}return-1};y.array.forEach=function(a,b,d){if(a.forEach){a.forEach(b,d)}else if(Array.forEach){Array.forEach(a,b,d)}else{var f=a.length,g=y.isString(a)?a.split(""):a;for(var h=0;h<f;h++){if(h in g){b.call(d,g[h],h,a)}}}};y.array.forEachRight=function(a,b,d){var f=a.length,g=y.isString(a)?a.split(""):a;for(var h=f-1;h>=0;--h){if(h in g){b.call(d,g[h],h,a)}}};y.array.filter=function(a,b,d){if(a.filter){return a.filter(b,d)}if(Array.filter){return Array.filter(a,b,d)}var f=a.length,
g=[],h=y.isString(a)?a.split(""):a;for(var i=0;i<f;i++){if(i in h){var j=h[i];if(b.call(d,j,i,a)){g.push(j)}}}return g};y.array.map=function(a,b,d){if(a.map){return a.map(b,d)}if(Array.map){return Array.map(a,b,d)}var f=a.length,g=[],h=y.isString(a)?a.split(""):a;for(var i=0;i<f;i++){if(i in h){g.push(b.call(d,h[i],i,a))}}return g};y.array.reduce=function(a,b,d,f){if(a.reduce){if(f){return a.reduce(y.bind(b,f),d)}else{return a.reduce(b,d)}}var g=d;y.array.forEach(a,function(h,i){g=b.call(f,g,h,i,
a)});return g};y.array.reduceRight=function(a,b,d,f){if(a.reduceRight){if(f){return a.reduceRight(y.bind(b,f),d)}else{return a.reduceRight(b,d)}}var g=d;y.array.forEachRight(a,function(h,i){g=b.call(f,g,h,i,a)});return g};y.array.some=function(a,b,d){if(a.some){return a.some(b,d)}if(Array.some){return Array.some(a,b,d)}var f=a.length,g=y.isString(a)?a.split(""):a;for(var h=0;h<f;h++){if(h in g&&b.call(d,g[h],h,a)){return true}}return false};y.array.every=function(a,b,d){if(a.every){return a.every(b,
d)}if(Array.every){return Array.every(a,b,d)}var f=a.length,g=y.isString(a)?a.split(""):a;for(var h=0;h<f;h++){if(h in g&&!b.call(d,g[h],h,a)){return false}}return true};y.array.find=function(a,b,d){var f=a.length,g=y.isString(a)?a.split(""):a;for(var h=0;h<f;h++){if(h in g&&b.call(d,g[h],h,a)){return g[h]}}return null};y.array.findRight=function(a,b,d){var f=a.length,g=y.isString(a)?a.split(""):a;for(var h=f-1;h>=0;h--){if(h in g&&b.call(d,g[h],h,a)){return g[h]}}return null};y.array.contains=function(a,
b){if(a.contains){return a.contains(b)}return y.array.indexOf(a,b)>-1};y.array.isEmpty=function(a){return a.length==0};y.array.clear=function(a){if(!y.isArray(a)){for(var b=a.length-1;b>=0;b--){delete a[b]}}a.length=0};y.array.insert=function(a,b){if(!y.array.contains(a,b)){a.push(b)}};y.array.insertAt=function(a,b,d){y.array.splice(a,d,0,b)};y.array.insertBefore=function(a,b,d){var f;if(arguments.length==2||(f=y.array.indexOf(a,d))==-1){a.push(b)}else{y.array.insertAt(a,b,f)}};y.array.remove=function(a,
b){var d=y.array.indexOf(a,b),f;if(f=d!=-1){y.array.removeAt(a,d)}return f};y.array.removeAt=function(a,b){return Array.prototype.splice.call(a,b,1).length==1};y.array.clone=function(a){if(y.isArray(a)){return a.concat()}else{var b=[];for(var d=0,f=a.length;d<f;d++){b[d]=a[d]}return b}};y.array.toArray=function(a){if(y.isArray(a)){return a.concat()}return y.array.clone(a)};y.array.extend=function(a,b){for(var d=1;d<arguments.length;d++){var f=arguments[d];if(!y.isArray(f)){a.push(f)}else{a.push.apply(a,
f)}}};y.array.splice=function(a,b,d,f){return Array.prototype.splice.apply(a,y.array.slice(arguments,1))};y.array.slice=function(a,b,d){if(arguments.length<=2){return Array.prototype.slice.call(a,b)}else{return Array.prototype.slice.call(a,b,d)}};y.array.removeDuplicates=function(a,b){var d=b||a,f={},g=0,h=0;while(h<a.length){var i=a[h++],j=y.isObject(i)?y.getHashCode(i):i;if(!(j in f)){f[j]=true;d[g++]=i}}d.length=g};y.array.binarySearch=function(a,b,d){var f=0,g=a.length-1,h=d||y.array.defaultCompare;
while(f<=g){var i=f+g>>1,j=h(b,a[i]);if(j>0){f=i+1}else if(j<0){g=i-1}else{return i}}return-(f+1)};y.array.sort=function(a,b){Array.prototype.sort.call(a,b||y.array.defaultCompare)};y.array.compare=function(a,b,d){if(!y.isArrayLike(a)||!y.isArrayLike(b)||a.length!=b.length){return false}var f=a.length,g=d||y.array.defaultCompareEquality;for(var h=0;h<f;h++){if(!g.call(null,a[h],b[h])){return false}}return true};y.array.defaultCompare=function(a,b){return a>b?1:(a<b?-1:0)};y.array.defaultCompareEquality=
function(a,b){return a===b};y.array.binaryInsert=function(a,b,d){var f=y.array.binarySearch(a,b,d);if(f<0){y.array.insertAt(a,b,-(f+1));return true}return false};y.array.binaryRemove=function(a,b,d){var f=y.array.binarySearch(a,b,d);return f>=0?y.array.removeAt(a,f):false};y.object={};y.object.forEach=function(a,b,d){for(var f in a){b.call(d,a[f],f,a)}};y.object.filter=function(a,b,d){var f={};for(var g in a){if(b.call(d,a[g],g,a)){f[g]=a[g]}}return f};y.object.map=function(a,b,d){var f={};for(var g in a){f[g]=b.call(d,a[g],g,a)}return f};y.object.some=function(a,b,d){for(var f in a){if(b.call(d,a[f],f,a)){return true}}return false};y.object.every=function(a,b,d){for(var f in a){if(!b.call(d,a[f],f,a)){return false}}return true};y.object.getCount=function(a){var b=
0;for(var d in a){b++}return b};y.object.contains=function(a,b){return y.object.containsValue(a,b)};y.object.getValues=function(a){var b=[];for(var d in a){b.push(a[d])}return b};y.object.getKeys=function(a){var b=[];for(var d in a){b.push(d)}return b};y.object.containsKey=function(a,b){return b in a};y.object.containsValue=function(a,b){for(var d in a){if(a[d]==b){return true}}return false};y.object.isEmpty=function(a){for(var b in a){return false}return true};y.object.clear=function(a){var b=y.object.getKeys(a);
for(var d=b.length-1;d>=0;d--){y.object.remove(a,b[d])}};y.object.remove=function(a,b){var d;if(d=b in a){delete a[b]}return d};y.object.add=function(a,b,d){if(b in a){throw Error('The object already contains the key "'+b+'"');}y.object.set(a,b,d)};y.object.get=function(a,b,d){if(b in a){return a[b]}return d};y.object.set=function(a,b,d){a[b]=d};y.object.clone=function(a){var b={};for(var d in a){b[d]=a[d]}return b};y.object.transpose=function(a){var b={},d=y.object.getKeys(a);for(var f=0,g=d.length;f<
g;f++){var h=d[f];b[a[h]]=h}return b};y.object.ya=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];y.object.extend=function(a,b){var d,f;for(var g=1;g<arguments.length;g++){f=arguments[g];for(d in f){a[d]=f[d]}for(var h=0;h<y.object.ya.length;h++){d=y.object.ya[h];if(Object.prototype.hasOwnProperty.call(f,d)){a[d]=f[d]}}}};y.structs={};y.structs.SimplePool=function(a,b){y.Disposable.call(this);this.eb=b;this.m=[];this.Ga(a)};y.inherits(y.structs.SimplePool,y.Disposable);y.structs.SimplePool.prototype.N=null;y.structs.SimplePool.prototype.O=null;y.structs.SimplePool.prototype.r=function(a){this.N=a};y.structs.SimplePool.prototype.pa=function(a){this.O=a};y.structs.SimplePool.prototype.e=function(){if(this.m.length){return this.m.pop()}return this.$()};y.structs.SimplePool.prototype.n=function(a){if(this.m.length<this.eb){this.m.push(a)}else{this.ba(a)}};
y.structs.SimplePool.prototype.Ga=function(a){if(a>this.eb){throw Error("[goog.structs.SimplePool] Initial cannot be greater than max");}for(var b=0;b<a;b++){this.m.push(this.$())}};y.structs.SimplePool.prototype.$=function(){if(this.N){return this.N()}else{return{}}};y.structs.SimplePool.prototype.ba=function(a){if(this.O){this.O(a)}else{if(y.isFunction(a.dispose)){a.dispose()}else{for(var b in a){delete a[b]}}}};y.structs.SimplePool.prototype.dispose=function(){if(!this.R()){y.structs.SimplePool.pb.dispose.call(this);
var a=this.m;while(a.length){this.ba(a.pop())}this.m=null}};y.events.b={};y.events.a={};y.events.g={};y.events.OBJECT_POOL_INITIAL_COUNT=0;y.events.OBJECT_POOL_MAX_COUNT=600;y.events.q=new y.structs.SimplePool(y.events.OBJECT_POOL_INITIAL_COUNT,y.events.OBJECT_POOL_MAX_COUNT);y.events.q.r(function(){return{k:0}});y.events.q.pa(function(a){a.k=0});y.events.ARRAY_POOL_INITIAL_COUNT=0;y.events.ARRAY_POOL_MAX_COUNT=600;y.events.j=new y.structs.SimplePool(y.events.ARRAY_POOL_INITIAL_COUNT,y.events.ARRAY_POOL_MAX_COUNT);y.events.j.r(function(){return[]});y.events.j.pa(function(a){a.length=
0;delete a.B;delete a.la});y.events.HANDLE_EVENT_PROXY_POOL_INITIAL_COUNT=0;y.events.HANDLE_EVENT_PROXY_POOL_MAX_COUNT=600;y.events.Wa=new y.structs.SimplePool(y.events.HANDLE_EVENT_PROXY_POOL_INITIAL_COUNT,y.events.HANDLE_EVENT_PROXY_POOL_MAX_COUNT);y.events.Wa.r(function(){var a=function(b){return y.events.Nb.call(a.src,a.key,b)};return a});y.events.LISTENER_POOL_INITIAL_COUNT=0;y.events.LISTENER_POOL_MAX_COUNT=600;y.events.Db=function(){return new y.events.Listener};y.events.ha=new y.structs.SimplePool(y.events.LISTENER_POOL_INITIAL_COUNT,
y.events.LISTENER_POOL_MAX_COUNT);y.events.ha.r(y.events.Db);y.events.EVENT_POOL_INITIAL_COUNT=0;y.events.EVENT_POOL_MAX_COUNT=600;y.events.Bb=function(){return new y.events.BrowserEvent};y.events.Cb=function(){var a=null;if(y.userAgent.IE){a=new y.structs.SimplePool(y.events.EVENT_POOL_INITIAL_COUNT,y.events.EVENT_POOL_MAX_COUNT);a.r(y.events.Bb)}return a};y.events.Ka=y.events.Cb();y.events.cc="on";y.events.ma={};y.events.uc="_";y.events.listen=function(a,b,d,f,g){if(y.isArray(b)){for(var h=0;h<
b.length;h++){y.events.listen(a,b[h],d,f,g)}return null}var i=!(!f),j=y.events.a;if(!(b in j)){j[b]=y.events.q.e()}j=j[b];if(!(i in j)){j[i]=y.events.q.e();j.k++}j=j[i];var m=y.getHashCode(a),k,l;if(!j[m]){k=(j[m]=y.events.j.e());j.k++}else{k=j[m];for(var h=0;h<k.length;h++){l=k[h];if(l.listener==d&&l.handler==g){if(l.removed){break}return k[h].key}}}var n=y.events.Wa.e();n.src=a;l=y.events.ha.e();l.init(d,n,a,b,i,g);var o=l.key;n.key=o;k.push(l);y.events.b[o]=l;if(!y.events.g[m]){y.events.g[m]=y.events.j.e()}y.events.g[m].push(l);
if(a.addEventListener){if(a==y.global||!a.aa){a.addEventListener(b,n,i)}}else{a.attachEvent(y.events.Qa(b),n)}return o};y.events.listenOnce=function(a,b,d,f,g){if(y.isArray(b)){for(var h=0;h<b.length;h++){y.events.listenOnce(a,b[h],d,f,g)}return null}var i=y.events.listen(a,b,d,f,g),j=y.events.b[i];j.M=true;return i};y.events.unlisten=function(a,b,d,f,g){if(y.isArray(b)){for(var h=0;h<b.length;h++){y.events.unlisten(a,b[h],d,f,g)}return null}var i=!(!f),j=y.events.ea(a,b,i);if(!j){return false}for(var h=
0;h<j.length;h++){if(j[h].listener==d&&j[h].capture==i&&j[h].handler==g){return y.events.unlistenByKey(j[h].key)}}return false};y.events.unlistenByKey=function(a){if(!y.events.b[a]){return false}var b=y.events.b[a];if(b.removed){return false}var d=b.src,f=b.type,g=b.proxy,h=b.capture;if(d.removeEventListener){if(d==y.global||!d.aa){d.removeEventListener(f,g,h)}}else if(d.detachEvent){d.detachEvent(y.events.Qa(f),g)}var i=y.getHashCode(d),j=y.events.a[f][h][i];if(y.events.g[i]){var m=y.events.g[i];
y.array.remove(m,b);if(m.length==0){delete y.events.g[i]}}b.removed=true;j.la=true;y.events.Da(f,h,i,j);delete y.events.b[a];return true};y.events.Da=function(a,b,d,f){if(!f.B){if(f.la){for(var g=0,h=0;g<f.length;g++){if(f[g].removed){y.events.ha.n(f[g]);continue}if(g!=h){f[h]=f[g]}h++}f.length=h;f.la=false;if(h==0){y.events.j.n(f);delete y.events.a[a][b][d];y.events.a[a][b].k--;if(y.events.a[a][b].k==0){y.events.q.n(y.events.a[a][b]);delete y.events.a[a][b];y.events.a[a].k--}if(y.events.a[a].k==
0){y.events.q.n(y.events.a[a]);delete y.events.a[a]}}}}};y.events.removeAll=function(a,b,d){var f=0,g=a==null,h=b==null,i=d==null;d=!(!d);if(!g){var j=y.getHashCode(a);if(y.events.g[j]){var m=y.events.g[j];for(var k=m.length-1;k>=0;k--){var l=m[k];if((h||b==l.type)&&(i||d==l.capture)){y.events.unlistenByKey(l.key);f++}}}}else{y.object.forEach(y.events.g,function(n){for(var o=n.length-1;o>=0;o--){var q=n[o];if((h||b==q.type)&&(i||d==q.capture)){y.events.unlistenByKey(q.key);f++}}})}return f};y.events.getListeners=
function(a,b,d){return y.events.ea(a,b,d)||[]};y.events.ea=function(a,b,d){var f=y.events.a;if(b in f){f=f[b];if(d in f){f=f[d];var g=y.getHashCode(a);if(f[g]){return f[g]}}}return null};y.events.getListener=function(a,b,d,f,g){var h=!(!f),i=y.events.ea(a,b,h);if(i){for(var j=0;j<i.length;j++){if(i[j].listener==d&&i[j].capture==h&&i[j].handler==g){return i[j]}}}return null};y.events.hasListener=function(a,b,d){var f=y.events.a;if(b in f){f=f[b];if(d in f){f=f[d];var g=y.getHashCode(a);if(f[g]){return true}}}return false};
y.events.expose=function(a){var b=[];for(var d in a){if(a[d]&&a[d].id){b.push(d+" = "+a[d]+" ("+a[d].id+")")}else{b.push(d+" = "+a[d])}}return b.join("\n")};y.events.EventType={CLICK:"click",DBLCLICK:"dblclick",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEMOVE:"mousemove",KEYPRESS:"keypress",KEYDOWN:"keydown",KEYUP:"keyup",BLUR:"blur",FOCUS:"focus",DEACTIVATE:"deactivate",FOCUSIN:y.userAgent.IE?"focusin":"DOMFocusIn",FOCUSOUT:y.userAgent.IE?"focusout":"DOMFocusOut",
CHANGE:"change",SELECT:"select",SUBMIT:"submit",LOAD:"load",UNLOAD:"unload",HELP:"help",RESIZE:"resize",SCROLL:"scroll",READYSTATECHANGE:"readystatechange",CONTEXTMENU:"contextmenu"};y.events.Qa=function(a){if(a in y.events.ma){return y.events.ma[a]}return y.events.ma[a]=y.events.cc+a};y.events.fireListeners=function(a,b,d,f){var g=1,h=y.events.a;if(b in h){h=h[b];if(d in h){h=h[d];var i=y.getHashCode(a);if(h[i]){var j=h[i];if(!j.B){j.B=1}else{j.B++}try{var m=j.length;for(var k=0;k<m;k++){var l=j[k];
if(l&&!l.removed){g&=y.events.fireListener(l,f)!==false}}}finally{j.B--;y.events.Da(b,d,i,j)}}}}return Boolean(g)};y.events.fireListener=function(a,b){var d=a.z(b);if(a.M){y.events.unlistenByKey(a.key)}return d};y.events.getTotalListenerCount=function(){return y.object.getCount(y.events.b)};y.events.dispatchEvent=function(a,b){if(y.isString(b)){b=new y.events.Event(b,a)}else if(!(b instanceof y.events.Event)){var d=b;b=new y.events.Event(b.type,a);y.object.extend(b,d)}else{b.target=b.target||a}var f=
1,g,h=b.type,i=y.events.a;if(!(h in i)){return true}i=i[h];var j=true in i,m=false in i;if(j){g=[];for(var k=a;k;k=k.fa()){g.push(k)}for(var l=g.length-1;!b.f&&l>=0;l--){b.currentTarget=g[l];f&=y.events.fireListeners(g[l],b.type,true,b)&&b.o!=false}}if(m){if(j){for(var l=0;!b.f&&l<g.length;l++){b.currentTarget=g[l];f&=y.events.fireListeners(g[l],b.type,false,b)&&b.o!=false}}else{for(var n=a;!b.f&&n;n=n.fa()){b.currentTarget=n;f&=y.events.fireListeners(n,b.type,false,b)&&b.o!=false}}}return Boolean(f)};
y.events.Nb=function(a,b){if(!y.events.b[a]){return true}var d=y.events.b[a],f=d.type,g=y.events.a;if(!(f in g)){return true}g=g[f];var h;if(y.userAgent.IE){var i=b||y.getObjectByName("window.event"),j=true in g;if(j){if(y.events.Tb(i)){return true}y.events.Zb(i)}var m=y.getHashCode(d.src),k=y.events.Ka.e();k.init(i,this);h=true;try{if(j){var l=y.events.j.e();for(var n=k.currentTarget;n;n=n.parentNode){l.push(n)}for(var o=l.length-1;!k.f&&o>=0;o--){k.currentTarget=l[o];h&=y.events.fireListeners(l[o],
f,true,k)}for(var o=0;!k.f&&o<l.length;o++){k.currentTarget=l[o];h&=y.events.fireListeners(l[o],f,false,k)}}else{h=y.events.fireListener(d,k)}}finally{if(l){l.length=0;y.events.j.n(l)}k.dispose();y.events.Ka.n(k)}return h}var q=new y.events.BrowserEvent(b,this);try{h=y.events.fireListener(d,q)}finally{q.dispose()}return h};y.events.Zb=function(a){var b=false;if(a.keyCode==0){try{a.keyCode=-1;return}catch(d){b=true}}if(b||a.returnValue==undefined){a.returnValue=true}};y.events.Tb=function(a){return a.keyCode<
0||a.returnValue!=undefined};y.events.EventTarget=function(){};y.inherits(y.events.EventTarget,y.Disposable);y.events.EventTarget.prototype.aa=true;y.events.EventTarget.prototype.na=null;y.events.EventTarget.prototype.fa=function(){return this.na};y.events.EventTarget.prototype.addEventListener=function(a,b,d,f){y.events.listen(this,a,b,d,f)};y.events.EventTarget.prototype.removeEventListener=function(a,b,d,f){y.events.unlisten(this,a,b,d,f)};y.events.EventTarget.prototype.dispatchEvent=function(a){return y.events.dispatchEvent(this,
a)};y.events.EventTarget.prototype.dispose=function(){if(!this.R()){y.Disposable.prototype.dispose.call(this);y.events.removeAll(this);this.na=null}};p.common={};p.common.ActionLink=function(a,b,d,f,g){this.vc=a;this.l=b;this.Vb=d;this.jc=f;this.vb=g;this.reset();u(b,"click",this.Sa.bind(this))};p.common.ActionLink.prototype.reset=function(){this.l.innerHTML=this.Vb;p.style.setStyles(this.l,x)};p.common.ActionLink.prototype.Sa=function(){this.vb();this.l.innerHTML=this.jc;p.style.setStyles(this.l,{color:"",cursor:"",textDecoration:""})};p.Box=function(a,b,d,f){var g=a>d,h=b>f;this.F=g?d:a;this.C=g?a:d;this.G=h?f:b;this.D=h?b:f};p.Box.prototype.w=function(){return this.C-this.F};p.Box.prototype.u=function(){return this.D-this.G};p.Box.prototype.moveTo=function(a,b){this.C=a+this.w();this.D=b+this.u();this.F=a;this.G=b};p.Box.prototype.scale=function(a){this.map(function(b){return a*b})};p.Box.prototype.ceil=function(){this.map(Math.ceil)};p.Box.prototype.map=function(a){this.C=a(this.C);this.D=a(this.D);this.F=a(this.F);this.G=a(this.G)};
p.Box.prototype.clone=function(){return new p.Box(this.F,this.G,this.C,this.D)};p.common.Dialog=function(){var a=p.util.getBody();this.h=p.dom.createElement("div");p.dom.appendChild(a,this.h);p.style.setStyles(this.h,{position:s});this.sa=p.dom.createElement("div");p.dom.appendChild(this.h,this.sa);p.style.setStyles(this.sa,{backgroundColor:"#000",filter:"alpha(opacity=30)",opacity:"0.3",position:s,left:3,top:3});this.c=p.dom.createElement("table");this.c.cellSpacing=0;this.c.cellPadding=0;p.style.setStyles(this.c,{position:s,left:0,top:0});p.dom.appendChild(this.h,this.c);var b=
this.c.insertRow(0).insertCell(0);this.l=p.dom.createElement("div");p.dom.appendChild(b,this.l);this.ja();this.Ha();this.tc=false;this.p=[];this.qb=[];setTimeout(this.rb.bind(this),0)};p.common.Dialog.prototype.rb=function(){p.style.setStyles(this.sa,{width:p.dom.getNodeWidth(this.c),height:p.dom.getNodeHeight(this.c)});this.qb.forEach(function(a){a()})};p.common.Dialog.prototype.lb=function(a){this.qb.push(a)};p.common.Dialog.prototype.w=function(){return p.dom.getNodeWidth(this.c)};p.common.Dialog.prototype.u=
function(){return p.dom.getNodeHeight(this.c)};p.common.Dialog.prototype.Ba=0;p.common.Dialog.prototype.Ca=0;p.common.Dialog.prototype.moveTo=function(a,b){this.pc=a;this.qc=b;p.style.setStyles(this.h,{left:Math.round(a-this.w()*this.Ba),top:Math.round(b-this.u()*this.Ca)})};p.common.Dialog.prototype.ja=function(){this.moveTo(-20000,-20000)};p.common.Dialog.prototype.Ha=function(){this.J=p.dom.createElement("div");p.dom.appendChild(this.l,this.J);p.style.setStyles(this.J,{border:"1px #2c4460 solid",
padding:8,backgroundColor:"#b4cffe"});this.s=p.dom.createElement("div");p.dom.appendChild(this.J,this.s);p.style.setStyles(this.s,{backgroundColor:"#d8e8fd",fontWeight:"bold",padding:3});this.kc=p.dom.createElement("div");p.dom.appendChild(this.s,this.kc);this.Fa=p.dom.createElement("div");p.dom.appendChild(this.J,this.Fa);p.style.setStyles(this.Fa,{backgroundColor:"#FFF",padding:"3 8 3 8"})};p.common.Dialog.prototype.cleanup=function(){if(this.h.parentNode){this.ja();p.style.setStyles(this.c,{display:"none"});
setTimeout(p.dom.maybeRemoveNode.partial(this.h),0)}var a;while(a=this.p.pop())w(a)};p.common.DialogDraggableDecorator=function(a){this.t=a;p.dom.makeUnselectable(a.s);p.style.setStyles(a.s,{cursor:"move"});p.common.Drag.listenForDrag(a.s,this.Va.bind(this)).forEach(a.p.push.bind(a))};p.common.DialogDraggableDecorator.prototype.Va=function(a){this.ta=this.t.pc;this.ua=this.t.qc;this.Ib=[u(a,"dragmove",this.Ua.bind(this)),u(a,"dragend",this.Ta.bind(this))]};p.common.DialogDraggableDecorator.prototype.Ua=
function(a){this.t.moveTo(this.ta+a.deltaX,this.ua+a.deltaY)};p.common.DialogDraggableDecorator.prototype.Ta=function(a){this.Ib.forEach(w)};p.common.DialogCloseBoxDecorator=function(a,b){var d=b||a.cleanup.bind(a);this.t=a;var f=p.dom.appendChild(a.h,p.dom.createElement("img"));this.Rb=f;p.style.setStyles(f,{cursor:"pointer",position:s,display:"none"});f.src="/googlebooks/images/dialog_close_x.gif";a.p.push(v(f,"click",d));a.lb(this.hb.bind(this))};p.common.DialogCloseBoxDecorator.prototype.hb=function(){p.style.setStyles(this.Rb,
{display:"",left:p.dom.getNodeWidth(this.t.c)-27,top:12})};p.common.Drag=function(a,b){y.events.EventTarget.call(this);var d=p.util.getBody();this.ta=a;this.ua=b;this.ia();this.p=[u(window,"resize",this.ia.bind(this)),u(p.util.getBody(),"mousemove",this.Ya.bind(this)),u(p.util.getBody(),"mouseup",this.da.bind(this))];if(p.Detect.MOZILLA())this.p.push(u(p.util.getBody(),"mouseout",this.ab.bind(this)))};p.common.Drag.inherits(y.events.EventTarget);p.common.Drag.prototype.Ya=function(a){this.dispatchEvent({type:"dragmove",x:a.clientX,y:a.clientY,deltaX:a.clientX-
this.ta,deltaY:a.clientY-this.ua})};p.common.Drag.prototype.ab=function(a){var b=a.clientX,d=a.clientY;if(b<0||d<0||b>=this.oc||d>=this.nc){this.da()}};p.common.Drag.prototype.da=function(){this.p.forEach(w);this.dispatchEvent("dragend")};p.common.Drag.prototype.ia=function(){this.nc=p.dom.getWindowHeight();this.oc=p.dom.getWindowWidth()};p.common.Drag.listenForDrag=function(a,b,d){var f=d?v:u;return[f(a,"mousedown",p.common.Drag.Wb.partial(b)),f(a,"dragstart",p.util.Events.cancel)]};p.common.Drag.Wb=
function(a,b){p.util.Events.cancel(b);a(new p.common.Drag(b.clientX,b.clientY))};p.events={};p.util.Events={};p.util.Events.cancel=function(a){var a=a||window.event;if(a.preventDefault)a.preventDefault();if(a.stopPropagation)a.stopPropagation();a.cancelBubble=true;a.returnValue=false;return false};p.util.Events.getTargetElement=function(a){if(a.target){var b=a.target;return b}else if(a.srcElement){return a.srcElement}else if(a.currentTarget){return a.currentTarget}};p.common.FormBuilder={};p.common.FormBuilder.buildForm=function(a,b,d,f){var g=p.dom.createElement("form");p.style.setStyles(g,{display:"none"});p.style.setAttributes(g,{action:a,method:b});if(f)g.target=f;p.dom.appendChild(p.util.getBody(),g);for(var h in d){var i=d[h];if(i instanceof Array){i.forEach(p.common.FormBuilder.za.partial(g,h))}else{p.common.FormBuilder.za(g,h,i)}}return g};p.common.FormBuilder.za=function(a,b,d){var f=p.dom.createElement("input");p.style.setAttributes(f,{type:"hidden",
name:b,value:d});p.dom.appendChild(a,f)};p.common.FormBuilder.getGETUrl=function(a,b){var d=[];for(var f in b){var g=[];[f,b[f]].forEach(function(h){g.push(encodeURIComponent(p.util.evaluate(h)))});d.push(g.join("="))}return[a,a.indexOf("?")==-1?"?":"&",d.join("&")].join("")};p.util.Image={};p.util.Image.onLoad=function(a,b,d){if(p.Detect.IE()){var f=[];f[0]=u(a,"readystatechange",p.util.Image.Pb.partial(a,p.util.Image.W.partial(b),f))}else{v(a,"load",p.util.Image.W.partial(b))}if(d){v(a,"error",p.util.Image.W.partial(d))}};p.util.Image.W=function(a){setTimeout(a,0)};p.util.Image.Pb=function(a,b,d){if(a.readyState!="complete"){return true}w(d[0]);b()};;p.Messages={};function _OC_addMsg(a,b){if(!window[_OC_MSG_HOOK])window[_OC_MSG_HOOK]={};window[_OC_MSG_HOOK][a]=b}function _OC_addMsgs(a){for(var b in a){_OC_addMsg(b,a[b])}}var _OC_MSG_HOOK="_OC_MSG";p.Modules={};p.Modules.loadScript=function(a){setTimeout(p.Modules.Yb.partial(a),0)};p.Modules.Yb=function(a){var b=document.getElementsByTagName("head")[0],d=p.dom.createElement("script");d.type="text/javascript";d.src=a;p.dom.appendChild(b,d)};p.Modules.notify=function(a){p.Modules.cb[a]=true;p.Modules.fb()};p.Modules.addListener=function(a,b){if(a instanceof Array){p.Modules.b[p.Modules.Xb++]=[a,b]}else{p.Modules.addListener([a],b)}p.Modules.fb()};p.Modules.b={};p.Modules.Xb=0;p.Modules.fb=function(){for(var a in p.Modules.b){var b=
p.Modules.b[a];if(b[0].every(function(d){return!(!p.Modules.cb[d])})){delete p.Modules.b[a];b[1]()}}};p.Modules.cb={};window._OC_Modules=p.Modules;p.common.Mover=function(a){this.$b=[];this.ca=[];if(a){this.ca.push(a)}};p.common.Mover.toPixels=function(a){return Math.round(a)+"px"};p.common.Mover.linearBlendColor=function(a,b,d){var f=[];for(var g=0;g<3;g++){f.push(Math.round(a[g]+(b[g]-a[g])*d))}return"rgb("+f.join(",")+")"};p.common.Mover.prototype.move=function(a){this.Jb=a;setTimeout(this.ka.bind(this),0)};p.common.Mover.reverseCube=function(a){var b=1-a,d=b*b*b;return 1-d};p.common.Mover.linear=function(a){return a};p.common.Mover.sineIntegral=
function(a){return(-Math.cos(a*Math.PI)+1)/2};p.common.Mover.prototype.ka=function(){this.nb=this.nb||(new Date).getTime();var a=(new Date).getTime(),b=Math.min(1,(a-this.nb)/this.Jb),d=p.util.getArrayIterator(this.$b);while(d.hasNext()){d.next().update(b)}if(b>=1){for(var f=0;f<this.ca.length;f++){this.ca[f]()}}else{setTimeout(this.ka.bind(this),0)}};p.common.Mover.getAnimationDuration=function(a){if(a<=100){return 250}else if(a>=500){return 500}else{return(a-100)/400*250+250}};p.common.Mover.wa=
function(a,b,d,f,g){this.ac=a;this.yb=b;this.hc=d;this.Gb=f-d;if(g){this.Oa=g.format;if(g.zip){this.va=g.zip}}};p.common.Mover.wa.prototype.update=function(a){a=this.va(a);var b=a*this.Gb+this.hc;this.ac[this.yb]=this.Oa?this.Oa(b):b};p.common.Mover.wa.prototype.va=p.common.Mover.reverseCube;p.Flags={};p.Flags.update=function(a){for(var b in a){p.Flags[b]=a[b]}};p.util.Url={};p.util.Url.getUrlForWidth=function(a,b){var d=p.util.Url.stripWidthParam(a),f;if(d.indexOf("?")<0){f="?"}else{f="&"}return d+f+"w="+b};p.util.Url.stripWidthParam=function(a){return a.replace(/&?(w|h)=[0-9]+/,"")};p.util.Url.parseUrlParameter=function(a,b){var d=new RegExp("[?&]"+a+"=(\\w+)"),f=d.exec(b);if(f)return f[1]};p.util.Url.replaceUrlParameters=function(a,b){for(var d in b){a=p.util.Url.replaceUrlParameter(d,b[d],a)}return a};p.util.Url.replaceUrlParameter=function(a,b,d){var f=
d.replace(/#.*/g,""),g=p.util.Url.removeUrlParameter(a,f),h=g.indexOf("?")<0?"?":"&";return g+h+a+"="+encodeURIComponent(b)};p.util.Url.removeUrlParameter=function(a,b){var d=new RegExp("(&"+a+"=[^&#]+)","g");b=b.replace(d,"");var f=new RegExp("(\\?"+a+"=[^&#]+[&#])","g");return b.replace(f,"?")};p.XmlHttp={};p.XmlHttp.get=function(a,b,d){var f=z();f.onreadystatechange=p.XmlHttp.kb.partial(f,b,d);f.open("GET",a,true);f.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");f.send(null);return f};p.XmlHttp.post=function(a,b,d,f){var g=z();g.onreadystatechange=p.XmlHttp.kb.partial(g,d,f);g.open("POST",a,true);g.send(b)};p.XmlHttp.getJSONObject=function(a,b,d){return p.XmlHttp.get(a,p.XmlHttp.Pa.partial(b,d),d)};p.XmlHttp.getJSONObjectViaPost=function(a,b,d,f){return p.XmlHttp.post(a,
b,p.XmlHttp.Pa.partial(d,f),f)};p.XmlHttp.kb=function(a,b,d){if(a.readyState==4){var f;try{f=a.status}catch(g){}if(f==200){b(a.responseText)}else if(d){d(f)}a.onreadystatechange=p.util.emptyFunction}};p.XmlHttp.Pa=function(a,b,d){try{var f=eval("("+d+")")}catch(g){if(b){b(g)}}a(f)};p.XmlHttp.findPostParams=function(a){var b={};p.dom.walkDOM(a,function(d){if(d.name){if(p.dom.isNodeType(d,"select")){b[d.name]=d.options[d.selectedIndex].value}else{b[d.name]=d.value}}});return b};p.XmlHttp.postEncode=
function(a){return encodeURIComponent(a).replace(/%20/g,"+")};p.XmlHttp.encodePostParameters=function(a){var b=[];for(var d in a){b.push([p.XmlHttp.postEncode(d),"=",p.XmlHttp.postEncode(a[d])].join(""))}return b.join("&")};var _XH_ACTIVE_X_IDENTS=["MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","MICROSOFT.XMLHTTP.1.0","MICROSOFT.XMLHTTP.1","MICROSOFT.XMLHTTP"],_xh_ieProgId=undefined;function _XH_XmlHttpInit(){if(typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!=
"undefined"){for(var a=0;a<_XH_ACTIVE_X_IDENTS.length;a++){var b=_XH_ACTIVE_X_IDENTS[a];try{new ActiveXObject(b);_xh_ieProgId=b;break}catch(d){}}if(undefined===_xh_ieProgId){throw"Could not create ActiveXObject. ActiveX might be disabled, or msxml might not be installed";}}}_XH_XmlHttpInit();function z(){if(_xh_ieProgId!==undefined){return new ActiveXObject(_xh_ieProgId)}else{return new XMLHttpRequest}};p.sbs={};p.sbs.AnnotationEditor={};p.sbs.AnnotationEditor.autoCompleteLabels=[];p.sbs.AnnotationEditor.setUrls=function(a,b,d){p.sbs.AnnotationEditor.Ia=a;p.sbs.AnnotationEditor.Fb=b;p.sbs.AnnotationEditor.wb=d};p.sbs.AnnotationEditor.getContainerDiv=function(a,b){return p.dom.walkDOM(p.dom.getParentWithClass(a,"sbsentry"),function(d){if(p.dom.isClass(d,b))return true},true)};p.sbs.AnnotationEditor.edit=function(a,b){var d=p.sbs.AnnotationEditor.getContainerDiv(a,b);d.className="sbsedit "+b;var f;
if(f=p.dom.walkDOM(d,function(g){if(p.dom.isNodeType(g,"input")&&g.type=="text"||p.dom.isNodeType(g,"textarea")){return true}},true)){f.focus()}};p.sbs.AnnotationEditor.save=function(a,b){p.sbs.AnnotationEditor.V(a,b,p.sbs.AnnotationEditor.Ia,true)};p.sbs.AnnotationEditor.silentSave=function(a,b){p.sbs.AnnotationEditor.V(a,b,p.sbs.AnnotationEditor.Ia,false)};p.sbs.AnnotationEditor.V=function(a,b,d,f){var g=p.dom.getParentWithClass(a,"sbsentry"),h=p.sbs.AnnotationEditor.getContainerDiv(a,b);p.sbs.AnnotationEditor.Hb(h);
p.XmlHttp.post(d,p.XmlHttp.encodePostParameters(p.XmlHttp.findPostParams(h)),p.sbs.AnnotationEditor.T.bind(g,b,f),p.sbs.AnnotationEditor.S.bind(h))};p.sbs.AnnotationEditor.add=function(a,b){p.sbs.AnnotationEditor.V(a,b,p.sbs.AnnotationEditor.wb,true)};p.sbs.AnnotationEditor.remove=function(a,b){p.sbs.AnnotationEditor.V(a,b,p.sbs.AnnotationEditor.Fb,true)};p.sbs.AnnotationEditor.cancel=function(a,b){if(a.form)a.form.reset();p.sbs.AnnotationEditor.getContainerDiv(a,b).className="sbs "+b};p.sbs.AnnotationEditor.T=
function(a,b,d){if(b){try{var f=eval("("+d+")")}catch(g){return}if(f.widget){this.innerHTML=f.widget;var h=f.labels;if(h&&h.length){p.sbs.AnnotationEditor.autoCompleteLabels.splice(0,p.sbs.AnnotationEditor.autoCompleteLabels.length);h.forEach(function(m){p.sbs.AnnotationEditor.autoCompleteLabels.push(m)});var i=f.side_labels;if(i){var j=p.util.getElemById("sbs_panel_labels");if(j)j.innerHTML=i}}}}};p.sbs.AnnotationEditor.S=function(){throw{};};p.sbs.AnnotationEditor.Hb=function(a){p.dom.walkDOM(a,
function(b){if(p.dom.isNodeType(b,"input")&&b.type=="button"){b.disabled=true}},false)};var _OC_AnnotationEditor=p.sbs.AnnotationEditor;p.sbs.AutoComplete=function(a,b){p.Modules.addListener("cl",p.sbs.AutoComplete.Ob.partial(a,b));var d=p.sbs.AutoComplete.Mb()||1;p.Modules.loadScript("/books/cl"+d+".js")};p.sbs.AutoComplete.Ob=function(a,b){new _OC_ACHook(a,b.map(function(d){return document.getElementById(d)}).filter(function(d){return!(!d)}))};p.sbs.AutoComplete.Mb=function(){var a=document.getElementsByTagName("script");for(var b=0;b<a.length;++b){var d=a[b].src,f=p.sbs.AutoComplete.gc.exec(d);if(f){return f[1]}}};p.sbs.AutoComplete.gc=
/\/books\/\D+(\d+)\.js/;window._OC_AutoComplete=p.sbs.AutoComplete;p.sbs.AjaxLink=function(a,b,d,f,g,h){this.dc=d;this.H=a;this.sb=b;this.Ea=g;this.fc=h;a.onclick="";this.click(f);setTimeout(this.mb.bind(this),0)};p.sbs.AjaxLink.prototype.mb=function(){u(this.H,"click",this.click.bind(this))};p.sbs.AjaxLink.prototype.click=function(a){if(a){if(p.dom.getParentWithTagName(p.util.Events.getTargetElement(a),"a")){p.util.Events.cancel(a)}else{return}}if(!this.Ea||confirm(this.Ea)){this.bc=this.H.innerHTML;this.H.innerHTML='<span style="color:gray">'+_OC_MSG[t]+"</span>";
p.XmlHttp.getJSONObjectViaPost(this.sb,p.XmlHttp.encodePostParameters(this.dc),this.T.bind(this),this.S.bind(this))}};p.sbs.AjaxLink.prototype.T=function(a){if(this.fc){window.location.reload(true)}else{var b=a.redirect_url;if(b){window.location.href=b}else{this.H.innerHTML=a.html;this.sb=a.url}}};p.sbs.AjaxLink.prototype.S=function(){this.H.innerHTML=this.bc};var _OC_AjaxLink=p.sbs.AjaxLink;p.sbs.Bootstrap={};p.sbs.Hooks={};window._setClass=function(a,b){p.dom.setClass(p.util.getElemById(a),b)};p.sbs.Ratings=function(a,b,d){y.events.EventTarget.call(this);this.I=[];this.bb=-1;p.style.setStyles(b,{display:"none"});for(var f=0;f<b.options.length;f++){var g=p.dom.createElement("span");p.style.setAttributes(g,{title:b.options[f].text,index:f});this.ra(g,f,false);p.dom.appendChild(a,g);this.I.push(g)}p.style.setStyles(a,{width:77});this.X=b;this.qa(b.selectedIndex);this.A(this.v());this.ic=d;u(a,"click",this.Xa.bind(this));u(a,"mouseout",this.Za.bind(this));u(a,"mouseover",this.$a.bind(this))};
p.sbs.Ratings.inherits(y.events.EventTarget);p.sbs.Ratings.prototype.A=function(a){this.bb=a;for(var b=1,d;d=this.I[b];b++){this.ra(d,b,b<=a)}};p.sbs.Ratings.prototype.qa=function(a){if(a>=this.I.length||a<0)return;if(a==this.v())return;this.X.selectedIndex=a;this.A(this.v());this.dispatchEvent("change");if(this.ic){p.sbs.AnnotationEditor.silentSave(this.X,"rating")}};p.sbs.Ratings.prototype.v=function(){return this.X.selectedIndex};p.sbs.Ratings.prototype.$a=function(a){var b=p.util.Events.getTargetElement(a).index;
if(this.bb==b)return;this.A(b)};p.sbs.Ratings.prototype.Za=function(a){if(a.relatedTarget&&typeof a.relatedTarget.index!="undefined")return;this.A(this.v())};p.sbs.Ratings.prototype.Xa=function(a){if(a.relatedTarget&&typeof a.relatedTarget.index!="undefined")return;this.qa(p.util.Events.getTargetElement(a).index)};p.sbs.Ratings.prototype.ra=function(a,b,d){if(b==0)return;var f=13;if(b==1)f=20;if(b==this.I.length-1)f=18;var g=d?"0px -60px":"0px -40px";if(b==1)g=d?"0px -20px":"0px 0px";if(b==this.I.length-
1){g=d?"0px -100px":"0px -80px"}p.style.setStyles(a,{paddingLeft:f,height:19,cursor:"pointer",cssFloat:"left",backgroundImage:"url(/googlebooks/rating_star.gif)",backgroundRepeat:"no-repeat",backgroundPosition:g})};window._OC_RatingsFactory=function(a,b){var d=p.util.getElemById(a),f=p.dom.walkDOM(d,function(g){if(g.name&&p.dom.isNodeType(g,"select"))return true},true);return new p.sbs.Ratings(d,f,b)};
