try { 
var nd=this;function od(a){if(!(a&&typeof a=="object")){return false}for(var b in a){return false}return true}var tb="lang_hashCode_",rc=0;function Nb(a){if(!a[tb]){a[tb]=++rc}return a[tb]};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};if(!Function.prototype.apply){Function.prototype.apply=function(a,b){var c=[],d,e;if(!a)a=nd;var h=b||[];for(var i=0;i<h.length;i++){c[i]="args["+i+"]"}e="oScope.__applyTemp__.peek()("+c.join(",")+");";if(!a.__applyTemp__){a.__applyTemp__=[]}a.__applyTemp__.push(this);
d=eval(e);a.__applyTemp__.pop();return d}}if(!Array.prototype.push){Array.prototype.push=function(){for(var a=0;a<arguments.length;a++){this[this.length]=arguments[a]}return this.length}}if(!Array.prototype.pop){Array.prototype.pop=function(){if(!this.length){return}var a=this[this.length-1];this.length--;return a}}Array.prototype.peek=function(){return this[this.length-1]};if(!Array.prototype.shift){Array.prototype.shift=function(){if(this.length==0){return}var a=this[0];for(var b=0;b<this.length-
1;b++){this[b]=this[b+1]}this.length--;return a}}if(!Array.prototype.unshift){Array.prototype.unshift=function(){var a=arguments.length;for(var b=this.length-1;b>=0;b--){this[b+a]=this[b]}for(var c=0;c<a;c++){this[c]=arguments[c]}return this.length}}if(!Array.prototype.c){Array.prototype.c=function(a,b){for(var c=0;c<this.length;c++){a.call(b,this[c],c,this)}}}function pc(a,b,c){var d=a.Ti||[];d=d.concat(Array.prototype.slice.call(arguments,2));if(typeof a.rf!="undefined"){b=a.rf}if(typeof a.qf!=
"undefined"){a=a.qf}var e=function(){var h=d.concat(Array.prototype.slice.call(arguments));return a.apply(b,h)};e.Ti=d;e.rf=b;e.qf=a;return e}Function.prototype.bind=function(a){return pc.apply(null,[this,a].concat(Array.prototype.slice.call(arguments,1)))};Function.prototype.partial=function(){return pc.apply(null,[this,null].concat(Array.prototype.slice.call(arguments)))};Function.prototype.inherits=function(a){var b=function(){};b.prototype=a.prototype;this.z=a.prototype;this.prototype=new b};if(!Array.prototype.filter){Array.prototype.filter=function(a,b){var c=[];this.c(function(d,e,h){if(a.call(b,d,e,h)){c.push(d)}});return c}}if(!Array.prototype.map){Array.prototype.map=function(a,b){var c=[];this.c(function(d,e,h){c.push(a.call(b,d,e,h))});return c}}if(!Array.prototype.some){Array.prototype.some=function(a,b){for(var c=0;c<this.length;c++){if(a.call(b,this[c],c,this)){return true}}return false}}if(!Array.prototype.every){Array.prototype.every=function(a,b){for(var c=0;c<this.length;c++){if(!a.call(b,
this[c],c,this)){return false}}return true}}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(a,b){var c=b||0;if(c<0){c=Math.max(this.length+c,0)}for(var d=c;d<this.length;d++){if(a===this[d]){return d}}return-1}}if(!Array.prototype.lastIndexOf){Array.prototype.lastIndexOf=function(a,b){var c=b==null?this.length-1:b;if(c<0){c=this.length+c}for(var d=c;d>=0;d--){if(a===this[d]){return d}}return-1}}Array.prototype.contains=function(a){return this.indexOf(a)!=-1};var Da="change",B="click";var hb="dragstart",gb="dragmove",Cb="interactionmodechange",ka="mousedown",mb="mouseout",nb="mouseover",Aa="pagechange",ob="pagemodechange",Hb="pagesupdate",va="resize",La="update",Ma="viewportmodechange",Ya="zoomout";var H={};H.cancel=function(a){var a=a||window.event;if(a.preventDefault)a.preventDefault();if(a.stopPropagation)a.stopPropagation();a.cancelBubble=true;a.returnValue=false;return false};H.getTargetElement=function(a){if(a.target){var b=a.target;return b}else if(a.srcElement){return a.srcElement}else if(a.currentTarget){return a.currentTarget}};var j,aa,E;(function(){var a={},b=0;j=c.partial(false);aa=c.partial(true);function c(h,i,m,r){var u={node:i,event:m,callback:r,id:b++};u.handler=d.partial(u,h);if(i.addEventListener){i.addEventListener(m,u.handler,false)}else if(i.attachEvent){i.attachEvent("on"+m,u.handler)}else{throw new Error;}a[u.id]=u;return u.id}E=function(h){var i=a[h];delete a[h];if(i){if(i.node.removeEventListener){i.node.removeEventListener(i.event,i.handler,false)}else if(i.node.detachEvent){i.node.detachEvent("on"+i.event,
i.handler)}for(var m in i){delete i[m]}delete i;return true}return false};function d(h,i,m){var r=h.callback;if(i)E(h.id);if(r){r(m)}}function e(){for(var h in a){E(h)}}aa(window,"unload",e)})();var g={};g.wrapNodeInDiv=function(a){var b=document.createElement("div");g.wrapNode(a,b);return b};g.wrapNode=function(a,b){var c=a.parentNode;c.insertBefore(b,a);g.removeNode(a);b.appendChild(a)};g.removeNode=function(a){a.parentNode.removeChild(a)};g.maybeRemoveNode=function(a){if(a.parentNode)g.removeNode(a)};g.wrapBelowNode=function(a,b){var c=b||g.createElement("div");g.insertFirst(a,c);while(c.nextSibling){g.appendChild(c,c.nextSibling)}return c};g.createElement=function(a,b){return(b||document).createElement(a)};
g.createTextNode=function(a,b){return(b||document).createTextNode(a)};g.appendChild=function(a,b){a.appendChild(b);return b};g.insertFirst=function(a,b){if(a.firstChild){a.insertBefore(b,a.firstChild)}else{a.appendChild(b)}return a};g.focusElement=function(a){if(a.focus)a.focus()};g.emptyNode=function(a){while(a.firstChild){a.removeChild(a.firstChild)}};g.walkDOM=function(a,b){var c=a.firstChild;while(c){b(c);g.walkDOM(c,b);c=c.nextSibling}};g.isNodeType=function(a,b){return a.tagName.toLowerCase()==
b.toLowerCase()};g.getParentWithClass=function(a,b){if(b instanceof Array){while(a){if(g.isClass(a,b))return a;a=a.parentNode}}else{return g.getParentWithClass(a,[b])}};g.isClass=function(a,b){if(b instanceof Array){return a.className.split(" ").some(function(c){return b.contains(c)})}else return g.isClass(a,[b])};var f={};f.setStyles=function(a,b){if(a instanceof Array){for(var c=0;c<a.length;c++){f.setStyles(a[c],b)}}else{for(var d in b){var e=b[d],h=f.Qf[d];a.style[d]=h?h(e):e}}};f.setAttributeForNodeAndChildren=function(a,b,c){if(a.setAttribute){a.setAttribute(b,c);var d=a.childNodes;for(var e=0;e<d.length;e++){f.setAttributeForNodeAndChildren(d[e],b,c)}}};f.setAttributes=function(a,b){if(a instanceof Array){a.c(function(e){f.setAttributes(e,b)})}else{for(var c in b){var d=b[c];a[c]=d}}};f.setStylesForNodeAndChildren=
function(a,b){if(a.style){f.setStyles(a,b);for(var c=a.firstChild;c!=null;c=c.nextSibling){f.setStylesForNodeAndChildren(c,b)}}};f.Ce=function(a){return a.toString().replace(f.Kj,"$1px")};f.Kj=/\b(-?\d+(?!%))\b/g;f.Qf={};(function(){function a(i,m){f.Qf[m]=i}var b=["top","left","right","bottom","width","height","fontSize"];for(var c=0;c<b.length;c++){a(f.Ce,b[c])}var d=["margin","padding","border"],e=["Top","Left","Right","Bottom"];for(var c=0;c<d.length;c++){a(f.Ce,d[c]);for(var h=0;h<e.length;h++){a(f.Ce,
d[c]+e[h])}}})();var ad={color:"#0000cc",cursor:"pointer",textDecoration:"underline"};var z;(function(){function a(){this.IE=function(){if(this.OPERA())return false;try{return this.Run(document.all&&!document.contains)!=false}catch(b){if(document.all)return true;return false}};this.IE_5_5_newer=function(){try{return this.Run(this.IE()&&Array.prototype.pop)!=false}catch(b){return false}};this.IE_5_Mac=function(){try{return true==undefined}catch(b){return(document.all&&document.getElementById&&!document.mimeType&&!window.opera)!=false}};this.OPERA=function(){try{return"opera"in window}catch(b){}return false};
this.OPERA_9=function(){try{if(this.OPERA()){var b=navigator.userAgent.toLowerCase(),c=parseFloat(b.substring(b.indexOf("opera ")+6));return c>=9}}catch(d){}return false};this.MOZILLA=function(){try{return this.Run(document.implementation&&document.implementation.createDocument&&!document.contains)!=false}catch(b){return false}};this.SAFARI=function(){try{return this.Run(document.implementation&&document.implementation.createDocument&&document.contains)!=false}catch(b){return false}};this.DOM=function(){return document.getElementById};
this.Run=function(b){if(b==undefined){return false}else{return b}}}z=new a})();var _Detect=z;var s="/googlebooks/images/",cc=s+"dialog_close_x.gif";var xa=z.IE()?"hand":"pointer",cb="/images/cleardot.gif";var fa="absolute";var Ab=18242;var Rc=18075;var Lc=540,Oc=18067,Nc=18068,Fc=18420,Ec=18355,Wc=18345,Xc=18346,Mc=18407,Tc=18408,Ic=3308,Jc=18108,Vc=18488,Uc=18489,Qc=18516,Pc=18517;var Dc=18519;var Ac=18521,Cc=18522,Bc=18523,Sc=18524,Kc=18163,Hc=18568,Gc=18569;var k={};k.arrayToHash=function(a){var b={};for(var c=0;c<a.length;c++){b[a[c]]=true}return b};k.getUniqueId=function(){return"_nn"+k.Wi++};k.Wi=0;k.compareIntegers=function(a,b){return a-b};k.getArrayIterator=function(a){var b=0;return{hasNext:function(){return b<a.length},next:function(){return a[b++]}}};k.emptyFunction=function(){};k.format=function(a){for(var b=1;b<arguments.length;b++){var c=k.Rf[b]||(k.Rf[b]=new RegExp("\\%"+b+"\\$."));a=a.replace(c,arguments[b].toString())}return a};k.Rf={};
k.instanceOf=function(a,b){return a instanceof b};k.reverseInstanceOf=function(a,b){return b instanceof a};k.getNumKeys=function(a){var b=0;for(var c in a)b++;return b};k.evaluate=function(a){if(a instanceof Function){return a()}else{return a}};k.getBody=function(){return k.Aa||(k.Aa=document.getElementsByTagName("body")[0])};k.getElemById=function(a){return document.getElementById(a)};function _OC_addMsg(a,b){if(!window[_OC_MSG_HOOK])window[_OC_MSG_HOOK]={};window[_OC_MSG_HOOK][a]=b}function _OC_addMsgs(a){for(var b in a){_OC_addMsg(b,a[b])}}var _OC_MSG_HOOK="_OC_MSG";var q={};q.get=function(a,b,c){var d=oc();d.onreadystatechange=q.Ih.partial(d,b,c);d.open("GET",a,true);d.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");d.send(null);return d};q.post=function(a,b,c,d){var e=oc();e.onreadystatechange=q.Ih.partial(e,c,d);e.open("POST",a,true);e.send(b)};q.getJSONObject=function(a,b,c){return q.get(a,q.lg.partial(b,c),c)};q.getJSONObjectViaPost=function(a,b,c,d){return q.post(a,b,q.lg.partial(c,d),d)};q.Ih=function(a,b,c){if(a.readyState==4){var d;
try{d=a.status}catch(e){}if(d==200){b(a.responseText)}else if(c){c(d)}a.onreadystatechange=k.emptyFunction}};q.lg=function(a,b,c){try{var d=eval("("+c+")")}catch(e){if(b){b(e)}}a(d)};q.postEncode=function(a){return encodeURIComponent(a).replace(/%20/g,"+")};q.encodePostParameters=function(a){var b=[];for(var c in a){b.push([q.postEncode(c),"=",q.postEncode(a[c])].join(""))}return b.join("&")};var _XH_ACTIVE_X_IDENTS=["MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP",
"MICROSOFT.XMLHTTP.1.0","MICROSOFT.XMLHTTP.1","MICROSOFT.XMLHTTP"],_xh_ieProgId=undefined;function _XH_XmlHttpInit(){if(typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){for(var a=0;a<_XH_ACTIVE_X_IDENTS.length;a++){var b=_XH_ACTIVE_X_IDENTS[a];try{new ActiveXObject(b);_xh_ieProgId=b;break}catch(c){}}if(undefined===_xh_ieProgId){throw"Could not create ActiveXObject. ActiveX might be disabled, or msxml might not be installed";}}}_XH_XmlHttpInit();function oc(){if(_xh_ieProgId!==
undefined){return new ActiveXObject(_xh_ieProgId)}else{return new XMLHttpRequest}};function p(){this.la={}}p.prototype.addEventListener=function(a,b){if(!(a in this.la)){this.la[a]={}}var c=Nb(b);this.la[a][c]=b};p.prototype.removeEventListener=function(a,b){if(a in this.la){var c=Nb(b);delete this.la[a][c]}};p.prototype.dispatchEvent=function(a){if(typeof a=="string"){a={type:a}}var b=a.type,c=true,d,e,h;if(!b){throw new Error("Error when dispatching event. Missing type");}if(b in this.la){e=this.la[b];if(!a.target){a.target=this}a=p.ej(a);for(var i in e){h=this.la[b][i];if(typeof h==
"function"){d=h.call(this,a)}else if(typeof h.handleEvent=="function"){d=h.handleEvent.call(h,a)}if(c&&d==false){c=false}}}return c&&!(a.returnValue==false)};p.prototype.hasEventListener=function(a){if(a in this.la){return od(this.la[a])}return false};p.ej=function(a){if(!a.target){a.target=a.srcElement}if(!a.stopPropagation){a.stopPropagation=p.Wj}if(!a.preventDefault){a.preventDefault=p.Lj}return a};p.Lj=function(){this.returnValue=false};p.Wj=function(){this.cancelBubble=true};var F={};F.setUrls=function(a,b){F.dj=a;F.Xi=b};F.getContainerDiv=function(a){return g.getParentWithClass(a,"sbsedit")};F.edit=function(a){g.getParentWithClass(a,"sbs").className="sbsedit"};F.save=function(a){var b=F.getContainerDiv(a);q.post(F.dj,q.encodePostParameters(q.findPostParams(b)),F.Ib.bind(b),F.Fb.bind(b))};F.remove=function(a){var b=F.getContainerDiv(a);q.post(F.Xi,q.encodePostParameters(q.findPostParams(b)),F.Ib.bind(b),F.Fb.bind(b))};F.cancel=function(a){F.getContainerDiv(a).className=
"sbs"};F.Ib=function(a){this.innerHTML=a;this.className="sbs"};F.Fb=function(){throw{};};var _OC_AnnotationEditor=F;function Pa(a,b,c,d,e,h){this.Jj=c;this.Sb=a;this.Ii=b;this.Ef=e;this.Oj=h;a.onclick="";this.click(d);setTimeout(this.di.bind(this),0)}Pa.prototype.di=function(){j(this.Sb,B,this.click.bind(this))};Pa.prototype.click=function(a){if(a){if(!g.isNodeType(H.getTargetElement(a),"a")){return}H.cancel(a)}if(!this.Ef||confirm(this.Ef)){this.ye=this.Sb.innerHTML;this.Sb.innerHTML='<span style="color:gray">'+_OC_MSG[Ab]+"</span>";q.getJSONObjectViaPost(this.Ii,q.encodePostParameters(this.Jj),this.Ib.bind(this),
this.Fb.bind(this))}};Pa.prototype.Ib=function(a){if(this.Oj){window.location.reload(true)}else{var b=a.redirect_url;if(b){window.location.href=b}else{this.Sb.innerHTML=a.html;this.Ii=a.url}}};Pa.prototype.Fb=function(){this.Sb.innerHTML=this.ye};var _OC_AjaxLink=Pa;function ra(a,b){p.call(this);this.Vb=[];this.fh=-1;f.setStyles(b,{display:"none"});for(var c=0;c<b.options.length;c++){var d=g.createElement("span");f.setAttributes(d,{title:b.options[c].text,index:c});this.Oe(d,c,false);g.appendChild(a,d);this.Vb.push(d)}this.of=b;this.Me(b.selectedIndex);this.Kb(this.Db());j(a,B,this.Sg.bind(this));j(a,mb,this.$.bind(this));j(a,nb,this.ra.bind(this))}ra.inherits(p);ra.prototype.Kb=function(a){this.fh=a;for(var b=1,c;c=this.Vb[b];b++){this.Oe(c,b,b<=a)}};ra.prototype.Me=
function(a){if(a>=this.Vb.length||a<0)return;if(a==this.Db())return;this.of.selectedIndex=a;this.Kb(this.Db());this.dispatchEvent(Da)};ra.prototype.Db=function(){return this.of.selectedIndex};ra.prototype.ra=function(a){var b=H.getTargetElement(a).index;if(this.fh==b)return;this.Kb(b)};ra.prototype.$=function(a){if(a.relatedTarget&&typeof a.relatedTarget.index!="undefined")return;this.Kb(this.Db())};ra.prototype.Sg=function(a){if(a.relatedTarget&&typeof a.relatedTarget.index!="undefined")return;this.Me(H.getTargetElement(a).index)};
ra.prototype.Oe=function(a,b,c){if(b==0)return;var d=13;if(b==1)d=20;if(b==this.Vb.length-1)d=18;var e=c?"0px -60px":"0px -40px";if(b==1)e=c?"0px -20px":"0px 0px";if(b==this.Vb.length-1){e=c?"0px -100px":"0px -80px"}f.setStyles(a,{paddingLeft:d,height:19,cursor:"pointer",cssFloat:"left",backgroundImage:"url(/googlebooks/rating_star.gif)",backgroundRepeat:"no-repeat",backgroundPosition:e})};var _OC_RatingsFactory=function(a,b){var c=k.getElemById(a);return new ra(c,k.getElemById(b))};var R=function(a){p.call(this);this.b=a.ia();g.focusElement(this.b);this.a=a;this.m=525;this.d=[];this.b.innerHTML="";f.setStyles(this.b,md);this.w=g.createElement("div");g.appendChild(this.b,this.w);this.Ga=this.vd();f.setStyles(this.Ga,jc);this.fa=this.vd();f.setStyles(this.fa,jc);this.Rb();this.d.push(j(this.a,va,this.Rb.bind(this)))};R.inherits(p);R.prototype.Rb=function(){this.ma=l.getNodeHeight(this.b);this.D=l.getNodeWidth(this.b)};var md={overflow:"auto",position:"relative"},jc={position:"absolute",
left:0,top:0};R.prototype.drag=function(a,b){this.b.scrollTop-=b;this.b.scrollLeft-=a};R.prototype.ia=function(){return this.b};R.prototype.oa=function(){return this.w};R.prototype.Cb=function(){return this.Ga};R.prototype.vd=function(){var a=g.createElement("div");g.appendChild(this.w,a);return a};R.prototype.sa=function(){if(this.jj){this.jj=false;return}if(this.a.getMode()==1){}else{if(this.currentPage){this.b.scrollTop=0;this.currentPage.r(this.a.getCurrentPageInfo())}}};R.prototype.Jb=function(a){var b=
this.D<this.ya.Nd()?[this.D]:[],c=this.ya.qg(this.m,a,b);if(c)this.Wc(c)};R.prototype.cleanup=function(){this.d.c(function(a){E(a)})};R.prototype.Dh=function(a){var b=this.a.kb(),c=a.k(),d={output:this.a.ib()==ua?"text":""};if(b.nh(c))b.zf(c);else if(!a.ph())a.Fd(d)};function w(a){R.call(this,a);this.wa=new Q(a,this,this.Ga);this.Wb={};this.bd=[];this.m=J.getWidthForImageWidth(w.lh);this.hf=this.m/a.hb().sc();this.ea=a.vg();this.ea.Pe(this.hf);this.ya=new Za([350,410,495,575,685,800,910,1025].map(J.getWidthForImageWidth));this.d.push(j(this.a,va,this.C.bind(this)));this.d.push(j(this.a,Aa,this.sa.bind(this)));this.d.push(j(this.a,"zoomin",this.Jb.bind(this,1)));this.d.push(j(this.a,Ya,this.Jb.bind(this,-1)));this.d.push(j(this.a,Hb,this.Zg.bind(this)));this.d.push(j(this.a,
ob,this.Yg.bind(this)));this.C();this.b.scrollTop=this.ea.Kd(this.a.g());setTimeout(this.Gh.bind(this),0)}w.inherits(R);w.lh=575;w.prototype.cleanup=function(){w.z.cleanup.call(this);sb.Rc(this.Tj)};w.prototype.Oa=function(){return this.bd.map(function(a){return a.g()})};w.prototype.Wc=function(a){var b=this.b.scrollTop/this.ea.f(),c;if(this.m>this.D){c=this.b.scrollLeft/(this.m-this.D)}else{c=0.5}this.wa.Qc();this.qd();this.m=a;this.hf=this.m/this.a.hb().sc();this.ea.Pe(this.hf);this.C();var d=Math.floor(this.ea.f()*
b),e=this.m-this.D,h=Math.max(Math.round(e*c),0);this.Fa=true;setTimeout(this.oi.bind(this,d,h),0)};w.prototype.oi=function(a,b){this.Fa=false;this.b.scrollTop=a;this.b.scrollLeft=b;this.oc()};w.prototype.sa=function(){if(this.ih){this.ih=false;return}this.b.scrollTop=this.ea.Kd(this.a.g())};w.prototype.Gh=function(){this.sa();this.Tj=sb.vb(this.Ye.bind(this))};w.prototype.ng=function(){return Math.round((this.qe||this.b.scrollTop)+this.ma/2)};w.prototype.Ye=function(){if(this.Fa)return;if(this.qe!=
this.b.scrollTop){this.qe=this.b.scrollTop;this.th=0}if(this.ma<20)return;if(this.th>3)return;this.th++;var a=this.b.scrollTop,b=a+this.ma/2,c=this.tf(),d=c[0],e=c[1],h=e.filter(function(na){return na.uc(b)<800+this.ma/2},this);h.sort(function(na,Oa){return na.uc(b)-Oa.uc(b)});var i=this.wa.bg(),m=[];for(var r=0;r<i.length;r++){var u=i[r],x=u.g();if(!u.ba()){var M=true,S=[];S.push.apply(S,d);S.push.apply(S,h);for(var Ba=0;Ba<S.length;Ba++){var T=S[Ba];if(T instanceof pa&&T.g()==x){M=false;break}}if(M)m.push(u)}}m.c(function(na){this.wa.Jh(na)},
this);for(var r=0;r<d.length;r++){var T=d[r];this.Cd(T);if(T instanceof pa&&!this.bd.contains(T))this.Dh(T.g())}this.bd=d;var T;h.c(this.Cd,this);var Na=this.og();if(Na){var x=Na.g();if(this.a.g()!=x){this.ih=true;this.a.p(Ja,x.k())}}};w.prototype.Cd=function(a){if(a instanceof pa)this.Lf(a);else this.Mf(a)};w.prototype.Lf=function(a){if(!this.wa.qh(a.g())){var b=this.wa.sg();b.Yh(this.m,a.f());b.draw(this.D<=this.m);b.$b(a.q());b.r(a.g())}};w.prototype.Mf=function(a){if(!this.rh(a.id)){var b=new sa(this.fa,
a.zg(),a.rg(),a.id);b.Vc(this.D);b.$b(a.q());b.show();this.Mh(b)}};w.prototype.tf=function(){var a=this.ea.kg(),b=[],c=[],d=this.b.scrollTop,e=this.b.scrollTop+this.ma;for(var h=0;h<a.length;h++){var i=a[h],m=i.q(),r=i.V();if(m>=d&&m<=e||r>=d&&r<=e||m<d&&r>e){b.push(i)}else{c.push(i)}}return[b,c]};w.prototype.og=function(){var a=Math.round(this.b.scrollTop+this.ma/2),b=this.ea.jg(a);if(b instanceof pa){return this.wa.tg(b.g())}};w.prototype.oc=function(){this.qe=null;setTimeout(this.Ye.bind(this),
0)};w.prototype.Zg=function(){this.C()};w.prototype.C=function(){var a=this.D==this.m;this.Rb();this.Ub();if(a){this.m=Math.min(this.D,this.ya.Nd())}this.wa.Qc();this.qd();this.oc()};w.prototype.Yg=function(){this.wa.cleanup();this.wa=new Q(this.a,this,this.Ga);this.bd=[];this.oc()};w.prototype.Ub=function(){var a=l.getNodeWidth(this.b);if(a>this.m){f.setStyles(this.Ga,{left:Math.floor((a-this.m)/2)});f.setStyles(this.w,{width:""})}else{var b=this.m;f.setStyles(this.Ga,{left:0});f.setStyles(this.w,
{width:b})}f.setStyles(this.w,{height:this.ea.f()})};w.prototype.Mh=function(a){this.Wb[a.dg()]=a};w.prototype.qd=function(){for(var a in this.Wb){this.Wb[a].cleanup()}this.Wb={}};w.prototype.rh=function(a){return this.Wb[a]};function ma(a){R.call(this,a);this.m=D.getWidthForImageWidth(280);this.ya=new Za([180,220,280,350,410,495,575,685,800,910,1025].map(D.getWidthForImageWidth));this.d.push(j(this.a,va,this.C.bind(this)));this.d.push(j(this.a,Aa,this.sa.bind(this)));this.d.push(j(this.a,"zoomin",this.Jb.bind(this,1)));this.d.push(j(this.a,Ya,this.Jb.bind(this,-1)));this.d.push(j(this.a,ob,this.Xg.bind(this)));this.jc();this.ec=new db;this.sa();this.C()}ma.inherits(R);ma.prototype.jc=function(){this.n=new D(this.a,this.Ga);
this.n.ni(this.m);this.n.draw();this.n.bc(false);setTimeout(this.n.bc.bind(this.n,true),0)};ma.prototype.C=function(){this.Rb();this.Ub()};ma.prototype.Ub=function(){var a=Math.max(this.ma,this.n.f());f.setStyles(this.w,{height:a});var b,c;if(this.D>this.n.i()){b=Math.floor((this.D-this.n.i())/2);c=""}else{b=0;c=this.m}f.setStyles(this.Ga,{left:b});f.setStyles(this.w,{width:c})};ma.prototype.sa=function(){this.r(this.a.g())};ma.prototype.r=function(a){this.v=a;var b=a.ha()%2,c=a.k(),d=b?[-2,-1,0,
1,2,3]:[-3,-2,-1,0,1,2],e=[];for(var h=0;h<d.length;h++){var i=d[h];if(i){e.push(this.a.hb().yc(a.k(),i))}else{e.push(a)}}this.n.fi(e[2],e[3]);var m={output:this.a.ib()==ua?"text":""};[2,3].c(function(r){var u=e[r];if(u)u.Fd(m)});this.ec.clear();[4,5,0,1].c(function(r){var u=e[r];if(u)this.ec.lf(u,this.n.gg())},this)};ma.prototype.Oa=function(){return this.n.Oa()};ma.prototype.Wc=function(a){var b=this.n.i()-this.D,c=this.n.f()-this.ma,d=c>0?this.b.scrollTop/c:0.5,e=b>0?this.b.scrollLeft/b:0.5;this.m=
a;this.n.cleanup();this.ec.clear();this.jc();this.C();this.r(this.v);b=this.n.i()-this.D;c=this.n.f()-this.ma;this.b.scrollLeft=b>0?Math.round(b*e):0;this.b.scrollTop=c>0?Math.round(c*d):0;setTimeout(this.n.bc.bind(this.n,true),0)};ma.prototype.Xg=function(){this.n.cleanup();this.ec.clear();this.jc();this.C();this.r(this.v);setTimeout(this.n.bc.bind(this.n,true),0)};function db(){this.jh=[];this.j=[]}db.prototype.lf=function(a,b){this.j.push(a);if(a.Ca()){this.aa(a,b)}else{aa(a,La,this.aa.bind(this,
a,b))}};db.prototype.aa=function(a,b){if(this.j.contains(a)){var c=g.createElement("img");this.jh.push(c);c.src=y.getUrlForWidth(a.Ca(),b)}};db.prototype.clear=function(){var a;while(a=this.jh.pop())a.src=cb;this.j=[]};function ba(){p.call(this)}ba.inherits(p);ba.prototype.Ca=function(){return this.s.src};ba.prototype.xc=function(){return this.Rd().sc()};ba.prototype.rb=function(a){for(var b in a){this.s[b]=a[b]}this.dispatchEvent(La)};ba.prototype.ac=function(a){this.o=a};ba.prototype.Rd=function(){return this.o};ba.prototype.Qa=function(){return this.s.title};function qc(a,b,c){var d=c||L,e=b||ba,h=a.map(function(m){return new e(m)}),i=new d;i.Ea(h);return i}function L(){this.j=[]}L.prototype.Xh=function(a,b){this.Hf=a;this.Gf=b};L.prototype.sc=function(){return this.Hf};L.prototype.$f=function(){return this.Gf};L.prototype.ag=function(){return this.Hf/this.Gf};L.prototype.Ea=function(a){if(a instanceof Array){a.c(function(h){h.ac(this)},this);a.sort(L.Gj);for(var b=0;b<this.j.length;b++){var c=this.j[b].ha(),d=a[0].ha();if(c==d){this.j[b]=a.shift()}else if(c>
d){this.j.splice(b,0,a.shift())}if(a.length==0)return}var e;while(e=a.shift()){this.j.push(e)}}else{this.Ea([a])}};L.Gj=function(a,b){return a.ha()-b.ha()};L.prototype.length=function(){return this.j.length};L.prototype.wg=function(){return this.j};L.prototype.Pd=function(a){return this.j[a]};L.prototype.Ph=function(a){for(var b=0;b<this.j.length;b++){if(this.j[b].k()==a){this.j.splice(b,1)}}};L.prototype.yc=function(a,b){var c=-1;for(var d=0;d<this.j.length;d++){if(this.j[d].k()==a){c=d;break}}if(c>=
0){return this.j[b+c]}};L.prototype.gb=function(a){for(var b=0;b<this.j.length;b++){if(this.j[b].k()==a){return this.j[b]}}};L.prototype.xg=function(a){for(var b=0;b<this.j.length;b++){if(this.j[b].Qa()==a){return this.j[b]}}};function n(a){p.call(this);this.F=a;a.innerHTML="";this.b=g.createElement("div");g.insertFirst(this.F,this.b);this.kj=new Db(this);this.td=[];this.hc=[];this.Lh();this.Pc=Ua;this.le=v;this.cf=new U(this);this.ti=true}n.inherits(p);n.prototype.ia=function(){return this.b};n.prototype.go=function(){this.ea=new la(this);this.cf.go()};n.prototype.vg=function(){return this.ea};n.prototype.Uc=function(a){if(this.ef!=a){this.ef=a;this.dispatchEvent(Ma)}};n.prototype.Da=function(){return this.ef};n.prototype.ki=
function(a){this.ti=a};n.prototype.si=function(){return this.ti};n.prototype.Yb=function(a){if(a==za&&this.Pc==ua)return;this.le=a;this.dispatchEvent(Cb)};n.prototype.wc=function(){return this.le};n.prototype.kb=function(){return this.cf};n.prototype.Le=function(a){if(a==ua&&this.le==za){this.Yb(v)}this.Pc=a;this.dispatchEvent(ob)};n.prototype.ib=function(){return this.Pc};n.prototype.Fi=function(){this.Le(this.Pc==Ua?ua:Ua)};n.prototype.Da=function(){return this.ef};n.prototype.La=function(){return this.F};
n.prototype.ei=function(a){if(this.o)throw"";this.o=a};n.prototype.hb=function(){return this.o};n.prototype.Ke=function(a){var b=this.o.gb(a);if(this.v!=b){this.v=b;this.dispatchEvent(Aa)}};n.prototype.k=function(){return this.v.k()};n.prototype.g=function(){return this.v};n.prototype.Ld=function(){return this.kj};n.prototype.Ob=function(){return this.Fa};n.prototype.ai=function(a){this.ke=a};n.prototype.instrument=function(){if(this.ke){var a=[];for(var b=0;b<arguments.length;b++){a.push(arguments[b])}this.ke.register.apply(this.ke,
a)}};n.prototype.p=function(){var a=[];for(var b=0;b<arguments.length;b++){a.push(arguments[b])}this.td.push(a);if(this.td.length==1&&!this.Ob()){this.Te()}};n.prototype.kb=function(){return this.cf};n.prototype.S=function(a,b){this.hc.push([a,b])};n.prototype.Te=function(){var a=this.td.shift();if(!a)return;var b=a.shift();for(var c=0;c<this.hc.length;c++){if(this.hc[c][0]==b){this.hc[c][1].apply(this,a)}}if(!this.Ob()){this.Te()}};n.prototype.Lh=function(){var a=this.dispatchEvent.bind(this);this.S(mc,
a.bind(this,"zoomin"));this.S(nc,a.partial(Ya));this.S(Jb,a.partial(va));this.S(Ib,a.partial(Hb));this.S(kc,a.partial("searchupdate"));this.S(hc,this.Rg.bind(this));this.S(1,this.Uc.bind(this,1));this.S(2,this.Uc.bind(this,2));this.S(Ta,this.ce.bind(this,1));this.S(pb,this.ce.bind(this,-1));this.S(Ja,this.be.bind(this))};n.prototype.ce=function(a){var b=this.o.yc(this.k(),a);if(b){if(this.Da()==2){var c=this.o.yc(b.k(),a);if(c){b=c}}this.be(b.k())}};n.prototype.be=function(a){var b=this.o.gb(a);if(b){this.v=
b;this.dispatchEvent(Aa)}};n.prototype.Rg=function(a){this.dispatchEvent({type:"loginchange",html:a})};var Ua={},ua={},mc={},nc={},Jb={},Ta={},pb={},Ja={};var Ib={},hc={},kc={};var oa={};oa.update=function(a){for(var b in a){oa[b]=a[b]}};function Ca(a,b){this.l=a;this.uh=(new Date).getTime();this.a=b;j(b,Aa,this.J.bind(this));j(b,"zoomin",this.J.bind(this));j(b,Ya,this.J.bind(this));j(b,Ma,this.je.bind(this));j(b,"searchupdate",this.je.bind(this));if(l.getWindowHeight()<=480){a.className+=" adsmall";b.instrument(3,0)}else{b.instrument(3,1)}}Ca.prototype.Dd=function(){var a=y.replaceUrlParameter("jscmd","ads",this.a.g().Pa());this.nc=true;q.get(a,this.qa.bind(this),this.pa.bind(this))};Ca.prototype.qa=function(a){this.nc=false;this.l.innerHTML=
a;this.uh=(new Date).getTime()};Ca.prototype.pa=function(){this.nc=false};Ca.prototype.je=function(){if(this.nc){return}this.Dd()};Ca.prototype.J=function(){if(this.nc){return}if(10000+this.uh>(new Date).getTime()){return}this.Dd()};function bb(a){if(!(z.OPERA()&&!z.OPERA_9())){this.a=a;j(a,Ma,this.Ze.bind(this));j(a,Aa,this.Ze.bind(this))}}bb.parseParams=function(){var a=document.location.href,b={},c=a.indexOf("#")+1;if(c)a.substring(c).split(",").c(function(d){b[d.charAt(0)]=d.substring(1)});return b};bb.prototype.Ze=function(){var a=document.location.href.replace(/#.*/,""),b=[a,"#","P",this.a.g().k(),",","M",this.a.Da()].join("");document.location.replace(b)};function A(a,b,c,d){var e=a>c,h=b>d;this.Q=e?c:a;this.ca=e?a:c;this.R=h?d:b;this.da=h?b:d}A.prototype.i=function(){return this.ca-this.Q};A.prototype.f=function(){return this.da-this.R};A.prototype.q=function(){return this.R};A.prototype.ga=function(){return this.Q};A.prototype.V=function(){return this.da};A.prototype.Vf=function(){return this.i()*this.f()};A.prototype.Sd=function(){return this.ca};A.prototype.va=function(a,b){this.ca=a+this.i();this.da=b+this.f();this.Q=a;this.R=b};A.prototype.scale=
function(a){this.map(function(b){return a*b})};A.prototype.ceil=function(){this.map(Math.ceil)};A.prototype.map=function(a){this.ca=a(this.ca);this.da=a(this.da);this.Q=a(this.Q);this.R=a(this.R)};A.prototype.ig=function(a){if(this.ca<a.Q||this.da<a.R||this.Q>a.ca||this.R>a.da){return}return new A(Math.max(this.Q,a.Q),Math.max(this.R,a.R),Math.min(this.ca,a.ca),Math.min(this.da,a.da))};A.prototype.qc=function(){return[this.Q,this.R,this.ca-this.Q,this.da-this.R]};A.prototype.clone=function(){return new A(this.Q,
this.R,this.ca,this.da)};function dc(a,b,c,d,e,h,i,m,r){return function(){if(r){var u=[];u.push("width=200");u.push("height=200");u.push("left="+(l.getWindowWidth()-200)/2);u.push("top="+(l.getWindowHeight()-200)/2);var x=window.open("","formPopup",["menubar=no,toolbar=no,location=no,resizable=yes,scrollbars=no,status=no,directories=no,personalbar=no",u[0],u[1],u[2],u[3]].join(","))}var M={};M[c]=k.evaluate(h);M[d]=k.evaluate(i);M[e]=k.evaluate(m);Sa.buildForm(a,b,M,r?"formPopup":"_blank").submit()}};function fb(a,b){this.Ec=[];this.A=a;this.$c=b;for(var c=0;c<8;c++){this.Ec.push(new eb(a.He.bind(a,jb[c][0],jb[c][1],jb[c][2],jb[c][3]),b))}}var jb=[[1,1,0,0],[0,1,0,0],[0,1,1,0],[1,0,0,0],[0,0,1,0],[1,0,0,1],[0,0,0,1],[0,0,1,1]];fb.prototype.Wh=function(){var a=["nw","n","ne","w","e","sw","s","se"];for(var b=0;b<8;b++){this.Ec[b].Xb(a[b]+"-resize")}};fb.prototype.xa=function(a){var b=this.A.Od(),c=[0,0,0.5,0,1,0,0,0.5,1,0.5,0,1,0.5,1,1,1],d=a.i()-1,e=a.f()-1,h=this.A.Wd();this.Ec.c(function(i){i.va(b.x-
h.ga()+a.ga()+Math.round(d*c.shift()),b.y-h.q()+a.q()+Math.round(e*c.shift()))})};fb.prototype.cleanup=function(){this.Ec.c(function(a){a.cleanup()})};function eb(a,b){this.Va=g.createElement("div");f.setStyles(this.Va,{position:fa});g.appendChild(b,this.Va);this.Ac=g.createElement("div");this.Zc=g.createElement("div");g.appendChild(this.Va,this.Zc);g.appendChild(this.Va,this.Ac);this.Ac.innerHTML="&nbsp;";this.Zc.innerHTML="&nbsp;";f.setStyles([this.Ac,this.Zc],{overflow:"hidden",position:fa});f.setStyles(this.Ac,
{width:5,height:5,backgroundColor:"#FFF",left:-3,top:-3,border:"1px solid",borderColor:"#000"});f.setStyles(this.Zc,{width:17,height:17,left:-3,top:-3});this.d=da.listenForDrag(this.Va,a)}eb.prototype.Xb=function(a){f.setStyles(this.Va,{cursor:a})};eb.prototype.va=function(a,b){f.setStyles(this.Va,{left:a,top:b})};eb.prototype.cleanup=function(){this.d.c(E)};function Qa(a,b){this.A=a;this.$c=b;this.md=g.createElement("div");g.appendChild(this.$c,this.md);this.lb=g.createElement("div");this.zb=g.createElement("img");this.zb.src=a.Na().vc();this.Sc=g.createElement("div");g.appendChild(this.md,this.lb);g.appendChild(this.md,this.Sc);g.appendChild(this.lb,this.zb);f.setStyles([this.lb,this.Sc,this.zb],{position:fa});f.setStyles(this.lb,{overflow:"hidden"});f.setStyles(this.Sc,{border:lc});f.setStyles(this.zb,{position:fa});this.d=da.listenForDrag(this.$c,
a.He.bind(a,1,1,1,1))}Qa.prototype.fg=function(){return this.lb};Qa.prototype.Xb=function(){f.setStyles(this.$c,{cursor:v.getGrabCursor()})};Qa.prototype.xa=function(a){var b=this.A.Wd(),c=this.A.Od(),d=4,e=a.ga()+c.x-b.ga(),h=a.q()+c.y-b.q(),i=a.i(),m=a.f();f.setStyles(this.Sc,{left:e,top:h,width:i-d,height:m-d});f.setStyles(this.lb,{left:e,top:h,width:i,height:m});f.setStyles(this.zb,{left:-a.ga(),top:-a.q()})};var lc="2px #aaaaff dashed";Qa.prototype.cleanup=function(){this.d.c(E)};function ec(a){this.ue=a.wd(true);f.setStyles(this.ue,{backgroundColor:"#000",filter:"alpha(opacity=50)",opacity:"0.5"});this.hj=aa(this.ue,ka,a.cleanup.bind(a))}ec.prototype.cleanup=function(){g.maybeRemoveNode(this.ue);E(this.hj)};function C(a,b,c,d){this.a=a;this.Ad=new da(d.clientX,d.clientY);this.e=b;this.h=c;this.wi=this.Qd(d.clientX,d.clientY);this.te();this.Vi=new ec(this);this.tb=this.wd();f.setStyles(this.tb,{overflow:"hidden",display:"none"});this.ad=g.createElement("div");g.appendChild(this.tb,this.ad);this.rd=new Qa(this,this.ad);this.Bf=new fb(this,this.ad);ha.makeUnselectable(this.tb);this.ff=[this.Vi,this.rd,this.Bf];this.d=[j(this.Ad,gb,this.bh.bind(this)),j(this.Ad,"dragend",this.ah.bind(this)),j(this.tb,ka,
this.B.bind(this))];var e=this.cleanup.bind(this);[va,"zoomin",Ya,Cb,Ma].c(function(i){this.d.push(aa(a,i,e))},this);var h=this.e.ia();this.Li=h.scrollTop;this.Ki=h.scrollLeft;this.Sj=sb.vb(this.xf.bind(this))}C.prototype.te=function(){this.mk=l.Ma(this.e.oa(),this.h.La());this.D=l.getNodeWidth(this.e.oa());this.ma=l.getNodeHeight(this.e.oa());this.Ji=l.getNodeBox(this.e.ia(),true);this.Ij=l.getPosition(this.h.La(),true)};C.prototype.xf=function(){var a=this.e.ia(),b=a.scrollTop,c=a.scrollLeft;if(this.Li!=
b||this.Ki!=c){this.Li=b;this.Ki=c;this.te();this.af()}};C.prototype.Od=function(){return this.Ij};C.prototype.Wd=function(){return this.Ji};C.prototype.wd=function(){var a=g.createElement("div");g.appendChild(k.getBody(),a);var b=this.Ji;f.setStyles(a,{position:fa,left:b.ga(),top:b.q(),width:b.i(),height:b.f()});return a};C.prototype.xa=function(a){var b=new A(0,0,this.h.i(),this.h.f());this.xb=b.ig(a);var c;if(this.ne()){c="none"}else{c="";this.af()}f.setStyles(this.tb,{display:c})};C.prototype.ne=
function(){return!this.xb||!this.xb.Vf()};C.prototype.af=function(){this.ff.c(function(a){if(a.xa)a.xa(this.xb)},this)};C.prototype.tc=function(){var a=this.h.i()/1000,b=this.xb.clone();b.scale(1/a);b.ceil();return b};C.prototype.He=function(a,b,c,d,e){this.Ad=e;this.Yc=this.xb.clone();this.T.Lc();this.Pj=[j(e,gb,this.Sh.bind(this,a,b,c,d)),j(e,"dragend",this.Rh.bind(this))]};C.prototype.B=function(a){var b=H.getTargetElement(a);if(!ha.contains(this.ad,b))this.cleanup()};C.prototype.Sh=function(a,
b,c,d,e){this.xa(new A(this.Yc.ga()+e.deltaX*a,this.Yc.q()+e.deltaY*b,this.Yc.Sd()+e.deltaX*c,this.Yc.V()+e.deltaY*d))};C.prototype.Rh=function(){if(this.od())return;this.Pj.c(E);this.De();this.T.Ed()};C.prototype.od=function(){if(this.ne()){this.cleanup();return true}return false};C.prototype.cleanup=function(){g.maybeRemoveNode(this.tb);this.ff.c(function(a){a.cleanup()});this.d.c(E);sb.Rc(this.Sj)};C.prototype.bh=function(a){var b=this.Qd(a.x,a.y);this.xa(new A(b.x,b.y,this.wi.x,this.wi.y))};C.prototype.ah=
function(a){if(this.od())return;this.Bf.Wh();this.rd.Xb();this.T=new o(this,this.cleanup.bind(this));this.ff.push(this.T);this.T.Ed();this.De()};C.prototype.De=function(){var a=l.getNodeBox(this.rd.fg()),b=5,c=z.IE()?0:2;a=new A(a.ga()-b,a.q()-b,a.Sd()+b+c,a.V()+b+c);this.T.Bh(a,true)};C.prototype.Qd=function(a,b){var c=l.getPosition(this.h.La(),true);return{x:a-c.x,y:b-c.y}};C.prototype.Na=function(){return this.h};function O(){var a=document.getElementsByTagName("body")[0];this.Ha=g.createElement("div");g.appendChild(a,this.Ha);f.setStyles(this.Ha,{position:fa});this.Re=g.createElement("div");g.appendChild(this.Ha,this.Re);f.setStyles(this.Re,{backgroundColor:"#000",filter:"alpha(opacity=30)",opacity:"0.3",position:fa,left:3,top:3});this.K=g.createElement("table");this.K.cellSpacing=0;this.K.cellPadding=0;f.setStyles(this.K,{position:fa,left:0,top:0});g.appendChild(this.Ha,this.K);var b=this.K.insertRow(0).insertCell(0);
this.F=g.createElement("div");g.appendChild(b,this.F);this.Lc();this.If();this.kk=false;this.d=[];this.zi=[];setTimeout(this.Ai.bind(this),0)}O.prototype.Ai=function(){f.setStyles(this.Re,{width:l.getNodeWidth(this.K),height:l.getNodeHeight(this.K)});this.zi.c(function(a){a()})};O.prototype.Nh=function(a){this.zi.push(a)};O.prototype.Vc=function(a){f.setStyles(this.K,{width:a})};O.prototype.i=function(){return l.getNodeWidth(this.K)};O.prototype.f=function(){return l.getNodeHeight(this.K)};O.prototype.mf=
0;O.prototype.nf=0;O.prototype.va=function(a,b){this.bk=a;this.ck=b;f.setStyles(this.Ha,{left:Math.round(a-this.i()*this.mf),top:Math.round(b-this.f()*this.nf)})};O.prototype.Lc=function(){this.va(-20000,-20000)};O.prototype.Bh=function(a,b){var c=l.getWindowWidth(),d=l.getWindowHeight(),e=this.f(),h=this.i(),i=a.V();if(i+e>d)i=Math.max(a.q()-e,0);var m=a.ga();if(b)m+=a.i()-h;if(m+h>c)m=Math.max(c-h,0);this.va(m,i)};O.prototype.li=function(a){this.Ei.innerHTML=a};O.prototype.If=function(){this.Ja=
g.createElement("div");g.appendChild(this.F,this.Ja);f.setStyles(this.Ja,{border:"1px #2c4460 solid",padding:8,backgroundColor:"#b4cffe"});this.sb=g.createElement("div");g.appendChild(this.Ja,this.sb);f.setStyles(this.sb,{backgroundColor:"#d8e8fd",fontWeight:"bold",padding:3});this.Ei=g.createElement("div");g.appendChild(this.sb,this.Ei);this.l=g.createElement("div");g.appendChild(this.Ja,this.l);f.setStyles(this.l,{backgroundColor:"#FFF",padding:"3 8 3 8"})};O.prototype.cleanup=function(){if(this.Ha.parentNode){this.Lc();
f.setStyles(this.K,{display:"none"});setTimeout(g.maybeRemoveNode.partial(this.Ha),0)}var a;while(a=this.d.pop())E(a)};function ib(a){this.T=a;ha.makeUnselectable(a.sb);f.setStyles(a.sb,{cursor:"move"});da.listenForDrag(a.sb,this.Lg.bind(this)).c(a.d.push.bind(a))}ib.prototype.Lg=function(a){this.Ue=this.T.bk;this.Ve=this.T.ck;this.aj=[j(a,gb,this.Jg.bind(this)),j(a,"dragend",this.Hg.bind(this))]};ib.prototype.Jg=function(a){this.T.va(this.Ue+a.deltaX,this.Ve+a.deltaY)};ib.prototype.Hg=function(a){this.aj.c(E)};
function fc(a,b){var c=b||a.cleanup.bind(a);this.T=a;var d=g.appendChild(a.Ha,g.createElement("img"));this.t=d;f.setStyles(d,{cursor:"pointer",position:fa,display:"none"});d.src=cc;a.d.push(aa(d,B,c));a.Nh(this.Fh.bind(this))}fc.prototype.Fh=function(){f.setStyles(this.t,{display:"",left:l.getNodeWidth(this.T.K)-27,top:12})};var ha={};ha.makeUnselectable=function(a){if(z.MOZILLA()){f.setStylesForNodeAndChildren(a,{MozUserSelect:"none"})}else if(z.IE()){f.setAttributeForNodeAndChildren(a,"unselectable","on")}else if(z.SAFARI()){}};ha.contains=function(a,b){var c=b;while(c){if(c==a)return true;c=c.parentNode}return false};function da(a,b){p.call(this);var c=k.getBody();this.Ue=a;this.Ve=b;this.d=[j(k.getBody(),"mousemove",this.Tg.bind(this)),j(k.getBody(),"mouseup",this.Of.bind(this))]}da.inherits(p);da.prototype.Tg=function(a){this.dispatchEvent({type:gb,x:a.clientX,y:a.clientY,deltaX:a.clientX-this.Ue,deltaY:a.clientY-this.Ve})};da.prototype.Of=function(){this.d.c(E);this.dispatchEvent("dragend")};da.listenForDrag=function(a,b,c){var d=c?aa:j;return[d(a,ka,da.sj.partial(b)),d(a,hb,H.cancel)]};da.sj=function(a,b){H.cancel(b);
a(new da(b.clientX,b.clientY))};var v=function(a,b){p.call(this);this.b=b.ia();this.e=b;this.a=a;this.w=this.e.oa();this.w.className=this.ik;f.setStyles(this.e.Cb(),{cursor:""});f.setStyles(this.e.w,{cursor:v.getGrabCursor()});this.d=[j(this.e.oa(),ka,this.Kg.bind(this)),j(this.e.oa(),"dblclick",this.Gg.bind(this)),j(this.e.oa(),"drag",H.cancel)]};v.inherits(p);v.prototype.Gg=function(a){if(!this.a.Ob()){this.a.p(Ta)}};v.getGrabCursor=function(){return v.Xd};v.getGrabbingCursor=function(){return v.Yd};if(z.MOZILLA()){v.Xd="-moz-grab";
v.Yd="-moz-grabbing"}else if(z.IE()){v.Xd="url(/googlebooks/images/openhand.cur), auto";v.Yd="url(/googlebooks/images/closedhand.cur), auto"}else{v.Xd="auto";v.Yd="move"}v.prototype.Kg=function(a){if(this.gh){this.gh=false;return}H.cancel(a);this.dispatchEvent(hb);g.focusElement(this.b);this.lastX=a.clientX;this.lastY=a.clientY;f.setStyles(this.w,{cursor:v.getGrabbingCursor()});this.Xa();this.zd=[j(document,"mousemove",this.Ig.bind(this)),j(document,"mouseup",this.Bc.bind(this)),j(document,ka,this.Bc.bind(this)),
j(document,mb,this.$.bind(this))]};v.prototype.$=function(a){if(a.relatedTarget==null){this.Bc()}};v.prototype.Ig=function(a){this.e.drag(a.clientX-this.lastX,a.clientY-this.lastY);this.lastX=a.clientX;this.lastY=a.clientY};v.prototype.Bc=function(a){this.Xa();f.setStyles(this.w,{cursor:v.getGrabCursor()});if(a)H.cancel(a)};v.prototype.Xa=function(){if(this.zd){this.zd.c(E)}this.zd=[]};v.prototype.cleanup=function(){this.Xa();this.d.c(E);f.setStyles(this.e.Cb(),{cursor:""})};v.prototype.hh=function(){this.gh=
true};function V(a,b){this.Gi=a;this.bj=b;this.Aa=document.getElementsByTagName("body")[0];j(a,B,this.ui.bind(this));this.Pb=[]}V.prototype.Ya=function(a,b,c){this.Pb.push(new Ra(a,b,c))};var cd={backgroundColor:"#ffffff",border:"1px solid",borderColor:"#e6e6e6 #676767 #676767 #e6e6e6",fontSize:"83%"};V.prototype.ui=function(){if(!this.I)this.zh();this.J();this.d=[this.B.bind(this),this.Xe.bind(this)];j(this.Aa,ka,this.ek);j(this.bj,hb,this.fk);var a=l.getPosition(this.Gi),b=l.getNodeHeight(this.Gi);f.setStyles(this.I,
{display:"",visibility:"hidden"});var c=l.getNodeWidth(this.I),d=Math.min(a.x,l.getWindowWidth()-c-3);f.setStyles(this.I,{top:a.y+b,left:d,visibility:""})};V.prototype.Sa=function(){f.setStyles(this.I,{display:"none"})};V.prototype.zh=function(){this.I=g.createElement("table");f.setStyles(this.I,cd);this.I.cellPadding=(this.I.cellSpacing=(this.I.border=0));f.setStyles(this.I,{position:"absolute",display:"none",top:0,left:0});g.appendChild(this.Aa,this.I);for(var a=0;a<this.Pb.length;a++){var b=this.I.insertRow(-1);
f.setStyles(b,{cursor:xa});var c=b.insertCell(-1),d=g.createElement("div");f.setStyles(d,{padding:3});d.onmouseover=V.Ej.partial(d);d.onmouseout=V.Dj.partial(d);f.setStyles(d,{padding:"2 15 2 5"});g.appendChild(c,d);var e=g.createElement("img");e.width=(e.height=7);f.setStyles(e,{padding:"0 3 0 3"});g.appendChild(d,e);var h=g.createElement("span");g.appendChild(d,h);var i=this.Pb[a];i.ci(d,h,e);j(b,B,this.Sa.bind(this))}};V.prototype.J=function(){for(var a=0;a<this.Pb.length;a++){this.Pb[a].update()}};
V.Ej=function(a){f.setStyles(a,{backgroundColor:"#dde5ff"})};V.Dj=function(a){f.setStyles(a,{backgroundColor:""})};V.prototype.Xa=function(){if(this.d){this.d.c(E);this.d=null}};V.prototype.B=function(a){var b=H.getTargetElement(a);if(ha.contains(this.I,b))return;this.Xe()};V.prototype.Xe=function(){this.Xa();this.Sa()};function Ra(a,b,c){this.ja=a;this.ub=b;this.nj=c||Ra.Qj}Ra.prototype.ci=function(a,b,c){this.nk=a;this.pb=b;this.Ui=c;j(a,B,this.ub)};Ra.prototype.update=function(){if(Function.prototype.oj(this.ja)){this.pb.innerHTML=
this.ja()}else{this.pb.innerHTML=this.ja}this.Ui.src=this.nj()?s+"checkmark.gif":"images/cleardot.gif"};Ra.Qj=function(){return false};function o(a,b){O.call(this);new ib(this);new fc(this,a.cleanup.bind(a));this.A=a;this.lk=b;f.setStyles(this.l,{fontSize:13});this.li(_OC_MSG[Qc]);this.Ci=_OC_MSG[Sc];this.Jf();var c=this.Uh.bind(this);[j(this.eb,B,c),j(this.eb,"focus",c),j(this.We,Da,this.Gb.bind(this)),j(this.lj,Da,this.Gb.bind(this))].c(function(d){this.d.push(d)},this);this.Gb()}o.inherits(O);o.prototype.Jf=function(){this.dc(_OC_MSG[Ac]);var a=g.createElement("img");a.src=this.Hd();this.Gd=this.cc();this.lj=this.fd(this.Gd,_OC_MSG[Bc],
"clip_format",true);g.appendChild(this.Gd,g.createTextNode(" "));this.We=this.fd(this.Gd,_OC_MSG[Cc],"clip_format");this.dc(_OC_MSG[Pc]);this.Eh=g.createElement("table");g.appendChild(this.cc(),this.Eh);var b=16;this.gd(s+"blogger.gif",b,b,"Blogger",dc(oa.bloggerUrl,"get","n","u","t",this.Bb.bind(this),this.jb.bind(this),this.Wf.bind(this)));this.Bj=this.gd(s+"notebook.gif",b,b,_OC_MSG[Ic],this.Vg.bind(this));this.dc(_OC_MSG[Dc]);this.eb=g.createElement("input");f.setAttributes(this.eb,{type:"text",
size:16});g.appendChild(this.cc(),this.eb)};o.prototype.Vg=function(){var a=window.gnb._doAdd;if(a==o.Nf){dc(oa.notebookUrl,"post","attrt","attr","contents",this.Bb(),this.jb(),this.rc(),true)()}else{a(this.rc(),this.Bb(),this.jb(),window.location.toString(),this.Bj)}};o.Nf=function(){};window.gnb={};window.gnb._doAdd=o.Nf;o.prototype.Hd=function(){return[y.removeUrlParameter("w",this.A.Na().vc()),"&ci=",this.A.tc().qc().join(","),"&edge=1"].join("")};o.prototype.Ed=function(){q.getJSONObject(this.Yf(),
this.dh.bind(this))};o.prototype.Yf=function(){return[this.A.Na().g().Pa(),"&ci=",this.A.tc().qc().join(","),"&jscmd=click3&output=text"].join("")};o.prototype.jb=function(){return[this.A.Na().g().Pa(),"&ci=",this.A.tc().qc().join(","),"&source=bookclip"].join("")};o.prototype.rc=function(){return this.We.checked?this.Cg():this.eg()};o.prototype.zc=function(){return o.Jd(g.createTextNode(this.Ci))};o.prototype.Wf=function(){return this.We.checked?this.zc():this.Md()};o.prototype.Cg=function(){return[this.zc(),
" ",this.Vd()].join("")};o.prototype.eg=function(){return[o.wrapInAnchor(this.jb(),this.Md()),"<br/>",this.Vd()].join("")};o.prototype.Vd=function(){return o.wrapInAnchor(this.jb(),this.Bb())};o.prototype.Md=function(){var a=g.createElement("img");f.setAttributes(a,{border:0,src:this.Hd(),alt:this.zc()});return o.Jd(a)};o.Jd=function(a){var b=g.createElement("div");g.appendChild(b,a);return b.innerHTML};o.wrapInAnchor=function(a,b){var c=g.createElement("a");c.href=a;c.innerHTML=b;return o.Jd(c)};
o.prototype.Bb=function(){var a=k.getElemById("titlebar").innerHTML;return a.replace(/(<[^>]*>)/g,"")};o.prototype.dc=function(a){var b=this.dd();b.innerHTML=a;f.setStyles(b,{fontWeight:"bold"});return b};o.prototype.cc=function(){var a=this.dd();f.setStyles(a,{margin:"2 0 2 10"});return a};o.prototype.dd=function(){var a=g.createElement("div");g.appendChild(this.l,a);return a};o.prototype.fd=function(a,b,c,d){var e=g.createElement("label");e.innerHTML=b;g.appendChild(a,e);var h=g.createElement("input");
f.setAttributes(h,{type:"radio",name:c});g.insertFirst(e,h);if(d)h.checked=true;return h};o.prototype.gd=function(a,b,c,d,e){if(!this.sd)this.Ff=this.Eh.insertRow(-1);var h=this.Ff.insertCell(-1);f.setStyles(h,{whiteSpace:"nowrap"});if(!this.sd)this.Ff.insertCell(-1).width=5;var i=g.createElement("img");i.src=a;f.setAttributes(i,{width:b,height:c});f.setStyles(i,{verticalAlign:"middle"});g.appendChild(h,i);g.appendChild(h,g.createTextNode(" "));var m=g.createElement("span");f.setStyles(m,ad);m.innerHTML=
d;g.appendChild(h,m);j(i,B,e);j(m,B,e);this.sd=!this.sd;return h};o.prototype.dh=function(a){this.Ci=a.page[0].content;this.Gb()};o.prototype.Gb=function(){this.eb.value=this.rc()};o.prototype.Uh=function(){this.eb.select()};var Sa={};Sa.buildForm=function(a,b,c,d){var e=g.createElement("form");f.setStyles(e,{display:"none"});f.setAttributes(e,{action:a,method:b});if(d)e.target=d;g.appendChild(document.getElementsByTagName("body")[0],e);for(var h in c){var i=c[h];if(i instanceof Array){i.c(Sa.wb.partial(e,h))}else{Sa.wb(e,h,i)}}return e};Sa.wb=function(a,b,c){var d=g.createElement("input");f.setAttributes(d,{type:"hidden",name:b,value:c});g.appendChild(a,d)};function Ea(a,b){p.call(this);this.pc=false;this.Aj=b;this.a=a}Ea.inherits(p);Ea.prototype.Ic=function(){return this.pc};Ea.prototype.fullscreen=function(){this.fe(true,"none",0)};Ea.prototype.regular=function(){this.fe(false,"",1)};Ea.prototype.fe=function(a,b,c){this.pc=a;this.dispatchEvent(Da);f.setStyles(this.Aj,{display:b});this.a.instrument(2,c);this.a.p(Jb)};function gc(a,b){this.l=a;this.a=b;j(b,"loginchange",this.J.bind(this))}gc.prototype.J=function(a){if(a&&a.html){this.l.innerHTML=a.html}};function W(a,b){this.h=a;this.Df=b;this.Ab=this.h.na();this.aa();j(this.h,La,this.aa.bind(this));j(this.h,"cleanup",this.Z.bind(this))}W.prototype.Ag=function(){return this.h.E/575};W.prototype.db=function(a,b,c,d){var e=g.createElement("div");this.Ab.appendChild(e);var h=this.Td(a,b,c,d);f.setStyles(e,{position:"absolute",left:h[0],top:h[1],width:h[2],height:h[3]});if(this.Df)f.setStyles(e,{filter:"alpha(opacity=30)",opacity:0.3,backgroundColor:this.Df});return e};W.prototype.Td=function(a,b,c,d){var e=
this.Ag();return[a,b,c,d].map(function(h){return Math.round(h*e)})};W.prototype.Bd=function(a){a.c(function(b){this.db.apply(this,b)},this)};W.prototype.Af=function(){g.emptyNode(this.Ab)};W.prototype.Z=function(){this.Af()};function Ia(a){W.call(this,a,"#ffff00")}Ia.inherits(W);Ia.prototype.aa=function(){if(this.N)return;var a=this.h.g();if(a){var b=a.cg();if(b){this.Bd(b);this.N=true}}};Ia.prototype.Z=function(){Ia.z.Z.call(this);this.N=false};function kb(a,b){W.call(this,b);this.d=[];this.a=a}
kb.inherits(W);kb.prototype.aa=function(){if(this.N)return;var a=this.h.g();if(a){var b=a.mg();if(b){b.c(function(c){var d=c.pop(),e=this.db.apply(this,c);f.setStyles(e,{cursor:"pointer"});this.d.push(j(e,B,this.a.Ke.bind(this.a,d)))},this);this.N=true}}};kb.prototype.Z=function(){Ia.z.Z.call(this);this.N=false;var a;while(a=this.d.pop())E(a)};function ga(a){W.call(this,a)}ga.inherits(W);ga.prototype.aa=function(){if(this.N)return;var a=this.h.g();if(a){var b=a.Xf();if(b){this.Bd(b);this.N=true}}};
ga.prototype.Z=function(){ga.z.Z.call(this);this.N=false};ga.prototype.db=function(a,b,c,d){this.ab=ga.z.db.call(this,a,b,c,d);f.setStyles(this.ab,{border:lc});this.gc=g.appendChild(this.ab,g.createElement("img"));this.gc.src=cc;var e=this.Td(a,b,c,d);f.setStyles(this.gc,{position:fa,cursor:"pointer",left:e[2]-19,top:4,display:"none"});j(this.ab,mb,this.$.bind(this));j(this.ab,nb,this.ge.bind(this,true));aa(this.gc,B,this.cleanup.bind(this))};ga.prototype.cleanup=function(){g.maybeRemoveNode(this.ab)};
ga.prototype.$=function(a){var a=a||window.event;if(!ha.contains(this.ab,a.relatedTarget)){this.ge(false)}};ga.prototype.ge=function(a){f.setStyles(this.gc,{display:a?"":"none"})};function J(a,b,c){this.a=a;this.e=b;this.u=g.createElement("div");f.setStyles(this.u,{position:"absolute"});g.appendChild(c,this.u);this.Qe=g.createElement("div");f.setStyles(this.Qe,{position:"absolute"});g.appendChild(this.u,this.Qe);this.jd=g.createElement("div");g.appendChild(this.u,this.jd);this.G=g.createElement("div");g.appendChild(this.jd,this.G);this.hide()}J.prototype.Yh=function(a,b){this.E=a;this.Ra=b};J.prototype.draw=function(a){this.show();var b=a?0:3,c=this.E-b-2,d=this.Ra-3-2;this.h=
qb.getDecoratedPageDisplay(this.a,this.G);this.h.Wa(c,d);f.setStyles(this.jd,{backgroundColor:"#a4a7aa",top:0,left:0,position:"absolute",width:this.E-b,height:this.Ra-3});f.setStyles(this.G,{overflow:"hidden",backgroundColor:"#e6e6e6",position:"absolute",top:1,left:z.IE()?0:1,width:c,height:d,position:"relative"});f.setStyles(this.Qe,{top:4,left:4,backgroundColor:"#adb0b2",width:this.E-4,height:this.Ra-4})};J.prototype.hide=function(){f.setStyles(this.u,{display:"none"})};J.prototype.show=function(){f.setStyles(this.u,
{display:""})};J.prototype.Na=function(){return this.h};J.prototype.ba=function(){return this.h.ba()};J.prototype.cleanup=function(){if(this.h)this.h.cleanup();if(this.u.parentNode){g.removeNode(this.u)}};J.prototype.$b=function(a){this.xe=a;f.setStyles(this.u,{top:a})};J.prototype.Ma=function(){return this.xe};J.prototype.r=function(a){this.h.r(a)};J.prototype.g=function(){return this.h.g()};J.prototype.f=function(){return this.Ra};J.prototype.i=function(){return this.E};J.getWidthForImageWidth=
function(a){return a+2+3};J.getDimensions=function(a,b,c){var b=a-3-2,c=Math.floor(b*(c/b)),d=c+3+2;return[a,d,b,c]};function Db(a){this.ob={};this.a=a}Db.prototype.Oh=function(a,b,c){this.ob[a]=this.ob[a]||{};this.ob[a][b]=c};Db.prototype.Uf=function(a){var b=[];if(this.ob[a]){var c=[];for(var d in this.ob[a]){c.push(d)}c.sort(k.compareIntegers);for(var e=0;e<c.length;e++){b.push(this.ob[a][c[e]])}}return b};function Fa(a,b,c,d,e){p.call(this);var h=g.createElement("span");f.setStyles(h,{whiteSpace:"nowrap",cursor:xa});g.appendChild(a,h);var i=g.createElement("img");i.src=b;f.setStyles(i,{verticalAlign:"bottom"});g.appendChild(h,i);g.appendChild(h,g.createTextNode(" "));var m=g.createElement("span");m.className="pseudolink";m.innerHTML=c;g.appendChild(h,m);this.pb=m;this.sh=e;this.qj=h;this.ub=d;j(h,B,this.Eb.bind(this));this.update()}Fa.inherits(p);Fa.prototype.update=function(){if(this.sh){f.setStyles(this.qj,
{display:this.sh()?"":"none"})}};Fa.prototype.Eb=function(){this.ub();this.update();this.dispatchEvent(B)};function Zb(a,b,c){this.he=a;this.Xj=a.pb.innerHTML;this.Pi=b;this.bf=c;j(a,B,this.update.bind(this))}Zb.prototype.update=function(){this.he.pb.innerHTML=this.bf()?this.Pi:this.Xj};function Yb(a,b,c,d){this.he=a;this.Nj=b;this.Oi=c;this.bf=d;j(a,B,this.update.bind(this))}Yb.prototype.update=function(){f.setStyles(this.he.pb,this.bf()?this.Oi:this.Nj)};var ja={};ja.onLoad=function(a,b,c){if(z.IE()){var d=[];d[0]=j(a,"readystatechange",ja.gj.partial(a,ja.hd.partial(b),d))}else{aa(a,"load",ja.hd.partial(b))}if(c){aa(a,"error",ja.hd.partial(c))}};ja.hd=function(a){setTimeout(a,0)};ja.gj=function(a,b,c){if(a.readyState!="complete"){return true}E(c[0]);b()};function za(a,b){p.call(this);this.e=b;this.a=a;this.gk=[];f.setStyles(this.e.Cb(),{cursor:"crosshair"});f.setStyles(this.e.w,{cursor:""});this.d=[j(K.eventTarget,ka,this.Cf.bind(this))]}za.inherits(p);za.prototype.Cf=function(a){H.cancel(a);a=a||window.event;this.h=a.display;if(this.h.vc())this.A=new C(this.a,this.e,this.h,a)};za.prototype.cleanup=function(){f.setStyles(this.e.oa(),{cursor:""});f.setStyles(this.e.Cb(),{cursor:""});this.d.c(E);if(this.A)this.A.cleanup()};;function Eb(){}Eb.prototype.$h=function(a){this.Lb=a};Eb.prototype.register=function(){var a=[];for(var b=0;b<arguments.length;b++){a.push(encodeURIComponent(arguments[b]))}a=a.join(":");var c=[];[["id",this.Lb],["jscmd",a]].c(function(e){c.push([e[0],e[1]].join("="))},this);var d=["/books/gen_204?",c.join("&")].join("");q.get(d,k.emptyFunction)};;function X(a){this.a=a;this.b=a.La();this.Aa=document.getElementsByTagName("body")[0];j(a,va,this.C.bind(this))}X.prototype.show=function(a,b,c){this.$a=b;this.vf=c;if(!this.Ua)this.yh();if(!this.O)this.xh();this.O.innerHTML=a;this.Ee();this.rj=j(this.Aa,B,this.Dg.bind(this))};X.prototype.xh=function(){this.O=g.createElement("div");g.appendChild(this.Aa,this.O);f.setStyles(this.O,{position:"absolute",backgroundColor:"#e8eefa",width:"22em"})};X.prototype.yh=function(){this.Ua=g.createElement("div");
f.setStyles(this.Ua,{position:"absolute",backgroundColor:"#e6e6e6"});g.appendChild(this.Aa,this.Ua)};X.prototype.C=function(){if(this.O&&this.O.style.display=="")this.Ee()};X.prototype.Sa=function(){f.setStyles([this.O,this.Ua],{display:"none"});E(this.rj)};X.prototype.Ee=function(){f.setStyles([this.O,this.Ua],{display:""});var a=l.getPosition(this.b),b=l.getNodeHeight(this.b),c=l.getNodeWidth(this.b),d=l.getNodeWidth(this.b.parentNode),e=l.getNodeHeight(this.O),h=l.getNodeWidth(this.O),i=l.getWindowHeight();
f.setStyles(this.Ua,{top:a.y,left:a.x,width:d,height:b});var m=Math.round((b-e)*0.3+a.y);if(m+e>i){m=i-e}if(m<0)m=0;var r=Math.round((c-h)*0.5+a.x);if(r<0)r=0;f.setStyles(this.O,{left:r,top:m})};X.prototype.Dg=function(a){var b=H.getTargetElement(a);if(!(ha.contains(this.O,b)||ha.contains(this.Ua,b))){this.se()}};X.prototype.Qb=function(a){this.Sa();this.$a(a)};X.prototype.se=function(){this.Sa();if(this.vf){this.vf()}};var _OC_Login_Complete=function(a){X.singleton.Qb(a)},_OC_Login_Canceled=function(){X.singleton.se()};function ta(a,b,c){this.a=a;this.o=b;this.uj=c}ta.prototype.fc=function(a,b){var c=this.o.gb(a),d=b||c.Pa();if(c){this.a.p(Ja,a);return}else if(!c&&!b){throw{};}var e=y.replaceUrlParameter("jscmd","click3",d);q.getJSONObject(e,this.Fg.bind(this,d))};ta.prototype.Fg=function(a,b){var c=b.page,d=new t(c[0]);d.gi(a);if(d.Qh()){this.ri(a,b)}else{this.$e(a,d)}};ta.prototype.ri=function(a,b){var c=b.login_info;this.qi(a,c.html,c.login_url)};ta.prototype.qi=function(a,b,c){if(z.SAFARI()){document.location.href=
c}else{this.uj.show(b,this.Qb.bind(a),this.Ge.bind(a))}};ta.prototype.$e=function(a,b){if(b.pe()){this.o.Ea(b);this.a.p(Ib);this.a.p(Ja,b.k())}else{this.Ge(a)}};ta.prototype.Ge=function(a){var b=y.parseUrlParameter("pg",a),c=this.o.getIndexByPageId(b);if(this.o.Ph(b)){this.a.p(Ib)}};ta.prototype.Qb=function(a,b){this.a.p(hc,b.gaia_bar.html);var c=t.makeRawPageInfo(b.pages[0]);this.$e(a,c)};function G(a,b){this.a=b;this.Gc={};this.jk=[];var c=document.getElementsByTagName("input");for(var d=0;d<c.length;d++){this.wb(c[d])}this.b=a;j(z.SAFARI()?document.getElementsByTagName("body")[0]:this.b,"keydown",this.Pg.bind(this));j(this.b,nb,this.ra.bind(this))}G.prototype.mi=function(a){this.e=a};G.prototype.ra=function(){if(!this.oe()){try{g.focusElement(this.b)}catch(a){}}};G.prototype.wb=function(a){if(a.type&&a.type=="text"){var b=Nb(a);a.blur();j(a,"focus",this.Zd.bind(this,b,true));j(a,
"blur",this.Zd.bind(this,b,false));this.Gc[b]=false}};G.prototype.Zd=function(a,b){this.Gc[a]=b};G.prototype.oe=function(){for(var a in this.Gc){if(this.Gc[a]){return true}}return false};G.Jc={};G.Jc[32]=function(){this.a.p(Ta)};G.Jc[74]=function(){this.a.p(Ta)};G.Jc[75]=function(){this.a.p(pb)};G.Ta={};G.Ta[37]=function(){this.e.drag(15,0)};G.Ta[38]=function(){this.e.drag(0,15)};G.Ta[39]=function(){this.e.drag(-15,0)};G.Ta[40]=function(){this.e.drag(0,-15)};G.Ta[33]=function(){this.e.drag(0,Math.floor(0.8*
l.getNodeHeight(this.b)*0.5))};G.Ta[34]=function(){this.e.drag(0,Math.floor(-0.8*l.getNodeHeight(this.b)*0.5))};G.prototype.Pg=function(a){var b=G.Jc[a.keyCode];if(!b&&z.SAFARI()){b=G.Ta[a.keyCode]}if(b&&!(z.SAFARI()&&this.oe())){b.call(this,a.keyCode)}};function Fb(a,b){this.ua=a;this.xj=b;this.yj=[];f.setStyles(this.ua,{overflowX:"hidden",overflowY:"auto"})}Fb.prototype.i=function(){return l.getNodeWidth(this.ua.parentNode)};Fb.prototype.ed=function(a,b){var c=new Ga(a,b);this.yj.push(c);return c};function Ga(a,b){this.ja=a;this.l=b;this.cb=g.wrapNodeInDiv(this.l);var c=g.createElement("img");c.src=ic;c.width=12;c.height=12;f.setStyles(this.ja,{cursor:xa});this.ja.onclick=this.toggle.bind(this);this.t=c;g.insertFirst(this.ja,c);ha.makeUnselectable(this.ja);
this.Tb=true}var $c=s+"plus_sm.gif",ic=s+"minus_sm.gif";Ga.prototype.toggle=function(){if(this.Fa){return}if(this.Tb){this.hide()}else{this.show()}};Ga.prototype.hide=function(){if(!this.Tb){return}this.Fa=true;this.ka=z.IE()?l.getOffsetHeight(this.l):l.getNodeHeight(this.l);this.Tb=false;f.setStyles(this.cb,{overflow:"hidden"});this.t.src=$c;var a=new I(this.eh.bind(this));a.Ya(this.cb.style,"height",this.ka,0,{format:I.toPixels});a.move(I.getAnimationDuration(this.ka))};Ga.prototype.eh=function(){f.setStyles(this.cb,
{display:"none"});this.Fa=false};Ga.prototype.show=function(){if(this.Tb){return}this.Fa=true;this.Tb=true;f.setStyles(this.cb,{display:""});this.t.src=ic;var a=new I(this.pi.bind(this));this.ka=this.ka==0?50:this.ka;a.Ya(this.cb.style,"height",0,this.ka,{format:I.toPixels});a.move(I.getAnimationDuration(this.ka))};Ga.prototype.pi=function(){f.setStyles(this.cb,{height:""});f.setStyles(this.l,{overflow:""});this.Fa=false};var I=function(a){this.Ch=[];this.mc=[];if(a){this.mc.push(a)}};I.toPixels=function(a){return Math.round(a)+"px"};I.linearBlendColor=function(a,b,c){var d=[];for(var e=0;e<3;e++){d.push(Math.round(a[e]+(b[e]-a[e])*c))}return"rgb("+d.join(",")+")"};I.prototype.vb=function(a){this.mc.push(a)};I.prototype.Ya=function(a,b,c,d,e){var h=new Gb(a,b,c,d,e);this.Ch.push(h)};I.prototype.move=function(a){this.cj=a;setTimeout(this.ve.bind(this),0)};I.reverseCube=function(a){var b=1-a,c=b*b*b;return 1-c};I.linear=
function(a){return a};I.sineIntegral=function(a){return(-Math.cos(a*Math.PI)+1)/2};I.prototype.ve=function(){this.yi=this.yi||(new Date).getTime();var a=(new Date).getTime(),b=Math.min(1,(a-this.yi)/this.cj),c=k.getArrayIterator(this.Ch);while(c.hasNext()){c.next().update(b)}if(b>=1){for(var d=0;d<this.mc.length;d++){this.mc[d]()}}else{setTimeout(this.ve.bind(this),0)}};I.getAnimationDuration=function(a){if(a<=100){return 250}else if(a>=500){return 500}else{return(a-100)/400*250+250}};function Gb(a,
b,c,d,e){this.Cj=a;this.Qi=b;this.Vj=c;this.Yi=d-c;if(e){this.Sf=e.format;if(e.zip){this.gf=e.zip}}}Gb.prototype.update=function(a){a=this.gf(a);var b=a*this.Yi+this.Vj;this.Cj[this.Qi]=this.Sf?this.Sf(b):b};Gb.prototype.gf=I.reverseCube;var qb={};qb.getDecoratedPageDisplay=function(a,b){var c;if(a.ib()==Ua){c=new K(a,b);new Ia(c);new ga(c);new kb(a,c)}else{c=new qa(a,b)}return c};function Va(a,b,c,d,e){var h={cursor:xa};f.setStyles(c,h);j(c,B,this.$g.bind(this));f.setStyles(d,h);j(d,B,this.Ug.bind(this));if(e.innerHTML){this.ja=e}else{e.form.action="javascript:";e.form.onSubmit=this.Og.bind(this);f.setStyles(e.go,{display:"none"});this.ie=e.input}this.a=a;this.o=b;j(a,Aa,this.update.bind(this))}Va.prototype.Og=function(){var a=this.ie.value.trim();if(a.length==0){return false}var b=this.o.xg(a);if(b){this.a.p(Ja,b.k());this.a.instrument(1,2)}else{this.update()}return false};
Va.prototype.$g=function(){this.a.instrument(1,0);this.a.p(pb)};Va.prototype.Ug=function(){this.a.instrument(1,1);this.a.p(Ta)};Va.prototype.update=function(){var a=this.a.g().Qa();if(this.ie){this.ie.value=a}else{if(!a){a="&nbsp;"}this.ja.innerHTML=k.format(_OC_MSG[Kc],a)}};function P(a){p.call(this);this.Ia=[];this.Se=[];this.vi=[];this.Ab=a;this.Ia.push(a);this.Ja=this.na();f.setStyles(this.Ja,{backgroundColor:"#e6e6e6"});this.Ia.push(this.Ja);var b=this.na();this.Ia.push(b);this.vh=new lb(b)}P.inherits(p);P.prototype.La=function(){return this.Ab};P.prototype.Wa=function(a,b){this.E=a;this.Ra=b;this.Ia.c(function(c){f.setStyles(c,{width:a,height:b})});this.Se.c(function(c){c.Wa(a,b)});this.vi.c(function(c){c.width=a;c.height=b})};P.prototype.i=function(){return this.E};
P.prototype.f=function(){return this.Ra};P.prototype.r=function(a){this.cleanup();this.v=a;if(this.ze){E(this.ze);this.ze=null}this.ze=j(a,La,this.ta.bind(this,a))};P.prototype.ta=function(a){if(a==this.v){this.dispatchEvent(La)}};P.prototype.g=function(){return this.v};P.prototype.Dc=function(a){if(a==this.v){this.dispatchEvent("load");this.vh.hide()}};P.prototype.na=function(){var a=g.createElement("div");g.appendChild(this.Ab,a);f.setStyles(a,{position:"absolute",left:0,top:0});return a};P.prototype.cleanup=
function(){this.vh.show();this.dispatchEvent("cleanup")};function ia(a,b){p.call(this);this.F=a;this.E=b}ia.inherits(p);ia.prototype.reset=function(){if(this.yf)return;this.empty();this.t=g.createElement("img");g.appendChild(this.F,this.t);if(this.E)f.setStyles(this.t,{width:this.E});this.re=false;this.yf=true};ia.prototype.empty=function(){var a=z.IE(),b;while(b=this.F.firstChild){if(a)ya.getInstance().jf(this.F.firstChild);else{b.src=cb;g.removeNode(b)}}};ia.prototype.Ne=function(a){this.reset();
ja.onLoad(this.t,this.Qg.bind(this,this.t));for(var b=0;b<a.length;b++){this.t.src=a[b]}this.yf=false};ia.prototype.Tc=function(a){this.Ne([a])};ia.prototype.Wa=function(a,b){this.E=a};ia.prototype.Qg=function(a){if(this.t==a){this.dispatchEvent("load");this.re=true}};ia.prototype.ba=function(){return this.re};function lb(a){this.F=a;this.Kf()}lb.prototype.show=function(a){f.setStyles(this.F,{display:a?"none":""})};lb.prototype.hide=function(){this.show(true)};lb.prototype.Kf=function(){var a={position:"absolute",
right:0};for(var b=0;b<2;b++){var c=g.createElement("div");g.appendChild(this.F,c);f.setStyles(c,a);c.className="loading";c.innerHTML=_OC_MSG[Ab];a.bottom=0}};function ya(){this.G=g.createElement("div");g.appendChild(document.getElementsByTagName("body")[0],this.G);f.setStyles(this.G,{display:"none"})}ya.getInstance=function(){if(!ya.singleton){ya.singleton=new ya}return ya.singleton};ya.prototype.jf=function(a){g.appendChild(this.G,a);var b=g.removeNode.partial(a);ja.onLoad(a,b,b);a.src=cb};function Zc(a,
b,c,d){this.F=a;f.setStyles(a,{width:c,height:d,backgroundColor:"#FFF"});a.innerHTML=b}function K(a,b){P.call(this,b);this.a=a;var c=this.na();this.Ia.push(c);this.Za=new ia(c);this.Se.push(this.Za);var d=this.na();this.Ia.push(d);this.G=new ia(d);this.Se.push(this.G);this.Oc=this.na();this.Ia.push(this.Oc);var e=g.createElement("img");e.src=cb;this.vi.push(e);this.Oc.appendChild(e);j(this.Oc,ka,this.B.bind(this));j(this.Oc,hb,H.cancel)}K.inherits(P);K.prototype.B=function(a){var a=a||window.event;
a.display=this;K.eventTarget.dispatchEvent(a)};K.prototype.r=function(a){K.z.r.call(this,a);if(a.Ca())this.ta(a)};K.prototype.ta=function(a){if(a==this.v){var b=a.Ca();if(b&&!this.N){b=y.getUrlForWidth(b,this.E);aa(this.G,"load",this.Ng.bind(this,a,b,this.E));aa(this.Za,"load",this.Eg.bind(this,a));this.G.Tc(b);var c=this.a.Ld().Uf(a.k());c.push(b);this.mj=b;this.Za.Ne(c);this.N=true}if(a.ee([16,8])&&!this.qb){var d=["<table width=100% height=100%><tr><td>",'<img src="/googlebooks/restricted_logo.gif"/><br/>',
_OC_MSG[Jc],"</td></tr></table>"].join("");this.qb=this.na();new Zc(this.qb,d,this.E,this.Ra);this.N=true;this.Dc(a)}K.z.ta.call(this,a)}};K.prototype.vc=function(){return this.mj};K.prototype.Ng=function(a,b,c){if(a==this.v){this.Za.empty();this.a.Ld().Oh(a.k(),c,b)}K.z.Dc.call(this,a)};K.prototype.Eg=function(a){K.z.Dc.call(this,a)};K.prototype.ba=function(){return this.G.ba()||this.Za.ba()||this.qb};K.prototype.cleanup=function(){this.G.reset();this.Za.reset();this.N=false;if(this.qb){g.removeNode(this.qb);
this.qb=null}K.z.cleanup.call(this)};K.eventTarget=new p;function qa(a,b){P.call(this,b);this.a=a;this.bb=this.na();this.Ia.push(this.bb);this.ud=g.createElement("div");g.appendChild(this.bb,this.ud);f.setStyles(this.bb,{display:"none",backgroundColor:"#FFFFFF",fontSize:"14px",textAlign:"left",cursor:"auto",overflow:"auto",position:"absolute"});f.setStyles(this.ud,{padding:10});j(this.bb,ka,this.B.bind(this))}qa.inherits(P);qa.prototype.B=function(){this.a.kb().hg().hh()};qa.prototype.ta=function(){if(typeof this.v.Id()!=
"undefined"){this.ud.innerHTML=this.v.Id();f.setStyles(this.bb,{display:""})}};qa.prototype.r=function(a){qa.z.r.call(this,a);this.ta()};qa.prototype.ba=function(){return this.re};qa.prototype.cleanup=function(){qa.z.cleanup.call(this);f.setStyles(this.bb,{display:"none"})};function la(a){this.a=a;this.kd();j(a,Hb,this.J.bind(this))}la.prototype.kg=function(){return this.U};la.prototype.f=function(){return this.U[this.U.length-1].V()};la.prototype.Pe=function(a){if(this.ya!=a){this.ya=a;this.ld()}};la.prototype.ya=1;la.prototype.jg=function(a){for(var b=0;b<this.U.length;b++){var c=this.U[b];if(c.q()<=a&&c.V()>=a){return c}}};la.prototype.Kd=function(a){for(var b=0;b<this.U.length;b++){var c=this.U[b];if(c instanceof pa){if(c.g()==a){return c.q()}}}};la.prototype.kd=
function(){var a,b=this.a.hb().wg();this.U=[];for(var c=0;c<b.length;c++){var d=b[c];if(a){if(this.a.si()&&d.ha()-a.ha()>1){this.U.push(new Ha(a,d))}}this.U.push(new pa(this,d));a=d}};la.prototype.J=function(){this.kd();this.ld()};la.prototype.ld=function(){var a=0;for(var b=0;b<this.U.length;b++){var c=this.U[b],d=c.f(),e=a+d;c.Zh(a,e);a=e;a+=10}};function Y(){this.id=Y.ak++}Y.ak=0;Y.prototype.Zh=function(a,b){this.$j=a;this.Si=b};Y.prototype.q=function(){return this.$j};Y.prototype.V=function(){return this.Si};
Y.prototype.uc=function(a){if(a<this.q()){return this.q()-a}else if(a>this.V()){return a-this.V()}else{return 0}};function pa(a,b){Y.call(this);this.fj=a;this.v=b}pa.inherits(Y);pa.prototype.g=function(){return this.v};function Ha(a,b){this.type="sep";Y.call(this);this.Mj=a;this.Nc=b}Ha.inherits(Y);Ha.prototype.zg=function(){return this.Mj};Ha.prototype.rg=function(){return this.Nc};Ha.prototype.f=function(){return 36};Y.prototype.f=function(){return Math.floor(this.fj.ya*this.v.xc())};Y.hk=function(a){var b=
[pa,Ha];for(var c=0;c<b.length;c++){var d=b[c];if(a instanceof d){return d}}};function t(a){ba.call(this);this.s={};if(a){this.rb(a)}}t.inherits(ba);t.getDataObjectFromRaw=function(a){return{src:a.src,sig:a.purl,title:a.pt,pid:a.pid,orderId:a.pd,flags:a.pf}};t.makeRawPageInfo=function(a){var b=t.getDataObjectFromRaw(a);return new t(b)};t.prototype.ph=function(){if(this.Mi){return this.Mi.readyState<4}return false};t.prototype.Fd=function(a){var b=y.replaceUrlParameter("jscmd","click3",this.Pa());if(a)b=y.replaceUrlParameters(b,a);this.Mi=q.getJSONObject(b,this.Mg.bind(this))};
t.prototype.Mg=function(a){this.o.kh(a)};t.prototype.ac=function(a){this.o=a};t.prototype.Pa=function(){if(this.s.url){return this.s.url}var a=["pg="+this.k()];if(this.Ud())a.push("sig="+this.Ud());return[this.o.yg(),"&",a.join("&")].join("")};t.prototype.gi=function(a){this.rb({url:a})};t.prototype.xc=function(){return this.Rd().$f()};t.prototype.ii=function(a){var b={src:"src",highlights:"highlights",links:"Links",content:"content",flags:"flags"},c={};for(var d in b){var e=b[d];if(a[e]!==undefined){c[d]=
a[e]}}this.rb(c);this.dispatchEvent(La)};t.prototype.Tc=function(a){this.rb({src:a})};t.prototype.k=function(){return this.s.pid};t.prototype.Ud=function(){return this.s.sig};t.prototype.ha=function(){return this.s.order};t.prototype.Id=function(){return this.s.content};t.prototype.Ca=function(){return this.s.src};t.prototype.pe=function(){return!this.ee([4,8,16])};t.prototype.Qh=function(){return this.de(4)};t.prototype.de=function(a){return this.s.flags&a};t.prototype.ee=function(a){return a.some(this.de.bind(this))};
t.prototype.cg=function(){if(this.s.highlights){var a=[];this.s.highlights.c(function(b){a.push([b.X,b.Y,b.W,b.H])});return a}};t.prototype.mg=function(){var a=[];if(this.s.links){this.s.links.c(function(b){var c=b.region,d=b.target_pid;a.push([c.X,c.Y,c.W,c.H,d])});return a}};t.prototype.Xf=function(){if(this.s.clip_highlight){var a=[],b=this.s.clip_highlight;["X","Y","W","H"].c(function(c){a.push(b[c])});return[a]}};ba.prototype.Qa=function(){return this.s.title};function ea(){L.call(this)}ea.inherits(L);ea.prototype.hi=function(a){this.Fe=a};ea.prototype.yg=function(){return this.Fe};ea.prototype.ji=function(a){this.Fe=y.replaceUrlParameter("vq",a,this.Fe)};ea.prototype.kh=function(a){var b=a.page;for(var c=0;c<b.length;c++){var d=b[c],e=this.gb(d.pid);if(e){e.ii(d)}}};ea.makeSingleton=function(){ea.singleton=new ea};ea.prototype.Ea=function(a){if(a instanceof Array){a.c(function(b){b.ac(this)},this);ea.z.Ea.call(this,a)}else{this.Ea([a])}};function Q(a,b,c){this.a=a;this.e=b;this.Ka=[];this.L=[];var d=20;while(d--)this.Ka.push(new J(a,b,c))}Q.prototype.sg=function(){if(!this.Ka.length){this.Kh()}var a=this.Ka.pop();this.L.push(a);return a};Q.prototype.tg=function(a){for(var b=0;b<this.L.length;b++){if(this.L[b].g()==a){return this.L[b]}}};Q.prototype.Jh=function(a){for(var b=0;b<this.L.length;b++){if(this.L[b]==a){this.L.splice(b,1);a.hide();this.Ka.push(a);return}}};Q.prototype.Kh=function(){this.L.sort(Q.Zi.partial(this.e.ng()));
for(var a=0;a<5;a++){var b=this.L.pop();b.hide();this.Ka.push(b)}};Q.prototype.Qc=function(){var a;while(a=this.L.pop()){a.hide();this.Ka.push(a)}};Q.Zi=function(a,b,c){return Q.ug(a,b)-Q.ug(a,c)};Q.ug=function(a,b){return Math.min(Math.abs(a-b.Ma()),Math.abs(a-(b.Ma()-b.f())))};Q.prototype.qh=function(a){return this.L.some(function(b){return a==b.g()})};Q.prototype.bg=function(){return this.L};Q.prototype.cleanup=function(){this.Qc();this.Ka.c(function(a){a.cleanup()});this.cleanPages=[]};var l={};l.getNodeWidth=function(a){return a.clientWidth};l.getNodeHeight=function(a){return a.clientHeight};l.getOffsetWidth=function(a){return a.offsetWidth};l.getOffsetHeight=function(a){return a.offsetHeight};l.getMaxWidth=function(a){return Math.max(a.clientWidth,a.offsetWidth)};l.getMaxHeight=function(a){return Math.max(a.clientHeight,a.offsetHeight)};l.getWindowHeight=function(){return window.innerHeight||l.getWindowProperty("clientHeight")};l.getWindowWidth=function(){return window.innerWidth||
l.getWindowProperty("clientWidth")};l.getWindowProperty=function(a,b){var c=b||document;if(c.compatMode=="BackCompat"){return c.body[a]}else if(c.compatMode=="CSS1Compat"){return c.documentElement[a]}else if(c.body[a]){return c.body[a]}};l.getYPosition=function(a){return l.getPosition(a).y};l.getXPosition=function(a){return l.getPosition(a).x};l.getPosition=function(a,b){var c={x:0,y:0},d=a;while(a){c.x+=a.offsetLeft;c.y+=a.offsetTop;a=a.offsetParent}if(b){var a=d.offsetParent;while(a&&a.tagName&&
!g.isNodeType(a,"body")){c.x-=a.scrollLeft;c.y-=a.scrollTop;a=a.parentNode}}return c};l.Ma=function(a,b){var c={x:0,y:0},d=b;while(d){if(d==a)return c;c.x+=d.offsetLeft;c.y+=d.offsetTop;d=d.parentNode}};l.getNodeBox=function(a){var b=l.getPosition(a,true);return new A(b.x,b.y,b.x+l.getNodeWidth(a),b.y+l.getNodeHeight(a))};function bd(a){var b=a.g();if(!b)return;var c=b.Pa();c=y.replaceUrlParameter("output","pw",c);window.open(c,"_blank")};function Kb(a,b,c,d,e,h){this.a=a;this.pc=b;this.wj=c;this.wj.width=1;this.b=a.ia();this.ua=d;this.pk=e;this.cd=h;f.setStyles(this.ua,{overflow:"auto"});j(window,va,this.ae.bind(this));j(this.a,va,this.Ie.bind(this))}Kb.prototype.ae=function(){this.a.p(Jb)};Kb.prototype.Ie=function(){var a=l.getWindowHeight(),b=l.getYPosition(this.b),c=a-b,d=0;if(this.cd){d=(z.IE()?l.getOffsetHeight(this.cd):l.getNodeHeight(this.cd))||0}f.setStyles(this.ua,{height:Math.max(0,c-1)});f.setStyles(this.b,{height:Math.max(0,
c-d-2),width:l.getWindowWidth()-(this.pc.Ic()?0:260)})};function Ka(a){this.Hj=a;this.l=a;f.setStyles(this.Hj,{backgroundPosition:"center center",backgroundRepeat:"no-repeat"})}Ka.prototype.fb=function(a,b,c){var d=b||this.qa.bind(this),e=c||this.pa.bind(this);q.get(a,d,e);this.ye=this.l.innerHTML;var h=g.createElement("div");h.innerHTML=_OC_MSG[Ab];f.setStyles(h,{color:"#808080",visibility:"visible"});var i=l.getNodeHeight(this.l);if(i>0){f.setStyles(h,{height:i})}this.l.innerHTML="";g.appendChild(this.l,h)};Ka.prototype.nd=function(a){this.l.innerHTML=
a;f.setStyles(this.l,{height:""})};Ka.prototype.qa=function(a){this.nd(a)};Ka.prototype.pa=function(){this.nd(this.ye)};function Z(a,b,c,d,e,h,i,m){Ka.call(this,b);this.ij=a;this.o=c;this.tj=i;this.Pf=d;this.Bi();this.xi=m;this.ua=e;this.xj=h}Z.inherits(Ka);Z.prototype.Bi=function(){this.Pf.onsubmit=this.ch.bind(this);var a=k.getArrayIterator(this.Pf.getElementsByTagName("input"));while(a.hasNext()){var b=a.next();if(b.type=="text"){this.Di=b}if(b.type=="submit"){this.ok=b}}};Z.prototype.ch=function(a){H.cancel(a);
if(this.Di.value.trim().length>0){var b=this.Di.value,c=y.replaceUrlParameter("q",b,window.location.href);this.fb(c,b)}};Z.prototype.fb=function(a,b){var c=y.replaceUrlParameter("jscmd","searchvolume",a);Z.z.fb.call(this,c,this.qa.bind(this,b),this.pa.bind(this,b));if(this.xi){this.xi()}};Z.prototype.qa=function(a,b){Z.z.qa.call(this,b);this.we=a;setTimeout(this.Th.bind(this),0)};Z.prototype.Th=function(){var a=this.ij.offsetTop,b=this.l.offsetTop+l.getNodeHeight(this.l),c=this.ua.scrollTop,d=l.getNodeHeight(this.ua);
if(b>d+c){var e=b-d;if(e>a)e=a-5;else e+=5;var h=new I;h.Ya(this.ua,"scrollTop",c,e);h.move(I.getAnimationDuration(Math.abs(c-e)))}};Z.prototype.pa=function(a,b){Z.z.pa.call(this,b)};Z.prototype.Wg=function(a,b){if(this.we){this.o.ji(this.we);delete this.we}this.tj.fc(a,b)};function sa(a,b,c,d){this.w=a;this.Hh=b;this.Nc=c;this.Lb=d;this.fa=g.createElement("div");f.setStyles(this.fa,{position:"absolute",display:"none"});g.appendChild(this.w,this.fa);this.fa.innerHTML=this.Bg()}sa.prototype.dg=function(){return this.Lb};sa.prototype.show=function(){f.setStyles(this.fa,{display:""})};sa.prototype.$b=function(a){this.xe=a;f.setStyles(this.fa,{top:a,left:0})};sa.prototype.Ma=function(){return this.xe};sa.prototype.Vc=function(a){f.setStyles(this.fa,{width:a})};sa.prototype.cleanup=
function(){if(this.fa.parentNode){g.removeNode(this.fa)}};sa.prototype.wh=function(){var a=this.Nc.ha()-this.Hh.ha(),b=parseInt(this.Hh.Qa())+1,c=parseInt(this.Nc.Qa())-1;if(a>2){if(!isNaN(b)&&!isNaN(c)){return k.format(_OC_MSG[Oc],b,c)}}else{if(!isNaN(b)){return k.format(_OC_MSG[Nc],b)}}return _OC_MSG[Rc]};sa.prototype.Bg=function(){return'<center><table align=center  style="empty-cells: show; background-color: #e6e6e6;" cellpadding=0 cellspacing=0><tr><td background="/googlebooks/images/stl.gif" width=5 height=5></td><td colspan=2 style="border-top: 1px solid #a3a3a3;"><div style="height:1px; overflow:hidden;">&nbsp;</div></td><td width=5 height=5 background="/googlebooks/images/str.gif"></td></tr><tr><td style="border-left: 1px solid #a3a3a3;"><div style="height:1px; overflow:hidden;">&nbsp;</div></td><td align=center width=30><img src="/googlebooks/images/pages.gif" width=19 height=24></td><td style="font-size:83%; padding-right:.3em;">'+
this.wh()+'.</td><td style="border-right: 1px solid #a3a3a3;"><div style="height:1px; overflow:hidden;">&nbsp;</div></td></tr><tr><td background="/googlebooks/images/sbl.gif" width=5 height=5></td><td colspan=2 style="border-bottom: 1px solid #a3a3a3;"><div style="height:1px; overflow:hidden;">&nbsp;</div></td><td background="/googlebooks/images/sbr.gif" width=5 height=5></td></tr></table></center>'};function Xa(){this.Ba={};this.Lb=0}Xa.prototype.Xc=function(a){if(a!=this.kc){return}for(var b in this.Ba){this.Ba[b].go()}setTimeout(this.Xc.bind(this,a),100)};Xa.prototype.vb=function(a,b){var c=this.Lb++,d=b||1,e=!k.getNumKeys(this.Ba);this.Ba[c]=new Lb(a,d);if(e){this.kc={};setTimeout(this.Xc.bind(this,this.kc),0)}return c};Xa.prototype.Rc=function(a){var b=this.Ba[a];if(!b)return;b.cleanup();delete this.Ba[a];if(!k.getNumKeys(this.Ba)){this.kc={};this.Xc(this.kc)}};Xa.prototype.cleanup=function(){for(var a in this.Ba){this.Rc(a)}};
function Lb(a,b){this.$a=a;this.zj=b||1;this.ic=0}Lb.prototype.go=function(){if(!this.ic){this.$a()}this.ic++;if(this.ic==this.zj)this.ic=0};Lb.prototype.cleanup=function(){delete this.$a};var sb=new Xa;function ld(a,b,c){this.Ah=a;this.ka=this.Ah.offsetHeight;this.$a=b;var d=c||1000;setInterval(this.wf.bind(this),d)}ld.prototype.wf=function(){var a=this.Ah.offsetHeight;if(this.ka!=a){this.ka=a;this.$a()}};function wa(a){this.Yj=a;this.sf=[];this.Mc()}var Bb="#9daecd #f4f8ff #f4f8ff #9daecd",kd=s+"zoomout.gif",jd=s+"zoomin.gif",fd=s+"onepage.gif",id=s+"twopage.gif",hd=s+"select.gif",dd=s+"disabled_select.gif",ed=s+"hand.gif",gd=s+"print_icon.gif";function Mb(a,b,c,d){wa.call(this,b);this.a=a;var e=18,h=18;this.za(kd,this.yb.bind(this,nc,0),_OC_MSG[Xc],e,h);this.za(jd,this.yb.bind(this,mc,1),_OC_MSG[Wc],e,h);if(!c){this.Mc();var i=this.za(fd,this.yb.bind(this,1,2),_OC_MSG[Mc],e,h);i.Zb(N.doesFunctionReturnValue.bind(null,
a.Da.bind(a),1));i=this.za(id,this.yb.bind(this,2,3),_OC_MSG[Tc],e,h);i.Zb(N.doesFunctionReturnValue.partial(a.Da.bind(a),2))}if(oa.enableClips){this.Mc();var i=this.za(ed,a.Yb.bind(a,v),_OC_MSG[Gc],e,h);i.Zb(N.doesFunctionReturnValue.partial(a.wc.bind(a),v));var m=a.Yb.bind(a,za),i=this.za(hd,m,_OC_MSG[Hc],e,h);i.Zb(N.doesFunctionReturnValue.partial(a.wc.bind(a),za));i.bi(N.doesFunctionReturnValue.partial(a.ib.bind(a),ua),dd);this.kf(_OC_MSG[Lc],{color:"#F00",fontSize:10,verticalAlign:"top",cursor:xa},
m)}if(d){this.za(gd,bd.partial(a),"",e,h)}j(a,Ma,this.update.bind(this));j(a,ob,this.update.bind(this));this.update()}Mb.inherits(wa);Mb.prototype.yb=function(a,b){this.a.p(a);this.a.instrument(0,b)};wa.prototype.za=function(a,b,c,d,e){var h=new $(this,a,b,c,d,e);this.sf.push(h);return h};wa.prototype.kf=function(a,b,c){var d=g.createElement("span");d.innerHTML=a;if(b)f.setStyles(d,b);g.appendChild(this.lc,d);if(c)j(d,B,this.uf.bind(this,c))};wa.prototype.uf=function(a){a();this.update()};wa.prototype.Mc=
function(){this.lc=g.createElement("span");f.setStyles(this.lc,{margin:"0 7"});g.appendChild(this.Yj,this.lc)};wa.prototype.Zf=function(){return this.lc};wa.prototype.update=function(){this.sf.c(function(a){a.update()})};function $(a,b,c,d,e,h){this.Zj=a;this.ub=c;this.Uj=b;var i=g.createElement("img");this.t=i;ja.onLoad(i,f.setStyles.partial(this.t,{visibility:""}));f.setAttributes(i,{title:d,width:e,height:h,src:b});g.appendChild(a.Zf(),i);f.setStyles(i,{visibility:"hidden"});f.setStyles(i,{border:"1px solid",
cursor:xa,margin:"0 1",borderColor:"#dde5ff"});j(i,nb,this.ra.bind(this));j(i,ka,this.B.bind(this));j(i,mb,this.$.bind(this));j(i,B,this.Eb.bind(this))}$.prototype.update=function(){var a="#dde5ff";if(this.Nb())a=Bb;this.Vh(this.Nb()?Bb:"#dde5ff");f.setStyles(this.t,{backgroundColor:this.Nb()?"#eff5ff":""});this.t.src=this.Hc()?this.$i:this.Uj;f.setStyles(this.t,{cursor:this.Hc()?"":xa})};$.prototype.Zb=function(a){this.oh=a};$.prototype.bi=function(a,b){this.mh=a;this.$i=b};$.prototype.Eb=function(a){this.ub();
this.Zj.update();this.ra()};$.prototype.ra=function(a){this.Kc("#f4f8ff #9daecd #9daecd #f4f8ff")};$.prototype.$=function(a){this.Kc("#dde5ff")};$.prototype.B=function(a){this.Kc(Bb);return false};$.prototype.Vh=function(a){f.setStyles(this.t,{borderColor:a})};$.prototype.Kc=function(a){if(this.Nb()||this.Hc())return;f.setStyles(this.t,{borderColor:a})};$.prototype.Nb=function(){if(this.oh)return this.oh();return false};$.prototype.Hc=function(){if(this.mh)return this.mh();return false};function D(a,b){this.a=a;this.u=g.createElement("div");f.setStyles(this.u,{position:"absolute",backgroundColor:"white",top:0,left:0});this.d=[];this.Tf();var c={overflow:"hidden",backgroundColor:"#FAA",position:"absolute"};g.appendChild(b,this.u);this.mb=g.createElement("div");this.Mb=g.createElement("div");this.d.push(j(this.mb,"dblclick",this.$d.bind(this)));f.setStyles(this.mb,c);f.setStyles(this.Mb,c);g.appendChild(this.u,this.mb);g.appendChild(this.u,this.Mb);this.Ae=qb.getDecoratedPageDisplay(this.a,
this.mb);this.Be=qb.getDecoratedPageDisplay(this.a,this.Mb)}D.prototype.$d=function(a){H.cancel(a);if(!this.a.Ob()){this.a.p(pb)}};D.prototype.ni=function(a){this.m=a;this.nb=Math.floor((this.m-19-23-38)/2);this.Fc=Math.floor(this.nb/this.a.hb().ag());this.dk=this.Fc+11+15};D.prototype.bc=function(a){f.setStyles(this.u,{display:a?"":"none"})};D.prototype.draw=function(){f.setStyles(this.mb,{left:19,top:11});f.setStyles(this.Mb,{left:19+this.nb+38,top:11});this.Ae.Wa(this.nb,this.Fc);this.Be.Wa(this.nb,
this.Fc);var a=this.nb,b=this.Fc,c=19+2*a+38,d=[[0,0,19,11],[19,0,a,11],[19+a,0,38,11],[19+a+38,0,a,11],[c,0,23,11],[0,11,19,6],[0,17,19,b-6],[19+a,11,38,b],[c,11,23,6],[c,17,23,b-6],[0,11+b,19,15],[19,11+b,a,15],[19+a,11+b,38,15],[19+a+38,11+b,a,15],[c,11+b,23,15]];for(var e=0;e<d.length;e++){var h=d[e];f.setStyles(this.xd[e],{left:h[0],top:h[1],width:h[2],height:h[3]})}};D.prototype.gg=function(){return this.nb};D.prototype.Oa=function(){return[this.pj,this.Rj].filter(function(a){return!(!a)})};
D.prototype.f=function(){return this.dk};D.prototype.i=function(){return this.m};var rb="repeat-x",Wa="repeat-y",Yc=[s+"binding-top-left.gif",s+"binding-top.gif",s+"binding-top-center.gif",s+"binding-top.gif",s+"binding-top-right.gif",s+"book-binding-left.gif",s+"book-binding-left.gif",s+"binding-center.gif",s+"binding-right.gif",s+"binding-right.gif",s+"binding-bottom-left.gif",s+"binding-bottom.gif",s+"binding-bottom-center.gif",s+"binding-bottom.gif",s+"binding-bottom-right.gif"],ac=["","","",
"","","","","","googlebooks/frontcover_topright_gray.gif","googlebooks/frontcover_right.gif","","","","googlebooks/frontcover_bottom.gif","googlebooks/frontcover_bottomright.gif"],$b=["","","","","","googlebooks/backcover_topleft_gray.gif","googlebooks/backcover_left.gif","","","","googlebooks/backcover_bottomleft.gif","googlebooks/backcover_bottom.gif","","",""],bc=["",rb,"",rb,"",Wa,Wa,Wa,Wa,Wa,"",rb,"",rb,""];D.prototype.Tf=function(){var a=k.arrayToHash([0,1,5,6,10,11]);this.xd=[];for(var b=0;b<
15;b++){var c=g.createElement("div");f.setStyles(c,{position:"absolute"});if(bc[b]){f.setStyles(c,{backgroundRepeat:bc[b]})}else{f.setStyles(c,{backgroundRepeat:"no-repeat"})}g.appendChild(this.u,c);this.xd.push(c);if(a[b]){this.d.push(j(c,"dblclick",this.$d.bind(this)))}}};D.prototype.Hi=function(a){if(this.Ri==a){return}this.Ri=a;for(var b=0;b<15;b++){f.setStyles(this.xd[b],{backgroundImage:"url("+a[b]+")"})}f.setStyles(this.mb,{visibility:a==ac?"hidden":""});f.setStyles(this.Mb,{visibility:a==
$b?"hidden":""})};D.prototype.cleanup=function(){this.Ae.cleanup();this.Be.cleanup();var a;while(a=this.d.pop())E(a);if(this.u.parentNode){g.removeNode(this.u)}};D.prototype.fi=function(a,b){var c=Yc;this.pj=a;if(a)this.Ae.r(a);else c=ac;this.Rj=b;if(b)this.Be.r(b);else c=$b;this.Hi(c)};D.getWidthForImageWidth=function(a){return a*2+D.getNonImageWidth()};D.getHeightForImageHeight=function(a){return a+D.getNonImageHeight()};D.getNonImageHeight=function(){return 26};D.getNonImageWidth=function(){return 80};var y={};y.getUrlForWidth=function(a,b){var c=y.stripWidthParam(a),d;if(c.indexOf("?")<0){d="?"}else{d="&"}return c+d+"w="+b};y.stripWidthParam=function(a){return a.replace(/&?(w|h)=[0-9]+/,"")};y.parseUrlParameter=function(a,b){var c=new RegExp("[?&]"+a+"=(\\w+)"),d=c.exec(b);if(d)return d[1]};y.replaceUrlParameters=function(a,b){for(var c in b){a=y.replaceUrlParameter(c,b[c],a)}return a};y.replaceUrlParameter=function(a,b,c){var d=c.replace(/#.*/g,""),e=y.removeUrlParameter(a,d),h=e.indexOf("?")<
0?"?":"&";return e+h+a+"="+encodeURIComponent(b)};y.removeUrlParameter=function(a,b){var c=new RegExp("(&"+a+"=[^&#]+)","g");b=b.replace(c,"");var d=new RegExp("(\\?"+a+"=[^&#]+[&#])","g");return b.replace(d,"?")};function U(a,b){this.a=a;this.b=a.ia();this.vj=new G(this.b,this.a);this.yd={}}U.df={};U.df[1]=w;U.df[2]=ma;U.prototype.go=function(){j(this.a,"pagemodechange",this.Hb.bind(this));j(this.a,"interactionmodechange",this.Cc.bind(this));this.Hb()};U.prototype.go=function(){j(this.a,Ma,this.Hb.bind(this));j(this.a,Cb,this.Cc.bind(this));this.Hb()};U.prototype.Hb=function(){if(this.e){this.e.Oa().c(function(a){this.Je(a.k())},this);this.e.cleanup()}this.e=new U.df[this.a.Da()](this.a);this.a.Yb(v);this.Cc();
this.vj.mi(this.e)};U.prototype.Cc=function(){if(this.me){this.me.cleanup()}var a=this.a.wc();this.me=new a(this.a,this.e)};U.prototype.hg=function(){return this.me};U.prototype.Je=function(a){this.yd[a]=true};U.prototype.zf=function(a){delete this.yd[a]};U.prototype.nh=function(a){return!(!this.yd[a])};function Za(a){this.Ni=a}Za.prototype.qg=function(a,b,c){var d=this.pg(c);if(b>0){for(var e=0;e<d.length;e++){if(d[e]>a){return d[e]}}}else{for(var e=d.length-1;e>=0;e--){if(d[e]<a){return d[e]}}}};Za.prototype.pg=function(a){var b=a||[],c=this.Ni.filter(function(d){return!b.some(function(e){return Math.abs(e-d)<50})});c.push.apply(c,b);c.sort(k.compareIntegers);return c};Za.prototype.Nd=function(){return this.Ni.peek()};function N(a,b,c,d){oa.update(c);if(b.initial_zoom_width_override)w.lh=b.initial_zoom_width_override;var e=["footer_table"];for(var h=0;h<e.length;h++){var i=k.getElemById(e[h]);f.setStyles(i,{display:"none"})}var m=bb.parseParams(),r=b.disable_twopage?1:m.M||1,u=k.getElemById("viewport"),x=new n(u);x.Uc(r);if(b.fullview)x.ki(false);var M=qc(a.page,t,ea),S;if(d&&d.page){var Ba=d.page[0],T=Ba.pid;S=M.gb(T);S.rb(Ba);x.kb().Je(T)}else{S=M.Pd(0)}M.Xh(b.page_width,b.page_height);M.hi(a.prefix);x.ei(M);
var T=m.P||(S.Ca()&&S.pe()?S.k():M.Pd(0).k());x.Ke(T);if(oa.instrumentUI){var Na=new Eb;Na.$h(y.parseUrlParameter("id",window.location.href));x.ai(Na)}x.Le(oa.textDisplay?ua:Ua);var na=k.getElemById("text_mode");if(na){f.setStyles(na,{cursor:"pointer"});j(na,B,N.handleTextModeClick.partial(x,k.getElemById("text_mode_text")))}var Oa=k.getElemById("menu_container"),Ob=k.getElemById("menu"),Pb=new Fb(Oa,Ob);b.modules.c(function(ab){var Xb=k.getElemById(ab.id),zb=k.getElemById(ab.id+"_content");if(Xb&&
zb&&ab.id!="search"){var zc=Pb.ed(Xb,zb);if(ab.collapsed){zc.hide();f.setStyles(zb,{display:""})}}});var sc=new X(x),ub=new ta(x,M,sc),Qb=k.getElemById("search"),vb=k.getElemById("search_content"),Rb,Sb;if(vb){var tc=Pb.ed(Qb,vb),$a=new Z(Qb,vb,M,k.getElemById("search_form"),Oa,Ob,ub,N.Fj.partial(tc,x));Rb=$a.fb.bind($a);Sb=$a.Wg.bind($a)}var uc=document.getElementsByTagName("body")[0];f.setStyles(uc,{overflow:"hidden"});if(z.IE()){var vc=document.getElementsByTagName("html")[0];f.setStyles(vc,{overflow:"hidden"})}var wb=
k.getElemById("bottom_ad"),wc=k.getElemById("toolbar"),xc=new Mb(x,wc,b.disable_twopage,b.show_print_pages_button);xc.update();if(oa.enableHighlightUI){f.setStyles(k.getElemById("image_button_container"),{display:""});var yc=k.getElemById("image_buttons"),Tb=new Fa(yc,"/googlebooks/images/hilite_icon.gif",_OC_MSG[624],k.emptyFunction);new Zb(Tb,_OC_MSG[623],function(){return true});new Yb(Tb,{backgroundColor:""},{backgroundColor:"#FFFF7b"},function(){return true})}var xb=k.getElemById("page_label");
if(!xb){xb={form:k.getElemById("jtp_form"),go:k.getElemById("jtp_btn"),input:k.getElemById("jtp")}}new Va(x,M,k.getElemById("prev_btn"),k.getElemById("next_btn"),xb);_OC_InitHooks(ub.fc.bind(ub),Rb,N.emptyFunction,N.emptyFunction,Sb);var e=[k.getElemById("title_bar"),k.getElemById("drop_td"),k.getElemById("menu_td")];if(wb)e.push(wb);var ca=new Ea(x,e),Ub=new Fa(k.getElemById("fullscreen_view"),"/googlebooks/images/fullscreen.gif",_OC_MSG[Fc],ca.fullscreen.bind(ca),N.doesFunctionReturnValue.partial(ca.Ic.bind(ca),
false)),Vb=new Fa(k.getElemById("regular_view"),"/googlebooks/images/regularscreen.gif",_OC_MSG[Ec],ca.regular.bind(ca),ca.Ic.bind(ca)),yb=new Kb(x,ca,k.getElemById("viewport_table"),Oa,k.getElemById("viewport_td"),wb);yb.Ie();setTimeout(yb.ae.bind(yb),10);j(ca,Da,Ub.update.bind(Ub));j(ca,Da,Vb.update.bind(Vb));new bb(x);new gc(k.getElemById("gaia_bar"),x);var Wb=k.getElemById("ads_content");if(Wb){new Ca(Wb,x)}x.go()}N.fc=function(a,b){a.p(Ja,b)};N.Fj=function(a,b){a.show();b.p(kc)};N.doesFunctionReturnValue=
function(a,b){return a()==b};N.handleTextModeClick=function(a,b,c){H.cancel(c);a.Fi();b.innerHTML=a.ib()==ua?_OC_MSG[Uc]:_OC_MSG[Vc]};N.emptyFunction=function(){};_OC_Run=N;_OC_MenuHideHook=function(a){f.setStyles(k.getElemById(a),{display:"none"})};
 } catch (e) {_OC_Redirect(e);}
