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