(function(){var GBS_HOST = "http://books.google.com/";var GBS_LANG = "en";var h=true,j=null,k=false,l,m=this,q=function(a,b,c){a=a.split(".");c=c||m;!(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]={})},aa=function(a,b){a=a.split(".");b=b||m;for(var c;c=a.shift();)if(b[c])b=b[c];else return j;return b},r=function(){},s=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},v=function(a){return s(a)=="array"},w=function(a){var b=s(a);return b==
"array"||b=="object"&&typeof a.length=="number"},x=function(a){return typeof a=="string"},ba=function(a){return s(a)=="function"},ca=function(a){a=s(a);return a=="object"||a=="array"||a=="function"},z=function(a){if(a.hasOwnProperty&&a.hasOwnProperty(y))return a[y];a[y]||(a[y]=++da);return a[y]},y="closure_uid_"+Math.floor(Math.random()*2147483648).toString(36),da=0,ea=function(a){var b=s(a);if(b=="object"||b=="array"){if(a.g)return a.g.call(a);b=b=="array"?[]:{};for(var c in a)b[c]=ea(a[c]);return b}return a},
fa=function(a,b){var c=b||m;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var f=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(f,d);return a.apply(c,f)}}else return function(){return a.apply(c,arguments)}},ga=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)}},ha=Date.now||function(){return+new Date},A=function(a,b){function c(){}
c.prototype=b.prototype;a.P=b.prototype;a.prototype=new c};var B=Array.prototype,ia=B.indexOf?function(a,b,c){return B.indexOf.call(a,b,c)}:function(a,b,c){c=c==j?0:c<0?Math.max(0,a.length+c):c;if(x(a)){if(!x(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},ja=B.forEach?function(a,b,c){B.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=x(a)?a.split(""):a,e=0;e<d;e++)e in f&&b.call(c,f[e],e,a)},ka=function(){return B.concat.apply(B,arguments)},la=function(a){if(v(a))return ka(a);else{for(var b=
[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b}},ma=function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],d;if(v(c)||(d=w(c))&&c.hasOwnProperty("callee"))a.push.apply(a,c);else if(d)for(var f=a.length,e=c.length,g=0;g<e;g++)a[f+g]=c[g];else a.push(c)}};var na=function(a,b){this.x=a!==undefined?a:0;this.y=b!==undefined?b:0};na.prototype.g=function(){return new na(this.x,this.y)};var C=function(a,b){this.width=a;this.height=b};C.prototype.g=function(){return new C(this.width,this.height)};C.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};C.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var oa=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},pa=function(a){var b=[],c=0;for(var d in a)b[c++]=a[d];return b},qa=function(a){var b=[],c=0;for(var d in a)b[c++]=d;return b},ra=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],sa=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 f=0;f<ra.length;f++){b=ra[f];if(Object.prototype.hasOwnProperty.call(c,b))a[b]=c[b]}}};var ta=function(a){for(var b=1;b<arguments.length;b++){var c=String(arguments[b]).replace(/\$/g,"$$$$");a=a.replace(/\%s/,c)}return a},ua=/^[a-zA-Z0-9\-_.!~*'()]*$/,va=function(a){a=String(a);if(!ua.test(a))return encodeURIComponent(a);return a},Ba=function(a,b){if(b)return a.replace(wa,"&amp;").replace(xa,"&lt;").replace(ya,"&gt;").replace(za,"&quot;");else{if(!Aa.test(a))return a;if(a.indexOf("&")!=-1)a=a.replace(wa,"&amp;");if(a.indexOf("<")!=-1)a=a.replace(xa,"&lt;");if(a.indexOf(">")!=-1)a=a.replace(ya,
"&gt;");if(a.indexOf('"')!=-1)a=a.replace(za,"&quot;");return a}},wa=/&/g,xa=/</g,ya=/>/g,za=/\"/g,Aa=/[&<>\"]/,Da=function(a,b){var c=0;a=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split(".");b=String(b).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split(".");for(var d=Math.max(a.length,b.length),f=0;c==0&&f<d;f++){var e=a[f]||"",g=b[f]||"",i=new RegExp("(\\d*)(\\D*)","g"),o=new RegExp("(\\d*)(\\D*)","g");do{var n=i.exec(e)||["","",""],p=o.exec(g)||["","",""];if(n[0].length==0&&p[0].length==0)break;
c=Ca(n[1].length==0?0:parseInt(n[1],10),p[1].length==0?0:parseInt(p[1],10))||Ca(n[2].length==0,p[2].length==0)||Ca(n[2],p[2])}while(c==0)}return c},Ca=function(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};var D,Ea,Fa,Ga,Ha,Ia,Ja=function(){return m.navigator?m.navigator.userAgent:j},Ka=function(){return m.navigator};Ha=Ga=Fa=Ea=D=k;var E;if(E=Ja()){var La=Ka();D=E.indexOf("Opera")==0;Ea=!D&&E.indexOf("MSIE")!=-1;Ga=(Fa=!D&&E.indexOf("WebKit")!=-1)&&E.indexOf("Mobile")!=-1;Ha=!D&&!Fa&&La.product=="Gecko"}var Ma=D,Na=Ea,Oa=Ha,Pa=Fa,Qa=Ga,Ra=Ka();Ia=(Ra&&Ra.platform||"").indexOf("Mac")!=-1;var Sa=!!Ka()&&(Ka().appVersion||"").indexOf("X11")!=-1,Ta="",F;
if(Ma&&m.opera){var Ua=m.opera.version;Ta=typeof Ua=="function"?Ua():Ua}else{if(Oa)F=/rv\:([^\);]+)(\)|;)/;else if(Na)F=/MSIE\s+([^\);]+)(\)|;)/;else if(Pa)F=/WebKit\/(\S+)/;if(F){var Va=F.exec(Ja());Ta=Va?Va[1]:""}}var Wa=Ta,Xa={},Ya=function(a){return Xa[a]||(Xa[a]=Da(Wa,a)>=0)};var $a=function(a,b){oa(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 Za)a.setAttribute(Za[d],c);else a[d]=c})},Za={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",type:"type"},ab=function(a){var b=a.document;if(Pa&&!Ya("500")&&!Qa){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 C(a.innerWidth,b)}a=b.compatMode=="CSS1Compat"&&(!Ma||Ma&&Ya("9.50"))?b.documentElement:b.body;return new C(a.clientWidth,a.clientHeight)},cb=function(){return bb(document,arguments)},bb=function(a,b){var c=b[0],d=b[1];if(Na&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Ba(d.name),'"');if(d.type){c.push(' type="',Ba(d.type),'"');d=ea(d);delete d.type}c.push(">");c=c.join("")}var f=a.createElement(c);if(d)if(x(d))f.className=
d;else $a(f,d);if(b.length>2){d=function(g){if(g)f.appendChild(x(g)?a.createTextNode(g):g)};for(c=2;c<b.length;c++){var e=b[c];w(e)&&!(ca(e)&&e.nodeType>0)?ja(db(e)?la(e):e,d):d(e)}}return f},G=function(a){return document.createElement(a)},eb=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):j},db=function(a){if(a&&typeof a.length=="number")if(ca(a))return typeof a.item=="function"||typeof a.item=="string";else if(ba(a))return typeof a.item=="function";return k};var fb=function(){},hb=function(a,b){var c=[];gb(a,b,c);return c.join("")},gb=function(a,b,c){switch(typeof b){case "string":ib(a,b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(b==j){c.push("null");break}if(v(b)){var d=b.length;c.push("[");for(var f="",e=0;e<d;e++){c.push(f);gb(a,b[e],c);f=","}c.push("]");break}c.push("{");d="";for(f in b)if(b.hasOwnProperty(f)){e=b[f];if(typeof e!="function"){c.push(d);
ib(a,f,c);c.push(":");gb(a,e,c);d=","}}c.push("}");break;case "function":break;default:throw Error("Unknown type: "+typeof b);}},jb={'"':'\\"',"\\":"\\\\","/":"\\/","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\u000b"},kb=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g,ib=function(a,b,c){c.push('"',b.replace(kb,function(d){if(d in jb)return jb[d];var f=d.charCodeAt(0),e="\\u";if(f<16)e+="000";else if(f<256)e+="00";else if(f<4096)e+="0";
return jb[d]=e+f.toString(16)}),'"')};var H=function(a,b,c){x(b)?lb(a,c,b):oa(b,ga(lb,a))},lb=function(a,b,c){a.style[mb(c)]=b},nb=function(a,b,c){var d,f=Oa&&(Ia||Sa)&&Ya("1.9");if(b instanceof na){d=b.x;b=b.y}else{d=b;b=c}a.style.left=typeof d=="number"?(f?Math.round(d):d)+"px":d;a.style.top=typeof b=="number"?(f?Math.round(b):b)+"px":b},ob=function(a,b,c){if(b instanceof C){c=b.height;b=b.width}else{if(c==undefined)throw 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},pb={},mb=function(a){return pb[a]||(pb[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))},qb=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+")"};var rb="StopIteration"in m?m.StopIteration:Error("StopIteration"),sb=function(){};sb.prototype.next=function(){throw rb;};sb.prototype.la=function(){return this};var tb=function(a){if(typeof a.s=="function")return a.s();if(x(a))return a.split("");if(w(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return pa(a)},ub=function(a,b,c){if(typeof a.forEach=="function")a.forEach(b,c);else if(w(a)||x(a))ja(a,b,c);else{var d;if(typeof a.v=="function")d=a.v();else if(typeof a.s!="function")if(w(a)||x(a)){d=[];for(var f=a.length,e=0;e<f;e++)d.push(e);d=d}else d=qa(a);else d=void 0;f=tb(a);e=f.length;for(var g=0;g<e;g++)b.call(c,f[g],d&&d[g],a)}};var I=function(a){this.i={};this.c=[];var b=arguments.length;if(b>1){if(b%2)throw Error("Uneven number of arguments");for(var c=0;c<b;c+=2)this.p(arguments[c],arguments[c+1])}else a&&vb(this,a)};l=I.prototype;l.a=0;l.Q=0;l.s=function(){wb(this);for(var a=[],b=0;b<this.c.length;b++)a.push(this.i[this.c[b]]);return a};l.v=function(){wb(this);return this.c.concat()};l.m=function(a){return J(this.i,a)};
l.remove=function(a){if(J(this.i,a)){delete this.i[a];this.a--;this.Q++;this.c.length>2*this.a&&wb(this);return h}return k};var wb=function(a){if(a.a!=a.c.length){for(var b=0,c=0;b<a.c.length;){var d=a.c[b];if(J(a.i,d))a.c[c++]=d;b++}a.c.length=c}if(a.a!=a.c.length){var f={};for(c=b=0;b<a.c.length;){d=a.c[b];if(!J(f,d)){a.c[c++]=d;f[d]=1}b++}a.c.length=c}};I.prototype.o=function(a,b){if(J(this.i,a))return this.i[a];return b};
I.prototype.p=function(a,b){if(!J(this.i,a)){this.a++;this.c.push(a);this.Q++}this.i[a]=b};var vb=function(a,b){var c;if(b instanceof I){c=b.v();b=b.s()}else{c=qa(b);b=pa(b)}for(var d=0;d<c.length;d++)a.p(c[d],b[d])};I.prototype.g=function(){return new I(this)};
I.prototype.la=function(a){wb(this);var b=0,c=this.c,d=this.i,f=this.Q,e=this,g=new sb;g.next=function(){for(;;){if(f!=e.Q)throw Error("The map has changed since the iterator was created");if(b>=c.length)throw rb;var i=c[b++];return a?i:d[i]}};return g};var J=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var xb=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");var K=function(a,b){var c;if(a instanceof K){this.B(b==j?a.h:b);yb(this,a.l);zb(this,a.K);Ab(this,a.u);Bb(this,a.t);Cb(this,a.H);Db(this,a.e.g());Eb(this,a.D)}else if(a&&(c=String(a).match(xb))){this.B(!!b);yb(this,c[1]||"",h);zb(this,c[2]||"",h);Ab(this,c[3]||"",h);Bb(this,c[4]);Cb(this,c[5]||"",h);Db(this,c[6]||"",h);Eb(this,c[7]||"",h)}else{this.B(!!b);this.e=new L(j,this,this.h)}};l=K.prototype;l.l="";l.K="";l.u="";l.t=j;l.H="";l.D="";l.ra=k;l.h=k;
l.toString=function(){if(this.d)return this.d;var a=[];this.l&&a.push(M(this.l,Fb),":");if(this.u){a.push("//");this.K&&a.push(M(this.K,Fb),"@");var b;b=this.u;b=x(b)?encodeURIComponent(b):j;a.push(b);this.t!=j&&a.push(":",String(this.t))}this.H&&a.push(M(this.H,Gb));(b=String(this.e))&&a.push("?",b);this.D&&a.push("#",M(this.D,Hb));return this.d=a.join("")};
l.g=function(){var a=this.l,b=this.K,c=this.u,d=this.t,f=this.H,e=this.e.g(),g=this.D,i=new K(j,this.h);a&&yb(i,a);b&&zb(i,b);c&&Ab(i,c);d&&Bb(i,d);f&&Cb(i,f);e&&Db(i,e);g&&Eb(i,g);return i};
var yb=function(a,b,c){N(a);delete a.d;a.l=c?b?decodeURIComponent(b):"":b;if(a.l)a.l=a.l.replace(/:$/,"");return a},zb=function(a,b,c){N(a);delete a.d;a.K=c?b?decodeURIComponent(b):"":b;return a},Ab=function(a,b,c){N(a);delete a.d;a.u=c?b?decodeURIComponent(b):"":b;return a},Bb=function(a,b){N(a);delete a.d;if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Bad port number "+b);a.t=b}else a.t=j;return a},Cb=function(a,b,c){N(a);delete a.d;a.H=c?b?decodeURIComponent(b):"":b;return a},Db=function(a,b,
c){N(a);delete a.d;if(b instanceof L){a.e=b;a.e.J=a;a.e.B(a.h)}else{c||(b=M(b,Ib));a.e=new L(b,a,a.h)}return a},O=function(a,b,c){N(a);delete a.d;a.e.p(b,c);return a},Jb=function(a,b,c){N(a);delete a.d;v(c)||(c=[String(c)]);var d=a.e;b=b;c=c;P(d);Q(d);b=R(d,b);if(d.m(b)){var f=d.b.o(b);if(v(f))d.a-=f.length;else d.a--}if(c.length>0){d.b.p(b,c);d.a+=c.length}return a},Eb=function(a,b,c){N(a);delete a.d;a.D=c?b?decodeURIComponent(b):"":b;return a},N=function(a){if(a.ra)throw Error("Tried to modify a read-only Uri");
};K.prototype.B=function(a){this.h=a;this.e&&this.e.B(a)};
var Kb=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/,M=function(a,b){var c=j;if(x(a)){c=a;Kb.test(c)||(c=encodeURI(a));if(c.search(b)>=0)c=c.replace(b,Lb)}return c},Lb=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Fb=/[#\/\?@]/g,Gb=/[\#\?]/g,Ib=/[\#\?@]/g,Hb=/#/g,L=function(a,b,c){this.k=a||j;this.J=b||j;this.h=!!c},P=function(a){if(!a.b){a.b=new I;if(a.k)for(var b=a.k.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),f=j,e=j;if(d>=0){f=b[c].substring(0,d);e=b[c].substring(d+
1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));f=R(a,f);a.add(f,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}};l=L.prototype;l.b=j;l.a=j;l.add=function(a,b){P(this);Q(this);a=R(this,a);if(this.m(a)){var c=this.b.o(a);v(c)?c.push(b):this.b.p(a,[c,b])}else this.b.p(a,b);this.a++;return this};l.remove=function(a){P(this);a=R(this,a);if(this.b.m(a)){Q(this);var b=this.b.o(a);if(v(b))this.a-=b.length;else this.a--;return this.b.remove(a)}return k};l.m=function(a){P(this);a=R(this,a);return this.b.m(a)};
l.v=function(){P(this);for(var a=this.b.s(),b=this.b.v(),c=[],d=0;d<b.length;d++){var f=a[d];if(v(f))for(var e=0;e<f.length;e++)c.push(b[d]);else c.push(b[d])}return c};l.s=function(a){P(this);if(a){a=R(this,a);if(this.m(a)){var b=this.b.o(a);if(v(b))return b;else{a=[];a.push(b)}}else a=[]}else{b=this.b.s();a=[];for(var c=0;c<b.length;c++){var d=b[c];v(d)?ma(a,d):a.push(d)}}return a};
l.p=function(a,b){P(this);Q(this);a=R(this,a);if(this.m(a)){var c=this.b.o(a);if(v(c))this.a-=c.length;else this.a--}this.b.p(a,b);this.a++;return this};l.o=function(a,b){P(this);a=R(this,a);if(this.m(a)){a=this.b.o(a);return v(a)?a[0]:a}else return b};
l.toString=function(){if(this.k)return this.k;if(!this.b)return"";for(var a=[],b=0,c=this.b.v(),d=0;d<c.length;d++){var f=c[d],e=va(f);f=this.b.o(f);if(v(f))for(var g=0;g<f.length;g++){b>0&&a.push("&");a.push(e,"=",va(f[g]));b++}else{b>0&&a.push("&");a.push(e,"=",va(f));b++}}return this.k=a.join("")};var Q=function(a){delete a.S;delete a.k;a.J&&delete a.J.d};L.prototype.g=function(){var a=new L;if(this.S)a.S=this.S;if(this.k)a.k=this.k;if(this.b)a.b=this.b.g();return a};
var R=function(a,b){b=String(b);if(a.h)b=b.toLowerCase();return b};L.prototype.B=function(a){if(a&&!this.h){P(this);Q(this);ub(this.b,function(b,c){var d=c.toLowerCase();if(c!=d){this.remove(c);this.add(d,b)}},this)}this.h=a};var S=function(){};S.prototype.aa=k;S.prototype.L=function(){if(!this.aa){this.aa=h;this.n()}};S.prototype.n=function(){};var T=function(a,b){this.type=a;this.currentTarget=this.target=b};A(T,S);T.prototype.n=function(){delete this.type;delete this.target;delete this.currentTarget};T.prototype.z=k;T.prototype.O=h;var U=function(a,b){a&&this.M(a,b)};A(U,T);l=U.prototype;l.target=j;l.relatedTarget=j;l.offsetX=0;l.offsetY=0;l.clientX=0;l.clientY=0;l.screenX=0;l.screenY=0;l.button=0;l.keyCode=0;l.charCode=0;l.ctrlKey=k;l.altKey=k;l.shiftKey=k;l.metaKey=k;l.ta=k;l.ba=j;
l.M=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;if(b=a.relatedTarget){if(Oa)try{b=b.nodeName&&b}catch(d){b=j}}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.ta=Ia?a.metaKey:a.ctrlKey;this.ba=a;delete this.O;delete this.z};Na&&Ya("8");U.prototype.n=function(){U.P.n.call(this);this.relatedTarget=this.currentTarget=this.target=this.ba=j};var V=function(a,b){this.fa=b;this.q=[];if(a>this.fa)throw Error("[goog.structs.SimplePool] Initial cannot be greater than max");for(b=0;b<a;b++)this.q.push(this.j?this.j():{})};A(V,S);V.prototype.j=j;V.prototype.$=j;V.prototype.r=function(){if(this.q.length)return this.q.pop();return this.j?this.j():{}};var W=function(a,b){a.q.length<a.fa?a.q.push(b):Mb(a,b)},Mb=function(a,b){if(a.$)a.$(b);else if(ba(b.L))b.L();else for(var c in b)delete b[c]};
V.prototype.n=function(){V.P.n.call(this);for(var a=this.q;a.length;)Mb(this,a.pop());delete this.q};var Nb;var Ob=(Nb="ScriptEngine"in m&&m.ScriptEngine()=="JScript")?m.ScriptEngineMajorVersion()+"."+m.ScriptEngineMinorVersion()+"."+m.ScriptEngineBuildVersion():"0";var Pb=function(){},Qb=0;l=Pb.prototype;l.key=0;l.A=k;l.R=k;l.M=function(a,b,c,d,f,e){if(ba(a))this.da=h;else if(a&&a.handleEvent&&ba(a.handleEvent))this.da=k;else throw Error("Invalid listener argument");this.G=a;this.ia=b;this.src=c;this.type=d;this.capture=!!f;this.U=e;this.R=k;this.key=++Qb;this.A=k};l.handleEvent=function(a){if(this.da)return this.G.call(this.U||this.src,a);return this.G.handleEvent.call(this.G,a)};var Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac;
(function(){function a(){return{a:0,f:0}}function b(){return[]}function c(){var t=function(Ac){return g.call(t.src,t.key,Ac)};return t}function d(){return new Pb}function f(){return new U}var e=Nb&&!(Da(Ob,"5.7")>=0),g;Wb=function(t){g=t};if(e){Rb=function(){return i.r()};Sb=function(t){W(i,t)};Tb=function(){return o.r()};Ub=function(t){W(o,t)};Vb=function(){return n.r()};Xb=function(){W(n,c())};Yb=function(){return p.r()};Zb=function(t){W(p,t)};$b=function(){return u.r()};ac=function(t){W(u,t)};
var i=new V(0,600);i.j=a;var o=new V(0,600);o.j=b;var n=new V(0,600);n.j=c;var p=new V(0,600);p.j=d;var u=new V(0,600);u.j=f}else{Rb=a;Sb=r;Tb=b;Ub=r;Vb=c;Xb=r;Yb=d;Zb=r;$b=f;ac=r}})();var X={},Y={},Z={},bc={},cc=function(a,b,c,d,f){if(b)if(v(b)){for(var e=0;e<b.length;e++)cc(a,b[e],c,d,f);return j}else{d=!!d;var g=Y;b in g||(g[b]=Rb());g=g[b];if(!(d in g)){g[d]=Rb();g.a++}g=g[d];var i=z(a),o;g.f++;if(g[i]){o=g[i];for(e=0;e<o.length;e++){g=o[e];if(g.G==c&&g.U==f){if(g.A)break;return o[e].key}}}else{o=g[i]=Tb();g.a++}e=Vb();e.src=a;g=Yb();g.M(c,e,a,b,d,f);c=g.key;e.key=c;o.push(g);X[c]=g;Z[i]||(Z[i]=Tb());Z[i].push(g);if(a.addEventListener){if(a==m||!a.Z)a.addEventListener(b,e,d)}else a.attachEvent(dc(b),
e);return c}else throw Error("Invalid event type");},ec=function(a,b,c,d,f){if(v(b)){for(var e=0;e<b.length;e++)ec(a,b[e],c,d,f);return j}a=cc(a,b,c,d,f);X[a].R=h;return a},fc=function(a,b,c,d,f){if(v(b)){for(var e=0;e<b.length;e++)fc(a,b[e],c,d,f);return j}d=!!d;a:{e=Y;if(b in e){e=e[b];if(d in e){e=e[d];a=z(a);if(e[a]){a=e[a];break a}}}a=j}if(!a)return k;for(e=0;e<a.length;e++)if(a[e].G==c&&a[e].capture==d&&a[e].U==f)return gc(a[e].key);return k},gc=function(a){if(!X[a])return k;var b=X[a];if(b.A)return k;
var c=b.src,d=b.type,f=b.ia,e=b.capture;if(c.removeEventListener){if(c==m||!c.Z)c.removeEventListener(d,f,e)}else c.detachEvent&&c.detachEvent(dc(d),f);c=z(c);f=Y[d][e][c];if(Z[c]){var g=Z[c],i=ia(g,b);i>=0&&B.splice.call(g,i,1).length==1;g.length==0&&delete Z[c]}b.A=h;f.ga=h;hc(d,e,c,f);delete X[a];return h},hc=function(a,b,c,d){if(!d.N)if(d.ga){for(var f=0,e=0;f<d.length;f++)if(d[f].A){var g=d[f].ia;g.src=j;Xb(g);Zb(d[f])}else{if(f!=e)d[e]=d[f];e++}d.length=e;d.ga=k;if(e==0){Ub(d);delete Y[a][b][c];
Y[a][b].a--;if(Y[a][b].a==0){Sb(Y[a][b]);delete Y[a][b];Y[a].a--}if(Y[a].a==0){Sb(Y[a]);delete Y[a]}}}},ic=function(a,b,c){var d=0,f=a==j,e=b==j,g=c==j;c=!!c;if(f)oa(Z,function(o){for(var n=o.length-1;n>=0;n--){var p=o[n];if((e||b==p.type)&&(g||c==p.capture)){gc(p.key);d++}}});else{a=z(a);if(Z[a]){a=Z[a];for(f=a.length-1;f>=0;f--){var i=a[f];if((e||b==i.type)&&(g||c==i.capture)){gc(i.key);d++}}}}return d},dc=function(a){if(a in bc)return bc[a];return bc[a]="on"+a},kc=function(a,b,c,d,f){var e=1;b=
z(b);if(a[b]){a.f--;a=a[b];if(a.N)a.N++;else a.N=1;try{for(var g=a.length,i=0;i<g;i++){var o=a[i];if(o&&!o.A)e&=jc(o,f)!==k}}finally{a.N--;hc(c,d,b,a)}}return Boolean(e)},jc=function(a,b){b=a.handleEvent(b);a.R&&gc(a.key);return b};
Wb(function(a,b){if(!X[a])return h;a=X[a];var c=a.type,d=Y;if(!(c in d))return h;d=d[c];var f,e;if(Na){f=b||aa("window.event");b=h in d;var g=k in d;if(b){if(f.keyCode<0||f.returnValue!=undefined)return h;a:{var i=k;if(f.keyCode==0)try{f.keyCode=-1;break a}catch(o){i=h}if(i||f.returnValue==undefined)f.returnValue=h}}i=$b();i.M(f,this);f=h;try{if(b){for(var n=Tb(),p=i.currentTarget;p;p=p.parentNode)n.push(p);e=d[h];e.f=e.a;for(var u=n.length-1;!i.z&&u>=0&&e.f;u--){i.currentTarget=n[u];f&=kc(e,n[u],
c,h,i)}if(g){e=d[k];e.f=e.a;for(u=0;!i.z&&u<n.length&&e.f;u++){i.currentTarget=n[u];f&=kc(e,n[u],c,k,i)}}}else f=jc(a,i)}finally{if(n){n.length=0;Ub(n)}i.L();ac(i)}return f}e=new U(b,this);try{f=jc(a,e)}finally{e.L()}return f});var lc=function(a,b){this.V=b||"en"},mc=function(a){var b=G("img");b.src=ta("http://books.google.com/intl/%s/googlebooks/images/gbs_preview_button1.gif",a.V);b.border=0;H(b,"cursor","pointer");return b},nc=function(a,b,c){this.V=c||"en";c=G("a");c.href=b;a.appendChild(c);a=mc(this);c.appendChild(a)};A(nc,lc);var oc=function(a,b,c){this.V=c||"en";c=mc(this);a.appendChild(c);H(a,"cursor","pointer");cc(a,"click",b)};A(oc,lc);var qc=function(a){var b=document.getElementsByTagName("body")[0],c=G("div");qb(c,0.5);H(c,{backgroundColor:"#333",position:"absolute",zIndex:200});this.ma=c;var d=ab(window);ob(c,b.scrollWidth,Math.max(b.scrollHeight,d.height));nb(c,0,0);b.appendChild(c);this.I=G("div");H(this.I,{position:"absolute",zIndex:201});b.appendChild(this.I);this.C=G("div");ob(this.C,618,500);H(this.C,{backgroundColor:"#333",position:"absolute",zIndex:202});nb(this.C,3,3);qb(this.C,0.3);this.I.appendChild(this.C);this.w=
G("div");nb(this.w,0,0);H(this.w,{position:"absolute",padding:"8px",border:"1px solid #2c4462",backgroundColor:"#b4cffe",zIndex:203});b=G("div");H(b,{backgroundColor:"#d8e8fd",fontSize:"16px",fontFamily:"Arial, sans-serif",fontWeight:"bold",padding:"2px 2px 2px 5px"});this.w.appendChild(b);c=G("img");c.src="http://books.google.com/googlebooks/images/dialog_close_x.gif";c.width=15;c.height=15;H(c,{cursor:"pointer",position:"absolute",right:"11px",top:"11px"});ec(c,"click",fa(this.close,this));b.appendChild(c);
c=G("div");c.innerHTML="&nbsp;";b.appendChild(c);this.Y=G("div");this.w.appendChild(this.Y);ob(this.Y,600,456);this.I.appendChild(this.w);pc(this.Y,a);b=ab(window);a=Math.max(0,(b.height-500)/2);c=!Pa&&document.compatMode=="CSS1Compat"?document.documentElement:document.body;a=Math.floor(a+(new na(c.scrollLeft,c.scrollTop)).y);b=Math.max(0,(b.width-618)/2);b=Math.floor(b);nb(this.I,b,a)};qc.prototype.close=function(){ja([this.w,this.ma,this.C],eb)};var rc=function(a,b){this.J=new K(a);this.na=b?b:"callback";this.X=5E3},sc=0;
rc.prototype.send=function(a,b,c,d){if(!document.documentElement.firstChild){c&&c(a);return j}d=d||"_"+(sc++).toString(36)+ha().toString(36);m._callbacks_||(m._callbacks_={});var f=G("script"),e=j;if(this.X>0)e=m.setTimeout(tc(d,f,a,c),this.X);c=this.J.g();for(var g in a)if(!a.hasOwnProperty||a.hasOwnProperty(g))Jb(c,g,a[g]);if(b){m._callbacks_[d]=uc(d,f,b,e);Jb(c,this.na,"_callbacks_."+d)}$a(f,{type:"text/javascript",id:d,charset:"UTF-8",src:c.toString()});document.getElementsByTagName("head")[0].appendChild(f);
return{ua:d,X:e}};var tc=function(a,b,c,d){return function(){vc(a,b,k);d&&d(c)}},uc=function(a,b,c,d){return function(){m.clearTimeout(d);vc(a,b,h);c.apply(undefined,arguments)}},vc=function(a,b,c){m.setTimeout(function(){eb(b)},0);if(m._callbacks_[a])if(c)delete m._callbacks_[a];else m._callbacks_[a]=r};var wc=function(){};A(wc,S);l=wc.prototype;l.Z=h;l.W=j;l.addEventListener=function(a,b,c,d){cc(this,a,b,c,d)};l.removeEventListener=function(a,b,c,d){fc(this,a,b,c,d)};
l.dispatchEvent=function(a){a=a;if(x(a))a=new T(a,this);else if(a instanceof T)a.target=a.target||this;else{var b=a;a=new T(a.type,this);sa(a,b)}b=1;var c,d=a.type,f=Y;if(d in f){f=f[d];d=h in f;var e;if(d){c=[];for(e=this;e;e=e.W)c.push(e);e=f[h];e.f=e.a;for(var g=c.length-1;!a.z&&g>=0&&e.f;g--){a.currentTarget=c[g];b&=kc(e,c[g],a.type,h,a)&&a.O!=k}}if(k in f){e=f[k];e.f=e.a;if(d)for(g=0;!a.z&&g<c.length&&e.f;g++){a.currentTarget=c[g];b&=kc(e,c[g],a.type,k,a)&&a.O!=k}else for(c=this;!a.z&&c&&e.f;c=
c.W){a.currentTarget=c;b&=kc(e,c,a.type,k,a)&&a.O!=k}}a=Boolean(b)}else a=h;return a};l.n=function(){wc.P.n.call(this);ic(this);this.W=j};var xc=function(a){this.url=a;this.ja=j;this.ea=h};A(xc,wc);xc.prototype.T=function(){if(this.ea)this.ea=k;else throw{};};xc.prototype.r=function(){return this.ja};var $=function(a){xc.call(this,a);this.sa=new rc(a);this.F=h};A($,xc);$.prototype.T=function(a,b){$.P.T.call(this,a,b);this.F=k;this.sa.send({},fa(this.qa,this,a),fa(this.pa,this,b))};$.prototype.qa=function(a,b){if(!this.F){this.ja=b;this.dispatchEvent("success");a&&a(this.r());this.F=h}};$.prototype.pa=function(a){if(!this.F){this.dispatchEvent("error");a&&a();this.F=h}};var zc=function(a,b,c,d){v(a)||(a=[a]);this.ca=a;this.ka=b;this.ha=c;b=new K(yc);O(b,"bibkeys",a.join(","));O(b,"hl",GBS_LANG);O(b,"source",d||"previewlib");(new $(b)).T(fa(this.oa,this))},yc=(GBS_HOST||"http://books.google.com/")+"books?jscmd=viewapi";zc.prototype.oa=function(a){for(var b=0;b<this.ca.length;b++){var c=a[this.ca[b]];if(c){var d=c.preview_url;if(d&&Bc(c)){this.ka&&this.ka(d);return}}}this.ha&&this.ha()};
var Bc=function(a){var b=a.preview;a=a.embeddable;a!==undefined||(a=h);return(b=="full"||b=="partial")&&a};q("GBS_insertPreviewButtonLink",function(a,b){b=ga(Cc,(b||{}).alternativeUrl);Dc(a,b,"GBS_insertPreviewButtonLink")},void 0);q("GBS_insertPreviewButtonPopup",function(a){Dc(a,Ec,"GBS_insertPreviewButtonPopup")},void 0);q("GBS_insertEmbeddedViewer",function(a,b,c){Dc(a,ga(Fc,b,c),"GBS_insertEmbeddedViewer")},void 0);
var Dc=function(a,b,c){var d=Gc();new zc(a,function(f){b(d,f)},j,c)},Cc=function(a,b,c){if(a)a=a;else{a=new K(c);if(Hc){c=new K(GBS_HOST);yb(a,c.l);Ab(a,c.u);Bb(a,c.t);Cb(a,"/books/p/"+Hc)}O(a,"hl",Ic||"en");a=a.toString()}new nc(b,a,Ic)},Ec=function(a,b){b=ga(Jc,b);new oc(a,b,Ic)},Fc=function(a,b,c,d){var f=G("div");c.appendChild(f);ob(f,a,b);pc(f,d)},pc=function(a,b){var c=cb("iframe",{frameBorder:"0",width:"100%",height:"100%"});a.appendChild(c);a=new K(b);O(a,"output","embed");Kc&&Eb(a,va(hb(new fb,
Kc)));c.src=a.toString()},Jc=function(a){new qc(a)},Ic="en";q("GBS_setLanguage",function(a){Ic=a},void 0);q("GBS_setViewerOptions",function(a){Kc=a},void 0);var Hc=j;q("GBS_setCobrandName",function(a){Hc=a},void 0);var Kc={},Gc=function(){var a="__GBS_Button"+Lc++;document.write(ta('<span id="%s"></span>',a));return x(a)?document.getElementById(a):a},Lc=0;cc(window,"unload",function(){ic()});
})();
