function testMap(mapDiv,listingLat,listingLon){var listingMap=null;listingMap=new VEMap(mapDiv);listingMap.LoadMap(new VELatLong(listingLat,listingLon),16,"r",false,VEMapMode.Mode2D,false);listingMap.HideDashboard();var newPin=null;if(listingMap!=null){var newPin=new VEShape(VEShapeType.Pushpin,new VELatLong(listingLat,listingLon));customIconSpecification="<div class='pin_selected'></div>";newPin.SetCustomIcon(customIconSpecification);listingMap.AddShape(newPin)}}var images="/images/shared/map/yellow/";var panSpeed=70;var compass_click=false;function YPGMapControl(controlId){this.controlId=controlId;this.pushPinIcon=null;this.customIconSpecification=null;this.distanceUnits=VEDistanceUnit.Kilometers;this.bulkShapes=new Array();this.calcShapes=new Array();this.HideVEControls=function(){if(this.mapInstance!=null){this.mapInstance.HideDashboard()}};this.ShowVEControls=function(){if(this.mapInstance!=null){this.mapInstance.ShowDashboard()}};this.SetCenterAndZoom=function(latLong,zoomLevel){if(this.mapInstance!=null){this.mapInstance.SetCenterAndZoom(latLong,zoomLevel)}};this.CreateAndLoadMap=function(latLong,zoom,style,fixed,mode,showSwitch,credentials){this.mapInstance=new VEMap(controlId);if(credentials!=""){this.mapInstance.SetCredentials(credentials)}this.mapInstance.LoadMap(latLong,zoom,style,fixed,mode,showSwitch);this.mapInstance.SetScaleBarDistanceUnit(this.distanceUnits);if(!document.getElementById("ypgBody")){this.mapInstance.AttachEvent("onchangemapstyle",NorthArrowOff);this.AddCompassRose()}if(document.getElementById("ypgBody")){this.mapInstance.AttachEvent("onchangemapstyle",eventTriggeredUpdateSelectedMapStyleIndicator);this.mapInstance.AttachEvent("onmouseover",MouseoverCB);this.mapInstance.AttachEvent("onmouseout",MouseoutCB)}this.m_vetilesourcemanager=this.mapInstance.m_vetilesourcemanager;this._dm=this.mapInstance._dm;this.pushpins=this.mapInstance.pushpins};this.PanToLatLong=function(latLong){this.mapInstance.PanToLatLong(latLong)};this.AddCompassRose=function(){var targetMap=document.getElementById(controlId);var target=findPos(targetMap);var targetWidth=targetMap.style.width;var d=document.createElement("DIV");d.id="ypgmap-north";d.className="ypgmap-north";d.style.backgroundColor="transparent";d.style.zIndex="999";d.style.right="40px";d.style.top="7px";d.style.backgroundImage="url(http://dev.cb.yp.ca/map/North_icon.gif)";d.style.width="18px";d.style.height="25px";d.style.backgroundRepeat="no-repeat";d.style.position="absolute";targetMap.appendChild(d)};this.Create=function(){this.mapInstance=new VEMap(controlId)};this.LoadMap=function(latLong,zoom,style,fixed,mode,showSwitch){this.mapInstance.LoadMap(latLong,zoom,style,fixed,mode,showSwitch)};this.GetMapStyle=function(){return this.mapInstance.GetMapStyle()};var Utf8={encode:function(string){string=string.replace(/\r\n/g,"\n");var utftext="";for(var n=0;n<string.length;n++){var c=string.charCodeAt(n);if(c<128){utftext+=String.fromCharCode(c)}else{if((c>127)&&(c<2048)){utftext+=String.fromCharCode((c>>6)|192);utftext+=String.fromCharCode((c&63)|128)}else{utftext+=String.fromCharCode((c>>12)|224);utftext+=String.fromCharCode(((c>>6)&63)|128);utftext+=String.fromCharCode((c&63)|128)}}}return utftext},decode:function(utftext){var string="";var i=0;var c=c1=c2=0;while(i<utftext.length){c=utftext.charCodeAt(i);if(c<128){string+=String.fromCharCode(c);i++}else{if((c>191)&&(c<224)){c2=utftext.charCodeAt(i+1);string+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2}else{c2=utftext.charCodeAt(i+1);c3=utftext.charCodeAt(i+2);string+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3}}}return string}};function convertUTF8(){document.getElementById("MSVE_navAction_ObliqueMapView").title="Afficher la vue aÃ©rienne"}this.DashboardTranslateFR=function(){return;document.getElementById("MSVE_navAction_FlatlandMapMode").title="Visualisez les cartes en 2D";document.getElementById("MSVE_navAction_View3DMapMode").title="Visualisez les cartes en 3D en utilisant le programme beta Virtual Earth 3D";document.getElementById("MSVE_navAction_RoadMapStyle").title="Passez à la vue Route";document.getElementById("MSVE_navAction_AerialMapStyle").title="Passez à la vue Aérienne";document.getElementById("MSVE_navAction_ObliqueMapView").title="Passez à la vue de dessus";document.getElementById("Compass").title="Effectuez un panoramique dans n'importe quelle direction";document.getElementById("MSVE_navAction_tinyZoomBar_plus").title="Zoom avant. Pour zoomer sans interruption, cliquez sur le bouton de la souris et maintenez-le enfoncé. Le recadrage est possible dans tous les sens";document.getElementById("MSVE_navAction_tinyZoomBar_minus").title="Zoom arrière. Pour zoomer sans interruption, cliquez sur le bouton de la souris et maintenez-le enfoncé. Le recadrage est possible dans tous les sens.";document.getElementById("MSVE_obliqueNotifyText").innerHTML="Afficher une vue aérienne de ce lieu";document.getElementById("MSVE_navAction_toggleGlyphWrapper").title="Masquez le contrôle de la vue";document.getElementById("MSVE_navAction_RoadMapStyle").innerHTML="Route";document.getElementById("MSVE_navAction_AerialMapStyle").innerHTML="Aérienne";document.getElementById("MSVE_navAction_ObliqueMapView").innerHTML="Dessus";document.getElementById("MSVE_navAction_showLabels").innerHTML="Libellés";document.getElementById("MSVE_navAction_View3DMapMode").style.display="block";document.getElementById("MSVE_navAction_FlatlandMapMode").style.display="block";document.getElementById("MSVE_navAction_ccw").title="Faire pivoter l'angle de la caméra vers la gauche";document.getElementById("MSVE_navAction_cw").title="Faire pivoter l'angle de la caméra vers la droite"};function TranslateObliqueFR(e){}this.SetCustomIcon=function(shape,imageUrl){if(shape!=null){if(imageUrl!=null&&imageUrl!=""){shape.SetCustomIcon(imageUrl)}}};this.AddPushpin=function(pushPin){if(this.mapInstance!=null){this.mapInstance.AddShape(pushPin)}};this.AddLocation=function(lat,lon,coyName,address,city,prov,postalCode,phone,customIconSpecification,addToMapDirectly){var newPin=null;if(this.mapInstance!=null){var newPin=new VEShape(VEShapeType.Pushpin,new VELatLong(lat,lon));newPin.SetTitle(coyName);var contactBlock=((address)?address+"<br/>":"")+((city)?city+"<br/>":"")+((prov)?prov+"<br/>":"")+((postalCode)?postalCode+"<br/>":"")+((phone)?phone+"<br/>":"");newPin.SetDescription(contactBlock);if(customIconSpecification==null||customIconSpecification=="undefined"){if(this.pushPinIcon!=null){this.SetCustomIcon(newPin,this.pushPinIcon)}if(this.customIconSpecification!=null){this.SetCustomIcon(newPin,this.customIconSpecification)}}else{this.SetCustomIcon(newPin,customIconSpecification);if(typeof addToMapDirectly!="undefined"&&addToMapDirectly!=null&&addToMapDirectly==true){this.AddPushpin(newPin)}else{if(/mainpins_|pin_selected/.test(customIconSpecification)){this.mapInstance.GetShapeLayerByIndex(2).AddShape(newPin)}else{this.mapInstance.GetShapeLayerByIndex(1).AddShape(newPin)}}}}};this.AddLocations=function(locations,skipBestFit){var lat;var lon;var coyName;var address;var city;var prov;var postalCode;var phone;var customIconSpecification;var pointArray=new Array();if(this.mapInstance!=null){var bulkShapeLayer=new VEShapeLayer();this.mapInstance.AddShapeLayer(bulkShapeLayer);var calcShapeLayer=new VEShapeLayer();this.mapInstance.AddShapeLayer(calcShapeLayer);for(var i=0;i<locations.length;i++){lat=locations[i][0];lon=locations[i][1];coyName=locations[i][2];address=locations[i][3];city=locations[i][4];prov=locations[i][5];postalCode=locations[i][6];phone=locations[i][7];customIconSpecification=locations[i][8];this.AddLocation(lat,lon,coyName,address,city,prov,postalCode,phone,customIconSpecification)}if(this.mapInstance.GetShapeLayerByIndex(2).GetShapeCount()>0){this.mapInstance.SetMapView(this.mapInstance.GetShapeLayerByIndex(2).GetBoundingRectangle())}else{this.mapInstance.SetMapView(this.mapInstance.GetShapeLayerByIndex(1).GetBoundingRectangle())}}};this.DeleteAllShapes=function(){this.mapInstance.DeleteAllShapes()};this.DeleteShape=function(shape){this.mapInstance.DeleteShape(shape)};this.Get_dm=function(){return this.mapInstance._dm};this.FindLocation=function(address,city,prov,postalCode){var searchAddress="";var what=null;var findType=null;var shapeLayer=null;var startIndex=null;var numberOfResults=null;var showResults=false;var createResults=false;var useDefaultDisambiguation=false;var setBestMapView=true;if(address!=null&&address!=""){searchAddress=searchAddress+address}searchAddress=searchAddress+", ";if(city!=null&&city!=""){searchAddress=searchAddress+city}searchAddress=searchAddress+", ";if(prov!=null&&prov!=""){searchAddress=searchAddress+prov}searchAddress=searchAddress+", ";if(postalCode!=null&&postalCode!=""){searchAddress=searchAddress+postalCode}if(this.mapInstance!=null){this.mapInstance.Find(what,searchAddress,findType,shapeLayer,startIndex,numberOfResults,showResults,createResults,useDefaultDisambiguation,setBestMapView,onGotFindResults)}};this.GetRoute=function(start,end,units,routeType,callback){if(this.mapInstance!=null){if(callback==null){callback=onGotRoute}this.mapInstance.GetRoute(start,end,units,routeType,callback)}};this.DisableBirdseye=function(){document.getElementById("MSVE_navAction_ObliqueMapView").style.display="none";document.getElementById("MSVE_navAction_separator2").style.left="7px"};this.GetDirections=function(locations,options,credentials){options.DistanceUnit=VERouteDistanceUnit.Kilometer;if(this.mapInstance!=null){if(credentials!=""){this.mapInstance.SetCredentials(credentials)}this.mapInstance.GetDirections(locations,options)}};this.GetRouteTranslateFR=function(route){var len=route.Itinerary.Segments.length;for(var i=0;i<(len);i++){route.Itinerary.Segments[i].Instruction=TranslateFR(route.Itinerary.Segments[i].Instruction)}return route};this.GetShapeLayerCount=function(){return this.mapInstance.GetShapeLayerCount()};this.GetShapeLayerByIndex=function(index){return this.mapInstance.GetShapeLayerByIndex(index)};this.GetDirectionsTranslateFR=function(route){map.DeleteAllShapes();var routeinfo="";var steps="";var legs=route.RouteLegs;var leg=null;var legCount=0;var shape=null;var totalDistance=route.Distance;totalDistance=totalDistance.toFixed(1);var totalTime=route.Time;totalTime=totalTime*1000;totalTime=time(totalTime);for(var i=0;i<legs.length;i++){leg=legs[i];for(var j=0;j<leg.Itinerary.Items.length;j++){var turn=leg.Itinerary.Items[j];var turnDistance=turn.Distance;legCount=j+1;turnDistance=turnDistance.toFixed(1);shape=new VEShape(VEShapeType.Pushpin,leg.Itinerary.Items[j].LatLong);if(legCount==1){shape.SetDescription(legCount+" : Partez de "+displayfromAddress);shape.SetCustomIcon("http://cdn.cb.yp.ca/ypca/rc28.111024/images/icons/circA.gif")}else{if(legCount==leg.Itinerary.Items.length){shape.SetDescription(legCount+" : Arriv&eacute;e "+displaytoAddress);shape.SetCustomIcon("http://cdn.cb.yp.ca/ypca/rc28.111024/images/icons/circB.gif")}else{shape.SetDescription(legCount+" : "+turn.Text);var customIconSpecification=new VECustomIconSpecification();customIconSpecification.CustomHTML="<div id='vedir_l"+legCount+"' class='poistep'><span class='text'>"+legCount+"</span></div>";shape.SetCustomIcon(customIconSpecification)}}map.AddPushpin(shape);steps+=GenerateResults([turn.Text,turnDistance,totalDistance,totalTime],j,leg.Itinerary.Items.length)}}routeinfo=steps;var ourDiv=document.getElementById("drivingDirections");ourDiv.innerHTML=routeinfo;___lastRoute=route};this.GetDirectionsEN=function(route){map.DeleteAllShapes();var routeinfo="";var steps="";var legs=route.RouteLegs;var leg=null;var legCount=0;var shape=null;var totalDistance=route.Distance;totalDistance=totalDistance.toFixed(1);var totalTime=route.Time;totalTime=totalTime*1000;totalTime=time(totalTime);for(var i=0;i<legs.length;i++){leg=legs[i];for(var j=0;j<leg.Itinerary.Items.length;j++){var turn=leg.Itinerary.Items[j];var turnDistance=turn.Distance;legCount=j+1;turnDistance=turnDistance.toFixed(1);shape=new VEShape(VEShapeType.Pushpin,leg.Itinerary.Items[j].LatLong);if(legCount==1){shape.SetDescription(legCount+" : Depart "+displayfromAddress);shape.SetCustomIcon("htpt://cdn.cb.yp.ca/images/icons/circA.gif")}else{if(legCount==leg.Itinerary.Items.length){shape.SetDescription(legCount+" : Arrive "+displaytoAddress);shape.SetCustomIcon("http://cdn.cb.yp.ca/ypca/rc28.111024/images/icons/circB.gif")}else{shape.SetDescription(legCount+" : "+turn.Text);var customIconSpecification=new VECustomIconSpecification();customIconSpecification.CustomHTML="<div id='vedir_l"+legCount+"' class='poistep'><span class='text'>"+legCount+"</span></div>";shape.SetCustomIcon(customIconSpecification)}}map.AddPushpin(shape);steps+=GenerateResults([turn.Text,turnDistance,totalDistance,totalTime],j,leg.Itinerary.Items.length)}}routeinfo=steps;var ourDiv=document.getElementById("drivingDirections");ourDiv.innerHTML=routeinfo;___lastRoute=route};function TranslateFR(itineraryText){}this.Pan=function(deltaX,deltaY){if(this.mapInstance!=null){this.mapInstance.Pan(deltaX,deltaY)}};this.SetCenter=function(latLong){if(this.mapInstance!=null){this.mapInstance.SetCenter(latLong)}};this.GetCenter=function(){var center=null;if(this.mapInstance!=null){center=this.mapInstance.GetCenter()}return center};this.GetZoomLevel=function(){var level=null;if(this.mapInstance!=null){level=this.mapInstance.GetZoomLevel()}return level};this.AddNavControl=function(){var el=document.createElement("div");el.id="interactiveMapLink";el.className="clearfix";var expandStyle="none";var contractStyle="none";var mapNavControl="<div id='navcontrol' class='clearfix'>";mapNavControl+="<div id='navPanel'>";mapNavControl+="<div id='navDir'>";mapNavControl+="<img id='North' src='http://cdn.cb.yp.ca/ypca/rc28.111024/images/map/North.gif' alt='"+resourcePan+"' class='handicon' onmouseover='NavMouseOver(\"North\");' onmouseout='NavMouseOut(\"North\");' onmousedown='NavMouseDown(\"North\");' onmouseup='handleCompassClick(true);' />";mapNavControl+="<img id='East' src='http://cdn.cb.yp.ca/ypca/rc28.111024/images/map/East.gif' alt='"+resourcePan+"' class='handicon' onmouseover='NavMouseOver(\"East\");' onmouseout='NavMouseOut(\"East\");' onmousedown='NavMouseDown(\"East\");' onmouseup='handleCompassClick(true);' />";mapNavControl+="<img id='West' src='http://cdn.cb.yp.ca/ypca/rc28.111024/images/map/West.gif' alt='"+resourcePan+"' class='handicon' onmouseover='NavMouseOver(\"West\");' onmouseout='NavMouseOut(\"West\");' onmousedown='NavMouseDown(\"West\");' onmouseup='handleCompassClick(true);' />";mapNavControl+="<img id='South' src='http://cdn.cb.yp.ca/ypca/rc28.111024/images/map/South.gif' alt='"+resourcePan+"' class='handicon' onmouseover='NavMouseOver(\"South\");' onmouseout='NavMouseOut(\"South\");' onmousedown='NavMouseDown(\"South\");' onmouseup='handleCompassClick(true);' />";mapNavControl+="</div>";mapNavControl+="<div id='zoomControl'>";mapNavControl+="<img id='ZoomIn' src='http://cdn.cb.yp.ca/ypca/rc28.111024/images/map/ZoomIn.gif' alt='"+resourceZoomIn+"' class='handicon' onmouseover='NavMouseOver(\"ZoomIn\");' onmouseout='NavMouseOut(\"ZoomIn\");' onmousedown='NavMouseDown(\"ZoomIn\");' onmouseup='handleCompassClick(true);' />";mapNavControl+="<img id='ZoomOut-Min' src='http://cdn.cb.yp.ca/ypca/rc28.111024/images/map/ZoomOut.gif' alt='"+resourceZoomOut+"' class='handicon' onmouseover='NavMouseOver(\"ZoomOut-Min\");' onmouseout='NavMouseOut(\"ZoomOut-Min\");' onmousedown='NavMouseDown(\"ZoomOut-Min\");' onmouseup='handleCompassClick(true);' />";mapNavControl+="</div>";mapNavControl+="<div id='veMapStylesContainer'>";mapNavControl+="<ul>";mapNavControl+="<li id='road' class='ypgNavSelected'><a id='a_road' onmousedown='NavMouseDown(\"road\");'>"+resourceRoad+"</a></li>";mapNavControl+="<li id='aerial'><a id='a_aerial' onmousedown='NavMouseDown(\"aerial\");'>"+resourceAerial+"</a></li>";mapNavControl+="</ul>";mapNavControl+="</div>";mapNavControl+="</div>";mapNavControl+="<div class='controlExtend'>";mapNavControl+="</div>";mapNavControl+="</div>";el.innerHTML=mapNavControl;el.style.position="relative";$YP("#"+controlId).after(el);$YP("#interactiveMapLinkHidden").appendTo(".controlExtend")}}function MouseoverCB(e){return true}function MouseoutCB(e){return true}function respondToMouseOver(event){var element=event.element();element.addClassName("pseudoHover");event.stop()}function respondToMouseOut(event){var element=event.element();element.removeClassName("pseudoHover");event.stop()}function eventTriggeredUpdateSelectedMapStyleIndicator(e){var mapStyleID;if(e.mapStyle=="b"){mapStyleID="a_birdseye"}else{if(e.mapStyle=="r"){mapStyleID="a_road"}else{if(e.mapStyle=="h"){mapStyleID="a_aerial"}}}$YP("#veMapStylesContainer li").removeClass("ypgNavSelected");$YP("#"+mapStyleID).parent().addClass("ypgNavSelected")}function NavMouseOver(imageName){}function NavMouseOut(imageName){handleCompassClick(true)}function NavMouseDown(imageName){switch(imageName){case"North":compass_x=0;compass_y=-panSpeed;handleCompassClick(false);doPan();break;case"East":compass_x=panSpeed;compass_y=0;handleCompassClick(false);doPan();break;case"South":compass_x=0;compass_y=panSpeed;handleCompassClick(false);doPan();break;case"West":compass_x=-panSpeed;compass_y=0;handleCompassClick(false);doPan();break;case"ZoomIn":handleCompassClick(false);doZoomIn();break;case"ZoomOut-Min":handleCompassClick(false);doZoomOut();break;case"road":map.mapInstance.SetMapStyle(VEMapStyle.Road);break;case"aerial":map.mapInstance.SetMapStyle(VEMapStyle.Hybrid);break;case"hybrid":map.mapInstance.SetMapStyle(VEMapStyle.Hybrid);break;case"birdseye":if(map.mapInstance.IsBirdseyeAvailable()){map.mapInstance.SetMapStyle(VEMapStyle.BirdseyeHybrid)}break;case"Expand":$YP("#Expand").css({display:"none"});$YP("#Contract").css({display:"block"});break;case"Contract":$YP("#Expand").css({display:"block"});$YP("#Contract").css({display:"none"});break;case"hide":var control=document.getElementById("hide");if(navHidden==false){control.src=images+"nav/showOff.gif";document.getElementById(navcontrolId).style.height="17px";document.getElementById("navPanel").style.display="none";document.getElementById("hide").style.top="0px";navHidden=true}else{control.src=images+"nav/hideOff.gif";document.getElementById(navcontrolId).style.height="229px";document.getElementById("navPanel").style.display="block";document.getElementById("hide").style.top="212px";navHidden=false}break}}function handleCompassClick(mouseOut){if(mouseOut){compass_click=false}else{compass_click=true}}function doPan(){if(compass_click){map.mapInstance.Pan(compass_x,compass_y);setTimeout("doPan()",30)}}function doZoomIn(){if(compass_click){map.mapInstance.ZoomIn();setTimeout("doZoomIn()",30)}}function doZoomOut(){if(compass_click){map.mapInstance.ZoomOut();setTimeout("doZoomOut()",30)}}function onGotFindResults(shapeLayer,findResults,locations,hasMoreResults){}function onGotRouteNOP(){}function GenerateDDMap(route,stepNumber){var ddMap=new YPGMapControl("ddmap"+stepNumber);var legs=route.RouteLegs;for(var i=0;i<legs.length;i++){leg=legs[i];try{___lastStepNumber=stepNumber;___lastCenter=leg.Itinerary.Items[stepNumber].LatLong;ddMap.CreateAndLoadMap(leg.Itinerary.Items[stepNumber].LatLong,17,VEMapStyle.Road,true,null,false);ddMap.HideVEControls();___lastMap=ddMap;var routeShape=leg.Itinerary.Items[stepNumber].Shape;ddMap.AddPushpin(routeShape)}catch(ex){alert(ex.message)}}}function OpenMapDiv(route){var stepNumber=___lastStepNumber;var center=route.Itinerary.Segments[stepNumber].LatLong;var ddMap=___lastMap;ddMap.SetCenterAndZoom(center,17);var ourDiv=document.getElementById("ddmap"+stepNumber);var linkElement=document.getElementById("text"+stepNumber);linkElement.setAttribute("onclick","CloseMapDiv("+stepNumber+")")}function CloseMapDiv(stepNumber){var ourDiv=document.getElementById("ddmap"+stepNumber);var linkElement=document.getElementById("text"+stepNumber);linkElement.setAttribute("onclick","GenerateDDMap(___lastRoute, "+stepNumber+")")}IsBrowserVECompliant=function(){var firefox_index=navigator.userAgent.indexOf(FIREFOX_AGENTID);if(firefox_index!=-1){var firefox_version=parseFloat(navigator.userAgent.substring(firefox_index+FIREFOX_AGENTID.length));return firefox_version>=1.5}var ie_index=navigator.userAgent.indexOf(IE_AGENTID);if(ie_index!=-1){var ie_version=parseFloat(navigator.userAgent.substring(ie_index+IE_AGENTID.length));return ie_version>=6}return false};function findPos(obj){var curleft=curtop=0;if(obj.offsetParent){curleft=obj.offsetLeft;curtop=obj.offsetTop;while(obj=obj.offsetParent){curleft+=obj.offsetLeft;curtop+=obj.offsetTop}}return[curleft,curtop]}var ___lastCenter=null;var ___lastRoute=null;var ___lastStepNumber=0;var ___lastMap=null;function two(x){return((x>9)?"":"0")+x}function three(x){return((x>99)?"":"0")+((x>9)?"":"0")+x}function time(ms){var sec=Math.floor(ms/1000);ms=ms%1000;var min=Math.floor(sec/60);sec=sec%60;t=two(sec)+"sec";var hr=Math.floor(min/60);min=min%60;t=two(min)+"min "+t;var day=Math.floor(hr/60);hr=hr%60;hr=two(hr);if(hr!=0){t=hr+"h "+t}if(day!=0){t=day+"day "+t}return t}function NorthArrowOff(e){if(e.mapStyle=="b"){document.getElementById("ypgmap-north").style.zIndex="-999"}else{document.getElementById("ypgmap-north").style.zIndex="999"}}function MyHandleTokenExpire(){}function MyHandleTokenError(){};
