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