{var formElem = e(name + "_d");if (formElem) {formElem.focus();}} catch(ex) {}return false;}function flipDForm() {var f = e("d_form");var tmp = v("d_d");f.saddr.value = v("d_daddr");f.daddr.value = tmp;return false;}function B(c){var args = [];var func;this.arg = function(pos,val){args[pos]= val;return this;};this.func = function(f){func = f;return this;};this.check = function(){if (!func)return;for (var i = 0;i < c;++i)if (u(args[i]))return;func.apply(this,args);};}var vpLoad = new B(5);var vpLoadHome = new B(2);var gApplication = null;var gMasterPrintHandler = null;(function(){window.gPanelDefaultUrls=['/maps?ie\x3dUTF8\x26hl\x3dpt-BR','/maps/ms?ie\x3dUTF8\x26hl\x3dpt-BR\x26oe\x3dUTF8\x26msa\x3d10','','/maps/mm?ie\x3dUTF8\x26hl\x3dpt-BR','','','/maps','','/maps/myplaces'];})();(function(){window.gDeviceCapabilities=[,,1];})();function getWindowHeight(){if (window.self && self.innerHeight){return self.innerHeight;}if (document.documentElement &&document.documentElement.clientHeight){return document.documentElement.clientHeight;}return 0;}function getWindowWidth(){if (window.self && self.innerWidth){return self.innerWidth;}if (document.documentElement &&document.documentElement.clientWidth){return document.documentElement.clientWidth;}return 0;}function getIFrameDocument(iframe){if (iframe.contentWindow){return iframe.contentWindow.document;}else {return iframe.contentDocument;}}function loadUrl(url,opt_opts){getIFrameDocument(e("vp")).location = url;return false;}function openInfoWindow(id){return true;}function openLbaInfoWindow(id,label){return true;}function calculateOffsetTop(element,opt_top){var top = opt_top || null;var offset = 0;for (var elem = element;elem && elem != opt_top;elem = elem.offsetParent){offset += elem.offsetTop;}return offset;}(function(){var css_workaround_for_earth_plugin=true;var resize_app_height_firefox=false;var resize_app_height_mac=false;window.resizeAppCalcHeight = function(){var height = getWindowHeight();if (css_workaround_for_earth_plugin){e("main").style.height = height + 'px';}if (resize_app_height_firefox){height -= 3;}if (resize_app_height_mac && window.statusbar &&!window.statusbar.visible){height -= 10;}return height;};})();(function(){var adjust_map_height=true;var cityblock_pano_ratio=1;var small_height=630;var small_width=1000;var is_ie6=false;window.setSizeMode = function(){var height = resizeAppCalcHeight();var width = getWindowWidth();var newSize = '';if (height < small_height || width < small_width){newSize = 'small';}drc(document.body,'small');dac(document.body,newSize);};window.resizeApp = function(){if (!is_ie6){setSizeMode();}var height = resizeAppCalcHeight();var panelElem = e("panel");var mapElem = e("map");if (!mapElem){return;}var mapHeight = height - calculateOffsetTop(mapElem);var panelHeight = height - calculateOffsetTop(panelElem);panelHeight += 4;var sp = e("spsizer");var resizerHeight = height - calculateOffsetTop(sp);if (adjust_map_height){var mclip = e("mclip");mapHeight -= mclip.offsetHeight;}mapElem.style.height = Math.max(0,mapHeight)+ "px";panelElem.style.height = Math.max(0,panelHeight)+ "px";resizerHeight -= e("rv_panel").offsetHeight;sp.style.height = Math.max(0,resizerHeight)+ "px";var inlineCityblockDiv = e("inline_pano_div");if (inlineCityblockDiv){var cityblockDivHeight = mapHeight * cityblock_pano_ratio;inlineCityblockDiv.style.height = Math.max(0,cityblockDivHeight)+"px";}};})();setTimeout(function(){if (gApplication){return;}e("loadmessage")&& d0("loadmessage");e("slowmessage")&& d1("slowmessage");},10000);function onSearch(form){if (gApplication){gApplication.prepareMainForm(form);}return true;}function loadHomePage(){eval("try { var sbi = e('q_d') || gbar.qfgq(); sbi.focus(); } " +"catch (ex) {}");vpLoadHome.arg(1,"homestate").check();}function loadVPageStarted(){}function loadVPage(v,s){loadVPageStarted();vpLoad.arg(1,v).arg(2,s).arg(4,false).check();}function recordCityblockLightningFlashLoadTime(){tick('cbl');}function recordCityblockHeavyFlashLoadTime(){tick('cbh');} window.onunload = function(){GUnload();}; window.onresize = function(){resizeApp();}; .msie-6 .hide-msie-6{display:none}.hide-non-msie-6{display:none}.msie-6 .hide-non-msie-6{display:inline}.ie-6 .hide-ie-6{display:none}.no-wrap{white-space:nowrap}.offscreen{position:absolute;left:0;top:-1000em;width:1px;height:1px;overflow:hidden;border:0}.source{color:#093}.b{font-weight:bold}.a{color:#093}.a:link{color:#093}.a:visited{color:#093}.f{color:#999}.f:link{color:#999}.f:visited{color:#999}.anchor-selected{color:#000;font-weight:bold;text-decoration:none;cursor:default}.anchor-selected:link{color:#000;font-weight:bold;text-decoration:none;cursor:default}.anchor-selected:visited{color:#000;font-weight:bold;text-decoration:none;cursor:default}.kd-input-text{background-color:#fff;padding-left:8px;border:1px solid #d9d9d9;border-top:1px solid #c0c0c0;-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px}.kd-input-text:hover{border:1px solid #b9b9b9;border-top:1px solid #a0a0a0;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1)}.kd-input-text:focus{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);outline:none;border:1px solid #4d90fe}.kd-button{display:inline-block;min-width:54px;border:1px solid #dcdcdc;border: 1px solid rgba(0,0,0,0.1);text-align:center;color:#444;font-size:85%;font-weight:bold;height:27px;padding:0 8px;line-height:27px;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;-webkit-transition:all 0.218s;-moz-transition:all 0.218s;-o-transition:all 0.218s;transition:all 0.218s;background-color:#f5f5f5;background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#f1f1f1));background-image: -webkit-linear-gradient(top,#f5f5f5,#f1f1f1);background-image: -moz-linear-gradient(top,#f5f5f5,#f1f1f1);background-image: -ms-linear-gradient(top,#f5f5f5,#f1f1f1);background-image: -o-linear-gradient(top,#f5f5f5,#f1f1f1);background-image: linear-gradient(top,#f5f5f5,#f1f1f1);filter:progid:DXImageTransform.Microsoft.gradient(startColorStr='#f5f5f5',EndColorStr='#f1f1f1')}.msie-7 .kd-button{overflow:visible}.msie-8 .kd-button{overflow:visible}.kd-button.mini{height:17px;line-height:17px;min-width:0}.kd-button:hover{border:1px solid #c6c6c6;color:#333;-webkit-transition:all 0.0s;-moz-transition:all 0.0s;-o-transition:all 0.0s;transition:all 0.0s;background-color:#f8f8f8;background-image:-webkit-gradient(linear,left top,left bottom,from(#f8f8f8),to(#f1f1f1));background-image: -webkit-linear-gradient(top,#f8f8f8,#f1f1f1);background-image: -moz-linear-gradient(top,#f8f8f8,#f1f1f1);background-image: -ms-linear-gradient(top,#f8f8f8,#f1f1f1);background-image: -o-linear-gradient(top,#f8f8f8,#f1f1f1);background-image: linear-gradient(top,#f8f8f8,#f1f1f1);-ms-filter:progid:DXImageTransform.Microsoft.gradient(startColorStr='#f8f8f8',EndColorStr='#f1f1f1');-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,0.1);box-shadow:0 1px 1px rgba(0,0,0,0.1);text-decoration:none}.kd-button:active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);box-shadow:inset 0 1px 2px rgba(0,0,0,0.3)}.kd-button:active:hover{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);box-shadow:inset 0 1px 2px rgba(0,0,0,0.3)}.kd-button:active:focus{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);box-shadow:inset 0 1px 2px rgba(0,0,0,0.3)}.kd-button.selected{background-color:#eee;background-image:-webkit-gradient(linear,left top,left bottom,from(#eee),to(#e0e0e0));background-image: -webkit-linear-gradient(top,#eee,#e0e0e0);background-image: -moz-linear-gradient(top,#eee,#e0e0e0);background-image: -ms-linear-gradient(top,#eee,#e0e0e0);background-image: -o-linear-gradient(top,#eee,#e0e0e0);background-image: linear-gradient(top,#eee,#e0e0e0);filter:progid:DXImageTransform.Microsoft.gradient(startColorStr='#eeeeee',EndColorStr='#e0e0e0');-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);border:1px solid #ccc;color:#333}.kd-button.selected:hover{background-color:#eee;background-image:-webkit-gradient(linear,left top,left bottom,from(#eee),to(#e0e0e0));background-image: -webkit-linear-gradient(top,#eee,#e0e0e0);background-image: -moz-linear-gradient(top,#eee,#e0e0e0);background-image: -ms-linear-gradient(top,#eee,#e0e0e0);background-image: -o-linear-gradient(top,#eee,#e0e0e0);background-image: linear-gradient(top,#eee,#e0e0e0);filter:progid:DXImageTransform.Microsoft.gradient(startColorStr='#eeeeee',EndColorStr='#e0e0e0');-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);border:1px solid #ccc;color:#333}.kd-button.selected:active{background-color:#eee;background-image:-webkit-gradient(linear,left top,left bottom,from(#eee),to(#e0e0e0));background-image: -webkit-linear-gradient(top,#eee,#e0e0e0);background-image: -moz-linear-gradient(top,#eee,#e0e0e0);background-image: -ms-linear-gradient(top,#eee,#e0e0e0);background-image: -o-linear-gradient(top,#eee,#e0e0e0);background-image: linear-gradient(top,#eee,#e0e0e0);filter:progid:DXImageTransform.Microsoft.gradient(startColorStr='#eeeeee',EndColorStr='#e0e0e0');-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);border:1px solid #ccc;color:#333}.kd-button.disabled{background:#fff;color:#b8b8b8;border:1px solid #f3f3f3;border: 1px solid rgba(0,0,0,0.05);cursor:default;pointer-events:none}.kd-button.disabled:hover{background:#fff;color:#b8b8b8;border:1px solid #f3f3f3;border: 1px solid rgba(0,0,0,0.05);cursor:default;pointer-events:none}.kd-button.disabled:active{background:#fff;color:#b8b8b8;border:1px solid #f3f3f3;border: 1px solid rgba(0,0,0,0.05);cursor:default;pointer-events:none}.kd-button:disabled{background:#fff;color:#b8b8b8;border:1px solid #f3f3f3;border: 1px solid rgba(0,0,0,0.05);cursor:default;pointer-events:none}.kd-button-submit{border:1px solid #3079ed;color:#fff;background-color:#4d90fe;background-image:-webkit-gradient(linear,left top,left bottom,from(#4d90fe),to(#4787ed));background-image: -webkit-linear-gradient(top,#4d90fe,#4787ed);background-image: -moz-linear-gradient(top,#4d90fe,#4787ed);background-image: -ms-linear-gradient(top,#4d90fe,#4787ed);background-image: -o-linear-gradient(top,#4d90fe,#4787ed);background-image: linear-gradient(top,#4d90fe,#4787ed);filter:progid:DXImageTransform.Microsoft.gradient(startColorStr='#4d90fe',EndColorStr='#4787ed')}.kd-button-submit:hover{border:1px solid #2f5bb7;color:#fff;background-color:#357ae8;background-image:-webkit-gradient(linear,left top,left bottom,from(#4d90fe),to(#357ae8));background-image: -webkit-linear-gradient(top,#4d90fe,#357ae8);background-image: -moz-linear-gradient(top,#4d90fe,#357ae8);background-image: -ms-linear-gradient(top,#4d90fe,#357ae8);background-image: -o-linear-gradient(top,#4d90fe,#357ae8);background-image: linear-gradient(top,#4d90fe,#357ae8);filter:progid:DXImageTransform.Microsoft.gradient(startColorStr='#4d90fe',EndColorStr='#357ae8')}.kd-button-share{color:#fff;text-shadow:0 1px rgba(0,0,0,0.1);border:1px solid #29691d;background-color:#3d9400;background-image:-webkit-gradient(linear,left top,left bottom,from(#3d9400),to(#398a00));background-image: -webkit-linear-gradient(top,#3d9400,#398a00);background-image: -moz-linear-gradient(top,#3d9400,#398a00);background-image: -ms-linear-gradient(top,#3d9400,#398a00);background-image: -o-linear-gradient(top,#3d9400,#398a00);background-image: linear-gradient(top,#3d9400,#398a00);filter:progid:DXImageTransform.Microsoft.gradient(startColorStr='#3d9400',EndColorStr='#398a00')}.kd-button-share:hover{border:1px solid #2D6200;color:#fff;text-shadow:0 1px rgba(0,0,0,0.3);background-color:#368200;background-image:-webkit-gradient(linear,left top,left bottom,from(#3d9400),to(#368200));background-image: -webkit-linear-gradient(top,#3d9400,#368200);background-image: -moz-linear-gradient(top,#3d9400,#368200);background-image: -ms-linear-gradient(top,#3d9400,#368200);background-image: -o-linear-gradient(top,#3d9400,#368200);background-image: linear-gradient(top,#3d9400,#368200);filter:progid:DXImageTransform.Microsoft.gradient(startColorStr='#3d9400',EndColorStr='#368200')}.kd-button-red{background-color:#d14836;background-image:-moz-linear-gradient(top,#dd4b39,#d14836);background-image: -ms-linear-gradient(top,#dd4b39,#d14836);background-image: -o-linear-gradient(top,#dd4b39,#d14836);background-image: -webkit-gradient(linear,left top,left bottom,from(#dd4b39),to(#d14836));background-image: -webkit-linear-gradient(top,#dd4b39,#d14836);background-image: linear-gradient(top,#dd4b39,#d14836);border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;border:1px solid transparent;color:#fff;filter:progid:DXImageTransform.Microsoft.gradient(startColorStr='#dd4b39',EndColorStr='#d14836');text-shadow:0 1px rgba(0,0,0,0.1);text-transform:uppercase}.kd-button-red:hover{background-color:#c53727;background-image:-moz-linear-gradient(top,#dd4b39,#c53727);background-image: -ms-linear-gradient(top,#dd4b39,#c53727);background-image: -o-linear-gradient(top,#dd4b39,#c53727);background-image: -webkit-gradient(linear,left top,left bottom,from(#dd4b39),to(#c53727));background-image: -webkit-linear-gradient(top,#dd4b39,#c53727);background-image: linear-gradient(top,#dd4b39,#c53727);border-bottom:1px solid #af301f;border:1px