(function(){var GBS_HOST = "http://books.google.com/";var GBS_LANG = "en";(function(){function g(a){throw a;}
var i=true,k=null,l=false,o,aa=aa||{},q=this,r=function(a,b,c){a=a.split(".");c=c||q;!(a[0]in c)&&c.execScript&&c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)if(!a.length&&b!==undefined)c[d]=b;else c=c[d]?c[d]:(c[d]={})},ba=function(a,b){a=a.split(".");b=b||q;for(var c;c=a.shift();)if(b[c])b=b[c];else return k;return b},ca=function(){},da=function(a){var b=typeof a;if(b=="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(b=="function"&&typeof a.call=="undefined")return"object";return b},t=function(a){return da(a)=="array"},ea=function(a){var b=
da(a);return b=="array"||b=="object"&&typeof a.length=="number"},u=function(a){return typeof a=="string"},fa=function(a){return da(a)=="function"},ga=function(a){a=da(a);return a=="object"||a=="array"||a=="function"},ja=function(a){if(a.hasOwnProperty&&a.hasOwnProperty(ha))return a[ha];a[ha]||(a[ha]=++ia);return a[ha]},ha="closure_hashCode_"+Math.floor(Math.random()*2147483648).toString(36),ia=0,ka=function(a){var b=da(a);if(b=="object"||b=="array"){if(a.A)return a.A.call(a);b=b=="array"?[]:{};for(var c in a)b[c]=
ka(a[c]);return b}return a},v=function(a,b){var c=b||q;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(c,e)}}else return function(){return a.apply(c,arguments)}},w=function(a){var b=Array.prototype.slice.call(arguments,1);return function(){var c=Array.prototype.slice.call(arguments);c.unshift.apply(c,b);return a.apply(this,c)}},la=Date.now||function(){return+new Date},
ma=function(a,b){b=b||{};for(var c in b)a=a.replace(new RegExp("\\{\\$"+c+"\\}","gi"),b[c]);return a},x=function(a,b){function c(){}c.prototype=b.prototype;a.f=b.prototype;a.prototype=new c};Function.prototype.ja=function(a){if(arguments.length>1){var b=Array.prototype.slice.call(arguments,1);b.unshift(this,a);return v.apply(k,b)}else return v(this,a)};Function.prototype.Lc=function(){var a=Array.prototype.slice.call(arguments);a.unshift(this,k);return v.apply(k,a)};
Function.prototype.Sb=function(a){x(this,a)};var y=Array.prototype,na=y.indexOf?function(a,b,c){return y.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:c<0?Math.max(0,a.length+c):c;if(u(a)){if(!u(b)||b.length!=1)return-1;return a.indexOf(b,c)}for(c=c;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},z=y.forEach?function(a,b,c){y.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=u(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},oa=y.map?function(a,b,c){return y.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=new Array(d),
f=u(a)?a.split(""):a,h=0;h<d;h++)if(h in f)e[h]=b.call(c,f[h],h,a);return e},pa=y.some?function(a,b,c){return y.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=u(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return i;return l},ra=function(a,b,c){b=qa(a,b,c);return b<0?k:u(a)?a.charAt(b):a[b]},qa=function(a,b,c){for(var d=a.length,e=u(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1},ta=function(a,b,c){sa(a,c,0,b)},ua=function(a,b){b=na(a,b);var c;if(c=
b>=0)y.splice.call(a,b,1).length==1;return c},va=function(a,b,c){b=qa(a,b,c);if(b>=0){y.splice.call(a,b,1).length==1;return i}return l},wa=function(){return y.concat.apply(y,arguments)},xa=function(a){if(t(a))return wa(a);else{for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b}},ya=function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],d;if(t(c)||(d=ea(c))&&c.hasOwnProperty("callee"))a.push.apply(a,c);else if(d)for(var e=a.length,f=c.length,h=0;h<f;h++)a[e+h]=c[h];else a.push(c)}},
sa=function(a){return y.splice.apply(a,za(arguments,1))},za=function(a,b,c){return arguments.length<=2?y.slice.call(a,b):y.slice.call(a,b,c)},Aa=function(){for(var a=[],b=0;b<arguments.length;b++){var c=arguments[b];t(c)?a.push.apply(a,Aa.apply(k,c)):a.push(c)}return a};var A=function(a,b){this.x=a!==undefined?a:0;this.y=b!==undefined?b:0};A.prototype.A=function(){return new A(this.x,this.y)};var Ba=function(a,b){return new A(a.x-b.x,a.y-b.y)};var B=function(a,b){this.width=a;this.height=b},Ca=function(a,b){if(a==b)return i;if(!a||!b)return l;return a.width==b.width&&a.height==b.height};B.prototype.A=function(){return new B(this.width,this.height)};B.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};B.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var Da=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},Ea=function(a){var b=[],c=0;for(var d in a)b[c++]=a[d];return b},Fa=function(a){var b=[],c=0;for(var d in a)b[c++]=d;return b},Ga=function(a,b){var c;if(c=b in a)delete a[b];return c},Ha=function(a,b,c){if(b in a)return a[b];return c},Ia=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ja=function(a){for(var b,c,d=1;d<arguments.length;d++){c=arguments[d];for(b in c)a[b]=c[b];for(var e=
0;e<Ia.length;e++){b=Ia[e];if(Object.prototype.hasOwnProperty.call(c,b))a[b]=c[b]}}},Ka=function(){var a=arguments.length;if(a==1&&t(arguments[0]))return Ka.apply(k,arguments[0]);for(var b={},c=0;c<a;c++)b[arguments[c]]=i;return b};var La=function(a){return a.replace(/\xa0|[ \t]+/g," ")},Ma=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Na=/^[a-zA-Z0-9\-_.!~*'()]*$/,Oa=function(a){a=String(a);if(!Na.test(a))return encodeURIComponent(a);return a},Ua=function(a,b){if(b)return a.replace(Pa,"&amp;").replace(Qa,"&lt;").replace(Ra,"&gt;").replace(Sa,"&quot;");else{if(!Ta.test(a))return a;if(a.indexOf("&")!=-1)a=a.replace(Pa,"&amp;");if(a.indexOf("<")!=-1)a=a.replace(Qa,"&lt;");if(a.indexOf(">")!=-1)a=a.replace(Ra,"&gt;");
if(a.indexOf('"')!=-1)a=a.replace(Sa,"&quot;");return a}},Pa=/&/g,Qa=/</g,Ra=/>/g,Sa=/\"/g,Ta=/[&<>\"]/,Ya=function(a){if(a.indexOf("&")!=-1)return"document"in q&&a.indexOf("<")==-1?Wa(a):Xa(a);return a},Wa=function(a){var b=q.document.createElement("a");b.innerHTML=a;b.normalize&&b.normalize();a=b.firstChild.nodeValue;b.innerHTML="";return a},Xa=function(a){return a.replace(/&([^;]+);/g,function(b,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if(c.charAt(0)==
"#"){c=Number("0"+c.substr(1));if(!isNaN(c))return String.fromCharCode(c)}return b}})},$a=function(a,b){var c=0;a=Ma(String(a)).split(".");b=Ma(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&e<d;e++){var f=a[e]||"",h=b[e]||"",j=new RegExp("(\\d*)(\\D*)","g"),m=new RegExp("(\\d*)(\\D*)","g");do{var n=j.exec(f)||["","",""],p=m.exec(h)||["","",""];if(n[0].length==0&&p[0].length==0)break;c=Za(n[1].length==0?0:parseInt(n[1],10),p[1].length==0?0:parseInt(p[1],10))||Za(n[2].length==
0,p[2].length==0)||Za(n[2],p[2])}while(c==0)}return c},Za=function(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};la();var ab,bb,cb,db,eb,fb,gb,hb=function(){return q.navigator?q.navigator.userAgent:k},ib=function(){return q.navigator};eb=db=cb=bb=ab=l;var jb;if(jb=hb()){var kb=ib();ab=jb.indexOf("Opera")==0;bb=!ab&&jb.indexOf("MSIE")!=-1;db=(cb=!ab&&jb.indexOf("WebKit")!=-1)&&jb.indexOf("Mobile")!=-1;eb=!ab&&!cb&&kb.product=="Gecko"}var lb=ab,C=bb,D=eb,F=cb,nb=db,ob=ib(),pb=ob&&ob.platform||"";fb=pb.indexOf("Mac")!=-1;gb=pb.indexOf("Win")!=-1;var qb=!!ib()&&(ib().appVersion||"").indexOf("X11")!=-1,rb="",sb;
if(lb&&q.opera){var tb=q.opera.version;rb=typeof tb=="function"?tb():tb}else{if(D)sb=/rv\:([^\);]+)(\)|;)/;else if(C)sb=/MSIE\s+([^\);]+)(\)|;)/;else if(F)sb=/WebKit\/(\S+)/;if(sb){var ub=sb.exec(hb());rb=ub?ub[1]:""}}var vb=rb,wb={},xb=function(a){return wb[a]||(wb[a]=$a(vb,a)>=0)};var yb,zb=function(a){return(a=a.className)&&typeof a.split=="function"?a.split(/\s+/):[]},Ab=function(a){var b=zb(a),c;c=za(arguments,1);for(var d=0,e=0;e<c.length;e++)if(!(na(b,c[e])>=0)){b.push(c[e]);d++}c=d==c.length;a.className=b.join(" ");return c},Bb=function(a){var b=zb(a),c;c=za(arguments,1);for(var d=0,e=0;e<b.length;e++)if(na(c,b[e])>=0){sa(b,e--,1);d++}c=d==c.length;a.className=b.join(" ");return c};var H=function(a){return a?new Cb(G(a)):yb||(yb=new Cb)},I=function(a){return u(a)?document.getElementById(a):a},Eb=function(a,b,c){c=c||document;a=a&&a!="*"?a.toUpperCase():"";if(c.querySelectorAll&&(a||b)&&(!F||Db(document)||xb("528")))b=c.querySelectorAll(a+(b?"."+b:""));else if(b&&c.getElementsByClassName){c=c.getElementsByClassName(b);if(a){for(var d={},e=0,f=0,h;h=c[f];f++)if(a==h.nodeName)d[e++]=h;d.length=e;b=d}else b=c}else{c=c.getElementsByTagName(a||"*");if(b){d={};for(f=e=0;h=c[f];f++){a=
h.className;if(typeof a.split=="function"&&na(a.split(/\s+/),b)>=0)d[e++]=h}d.length=e;b=d}else b=c}return b},Gb=function(a,b){Da(b,function(c,d){if(d=="style")a.style.cssText=c;else if(d=="class")a.className=c;else if(d=="for")a.htmlFor=c;else if(d in Fb)a.setAttribute(Fb[d],c);else a[d]=c})},Fb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",type:"type"},Hb=function(a){var b=
a.document;if(F&&!xb("500")&&!nb){if(typeof a.innerHeight=="undefined")a=window;b=a.innerHeight;var c=a.document.documentElement.scrollHeight;if(a==a.top)if(c<b)b-=15;return new B(a.innerWidth,b)}a=Db(b)&&(!lb||lb&&xb("9.50"))?b.documentElement:b.body;return new B(a.clientWidth,a.clientHeight)},Ib=function(a){return a.parentWindow||a.defaultView},J=function(){return Jb(document,arguments)},Jb=function(a,b){var c=b[0],d=b[1];if(C&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Ua(d.name),
'"');if(d.type){c.push(' type="',Ua(d.type),'"');d=ka(d);delete d.type}c.push(">");c=c.join("")}var e=a.createElement(c);if(d)if(u(d))e.className=d;else Gb(e,d);if(b.length>2){d=function(h){if(h)e.appendChild(u(h)?a.createTextNode(h):h)};for(c=2;c<b.length;c++){var f=b[c];ea(f)&&!(ga(f)&&f.nodeType>0)?z(Kb(f)?xa(f):f,d):d(f)}}return e},Db=function(a){return a.compatMode=="CSS1Compat"},Lb=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):k},Mb=function(a,b){if(a.contains&&b.nodeType==
1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a},G=function(a){return a.nodeType==9?a:a.ownerDocument||a.document},Nb=function(a,b){if("textContent"in a)a.textContent=b;else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{for(var c;c=a.firstChild;)a.removeChild(c);a.appendChild(G(a).createTextNode(b))}},
Ob={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Pb={IMG:" ",BR:"\n"},Rb=function(a){if(C&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];Qb(a,b,i);a=b.join("")}a=a.replace(/\xAD/g,"");a=a.replace(/ +/g," ");if(a!=" ")a=a.replace(/^\s*/,"");return a},Qb=function(a,b,c){if(!(a.nodeName in Ob))if(a.nodeType==3)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Pb)b.push(Pb[a.nodeName]);else for(a=a.firstChild;a;){Qb(a,b,c);a=
a.nextSibling}},Kb=function(a){if(a&&typeof a.length=="number")if(ga(a))return typeof a.item=="function"||typeof a.item=="string";else if(fa(a))return typeof a.item=="function";return l},Tb=function(a,b,c){var d=b?b.toUpperCase():k;return Sb(a,function(e){return(!d||e.nodeName==d)&&(!c||na(zb(e),c)>=0)},i)},Sb=function(a,b,c,d){if(!c)a=a.parentNode;c=d==k;for(var e=0;a&&(c||e<=d);){if(b(a))return a;a=a.parentNode;e++}return k},Cb=function(a){this.h=a||q.document||document};Cb.prototype.r=H;
var Ub=function(a){return a.h};Cb.prototype.a=function(a){return u(a)?this.h.getElementById(a):a};Cb.prototype.c=function(){return Jb(this.h,arguments)};Cb.prototype.createElement=function(a){return this.h.createElement(a)};Cb.prototype.createTextNode=function(a){return this.h.createTextNode(a)};var Vb=function(a){return Db(a.h)},Wb=function(a){a=!F&&Db(a.h)?a.h.documentElement:a.h.body;return new A(a.scrollLeft,a.scrollTop)};Cb.prototype.appendChild=function(a,b){a.appendChild(b)};
Cb.prototype.contains=Mb;var Xb=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};Xb.prototype.A=function(){return new Xb(this.top,this.right,this.bottom,this.left)};Xb.prototype.contains=function(a){return!this||!a?l:a instanceof Xb?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom};var Yb=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};Yb.prototype.A=function(){return new Yb(this.left,this.top,this.width,this.height)};Yb.prototype.Qd=function(a){var b=Math.max(this.left,a.left),c=Math.min(this.left+this.width,a.left+a.width);if(b<=c){var d=Math.max(this.top,a.top);a=Math.min(this.top+this.height,a.top+a.height);if(d<=a){this.left=b;this.top=d;this.width=c-b;this.height=a-d;return i}}return l};
Yb.prototype.contains=function(a){return a instanceof Yb?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};var $b=function(a,b,c){u(b)?Zb(a,c,b):Da(b,w(Zb,a))},Zb=function(a,b,c){a.style[ac(c)]=b},bc=function(a,b){var c=G(a);if(c.defaultView&&c.defaultView.getComputedStyle)if(a=c.defaultView.getComputedStyle(a,""))return a[b];return k},cc=function(a,b){return bc(a,b)||(a.currentStyle?a.currentStyle[b]:k)||a.style[b]},dc=function(a){return cc(a,"position")},ec=function(a,b,c){var d,e=D&&(fb||qb)&&xb("1.9");if(b instanceof A){d=b.x;b=b.y}else{d=b;b=c}a.style.left=typeof d=="number"?(e?Math.round(d):d)+"px":
d;a.style.top=typeof b=="number"?(e?Math.round(b):b)+"px":b},fc=function(a){var b=a.getBoundingClientRect();if(C){a=a.ownerDocument;b.left-=a.documentElement.clientLeft+a.body.clientLeft;b.top-=a.documentElement.clientTop+a.body.clientTop}return b},gc=function(a){if(C)return a.offsetParent;var b=G(a),c=cc(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&&a!=b;a=a.parentNode){c=cc(a,"position");d=d&&c=="static"&&a!=b.documentElement&&a!=b.body;if(!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>
a.clientHeight||c=="fixed"||c=="absolute"))return a}return k},jc=function(a){var b=new Xb(0,Infinity,Infinity,0),c=H(a),d=c.h.body,e=!F&&Db(c.h)?c.h.documentElement:c.h.body,f;for(a=a;a=gc(a);)if((!C||a.clientWidth!=0)&&(!F||a.clientHeight!=0||a!=d)&&(a.scrollWidth!=a.clientWidth||a.scrollHeight!=a.clientHeight)&&cc(a,"overflow")!="visible"){var h=hc(a),j;j=a;if(D&&!xb("1.9")){var m=parseFloat(bc(j,"borderLeftWidth"));if(ic(j)){var n=j.offsetWidth-j.clientWidth-m-parseFloat(bc(j,"borderRightWidth"));
m+=n}j=new A(m,parseFloat(bc(j,"borderTopWidth")))}else j=new A(j.clientLeft,j.clientTop);h.x+=j.x;h.y+=j.y;b.top=Math.max(b.top,h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,h.y+a.clientHeight);b.left=Math.max(b.left,h.x);f=f||a!=e}d=e.scrollLeft;e=e.scrollTop;if(F){b.left+=d;b.top+=e}else{b.left=Math.max(b.left,d);b.top=Math.max(b.top,e)}if(!f||F){b.right+=d;b.bottom+=e}c=Hb(Ib(c.h)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,e+c.height);
return b.top>=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:k},hc=function(a){var b,c=G(a),d=cc(a,"position"),e=D&&c.getBoxObjectFor&&!a.getBoundingClientRect&&d=="absolute"&&(b=c.getBoxObjectFor(a))&&(b.screenX<0||b.screenY<0),f=new A(0,0),h;b=c?c.nodeType==9?c:G(c):document;h=C&&!Vb(H(b))?b.body:b.documentElement;if(a==h)return f;if(a.getBoundingClientRect){b=fc(a);a=Wb(H(c));f.x=b.left+a.x;f.y=b.top+a.y}else if(c.getBoxObjectFor&&!e){b=c.getBoxObjectFor(a);a=c.getBoxObjectFor(h);f.x=b.screenX-
a.screenX;f.y=b.screenY-a.screenY}else{b=a;do{f.x+=b.offsetLeft;f.y+=b.offsetTop;if(b!=a){f.x+=b.clientLeft||0;f.y+=b.clientTop||0}if(F&&dc(b)=="fixed"){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(lb||F&&d=="absolute")f.y-=c.body.offsetTop;for(b=a;(b=gc(b))&&b!=c.body&&b!=h;){f.x-=b.scrollLeft;if(!lb||b.tagName!="TR")f.y-=b.scrollTop}}return f},kc=function(a){var b=new A;if(a.nodeType==1)if(a.getBoundingClientRect){var c=fc(a);b.x=c.left;b.y=c.top}else{c=
Wb(H(a));a=hc(a);b.x=a.x-c.x;b.y=a.y-c.y}else{b.x=a.clientX;b.y=a.clientY}return b},lc=function(a,b,c){if(b instanceof B){c=b.height;b=b.width}else{if(c==undefined)g(Error("missing height argument"));c=c}a.style.width=typeof b=="number"?Math.round(b)+"px":b;a.style.height=typeof c=="number"?Math.round(c)+"px":c},mc=function(a){var b=lb&&!xb("10");if(cc(a,"display")!="none")return b?new B(a.offsetWidth||a.clientWidth,a.offsetHeight||a.clientHeight):new B(a.offsetWidth,a.offsetHeight);var c=a.style,
d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";if(b){b=a.offsetWidth||a.clientWidth;a=a.offsetHeight||a.clientHeight}else{b=a.offsetWidth;a=a.offsetHeight}c.display=d;c.position=f;c.visibility=e;return new B(b,a)},nc=function(a){var b=hc(a);a=mc(a);return new Yb(b.x,b.y,a.width,a.height)},oc={},ac=function(a){return oc[a]||(oc[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))},pc=function(a,b){a=a.style;if("opacity"in
a)a.opacity=b;else if("MozOpacity"in a)a.MozOpacity=b;else if("filter"in a)a.filter=b===""?"":"alpha(opacity="+b*100+")"},K=function(a,b){a.style.display=b?"":"none"},ic=function(a){return"rtl"==cc(a,"direction")},qc=D?"MozUserSelect":F?"WebkitUserSelect":k;var rc=function(){};rc.prototype.qc=l;rc.prototype.o=function(){if(!this.qc){this.qc=i;this.d()}};rc.prototype.d=function(){};var L=function(a,b){this.Ec=b;this.qa=[];if(a>this.Ec)g(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(b=0;b<a;b++)this.qa.push(this.V?this.V():{})};x(L,rc);L.prototype.V=k;L.prototype.oc=k;L.prototype.Ca=function(){if(this.qa.length)return this.qa.pop();return this.V?this.V():{}};var tc=function(a,b){a.qa.length<a.Ec?a.qa.push(b):sc(a,b)},sc=function(a,b){if(a.oc)a.oc(b);else if(fa(b.o))b.o();else for(var c in b)delete b[c]};
L.prototype.d=function(){L.f.d.call(this);for(var a=this.qa;a.length;)sc(this,a.pop());delete this.qa};var uc=function(a,b){this.type=a;this.currentTarget=this.target=b};x(uc,rc);o=uc.prototype;o.d=function(){delete this.type;delete this.target;delete this.currentTarget};o.ga=l;o.La=i;o.stopPropagation=function(){this.ga=i};o.preventDefault=function(){this.La=l};var vc=function(a,b){a&&this.ob(a,b)};x(vc,uc);var wc=[1,4,2];o=vc.prototype;o.target=k;o.relatedTarget=k;o.offsetX=0;o.offsetY=0;o.clientX=0;o.clientY=0;o.screenX=0;o.screenY=0;o.button=0;o.keyCode=0;o.charCode=0;o.ctrlKey=l;o.altKey=l;o.shiftKey=l;o.metaKey=l;o.me=l;o.O=k;
o.ob=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;if(b=a.relatedTarget){if(D)try{b=b.nodeName&&b}catch(d){b=k}}else if(c=="mouseover")b=a.fromElement;else if(c=="mouseout")b=a.toElement;this.relatedTarget=b;this.offsetX=a.offsetX!==undefined?a.offsetX:a.layerX;this.offsetY=a.offsetY!==undefined?a.offsetY:a.layerY;this.clientX=a.clientX!==undefined?a.clientX:a.pageX;this.clientY=a.clientY!==undefined?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||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.me=fb?a.metaKey:a.ctrlKey;this.O=a;delete this.La;delete this.ga};o.stopPropagation=function(){this.ga=i;if(this.O.stopPropagation)this.O.stopPropagation();else this.O.cancelBubble=i};var xc=C&&!xb("8");
vc.prototype.preventDefault=function(){this.La=l;var a=this.O;if(a.preventDefault)a.preventDefault();else{a.returnValue=l;if(xc)try{if(a.ctrlKey||a.keyCode>=112&&a.keyCode<=123)a.keyCode=-1}catch(b){}}};vc.prototype.d=function(){vc.f.d.call(this);this.relatedTarget=this.currentTarget=this.target=this.O=k};var yc;var zc=(yc="ScriptEngine"in q&&q.ScriptEngine()=="JScript")?q.ScriptEngineMajorVersion()+"."+q.ScriptEngineMinorVersion()+"."+q.ScriptEngineBuildVersion():"0";var Ac=function(){},Bc=0;o=Ac.prototype;o.key=0;o.Ka=l;o.Hb=l;o.ob=function(a,b,c,d,e,f){if(fa(a))this.zc=i;else if(a&&a.handleEvent&&fa(a.handleEvent))this.zc=l;else g(Error("Invalid listener argument"));this.Ha=a;this.Nc=b;this.src=c;this.type=d;this.capture=!!e;this.mb=f;this.Hb=l;this.key=++Bc;this.Ka=l};o.handleEvent=function(a){if(this.zc)return this.Ha.call(this.mb||this.src,a);return this.Ha.handleEvent.call(this.Ha,a)};var Cc,Dc,Ec,Fc,Gc,Hc,Ic,Jc,Kc,Lc,Mc;
(function(){function a(){return{l:0,M:0}}function b(){return[]}function c(){var E=function(mb){return h.call(E.src,E.key,mb)};return E}function d(){return new Ac}function e(){return new vc}var f=yc&&!($a(zc,"5.7")>=0),h;Hc=function(E){h=E};if(f){Cc=function(){return j.Ca()};Dc=function(E){tc(j,E)};Ec=function(){return m.Ca()};Fc=function(E){tc(m,E)};Gc=function(){return n.Ca()};Ic=function(){tc(n,c())};Jc=function(){return p.Ca()};Kc=function(E){tc(p,E)};Lc=function(){return s.Ca()};Mc=function(E){tc(s,
E)};var j=new L(0,600);j.V=a;var m=new L(0,600);m.V=b;var n=new L(0,600);n.V=c;var p=new L(0,600);p.V=d;var s=new L(0,600);s.V=e}else{Cc=a;Dc=ca;Ec=b;Fc=ca;Gc=c;Ic=ca;Jc=d;Kc=ca;Lc=e;Mc=ca}})();var Nc={},M={},Oc={},Pc={},N=function(a,b,c,d,e){if(b)if(t(b)){for(var f=0;f<b.length;f++)N(a,b[f],c,d,e);return k}else{d=!!d;var h=M;b in h||(h[b]=Cc());h=h[b];if(!(d in h)){h[d]=Cc();h.l++}h=h[d];var j=ja(a),m;h.M++;if(h[j]){m=h[j];for(f=0;f<m.length;f++){h=m[f];if(h.Ha==c&&h.mb==e){if(h.Ka)break;return m[f].key}}}else{m=h[j]=Ec();h.l++}f=Gc();f.src=a;h=Jc();h.ob(c,f,a,b,d,e);c=h.key;f.key=c;m.push(h);Nc[c]=h;Oc[j]||(Oc[j]=Ec());Oc[j].push(h);if(a.addEventListener){if(a==q||!a.nc)a.addEventListener(b,
f,d)}else a.attachEvent(Qc(b),f);return c}else g(Error("Invalid event type"))},Rc=function(a,b,c,d,e){if(t(b)){for(var f=0;f<b.length;f++)Rc(a,b[f],c,d,e);return k}a=N(a,b,c,d,e);Nc[a].Hb=i;return a},Sc=function(a,b,c,d,e){if(t(b)){for(var f=0;f<b.length;f++)Sc(a,b[f],c,d,e);return k}d=!!d;a=Tc(a,b,d);if(!a)return l;for(f=0;f<a.length;f++)if(a[f].Ha==c&&a[f].capture==d&&a[f].mb==e)return O(a[f].key);return l},O=function(a){if(!Nc[a])return l;var b=Nc[a];if(b.Ka)return l;var c=b.src,d=b.type,e=b.Nc,
f=b.capture;if(c.removeEventListener){if(c==q||!c.nc)c.removeEventListener(d,e,f)}else c.detachEvent&&c.detachEvent(Qc(d),e);c=ja(c);e=M[d][f][c];if(Oc[c]){var h=Oc[c];ua(h,b);h.length==0&&delete Oc[c]}b.Ka=i;e.Hc=i;Uc(d,f,c,e);delete Nc[a];return i},Uc=function(a,b,c,d){if(!d.qb)if(d.Hc){for(var e=0,f=0;e<d.length;e++)if(d[e].Ka){var h=d[e].Nc;h.src=k;Ic(h);Kc(d[e])}else{if(e!=f)d[f]=d[e];f++}d.length=f;d.Hc=l;if(f==0){Fc(d);delete M[a][b][c];M[a][b].l--;if(M[a][b].l==0){Dc(M[a][b]);delete M[a][b];
M[a].l--}if(M[a].l==0){Dc(M[a]);delete M[a]}}}},Vc=function(a,b,c){var d=0,e=a==k,f=b==k,h=c==k;c=!!c;if(e)Da(Oc,function(m){for(var n=m.length-1;n>=0;n--){var p=m[n];if((f||b==p.type)&&(h||c==p.capture)){O(p.key);d++}}});else{a=ja(a);if(Oc[a]){a=Oc[a];for(e=a.length-1;e>=0;e--){var j=a[e];if((f||b==j.type)&&(h||c==j.capture)){O(j.key);d++}}}}return d},Tc=function(a,b,c){var d=M;if(b in d){d=d[b];if(c in d){d=d[c];a=ja(a);if(d[a])return d[a]}}return k},Qc=function(a){if(a in Pc)return Pc[a];return Pc[a]=
"on"+a},Xc=function(a,b,c,d,e){var f=1;b=ja(b);if(a[b]){a.M--;a=a[b];if(a.qb)a.qb++;else a.qb=1;try{for(var h=a.length,j=0;j<h;j++){var m=a[j];if(m&&!m.Ka)f&=Wc(m,e)!==l}}finally{a.qb--;Uc(c,d,b,a)}}return Boolean(f)},Wc=function(a,b){b=a.handleEvent(b);a.Hb&&O(a.key);return b};
Hc(function(a,b){if(!Nc[a])return i;a=Nc[a];var c=a.type,d=M;if(!(c in d))return i;d=d[c];var e,f;if(C){e=b||ba("window.event");b=i in d;var h=l in d;if(b){if(e.keyCode<0||e.returnValue!=undefined)return i;a:{var j=l;if(e.keyCode==0)try{e.keyCode=-1;break a}catch(m){j=i}if(j||e.returnValue==undefined)e.returnValue=i}}j=Lc();j.ob(e,this);e=i;try{if(b){for(var n=Ec(),p=j.currentTarget;p;p=p.parentNode)n.push(p);f=d[i];f.M=f.l;for(var s=n.length-1;!j.ga&&s>=0&&f.M;s--){j.currentTarget=n[s];e&=Xc(f,n[s],
c,i,j)}if(h){f=d[l];f.M=f.l;for(s=0;!j.ga&&s<n.length&&f.M;s++){j.currentTarget=n[s];e&=Xc(f,n[s],c,l,j)}}}else e=Wc(a,j)}finally{if(n){n.length=0;Fc(n)}j.o();Mc(j)}return e}f=new vc(b,this);try{e=Wc(a,f)}finally{f.o()}return e});var P=function(a){this.Pb=a};x(P,rc);var Yc=new L(0,100);P.prototype.e=function(a,b,c,d,e){if(t(b))for(var f=0;f<b.length;f++)this.e(a,b[f],c,d,e);else{a=N(a,b,c||this,d||l,e||this.Pb||this);Zc(this,a)}return this};P.prototype.Za=function(a,b,c,d,e){if(t(b))for(var f=0;f<b.length;f++)this.Za(a,b[f],c,d,e);else{a=Rc(a,b,c||this,d||l,e||this.Pb||this);Zc(this,a)}return this};var Zc=function(a,b){if(a.g)a.g[b]=i;else if(a.ea){a.g=Yc.Ca();a.g[a.ea]=i;a.ea=k;a.g[b]=i}else a.ea=b};
P.prototype.ia=function(a,b,c,d,e){if(this.ea||this.g)if(t(b))for(var f=0;f<b.length;f++)this.ia(a,b[f],c,d,e);else{a:{c=c||this;e=e||this.Pb||this;d=!!(d||l);if(a=Tc(a,b,d))for(b=0;b<a.length;b++)if(a[b].Ha==c&&a[b].capture==d&&a[b].mb==e){a=a[b];break a}a=k}if(a){a=a.key;O(a);if(this.g)Ga(this.g,a);else if(this.ea==a)this.ea=k}}return this};P.prototype.Vb=function(){if(this.g){for(var a in this.g){O(a);delete this.g[a]}tc(Yc,this.g);this.g=k}else this.ea&&O(this.ea)};
P.prototype.d=function(){P.f.d.call(this);this.Vb()};P.prototype.handleEvent=function(){g(Error("EventHandler.handleEvent not implemented"))};var Q=function(){};x(Q,rc);o=Q.prototype;o.nc=i;o.wb=k;o.Yb=function(a){this.wb=a};o.addEventListener=function(a,b,c,d){N(this,a,b,c,d)};o.removeEventListener=function(a,b,c,d){Sc(this,a,b,c,d)};
o.dispatchEvent=function(a){a=a;if(u(a))a=new uc(a,this);else if(a instanceof uc)a.target=a.target||this;else{var b=a;a=new uc(a.type,this);Ja(a,b)}b=1;var c,d=a.type,e=M;if(d in e){e=e[d];d=i in e;var f;if(d){c=[];for(f=this;f;f=f.wb)c.push(f);f=e[i];f.M=f.l;for(var h=c.length-1;!a.ga&&h>=0&&f.M;h--){a.currentTarget=c[h];b&=Xc(f,c[h],a.type,i,a)&&a.La!=l}}if(l in e){f=e[l];f.M=f.l;if(d)for(h=0;!a.ga&&h<c.length&&f.M;h++){a.currentTarget=c[h];b&=Xc(f,c[h],a.type,l,a)&&a.La!=l}else for(c=this;!a.ga&&
c&&f.M;c=c.wb){a.currentTarget=c;b&=Xc(f,c,a.type,l,a)&&a.La!=l}}a=Boolean(b)}else a=i;return a};o.d=function(){Q.f.d.call(this);Vc(this);this.wb=k};var $c=q.window,ad=function(a,b,c){if(fa(a)){if(c)a=v(a,c)}else if(a&&typeof a.handleEvent=="function")a=v(a.handleEvent,a);else g(Error("Invalid listener argument"));return b>2147483647?-1:$c.setTimeout(a,b||0)};var bd=function(){};(function(a){a.uc=function(){return a.Pd||(a.Pd=new a)}})(bd);bd.prototype.ce=0;bd.uc();var R=function(a){this.W=a||H();this.xb=cd};x(R,Q);R.prototype.Md=bd.uc();var cd=k;o=R.prototype;o.Fa=k;o.W=k;o.L=l;o.b=k;o.xb=k;o.Zd=k;o.w=k;o.N=k;o.ka=k;o.$c=l;o.B=function(){return this.Fa||(this.Fa=":"+(this.Md.ce++).toString(36))};o.Xb=function(a){if(this.w&&this.w.ka){Ga(this.w.ka,this.Fa);var b=this.w.ka;if(a in b)g(Error('The object already contains the key "'+a+'"'));b[a]=this}this.Fa=a};o.a=function(){return this.b};o.Aa=function(){return this.Ea||(this.Ea=new P(this))};
o.Yb=function(a){if(this.w&&this.w!=a)g(Error("Method not supported"));R.f.Yb.call(this,a)};o.r=function(){return this.W};o.c=function(){this.b=this.W.createElement("div")};o.z=function(a){if(this.L)g(Error("Component already rendered"));this.b||this.c();a?a.insertBefore(this.b,k):this.W.h.body.appendChild(this.b);if(!this.w||this.w.L)this.oa()};o.Mb=function(a){if(this.L)g(Error("Component already rendered"));else if(a&&this.Ib(a)){this.$c=i;if(!this.W||this.W.h!=G(a))this.W=H(a);this.Qa(a);this.oa()}else g(Error("Invalid element to decorate"))};
o.Ib=function(){return i};o.Qa=function(a){this.b=a};o.oa=function(){this.L=i;this.N&&z(this.N,function(a){!a.L&&a.a()&&a.oa()},void 0)};o.pa=function(){this.N&&z(this.N,function(a){a.L&&a.pa()},void 0);this.Ea&&this.Ea.Vb();this.L=l};o.d=function(){R.f.d.call(this);this.L&&this.pa();if(this.Ea){this.Ea.o();delete this.Ea}this.N&&z(this.N,function(a){a.o()},void 0);!this.$c&&this.b&&Lb(this.b);this.w=this.Zd=this.b=this.ka=this.N=k};o.tc=function(){return this.b};
o.removeChild=function(a,b){if(a){var c=u(a)?a:a.B();a=this.ka&&c?Ha(this.ka,c)||k:k;if(c&&a){Ga(this.ka,c);ua(this.N,a);if(b){a.pa();a.b&&Lb(a.b)}b=a;if(b==k)g(Error("Unable to set parent component"));b.w=k;R.f.Yb.call(b,k)}}if(!a)g(Error("Child is not in parent component"));return a};var dd=function(a,b){R.call(this,b);this.Wa=a||""};x(dd,R);o=dd.prototype;o.jb=k;o.c=function(){this.b=this.r().c("input",{type:"text"})};o.Qa=function(a){dd.f.Qa.call(this,a);if(!this.Wa)this.Wa=a.getAttribute("label")||""};o.oa=function(){dd.f.oa.call(this);var a=new P(this);a.e(this.a(),"focus",this.Ad);a.e(this.a(),"blur",this.vd);D&&a.e(this.a(),["keypress","keydown","keyup"],this.zd);var b=G(this.a());a.e(b?Ib(b):window,"load",this.Ld);this.j=a;ed(this);fd(this);this.a().Td=this};
o.pa=function(){dd.f.pa.call(this);gd(this);this.a().Td=k};var ed=function(a){if(!a.rd&&a.j&&a.a().form){a.j.e(a.a().form,"submit",a.Bd);a.rd=i}},gd=function(a){if(a.j){a.j.o();a.j=k}};o=dd.prototype;o.d=function(){dd.f.d.call(this);gd(this)};o.Eb="label-input-label";o.Ad=function(){this.Qb=i;Bb(this.a(),this.Eb);if(!hd(this)&&!this.Od){var a=this,b=function(){a.a().value=""};C?ad(b,10):b()}};o.vd=function(){this.jb=k;this.Qb=l;fd(this)};
o.zd=function(a){if(a.keyCode==27){if(a.type=="keydown")this.jb=this.a().value;else if(a.type=="keypress")this.a().value=this.jb;else if(a.type=="keyup")this.jb=k;a.preventDefault()}};o.Bd=function(){if(!hd(this)){this.a().value="";ad(this.ud,10,this)}};o.ud=function(){if(!hd(this))this.a().value=this.Wa};o.Ld=function(){fd(this)};var hd=function(a){return a.a().value!=""&&a.a().value!=a.Wa},fd=function(a){ed(a);if(hd(a))Bb(a.a(),a.Eb);else{!a.Od&&!a.Qb&&Ab(a.a(),a.Eb);ad(a.te,10,a)}};
dd.prototype.te=function(){if(this.a()&&!hd(this)&&!this.Qb)this.a().value=this.Wa};var id="StopIteration"in q?q.StopIteration:Error("StopIteration"),jd=function(){};jd.prototype.next=function(){g(id)};jd.prototype.ad=function(){return this};var kd=function(a){if(typeof a.ra=="function")return a.ra();if(u(a))return a.split("");if(ea(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Ea(a)},ld=function(a,b,c){if(typeof a.forEach=="function")a.forEach(b,c);else if(ea(a)||u(a))z(a,b,c);else{var d;if(typeof a.Ba=="function")d=a.Ba();else if(typeof a.ra!="function")if(ea(a)||u(a)){d=[];for(var e=a.length,f=0;f<e;f++)d.push(f);d=d}else d=Fa(a);else d=void 0;e=kd(a);f=e.length;for(var h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)}};var md=function(a){this.R={};this.g=[];var b=arguments.length;if(b>1){if(b%2)g(Error("Uneven number of arguments"));for(var c=0;c<b;c+=2)this.i(arguments[c],arguments[c+1])}else a&&this.bd(a)};o=md.prototype;o.l=0;o.Ab=0;o.ra=function(){nd(this);for(var a=[],b=0;b<this.g.length;b++)a.push(this.R[this.g[b]]);return a};o.Ba=function(){nd(this);return this.g.concat()};o.ba=function(a){return od(this.R,a)};
o.remove=function(a){if(od(this.R,a)){delete this.R[a];this.l--;this.Ab++;this.g.length>2*this.l&&nd(this);return i}return l};var nd=function(a){if(a.l!=a.g.length){for(var b=0,c=0;b<a.g.length;){var d=a.g[b];if(od(a.R,d))a.g[c++]=d;b++}a.g.length=c}if(a.l!=a.g.length){var e={};for(c=b=0;b<a.g.length;){d=a.g[b];if(!od(e,d)){a.g[c++]=d;e[d]=1}b++}a.g.length=c}};o=md.prototype;o.D=function(a,b){if(od(this.R,a))return this.R[a];return b};
o.i=function(a,b){if(!od(this.R,a)){this.l++;this.g.push(a);this.Ab++}this.R[a]=b};o.bd=function(a){var b;if(a instanceof md){b=a.Ba();a=a.ra()}else{b=Fa(a);a=Ea(a)}for(var c=0;c<b.length;c++)this.i(b[c],a[c])};o.A=function(){return new md(this)};o.ad=function(a){nd(this);var b=0,c=this.g,d=this.R,e=this.Ab,f=this,h=new jd;h.next=function(){for(;;){if(e!=f.Ab)g(Error("The map has changed since the iterator was created"));if(b>=c.length)g(id);var j=c[b++];return a?j:d[j]}};return h};
var od=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var rd=function(a){return pd(a||arguments.callee.caller,[])},pd=function(a,b){var c=[];if(na(b,a)>=0)c.push("[...circular reference...]");else if(a&&b.length<50){c.push(sd(a)+"(");for(var d=a.arguments,e=0;e<d.length;e++){e>0&&c.push(", ");var f;f=d[e];switch(typeof f){case "object":f=f?"object":"null";break;case "string":f=f;break;case "number":f=String(f);break;case "boolean":f=f?"true":"false";break;case "function":f=(f=sd(f))?f:"[fn]";break;case "undefined":default:f=typeof f;break}if(f.length>
40)f=f.substr(0,40)+"...";c.push(f)}b.push(a);c.push(")\n");try{c.push(pd(a.caller,b))}catch(h){c.push("[exception trying to get caller]\n")}}else a?c.push("[...long stack...]"):c.push("[end]");return c.join("")},sd=function(a){a=String(a);if(!td[a]){var b=/function ([^\(]+)/.exec(a);td[a]=b?b[1]:"[Anonymous]"}return td[a]},td={};var ud=/^(?:([^:\/?#]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/?#:@]*)(?::([0-9]+))?)?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,vd=/#|$/,wd=function(a,b){var c=a.search(vd),d;a:{d=0;for(var e=b.length;(d=a.indexOf(b,d))>=0&&d<c;){var f=a.charCodeAt(d-1);if(f==38||f==63){f=a.charCodeAt(d+e);if(!f||f==61||f==38||f==35){d=d;break a}}d+=e+1}d=-1}if(d<0)return k;else{e=a.indexOf("&",d);if(e<0||e>c)e=c;d+=b.length+1;return decodeURIComponent(a.substr(d,e-d).replace(/\+/g," "))}};var S=function(a,b){var c;if(a instanceof S){this.Ma(b==k?a.Q:b);xd(this,a.ha);yd(this,a.eb);zd(this,a.Ua);Ad(this,a.Ja);Bd(this,a.Ia);Cd(this,a.F.A());Dd(this,a.Va)}else if(a&&(c=String(a).match(ud))){this.Ma(!!b);xd(this,c[1]||"",i);yd(this,c[2]||"",i);zd(this,c[3]||"",i);Ad(this,c[4]);Bd(this,c[5]||"",i);Cd(this,c[6]||"",i);Dd(this,c[7]||"",i)}else{this.Ma(!!b);this.F=new Ed(k,this,this.Q)}};o=S.prototype;o.ha="";o.eb="";o.Ua="";o.Ja=k;o.Ia="";o.Va="";o.Ac=l;o.Q=l;
o.toString=function(){if(this.I)return this.I;var a=[];this.ha&&a.push(Fd(this.ha,Gd),":");if(this.Ua){a.push("//");this.eb&&a.push(Fd(this.eb,Gd),"@");var b;b=this.Ua;b=u(b)?encodeURIComponent(b):k;a.push(b);this.Ja!=k&&a.push(":",String(this.Ja))}this.Ia&&a.push(Fd(this.Ia,Hd));(b=String(this.F))&&a.push("?",b);this.Va&&a.push("#",Fd(this.Va,Id));return this.I=a.join("")};
o.A=function(){var a=this.ha,b=this.eb,c=this.Ua,d=this.Ja,e=this.Ia,f=this.F.A(),h=this.Va,j=new S(k,this.Q);a&&xd(j,a);b&&yd(j,b);c&&zd(j,c);d&&Ad(j,d);e&&Bd(j,e);f&&Cd(j,f);h&&Dd(j,h);return j};
var xd=function(a,b,c){Jd(a);delete a.I;a.ha=c?b?decodeURIComponent(b):"":b;if(a.ha)a.ha=a.ha.replace(/:$/,"");return a},yd=function(a,b,c){Jd(a);delete a.I;a.eb=c?b?decodeURIComponent(b):"":b;return a},zd=function(a,b,c){Jd(a);delete a.I;a.Ua=c?b?decodeURIComponent(b):"":b;return a},Ad=function(a,b){Jd(a);delete a.I;if(b){b=Number(b);if(isNaN(b)||b<0)g(Error("Bad port number "+b));a.Ja=b}else a.Ja=k;return a},Bd=function(a,b,c){Jd(a);delete a.I;a.Ia=c?b?decodeURIComponent(b):"":b;return a},Cd=function(a,
b,c){Jd(a);delete a.I;if(b instanceof Ed){a.F=b;a.F.bc=a;a.F.Ma(a.Q)}else{c||(b=Fd(b,Kd));a.F=new Ed(b,a,a.Q)}return a},T=function(a,b,c){Jd(a);delete a.I;a.F.i(b,c);return a},Ld=function(a,b){return a.F.D(b)},Dd=function(a,b,c){Jd(a);delete a.I;a.Va=c?b?decodeURIComponent(b):"":b;return a},Md=function(a,b){Jd(a);a.F.remove(b);return a};S.prototype.Rc=function(a){this.Ac=a};var Jd=function(a){if(a.Ac)g(Error("Tried to modify a read-only Uri"))};S.prototype.Ma=function(a){this.Q=a;this.F&&this.F.Ma(a)};
var Nd=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/,Fd=function(a,b){var c=k;if(u(a)){c=a;Nd.test(c)||(c=encodeURI(a));if(c.search(b)>=0)c=c.replace(b,Od)}return c},Od=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Gd=/[#\/\?@]/g,Hd=/[\#\?]/g,Kd=/[\#\?@]/g,Id=/#/g,Ed=function(a,b,c){this.X=a||k;this.bc=b||k;this.Q=!!c},Qd=function(a){if(!a.m){a.m=new md;if(a.X)for(var b=a.X.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=k,f=k;if(d>=0){e=b[c].substring(0,d);f=b[c].substring(d+
1)}else e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=Pd(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}};o=Ed.prototype;o.m=k;o.l=k;o.add=function(a,b){Qd(this);Rd(this);a=Pd(this,a);if(this.ba(a)){var c=this.m.D(a);t(c)?c.push(b):this.m.i(a,[c,b])}else this.m.i(a,b);this.l++;return this};o.remove=function(a){Qd(this);a=Pd(this,a);if(this.m.ba(a)){Rd(this);var b=this.m.D(a);if(t(b))this.l-=b.length;else this.l--;return this.m.remove(a)}return l};
o.ba=function(a){Qd(this);a=Pd(this,a);return this.m.ba(a)};o.Ba=function(){Qd(this);for(var a=this.m.ra(),b=this.m.Ba(),c=[],d=0;d<b.length;d++){var e=a[d];if(t(e))for(var f=0;f<e.length;f++)c.push(b[d]);else c.push(b[d])}return c};o.ra=function(a){Qd(this);if(a){a=Pd(this,a);if(this.ba(a)){var b=this.m.D(a);if(t(b))return b;else{a=[];a.push(b)}}else a=[]}else{b=this.m.ra();a=[];for(var c=0;c<b.length;c++){var d=b[c];t(d)?ya(a,d):a.push(d)}}return a};
o.i=function(a,b){Qd(this);Rd(this);a=Pd(this,a);if(this.ba(a)){var c=this.m.D(a);if(t(c))this.l-=c.length;else this.l--}this.m.i(a,b);this.l++;return this};o.D=function(a,b){Qd(this);a=Pd(this,a);if(this.ba(a)){a=this.m.D(a);return t(a)?a[0]:a}else return b};
o.toString=function(){if(this.X)return this.X;if(!this.m)return"";for(var a=[],b=0,c=this.m.Ba(),d=0;d<c.length;d++){var e=c[d],f=Oa(e);e=this.m.D(e);if(t(e))for(var h=0;h<e.length;h++){b>0&&a.push("&");a.push(f,"=",Oa(e[h]));b++}else{b>0&&a.push("&");a.push(f,"=",Oa(e));b++}}return this.X=a.join("")};var Rd=function(a){delete a.Lb;delete a.X;a.bc&&delete a.bc.I};Ed.prototype.A=function(){var a=new Ed;if(this.Lb)a.Lb=this.Lb;if(this.X)a.X=this.X;if(this.m)a.m=this.m.A();return a};
var Pd=function(a,b){b=String(b);if(a.Q)b=b.toLowerCase();return b};Ed.prototype.Ma=function(a){if(a&&!this.Q){Qd(this);Rd(this);ld(this.m,function(b,c){var d=c.toLowerCase();if(c!=d){this.remove(c);this.add(d,b)}},this)}this.Q=a};var Sd=function(a,b,c){var d=I(a+"d1"),e=I(a+"c1"),f=I(a+"c0"),h=k,j="block";if(!c){h=I(a+"e0");j="inline"}if(b){d.style.display=j;e.style.display=j;f.style.display="none";if(h!=k)h.style.display="none"}else{d.style.display="none";e.style.display="none";f.style.display=j;if(h!=k)h.style.display="inline"}};r("_OC_setListSectionVisible",function(a,b){Sd(a,b,i)},void 0);var Td=function(a,b){Sd(a,b,l)};r("_OC_setTextSectionVisible",Td,void 0);
r("_OC_toggleTextSection",function(a){I(a+"d1").style.display=="none"?Td(a,i):Td(a,l)},void 0);r("_OC_showHover",function(a,b){a=I(b+"_c");b=I(b+"_h");document.getElementsByTagName("body")[0].appendChild(b);var c=nc(a);a=c.top+c.height+-23;c=Math.max(5,c.left+c.width/2-80-5);$b(b,{position:"absolute",display:""});ec(b,c,a)},void 0);r("_OC_hideHover",function(a,b){var c=I(b+"_c");b=I(b+"_h");if(a=a.relatedTarget)if(Mb(c,a)||Mb(b,a))return;b.style.display="none"},void 0);var Vd=function(a,b,c,d,e){this.gf=typeof e=="number"?e:Ud++;this.nf=d||la();this.Ga=a;this.Se=b;this.Pe=c};Vd.prototype.pd=k;Vd.prototype.od=k;var Ud=0;Vd.prototype.Qc=function(a){this.Ga=a};var Wd=function(a){this.be=a;this.w=k;this.N={};this.vc=[]};Wd.prototype.Ga=k;var Xd=function(a,b){this.name=a;this.value=b};Xd.prototype.toString=function(){return this.name};var Yd=new Xd("SEVERE",1E3),Zd=new Xd("WARNING",900),$d=new Xd("CONFIG",700),ae=new Xd("FINE",500),be=new Xd("FINEST",300);Wd.prototype.Qc=function(a){this.Ga=a};var ce=function(a,b){if(a.Ga)return b.value>=a.Ga.value;if(a.w)return ce(a.w,b);return l};Wd.prototype.log=function(a,b,c){ce(this,a)&&de(this,this.sd(a,b,c))};
Wd.prototype.sd=function(a,b,c){var d=new Vd(a,String(b),this.be);if(c){d.pd=c;var e;var f=arguments.callee.caller;try{var h,j=ba("window.location.href");h=typeof c=="string"?{message:c,name:"Unknown error",lineNumber:"Not available",fileName:j,stack:"Not available"}:!c.lineNumber||!c.fileName||!c.stack?{message:c.message,name:c.name,lineNumber:c.lineNumber||c.Oe||"Not available",fileName:c.fileName||c.filename||c.sourceURL||j,stack:c.stack||"Not available"}:c;e="Message: "+Ua(h.message)+'\nUrl: <a href="view-source:'+
h.fileName+'" target="_new">'+h.fileName+"</a>\nLine: "+h.lineNumber+"\n\nBrowser stack:\n"+Ua(h.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+Ua(rd(f)+"-> ")}catch(m){e="Exception trying to expose exception! You win, we lose. "+m}d.od=e}return d};
var U=function(a,b,c){a.log(ae,b,c)},de=function(a,b){if(ce(a,b.Ga))for(a=a;a;){for(var c=a,d=0;d<c.vc.length;d++)c.vc[d](b);a=a.w}},ee={},fe=k,he=function(a){if(!fe){fe=new Wd("");ee[""]=fe;fe.Qc($d)}return a in ee?ee[a]:ge(a)},ge=function(a){var b=new Wd(a),c=a.split("."),d=c[c.length-1];c.length-=1;c=he(c.join("."));c.N[d]=b;b.w=c;return ee[a]=b};/\uffff/.test("\uffff");var ie=function(){if(D){this.ma={};this.Db={};this.zb=[]}};ie.prototype.s=he("goog.net.xhrMonitor");ie.prototype.na=D;
var je=function(a,b){if(a.na){var c=u(b)?b:ga(b)?ja(b):"";a.s.log(be,"Pushing context: "+b+" ("+c+")",void 0);a.zb.push(c)}},le=function(a){if(a.na){var b=a.zb.pop();a.s.log(be,"Popping context: "+b,void 0);ke(a,b)}},ne=function(a,b){if(a.na){b=ja(b);U(a.s,"Opening XHR : "+b);for(var c=0;c<a.zb.length;c++){var d=a.zb[c];me(a,a.ma,d,b);me(a,a.Db,b,d)}}},ke=function(a,b){var c=a.Db[b],d=a.ma[b];if(c&&d){a.s.log(be,"Updating dependent contexts",void 0);z(c,function(e){z(d,function(f){me(this,this.ma,
e,f);me(this,this.Db,f,e)},this)},a)}},me=function(a,b,c,d){b[c]||(b[c]=[]);na(b[c],d)>=0||b[c].push(d)},V=new ie;var pe=function(){return oe()},oe=k,qe=k,re=k;oe=function(){var a=se();return a?new ActiveXObject(a):new XMLHttpRequest};qe=function(){var a={};if(se()){a[0]=i;a[1]=i}return a};re=k;var te=k,se=function(){if(!te&&typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){for(var a=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],b=0;b<a.length;b++){var c=a[b];try{new ActiveXObject(c);return te=c}catch(d){}}g(Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed"))}return te};var W=function(){this.headers=new md};x(W,Q);W.prototype.s=he("goog.net.XhrIo");var ue=[],xe=function(a,b,c,d,e,f){var h=new W;ue.push(h);b&&N(h,"complete",b);N(h,"ready",w(ve,h));f&&we(h,f);h.send(a,c,d,e)},ve=function(a){a.o();ua(ue,a)};o=W.prototype;o.aa=l;o.k=k;o.Cb=k;o.Cc="";o.Bc="";o.Xa=0;o.Ya="";o.Nb=l;o.nb=l;o.Rb=l;o.sa=l;o.db=0;o.ua=k;var we=function(a,b){a.db=Math.max(0,b)};
W.prototype.send=function(a,b,c,d){if(this.aa)g(Error("[goog.net.XhrIo] Object is active with another request"));b=b||"GET";this.Cc=a;this.Ya="";this.Xa=0;this.Bc=b;this.Nb=l;this.aa=i;this.k=new pe;this.Cb=re||(re=qe());ne(V,this.k);this.k.onreadystatechange=v(this.Jc,this);try{U(this.s,ye(this,"Opening Xhr"));this.Rb=i;this.k.open(b,a,i);this.Rb=l}catch(e){U(this.s,ye(this,"Error opening Xhr: "+e.message));ze(this,5,e);return}a=c||"";var f=this.headers.A();d&&ld(d,function(j,m){f.i(m,j)});b=="POST"&&
!f.ba("Content-Type")&&f.i("Content-Type","application/x-www-form-urlencoded;charset=utf-8");ld(f,function(j,m){this.k.setRequestHeader(m,j)},this);try{if(this.ua){$c.clearTimeout(this.ua);this.ua=k}if(this.db>0){U(this.s,ye(this,"Will abort after "+this.db+"ms if incomplete"));this.ua=$c.setTimeout(v(this.ze,this),this.db)}U(this.s,ye(this,"Sending request"));this.nb=i;this.k.send(a);this.nb=l}catch(h){U(this.s,ye(this,"Send error: "+h.message));ze(this,5,h)}};
W.prototype.dispatchEvent=function(a){if(this.k){je(V,this.k);try{return W.f.dispatchEvent.call(this,a)}finally{le(V)}}else return W.f.dispatchEvent.call(this,a)};W.prototype.ze=function(){if(typeof aa!="undefined")if(this.k){this.Ya="Timed out after "+this.db+"ms, aborting";this.Xa=8;U(this.s,ye(this,this.Ya));this.dispatchEvent("timeout");this.abort(8)}};
var ze=function(a,b,c){a.aa=l;if(a.k){a.sa=i;a.k.abort();a.sa=l}a.Ya=c;a.Xa=b;Ae(a);Be(a)},Ae=function(a){if(!a.Nb){a.Nb=i;a.dispatchEvent("complete");a.dispatchEvent("error")}};W.prototype.abort=function(a){if(this.k){U(this.s,ye(this,"Aborting"));this.aa=l;this.sa=i;this.k.abort();this.sa=l;this.Xa=a||7;this.dispatchEvent("complete");this.dispatchEvent("abort");Be(this)}};W.prototype.d=function(){if(this.k){if(this.aa){this.aa=l;this.sa=i;this.k.abort();this.sa=l}Be(this,i)}W.f.d.call(this)};
W.prototype.Jc=function(){!this.Rb&&!this.nb&&!this.sa?this.ge():Ce(this)};W.prototype.ge=function(){Ce(this)};
var Ce=function(a){if(a.aa)if(typeof aa!="undefined")if(a.Cb[1]&&De(a)==4&&Ee(a)==2)U(a.s,ye(a,"Local request error detected and ignored"));else if(a.nb&&De(a)==4)$c.setTimeout(v(a.Jc,a),0);else{a.dispatchEvent("readystatechange");if(De(a)==4){U(a.s,ye(a,"Request complete"));a.aa=l;if(Fe(a)){a.dispatchEvent("complete");a.dispatchEvent("success")}else{a.Xa=6;a.Ya=Ge(a)+" ["+Ee(a)+"]";Ae(a)}Be(a)}}},Be=function(a,b){if(a.k){var c=a.k,d=a.Cb[0]?ca:k;a.k=k;a.Cb=k;if(a.ua){$c.clearTimeout(a.ua);a.ua=k}if(!b){je(V,
c);a.dispatchEvent("ready");le(V)}if(V.na){b=ja(c);U(V.s,"Closing XHR : "+b);delete V.Db[b];for(var e in V.ma){ua(V.ma[e],b);V.ma[e].length==0&&delete V.ma[e]}}try{c.onreadystatechange=d}catch(f){a.s.log(Yd,"Problem encountered resetting onreadystatechange: "+f.message,void 0)}}},Fe=function(a){switch(Ee(a)){case 0:case 200:case 204:case 304:return i;default:return l}},De=function(a){return a.k?a.k.readyState:0},Ee=function(a){try{return De(a)>2?a.k.status:-1}catch(b){a.s.log(Zd,"Can not get status: "+
b.message,void 0);return-1}},Ge=function(a){try{return De(a)>2?a.k.statusText:""}catch(b){U(a.s,"Can not get status: "+b.message);return""}},He=function(a,b){if(a.k){a=a.k.responseText;if(b&&a.indexOf(b)==0)a=a.substring(b.length);var c;a:{b=String(a);if(/^\s*$/.test(b)?l:/^[\],:{}\s\u2028\u2029]*$/.test(b.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x10-\x1f\x80-\x9f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,
"")))try{c=eval("("+b+")");break a}catch(d){}g(Error("Invalid JSON string: "+b))}return c}},ye=function(a,b){return b+" ["+a.Bc+" "+a.Cc+" "+Ee(a)+"]"};var Ie=function(a,b,c){c=c.target;if(Fe(c))a(He(c));else b&&b()};var Je=function(a){GBS_LANG&&T(a,"hl",GBS_LANG);var b=new S(window.location);(b=Ld(b,"output"))&&T(a,"output",b)};var Ke=function(){R.call(this)};x(Ke,R);Ke.prototype.c=function(){Ke.f.c.call(this);this.a().className="sub_cat_section"};var Oe=function(a,b,c){c?Le(a,b,c):Ne(a,b)},Le=function(a,b,c){var d=document.createElement("p");a.b.appendChild(d);a=new S(c);a=J("a",{"class":"subject_list_link",href:a.toString()});Nb(a,b);d.appendChild(a)},Ne=function(a,b){var c=document.createElement("p");a.b.appendChild(c);a=J("span",{"class":"active_subject"});a.innerHTML="&rsaquo;&nbsp;"+b;c.appendChild(a)};var Pe=function(){R.call(this)};x(Pe,Ke);Pe.prototype.c=function(){Pe.f.c.call(this);var a=new S("/books?jscmd=SubjectList");Je(a);var b=v(this.Id,this);xe(a,w(Ie,b,void 0))};Pe.prototype.Id=function(a){Le(this,_OC_MSG[18973],"/books");z(a.subjects,this.Hd,this)};
Pe.prototype.Hd=function(a){var b=new S(window.location),c=Ld(b,"q");if(c&&c.indexOf(a.query)>=0&&a.query.indexOf(c)>=0)Ne(this,a.title);else{var d=new S(c?b:"/books");b=Ld(b,"rview");!c&&b&&T(d,"rview",b);T(d,"q",a.query);T(d,"source","gbs_lp_bisac");Md(d,"start");Md(d,"id");Le(this,a.title,d)}};var Qe=function(){};Qe.prototype.K=function(){return this.C};var Re=function(a){this.ff=a.Seller;this.cc=a.Url;this.qf=a.TrackingUrl;this.cf=a.Price;this.Me=a.IsInStock;this.Ne=a.IsPublisher};var Se=function(a){this.C=a.Title;this.le=a.Pid;this.Ze=a.PgNum};Se.prototype.K=function(){return this.C};Se.prototype.B=function(){return this.le};var Te=function(a){this.C=a.title||"";this.hf=a.subtitle||"";this.Ce=a.attribution||"";this.Ke=!!a.fullview;this.pf=a.table_of_contents_page_id||"";this.Ve=a.num_toc_pages||"";this.Re=a.max_resolution_image_width;this.$e=!!a.paired_thumbnails;this.mf=a.thumbnail_token||"";this.gd=a.containing_bookshelves||[];this.ef=a.quality_info||"";this.Z=a.volume_id||"";this.Ye=a.other_issues_query||"";this.He=new B(a.page_width,a.page_height);a=a.additional_info;var b={};if(a)b=a.JsonBookInfo;if(b.BuyLinks)this.Fe=
oa(b.BuyLinks,function(c){return new Re(c)},this);this.Be=b.AboutUrl;this.bf=b.PreviewUrl;if(b.allowed_syndication_flags)this.Ge=b.allowed_syndication_flags.allow_disabling_chrome;if(b.online_access){this.We=b.online_access.price;this.Xe=b.online_access.url}if(b.TocLine)this.of=oa(b.TocLine,function(c){return new Se(c)});if(b.SubscribeLink)this.kf=new Re(b.SubscribeLink)};Te.Sb(Qe);Te.prototype.Da=function(){return this.Z};var Ue=/<[^>]*>|&[^;]+;/g,Ve=new RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),We=new RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]"),Xe=/^http:\/\/.*/,Ye=/\s+/,Ze=/\d/,$e=function(a,b){var c=0,d=0,e=l;a=(b?a.replace(Ue," "):a).split(Ye);for(b=0;b<a.length;b++){var f=a[b];if(We.test(f)){c++;d++}else if(Xe.test(f))e=
i;else if(Ve.test(f))d++;else if(Ze.test(f))e=i}return d==0?e?1:0:c/d>0.4?-1:1};var af=function(a,b){if(a instanceof Array)for(var c=0;c<a.length;c++)af(a[c],b);else for(c in b){var d=b[c],e=bf[c];a.style[c]=e?e(d):d}};Ka("border","padding","margin");for(var df=function(a){return a.toString().replace(cf,"$1px")},cf=/\b(-?\d+(?!%))\b/g,bf={},ef=["top","left","right","bottom","width","height","fontSize"],ff=0;ff<ef.length;ff++)bf[ef[ff]]=df;var gf=["margin","padding","border"],hf=["Top","Left","Right","Bottom"];
for(ff=0;ff<gf.length;ff++){bf[gf[ff]]=df;for(var jf=0;jf<hf.length;jf++)bf[gf[ff]+hf[jf]]=df};var kf=function(a){this.b=a;N(this.b,"keyup",v(this.Cd,this));N(this.b,"paste",v(this.Gd,this))};kf.Sb(Q);kf.prototype.Cd=function(){lf(this.b)};kf.prototype.Gd=function(){setTimeout(w(lf,this.b),0)};var lf=function(a){if(a.value?$e(a.value,void 0)==-1:document.body.dir=="rtl"){$b(a,"textAlign","right");Gb(a,{dir:"rtl"})}else{$b(a,"textAlign","left");Gb(a,{dir:"ltr"})}};r("_OC_autoDir",function(a){if(a=I(a)){lf(a);new kf(a)}},void 0);var mf={};r("_OC_addMsgs",function(a){for(var b in a)mf[b]=a[b]},void 0);r("_OC_addMsg",function(a,b){mf[a]=b},void 0);r("_OC_MSG",mf,void 0);var of=function(a,b,c,d,e,f,h,j){var m,n=c.offsetParent;if(n){var p=n.tagName=="HTML"||n.tagName=="BODY";if(!p||dc(n)!="static"){m=hc(n);p||(m=Ba(m,new A(n.scrollLeft,n.scrollTop)))}}n=nc(a);(p=jc(a))&&n.Qd(new Yb(p.left,p.top,p.right-p.left,p.bottom-p.top));p=H(a);var s=H(c);if(p.h!=s.h){var E=p.h.body;s=Ib(s.h);var mb=new A(0,0),Va=G(E)?Ib(G(E)):window,qd=E;do{var Me=Va==s?hc(qd):kc(qd);mb.x+=Me.x;mb.y+=Me.y}while(Va&&Va!=s&&(qd=Va.frameElement)&&(Va=Va.parent));s=mb;s=Ba(s,hc(E));if(C&&!Vb(p))s=
Ba(s,Wb(p));n.left+=s.x;n.top+=s.y}a=(b&4&&ic(a)?b^2:b)&-5;b=new A(a&2?n.left+n.width:n.left,a&1?n.top+n.height:n.top);if(m)b=Ba(b,m);if(e){b.x+=(a&2?-1:1)*e.x;b.y+=(a&1?-1:1)*e.y}var Z;if(h)if((Z=jc(c))&&m){Z.top=Math.max(0,Z.top-m.y);Z.right-=m.x;Z.bottom-=m.y;Z.left=Math.max(0,Z.left-m.x)}a:{e=b;Z=Z;e=e.A();m=0;d=(d&4&&ic(c)?d^2:d)&-5;a=mc(c);j=j?j.A():a;if(f||d!=0){if(d&2)e.x-=j.width+(f?f.right:0);else if(f)e.x+=f.left;if(d&1)e.y-=j.height+(f?f.bottom:0);else if(f)e.y+=f.top}if(h){m=Z?nf(e,j,
Z,h):256;if(m&496){c=m;break a}}ec(c,e);Ca(a,j)||lc(c,j);c=m}return c},nf=function(a,b,c,d){var e=0;if(a.x<c.left&&d&1){a.x=c.left;e|=1}if(a.x<c.left&&a.x+b.width>c.right&&d&16){b.width-=a.x+b.width-c.right;e|=4}if(a.x+b.width>c.right&&d&1){a.x=Math.max(c.right-b.width,c.left);e|=1}if(d&2)e|=(a.x<c.left?16:0)|(a.x+b.width>c.right?32:0);if(a.y<c.top&&d&4){a.y=c.top;e|=2}if(a.y>=c.top&&a.y+b.height>c.bottom&&d&32){b.height-=a.y+b.height-c.bottom;e|=8}if(a.y+b.height>c.bottom&&d&4){a.y=Math.max(c.bottom-
b.height,c.top);e|=2}if(d&8)e|=(a.y<c.top?64:0)|(a.y+b.height>c.bottom?128:0);return e};var X=function(){this.j=new P(this)};x(X,Q);X.prototype.e=function(){this.j.e.apply(this.j,arguments)};X.prototype.Za=function(){this.j.Za.apply(this.j,arguments)};X.prototype.ia=function(){this.j.ia.apply(this.j,arguments)};X.prototype.d=function(){this.dispatchEvent("dispose");X.f.d.call(this);this.j.o()};var pf=function(){this.fb=[]};pf.prototype.B=function(){return this.Fa};pf.prototype.Xb=function(a){this.Fa=a};pf.prototype.K=function(){return this.C};pf.prototype.ta=function(a){this.C=a};var qf=function(a,b){a.fb.push(b)},rf=function(a,b){va(a.fb,function(c){return c.Da()==b.Da()})};pf.prototype.P=function(a){return ra(this.fb,function(b){return b&&b.Da()==a})};var sf=function(a,b){a.$=b};pf.prototype.Rc=function(a){this.pe=a};var tf=function(){this.v={}};tf.prototype.K=function(){return this.v.title};tf.prototype.ta=function(a){this.v.title=a};tf.prototype.Da=function(){return this.v.gc};var uf=function(a){this.v={};this.ta(a.title);this.v.De=a.authors;this.v.af=a.preview_url;this.v.Le=a.info_url;this.v.df=a.pub_date;this.v.Te=a.num_pages;this.v.sf=a.viewability;this.v.jf=a.subject;this.v.lf=a.thumbnail_url;this.v.gc=wd(a.info_url,"id")};x(uf,tf);var vf=function(a){this.fb=[];this.Xb(a.id);this.ta(a.title);this.Ta=a.description;this.Ue=a.num_volumes;this.$=a.access||"0";this.Rc(a.readonly);this.Mc=a.predefined;if(a.volumes)this.fb=oa(a.volumes,function(b){return new uf(b)})};x(vf,pf);var wf=function(){X.call(this);this.bb=[];this.gb=[]};x(wf,X);var yf=function(a,b,c){if(!xf(a,b.B())){a=b.Mc?a.bb:a.gb;c?ta(a,b):a.push(b)}},Af=function(a,b,c){zf(a,a.lc,b,v(a.td,a,c))},Bf=function(a,b){var c=new S(a.rf);T(c,"as_coll",b.B());zf(a,c,b,v(a.Kd,a))},zf=function(a,b,c,d){a=c.$==1;b=new S(b);T(b,"cl_title",c.K());T(b,"cl_mode",a?"public":"private");xe(b,d,"POST","cl_des="+c.Ta)};
wf.prototype.Kd=function(a){a=a.target;if(Fe(a)){a=new vf(He(a));var b=xf(this,a.B());b.ta(a.K());b.Ta=a.Ta;b.$=a.$;this.dispatchEvent({type:"update",Sc:a})}};wf.prototype.td=function(a,b){b=b.target;if(Fe(b)){b=new vf(He(b));yf(this,b,a);this.dispatchEvent({type:"add",Sc:b})}};var Cf=function(a,b){a.lc=new S(b);T(a.lc,"jscmd","ClCreate")},xf=function(a,b){return ra(Aa(a.bb,a.gb),function(c){return c.B()==b})};
wf.prototype.P=function(a){var b=ra(Aa(this.bb,this.gb),function(c){return c.P(a)!=k});return b!=k?b.P(a):k};var Df=function(a){this.b=a;a=C?"propertychange":F&&a.tagName=="TEXTAREA"&&!xb("531")?"keypress":"input";this.Wd=N(this.b,a,this)};x(Df,Q);Df.prototype.handleEvent=function(a){a=a.O;if(a.type=="propertychange"&&a.propertyName=="value"||a.type=="input"||a.type=="keypress"){if(C||lb){var b=a.srcElement;if(b!=G(b).activeElement)return}a=new vc(a);a.type="input";try{this.dispatchEvent(a)}finally{a.o()}}};Df.prototype.d=function(){Df.f.d.call(this);O(this.Wd);delete this.b};var Ff=function(a,b,c,d){this.da=a;this.nd=b;this.sb=c;this.kd=d||0;a.maxLength=c;this.Tb=new Df(a);N(this.Tb,"input",this.ee,l,this);Ef(this)};x(Ff,Q);Ff.prototype.ee=function(){Ef(this)};var Ef=function(a){var b=a.da.value.length;if(b>a.sb){var c=a.da.scrollTop,d=a.da.scrollLeft;a.da.value=a.da.value.substring(0,a.sb);b=a.sb;a.da.scrollTop=c;a.da.scrollLeft=d}Nb(a.nd,a.kd==1?b:a.sb-b)};Ff.prototype.d=function(){Ff.f.d.call(this);delete this.da;this.Tb.o();this.Tb=k};var Gf=function(a,b,c){D&&a.setAttribute("aria-"+b,c)};var Hf=function(a){return a.c("iframe",{frameborder:0,style:"border: 0; vertical-align: bottom",src:'javascript:""'})};var If=function(a){this.b=a;a=C?"focusout":"blur";this.Ud=N(this.b,C?"focusin":"focus",this,!C);this.Vd=N(this.b,a,this,!C)};x(If,Q);If.prototype.handleEvent=function(a){var b=new vc(a.O);b.type=a.type=="focusin"||a.type=="focus"?"focusin":"focusout";try{this.dispatchEvent(b)}finally{b.o()}};If.prototype.d=function(){If.f.d.call(this);O(this.Ud);O(this.Vd);delete this.b};var Jf=function(a,b,c){this.target=a;this.handle=b||a;this.Ub=c||new Yb(NaN,NaN,NaN,NaN);this.h=G(a);this.j=new P(this);N(this.handle,"mousedown",this.Uc,l,this)};x(Jf,Q);var Kf=C||D&&xb("1.9.3");o=Jf.prototype;o.screenX=0;o.screenY=0;o.Vc=0;o.Wc=0;o.Ra=0;o.Sa=0;o.na=i;o.ca=l;o.yc=0;o.$d=0;o.Nd=l;o.Aa=function(){return this.j};var Lf=function(a){a.preventDefault()};
Jf.prototype.d=function(){Jf.f.d.call(this);Sc(this.handle,"mousedown",this.Uc,l,this);this.j.o();delete this.target;delete this.handle;delete this.j};
Jf.prototype.Uc=function(a){if(this.na&&!this.ca&&(a.type!="mousedown"||(C?a.type=="click"?i:!!(a.O.button&wc[0]):a.O.button==0))){if(this.yc==0){Mf(this,a);if(this.ca)a.preventDefault();else return}else a.preventDefault();var b=this.h,c=b.documentElement,d=!Kf;this.j.e(b,"mousemove",this.ae,d);this.j.e(b,"mouseup",this.ib,d);if(Kf){c.setCapture(l);this.j.e(c,"losecapture",this.ib)}else this.j.e(b?Ib(b):window,"blur",this.ib);C&&this.Nd&&this.j.e(b,"dragstart",Lf);this.ve&&this.j.e(this.ve,"scroll",
this.he,d);this.screenX=this.Vc=a.screenX;this.screenY=this.Wc=a.screenY;this.Ra=this.target.offsetLeft;this.Sa=this.target.offsetTop;this.ab=Wb(H(this.h));this.$d=la()}};var Mf=function(a,b){if(a.dispatchEvent(new Nf("start",a,b.clientX,b.clientY,b))!==l)a.ca=i};Jf.prototype.ib=function(a,b){this.j.Vb();Kf&&this.h.releaseCapture();if(this.ca){this.ca=l;this.dispatchEvent(new Nf("end",this,a.clientX,a.clientY,a,Of(this,this.Ra),Pf(this,this.Sa),b))}};
Jf.prototype.ae=function(a){if(this.na){var b=a.screenX-this.screenX,c=a.screenY-this.screenY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.ca){var d=this.Vc-this.screenX,e=this.Wc-this.screenY;if(d*d+e*e>this.yc){Mf(this,a);if(!this.ca){this.ib(a);return}}}c=Qf(this,b,c);b=c.x;c=c.y;if(this.ca)if(this.dispatchEvent(new Nf("beforedrag",this,a.clientX,a.clientY,a,b,c))!==l){Rf(this,a,b,c,l);a.preventDefault()}}};
var Qf=function(a,b,c){var d=Wb(H(a.h));b+=d.x-a.ab.x;c+=d.y-a.ab.y;a.ab=d;a.Ra+=b;a.Sa+=c;return new A(Of(a,a.Ra),Pf(a,a.Sa))};Jf.prototype.he=function(a){var b=Qf(this,0,0);a.clientX=this.ab.x-this.screenX;a.clientY=this.ab.x-this.screenY;Rf(this,a,b.x,b.y,i)};
var Rf=function(a,b,c,d){a.target.style.left=c+"px";a.target.style.top=d+"px";a.dispatchEvent(new Nf("drag",a,b.clientX,b.clientY,b,c,d))},Of=function(a,b){var c=a.Ub;a=!isNaN(c.left)?c.left:k;c=!isNaN(c.width)?c.width:0;return Math.min(a!=k?a+c:Infinity,Math.max(a!=k?a:-Infinity,b))},Pf=function(a,b){var c=a.Ub;a=!isNaN(c.top)?c.top:k;c=!isNaN(c.height)?c.height:0;return Math.min(a!=k?a+c:Infinity,Math.max(a!=k?a:-Infinity,b))},Nf=function(a,b,c,d,e,f,h,j){uc.call(this,a);this.clientX=c;this.clientY=
d;this.Ee=e;this.left=f!==undefined?f:b.Ra;this.top=h!==undefined?h:b.Sa;this.Je=b;this.Ie=!!j};x(Nf,uc);var Y=function(a,b,c){R.call(this,c);this.q=a||"modal-dialog";this.dc=!!b;this.u=Sf};x(Y,R);o=Y.prototype;o.kb=k;o.dc=l;o.tb=i;o.rc=i;o.Fb=0.3;o.C="";o.Pa="";o.u=k;o.za=k;o.fc=l;o.pc=l;o.n=k;o.p=k;o.H=k;o.S=k;o.$b=k;o.va=k;o.J=k;o.t=k;o.ta=function(a){this.C=a;this.S&&Nb(this.S,a)};o.K=function(){return this.C};o.tc=function(){this.J||this.z();return this.J};
o.c=function(){Tf(this);var a=this.r();this.b=a.c("div",{className:this.q,tabIndex:0},this.H=a.c("div",{className:this.q+"-title",id:this.B()},this.S=a.c("span",this.q+"-title-text",this.C),this.va=a.c("span",this.q+"-title-close")),this.J=a.c("div",this.q+"-content"),this.t=a.c("div",this.q+"-buttons"),this.Xc=a.c("span",{tabIndex:0}));this.$b=this.H.id;a=this.a();if(D){a.setAttribute("role","dialog");a.ue="dialog"}Gf(this.a(),"labelledby",this.$b||"");if(this.Pa)this.J.innerHTML=this.Pa;K(this.a(),
l);this.u&&Uf(this.u,this.t)};var Tf=function(a){if(a.dc&&a.tb&&!a.p){a.p=Hf(a.r());a.p.className=a.q+"-bg";K(a.p,l);pc(a.p,0)}else if((!a.dc||!a.tb)&&a.p){Lb(a.p);a.p=k}if(a.tb&&!a.n){a.n=a.r().c("div",a.q+"-bg");pc(a.n,a.Fb);K(a.n,l)}else if(!a.tb&&a.n){Lb(a.n);a.n=k}};Y.prototype.z=function(a){if(this.L)g(Error("Component already rendered"));this.a()||this.c();a=a||Ub(this.r()).body;Vf(this,a);Y.f.z.call(this,a)};var Vf=function(a,b){a.p&&b.appendChild(a.p);a.n&&b.appendChild(a.n)};
Y.prototype.Ib=function(a){return a&&a.tagName&&a.tagName=="DIV"&&Y.f.Ib.call(this,a)};
Y.prototype.Qa=function(a){Y.f.Qa.call(this,a);Ab(this.a(),this.q);a=this.q+"-content";if(this.J=Eb(k,a,this.a())[0])this.Pa=this.J.innerHTML;else{this.J=this.r().c("div",a);if(this.Pa)this.J.innerHTML=this.Pa;this.a().appendChild(this.J)}a=this.q+"-title";var b=this.q+"-title-text",c=this.q+"-title-close";if(this.H=Eb(k,a,this.a())[0]){this.S=Eb(k,b,this.H)[0];this.va=Eb(k,c,this.H)[0]}else{this.H=this.r().c("div",a);this.a().insertBefore(this.H,this.J)}if(this.S)this.C=Rb(this.S);else{this.S=this.r().c("span",
b,this.C);this.H.appendChild(this.S)}Gf(this.a(),"labelledby",this.$b||"");if(!this.va){this.va=this.r().c("span",c);this.H.appendChild(this.va)}a=this.q+"-buttons";if(this.t=Eb(k,a,this.a())[0]){this.u=new $(this.r());this.u.Mb(this.t)}else{this.t=this.r().c("div",a);this.a().appendChild(this.t);this.u&&Uf(this.u,this.t)}Tf(this);Vf(this,G(this.a()).body);K(this.a(),l)};
Y.prototype.oa=function(){Y.f.oa.call(this);this.kb=new If(Ub(this.r()));if(this.rc&&!this.za){var a=new Jf(this.a(),this.H);Ab(this.H,this.q+"-title-draggable");this.za=a}this.Aa().e(this.va,"click",this.je).e(this.kb,"focusin",this.fe);a=this.a();if(D){a.setAttribute("role","dialog");a.ue="dialog"}this.S.id!==""&&Gf(this.a(),"labelledby",this.S.id)};Y.prototype.pa=function(){this.fc&&Wf(this,l);this.kb.o();this.kb=k;if(this.za){this.za.o();this.za=k}Y.f.pa.call(this)};
var Wf=function(a,b){if(b!=a.fc){var c=Ub(a.r()),d=(c?Ib(c):window)||window;a.L||a.z(c.body);if(b){Xf(a);var e=Ub(a.r()),f=(e?Ib(e):window)||window;if(dc(a.a())=="fixed")var h=e=0;else{h=Wb(a.r());e=h.x;h=h.y}var j=mc(a.a());f=Hb(f||window);e=Math.max(e+f.width/2-j.width/2,0);h=Math.max(h+f.height/2-j.height/2,0);j=a.a();if(a.xb==k)a.xb=ic(a.L?a.b:a.W.h.body);if(a.xb){j.style.right=Math.round(e)+"px";j.style.top=Math.round(h)+"px"}else ec(j,e,h);a.Aa().e(a.a(),"keydown",a.vb,i).e(a.a(),"keypress",
a.vb,i).e(d,"resize",a.Kc,i)}else a.Aa().ia(a.a(),"keydown",a.vb,i).ia(a.a(),"keypress",a.vb,i).ia(d,"resize",a.Kc,i);a.p&&K(a.p,b);a.n&&K(a.n,b);K(a.a(),b);if(b){try{a.a().focus()}catch(m){}if(a.u)if(d=a.u.hb){e=a.t.getElementsByTagName("button");for(h=0;j=e[h];h++)if(j.name==d){try{if(F||lb){var n=c.createElement("input");n.style.cssText="position:fixed;width:0;height:0;left:0;top:0;";a.a().appendChild(n);n.focus();a.a().removeChild(n)}j.focus()}catch(p){}break}}}if(a.fc=b)a.Aa().e(a.t,"click",
a.Ic);else{a.Aa().ia(a.t,"click",a.Ic);a.dispatchEvent("afterhide");a.pc&&a.o()}}},Xf=function(a){a.p&&K(a.p,l);a.n&&K(a.n,l);var b=Ub(a.r()),c=Hb((b?Ib(b):window)||window||window),d=b.body.scrollWidth;b=Math.max(b.body.scrollHeight,c.height);if(a.p){K(a.p,i);lc(a.p,d,b)}if(a.n){K(a.n,i);lc(a.n,d,b)}if(a.rc){c=mc(a.a());a.za.Ub=new Yb(0,0,d-c.width,b-c.height)}};o=Y.prototype;o.je=function(){var a=this.u,b=a&&a.Jb;if(b){a=a.D(b);this.dispatchEvent(new Yf(b,a))&&Wf(this,l)}else Wf(this,l)};
o.d=function(){Y.f.d.call(this);if(this.n){Lb(this.n);this.n=k}if(this.p){Lb(this.p);this.p=k}this.Xc=this.t=this.va=k};o.Ic=function(a){a:{for(a=a.target;a!=k&&a!=this.t;){if(a.tagName=="BUTTON"){a=a;break a}a=a.parentNode}a=k}if(a&&!a.disabled){a=a.name;var b=this.u.D(a);this.dispatchEvent(new Yf(a,b))&&Wf(this,l)}};
o.vb=function(a){var b=l,c=l,d=this.u,e=a.target;if(a.type=="keydown")if(a.keyCode==27){var f=d&&d.Jb;e=e.tagName=="SELECT"&&!e.disabled;if(f&&!e){c=i;b=d.D(f);b=this.dispatchEvent(new Yf(f,b))}else e||(b=i)}else{if(a.keyCode==9&&a.shiftKey&&e==this.a())c=i}else if(a.keyCode==13){if(e.tagName=="BUTTON")f=e.name;else if(d){var h=d.hb,j=h&&Zf(d,h);e=(e.tagName=="TEXTAREA"||e.tagName=="SELECT")&&!e.disabled;if(j&&!j.disabled&&!e)f=h}if(f){c=i;b=this.dispatchEvent(new Yf(f,String(d.D(f))))}}if(b||c){a.stopPropagation();
a.preventDefault()}b&&Wf(this,l)};o.Kc=function(){Xf(this)};o.fe=function(a){this.Xc==a.target&&ad(this.qd,0,this)};o.qd=function(){C&&Ub(this.r()).body.focus();this.a().focus()};var Yf=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};x(Yf,uc);var $=function(a){this.W=a||H();md.call(this)},Sf;x($,md);o=$.prototype;o.q="goog-buttonset";o.hb=k;o.b=k;o.Jb=k;o.i=function(a,b,c,d){md.prototype.i.call(this,a,b);if(c)this.hb=a;if(d)this.Jb=a;return this};var Uf=function(a,b){a.b=b;a.z()};
$.prototype.z=function(){if(this.b){this.b.innerHTML="";var a=H(this.b);ld(this,function(b,c){b=a.c("button",{name:c},b);if(c==this.hb)b.className=this.q+"-default";this.b.appendChild(b)},this)}};$.prototype.Mb=function(a){if(!(!a||a.nodeType!=1)){this.b=a;a=this.b.getElementsByTagName("button");for(var b=0,c,d,e;c=a[b];b++){d=c.name||c.id;e=Rb(c)||c.value;if(d){var f=b==0;this.i(d,e,f,c.name=="cancel");f&&Ab(c,this.q+"-default")}}}};
var Zf=function(a,b){a=a.b.getElementsByTagName("BUTTON");for(var c=0,d;d=a[c];c++)if(d.name==b||d.id==b)return d;return k},$f=ma("OK"),ag=ma("Cancel"),bg=ma("Yes"),cg=ma("No"),dg=ma("Save"),eg=ma("Continue");(new $).i("ok",$f,i,i);Sf=(new $).i("ok",$f,i).i("cancel",ag,l,i);(new $).i("yes",bg,i).i("no",cg,l,i);(new $).i("yes",bg).i("no",cg,i).i("cancel",ag,l,i);(new $).i("continue",eg).i("save",dg).i("cancel",ag,i,i);var fg=function(a,b,c,d,e){X.call(this);this.C=a;this.jd=b;this.Tc=c;this.hd=e!=k?e:i;this.Yc=d};x(fg,X);
fg.prototype.z=function(a){var b=new Y("p13nd",i);b.pc=i;b.Fb=0.5;b.n&&pc(b.n,b.Fb);b.ta(Ya(this.C));var c=new $;c.i("ok",this.jd,i);c.i("cancel",_OC_MSG[18480],l,i);b.u=c;if(b.t)if(b.u)Uf(b.u,b.t);else b.t.innerHTML="";var d=b.tc();this.la=gg(this,d,_OC_MSG[18956],"input");this.kc=gg(this,d,_OC_MSG[18957],"textarea");var e=J("div",{"class":"ccd-label"}),f=document.createElement("span");f.innerHTML=_OC_MSG[18958];e.appendChild(f);d.appendChild(e);f=J("span",{className:"ccd-mode-indicator"});var h=
J("img",{src:"/googlebooks/images/sharing_public.gif",style:"vertical-align:-2px;padding:0 2px"}),j=document.createElement("span");j.innerHTML=_OC_MSG[18470];f.appendChild(h);f.appendChild(j);e.appendChild(f);h=J("span",{className:"ccd-mode-indicator"});j=J("img",{src:"/googlebooks/images/sharing_private.gif",style:"vertical-align:-2px;"});var m=document.createElement("span");m.innerHTML=_OC_MSG[18962];h.appendChild(j);h.appendChild(m);e.appendChild(h);j=J("span",{"class":"ccd-mode-link"});j.innerHTML=
_OC_MSG[18960];e.appendChild(j);this.e(j,"click",w(this.rb,i));m=J("span",{"class":"ccd-mode-link"});m.innerHTML=_OC_MSG[18959];e.appendChild(m);this.e(m,"click",w(this.rb,l));this.oe=[f,m];this.ne=[h,j];this.rb(i);this.Ob=J("div",{"class":"ccd-error"});d.appendChild(this.Ob);Wf(b,i);$b(Zf(c,"ok"),"fontWeight","bold");this.e(b,"dialogselect",this.ie);this.Za(window,"load",w(ad,v(this.sc,this)));this.e(b,"afterhide",this.o);if(a){this.la.value=Ya(a.K());this.la.disabled=a.Mc;this.kc.value=Ya(a.Ta);
this.rb(a.$==1);this.la.disabled&&$b(this.la,"background","#f2f2f2");this.ye=a.B()}ad(v(this.sc,this))};var gg=function(a,b,c,d){a=J("div",{"class":"ccd-label"});a.innerHTML=c;b.appendChild(a);c=J(d,{"class":"ccd-input"});if(d=="input"){Gb(c,{type:"text"});c.setAttribute("maxlength",100)}else if(d=="textarea"){Gb(c,{rows:6,cols:50});new Ff(c,document.createElement("span"),500)}b.appendChild(c);return c};
fg.prototype.rb=function(a){this.Sd=a;z(this.oe,function(b){K(b,a)});z(this.ne,function(b){K(b,!a)})};fg.prototype.sc=function(){this.la.disabled||this.la.focus()};fg.prototype.ie=function(a){var b=this.la.value;if(a.key=="cancel")return i;if(/^[\s\xa0]*$/.test(b)){this.Ob.innerHTML=_OC_MSG[19065];return l}if(this.Yc&&!this.Yc(b)){this.Ob.innerHTML=_OC_MSG[19066];return l}a=new pf;a.ta(b);a.Ta=this.kc.value;this.Sd?sf(a,1):sf(a,2);a.Xb(this.ye);this.hd?Af(this.Tc,a,i):Bf(this.Tc,a);return i};var ig=function(a,b,c,d,e,f){X.call(this);this.ec=a;this.ub=b;this.mc=c;this.Y=d;this.wc=e;if(this.ec){this.ac=oa(this.ec.childNodes,hg);this.wc&&ya(this.ac,oa(this.wc.childNodes,hg))}this.Gb=f;ad(v(this.Zb,this))};x(ig,X);ig.prototype.Zb=function(){this.ub&&this.Y&&this.e(this.ub,"click",this.Zc);this.mc&&this.e(this.mc,"click",this.xd);this.e(this.Gb,"add",this.ed)};var hg=function(a){a=Eb("span","hp-collection-title",a)[0];a=Rb(a);return Ma(La(a))};o=ig.prototype;
o.xd=function(){(new fg(_OC_MSG[18932],_OC_MSG[18961],this.Gb,v(this.Rd,this))).z()};o.Rd=function(a){var b=Ma(La(a)).toLowerCase();return!pa(this.ac,function(c){return c.toLowerCase()==b})};
o.ed=function(a){var b=a.Sc,c=Ma(La(b.K())),d=b.$==1;this.ac.push(c);a=document.createElement("li");var e=new S("/books");T(e,"as_coll",b.B());T(e,"source","gbs_lp_bookshelf_list");b=J("a",{"class":"hp-bookshelf-link",href:e.toString()});e=J("span",{"class":"hp-collection-title"});var f=document.createElement("span");f.innerHTML="&nbsp;&nbsp;";e.innerHTML=c;b.appendChild(e);a.appendChild(b);a.appendChild(f);c=d?_OC_MSG[18954]:_OC_MSG[18955];d=J("img",{"class":"hp-bookshelf-access",src:"/googlebooks/images/sharing_"+
(d?"public":"private")+".gif",title:c,alt:c});a.appendChild(d);d=Eb("li",k,this.ec)[this.Gb.bb.length-1];d.parentNode&&d.parentNode.insertBefore(a,d.nextSibling)};o.Zc=function(a){a.preventDefault();a=this.Y.style.display=="none";K(this.Y,a);if(a){of(this.ub,5,this.Y,4);if(mc(this.Y).height>200){lc(this.Y,"",200);$b(this.Y,"overflow","scroll");$b(this.Y,"overflowX","hidden")}this.md=N(document,"mousedown",v(this.Yd,this))}else O(this.md)};
o.Yd=function(a){!Mb(this.Y,a.target)&&!Mb(this.ub,a.target)&&this.Zc(a)};var jg=function(a){a=a||H();this.G=a.c(C?"div":"iframe",{style:"position:absolute;width:9em;height:9em;top:-99em"});a=a.h.body;a.insertBefore(this.G,a.firstChild);a=this.Pc=C?this.G:this.G.contentWindow||Ib(F?this.G.document||this.G.contentWindow.document:this.G.contentDocument||this.G.contentWindow.document);if(D){this.G.tabIndex=-1;var b=a.document;b.open();b.close()}N(a,"resize",this.lb,l,this);this.Dc=this.G.offsetWidth};x(jg,Q);
jg.prototype.d=function(){jg.f.d.call(this);Sc(this.Pc,"resize",this.lb,l,this);this.Pc=k;if(!D||xb("1.9"))Lb(this.G);delete this.G};jg.prototype.lb=function(){var a=this.G.offsetWidth;if(this.Dc!=a){this.Dc=a;this.dispatchEvent("fontsizechange")}};var kg=function(a){this.wa=a||window;this.pb=N(this.wa,"resize",this.lb,l,this);this.yb=Hb(this.wa||window);if(F&&gb||lb&&this.wa.self!=this.wa.top)this.Bb=window.setInterval(v(this.jc,this),500)};x(kg,Q);o=kg.prototype;o.pb=k;o.wa=k;o.yb=k;o.Bb=k;o.d=function(){kg.f.d.call(this);if(this.pb){O(this.pb);this.pb=k}if(this.Bb){window.clearInterval(this.Bb);this.Bb=k}this.yb=this.wa=k};o.lb=function(){this.jc()};o.jc=function(){var a=Hb(this.wa||window);if(!Ca(a,this.yb)){this.yb=a;this.dispatchEvent("resize")}};var lg=function(a,b,c,d,e,f){X.call(this);this.fd=b;this.se=c;this.Gc=d;this.xa=a;b=a.getElementsByTagName("*");if(qc){c="none";a.style[qc]=c;if(b)for(a=0;d=b[a];a++)d.style[qc]=c}else if(C||lb){c="on";a.setAttribute("unselectable",c);if(b)for(a=0;d=b[a];a++)d.setAttribute("unselectable",c)}this.Z=e;this.U=f;this.ic=[];this.ya=J("div",{style:"border-bottom: 1px solid #c4d2eb; margin-bottom:8px"});C&&lc(this.ya,200,"");this.fa=J("div",{style:"background: #fff; border: 1px solid #81a7e0;padding: 5px; position: absolute; line-height: 20px; font-size: 83%"},
this.ya);document.body.appendChild(this.fa);z(Aa(this.U.bb,this.U.gb),this.dd,this);this.hc=J("input",{type:"button",value:_OC_MSG[18479]});this.fa.appendChild(this.hc);if(mc(this.ya).height>300){lc(this.ya,C?200:k,300);$b(this.ya,"overflowY","scroll")}this.Zb();this.Wb()};x(lg,X);
lg.prototype.dd=function(a){if(!(/^[\s\xa0]*$/.test(a.K()==k?"":String(a.K()))||a.pe||this.U.Qe==a.B())){var b=document.createElement("div");this.ya.appendChild(b);var c=J("input",{type:"checkbox",style:"cursor:pointer",value:a.B()});b.appendChild(c);a.P(this.Z)&&Gb(c,{checked:"checked"});this.ic.push(c);var d=J("span",{style:"white-space:nowrap;cursor:pointer"});this.e(d,"click",w(this.Ae,c));Nb(d,Ya(a.K()));b.appendChild(d);if(a.$){c=(a=a.$==1)?_OC_MSG[18954]:_OC_MSG[18955];a=J("img",{src:"/googlebooks/images/sharing_"+
(a?"public":"private")+".gif",alt:c,title:c});$b(a,{"vertical-align":"-2px","margin-left":"5px"});b.appendChild(a)}}};lg.prototype.Ae=function(a){a.checked=!a.checked};lg.prototype.Zb=function(){this.e(document,"mousedown",this.Xd);this.e(document,"keydown",this.ld,i);this.e(new kg,"resize",this.Wb);this.e(new jg,"fontsizechange",this.Wb);this.e(this.hc,"click",this.we)};
lg.prototype.we=function(){var a=[],b=[];z(this.ic,function(c){var d=c.checked;c=xf(this.U,c.value);var e=c.P(this.Z);e&&!d&&a.push(c);!e&&d&&b.push(c)},this);z(b,function(c){var d=new S(this.fd);T(d,"as_coll",c.B());xe(d,w(mg,this.U,this.Z,c,this.Gc),"POST")},this);z(a,function(c){var d=new S(this.se);T(d,"as_coll",c.B());xe(d,w(ng,this.U,this.Z,c,this.Gc),"POST")},this);this.o()};
var mg=function(a,b,c,d,e){if(Fe(e.target)){if(e=a.P(b))qf(c,e);else{e=new tf;e.v.gc=b;qf(c,e)}K(d,!!a.P(b))}},ng=function(a,b,c,d,e){if(Fe(e.target)){e=a.P(b);rf(c,e);K(d,!!a.P(b))}};lg.prototype.Wb=function(){this.fa.style.display!="none"&&of(this.xa,5,this.fa,4)};lg.prototype.Xd=function(a){!Mb(this.xa,a.target)&&!Mb(this.fa,a.target)&&this.fa.style.display!="none"&&this.o()};lg.prototype.ld=function(a){if(a.keyCode==27)if(this.fa.style.display!="none"){a.preventDefault();this.o()}};
lg.prototype.d=function(){lg.f.d.call(this);Lb(this.fa)};var og=function(a,b,c,d,e,f){X.call(this);this.xa=a;this.cd=b;this.re=c;this.Fc=d;this.Z=e;this.U=f;K(this.xa,i);K(this.Fc,!!this.U.P(this.Z));this.e(this.xa,"click",this.wd)};x(og,X);og.prototype.wd=function(a){a.preventDefault();if(this.Na)this.Oc();else{this.Na=new lg(this.xa,this.cd,this.re,this.Fc,this.Z,this.U);this.Za(this.Na,"dispose",this.Oc)}};og.prototype.Oc=function(){this.ia(this.Na,"dispose");this.Na.o();delete this.Na};var pg=function(a){wf.call(this);a.bookshelf&&z(a.bookshelf,function(b){yf(this,new vf(b))},this)};x(pg,wf);var rg=function(a,b,c){var d=new S("/books");Je(d);T(d,"op","cls_metadata");T(d,"jscmd","ClsMetadata");var e=Ld(new S(window.location),"uid");e&&T(d,"uid",e);b&&T(d,"uid",b);b=d.toString();a=w(qg,a,c);xe(b,w(Ie,a,void 0))},qg=function(a,b,c){var d=new pg(c);b&&z(b,function(e){z(e.gd,function(f){var h=new tf;h.v.gc=e.Da();(f=xf(d,f))&&qf(f,h)})});a(d)};var sg=function(){R.call(this)};x(sg,Ke);sg.prototype.c=function(){sg.f.c.call(this);var a=new S(window.location),b=Ld(a,"as_psrg")==1,c=Ld(a,"as_psra")==1;a=new S(a);Md(a,"as_psrg");Md(a,"as_psra");var d=new S(a);T(d,"as_psrg",1);var e=new S(a);T(e,"as_psra",1);Oe(this,_OC_MSG[19095],!b&&!c?k:a);Oe(this,_OC_MSG[19093],b?k:d);Oe(this,_OC_MSG[19094],c?k:e)};var tg=function(){R.call(this)};x(tg,Ke);tg.prototype.c=function(){tg.f.c.call(this);this.T(_OC_MSG[19649],0);this.T(_OC_MSG[19650],1);this.T(_OC_MSG[19651],2)};tg.prototype.T=function(a,b){var c=new S(window.location),d=Ld(c,"scoring");T(c,"scoring",b);Oe(this,a,!d&&b==0||d==b?k:c.toString())};var ug=function(a,b,c){for(a=a.firstChild;a;){if(a.tagName){if(b(a))if(c)return a;var d=ug(a,b,c);if(d)return d}a=a.nextSibling}};var vg=function(a){a=new vc(a);a.preventDefault();a.stopPropagation()},wg=function(a){var b;if(a.target)b=a.target;else if(a.srcElement)b=a.srcElement;else if(a.currentTarget)b=a.currentTarget;return b};var xg=function(a,b,c){if(a.readyState==4){var d;try{d=a.status}catch(e){}if(d==200)b(a.responseText);else c&&c(d);a.onreadystatechange=ca}},yg=function(a,b,c){try{var d=eval("("+c+")")}catch(e){b&&b(e)}a(d)},zg=/%20/g,_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(c){}}if(undefined===_xh_ieProgId)g("Could not create ActiveXObject. ActiveX might be disabled, or msxml might not be installed")}}_XH_XmlHttpInit();var Ag=function(a,b,c,d,e,f){this.ke=c;this.$a=a;this.cc=b;this.Kb=e;this.qe=f;a.onclick=k;this.click(d);setTimeout(this.xe.ja(this),0)};Ag.prototype.xe=function(){N(this.$a,"click",this.click.ja(this))};
Ag.prototype.click=function(a){if(a){var b=wg(a);if(Tb(b,"A")&&!Tb(b,k,"sbs_ignore"))a&&vg(a);else return}if(!this.Kb||confirm(document.body.dir=="rtl"?"\u202b"+this.Kb+"\u202c":this.Kb)){this.de=this.$a.innerHTML;this.$a.innerHTML='<span style="color:gray">'+_OC_MSG[18242]+"</span>";var c;a=this.ke;b=[];for(c in a)b.push([encodeURIComponent(c).replace(zg,"+"),"=",encodeURIComponent(a[c]).replace(zg,"+")].join(""));c=b.join("&");var d=this.Jd.ja(this);a=this.yd.ja(this);b=this.cc;d=yg.Lc(d,a);var e=
_xh_ieProgId!==undefined?new ActiveXObject(_xh_ieProgId):new XMLHttpRequest;e.onreadystatechange=xg.Lc(e,d,a);e.open("POST",b,i);e.send(c)}};Ag.prototype.Jd=function(a){if(this.qe)window.location.reload(i);else{var b=a.redirect_url;if(b)window.location.href=b;else{this.$a.innerHTML=a.html;this.cc=a.url}}};Ag.prototype.yd=function(){this.$a.innerHTML=this.de};r("_OC_AjaxLink",Ag,void 0);r("_setClass",function(a,b){I(a).className=b},void 0);var Eg=function(a,b){this.cb=[];this.xc=-1;af(b,{display:"none"});for(var c=0;c<b.options.length;c++){var d=J("span",{title:b.options[c].text,index:c});Bg(this,d,c,l);a.appendChild(d);this.cb.push(d)}af(a,{width:77});this.Oa=b;Cg(this,b.selectedIndex);Dg(this,this.Oa.selectedIndex);N(a,"click",this.Dd.ja(this));N(a,"mouseout",this.Ed.ja(this));N(a,"mouseover",this.Fd.ja(this))};Eg.Sb(Q);
var Dg=function(a,b){a.xc=b;for(var c=1,d;d=a.cb[c];c++)Bg(a,d,c,c<=b)},Cg=function(a,b){if(!(b>=a.cb.length||b<0))if(b!=a.Oa.selectedIndex){a.Oa.selectedIndex=b;Dg(a,a.Oa.selectedIndex);a.dispatchEvent("change")}};Eg.prototype.Fd=function(a){a=wg(a).index;this.xc!=a&&Dg(this,a)};Eg.prototype.Ed=function(a){a.relatedTarget&&typeof a.relatedTarget.index!="undefined"||Dg(this,this.Oa.selectedIndex)};Eg.prototype.Dd=function(a){a.relatedTarget&&typeof a.relatedTarget.index!="undefined"||Cg(this,wg(a).index)};
var Bg=function(a,b,c,d){if(c!=0){var e=13;if(c==1)e=20;if(c==a.cb.length-1)e=18;var f=d?"0px -60px":"0px -40px";if(c==1)f=d?"0px -20px":"0px 0px";if(c==a.cb.length-1)f=d?"0px -100px":"0px -80px";af(b,{paddingLeft:e,height:19,cursor:"pointer",cssFloat:"left",backgroundImage:"url(/googlebooks/rating_star.gif)",backgroundRepeat:"no-repeat",backgroundPosition:f})}};
r("_OC_RatingsFactory",function(a){a=I(a);var b=ug(a,function(c){if(c.name&&c.tagName.toLowerCase()=="select".toLowerCase())return i},i);return new Eg(a,b)},void 0);var Fg=function(){R.call(this)};x(Fg,Ke);Fg.prototype.c=function(){Fg.f.c.call(this);this.T(_OC_MSG[18013],0);this.T(_OC_MSG[18629],3);this.T(_OC_MSG[18630],1);this.T(_OC_MSG[18951],4);GBS_LANG=="zh"&&this.T(_OC_MSG[18090],2)};Fg.prototype.T=function(a,b){var c=new S(window.location),d=Ld(c,"as_brr");T(c,"as_brr",b);Oe(this,a,!d&&b==0||d==b?k:c.toString())};var Gg=function(){R.call(this)};x(Gg,Ke);Gg.prototype.c=function(){Gg.f.c.call(this);var a=new S(window.location);Md(a,"num");var b=Ld(a,"rview");if(b&&b==1){T(a,"rview",0);Le(this,_OC_MSG[18525],a.toString());Ne(this,_OC_MSG[18526])}else{T(a,"rview",1);Ne(this,_OC_MSG[18525]);Le(this,_OC_MSG[18526],a.toString())}};var Hg=function(a,b,c,d,e){Cf(e,d);I("hp-bookshelves")&&new ig(I("hp-bookshelves-list"),I("hp-more-link"),I("hp-bookshelves-create-btn"),I("hp-bookshelves-extended-div"),I("hp-bookshelves-list-extended"),e);z(a,function(f){f=f.Da();var h=I("addToLibraryLink"+f);if(h){var j=new S(b);T(j,"id",f);var m=new S(c);T(m,"id",f);new og(h,j,m,I("membership_icon"+f),f,e)}})},Ig=function(){var a=I("sidebar");if(a){K(a,i);$b(I("main_content"),"marginLeft","190px")}return a},Jg=function(){var a=Ig();(new Gg).z(a);
(new tg).z(a);(new sg).z(a)},Kg=function(a){var b=Ig();if(b){(new Gg).z(b);(new Fg).z(b);a&&(new Pe).z(b)}},Lg=function(){var a=Ig();a&&(new Gg).z(a)};
r("_OC_Run",function(a,b){var c=new S(window.location),d=c.Ia;c=d.lastIndexOf("/books/serial/",0)==0||d.lastIndexOf("/books/magazines/",0)==0||d=="/books"&&Ld(c,"as_pt")=="MAGAZINES";if(d=="/patents")Jg();else{if(c)Lg();else d=="/books"&&Kg(i);if(a.enable_p13n){b=oa(b,function(e){return new Te(e)});rg(w(Hg,b,a.add_vol_base_url,a.remove_vol_base_url,a.create_bookshelf_base_url),k,b)}(a=I("siml_query"))&&(new dd(_OC_MSG[19079])).Mb(a)}},void 0);})();
})();