GAddMessages({12577:"Chargement de la vue Street View...",11298:"Street View",12051:"Pas de photo disponible dans Street View.",12574:"Afficher la vue Street View d'une rue"});
__gjsload_maps2__('cbs', 'function uJ(a,b,c,d){this.P=H("div",a);this.P.id=d+"_bubble";this.o=b;this.Cv=c;this.zG=b.Ti();this.$a="bubble_arrow_north";a=vJ.url;var e=vJ.attr;c=new I(120,140);var f=new Q(e.bubble.x,e.bubble.y),g=new Q(e[this.$a].x,e[this.$a].y);this.G=new I(30,30);this.F=ko(a,this.P,f,c);this.xx=ko(a,this.P,g,this.G);this.ui=H("div",this.P);this.ui.id=d+"_bubble_txt";this.Lj=H("div",this.P);this.Lj.id=d+"_bubble_inv_title";this.Kj=H("div",this.P);this.Kj.id=d+"_bubble_inv_txt";this.Wn=H("div",this.P);this.Wn.id= d+"_bubble_thumb";f=new I(93,77);e=new Q(e.dragme_bg.x,e.dragme_bg.y);this.ep=ko(a,this.P,e,f);this.ep.id=d+"_bubble_inv";this.qP=this.Oq=i;this.lI=this.TQ=j;this.C="";this.j=new Q(0,0);Vla(this,c,f);this.ui.style.backgroundColor="white";this.ui.style.padding=mj(0);this.Lj.style.padding=mj(0);this.Kj.style.padding=mj(0);M(this.ui,"legal");this.ui.style.fontSize=mj(9);this.ui.style.width=mj(94);this.ui.style.overflow="auto";M(this.Lj,"legal");this.Lj.style.fontSize=mj(10);this.Kj.style.fontSize=mj(13); this.Kj.style.overflow="auto";this.Lj.style.textAlign="center";this.Kj.style.textAlign="center";P(this.Lj,G(11298));P(this.Kj,G(12574));d=s(function(){this.zG=b.Ti()}, this);V(b,Bb,this,d);V(b,Db,this,d);V(b,Rb,this,d);this.gb(this.$a);this.hide()} var vJ={url:_mStaticPath+"cb/mod_cb_scout/cb_scout_sprite_003.png",attr:{}},wJ=vJ.attr;wJ.bubble={x:0,y:537,width:120,height:140};wJ.bubble_arrow_east={x:0,y:120,width:30,height:30};wJ.bubble_arrow_north={x:0,y:677,width:30,height:30};wJ.bubble_arrow_south={x:0,y:503,width:30,height:30};wJ.bubble_arrow_west={x:46,y:469,width:30,height:30};wJ.dragme_bg={x:0,y:236,width:93,height:77}; var Wla=function(a){Xe?a.gb("bubble_arrow_west"):a.gb("bubble_arrow_east");L(a.ep);L(a.Lj);L(a.Kj);K(a.Wn);a.vf("");a.show()}, xJ=function(a){K(a.ep);K(a.Lj);K(a.Kj)}; n=uJ.prototype; n.gb=function(a){this.$a=a;var b=vJ.attr;b=new Q(b[a].x,b[a].y);lo(this.xx,this.G,b);var c,d,e,f=yJ(this,a),g=zJ(this,a);e=b=c=d=0;switch(a){case "bubble_arrow_north":c=f.x-15;d=f.y-30;e=g.minX;b=g.minY;break;case "bubble_arrow_east":c=g.minX;d=f.y-15;e=f.x+20-8;b=g.minY;break;case "bubble_arrow_south":c=f.x-15;d=g.minY;e=g.minX;b=f.y+20-2;break;case "bubble_arrow_west":c=f.x-30;d=f.y-15;e=f.x-20+8-120;b=f.y-51.5;break}ij(this.xx,new Q(c,d));ij(this.F,new Q(e,b));a=e+8+5;b=b+2+5;ij(this.Wn,new Q(a, b));this.j.x=a;this.j.y=b+75+15;ij(this.ep,new Q(a,b));ij(this.Lj,new Q(this.j.x,this.j.y-10));ij(this.Kj,new Q(a,b+5));this.vf(this.C)}; n.hide=function(){K(this.P);K(this.F);K(this.xx);K(this.ui);xJ(this);clearTimeout(this.I);this.I=i}; n.show=function(){L(this.P);L(this.F);L(this.xx);L(this.ui);xj(this.ep)&&this.N()}; n.fm=function(a){ij(this.P,a)}; n.vf=function(a){this.C=a?a:"";P(this.ui,this.C);ij(this.ui,new Q(this.j.x,this.j.y-this.ui.clientHeight))}; n.disable=function(){Oj(this.Wn,0.25)}; n.enable=function(){Oj(this.Wn,1);this.Oq&&L(this.Oq);this.qP&&wk(this.qP);this.TQ=this.lI=j}; var yJ=function(a,b){var c=new Q(0,0);switch(b){case "bubble_arrow_north":c.x=a.Cv.width/2;break;case "bubble_arrow_east":c.x=a.Cv.width;c.y=a.Cv.height/2;break;case "bubble_arrow_south":c.x=a.Cv.width/2;c.y=a.Cv.height;break;case "bubble_arrow_west":c.y=a.Cv.height/2;break}return c}, zJ=function(a,b){var c,d,e,f;a=yJ(a,b);switch(b){case "bubble_arrow_north":c=a.x-60;e=a.y-20-140+37;d=c+120;f=e+140+20;break;case "bubble_arrow_east":c=a.x;e=a.y-51.5;d=c+120+20;f=e+140;break;case "bubble_arrow_south":e=a.y;c=a.x-60;d=c+120;f=e+140+20;break;case "bubble_arrow_west":c=a.x-20+8-120;e=a.y-51.5;d=c+120+20;f=e+140;break}return new kl(c,e,d,f)}; uJ.prototype.N=function(){if(this.$a!="bubble_arrow_north"&&this.zG.Gi(AJ(this,zJ(this,"bubble_arrow_north"))))this.gb("bubble_arrow_north");else if(!this.zG.Gi(AJ(this,zJ(this,this.$a)))){for(var a=["bubble_arrow_east","bubble_arrow_south","bubble_arrow_west"],b=0,c=j,d;b<3&&!c;){d=a[b];c=AJ(this,zJ(this,d));c=this.zG.Gi(c);b++}c&&d!=this.$a&&this.gb(d)}this.I=setTimeout(s(this.N,this),1000)}; var AJ=function(a,b){var c=yl(a.P,a.o.ia());a=a.o.Vi();b.minX+=c.x-a.offsetLeft;b.maxX+=c.x-a.offsetLeft;b.minY+=c.y-a.offsetTop;b.maxY+=c.y-a.offsetTop;return b}; uJ.prototype.dha=function(a,b,c){a.done("cbpv1e");bo(c,vg)}; uJ.prototype.eha=function(a){a.done("cbpv1");this.lI=h;this.TQ&&this.enable()}; var Vla=function(a,b,c){jj(a.Wn,b);jj(a.ep,c);jj(a.Lj,c);jj(a.Kj,c);Jj(a.xx,1);Jj(a.Wn,2);Jj(a.ep,3);Jj(a.ui,4);Jj(a.Kj,5);Jj(a.Lj,6);K(a.ep);K(a.Lj);K(a.Kj)};function BJ(){} n=BJ.prototype;n.Pf=i;n.Ka=i;n.o=i;n.L=i;n.vT=j;n.qj=i;n.hB=i;n.we=i;n.Dq=h;n.ak=i;n.jI=i;n.iI=i;n.Gr=i;n.Jz=i;n.QN=i;n.RB=j;n.Ut=j;n.HL=j;n.initialize=function(a,b,c,d,e,f){this.Pf=a;this.ra=b;this.Ka=c;this.o=d;this.L=e;b=new I(49,92);this.we=new uJ(e,d,b,a.getId());Xla(this,f)}; n.F_=function(){z("cbu",qe,s(function(a){this.HL=a.Vaa(this.o)}, this))}; n.E_=function(){if(this.HL){z("cbu",qe,function(a){a.b8()}); this.HL=j}}; n.Nn=function(a){a?L(this.qj):K(this.qj)}; n.RH=function(a){a?this.ak.show():this.ak.hide()}; n.Vfa=da("Dq");n.UA=function(a){if(this.Dq&&a&&this.we)this.we.show();else this.we&&this.we.hide()}; n.XA=function(a){this.o=a;a=a.ia();a.appendChild(this.L);a.appendChild(this.hB)}; n.OF=function(){if(!this.Pf.vN()){this.Dq&&this.we&&this.we.vf(G(12577));this.jI=setTimeout(s(this.j,this),350)}}; n.Hh=function(){this.QN=this.Jz=this.Gr=i;this.ak&&this.ak.hide();this.RB=j;this.Dq&&this.we&&this.we.disable();if(this.jI){clearTimeout(this.jI);this.jI=i}if(this.iI){clearTimeout(this.iI);this.iI=i}}; n.GO=function(a,b){var c=b?b:CJ(this);if(c){var d={},e=new Ag(a);z("cbu",qe,s(function(f){d.pov=f.getPovForZoom(this.o,this.Jz);d.radius=b?50:f.getLockingRadius(this.o,c);this.ra.getCityblock(function(g){g.openPano(e,c,d);e.done()})}, this));Jv(this.Ka,function(f){var g,k;switch(a){case "cb_detail_scout":g=f.N3;k=f.mq;break;case "cb_detail_launchpad":g=f.K3;k=f.mq;break;case "cb_pegman":default:g=f.M3;k=f.F3;break}f.logClick(k,f.ti,_mCityblockFrogLogUsage,g)})}}; var Xla=function(a,b){var c={};Oh(c,Gv);var d=new Tn;Oh(d,mo);var e=Ni(2,s(function(){if(!this.Ut&&this.we&&this.ak&&this.qj){b();this.Ut=h}this.vT=h}, a));d.onLoadCallback=e;c.callback=e;a.hB=H("div",a.o.ia());a.hB.id=a.Pf.getId()+"_locked";z("cbl",2,s(function(f){this.ak=new f(this.hB,c,"lilypad00");this.ak.hide()}, a));Yla(a,d,c);if(b&&a.vT&&!a.Ut){b();a.Ut=h}}, Yla=function(a,b,c){var d=a.L,e=new I(49,52);a.qj=H("div",d);a.qj.id=a.Pf.getId()+"_locking";oj(a.qj);d=H("div",a.qj);oj(d);H("img",d).src=Ji("cb/target_locking",h);var f=H("div",a.qj);jj(f,e);Cj(f);oj(f);var g=c.attr.greenfuzz;ko(c.url,f,new Q(g.x,g.y),e,i,i,b);ij(d,new Q(10,40));ij(f,new Q(10,40));Jj(d,200);Jj(f,100);K(a.qj);Jj(a.qj,10002);Jj(a.hB,10003)}, CJ=function(a){if(a.Gr||a.RB)return a.Gr;var b=a.o;if(!xj(a.qj)){var c=yl(a.qj,b.ia());c.x+=38;c.y+=63;a=a.Pf.kM();return b.ub(new Q(c.x-a.width,c.y-a.height))}return i}; BJ.prototype.j=function(){var a=CJ(this);a&&z("cbu",qe,s(function(b){var c=b.getLockingRadius(this.o,a);b.queryCoverageAndCallback(a,s(this.xda,this),c);if(this.Dq&&this.we){this.we.disable();b=this.we;b.lI=j;var d=new I(94,75),e=new Wm;e.set("output","thumbnail");e.set("w",d.width);e.set("h",d.height);c&&e.set("radius",c);e.set("ll",a.ja());e.set("cb_client","maps_sv");c=e.Wa(h,"/cbk");e=new Tn;var f=new Ag("cb_preview");f.tick("cbpv0");e.onErrorCallback=s(b.dha,b,f);e.onLoadCallback=s(b.eha,b,f); b.qP=b.Oq;b.Oq=H("div",b.Wn);b.Oq&&K(b.Oq);ug(c,b.Oq,gl,d,e);L(b.Wn)}}, this))}; BJ.prototype.xda=function(a){if(a){this.RB=j;this.Gr=a.latlng;z("cbu",qe,s(function(b){this.Jz=b.getPovForZoom(this.o,a.pov);this.QN=a.text;this.iI=setTimeout(s(this.Nea,this),80)}, this))}else{this.Hh();this.RB=h;this.Dq&&this.we&&this.we.vf(G(12051));this.Pf.T0()}}; BJ.prototype.Nea=function(){if(this.Gr){if(this.Dq&&this.we){this.we.show();this.we.vf(this.QN);var a=this.we;a.TQ=h;a.lI&&a.enable()}a=this.o;if(this.ak)if(this.Pf.isDragging()||a.ca()>=15){var b=this.Jz.yaw?Math.round(Number(this.Jz.yaw)/22.5)%16:0;if(b<10)b="0"+b.toString();this.ak.gb("lilypad"+b.toString());a=a.Ha(this.Gr);a.x-=23;a.y-=17;b=this.Pf.kM();a.x+=b.width;a.y+=b.height;this.ak.fm(a);this.ak.show()}else this.ak.hide();K(this.qj)}};function DJ(a,b){this.ra=a;this.Ka=b} n=DJ.prototype;n.ra=i;n.Ka=i;n.o=i;n.L=i;n.Va=i;n.F0=j;n.Zg=i;n.xQ=j;n.iO="scout_in_launchpad";n.fS=new I(0,0);n.Dv=new I(0,0);n.RM="scout_hoverright";n.fc=j;n.wk=j;n.Ga=i;n.UF=i;n.B2=i;n.kF=j;n.BH=j;n.YP=0;n.XP=0;n.f2=0;n.d2=0;n.c2=0;n.e2=0;n.H_=gl;n.o_=j;n.GR=j;n.TI=j;n.GB=j;n.YG=-1;n.sL=j;n.h2="CityblockPegmanScoutOverlay";n.Tz=j; n.initialize=function(a,b,c){this.o=a;this.L=b;Fj(b);this.RM=Xe?"scout_hoverleft":"scout_hoverright";this.Va=new BJ;this.Va.initialize(this,this.ra,this.Ka,a,b,s(function(){this.o_=h;EJ(this,c)}, this));this.Ga=new Fm(this.L);this.Ga.enable();Zla(this);this.SB();this.M2();$la(this,c)}; n.getId=ea("cb_scout");n.show=function(){if(this.Zg)this.Zg.show();else this.xQ=h}; n.hide=function(){if(this.Zg)this.Zg.hide();else this.xQ=j}; n.gb=function(a){if(this.Zg&&this.Va){switch(a){case "pegman_dragleft":case "pegman_dragright":case "pegman_dragleft_disabled":case "pegman_dragright_disabled":this.Va.Nn(h);break;default:this.Va.UA(j);this.Va.Nn(j);this.Va.RH(j);break}this.Zg.gb(a)}else this.iO=a}; n.T0=function(){this.Zg&&this.Zg.Pg()=="pegman_dragleft"?this.gb("pegman_dragleft_disabled"):this.gb("pegman_dragright_disabled");this.Va.Hh()}; n.mfa=function(){var a=this.Ka.jg;if(a){a=a.Oy();a=new Q(a.x+-9,a.y+-10);if(kn()){a.x+=49;a.y+=0}ij(this.L,a);this.Ga.left=a.x;this.Ga.top=a.y}else this.hide()}; n.vN=l("BH");n.isDragging=l("fc");n.Kd=function(a){a?this.Ga.enable():this.Ga.disable()}; n.kM=l("fS");var $la=function(a,b){var c=H("div",a.L);jj(c,new I(49,52));Cj(c);oj(c);var d={};Oh(d,Gv);var e=s(function(){this.F0=h;EJ(this,b)}, a);d.callback=e;z("cbl",2,s(function(f){this.Zg=new f(c,d,"scout_in_launchpad");Jj(this.Zg.P,10001);this.xQ?this.show():this.hide();this.iO!="scout_in_launchpad"&&this.gb(this.iO)}, a));EJ(a,b)}, EJ=function(a,b){if(!a.Ut&&a.Ga&&a.Zg&&a.o_&&a.F0){a.Zg.P.id="cb_scout";a.Ut=h;b()}}; DJ.prototype.f4=function(){var a=this.Ka.jg;this.wk=a&&a.Bo?h:j}; DJ.prototype.Pj=function(){this.Va.Hh();if(this.wk&&!this.fc){this.o.ua()&&this.o.xa();this.fc=h;this.wk=j;this.Va.F_();xJ(this.Va.we);var a=yl(this.L);this.Dv=new I(a.x,a.y);FJ(this);this.gb("pegman_dragright");if(!this.Zg||xj(this.Zg.P))this.show();var b=fh(this.h2);z("cbu",qe,s(function(c){z("cb_app",3,s(function(d){dh(b)&&c.fT(this.o,d)}, this))}, this))}else this.fc&&ama(this)}; var ama=function(a){var b=yl(a.L);a.Dv=new I(b.x,b.y);a.Ga.left-a.H_.x>0?a.gb("pegman_dragright"):a.gb("pegman_dragleft");a.H_=new Q(a.Ga.left,a.Ga.top);a.Va.OF()}; DJ.prototype.e4=function(){if(this.fc){this.fc=j;var a=this.Ka.jg;if(GJ(this))a&&a.JA();else{this.hide();this.Va.UA(j);this.Va.RH(j);this.kF=h;this.Va.GO("cb_detail_scout");this.Va.Nn(j)}}this.Va.Hh();this.Va.E_();this.kF=j;gh(this.h2);z("cbu",qe,s(function(b){b.d0(this.o)}, this));this.BH=j;if(this.UF){clearTimeout(this.UF);this.UF=i}}; var GJ=function(a){var b=a.Ka.jg;if(b){var c=b.Oy();b=Math.abs(a.Ga.left-c.x);a=Math.abs(a.Ga.top-c.y);return b<40&&a<40}else return j}; DJ.prototype.d4=function(){var a=this.Ka.jg;if(a&&a.Bo&&!this.kF){var b;a=this.o;if(a.ua()){var c=J("pushsv"),d=J("svcaption");if(c&&!xj(c)||d&&!xj(d))b=a.ua().X()}b?this.Va.GO("cb_detail_launchpad",b):bma(this)}this.kF=j}; DJ.prototype.P9=function(){var a=this.Ka.jg;!this.fc&&a&&a.Bo&&this.gb(this.RM)}; DJ.prototype.O9=function(){if(!this.fc&&(!this.Zg||this.Zg.Pg()==this.RM)){this.Va.Hh();this.gb("scout_in_launchpad")}}; var FJ=function(a){if(!GJ(a)){var b=0,c=0;if(a.Dv.width<a.f2)b=a.YP;else if(a.Dv.width>a.c2)b=-a.YP;if(a.Dv.height<a.d2)c=a.XP;else if(a.Dv.height>a.e2)c=-a.XP;if(b||c){a.BH=h;a.Va.Hh();a.o.gc().kG(b,c)}else a.BH=j}a.UF=setTimeout(s(function(){this.isDragging()&&FJ(this)}, a),30)}, bma=function(a){a.fc||Wla(a.Va.we)}; DJ.prototype.SB=function(){var a=this.o.Vi();this.fS=new I(a.offsetLeft,a.offsetTop)}; DJ.prototype.M2=function(){var a=yl(this.o.ia()),b=rj(this.o.ia());this.f2=a.x+15;this.c2=a.x+b.width-55;this.e2=a.y+b.height-55;this.d2=a.y+15;this.YP=wh(b.width*0.04,20);this.XP=wh(b.height*0.04,20)}; var Zla=function(a){var b=a.o;V(b,Bb,a,a.SB);V(b,Rb,a,a.SB);V(b,Db,a,a.SB);V(b,Db,a,a.M2);V(b,Hb,a,a.Va.Hh);V(b,Fb,a,a.m$);V(b,Ic,a,a.o$);V(b,"zoominbyuser",a,a.n$);if(b=a.Ga){V(b,"dragstart",a,a.f4);V(b,Pb,a,a.Pj);V(b,Qb,a,a.e4);V(b,B,a,a.d4)}T(a.L,fb,a,a.P9);T(a.L,gb,a,a.O9)}; DJ.prototype.o$=function(){if(!this.GB)this.GR=h;this.GB=j}; DJ.prototype.m$=function(){this.YG=this.o.ca();if(this.YG==this.o.Hf())this.B2=setTimeout(s(function(){this.Tz=h}, this),1000);else{clearTimeout(this.B2);this.Tz=j}if(!this.GB){this.TI=h;setTimeout(s(function(){this.TI=j}, this),250)}this.GB=j;if(this.isDragging()){this.Va.Hh();this.Va.Nn(h);this.Va.OF()}}; DJ.prototype.n$=function(){this.Va.Hh();this.GB=h;var a=this.Ka.O,b=this.Ka.jg;if(!this.isDragging()&&!this.TI&&!this.GR&&b&&b.Bo&&(!a||!a.hd)&&this.YG==this.o.Hf()&&!this.sL&&this.Tz){this.sL=h;Jv(this.Ka,function(d){d.logClick(d.mq,d.ti,_mCityblockFrogLogUsage,d.O3)}); var c=new Ag("cb_detail_zoom");this.ra.getCityblock(function(d){d.openPano(c);c.done()}); this.Tz=j;setTimeout(s(function(){this.sL=j}, this),250)}this.GR=this.TI=j}; DJ.prototype.nfa=function(){if(this.YG==this.o.Hf())this.Tz=h};X("cbs",1,DJ);X("cbs",2,uJ);X("cbs",3,BJ);X("cbs");');