(function(){telenavis={};telenavis.constants={baseUrl:'https://eu-08.telenavis.com/jsMap/',minZoom:1,maxZoom:18,defCenter:{x:24.363,y:38.842,srid:4326},defZoom:5,defLocale:'el-GR',css:'css/rmap.css',key:'54723618',maxPinsInView:100,overviewSize:100,overviewZoomDifference:1,overviewIconOpened:'https://eu-08.telenavis.com/jsMap/images/overview_close.png',overviewIconClosed:'https://eu-08.telenavis.com/jsMap/images/overview_show.png',viewRectangleMinimumZoom:0,allowMapWrapping:true,usePhysics:true,tileSize:256,noMapImage:'https://eu-08.telenavis.com/jsMap/images/nomap.png',tileUrl:'https://eu-08.telenavis.com/jsMap/tile.ashx',geocoderUrl:'https://eu-08.telenavis.com/jsMap/geocode.ashx',routerUrl:'https://eu-08.telenavis.com/jsMap/route.ashx',tileSources:[],showLoadingMessages:true,loading:{left:'17px',top:'20px',right:'',bottom:'',url:'https://eu-08.telenavis.com/jsMap/images/map-loader-2.gif'},showLoadingMessages:true,maxScrollDistance:2000,locale:'el',storageVersion:'2.1.0',bb:{x1:-20037508.342789,y1:-20037508.342789,x2:20037508.342789,y2:20037508.342789}};/*1.2.0*/var u=telenavis.constants;u.version='1.2.0';var H={sy:"Unsupported projection srid.",hk:"telenavis.Projector namespace is not available to perform projection conversion! Please check your implementation.",aM:"Polyline html element was found with that id.",dR:"Invalid WorldPoint passed.",sI:"Invalid element id. Can not find element with that id.",dA:"zIndex for PinLayer out of range.",oL:"An unknown error occured while accessing the server. If this error persists please contact the site administrator.",sT:"Invalid parameters where passed.",dU:"A route request requires at least two points.",sS:"A route request is already pending. If you require multiple requests please create multiple telenavis.Router instances.",hg:"You are attempting to call the OverlayLayer base class!",fW:"WARNING: The maximum adviced number of pins on the map has been reached. You can click ok and the map will contain more pins that it is adviced and it's performance will be effected.\nIf you cancel the map will contain only partial pins.\n\nClick ok to proceed with all availabel pins.\n\n(you will not be asked again until the page is reloaded.)",hh:"Currently showing only portion of the available pins.Reset ",fQ:"Attempted to draw a polyline but could not get the layer's DIV.",fm:"Parent div not found",ai:"No world pos set for pin before adding to layer.",rj:"Not implemented.",fv:"Map already initialized.",fx:"A layer with the same id already exists in the map.",fn:"Invalid map object.",fb:'Layer is not properly initialized (not added to the map?)'};var rw={iw:90,tp:1000};var eU={TILE_LAYER:0,USER_LAYER:1,OVERLAY_LAYER:2};var rE={ii:0,uo:1,hj:2};var F={pl:'zoomBar',pK:'mousedown',tg:'mousemove',yK:'mouseup',yJ:'pointer',tN:'px',uB:'visible',uC:'hidden',fI:'fI',pT:'pT'};var eA={fE:u.baseUrl+'images/zoom_plus.png',fY:u.baseUrl+"images/zoom_level_top.png",fR:u.baseUrl+"images/zoom_level.png",fp:u.baseUrl+"images/zoom_level_bottom.png",fi:u.baseUrl+'images/zoom_minus.png',fa:u.baseUrl+'images/zoom_handle.png',ui:u.baseUrl+'images/Open-hand.cur',fu:u.baseUrl+'images/Closed-hand.cur'};var rx=function(v){v=v?v:window.event;if(v.stopPropagation){v.stopPropagation();}else{v.cancelBubble=true;}if(v.preventDefault){v.preventDefault();}else{v.returnValue=false;}};var rP=function(eT,rR){if(typeof(rR)=='string'){eT.style.overflow=rR;}else{if(rR){eT.style.overflow=F.uB;}else{eT.style.overflow=F.uC;}}};var wH=function(eT,rR){if(typeof(rR)=='string'){eT.style.visibility=rR;}else{if(rR){eT.style.visibility=F.uB;}else{eT.style.visibility=F.uC;}}};var uR=function(eT,ph){eT.innerHTML=ph;};var uQ=function(a){return!isFinite(a);};var wA=function(wu,ew,ee){wu.style.position="absolute";if(wR(ew)&&ew!==null){wu.style.left=wO(ew);}if(wR(ee)&&ee!==null){wu.style.top=wO(ee);}};var tw=function(wu,wx,wz){if(wR(wx)&&wx!==null){wu.style.width=wO(wx);}if(wR(wz)&&wz!==null){wu.style.height=wO(wz);}};var wO=function(ey){if(ey!==null){switch(typeof(ey)){case'undefined':return'';case'number':if(!uQ(ey)){return ey+'px';}break;case'string':return(ey.match('%$')=='%')?ey:C(ey)+'px';}}return'';};var wf=function(wu,pv){if(pv!==null&&!uQ(pv)){wu.style.zIndex=pv;}};var uj=function(wu,sC,pz){wu.style[sC]=pz;};var D=function(v,dq){v=v?v:window.event;if(!dq){rx(v);}return v;};var eO=function(W,ew,ee,eW,wx,wz){var o=new Image();o.id=W;o.src=eW;wA(o,ew,ee);tw(o,wx,wz);o.className='telenavis_noselect';return o;};var eq=function(W,ew,ee,wx,wz){var o=uN('div');o.id=W;wA(o,ew,ee);tw(o,wx,wz);return o;};var wR=function(wu){return typeof(wu)!="undefined";};var yf=function(yj){delete yj;};var hl=function(pt){alert(pt);};var eb=function(W){return document.getElementById(W);};var pC=function(eT,eX){return document.createElementNS(eT,eX);};var uN=function(eX){return document.createElement(eX);};var eI=function(eT,eX,ey){eT.setAttribute(eX,ey);};var I=function(tD,sB){tD.appendChild(sB);};var wZ=function(a){return Math.abs(a);};var tM=function(a,b){return Math.pow(a,b);};var rN=function(a){return Math.floor(a);};var uI=function(a){return Math.ceil(a);};var ri=function(a){return Math.round(a);};var ps=function(a){return Math.log(a);};var pd=function(a){return Math.sqrt(a);};var dz=function(a){return Math.tan(a);};var ds=function(a){return Math.atan(a);};var yZ=Math.PI;var dp=function(a){return Math.exp(a);};var hz=function(a){return parseInt(a,10);};var ev=function(pa,oZ){return Math.min(pa,oZ);};var et=function(pa,oZ){return Math.max(pa,oZ);};var re=function(rp,gD){return setTimeout(rp,gD);};var uv=function(gH){return clearTimeout(gH);};var C=function(tm){return parseFloat(tm);};var aZ=function(eW){var aB=0,aL=0;if(eW.offsetParent){do{aL+=eW.offsetLeft;aB+=eW.offsetTop;eW=eW.offsetParent;}while(eW);}return new L(aL,aB);};var tA=function(wu,rJ,pp,po){var tm=P(pp,po);rh(wu,rJ,tm);return{wu:wu,rJ:rJ,pp:pp,po:po,yp:function(){eE(wu,rJ,tm);}};};var P=function(yj,gB){return function(){return yj[gB].apply(yj,arguments);};};var wU=function(rS){if(rS&&rS.parentNode){rS.parentNode.removeChild(rS);yf(rS);}};var yi=function(v){var h,s;v=D(v,true);h=v.clientX;s=v.clientY;if(document.body.clientLeft){h+=document.body.clientLeft;}if(document.body.clientTop){s+=document.body.clientTop;}s+=document.documentElement.scrollTop+document.body.scrollTop;h+=document.documentElement.scrollLeft;return new L(h,s);};var rs=function(G){var O=new Image();O.src=G;return O;};var uz=function(G,we){var uy=function(){we();wU(rd);};var rd=uN("script");rd.type="text/javascript";if(rd.addEventListener){rd.onload=uy;}else if(rd.readyState){rd.onreadystatechange=function(){if(rd.readyState==='loaded'){uy();}};}rd.src=G;I(document.body,rd);return rd;};var K=function(pt){throw new Error(pt);};var eF=function(){};eF.prototype.addEventListener=function(wv,rp){var q=this;if(!wR(q.wB)){q.wB=[];}wv=wv.toString();if(!wR(q.wB[wv])){q.wB[wv]=[];}q.wB[wv].push(rp);};eF.prototype.removeEventListener=function(wv,rp){var rO,yX,o,q=this;if(!wR(q.wB)){return;}wv=wv.toString();if(wR(q.wB[wv])){for(o=0;o=0){A[h][s].an(q);}}}this.pg=true;};telenavis.OverlayLayer=wy;var wD=function(iu,iy,iq,uf){this.x1=iu;this.x2=iq;this.y1=iy;this.y2=uf;};wD.prototype.getWidth=function(){return wZ(this.x2-this.x1);};wD.prototype.getHeight=function(){return wZ(this.y2-this.y1);};wD.prototype.normalize=function(){var q=this;return new wD(ev(q.x1,q.x2),ev(q.y1,q.y2),et(q.x1,q.x2),et(q.y1,q.y2));};wD.prototype.contains=function(p1){var q=this;return ev(q.x1,q.x2)<=p1.x&&et(q.x1,q.x2)>p1.x&&ev(q.y1,q.y2)<=p1.y&&et(q.y1,q.y2)>p1.y;};wD.prototype.intersects=function(it){var q=this;return it.contains({x:q.x1,y:q.y1})||it.contains({x:q.x2,y:q.y1})||it.contains({x:q.x2,y:q.y2})||it.contains({x:q.x1,y:q.y2});};wD.prototype.overlaps=function(ie){var q=this;return!(ie.x1>q.x2||ie.x2q.y2||ie.y2this.y2;};wD.prototype.hasReversedX=function(){return this.x1>this.x2;};wD.prototype.toString=function(){return"{"+this.x1+","+this.y1+"} - {"+this.x2+","+this.y2+"}";};wD.prototype.AABB=function(p0,p1){var e,d,m,adx,ady,aI=2.2204460492503131e-016,b=this;e={x:b.x2-b.x1,y:b.y2-b.y1};d={x:p1.x-p0.x,y:p1.y-p0.y};m={x:p0.x+p1.x-b.x1-b.x2,y:p0.y+p1.y-b.y1-b.y2};adx=wZ(d.x);ady=wZ(d.y);adx+=aI;ady+=aI;return!(wZ(m.x)>e.x+adx||wZ(m.y)>e.y+ady||wZ(m.x*d.y-m.y*d.x)>e.x*ady+e.y*adx);};telenavis.Rect=wD;var eY=function(wx,wz){this.width=wx;this.height=wz;};eY.prototype.toString=function(){return"Size { width:"+this.width+", height:"+this.height+"}";};telenavis.Size=eY;var L=function(h,s){this.x=h;this.y=s;};L.prototype.distanceTo=function(Q){var wa=Q.x-this.x,wh=Q.y-this.y;return pd((wa*wa)+(wh*wh));};L.prototype.toString=function(){return"Point {x:"+this.x+",y:"+this.y+"}";};L.prototype.equals=function(p1){return(this.x===p1.x&&this.y===p1.y);};telenavis.Point=L;var wj=function(h,s,fF){this.x=h;this.y=s;this.srid=fF;};wj.prototype.toWGS84=function(){var q=this;if(wT){if(q.srid==wT.MercSrid){return wT.Merc2WGS(q.x,q.y);}else if(q.srid==wT.WGSSrid){return q;}else{K(H.sy);}}else{K(H.fD);}};wj.prototype.toMerc=function(){var q=this;if(wT){if(q.srid==wT.WGSSrid){return wT.WGS2Merc(q.x,q.y);}else if(q.srid==wT.MercSrid){return q;}else{K(H.sy);}}else{K(H.fD);}};wj.prototype.distanceTo=function(eZ){var pL=this.toMerc(),pZ=eZ.toMerc(),wa=(pL.x-pZ.x),wh=(pL.y-pZ.y);return pd((wa*wa)+(wh*wh));};wj.prototype.clone=function(){return new wj(this.x,this.y,this.srid);};wj.prototype.equals=function(Q){if(!Q){return false;}return(Q.x==this.x&&Q.y==this.y&&Q.srid==this.srid);};wj.prototype.toString=function(){return"Point {x:"+this.x.toFixed(8)+",y:"+this.y.toFixed(8)+",srid:"+this.srid+"}";};telenavis.WorldPoint=wj;var wT={is:20037508.34,MercSrid:90013,WGSSrid:4326,WGS2Merc:function(oX,yF){var h=oX*this.is/180,s=ps(dz((90+yF)*yZ/360))/(yZ/180);s=s*this.is/180;return new wj(h,s,90013);},Merc2WGS:function(h,s){var oX=(h/this.is)*180,yF=(s/this.is)*180;yF=180/yZ*(2*ds(dp(yF*yZ/180))-yZ/2);return new wj(oX,yF,4326);}};telenavis.Projector=wT;var er=function(W){this.wi=null;this.rv=null;this.wm=[];this.W=W;this.strokeColor="blue";this.strokeWidth="3px";this.strokeOpacity=0.4;this.fillColor="none";this.fillOpacity=0.4;this.zIndex=-1;};er.prototype.gd=function(yk,pV,ae){var q=this,o,Q,eZ,eR,aq,oV,yU=q.wm,w=q.wi.w,hp=null,yc=[],tc=[],rX=null,m=false,l=false,eD;q.uc=null;q.oC=null;q.oH=null;q.oG=null;for(o=0;o=0&&iu<=rK.width&&iy>=0&&iy<=rK.height)||(iq>=0&&iq<=rK.width&&uf>=0&&uf<=rK.height)){return true;}return gr.AABB(oK,oJ);};er.prototype.sP=function(M){var q=this,w=M.w;q.wi=M;q.rv=w.getId()+"."+q.wi.getId()+".Polyline."+q.W;q.rY();};er.prototype.rY=function(){gq(this);};er.prototype.ho=function(){var q=this,rA,tF,yI,uO;if(!rA){rA=new L(q.wm[0].x,q.wm[0].y);tF=new L(q.wm[0].x,q.wm[0].y);}for(uO=0;uOq.sH||wZ(wa)>q.sH||q.eo){if(!q.eo){q.wW(J.events.DRAG_START,q);n.onmouseup=null;rh(tR,F.yK,oM);}q.eo=true;if(q.uD!==null){n.src=q.uD;}wA(n,(uU.x-(ye.x-wt.x))+yk.x,(uU.y-(ye.y-wt.y))+yk.y);n.title="";}}return false;}function oM(e){if(q.O==null){eE(tR,F.tg,tS);eE(tR,F.yK,oM);return;}e=D(e);wt={x:e.clientX,y:e.clientY};n=q.O;wh=ye.y-wt.y;wa=ye.x-wt.x;s=uU.y-wh;h=uU.x-wa;wA(n,h,s);n.src=q.eW;if(q.rG){n.title=q.rG;}pq=q.eJ;r=q.wi.w.T[0].r;s+=pq.y+C(r.style.top);h+=pq.x+C(r.style.left);rg=q.wi.w.worldPosAt({x:h,y:s});q.setWorldPos(rg);eE(tR,F.tg,tS);eE(tR,F.yK,oM);q.eo=false;q.wW(J.events.DRAG_COMPLETE,q);return false;}if(q.pe&&n){rh(tR,F.tg,tS);}q.O.onmouseup=function(e){eE(tR,F.tg,tS);q.oN(e);return false;};return false;};J.prototype.draggable=function(sp){if(wR(sp)){this.pe=sp;}return this.pe;};J.prototype.dragImage=function(url,shift){var q=this;if(wR(url)){q.uD=url;}if(wR(shift)){q.pw=shift;}return q.uD;};J.prototype.getId=function(){return this.W;};J.prototype.getLayer=function(){return this.wi;};J.prototype.getImageSrc=function(){return this.eW;};J.prototype.setImageSrc=function(p1){var q=this;if(q.O){q.O.src=p1;}q.eW=p1;return true;};J.prototype.setzIndex=function(wd){var q=this;q.wd=wd;if(q.O){wf(q.O,q.wd);}};J.prototype.getHotspot=function(){return this.eJ;};J.prototype.setHotspot=function(p1){var q=this;q.eJ=p1;if(q.O){q.un(q.getScreenPos());}return true;};J.prototype.getTip=function(){return this.rG;};J.prototype.setTip=function(p1){var q=this;if(p1){q.rG=p1;if(q.O){q.O.title=p1;}}return true;};J.prototype.getImage=function(){return this.O;};J.prototype.getWorldPos=function(){return this.tG;};J.prototype.setWorldPos=function(p1){var q=this,sU;if(p1.srid!=wT.WGSSrid){K(H.dR);}q.tG=p1;if(q.O){sU=q.wi.w.screenPosAt(p1);q.un(sU);}return true;};J.prototype.getScreenPos=function(){var q=this;if(q.O){return new L(C(q.O.style.left)+q.eJ.x,C(q.O.style.top)+q.eJ.y);}return null;};J.prototype.cursor=function(em){var q=this;if(wR(em)){q.em=em;if(q.O&&q.em!==null){q.O.style.cursor=q.em;}}return q.em;};J.prototype.show=function(){if(this.O){wH(this.O,true);}};J.prototype.hide=function(){if(this.O){wH(this.O,false);}};J.events={CLICK:"onclick",HOVER:"onhover",CONTEXT_MENU:"oncontextmenu",DRAG_COMPLETE:"ondragover",DRAG_START:"ondragstart"};telenavis.Pin=J;var gF=function(ph){var r,pW,wx,wz;r=eq('',0,0,200,500);rP(r,false);wH(r,false);uR(r,"
"+ph+"
");I(document.body,r);pW=eb("_tmp");wx=pW.offsetWidth;wz=pW.offsetHeight;wU(r);return new eY(wx,wz);};var pQ=new rs(u.baseUrl+"images/windowTopLeft.png");var pn=new rs(u.baseUrl+"images/windowTop.png");var pb=new rs(u.baseUrl+"images/windowTopRight.png");var pE=new rs(u.baseUrl+"images/windowRight.png");var iI=new rs(u.baseUrl+"images/windowLeft.png");var iY=new rs(u.baseUrl+"images/windowBottomRight.png");var iO=new rs(u.baseUrl+"images/windowBottomLeft.png");var iD=new rs(u.baseUrl+"images/windowBottom.png");var te=new rs(u.baseUrl+"images/windowNose.png");var gE=new rs(u.baseUrl+"images/windowShadow.png");var gv="white";var wq=function(W,yQ){this.wc=new L(0,0);this.Y=new eY(300,200);this.r=null;this.wN=null;this.iW="";this.wB=[];this.W=W;this.yQ=yQ;this.tY=new wD(0,0,0,0);this.autoSize=true;this.noseReverse=false;};wq.prototype=new eF();wq.prototype.hf=function(){return this.yQ?eb(this.yQ):document.documentElement;};wq.prototype.yl=function(W,ew,ee,wx,wz){var r=eq(W,ew,ee,wx,wz);return r;};wq.prototype.ef=function(G,ew,ee,wx,wz,yX,gN,wd){var n=eO('',ew,ee,G,wx,wz);n.style.right=wO(yX);n.style.bottom=wO(gN);wf(n,wd);return n;};wq.prototype.hd=function(){this.wW(wq.events.CLICK,null);};wq.prototype.getPosition=function(){return new L(C(this.r.style.left),C(this.r.style.top));};wq.prototype.setPosition=function(wM){if(this.r){wA(this.r,wM.x,wM.y);}this.wc=wM;};wq.prototype.setContents=function(sL){if(this.wN){uR(this.wN,sL);}this.iW=sL;};wq.prototype.getContents=function(){return this.iW;};wq.prototype.getDiv=function(){return this.wN;};wq.prototype.getId=function(){return this.W;};wq.prototype.getBoundsRect=function(){return this.tY;};wq.prototype.setSize=function(rM){var q=this;q.autoSize=false;if(q.r){var wa=rM.width-q.Y.width,wh=rM.height-q.Y.height;wA(q.r,C(q.r.style.left)-wa/2,C(q.r.style.top)-wh);tw(q.r,rM.width,rM.height);tw(q.wN,rM.width,rM.height);q.tY.x1-=wa/2;q.tY.x2+=wa/2;q.tY.y1-=wh;var ik=q.r.childNodes[0];wA(ik,C(ik.style.left)-wa/2,C(ik.style.top)-wh);tw(ik,q.tY.getWidth()*2,q.tY.getHeight());q.r.childNodes[1].style.left=wO((rM.width/2)-(te.width/2));q.wW(wq.events.SIZE_CHANGE,q);}q.Y=rM;};wq.prototype.getSize=function(){return this.Y;};wq.prototype.setzIndex=function(wd){if(this.r){this.r.style.zIndex=wd;}};wq.prototype.getzIndex=function(){if(this.r){return this.r.style.zIndex;}return 0;};wq.prototype.show=function(){var q=this;if(q.autoSize){q.Y=gF();}var tX=et(iI.width,pQ.width,iO.width),yv=et(pE.width,pb.width,iY.width),yE=et(pn.height,pQ.height,pb.height),yn=et(iD.height,iO.height,iY.height),iU=q.Y.width+tX+yv,fJ=q.Y.height+yE+et(yn,te.height),ew=q.wc.x-(iU/2)+tX,ee=q.wc.y-q.Y.height-te.height;q.tY=new wD(ew-tX,ee-yE,ew+q.Y.width+yv,ee+q.Y.height+et(yn,te.height));if(q.r){wU(q.r);}q.sb=eb(q.yQ);if(q.sb){q.r=q.yl(q.W,ew,ee,q.Y.width,q.Y.height);I(q.r,q.ef(gE.src,(q.Y.width/2)-iU,null,iU*2,fJ,null,-te.height,null,-10000));I(q.r,q.ef(te.src,(q.Y.width/2)-(te.width/2),null,null,null,null,-te.height,1));I(q.r,q.ef(pQ.src,-tX,-yE));I(q.r,q.ef(pn.src,0,-yE,"100%",pn.height));I(q.r,q.ef(pb.src,null,-yE,null,null,-yv));I(q.r,q.ef(iI.src,-tX,0,iI.width,"100%"));I(q.r,q.ef(iO.src,-tX,null,null,null,null,-yn));I(q.r,q.ef(iD.src,0,null,"100%",iD.height,null,-yn));I(q.r,q.ef(iY.src,null,null,null,null,-yv,-yn));I(q.r,q.ef(pE.src,null,0,pE.width,"100%",-yv));q.wN=q.yl("",0,0,q.Y.width,q.Y.height);q.wN.className="telenavis_window";rP(q.wN,"auto");wf(q.wN,1);q.wN.style.fontFamily="Arial";q.wN.style.fontSize="10px";q.wN.style.background=gv;q.wN.onmousedown=function(v){D(v);};q.wN.onclick=function(v){if(!q.wW(wq.events.CLICK,q)){q.hide();}};I(q.r,q.wN);uR(q.wN,q.iW);for(var o=1;ou.maxZoom){E=q.U;}q.U=E;if(q.wY){q.wY.yr();}};k.prototype.oS=function(wJ){if(this.Z.equals(wJ)){return;}this.Z.x=wJ.x;this.Z.y=wJ.y;this.uh=0;for(var rU=0;rU=yq){el+=el<0?yq:-yq;}else{el=0;}}else{el+=q.rm*pU;}if(q.rb===0){if(wZ(eg)>=yq){eg+=eg<0?yq:-yq;}else{eg=0;}}else{eg+=q.rb*pU;}eg=eg>rI?eg=rI:(eg<-rI?eg=-rI:eg);el=el>rI?el=rI:(el<-rI?el=-rI:el);if(el===0&&eg===0&&q.rm===0&&q.rb===0){q.tL=false;q.im=0;q.iQ=0;q.T[0].eN();q.T[0].ya();return;}iz.x-=el;iz.y-=eg;rD.oO(iz.x,iz.y);re(pY,50);if(!ij){ij=re(eN,200);}}pY();};k.prototype.getId=function(){return this.W;};k.prototype.initialize=function(){var q=this,yP,wo;if(q.r!==null){K(H.fv);}yP=uN("link");yP.type="text/css";yP.rel="stylesheet";yP.href=u.baseUrl+u.css;I(document.documentElement.firstChild,yP);q.r=uN("div");q.r.id=q.W+"w";q.r.className="telenavis_jsMap";q.r.style.width=q.tD.clientWidth+F.tN;q.r.style.height=q.tD.clientHeight+F.tN;I(q.tD,q.r);q.fA(q.r,rw.tp-1);q.centerCross(true);q.onWindowResizeListener=new tA(window,"resize",q,"tr");q.sQ(q.U);q.wY=new tz(q);wo=new R("root",0,256);wo.aY=true;q.addLayer(wo);q.hB=new tA(q.r,F.tg,q,"gy");q.hN=new tA(q.r,F.pK,q,"oB");q.wc=aZ(q.r);q.fV();return true;};k.prototype.destroy=function(){K(H.rj);};k.prototype.setCursor=function(p1,p2){if(typeof(p2)!="undefined"){return ez(this.r,p1,p2.x,p2.y);}else{return ez(this.r,p1);}};k.prototype.centerCross=function(v){var q=this;if(!q.rL){q.rL=eO(q.W+"_cross",null,null,u.baseUrl+"images/cross.gif");q.rL.style.border="none";wf(q.rL,rw.tp);yT(q.rL);I(q.r,q.rL);}q.sW();wH(q.rL,v);return v;};k.prototype.screenPosAt=function(p1){return this.T[0].aR(p1);};k.prototype.worldPosAt=function(p1){return this.T[0].tx(p1);};k.prototype.getHorizontalDistance=function(){var q=this,og=q.T[0].to(),Y=q.getSize(),wk=q.T[0].wk;return(Y.width/wk)*og.width;};k.prototype.getVerticalDistance=function(){var q=this,og=q.T[0].to(),Y=q.getSize(),wk=q.T[0].wk;return(Y.height/wk)*og.height;};k.prototype.getZoom=function(){return this.U;};k.prototype.getCenter=function(){return this.Z.clone();};k.prototype.moveTo=function(wJ,ry){if(wJ===null){wJ=this.Z;}if(wJ.equals(this.Z)&&ry==this.U||ryu.maxZoom){return false;}if(!wR(ry)){ry=this.U;}if(ry!=this.U){this.oS(wJ);this.sQ(ry);this.rY();this.oi.ou();this.wW(k.events.ZOOM_CHANGED,this.getZoom());}else{var wS=wZ(this.screenPosAt(this.Z).distanceTo(this.screenPosAt(wJ)));if(wS0){q.T[o].eC();q.T.splice(o,1);return true;}else{return false;}};k.prototype.getLayerIndex=function(p1){var q=this,i=-1;for(i=0;its&&gK>en){av=i;}else{break;}}var Z=new wj(wK.x1+(wK.x2-wK.x1)/2,wK.y1+(wK.y2-wK.y1)/2,4326);q.moveTo(Z,av);}};k.yR={od:[],register:function(rp){if(typeof(rp)=="function"){this.od.push(rp);}},gz:function(w){for(var o=0;o=u.minZoom){this.zoomBy(-1,Z);}};k.prototype.zoomBy=function(tv,Z,we,yN){var q=this,r;if(!Z){var ww=q.getSize();Z={x:ww.width/2,y:ww.height/2};}r=q.aW(Z);function aE(){or++;var wr=r.aQ*tM(2,(gQ/yN)*or);wr=uQ(wr)?1:wr;wf(r,rw.iw);r.oy(wr);if(or=0){A[h][s].rY();}}}q.refreshOverview();};k.events={DRAG_END:"ondragend",DRAG_START:"ondragstart",DRAG_MOVE:"ondragmove",SCROLL_START:"onscrollstart",SCROLL_END:"onscrollend",ZOOM_CHANGED:"zoomchanged",CENTER_CHANGED:"centerchanged",ZOOM_START:"onzoomstart",ZOOM_END:"onzoomend",SIZE_CHANGED:"onsizechanged",TILE_LOADED:"ontileloaded",CLICK:"onclick",DOUBLE_CLICK:"onDoubleClick",CONTEXT_MENU:"oncontextmenu",FX_ZOOM_DONE:"_fxZoomDone",MAP_LOADED:"_onmapload"};telenavis.jsMap=k;var ue=function(wY,G,we){var q=this,n=new Image();q.wY=wY;q.G=G;q.we=we;n.onload=P(q,"hQ");n.onabort=P(q,"hW");n.onerror=P(q,"hV");q.O=n;};ue.prototype.uq=function(){this.O.src=this.G;};ue.prototype.hV=function(e){var q=this;if(q.we){q.we(2);}q.wY.uS();};ue.prototype.hW=function(e){var q=this;if(q.we){q.we(1);}q.wY.uS();};ue.prototype.hQ=function(e){var q=this;if(q.we){q.we(0);}q.wY.uS();};var tz=function(w){var q=this;q.wY=[];q.oQ=false;q.gO=8;q.w=w;q.om=0;};tz.prototype.uS=function(){re(P(this,"hE"),50);};tz.prototype.hE=function(){var q=this,n,eu,o;q.om--;if(q.wY.length===0){q.oQ=false;q.w.wW(k.events.MAP_LOADED);q.w.hideLoading();}else{if(q.om>0){return;}eu=ev(q.gO,q.wY.length);q.om=eu;for(o=0;oq.V.width){for(i=q.V.width;ip1.width;i--){q.st();}}if(p1.height>q.V.height){for(i=q.V.height;ip1.height;i--){q.oR();}}};wF.prototype.de=function(){var sK=[],i;for(i=0;i0&&w.wV[0].uw!=null&&w.wV[0].uw==eU.OVERLAY_LAYER){var ip=null;for(var i=0;i0){var iJ=new telenavis.Point();iJ.x=w.wt.x+10;iJ.y=w.wt.y+2;var ia='';for(var i=0;i3){if(telenavis.constants.locale=='en'){ia+="and "+(w.wV.length-i).toString()+" more";}else{ia+="και "+(w.wV.length-i).toString()+" ακόμα";}break;}ia+=w.wV[i].tt+(w.wV[i].tt==''?'':"
");}w.iL=re(function(){if(iG.tt!=''){w.fO(ia,iJ);}},500);return;}}if(w.wV){w.wV=null;w.iS=null;w.setCursor(eA.ui,{x:24,y:24});}};wE.prototype.pc=function(){var h=this.ed.x;var s=this.ed.y;var E=this.U;var w=this.M.w;var oq=[];var hv='';var iN=w.getLayersArray();for(var i=0;i30){rl();}clearTimeout(physicsTimer);physicsTimer=setTimeout(rl,30);}t.eN();};d.ym=function(e){e=D(e);eE(rn,'mousemove',d.us);eE(rn,'mouseup',d.ym);if(rB==rE.ii){t.r.releaseCapture();}t.yx(oz,yB);dragging=false;if(posX==startX&&posY==startY){t.rC(k.events.CLICK,t.tx(t.tE()));tu();}else{if(!u.usePhysics){tu();}else{d.sliding=true;rl();}}};var rl=function(){if(!dragging&&!d.sliding){return;}if(dragging){curX=posX;curY=posY;}var tt,a,c,dtdt,dt=0.05,eB,ar=0.0,pB=0.0,ox=1.0,ok=120,th,tk,tf;eB=(wZ(curX-prevX)>ok)||(wZ(curY-prevY)>ok)?0.3:0.1;dtdt=dt*dt;a=ar/ox;c=curX;tt=(2.0-eB)*c-(1.0-eB)*prevX+a*dtdt;prevX=c;curX=tt;a=pB/ox;c=curY;tt=(2.0-eB)*c-(1.0-eB)*prevY+a*dtdt;prevY=c;curY=tt;if(!dragging){wA(t.r,curX,curY);}th=curX-prevX;tk=curY-prevY;tf=th*th+tk*tk;of=new Date().valueOf();if(tf<=0.5&&!dragging){tu();}else{if(!dragging&&d.sliding){setTimeout(rl,30);}}};var tu=function(){t.eN();t.ya();t.rC(k.events.DRAG_END,t.w);d.sliding=false;};posX=C(t.r.style.left);posY=C(t.r.style.top);startX=posX;startY=posY;t.yx(ow,yB);t.rC(k.events.DRAG_START,t.w);rh(rn,'mousemove',d.us);rh(rn,'mouseup',d.ym);if(rB==rE.ii){d.setCapture();}dragging=true;if(u.usePhysics){prevX=posX;prevY=posY;curX=posX;curY=posY;rl();}};R.prototype.dP=function(){return this.hK===0&&this.hZ===0;};R.prototype.hL=function(e){e=D(e);var q=this,wC;if(!q.rC(k.events.DOUBLE_CLICK,q.tx(q.tE()))){wC=q.tx(q.tE());q.w.moveTo(wC,q.yo()+1);}};R.prototype.dY=function(e){e=D(e);var q=this,w=q.w;if(w.wt===null){return;}if(dv(e)<0){w.zoomOut(w.wt);}else{w.zoomIn(w.wt);}return;};R.prototype.yM=function(){return this.w.getSize();};R.prototype.rC=function(db,dn,dx){return this.w.wW(db,dn,dx);};R.prototype.fG=function(v){v=D(v);var q=this;q.rC(k.events.CONTEXT_MENU,q.tE(),q.tx(q.tE()));return false;};R.prototype.getDiv=function(){return this.r;};R.prototype.rZ=function(){return{x:C(this.r.style.left),y:C(this.r.style.top)};};R.prototype.oO=function(x,y){wA(this.r,x,y);};R.prototype.tl=function(){var q=this,sA=q.rZ();return{x:sA.x+q.wL.x,y:sA.y+q.wL.y};};R.prototype.dc=function(){return{width:this.ws.V.width*this.wk,height:this.ws.V.height*this.wk};};R.prototype.ya=function(){var q=this,wI=q.yM(),wC=new L(wI.width/2,wI.height/2),Q=q.tx(wC);q.sE(Q);};R.prototype.eN=function(){this.dE();};R.prototype.dE=function(){var uP=this.tl(),ww=this.dc(),hC={x:uP.x+ww.width,y:uP.y+ww.height},sR=this.yM(),ev=0;var sJ=wZ(uP.x);var dm=ww.width-sJ-sR.width;var sF=wZ(uP.y);var dQ=ww.height-sF-sR.height;var rF=this.tl();while(rF.xthis.aF.x){this.dN();rF=this.tl();}while(rF.ythis.aF.y){this.dV();rF=this.tl();}if(this.ij){wn(this,"ij");}};R.prototype.dN=function(){var q=this;q.ws.st();q.wL.x-=q.wk;q.eQ.x-=1;q.ws.dw();};R.prototype.dB=function(){var q=this;q.fd-=q.wk;q.ws.dg();q.wL.x+=q.wk;q.eQ.x+=1;q.ws.si();};R.prototype.dV=function(){var q=this;q.ws.oR();q.wL.y-=q.wk;q.eQ.y-=1;q.ws.du();};R.prototype.dC=function(){var q=this;q.ws.sX();q.wL.y+=q.wk;q.eQ.y+=1;q.ws.oT();};R.prototype.ab=function(){var q=this,ww=q.yM();var hS=new eY(uI(ww.width/q.wk)+2,uI(ww.height/q.wk)+2);var uG=new eY(uI((ww.width+u.tileSize-1)/u.tileSize),uI((ww.height+u.tileSize-1)/u.tileSize));if(typeof(JSMAP_GUTTER)=="number"){uG.width+=JSMAP_GUTTER*2;uG.height+=JSMAP_GUTTER*2;}return uG;};R.prototype.hF=function(p1){var q=this,wb,ru=new L((q.eQ.x+p1.x),(q.eQ.y+p1.y)),G=u.baseUrl+"images/out-of_bounds.gif";if(ru.y<0||ru.y>=q.tV){}else{if(u.allowMapWrapping){if(ru.x<0||ru.x>=q.tV){ru.x=ru.x%q.tV;if(ru.x<0){ru.x+=q.tV;}}}G=q.iF(q.yo(),ru.x,ru.y);}wb=new wE(q);wb.G=G;wb.ed=ru;wb.U=q.yo();wb.iE=p1;wb.uq();return wb;};R.prototype.hD=function(p1){if(p1){p1.eC();p1=null;}};R.prototype.iF=function(E,h,s){if(u.tileSources!=null&&u.tileSources.length>0){if(u.rr==null){u.rr=0;}else if(u.rr==u.tileSources.length-1){u.rr=0;}else{u.rr+=1;}var oE=u.tileSources[u.rr];return oE+"?z="+E+"&x="+h+"&y="+s+"&key="+u.key+"&v="+u.storageVersion+"&lc="+u.locale;}else{return u.tileUrl+"?z="+E+"&x="+h+"&y="+s+"&key="+u.key+"&v="+u.storageVersion+"&lc="+u.locale;}};R.prototype.getType=function(){return eU.TILE_LAYER;};R.prototype.getId=function(){return this.W;};R.prototype.getMap=function(){return this.w;};R.prototype.iA=function(){return this.w.r;};R.prototype.yx=function(G,eJ){return this.w.setCursor(G,eJ);};R.prototype.yo=function(){return this.w.U;};R.prototype.af=function(){return this.w.Z;};R.prototype.tE=function(){return this.w.wt;};R.prototype.sE=function(Z){this.w.oS(Z);};R.prototype.aj=function(wj){var aJ=wj.toMerc(),aC=this.to(),h=(aJ.x-u.bb.x1)/aC.width,s=wZ((aJ.y-u.bb.y2)/aC.height);return new L(h,s);};R.prototype.to=function(){var U=this.yo(),aV=this.tV,dJ=u.bb.x2-u.bb.x1,dL=u.bb.y2-u.bb.y1,dF=(dJ/aV),dG=(dL/aV);return new eY(dF,dG);};R.prototype.dy=function(){return this.wk;};R.prototype.tx=function(p1){var q=this,wM=p1,sz=q.eQ,sj=q.wL,uW=q.to(),yG=new wj(sz.x*uW.width,sz.y*uW.height,wT.MercSrid);yG.x+=u.bb.x1;yG.y=u.bb.y2-yG.y;var eS=q.rZ(),sm=new L(eS.x+sj.x,eS.y+sj.y),sc=new L(wM.x-sm.x,wM.y-sm.y),dZ=new wj(yG.x+(sc.x/q.wk)*uW.width,yG.y-(sc.y/q.wk)*uW.height,wT.MercSrid),rg=dZ.toWGS84();var false_x=rg.x+180,new_x=false_x%360;if(new_x<0){new_x=180+new_x;}else if(new_x>0){new_x=-180+new_x;}if(rg.y<-85){rg.y=-85;}if(rg.y>85){rg.y=85;}rg.x=new_x;return rg;};R.prototype.aR=function(p1){var q=this,tT=p1.toMerc(),tJ=q.to(),so=q.eQ,sf=q.wL,sg=q.wk,iK=u.bb.x2-u.bb.x1,sv=q.ws.V.width*tJ.width,dX=q.ws.V.height*tJ.height,dK=0,hA=0,yW=new wj(tJ.width*so.x,tJ.height*so.y,wT.MercSrid),hI=new wj(yW.x+sv,yW.y+dX,wT.MercSrid);tT=new wj(tT.x-u.bb.x1,u.bb.y2-tT.y,wT.MercSrid);var dD=yW.x,dW=(sv-iK)/2,dO=dD+dW,dS=rN((tT.x-dO)/iK);tT.x-=dS*iK;var yb=tT.x-yW.x;yb/=tJ.width;yb*=sg;yb+=sf.x;yb+=dK;var uL=tT.y-yW.y;uL/=tJ.height;uL*=sg;uL+=sf.y;return new L(yb,uL);};var S=function(W,wd){if(wd<1||wd>900){K(H.dA);}this.W=W;this.wg=[];this.w=null;this.eG=[];this.r=null;if(typeof(wd)=="undefined"){this.wd=1;}else{this.wd=wd;}this.minZoom=0;this.maxZoom=u.maxZoom;};S.prototype=new eH();S.prototype.es=function(eu){this.w=eu;this.yl();};S.prototype.eC=function(){var Q,X,q=this;wU(q.r);wn(q,"r");for(Q;Qq.minZoom-1&&Eq.minZoom-1&&E=u.maxPinsInView&&!u.showAllPins){if(!u.noConfirmMaxPins){ad=window.confirm(H.fW);u.showAllPins=ad;u.noConfirmMaxPins=true;}else{um=false;}}}else{X.su();}}};S.prototype.pA=function(){var q=this,Q,X;for(Q=0;Q=0;i--){ep=q.eG[i];ep.hide();}};S.prototype.yr=function(){var q=this,i,X,ep;for(i=q.wg.length-1;i>=0;i--){X=q.wg.pop();X.eC();X=null;}for(i=q.eG.length-1;i>=0;i--){ep=q.eG.pop();ep=eb(ep.rv);if(ep!==null){wU(ep);}ep=null;}};S.prototype.hP=function(){if(this.w.B!=null){this.w.B.hide();}};S.prototype.hO=function(w){if(this.w.B!=null){var yL=this.w.B.getDiv();rP(yL,"auto");}};S.prototype.hH=function(w){if(this.w.B!=null){var yL=this.w.B.getDiv();rP(yL,false);}};S.prototype.aP=function(B){var eu=this.w,uM=B.getBoundsRect(),ta=eu.oU({x:uM.x1,y:uM.y1}),uK=eu.oU({x:uM.x2,y:uM.y2}),wI=eu.getSize(),im=0,iQ=0;im=ta.x<0?-ta.x:(uK.x>wI.width?-(uK.x-wI.width):0);iQ=ta.y<0?-ta.y:(uK.y>wI.height?-(uK.y-wI.height):0);if(im!==0||iQ!==0){eu.sr(im,iQ);}};S.prototype.hG=function(B){this.aP(B);};S.prototype.hJ=function(){var q=this;q.w.B.removeEventListener(wq.events.HIDE,q.aG);q.w.B.removeEventListener(wq.events.SIZE_CHANGE,q.aA);q.w.removeEventListener(k.events.DRAG_START,q.ud);q.w.removeEventListener(k.events.SCROLL_START,q.ud);q.w.removeEventListener(k.events.SCROLL_END,q.ih);q.w.removeEventListener(k.events.DRAG_END,q.ih);q.w.removeEventListener(k.events.ZOOM_CHANGED,q.sG);wn(q,"aG");wn(q,"aA");wn(q,"ud");wn(q,"ih");wn(q,"sG");q.w.B=null;};S.prototype.getDiv=function(){return this.r;};S.prototype.getMap=function(){return this.w;};S.prototype.getzIndex=function(){return wd;};S.prototype.setzIndex=function(E){if(typeof(this.r)=="undefined"){K(H.fb);}wf(this.r,E);wd=E;};S.prototype.addPin=function(X){var q=this,Q,E;if(!X.tG){K(H.ai);}Q=q.w.screenPosAt(X.tG);X.es(q);E=q.w.U;if(E>q.minZoom-1&&E-1&&tnq.minZoom-1&&E-1){Q=q.wg[tn];Q.eC();q.wg.splice(tn,1);return true;}else{return false;}};S.prototype.getPinsArray=function(){return this.wg;};S.prototype.getPinIndex=function(iX){var q=this,Q,X;for(Q=0;Q=0){q.eG[o].destroy();q.eG.splice(o,1);return true;}else{return false;}};S.prototype.getPolylinesArray=function(){return this.eG;};S.prototype.getPolylineIndex=function(W){var q=this,i;for(i=0;i=wC.minZoom;o--){rQ=eO('_z_'+o,h,ti,eA.fR);ez(rQ,F.yJ);rQ.title='Zoom level '+o;rQ.onmousedown=function(e){D(e);return false;};rQ.onmouseup=dT;rQ.rQ=o;I(yu,rQ);ti+=10;}I(yu,eO('',h,ti,eA.fp));ti+=4;I(r,yu);s+=ti;s+=6;var fc=s,ua=eO('',h,s,eA.fi);ez(ua,F.yJ);ua.onmousedown=function(v){v=D(v);w.zoomOut();return false;};I(r,ua);var E,tv,ry=0,oe=0,op=0,yg,ej=eO('',h,s,eA.fa);function tS(v){v=D(v);var fo=yi(v),ut=op.y+(fo.y-oe.y)-yO;E=wC.maxZoom-Math.round(ut/10);if(EwC.maxZoom){E=wC.maxZoom;ut=((wC.maxZoom-E)*10)+F.tN;}ej.style.top=wO(yO+ut);ry=E;tv=wC.maxZoom-(ut/10)-w.U;wf(yg,rw.iw);yg.oy(tM(2,tv));return false;}function aS(v){v=D(v);eE(document.documentElement,F.tg,tS);eE(document.documentElement,F.yK,aS);E=ry;ej.style.top=wO(yO+((wC.maxZoom-E)*10));yf(oe);yf(op);yf(ry);ez(ej,eA.ui,24,24);tv=E-w.U;yg.oy(tM(2,tv));w.moveTo(null,yg.os);wH(w.T[0].r,true);wf(yg,-1);return false;}function fs(v){v=D(v);oe=yi(v);op=new L(parseInt(ej.style.left,10),parseInt(ej.style.top,10));rh(document.documentElement,F.tg,tS);rh(document.documentElement,F.yK,aS);ez(ej,eA.fu,24,24);wH(w.T[0].r,false);var ww=w.getSize(),Z={x:ww.width/2,y:ww.height/2};yg=w.aW(Z);return false;}yT(ej);ej.onmousedown=fs;ej.title="drag to change zoom";ez(ej,eA.ui,24,24);I(r,ej);function px(U){ej.style.top=wO(yO+((wC.maxZoom-U)*10));}function uu(Y){if(Y.height>330){wH(yu,"");wH(ej,"");ua.style.top=wO(fc);}else{wH(yu,false);wH(ej,false);ua.style.top=wO(yO);}}w.addEventListener(k.events.ZOOM_CHANGED,px);w.addEventListener(k.events.SIZE_CHANGED,uu);px(w.getZoom());uu(w.getSize());return{getId:function(){return F.pl;},getToolbar:function(){return ea;},setImageUrl:function(){},getImage:function(){return null;},setPosition:function(){}};};var ek=function(W,ea){this.W=W;this.ea=ea;this.G="";this.wc=new L(0,0);this.n=null;this.onclick=null;};ek.prototype.tb=function(){wA(this.n,this.wc.x,this.wc.y);};ek.prototype.oB=function(v){var q=this;v=D(v);if(q.onclick){q.onclick(q);}q.wW(ek.events.CLICK,q);return false;};ek.prototype.oN=function(v){v=D(v);return false;};ek.prototype.getId=function(){return this.W;};ek.prototype.getToolbar=function(){return this.ea;};ek.prototype.setImageUrl=function(fk){var q=this;q.G=fk;if(q.n){q.n.src=q.G;}};ek.prototype.getImage=function(){var q=this,n;if(!q.n){n=new Image();n.src=q.G;n.onmousedown=P(q,"oB");n.onmouseup=P(q,"oN");n.style.cursor=F.yJ;q.n=n;q.tb();}return q.n;};ek.prototype.setPosition=function(fj){var q=this;q.wc=fj;if(q.n){q.tb();}};ek.events={CLICK:"onclick"};var fq=function(ea){var N=new ek("Telenavis jsMap pan tool",ea);N.setImageUrl(u.baseUrl+"images/pan_down.png");N.setPosition(new L(17,38));N.iB=new ul(N,0,1);return N;};var fw=function(ea){var N=new ek("Telenavis jsMap pan tool",ea);N.setImageUrl(u.baseUrl+"images/pan_up.png");N.setPosition(new L(17,8));N.iB=new ul(N,0,-1);return N;};var dM=function(ea){var N=new ek("Telenavis jsMap pan tool",ea);N.setImageUrl(u.baseUrl+"images/pan_left.png");N.setPosition(new L(5,20));N.iB=new ul(N,-1,0);return N;};var fe=function(ea){var N=new ek("Telenavis jsMap pan tool",ea);N.setImageUrl(u.baseUrl+"images/pan_right.png");N.setPosition(new L(35,20));N.iB=new ul(N,1,0);return N;};var ul=function(N,sZ,dj){var w=N.getToolbar().getMap(),n=N.getImage(),aD=false;function dl(v){rx(v);n.onmouseup=di;n.onmouseout=n.onmouseup;aD=false;re(da,50);}function da(){w.rm=sZ;w.rb=dj;w.yD();}function di(v){rx(v);aD=true;w.rm=0;w.rb=0;}n.onmousedown=dl;};var wP=function(W){this.we=null;this.getId=function(){return W;};this.method=wP.methodsEnum.ADDRESS;this.responseLocale="el";this.adminAreasLimit=3;this.calculateDistances=false;this.minSearchDistance=10;this.maxSearchDistance=500;};wP.prototype=new eF();wP.prototype.yH=function(ex){var wl=this,G;G=u.geocoderUrl+"?"+"address="+encodeURIComponent(ex)+"&t="+wl.method+"&key="+u.key+"&time="+new Date().valueOf()+"&lc="+wl.responseLocale+"&d="+document.location.host+"&callback=telenavis.Geocoder.callback"+wl.getId();wP["callback"+wl.getId()]="";uz(G,P(wl,"gR"));};wP.prototype.gY=function(yy){var wl=this,G;G=u.geocoderUrl+"?"+"p="+yy.x.toString()+" "+yy.y.toString()+"&t="+wl.method+"&key="+u.key+"&time="+new Date().valueOf()+"&d="+document.location.host+"&lc="+wl.responseLocale+(wl.calculateDistances===true?"&cd=1":"")+"&nm="+wl.minSearchDistance+"&xm="+wl.maxSearchDistance+"&callback=telenavis.Geocoder.callbackRv"+wl.getId();wP["callbackRv"+wl.getId()]="";uz(G,P(wl,"ht"));};wP.prototype.gR=function(){var ra,wl=this;ra=wP["callback"+wl.getId()];if(ra===""){K(H.oL);}else{if(wl.we){wl.we(ra);}wl.wW(wP.events.GEOCODE,ra);}};wP.prototype.ht=function(){var ra,wl=this;ra=wP["callbackRv"+wl.getId()];if(ra===""){K(H.oL);}else{ra.Address=wl.gT(ra.Results);wl.wW(wP.events.REVERSE_GEOCODE,ra);}};wP.prototype.gT=function(rH){var ex='';var ic=function(rS){if(rS!=''){ex+=rS+', ';return true;}return false;};if(rH==null){return'';}if(!ic(rH.Place)){ic(rH.Road+(rH.RoadNum==''?'':' '+rH.RoadNum));}var oc=0;var aO=false;for(var i=rH.AdminOrders.length-1;i>=0&&oc0){if(u.rr==null){u.rr=0;}else if(u.rr==u.tileSources.length-1){u.rr=0;}else{u.rr+=1;}var oE=u.tileSources[u.rr];return oE+"?z="+E+"&x="+h+"&y="+s+"&key="+u.key+"&v="+u.storageVersion+"&lc="+u.locale;}else{return u.tileUrl+"?z="+E+"&x="+h+"&y="+s+"&key="+u.key+"&v="+u.storageVersion+"&lc="+u.locale;}return u.tileUrl+"?z="+E+"&x="+h+"&y="+s+"&key="+u.key+"&v="+u.storageVersion+"&lc="+u.locale;};var rW=eq('',0,0,0,0);rW.style.border="solid 2px blue";rW.style.backgroundColor="white";oY(rW,0.5);wf(rW,2);I(eh,rW);I(w.getDiv(),r);function uu(){var gc=U,pj=ir();if(gc!=pj){wo.yz();U=pj;ix(pj);}il();}function pO(){U=ir();wo.yz();re(il,100);ix(U);}function tj(){var wJ=wo.aR(w.getCenter()),eS=wo.rZ(),wS=new L(wJ.x+eS.x-Y/2,wJ.y+eS.y-Y/2);var pF=pd((wS.x*wS.x)+(wS.y*wS.y));if(pF>wo.wk){wo.yz();}else{wA(wo.r,eS.x-wS.x,eS.y-wS.y);wo.eN();}il();ix(U);}function ir(){var wI=w.getSize(),ts=wI.width,en=wI.height,E=w.getZoom()-u.overviewZoomDifference;do{ts/=2;en/=2;if(ts=0);if(E<0){E=0;}return E;}function il(){var wI=w.getSize(),tW=w.getZoom(),sh=tM(2,tW-U),sd=wI.width/sh,aX=wI.height/sh;tw(rW,sd,aX);wA(rW,u.overviewSize/2-sd/2,u.overviewSize/2-aX/2);}function ix(U){if(U<=u.viewRectangleMinimumZoom){rW.style.display='none';}else{rW.style.display="block";}}function io(){tw(r,(wX?(Y+ys*2):12),(wX?(Y+ys*2):12));eL.style.backgroundImage="url(\""+(wX?u.overviewIconOpened:u.overviewIconClosed)+"\")";eL.style.backgroundRepeat='no-repeat';wH(eh,wX);if(w.yt){w.yt.style.right=wO((wX?Y:0)+10);}if(wX==true){if(oF===false){q.es();oF=true;}wo.yz();}}q.es=function(){wo.es(w,eh);w.addEventListener(k.events.SIZE_CHANGED,uu);w.addEventListener(k.events.ZOOM_CHANGED,pO);w.addEventListener(k.events.CENTER_CHANGED,tj);oF=true;};q.um=function(){if(wX==false){wX=true;io();}};q.fX=function(){if(wX==true){wX=false;io();}};q.yp=function(){wU(r);w.removeEventListener(k.events.CENTER_CHANGED,tj);w.removeEventListener(k.events.ZOOM_CHANGED,pO);w.removeEventListener(k.events.SIZE_CHANGED,uu);wn(w,"rf");wX=false;if(w.yt){w.yt.style.right=wO((wX?Y:0)+10);}};q.U=function(){return ir();};q.rY=function(){if(wX==true){var h,s,q=this,A=wo.ws.A;for(h=0;h=0){A[h][s].rY();}}}}};if(w.yt){w.yt.style.right=wO((wX?Y:0)+10);}U=ir();io();il();ix(U);};var pf=function(w){this.uH=null;this.w=w;};pf.prototype.ou=function(){var td=this.w.getCenter();var tW=this.w.getZoom();var sN=this;if(this.sV(td,tW)===true){sN.uH={yy:td,sM:tW};var we=function(){};var G=u.baseUrl+"lyrs.ashx?"+"k="+u.key+"&time="+new Date().valueOf()+"&u="+document.location.host+"&callback=mlch";uz(G,we);}};pf.prototype.sV=function(td,tW){if(this.uH==null){return true;}if(this.uH.sM!=tW){return true;}var df=Math.pow(2,tW);var dd=Math.abs(u.bb.x1)+Math.abs(u.bb.x2);var ax=dd/df;var ac=td.toMerc();var al=this.uH.yy.toMerc();if(Math.abs(ac.x-al.x)>ax*15){return true;}if(Math.abs(ac.y-al.y)>ax*15){return true;}return false;};k.yR.register(function(w){w.oi=new pf(w);w.oi.ou();});var az=function(W,fh,ff){this.id=W;this.bb=fh;this.tt=ff;};az.prototype.toString=function(){return"Feature { id:"+this.id+", bounding box:"+this.bb+', title:'+this.tt+"}";};telenavis.TileFeature=az;u.ServerTrafficLayerId='TrafficServerLayer';var oY=function(wu,tI){wu.style.opacity=tI;};var fg=function(O,fz){O.src=fz;};var aT="http://www.w3.org/2000/svg";var sY=function(ep,rR){if(!ep){K(H.aM+"(id:"+this.rv+")");}else{eI(ep,"visibility",rR?F.uB:F.uC);}};var gq=function(wQ){var rU=wQ.wi.getId(),w=wQ.wi.getMap(),fU=w.getId(),pG=wQ.wi.getDiv(),ei=eb(wQ.rv),pD=fU+"."+rU+".svgC",yw=eb(pD),pk=w.T[0].rZ(),wI=w.getSize(),E=w.getZoom(),fillColor=wQ.fillColor===""?"none":wQ.fillColor,pnts=wQ.gd(pk,false,fillColor=="none");if(!pG){K(H.fQ+"(layer:"+p.layer.getId()+")");}if(ei){wU(ei);}if(!yw){yw=pC(aT,"svg");yw.id=pD;I(pG,yw);}eI(yw,"style","pointer-events:none; position: absolute; overflow: hidden;"+"left: "+(-pk.x)+"px;"+"top: "+(-pk.y)+"px;"+"width: "+(wI.width)+"px;"+"height : "+(wI.height)+"px;"+"z-index:"+wQ.zIndex+";");ei=pC(aT,"path");I(yw,ei);ei.id=wQ.rv;if(E>wQ.wi.minZoom-1&&E