function GXhrGet(url,opt_callback){var req;window.XMLHttpRequest?req=new XMLHttpRequest:"undefined"!=typeof ActiveXObject&&(req=new ActiveXObject("Microsoft.XMLHTTP"));req.onreadystatechange=function(){4==req.readyState&&200==req.status&&(opt_callback&&opt_callback(req.responseText),req.onreadystatechange=function(){})};req.open("GET",url,!0);req.send("")} function dac(e,c){var name=e.className?String(e.className):"";if(name){for(var cn=name.split(/\s+/),found=!1,i=0;i=this.counter_){++this.counter_;var urlLines=[];try{for(var stacktrace=[],counter=0,c=this.log_.caller;null!=c;c=c.caller){var matches=c.toString().match(/function (\w*)/);if(matches&&matches[1]&&(stacktrace.push(matches[1]),c.caller==c)){stacktrace.push("*");break}if(40tile.y&&(middleSalt="&s=");var scale="";isHighDpiDevice()&&(scale="&scale="+getDevicePixelRatio());return opt_useCellIdInTileUrls?[baseUrls[i],getCellUrlParam_(baseUrls[i],tile,zoom),middleSalt,scale,"&s=",salt].join(""):[baseUrls[i],"x=",tile.x,middleSalt,"&y=",tile.y,"&z=",zoom,scale,"&s=",salt].join("")} function isHighDpiDevice(){return window._mHDPI?void 0!==window.devicePixelRatio&&1>=1;return reusableIdArray_.join("")};function TileOverride(tileOverrides){this.overrides_=tileOverrides} var TileOverride$fromLatLngRect=function(override,latLngToPixel,tileSize,maxResolution){for(var expandedOverride=[],numOverrides=override?override.length:0,i=0;izoom||overrides[i].maxZoom=tile.y&&bounds.w<=tile.x&&bounds.e>=tile.x)return overrides[i].uris}}return null};function alignWithMapCenter(ids){for(var map=e("map"),centerLeft=Math.round(map.offsetWidth/2),centerTop=Math.round(map.offsetHeight/2),i=0;idistance[j].x&&halfHeight>distance[j].y){found=!0;break}found||hide(node.id)}}};function e(id){return document.getElementById(id)}function v(id){return e(id).value}function vs(id,val){e(id).value=val}function d0(id){e(id).style.display="none"}function d1(id){e(id).style.display=""}function u(v){return"undefined"==typeof v} function GXhrGet(url,opt_callback){var req;window.XMLHttpRequest?req=new XMLHttpRequest:"undefined"!=typeof ActiveXObject&&(req=new ActiveXObject("Microsoft.XMLHTTP"));req.onreadystatechange=function(){4==req.readyState&&200==req.status&&(opt_callback&&opt_callback(req.responseText),req.onreadystatechange=function(){})};req.open("GET",url,!0);req.send("")} function dac(e,c){var name=e.className?String(e.className):"";if(name){for(var cn=name.split(/\s+/),found=!1,i=0;iJSCompiler_object_inline_y_3- nTop&&(nTop=JSCompiler_object_inline_y_3);var nRight=Math.ceil((size.w/2-256+JSCompiler_object_inline_x_0)/256),nBottom=Math.ceil((size.h/2-256+JSCompiler_object_inline_y_1)/256);JSCompiler_object_inline_y_3+nBottom>=nWrapTiles&&(nBottom=nWrapTiles-JSCompiler_object_inline_y_3-1);var JSCompiler_object_inline_y_5;tileContainer.style.left="-"+Math.round(JSCompiler_object_inline_x_0+256*nLeft)+"px";tileContainer.style.top="-"+Math.round(JSCompiler_object_inline_y_1+256*nTop)+"px";var JSCompiler_object_inline_x_6= JSCompiler_object_inline_x_2-nLeft,JSCompiler_object_inline_y_7=JSCompiler_object_inline_y_3-nTop;return{x0:JSCompiler_object_inline_x_6,y0:JSCompiler_object_inline_y_7,x1:JSCompiler_object_inline_x_6+nLeft+nRight,y1:JSCompiler_object_inline_y_7+nTop+nBottom}} function appendAuthToken(baseUrls,opt_domain,opt_authtoken){var keyholeAuthtoken=opt_authtoken?"cookie="+opt_authtoken+"&":"";opt_authtoken&&opt_domain&&checkCookie(opt_domain)&&(setCookie("khcookie",opt_authtoken,opt_domain,"kh"),keyholeAuthtoken="");return appendKeyholeAuthtoken(keyholeAuthtoken,baseUrls)} function insertTiles(tileContainer,size,lat,lng,zoom,baseUrls,tileOverrides,transparent,opt_domain,opt_authtoken,opt_tileLyrsPairs){var coords=getTileArea(tileContainer,size,lat,lng,zoom),x0=coords.x0,y0=coords.y0,x1=coords.x1,y1=coords.y1;baseUrls=appendAuthToken(baseUrls,opt_domain,opt_authtoken);for(var tileOverridePixelRect=TileOverride$fromLatLngRect(tileOverrides,latLngToPixel,256,zoom),tileLyrsMap=null,htmlList=[],nWrapTiles=Math.pow(2,zoom),y=y0;y<=y1;y++)for(var x=x0;x<=x1;x++){var wrappedx= x;0>wrappedx?wrappedx=(Math.abs(Math.floor(x/nWrapTiles))*nWrapTiles+x)%nWrapTiles:wrappedx>=nWrapTiles&&(wrappedx%=nWrapTiles);var tile={x:wrappedx,y:y},uris=tileOverridePixelRect.getBaseUris(tile,zoom)||baseUrls;opt_tileLyrsPairs&&(tileLyrsMap||(tileLyrsMap=convertPairsToMap(opt_tileLyrsPairs)),uris=getTileSpecificUris(zoom,tile.x,tile.y,tileLyrsMap,uris));preloadRasterTile(uris,tile,zoom,x-x0,y-y0,transparent,htmlList)}tileContainer.innerHTML=htmlList.join("");tileContainer.style.display="block"} function preloadRasterTile(uris,tile,zoom,x,y,transparent,htmlList){var url=getTileUrl(uris,tile,zoom);transparent&&/MSIE 6/i.test(navigator.userAgent)?htmlList.push(['
"].join("")):htmlList.push([''].join(""))} function latLngToPixel(lat,lng,zoom){var centerPoint=Math.pow(2,zoom+7),totalPixels=2*centerPoint,pixelsPerLngDegree=totalPixels/360,pixelsPerLngRadian=totalPixels/(2*Math.PI),siny=Math.min(Math.max(Math.sin(Math.PI/180*lat),-0.9999),0.9999);return{x:Math.round(centerPoint+lng*pixelsPerLngDegree),y:Math.round(centerPoint-0.5*Math.log((1+siny)/(1-siny))*pixelsPerLngRadian)}};function repositionInlineMapControls(control_ids){for(var firstNode=e(control_ids[0]),anchorNode=firstNode.firstChild,offset=19-anchorNode.offsetLeft,i=1;ianchorNode.offsetLeft&&(firstNode.style.width=px(-anchorNode.offsetLeft));firstNode.style.height=px(anchorNode.offsetHeight)} function repositionInlineZoomControls(numLevels){var map=document.getElementById("map"),inlineZoomSlider=document.getElementById("zoom_slider_inline"),inlineZoomOut=document.getElementById("zoom_out_inline"),inlineZoomOutImg=document.getElementById("zoom_out_inline_img"),inlineZoomSliderContainer=document.getElementById("inline_zoom_slider_container");if(!(map&&inlineZoomSlider&&inlineZoomOut&&inlineZoomOutImg&&inlineZoomSliderContainer))return 0;var minZoom=getWorldZoomLevel(map.clientWidth,map.clientHeight);if(map.clientHeight<240+8*(numLevels+minZoom))inlineZoomOut.style.height=px(22),inlineZoomOutImg.style.top=px(-361),inlineZoomOut.style.top=px(55),inlineZoomSlider.style.height=px(4),inlineZoomSliderContainer.style.display="none";else if(0