// Copyright 2005 Microsoft Corporation
function ar(b){return b?b:window.event;}function aC(b){b.cancelBubble=true;}function G(b){b=ar(b);aC(b);return false;}function bm(b){var gj=0;if(b.pageX){gj=b.pageX;}else if(b.clientX){if(document.documentElement&&document.documentElement.scrollLeft){gj=b.clientX+document.documentElement.scrollLeft;}else if(document.body){gj=b.clientX+document.body.scrollLeft;}}return gj;}function ca(b){var gk=0;if(b.pageY){gk=b.pageY;}else if(b.clientY){if(document.documentElement&&document.documentElement.scrollTop){gk=b.clientY+document.documentElement.scrollTop;}else if(document.body){gk=b.clientY+document.body.scrollTop;}}return gk;}function kp(b){if(b.wheelDelta){return b.wheelDelta;}else if(b.detail){return-b.detail;}return 0;}function rD(b){if(!b){b=window.event;}var S=null;if(b.srcElement){S=b.srcElement;}else if(b.target){S=b.target;}if(S&&S.nodeType){if(S.nodeType==3){S=rk.parentNode;}}return S;}function hZ(cU){var cr=cU;var jg=0;while(cr){jg+=cr.offsetLeft;cr=cr.offsetParent;}if(navigator.userAgent.indexOf("Mac")!=-1&&typeof(document.body.leftMargin)!="undefined"){jg+=document.body.leftMargin;}return jg;}function gh(cU){var cr=cU;var iZ=0;while(cr){iZ+=cr.offsetTop;cr=cr.offsetParent;}if(navigator.userAgent.indexOf("Mac")!=-1&&typeof(document.body.topMargin)!="undefined"){iZ+=document.body.topMargin;}return iZ;}function ao(d){return Math.floor(d);}function cx(d){return Math.ceil(d);}function dM(d,f){return Math.max(d,f);}function dX(d,f){return Math.min(d,f);}function aZ(d){return Math.abs(d);}function aj(d){return Math.round(d);}function cv(aF){return aF*Math.PI/180.0;}function gL(oG){return oG*180.0/Math.PI;}function lS(ae,X){if(!ae||!X||ae[0].length!=X.length){return;}var p=ae.length;var q=X[0].length;var aW=new Array(p);var bc=X.length;for(var a=0;a<p;a++){aW[a]=new Array(q);for(var aa=0;aa<q;aa++){aW[a][aa]=0;for(var gu=0;gu<bc;gu++){aW[a][aa]+=ae[a][gu]*X[gu][aa];}}}return aW;}function RegisterNamespaces(){for(var a=0;a<arguments.length;a++){var gv=arguments[a].split(".");var gX=window;for(var aa=0;aa<gv.length;aa++){if(!gX[gv[aa]]){gX[gv[aa]]=new Object();}gX=gX[gv[aa]];}}}RegisterNamespaces("Msn.VE");
Msn.VE.MapControl=function(y,V){var eJ=20971520;var js=163840;var bJ=0;var dV=true;var cm=6;var mo=15;var mf=15;var bk=6378137;var fX=bk*2.0*Math.PI;var fC=fX*0.5;var fG=1;var fh=19;var ri="http://virtualearth.msn.com/i/spacer.gif";var jR=-85;var jW=85;var km=-180;var lO=180;var H=256;var ej=new Object();var oE=0;var om=0;var mj=1;var lP=1;var fZ=2;var nv=3;var fZ=11;var pX=20;var h=this;var cY='r';var eq='h';var eR='a';var aN='o';var c=new Msn.VE.MapView();var aw=new Msn.VE.MapView();var kP=1;var pw=null;var hY=15;var iM=cY;var d=0,f=0,q=0,p=0;var K=new Array();var cy=null;var L=0,J=0;var ag=0,af=0;var bR=0,bC=0;var cg=0,cj=0;var aA=0,cb=0;var cR=false;var iH=false;var iF=0,iC=0;var bf=false;var cG=0;var aR=false;var gB=0;var fA=0,fB=0;var eK=null,fH=null;var ak=new Array();var bj=new Array();var j=document.createElement("div");var bX=document.createElement("input");bX.id="wl_ve_mapInput";var di=null;var bI=null;var co=null;var R=null;var eB=null;var cE=null;var dD=null;var df=null;var dp=null;var z=null;var x=null;var hu=null;var dk=new Array();var ga=false;this.Init=function(){ej[cY]=15;ej[eR]=15;ej[eq]=15;ej[aN]=14;dp=new py();dp.Init();if(V.obliqueEnabled&&V.obliqueUrl){z=new qP();z.Init(V.obliqueUrl);}jj();j.className="Map";j.style.zIndex=mj;y.appendChild(j);bX.className="KeyboardInput";y.appendChild(bX);if(!V.fixedView){cE=new nu();cE.Init();dD=new oT();dD.Init();df=dD;y.attachEvent("onmousedown",dc);y.attachEvent("onmouseup",bs);y.attachEvent("onmousemove",cA);y.attachEvent("onmousewheel",er);y.attachEvent("ondblclick",mM);y.attachEvent("oncontextmenu",lH);bX.attachEvent("onkeydown",mL);bX.attachEvent("onkeyup",jl);if(window.addEventListener&&navigator.product&&navigator.product=="Gecko"){y.addEventListener("DOMMouseScroll",er,false);}bJ=H;}if(V.buffer!=undefined&&V.buffer!=null){bJ=V.buffer;}if(V.latitude&&V.longitude&&V.zoomlevel&&V.mapstyle){try{var gA=new Msn.VE.MapView();gA.SetMapStyle(lK(V.mapstyle),V.obliqueSceneId);gA.SetZoomLevel(eval(V.zoomlevel));gA.SetCenterLatLong(new Msn.VE.LatLong(eval(V.latitude),eval(V.longitude)));av(gA);}catch(dw){kX();}}else{kX();}if(!V.disableLogo){di=new oa(y);di.Init();}co=new nI(y);co.Init();if(V.showScaleBar){bI=new ov(y);bI.Init();eh("onendzoom",bI.Update);eh("onendcontinuouspan",bI.Update);eh("onresize",bI.Reposition);}if(V.showDashboard){pa(V.dashboardX,V.dashboardY,V.dashboardSize);}if(z&&x!=z){z.UpdateAvailability();}};this.GetDashboard=function(){return eB;};this.Destroy=function(){if(!V.fixedView){y.detachEvent("onmousedown",dc);y.detachEvent("onmouseup",bs);y.detachEvent("onmousemove",cA);y.detachEvent("onmousewheel",er);y.detachEvent("ondblclick",mM);y.detachEvent("oncontextmenu",lH);bX.detachEvent("onkeydown",mL);bX.detachEvent("onkeyup",jl);}while(K.length>0){var ad=K.pop();ad.RemoveFromMap();}K=null;while(ak.length){ak.pop().Destroy();}ak=null;ju();if(eB){eB.Destroy();eB=null;}if(R){R.detachEvent("onmousedown",G);R.detachEvent("onmouseup",G);R.detachEvent("onmousemove",G);R.detachEvent("onmousewheel",G);R.detachEvent("ondblclick",G);R.detachEvent("oncontextmenu",G);R.detachEvent("onkeydown",G);R.detachEvent("onkeyup",G);y.removeChild(R);R=null;}if(bI){ee("onendzoom",bI.Update);ee("onendcontinuouspan",bI.Update);ee("onresize",bI.Reposition);bI.Destroy();bI=null;}if(di){di.Destroy();di=null;}if(co){co.Destroy();co=null;}if(dp){dp.Destroy();dp=null;}if(z){z.Destroy();z=null;}if(cE){cE.Destroy();cE=null;}if(dD){dD.Destroy();dD=null;}mR();y=h=null;};function jj(){d=hZ(y);f=gh(y);q=y.offsetWidth;p=y.offsetHeight;}function pa(d,f,aY){if(!aY){aY=Msn.VE.DashboardSize.Normal;}if(aY==Msn.VE.DashboardSize.Tiny){aY=Msn.VE.DashboardSize.Small;}R=document.createElement("div");y.appendChild(R);R.className="Dashboard Dashboard_"+aY;R.style.top=f+"px";R.style.left=d+"px";R.attachEvent("onmousedown",G);R.attachEvent("onmouseup",G);R.attachEvent("onmousemove",G);R.attachEvent("onmousewheel",G);R.attachEvent("ondblclick",G);R.attachEvent("oncontextmenu",G);R.attachEvent("onkeydown",G);R.attachEvent("onkeyup",G);eB=new Msn.VE.Dashboard(R,h,aY);eB.Init();}function kX(){var e=new Msn.VE.MapView();e.SetCenterLatLong(new Msn.VE.LatLong(0.0,0.0));e.SetZoomLevel(1);e.SetMapStyle(cY);av(e);}function hn(B,I){var e=aw.MakeCopy();e.SetCenterLatLong(new Msn.VE.LatLong(B,I));av(e);}function ce(Z,bW,il){var e=c.MakeCopy();e.SetMapStyle(lK(Z),bW,il);if(c.mapStyle!=Z){if(Z==aN){e.SetZoomLevel(1);hY=c.zoomLevel;iM=c.mapStyle;}else if(c.mapStyle==aN){e.SetZoomLevel(hY);}}av(e);}function lK(Z){if(Z==eR||Z==eq||Z==aN){return Z;}else{return cY;}}function qL(){return c.latlong.latitude;}function oS(){return c.latlong.longitude;}function lV(pm){c.latlong=x.PixelToLatLong(c.center,c.zoomLevel);if(pm){aw.Copy(c);}if(z){z.UpdateAvailability();}}function ix(f){var l=new Msn.VE.Pixel(L+ag+q/2,J+af+f);var o=x.PixelToLatLong(l,c.zoomLevel);if(!o){return null;}return o.latitude;}function hF(d){var l=new Msn.VE.Pixel(L+ag+d,J+af+p/2);var o=x.PixelToLatLong(l,c.zoomLevel);if(!o){return null;}return o.longitude;}function hJ(B){var o=new Msn.VE.LatLong(B,c.center.longitude);var l=x.LatLongToPixel(o,c.zoomLevel);if(!l){return null;}return aj(l.y-J-af);}function hK(I){var o=new Msn.VE.LatLong(c.center.latitude,I);var l=x.LatLongToPixel(o,c.zoomLevel);if(!l){return null;}return aj(l.x-L-ag);}function cQ(o){var l=x.LatLongToPixel(o,c.zoomLevel);l.x-=L+ag;l.y-=J+af;return l;}function du(l){var pj=new Msn.VE.Pixel(l.x+L+ag,l.y+J+af);var o=x.PixelToLatLong(pj,c.zoomLevel);return o;}function qB(){return c.zoomLevel;}function oK(){return c.mapStyle;}function mJ(B,m){if(!B){B=c.latlong.latitude;}if(!m){m=c.zoomLevel;}return Math.cos(cv(B))*x.MetersPerPixel(m);}function qF(aJ,aH){if(!aJ||!aH||aJ<=0||aH<=0){return;}q=aJ;p=aH;y.style.width=q;y.style.height=p;pz(c);co.Reposition();if(di){di.Reposition();}ap("onresize");}function ps(){return z?z.IsAvailable():false;}function qJ(){return z?z.GetScene():null;}function re(ef){dV=ef;}function nw(){return dV;}function pJ(F){if(z){ce(aN,F,null);}}function ng(ea){if(z){ce(aN,null,ea);}}function ht(aF){ga=aF;for(var a=0;a<K.length;a++){K[a].Debug(aF);}}function nT(e,t){lT(e,t,0,0);}function lT(e,t,bp,bx){bp=ll(bp,q,e.center.x-q/2,e.zoomLevel,t.z1,t.x1,t.x2);bx=ll(bx,p,e.center.y-p/2,e.zoomLevel,t.z1,t.y1,t.y2);e.SetCenter(new Msn.VE.Pixel(e.center.x+bp,e.center.y+bx));}function ll(ct,aY,fK,m,mp,nR,pI){var ds=H*nR*Math.pow(2,m-mp);var aG=H*pI*Math.pow(2,m-mp);if(aY>(aG-ds)){return((aG-ds-aY)/2)-fK+ds;}else if(fK+ct<ds){return ds-fK;}else if(fK+aY+ct>aG){return aG-fK-aY;}return ct;}function nI(M){var au=document.createElement("div");var ah=document.createElement("div");var eL=13;this.Init=function(){au.className="Copyright CopyrightBackground";ah.className="Copyright CopyrightForeground";by();M.appendChild(au);M.appendChild(ah);};this.Destroy=function(){M.removeChild(au);M.removeChild(ah);au=ah=null;};function by(){au.style.top=(p-eL)+"px";au.style.left=(q-234)+"px";au.style.display="block";ah.style.top=(p-eL-1)+"px";ah.style.left=(q-235)+"px";ah.style.display="block";}function ci(){var k="&copy; 2005 Microsoft Corp";eL=13;if(c.zoomLevel>=5&&(c.mapStyle==cY||c.mapStyle==eq)){k+=" &nbsp; &copy; 2004 NAVTEQ";}if(c.mapStyle==eq||c.mapStyle==eR){k+="<br>";eL=21;if(c.zoomLevel<=8){k+="Image courtesy of NASA";}else if(c.zoomLevel<=13){k+="&copy; Harris Corp, Earthstar Geographics LLC";}else{k+="Image courtesy of USGS, Pictometry";}}else if(c.mapStyle==aN){k+="<br>Image courtesy of Pictometry";eL=21;}au.innerHTML=k;ah.innerHTML=k;by();}this.Reposition=by;this.Update=ci;}function ni(e,gt,fi){this.view=e;this.oblique=gt;this.error=fi;}function fL(o,m,fi){var e=c.MakeCopy();if(o!=undefined){e.latlong=o;}if(m!=undefined){e.zoomLevel=m;}if(fi==undefined){fi="";}var gt=null;if(z){gt=z.GetEventInfo();}return new ni(e,gt,fi);}function eh(aM,cX){var al=dk[aM];if(!al){al=new Array();dk[aM]=al;}for(var a=0;a<al.length;a++){if(al[a]==cX){return true;}}al.push(cX);}function ee(aM,cX){var al=dk[aM];if(!al){return;}for(var a=0;a<al.length;a++){if(al[a]==cX){al.splice(a,1);}}}function ap(aM,hH){var al=dk[aM];if(!al){return;}if(!hH){hH=fL();}for(var a=0;a<al.length;a++){al[a](hH);}}function mR(){while(dk.length){var al=dk.pop();while(al.length){al.pop();}al=null;}dk=null;}function mL(b){b=ar(b);var s=mo;var d=fA;var f=fB;switch(b.keyCode){case 9:if(aR&&iH){fa();}return true;case 37:d=-s;break;case 38:f=-s;break;case 39:d=s;break;case 40:f=s;break;case 107:case 187:case 61:case 43:d=0;f=0;gn();break;case 109:case 189:d=0;f=0;gK();break;case 65:d=0;f=0;ce(eR);break;case 72:d=0;f=0;ce(eq);break;case 82:case 86:d=0;f=0;ce(cY);break;case 66:case 79:d=0;f=0;ce(aN);break;default:return false;}if(d||f){hj(d,f,null,true);}return false;}function jl(b){b=ar(b);var d=fA;var f=fB;switch(b.keyCode){case 37:d=0;break;case 38:f=0;break;case 39:d=0;break;case 40:f=0;break;default:return false;}hj(d,f,null,true);return false;}var ey=0;var eD=0;var ex=0;var en=0;function pR(F,gl,gH,fl,dI,aS,cM,eb){if(F==null||gl==null||gH==null||cM==null||eb==null){return null;}var mB=new Array();for(var a=0;a<cM.length;a++){mB.push(ih(cM[a],0,cM[a].length-1));}var eC=new nY();eC.Init(F,gl,gH,fl,dI,aS,mB,eb);bj.push(eC);return eC;}function pe(F){for(var a=0;a<bj.length;a++){var eC=bj[a];if(eC.id==F){bj.splice(a,1);eC.Destroy();return;}}}function ju(){while(bj.length>0)bj.pop().Destroy();}function mP(){for(var a=0;a<bj.length;a++){bj[a].StartLine();bj[a].Show();}}function kZ(){for(var a=0;a<bj.length;a++){bj[a].Hide();}}function mV(){for(var a=0;a<bj.length;a++){bj[a].UpdateLine();}}function ih(fJ,dQ,fq){var iX=fq-dQ+1;if(iX<1){return null;}else if(iX==1){return fJ[dQ];}var dC=null;var dl=null;if(iX==2){dC=fJ[dQ];dl=fJ[fq];}else{var a=Math.round((dQ+fq)/2);dC=ih(fJ,dQ,a);dl=ih(fJ,a+1,fq);}if(dC!=null&&dl!=null){var bz=dC.boundingRectangle;var br=dl.boundingRectangle;var ey=bz[0].latitude>br[0].latitude?bz[0].latitude:br[0].latitude;var en=bz[0].longitude>br[0].longitude?bz[0].longitude:br[0].longitude;var eD=bz[1].latitude<br[1].latitude?bz[1].latitude:br[1].latitude;var ex=bz[1].longitude<br[1].longitude?bz[1].longitude:br[1].longitude;var ns=[new Msn.VE.LatLong(ey,en),new Msn.VE.LatLong(eD,ex)];return new Msn.VE.LineRegion(ns,null,[dC,dl]);}else if(dC!=null){return dC;}else if(dl!=null){return dl;}return null;}function nY(){var nH=6;var qj="#11DD11";var rs=4;var i=null;var ls="";var dd=true;var my="";var kb="";var aS=0;var qf=0;var qp=0;var qD=0;var os=0;var dv=null;var dB=null;var cM=null;var eb=null;var dQ=0;var fq=0;var dx=null;function ot(F,gl,gH,fl,dI,hM,nG,oM){if(!fl){fl=nH;}if(!dI){dI=qj;}if(!hM){hM=rr;}this.id=F;ls=F;my=fl+"pt";kb=dI;aS=hM;dv=gl;dB=gH;eb=oM;cM=nG;qf=dv[0];qp=dB[0];qD=dv[dv.length-1];os=dB[dB.length-1];dx=c.MakeCopy();ka();};function bZ(){cI();dv=dB=cM=i=dx=null;};function cI(){if(i&&i.parentNode==j){j.removeChild(i);}}function aP(){if(!dd){as();return;}if(i){i.style.display="block";}};function as(){if(i){i.style.display="none";}};function qA(ol){dd=ol;if(!dd){as();}}function ka(){kG();lz();dx.Copy(c);}function ow(){if(c.zoomLevel==dx.zoomLevel&&aZ((c.center.x-dx.center.x)/q)<0.25&&aZ((c.center.y-dx.center.y)/p)<0.25){return;}kG();lz();dx=c.MakeCopy();;}function kG(){var jZ=p<900?900:p;var jn=q<900?900:q;ey=ix(-0.5*jZ);eD=ix(1.5*jZ);ex=hF(-0.5*jn);en=hF(1.5*jn);}function lz(){if(c.mapStyle==aN){if(i&&i.parentNode==j){j.removeChild(i);}return;}var aT=new Array();var go=eb.length-1;while(eb[go]<c.zoomLevel&&go>=0){go--;}jx(cM[go],aT);oz(aT);}function jx(et,aT){if(oB(et.boundingRectangle[0],et.boundingRectangle[1])){return;}if(et.childRegions!=null){for(var a=0;a<et.childRegions.length;a++){jx(et.childRegions[a],aT);}}else{var cH=et.indices;var eI=new Msn.VE.LatLong(dv[cH[0]],dB[cH[0]]);var eH;var fv=false;if(fR(eI.latitude,eI.longitude)){var fr=x.LatLongToPixel(eI,c.zoomLevel);aT.push(fr.x-L);aT.push(fr.y-J);fv=true;}for(var fW=1;fW<cH.length;fW++){eH=new Msn.VE.LatLong(dv[cH[fW]],dB[cH[fW]]);if(fR(eH.latitude,eH.longitude)){if(!fv){var fr=x.LatLongToPixel(eI,c.zoomLevel);aT.push(fr.x-L);aT.push(fr.y-J);}fv=true;var fs=x.LatLongToPixel(eH,c.zoomLevel);aT.push(fs.x-L);aT.push(fs.y-J);}else if(fv){fv=false;var fs=x.LatLongToPixel(eH,c.zoomLevel);aT.push(fs.x-L);aT.push(fs.y-J);}eI=eH;}}}function oz(aT){if(i&&i.parentNode==j){j.removeChild(i);}i=document.createElement("v:polyline");i.id=ls;i.className="Line";i.points=aT.join(" ");i.filled="false";i.style.zIndex=aS;i.unselectable="on";if(dd){i.style.display="block";}else{i.style.display="none";}var dN=document.createElement("v:stroke");dN.setAttribute("weight",my);dN.setAttribute("joinstyle","round");dN.setAttribute("color",kb);dN.setAttribute("endcap","round");var kV="0.75";if(c.mapStyle=='r'){kV="0.5";}dN.setAttribute("opacity",kV);i.appendChild(dN);j.appendChild(i);}function fR(cJ,da){return cJ>=eD&&cJ<=ey&&da>=ex&&da<=en;}function oB(gz,fU){return((gz.latitude>ey&&fU.latitude>ey)||(gz.latitude<eD&&fU.latitude<eD)||(gz.longitude>en&&fU.longitude>en)||(gz.longitude<ex&&fU.longitude<ex));}this.Init=ot;this.Destroy=bZ;this.RemoveFromMap=cI;this.Show=aP;this.Hide=as;this.ChangeVisibility=qA;this.StartLine=ka;this.UpdateLine=ow;}function oa(M){var bT=null;this.Init=function(){if(navigator.userAgent.toLowerCase().indexOf("msie")!=-1){bT=document.createElement("div");bT.className="PoweredByLogo PoweredByLogo_ie";}else{bT=document.createElement("img");bT.src="i/logo_powered_by.png";bT.className="PoweredByLogo";}by();M.appendChild(bT);};this.Destroy=function(){M.removeChild(bT);bT=null;};function by(){bT.style.top=(p-40)+"px";bT.style.left="6px";bT.style.display="block";}function ci(){by();}this.Reposition=by;this.Update=ci;}function dc(b){b=ar(b);aC(b);if(bf){return false;}if(aR){fa();}if(z){z.CancelRequest();}if(b.which&&b.which==2){df=cE;}else if(!b.which&&b.button&&b.button==4){df=cE;}else if(b.altKey){df=cE;}cR=true;df.OnMouseDown(b);return false;}function cA(b){b=ar(b);aC(b);if(cR){df.OnMouseMove(b);}return false;}function bs(b){b=ar(b);aC(b);cR=false;df.OnMouseUp(b);df=dD;bX.focus();return false;}function mM(b){b=ar(b);aC(b);jj();if(aR||bf){return false;}var e=aw.MakeCopy();e.SetCenter(new Msn.VE.Pixel(L+ag+bm(b)-d,J+af+ca(b)-f));if(b.altKey){e.SetZoomLevel(c.zoomLevel-1);}else{e.SetZoomLevel(c.zoomLevel+1);}av(e);return false;}function er(b){b=ar(b);aC(b);if(aR||bf){return false;}var ct=kp(b);if(ct>0){gn();}else if(ct<0){gK();}return false;}function lH(b){b=ar(b);aC(b);var fD=L+ag+bm(b)-d;var fE=J+af+ca(b)-f;var gD=fL(x.PixelToLatLong(new Msn.VE.Pixel(fD,fE),c.zoomLevel));ap("oncontextmenu",gD);return false;}function gZ(bp,bx){if(bp==0&&bx==0){return;}lT(c,hu,bp,bx);ag=c.center.x-L-q/2;af=c.center.y-J-p/2;j.style.top=-af+"px";j.style.left=-ag+"px";co.Update();window.setTimeout(pn,1);window.setTimeout(mV,2);}function hj(bp,bx,eo,bX){if(bf){return;}if(!eo){eo=-1;}fA=bp;fB=bx;gB=eo;if(!bp&&!bx){fa();return;}iH=bX;if(!aR){aR=true;lW();ap("onstartcontinuouspan");}}function lW(){if(aR){gZ(fA,fB);if(gB>0)gB--;if(gB!=0)window.setTimeout(lW,10);else fa();}}function fa(){fA=0;fB=0;aR=false;iH=false;if(eK!=null&&fH!=null){var o=new Msn.VE.LatLong(eK,fH);var l=x.LatLongToPixel(o,c.zoomLevel);var aL=l.x-(L+ag+q/2);var aK=l.y-(J+af+p/2);gZ(aL,aK);c.latlong.latitude=eK;c.latlong.longitude=fH;aw.Copy(c);eK=null;fH=null;if(z){z.UpdateAvailability();}}else{lV(true);}ap("onendcontinuouspan");ap("onchangeview");}function mF(B,I){eK=B;fH=I;jt(x.LatLongToPixel(new Msn.VE.LatLong(B,I),c.zoomLevel));}function pz(e){jt(e.center);}function jt(l){if(c.mapStyle==aN){var g=z.GetScene();if(!g||!g.ContainsPixel(l,c.zoomLevel)){var e=aw.MakeCopy();e.sceneId=null;e.SetCenterLatLong(z.PixelToLatLong(l,c.zoomLevel));av(e);return;}}var aL=l.x-(L+ag+q/2);var aK=l.y-(J+af+p/2);var bh=Math.sqrt(aL*aL+aK*aK);if(!dV||aZ(aL)>2*q||aZ(aK)>2*p||bh>1.5*Math.sqrt(q*q+p*p)){var e=aw.MakeCopy();e.SetCenter(l);av(e);return;}var dF=Math.atan2(aK,aL);var eo=cx(bh/mf);var mI=aj(bh/eo);aL=aj(Math.cos(dF)*mI);aK=aj(Math.sin(dF)*mI);hj(aL,aK,eo);}function qh(F,cJ,da,q,p,is,iu,aS){var E=new pY();E.Init(F,cJ,da,q,p,is,iu,aS);ak.push(E);return E.pin;}function oH(F){for(var a=0;a<ak.length;a++){var jQ=ak[a];if(jQ.id==F){ak.splice(a,1);jQ.RemoveFromMap();return;}}}function mY(){while(ak.length>0)ak.pop().RemoveFromMap();}function qi(){for(var a=0;a<ak.length;a++){ak[a].Reposition();}}function pY(){var E=document.createElement("div");E.vePushpin=this;this.pin=E;var A=0,C=0,O=0,Q=0;var bS=null;var aJ=0;var aH=0;var aI=cm+1;var bi=new Array(aI);var bd=new Array(aI);this.Init=function(F,cJ,da,q,p,is,iu,aS){this.id=F;E.id=F;E.className=is;E.style.position="absolute";E.style.zIndex=aS;E.innerHTML=iu;if(!V.fixedView){E.attachEvent("ondblclick",jN);E.attachEvent("onmousewheel",er);}E.unselectable="on";bS=new Msn.VE.LatLong(cJ,da);aJ=q;aH=p;var l=x.LatLongToPixel(bS,c.zoomLevel);if(l){A=aj(l.x-L);C=aj(l.y-J);O=A;Q=C;cW();em(0);E.style.display="block";}else{E.style.display="none";}j.appendChild(E);};this.Destroy=function(){E.detachEvent("ondblclick",jN);E.detachEvent("onmousewheel",er);cI();E.vePushpin=null;E=null;this.pin=null;while(bi.length>0){bi.pop();}while(bd.length>0){bd.pop();}};this.GetLatitude=function(){return bS.latitude;};this.GetLongitude=function(){return bS.longitude;};function gV(){var aI=cm;for(var a=0;a<=aI;a++){bi[a]=A-aJ/2;bd[a]=C-aH/2;}}function cW(){var aI=cm;for(var a=0;a<=aI;a++){var ae=a/aI;var X=1.0-ae;bi[a]=ao(X*A+ae*O-aJ/2)+"px";bd[a]=ao(X*C+ae*Q-aH/2)+"px";}}function em(a){E.style.left=bi[a];E.style.top=bd[a];}function gI(){var S=0;S=A;A=O;O=S;S=C;C=Q;Q=S;}function by(){var l=x.LatLongToPixel(bS,c.zoomLevel);if(l){A=aj(l.x-L);C=aj(l.y-J);gV();em(0);E.style.display="block";}else{E.style.display="none";}}function mO(bH,bM,ba){A-=ag;C-=af;var l=x.LatLongToPixel(bS,ba);if(l){O=aj(l.x-bH);Q=aj(l.y-bM);cW();E.style.display="block";}else{E.style.display="none";}}function cI(){if(E.parentNode==j){j.removeChild(E);}}function jN(b){b=ar(b);aC(b);if(aR||bf){return false;}var e=aw.MakeCopy();e.SetCenterLatLong(bS);if(b.altKey){e.SetZoomLevel(c.zoomLevel-1);}else{e.SetZoomLevel(c.zoomLevel+1);}av(e);return false;}function er(b){b=ar(b);aC(b);if(aR||bf){return false;}var ct=kp(b);if(ct>0){gn();}else if(ct<0){gK();}return false;}this.ClearSteps=gV;this.PrecomputeSteps=cW;this.SetFactor=em;this.SwapStates=gI;this.Reposition=by;this.PrepareForZoom=mO;this.RemoveFromMap=cI;}function ov(M){var cZ=document.createElement("div");var cS=document.createElement("div");var cK=document.createElement("div");var dq=document.createElement("div");var lA=150;this.Init=function(){cZ.className="ScaleBarLabel ScaleBarLabelBackground";cS.className="ScaleBarLabel ScaleBarLabelForeground";cK.className="ScaleBar ScaleBarBackground";dq.className="ScaleBar ScaleBarForeground";ci();by();M.appendChild(cZ);M.appendChild(cS);M.appendChild(cK);M.appendChild(dq);};this.Destroy=function(){M.removeChild(cZ);M.removeChild(cS);M.removeChild(cK);M.removeChild(dq);cZ=cS=cK=ro=null;};function by(){cZ.style.top=(p-45)+"px";cZ.style.left=(q-160)+"px";cZ.style.display="block";cS.style.top=(p-46)+"px";cS.style.left=(q-161)+"px";cS.style.display="block";cK.style.top=(p-30)+"px";cK.style.left=(q-160)+"px";cK.style.display="block";dq.style.top=(p-31)+"px";dq.style.left=(q-161)+"px";dq.style.display="block";}function rp(fp){return fp*0.001;}function qY(fp){return fp*0.000621371192;}function qr(fp){return fp*1.0936133;}function ci(){try{var cl=mJ();var jF=cl*lA;var fQ="mi";var fT=qY(jF);var gW=lu(fT);if(gW<0.5){fQ="yds";fT=qr(jF);gW=lu(fT);}pq("us",fQ,gW,Math.round(gW/fT*lA));}catch(dw){}}function lu(ki){var nl=Math.log(ki)/Math.log(10);var oW=Math.floor(nl);var jc=Math.pow(10,oW);var kc=ki/jc;var lt=Math.floor(kc);if(lt>=3.0){return lt*jc;}var oi=Math.floor(kc*2.0)*0.5;return oi*jc;}function pq(rC,fQ,dR,q){if(dR<1){dR=dR.toFixed(1);}var jD=dR+" "+fQ;cZ.innerHTML=jD;cS.innerHTML=jD;cK.style.width=q;dq.style.width=q;}this.Update=ci;this.Reposition=by;}var ij=0;var fY=0;var le=0;var ev=new Array();ev[cY]=[175,525];ev[eR]=[250,750];ev[eq]=[300,900];ev[aN]=[450,1350];var bP=[0,0,0];function fz(d,f,bc,s){var S=new nJ();S.Init(d,f,bc,s,(d*H-L),(f*H-J));return S;}function kF(ku){while(ku.length>0){var ad=ku.pop();ad.Destroy();ad=null;}}function or(){var hB=0;for(var a=0;a<bP.length;a++){hB+=bP[a];}if(hB==0){return bP;}var md=new Array(bP.length);for(var a=0;a<bP.length;a++){md[a]=bP[a]/hB;}return md;}function nr(){for(var a=0;a<bP.length;a++){bP[a]=0;}}function pu(){return le/fY;}function nJ(){var aU=null;var at=null;var bA=document.createElement("div");var W=0;var ac=0;var eQ=0;var Z=0;var aS=0;var aI=cm+1;var bi=new Array(aI);var bd=new Array(aI);var ei=new Array(aI);var es=new Array(aI);var ho=false;var A=0,C=0,cC=0,cV=0;var O=0,Q=0,ec=0,ek=0;var hV=null;this.Init=function(pT,pS,oJ,qn,d,f){W=pT;ac=pS;eQ=oJ;Z=qn;bA.style.font="7pt Verdana, sans-serif";bA.style.color="Red";bA.style.backgroundColor="White";if(!x.IsValidTile(W,ac,eQ)){return;}hN(d,f,H,H);jo(d,f,H,H);cW();at=new Image();at.onload=nf;at.onerror=Error;hV=new Date();at.src=x.GetFilename(W,ac,eQ);};this.Destroy=function(){cI();while(bi.length>0){bi.pop();}while(bd.length>0){bd.pop();}while(ei.length>0){ei.pop();}while(es.length>0){es.pop();}bi=bd=ei=es=null;};function hN(d,f,aJ,aH){A=d;C=f;cC=aJ;cV=aH;}this.SetCurrentState=hN;function jo(d,f,aJ,aH){O=d;Q=f;ec=aJ;ek=aH;}this.SetNextState=jo;function gV(){for(var a=0;a<=cm;a++){bi[a]=A+"px";bd[a]=C+"px";ei[a]=cC+"px";es[a]=cV+"px";}}this.ClearSteps=gV;function cW(){for(var a=0;a<=cm;a++){var ae=a/cm;var X=1.0-ae;bi[a]=ao(X*A+ae*O)+"px";bd[a]=ao(X*C+ae*Q)+"px";ei[a]=cx(X*cC+ae*ec)+"px";es[a]=cx(X*cV+ae*ek)+"px";}}this.PrecomputeSteps=cW;function em(a){if(aU==null||(bf&&!ho)){return;}var dg=aU.style;dg.left=bi[a];dg.top=bd[a];dg.width=ei[a];dg.height=es[a];var gQ=bA.style;if(ga&&a==0){dg.border="1px dashed red";gQ.left=bi[a];gQ.top=bd[a];}if(aU.parentNode!=j){dg.position="absolute";dg.cursor="pointer";dg.zIndex=aS;j.appendChild(aU);if(ga&&bA.parentNode!=j){var cn=aU.src;bA.innerHTML=cn.substring(cn.lastIndexOf("/")+1,cn.lastIndexOf("."));gQ.position="absolute";gQ.zIndex=(aS+1);j.appendChild(bA);}}}this.SetFactor=em;function gI(){var S=0;S=A;A=O;O=S;S=C;C=Q;Q=S;S=cC;cC=ec;ec=S;S=cV;cV=ek;ek=S;}this.SwapStates=gI;function cI(){if(at){at.onload=null;at.onerror=null;at=null;}if(aU){if(aU.parentNode==j){j.removeChild(aU);}aU=null;}if(bA){if(bA.parentNode==j){j.removeChild(bA);}bA=null;}}this.RemoveFromMap=cI;function nf(){if(eQ!=c.zoomLevel||at==null){return;}var iT=new Date();var eG=iT.getTime()-hV.getTime();jU(eG);ij+=eG;fY++;if(ga){window.status="last="+eG+", average="+(ij/fY);}at.onload=null;at.onerror=null;aU=at;at=null;if(!bf){em(cG);}}function Error(){if(eQ!=c.zoomLevel||at==null){return;}var iT=new Date();var eG=iT.getTime()-hV.getTime();jU(eG);ij+=eG;fY++;le++;at.onload=null;at.onerror=null;at=null;}function jU(qx){for(var a=0;a<ev[Z].length;a++){if(qx<ev[Z][a]){bP[a]++;return;}}bP[bP.length-1]++;}function pg(cN,cz,dG,bH,bM,ba){hN(A-ag,C-af,cC,cV);var iU=ba-dG;var T=Math.pow(2,iU);O=ao((cN+A)*T-bH);Q=ao((cz+C)*T-bM);ec=cx((cN+A+cC)*T-bH)-O;ek=cx((cz+C+cV)*T-bM)-Q;ho=true;cW();aS=fZ;if(aU!=null){aU.style.zIndex=aS;}}this.PrepareBaseTile=pg;function nD(cN,cz,dG,bH,bM,ba){var iU=dG-ba;var T=Math.pow(2,iU);O=ao((bH+A)*T-cN);Q=ao((bM+C)*T-cz);ec=cx((bH+A+cC)*T-cN)-O;ek=cx((bM+C+cV)*T-cz)-Q;var mn=cx(aA*0.25);var jK=cx(cb*0.25);ho=ba<dG&&(W<bR+mn||W>cg-mn||ac<bC+jK||ac>cj-jK);gI();cW();aS=lP;}this.PrepareSwapTile=nD;function ht(aF){if(aU!=null){aU.style.border=aF?"1px dashed red":"0px";}bA.style.display=aF?"block":"none";}this.Debug=ht;}function mh(){kF(K);j.style.top="0px";j.style.left="0px";L=aj(c.center.x-q/2);J=aj(c.center.y-p/2);ag=0;af=0;bR=ao((L-bJ)/H);bC=ao((J-bJ)/H);cg=ao((L+q+bJ)/H);cj=ao((J+p+bJ)/H);aA=cg-bR+1;cb=cj-bC+1;for(var f=bC;f<=cj;f++){for(var d=bR;d<=cg;d++){var ad=fz(d,f,c.zoomLevel,c.mapStyle);K.push(ad);}}}function pn(){if(bf){return;}var jv=L+ag;var jq=J+af;var A=ao((jv-bJ)/H);var C=ao((jq-bJ)/H);var O=ao((jv+q+bJ)/H);var Q=ao((jq+p+bJ)/H);while(bR<A){for(var f=cb-1;f>=0;f--){var ad=K.splice(f*aA,1)[0];ad.RemoveFromMap();}bR++;aA--;}while(bR>A){bR--;aA++;for(var f=0;f<cb;f++){var ad=fz(bR,bC+f,c.zoomLevel,c.mapStyle);K.splice(f*aA,0,ad);}}while(bC<C){for(var d=0;d<aA;d++){var ad=K.shift();ad.RemoveFromMap();}bC++;cb--;}while(bC>C){bC--;cb++;for(var d=aA-1;d>=0;d--){var ad=fz(bR+d,bC,c.zoomLevel,c.mapStyle);K.unshift(ad);}}while(cg>O){for(var f=cb-1;f>=0;f--){var ad=K.splice(f*aA+aA-1,1)[0];ad.RemoveFromMap();}cg--;aA--;}while(cg<O){cg++;aA++;for(var f=0;f<cb;f++){var ad=fz(cg,bC+f,c.zoomLevel,c.mapStyle);K.splice(f*aA+aA-1,0,ad);}}while(cj>Q){for(var d=0;d<aA;d++){var ad=K.pop();ad.RemoveFromMap();}cj--;cb--;}while(cj<Q){cj++;cb++;for(var d=0;d<aA;d++){var ad=fz(bR+d,cj,c.zoomLevel,c.mapStyle);K.push(ad);}}}function av(v){if(bf||aR||cR){return;}var dZ=v.latlong;if(v.GetViewType()=="latlongRect"){dZ=v.latlongRect.Center();}if(v.mapStyle==aN){if(z==null){return;}aw.Copy(v);x=z;y.style.backgroundColor="black";v.Resolve(x,q,p);var g=z.GetScene();if((!g||g.GetID()!=v.sceneId)&&v.sceneId!=null){z.RequestScene(v.sceneId);return;}if(!g||(!g.ContainsLatLong(dZ,v.zoomLevel)&&g.GetID()!=v.sceneId)||g.GetOrientation()!=v.sceneOrientation){z.RequestSceneAtLatLong(dZ,v.sceneOrientation,true);return;}}else{x=dp;if(v.mapStyle=='r'){y.style.backgroundColor="#e9e7d4";}else{y.style.backgroundColor="black";}v.Resolve(x,q,p);}dZ=v.latlong;aw.Copy(v);x.ValidateZoomLevel(v);hu=x.GetBounds(v);nT(v,hu);v.Resolve(x,q,p);if(v.Equals(c)){return;}var bp=v.GetX(c.zoomLevel)-c.center.x;var bx=v.GetY(c.zoomLevel)-c.center.y;var bh=Math.sqrt(bp*bp+bx*bx);var qV=(bh<q&&bh<p)&&(v.zoomLevel==c.zoomLevel)&&dV&&(v.mapStyle==c.mapStyle)&&(v.sceneId==null||v.sceneId==c.sceneId);if(qV){mF(dZ.latitude,dZ.longitude);return;}kP=c.zoomLevel;if(c.zoomLevel!=v.zoomLevel){ap("onstartzoom");bf=true;}var na=(bh<q&&bh<p)&&(v.zoomLevel==c.zoomLevel-1||v.zoomLevel==c.zoomLevel+1)&&dV&&(v.mapStyle==c.mapStyle)&&(v.sceneId==null||v.sceneId==c.sceneId);if(na){var cN=L+ag;var cz=J+af;var dG=c.zoomLevel;var ba=v.zoomLevel;var bH=aj(v.center.x-q/2);var bM=aj(v.center.y-p/2);cy=K;K=new Array();for(var a=0;a<cy.length;a++){cy[a].PrepareBaseTile(cN,cz,dG,bH,bM,ba);}for(var a=0;a<ak.length;a++){ak[a].PrepareForZoom(bH,bM,ba);}kZ();c.Destroy();c=v;mh();for(var a=0;a<K.length;a++){K[a].PrepareSwapTile(cN,cz,dG,bH,bM,ba);}cG=1;jH();return;}cy=K;K=new Array();c.Destroy();c=v;kZ();mh();ma();qi();}function jH(){if(!bf){return;}for(var a=0;a<cy.length;a++){cy[a].SetFactor(cG);}for(var a=0;a<K.length;a++){K[a].SetFactor(cG);}for(var a=0;a<ak.length;a++){ak[a].SetFactor(cG);}if(cG<cm){cG++;window.setTimeout(jH,1);}else{cG=0;ma();}}function ma(){kF(cy);cy=null;bf=false;for(var a=0;a<K.length;a++){K[a].SwapStates();K[a].ClearSteps();K[a].SetFactor(0);}for(var a=0;a<ak.length;a++){ak[a].SwapStates();ak[a].ClearSteps();ak[a].SetFactor(0);}ru=null;rj=null;window.setTimeout(mP,250);if(co){co.Update();}if(pw!=c.mapStyle){ap("onchangemapstyle");}if(kP!=c.zoomLevel){ap("onendzoom");}ap("onchangeview");if(z){window.setTimeout(z.UpdateAvailability,100);}try{CollectGarbage();}catch(dw){}}function lG(oA,nZ,oU,ob){var e=aw.MakeCopy();e.sceneId=null;e.SetLatLongRectangle(new Msn.VE.LatLongRectangle(new Msn.VE.LatLong(oA,nZ),new Msn.VE.LatLong(oU,ob)));av(e);}function kQ(cu){if(!cu||cu.constructor!=Array){return;}var ae=cu[0].latitude;var X=cu[0].longitude;var k=ae;var aF=X;for(var a=1;a<cu.length;a++){ae=dX(ae,cu[a].latitude);X=dX(X,cu[a].longitude);k=dM(k,cu[a].latitude);aF=dM(aF,cu[a].longitude);}var jB=(k-ae)*0.1;var jX=(aF-X)*0.1;ae-=jB;X-=jX;k+=jB;aF+=jX;lG(jC(ae),lN(X),jC(k),lN(aF));}function nt(B,I){var o=new Msn.VE.LatLong(B,I);if(c.mapStyle==aN){var g=z.GetScene();if(!g||!g.ContainsLatLong(o)){ce(iM);}}kQ(new Array(c.latlong,o));}function jC(B){return kn(B,jR,jW);}function lN(I){return kn(I,km,lO);}function kn(aI,lI,kl){if(aI<lI){return lI;}if(aI>kl){return kl;}return aI;}function rc(){var d=null;try{d=new ActiveXObject("Msxml2.XMLHTTP");}catch(dw){try{d=new ActiveXObject("Microsoft.XMLHTTP");}catch(dw){d=null;}}if(!d&&typeof XMLHttpRequest!="undefined"){d=new XMLHttpRequest();}return d;}function qv(m){var e=aw.MakeCopy();e.SetZoomLevel(m);av(e);}function gn(){var e=aw.MakeCopy();e.SetZoomLevel(c.zoomLevel+1);av(e);}function gK(){var e=aw.MakeCopy();e.SetZoomLevel(c.zoomLevel-1);av(e);}function qZ(B,I,m){var e=aw.MakeCopy();e.sceneId=null;e.SetCenterLatLong(new Msn.VE.LatLong(B,I));e.SetZoomLevel(m);av(e);}function qP(){var g=null;var bn=false;var hc=false;var bt=null;var ib=null;var gi=false;var fu=null;var dL=-1;var t=['02121222233','02121222322','02121222323','02121222332','02121222333','02121223222','02121223223','02121223232','02123000101','02123000103','02123000110','02123000111','02123000112','02123000113','02123000130','02123000131','02123001000','02123001001','02123001002','02123001003','02123001010','02123001012','02123001020','02123001021','02123001030','02123002113','02123002131','02123002133','02123002311','02123002313','02123003002','02123003003','02123003012','02123003020','02123003021','02123003022','02123003023','02123003030','02123003032','02123003200','02123003201','02123003202','02123003210','02133333112','02133333121','02133333122','02133333123','02133333130','02133333131','02133333132','02133333133','02133333201','02133333203','02133333210','02133333211','02133333212','02133333213','02133333300','02133333301','02133333302','02133333303','02133333310','02301020311','02301020313','02301020331','02301020332','02301020333','02301021013','02301021021','02301021022','02301021023','02301021030','02301021031','02301021032','02301021033','02301021122','02301021200','02301021201','02301021202','02301021203','02301021210','02301021211','02301021212','02301021213','02301021222','02301021300','02301022110','02301022111','02301031102','02301031103','02301031120','02301031121','02301031131','02301031133','02301120020','02301120022','02301213211','02301213213','02301213300','02301213301','02301213302','02301213303','02301213310','02301213311','02301213312','02301213313','02301213320','02301213321','02301213322','02301213323','02301213330','02301213331','02301213332','02301213333','02301231013','02301231031','02301231100','02301231101','02301231102','02301231103','02301231110','02301231111','02301231112','02301231113','02301231120','02301231121','02301231130','02301231131','02301231132','02301231133','02301231310','02301231311','02301300230','02301300231','02301300232','02301300233','02301300302','02301300320','02301301131','02301301133','02301301332','02301301333','02301302123','02301302132','02301302133','02301302200','02301302201','02301302202','02301302203','02301302210','02301302211','02301302212','02301302213','02301302220','02301302221','02301302221','02301302222','02301302223','02301302230','02301302231','02301302232','02301302233','02301302300','02301302301','02301302302','02301302303','02301302310','02301302311','02301302312','02301302313','02301302320','02301302321','02301302322','02301302323','02301302330','02301302331','02301302332','02301302333','02301303021','02301303022','02301303110','02301303111','02301303200','02301303201','02301310020','02301310021','02301310022','02301310023','02301310200','02301310201','02301312033','02301312211','02301312300','02301312302','02301312320','02301312321','02301312332','02301320000','02301320001','02301320002','02301320003','02301320010','02301320011','02301320012','02301320013','02301320020','02301320021','02301320022','02301320023','02301320030','02301320031','02301320032','02301320033','02301320100','02301320101','02301320102','02301320103','02301320110','02301320111','02301320112','02301320113','02301320120','02301320121','02301320130','02301320200','02301320201','02301320203','02301320210','02301320211','02301320212','02301320213','02301320230','02301320231','02301320300','02301321001','02301321002','02301321003','02301321010','02301321011','02301321012','02301321013','02301321100','02301321101','02301321102','02301321103','02301330011','02301330100','02301330101','02301330102','02301330103','02301330110','02310103023','02310103030','02310103031','02310103032','02310103033','02310103120','02310103122','02310103203','02310103210','02310103211','02310103212','02310103213','02310103300','02310103302','02310210322','02310210323','02310210332','02310210333','02310211203','02310211212','02310211213','02310211221','02310211222','02310211223','02310211230','02310211231','02310211232','02310211233','02310211302','02310211303','02310211320','02310211321','02310211322','02310212011','02310212100','02310212101','02310212110','02310212111','02310212112','02310212130','02310212132','02310213000','02310213001','02310213002','02310213003','02310213010','02310213011','02310213012','02310213100','02310213112','02310213113','02310213130','02310213131','02310213132','02310213133','02310213311','02310223202','02310223203','02310223220','02310223221','02310302002','02310302003','02310302012','02310302013','02310302020','02310302021','02310302022','02310302023','02310302030','02310302031','02310302032','02310302033','02310302120','02310302121','02310302122','02310302123','02310302200','02310302201','02310302210','02310302211','02310302212','02310302213','02310302230','02310302231','02310302232','02310302233','02310302300','02310302301','02310302302','02310302320','02311102213','02311102231','02311102302','02311102303','02311102320','02311102321','02311102323','02311102332','02311102333','02311103222','02311120101','02311120103','02311120110','02311120111','02311120112','02311120113','02311120121','02311120130','02311120131','02311121000','02311121002','02311121020','02311231220','02311231221','02311231222','02311231223','02311231230','02311231231','02311231232','02311231233','02311231320','02311231322','02311232023','02311232032','02311232033','02311232122','02311232201','02311232210','02311232211','02311232212','02311232213','02311232230','02311232231','02311232300','02311232302','02311233000','02311233001','02311233002','02311233003','02311233010','02311233011','02311233012','02311233013','02311233100','02311233102','02311300131','02311300132','02311300133','02311300310','02311300311','02311300312','02311300313','02311300331','02311301020','02311301021','02311301022','02311301023','02311301200','02311301201','02311301202','02311301203','02313032013','02313032030','02313032031','02313032032','02313032033','02313032120','02313032121','02313032122','02313032123','02313032130','02313032131','02313032132','02313032133','02313032210','02313032211','02313032300','02313032301','02313032310','02313032311','02313102232','02313102233','02313102332','02313102333','02313113033','02313113122','02313113210','02313113211','02313113212','02313113213','02313113300','02313113302','02313113311','02313113313','02313120010','02313120011','02313120012','02313120013','02313120030','02313120031','02313120032','02313120100','02313120101','02313120102','02313120103','02313120110','02313120120','02313210211','02313210213','02313210231','02313210300','02313210301','02313210302','02313210303','02313210310','02313210311','02313210312','02313210313','02313210320','02313210321','02313210322','02313210323','02313210330','02313210331','02313210332','02313210333','03022220013','03022220031','03022220033','03022220102','03022220103','03022220112','03022220113','03022220120','03022220121','03022220122','03022220123','03022220130','03022220131','03022220132','03022220133','03022220211','03022220300','03022220301','03022220310','03022220311','03022313313','03022313330','03022313331','03022313332','03022313333','03022322030','03022322031','03022322032','03022322033','03022322120','03022322121','03022322122','03022322123','03022322130','03022322132','03022322210','03022322211','03022323021','03022323022','03022323023','03022323123','03022323200','03022323201','03022323202','03022323203','03022323210','03022323211','03022323212','03022323213','03022323231','03022323233','03022323300','03022323301','03022323302','03022323303','03022323312','03022323320','03022323321','03022323322','03022330332','03022330333','03022331110','03022331111','03022331113','03022331123','03022331130','03022331131','03022331132','03022331133','03022331220','03022331221','03022331222','03022331223','03022331230','03022331232','03022331301','03022331310','03022331311','03022332003','03022332012','03022332013','03022332020','03022332021','03022332022','03022332023','03022332030','03022332031','03022332032','03022332033','03022332101','03022332103','03022332110','03022332111','03022332112','03022332113','03022332200','03022332201','03022332202','03022332203','03022332210','03022332211','03022332212','03022332213','03022332231','03022332232','03022332233','03022332320','03022332321','03022332322','03022332323','03022333000','03022333001','03022333002','03022333003','03022333010','03022333011','03022333012','03022333013','03023202202','03023202203','03023202212','03023202213','03023202220','03023202221','03023202222','03023202223','03023202230','03023202231','03023202232','03023202233','03023202302','03023202303','03023202320','03023202321','03023202322','03023202323','03023202330','03023202331','03023202332','03023202333','03023203213','03023203231','03023203233','03023203302','03023203320','03023203321','03023203322','03023203323','03023203330','03023203331','03023203332','03023203333','03023212222','03023212233','03023220000','03023220001','03023220002','03023220003','03023220010','03023220011','03023220012','03023220013','03023220020','03023220021','03023220022','03023220023','03023220030','03023220031','03023220032','03023220033','03023220100','03023220101','03023220102','03023220103','03023220110','03023220111','03023220112','03023220113','03023220120','03023220122','03023220130','03023220131','03023220132','03023220133','03023220200','03023220201','03023220210','03023220211','03023220212','03023220213','03023220230','03023220231','03023220232','03023220233','03023220300','03023220301','03023220302','03023220303','03023220310','03023220311','03023220312','03023220313','03023220320','03023220321','03023220322','03023220323','03023220330','03023220331','03023220332','03023220333','03023221000','03023221001','03023221002','03023221003','03023221010','03023221011','03023221012','03023221013','03023221020','03023221021','03023221022','03023221023','03023221030','03023221031','03023221032','03023221033','03023221100','03023221101','03023221102','03023221103','03023221110','03023221111','03023221112','03023221113','03023221120','03023221121','03023221122','03023221123','03023221130','03023221131','03023221132','03023221200','03023221201','03023221202','03023221203','03023221210','03023221211','03023221220','03023221221','03023221222','03023221223','03023221230','03023221232','03023221300','03023221303','03023221312','03023221313','03023221320','03023221321','03023221322','03023221323','03023221330','03023221331','03023221332','03023221333','03023222010','03023222011','03023222100','03023222101','03023222110','03023222111','03023223000','03023223001','03023223010','03023223100','03023223101','03023223110','03023223111','03023230000','03023230002','03023230020','03023231130','03023231131','03023231132','03023231133','03023231310','03023231311','03023231312','03023231313','03023231321','03023231323','03023231330','03023231331','03023231332','03023231333','03023233101','03023233110','03023233111','03023233212','03023233213','03023233221','03023233223','03023233230','03023233231','03023233232','03023233233','03023320020','03023320021','03023320022','03023320023','03023320030','03023320031','03023320032','03023320033','03023320120','03023320121','03023320122','03023320123','03023320130','03023320131','03023320132','03023320133','03023320200','03023320201','03023320202','03023320203','03023320210','03023320211','03023320212','03023320213','03023320220','03023320221','03023320222','03023320223','03023320230','03023320231','03023320232','03023320233','03023320300','03023320301','03023320302','03023320303','03023320310','03023320311','03023320312','03023320313','03023320320','03023320321','03023320322','03023320323','03023320330','03023320331','03023320332','03023320333','03023321003','03023321013','03023321020','03023321021','03023321022','03023321023','03023321030','03023321031','03023321032','03023321033','03023321102','03023321103','03023321120','03023321121','03023321122','03023321123','03023321130','03023321132','03023321200','03023321201','03023321202','03023321203','03023321210','03023321211','03023321212','03023321213','03023321220','03023321221','03023321222','03023321223','03023321230','03023321231','03023321232','03023321233','03023321300','03023321301','03023321302','03023321320','03023321321','03023321322','03023321323','03023321332','03023322000','03023322001','03023322010','03023322011','03023322100','03023322101','03023322110','03023322111','03023323000','03023323001','03023323002','03023323003','03023323010','03023323011','03023323012','03023323013','03023323020','03023323021','03023323023','03023323030','03023323031','03023323032','03023323033','03023323100','03023323101','03023323102','03023323103','03023323110','03023323112','03023323113','03023323120','03023323121','03023323122','03023323123','03023323130','03023323131','03023323132','03023323133','03023323201','03023323210','03023323211','03023323300','03023323301','03023323302','03023323303','03023323310','03023323311','03023323312','03023323313','03023330222','03023330223','03023332000','03023332001','03023332002','03023332003','03023332010','03023332012','03023332020','03023332021','03023332022','03023332023','03023332030','03023332032','03023332201','03023332202','03023332203','03023332212','03023332220','03023332221','03200000320','03200000321','03200000322','03200000323','03200000330','03200000331','03200000332','03200000333','03200002100','03200002101','03200002102','03200002103','03200002110','03200002111','03200002112','03200002113','03200002120','03200002121','03200002130','03200010303','03200010312','03200010313','03200010321','03200010322','03200010323','03200010330','03200010331','03200010332','03200010333','03200011233','03200011322','03200011323','03200012100','03200012101','03200012102','03200012103','03200012110','03200012111','03200012112','03200012113','03200012120','03200012121','03200012130','03200012131','03200013011','03200013013','03200013100','03200013101','03200013102','03200013103','03200013131','03200013301','03200013303','03200013310','03200013311','03200013312','03200013313','03200013330','03200013331','03200023130','03200023131','03200023132','03200023133','03200023311','03200031310','03200031311','03200031312','03200031313','03200031330','03200031331','03200031333','03200032020','03200032021','03200032022','03200032023','03200032200','03200032201','03200100311','03200100312','03200100313','03200100322','03200100323','03200100330','03200100331','03200100332','03200101202','03200101220','03200102020','03200102021','03200102022','03200102023','03200102030','03200102032','03200102100','03200102101','03200102102','03200102103','03200102110','03200102112','03200102200','03200102201','03200102202','03200102210','03200102220','03200110010','03200110011','03200110100','03200110101','03200120122','03200120123','03200120132','03200120200','03200120202','03200120220','03200120222','03200120300','03200120301','03200120302','03200120303','03200120310','03200120312','03200203001','03200203003','03200203010','03200203011','03200203012','03200203013','03200203021','03200203023','03200203030','03200203031','03200203032','03200203033','03200213103','03200213112','03200213113','03200213121','03200213123','03200213130','03200213131','03200213132','03200213133','03200230101','03200230102','03200230103','03200230110','03200230111','03200230112','03200230113','03200230120','03200230121','03200230130','03200230131','03200230132','03200231002','03200231020','03200231103','03200231112','03200231113','03200231121','03200231123','03200231130','03200231131','03200231132','03200231133','03200231301','03200231303','03200231310','03200231311','03200231312','03200231313','03200232120','03200232121','03200232122','03200232123','03200232130','03200232131','03200232132','03200232133','03200232300','03200232301','03200232310','03200232311','03200232312','03200302002','03200302020','03200302022','03200302222','03200302223','03200302232','03200320000','03200320001','03200320002','03200320003','03200320010','03200320012','03200320013','03200320020','03200320021','03200320022','03200320023','03200320030','03200320031','03200320032','03200320200','03200320201','03200320210','03200332203','03200332212','03200332220','03200332221','03200332222','03200332223','03200332230','03200332231','03200332232','03200332233','03200332322','03201000333','03201001212','03201001213','03201001220','03201001221','03201001222','03201001223','03201001230','03201001231','03201001232','03201001233','03201001320','03201001322','03201001323','03201002111','03201002113','03201002311','03201002312','03201002313','03201002331','03201002332','03201002333','03201003000','03201003001','03201003002','03201003003','03201003010','03201003011','03201003012','03201003013','03201003033','03201003100','03201003101','03201003102','03201003103','03201003110','03201003112','03201003122','03201003200','03201003201','03201003202','03201003203','03201003211','03201003212','03201003220','03201003221','03201003222','03201003223','03201003230','03201003231','03201003232','03201003233','03201003300','03201003302','03201010231','03201010233','03201010320','03201010321','03201010322','03201010323','03201011001','03201011002','03201011003','03201011010','03201011011','03201011012','03201011013','03201011020','03201011021','03201011023','03201011030','03201011031','03201011032','03201011033','03201011100','03201011101','03201011102','03201011103','03201011110','03201011112','03201011120','03201011121','03201011122','03201011123','03201011130','03201012011','03201012100','03201012101','03201012112','03201012113','03201012121','03201012123','03201012130','03201012131','03201012132','03201012133','03201012301','03201012303','03201012310','03201012311','03201012312','03201012313','03201012321','03201012323','03201012330','03201012332','03201013020','03201013022','03201013023','03201013200','03201020111','03201020132','03201020133','03201021000','03201021001','03201021002','03201021003','03201021010','03201021011','03201021012','03201021013','03201021031','03201022110','03201022111','03201022112','03201022113','03201022130','03201022131','03201023303','03201023312','03201023313','03201023320','03201023321','03201023322','03201023323','03201023330','03201023331','03201023332','03201023333','03201032220','03201032222','03201201100','03201201101','03201201110','03201201111','03201210000','03202002022','03202002023','03202002032','03202002200','03202002201','03202002202','03202002210','03202010333','03202011222','03202011223','03202011232','03202012111','03202012113','03202012130','03202012131','03202013000','03202013001','03202013002','03202013003','03202013010','03202013012','03202013020','03202013021','03202101311','03202101313','03202101323','03202101332','03202101333','03202102331','03202102333','03202103101','03202103103','03202103110','03202103111','03202103112','03202103113','03202103121','03202103123','03202103130','03202103131','03202103132','03202103133','03202103202','03202103203','03202103220','03202103221','03202103222','03202103223','03202103311','03202110001','03202110003','03202110010','03202110011','03202110012','03202110013','03202110100','03202110200','03202110201','03202110202','03202110203','03202110220','03202112000','03202112002','03202112020','03202112021','03202112022','03202112023','03202112200','03202121023','03202121032','03202121033','03202121201','03202121203','03202121210','03202121211','03202121212','03202121213','03202121300','03202121302','03202121323','03202121332','03202121333','03202123100','03202123101','03202123103','03202123110','03202123111','03202123112','03202123113','03202123121','03202123123','03202123130','03202123131','03202123132','03202123133','03202123301','03202123310','03202123311','03202130200','03202130201','03202130202','03202130203','03202130210','03202130212','03202130221','03202130230','03202132000','03202132002','03202132003','03202132020','03202132021','03202132022','03202132023','03202132032','03202132200','03202132201','03202132210','03202301011','03202301013','03202301031','03202301100','03202301102','03202301103','03202301112','03202301113','03202301120','03202301121','03202301122','03202301123','03202301130','03202301131','03202301132','03202301133','03202301300','03202301301','03202301310','03202301311','03202310020','03202310022','03202310200'];this.Init=function(ok){ib=ok;};this.Destroy=function(){};function fy(W,ac,m){return g.IsValidTile(W,ac,m);}function hv(W,ac,cc){return g.GetTileFilename(W,ac,cc);}function cf(m){if(!g){return 0;}var l=new Msn.VE.Pixel(aj(L+ag+q/2),aj(J+af+p/2));var jz=g.PixelToLatLong(l,m);l.x++;var jA=g.PixelToLatLong(l,m);var eU=Math.sin(cv(jz.latitude));var eN=Math.sin(cv(jA.latitude));var lg=bk/2*aZ(Math.log((1+eU)/(1-eU))-Math.log((1+eN)/(1-eN)));var kq=bk*aZ(cv(jz.longitude)-cv(jA.longitude));return Math.sqrt(kq*kq+lg*lg);}function du(l,m){return g?g.PixelToLatLong(l,m):null;}function cQ(o,m){return g?g.LatLongToPixel(o,m):null;}function hg(e){if(e.zoomLevel<1){e.SetZoomLevel(1);}else if(e.zoomLevel>2){e.SetZoomLevel(2);}}function nh(){return g;}function dj(){return g.GetBounds();}function qO(){return bn;}function nW(){if(!bn){return null;}var qo=new Object();return qo;}function ou(){if(c.mapStyle==aN){return;}if(c.zoomLevel<12){g=null;hc=bn;bn=false;it();return;}mr(c.latlong,"North",false,500);}function mr(o,ea,pb,kz){he();gi=pb;if(!nb(o)){g=null;hc=bn;bn=false;it();return;}fu=ib+"?lat="+o.latitude+"&lon="+o.longitude;if(ea){fu+="&o="+ea;}if(kz){dL=window.setTimeout(iJ,kz);}else{iJ();dL=-1;}}function pE(F){if(g&&g.GetID()==F){return;}he();gi=true;fu=ib+"?id="+F;iJ();}function he(){try{if(dL!=-1){window.clearTimeout(dL);}}catch(dw){}dL=-1;try{if(bt){bt.onreadystatechange=null;bt.abort();}}catch(dw){}}function iJ(){he();if(!fu){return;}if(!bt){bt=rc();}if(bt){bt.open("POST",fu,true);bt.onreadystatechange=oY;bt.send("");}}function oY(){if(!bt||bt.readyState!=4){return;}dL=-1;hc=bn;var lQ=bt.responseText;if(lQ){try{g=eval(lQ);bn=true;}catch(dw){g=null;bn=false;}}else{g=null;bn=false;}it();}function it(){if(gi){gi=false;if(bn){var e=aw.MakeCopy();e.SetMapStyle(aN,g.GetID(),g.GetOrientation());av(e);ap("onobliquechange");}else{var e=aw.MakeCopy();e.SetMapStyle(iM);if(e.GetViewType()!="latlongRect"){e.SetZoomLevel(hY);}av(e);ap("onerror",fL(c.latlong,c.zoomLevel,"Bird's Eye images are not available for this area."));}}if(hc!=bn){if(bn){ap("onobliqueenter");}else{ap("onobliqueleave");}}}function nb(o){if(!o||!t||t.length==0){return false;}var bG=qm(o,t[0].length);return ic(bG,0,t.length-1);}function qm(o,m){var l=dp.LatLongToPixel(o,m);var W=ao(l.x/H);var ac=ao(l.y/H);var bG="";for(var a=m;a>0;a--){var am=0;var eW=1<<(a-1);if((W&eW)!=0){am++;}if((ac&eW)!=0){am+=2;}bG+=(am+"");}return bG;}function ic(bG,bz,br){if(br<bz)return false;var gf=ao((bz+br)/2);if(t[gf]==bG)return true;if(bG<t[gf])return ic(bG,bz,gf-1);return ic(bG,gf+1,br);}this.IsValidTile=fy;this.GetFilename=hv;this.MetersPerPixel=cf;this.PixelToLatLong=du;this.LatLongToPixel=cQ;this.GetBounds=dj;this.ValidateZoomLevel=hg;this.IsAvailable=qO;this.UpdateAvailability=ou;this.CancelRequest=he;this.GetEventInfo=nW;this.GetScene=nh;this.RequestSceneAtLatLong=mr;this.RequestScene=pE;}function py(){var t=[new Msn.VE.Bounds(1, 9, 0, 0, 2, 2),new Msn.VE.Bounds(10, 19, 156, 348, 321, 441),new Msn.VE.Bounds(10, 17, 28, 216, 141, 333),new Msn.VE.Bounds(10, 17, 108, 216, 361, 381),new Msn.VE.Bounds(10, 17, 56, 444, 72, 460),new Msn.VE.Bounds(10, 17, 480, 292, 520, 352)];this.Init=function(){};this.Destroy=function(){};function fy(W,ac,m){var aG=1<<m;return W>=0&&ac>=0&&W<aG&&ac<aG;}function hv(W,ac,cc){var jT="";var am=0;for(var a=cc;a>0;a--){am=0;var eW=1<<(a-1);if((W&eW)!=0){am++;}if((ac&eW)!=0){am+=2;}jT+=am+"";}return"http://"+c.mapStyle+am+".ortho.tiles.virtualearth.net/tiles/"+c.mapStyle+jT+(c.mapStyle==cY?".png":".jpeg")+"?g="+ej[c.mapStyle];}function cf(m){return fX/((1<<m)*H);}function du(l,m){var fj=cf(m);var iN=l.x*fj-fC;var jf=fC-l.y*fj;var o=new Msn.VE.LatLong();o.latitude=gL(Math.PI/2-2*Math.atan(Math.exp(-jf/bk)));o.longitude=gL(iN/bk);return o;}function cQ(o,m){var fx=Math.sin(cv(o.latitude));var iN=bk*cv(o.longitude);var jf=bk/2*Math.log((1+fx)/(1-fx));var fj=cf(m);var l=new Msn.VE.Pixel();l.x=((fC+iN)/fj);l.y=((fC-jf)/fj);return l;}function dj(e){if(e==undefined){e=c;}var m=e.zoomLevel;var d=e.center.x;var f=e.center.y;for(var a=0;a<t.length;a++){var hx=m-t[a].z1;var ab=H*Math.pow(2,hx);var fc=t[a].x1*ab;var fo=t[a].x2*ab;var fb=t[a].y1*ab;var eM=t[a].y2*ab;if(d>=fc&&d<=fo&&f>=fb&&f<=eM){if(m>=t[a].z1&&m<=t[a].z2){return t[a];}}}}function hg(e){var d=e.center.x;var f=e.center.y;var fh=0;for(var a=0;a<t.length;a++){var ab=H*Math.pow(2,e.zoomLevel-t[a].z1);var fc=t[a].x1*ab;var fo=t[a].x2*ab;var fb=t[a].y1*ab;var eM=t[a].y2*ab;if(d>=fc&&d<=fo&&f>=fb&&f<=eM){if(t[a].z2>=e.zoomLevel){return;}else if(t[a].z2>fh){fh=t[a].z2;}}}e.SetZoomLevel(fh);}this.IsValidTile=fy;this.GetFilename=hv;this.MetersPerPixel=cf;this.PixelToLatLong=du;this.LatLongToPixel=cQ;this.GetBounds=dj;this.ValidateZoomLevel=hg;}function nu(){var au=document.createElement("div");var ah=document.createElement("div");var A=0,C=0,O=0,Q=0;this.Init=function(){au.className="ZoomBox_bg";ah.className="ZoomBox_fg";au.attachEvent("onmouseup",bs);ah.attachEvent("onmouseup",bs);j.appendChild(au);j.appendChild(ah);};this.Destroy=function(){au.detachEvent("onmouseup",bs);ah.detachEvent("onmouseup",bs);j.removeChild(au);j.removeChild(ah);};function hy(b){A=O=bm(b)-d+ag;C=Q=ca(b)-f+af;ld(A,C,1,1);aP();if(ah.setCapture){ah.setCapture();}}function iO(b){O=bm(b)-d+ag;Q=ca(b)-f+af;ld(dX(A,O),dX(C,Q),dM(1,aZ(O-A)),dM(1,aZ(Q-C)));}function iq(b){if(aZ(A-O)>1&&aZ(C-Q)>1){var e=aw.MakeCopy();e.SetZoomLevel(c.zoomLevel);e.SetPixelRectangle(new Msn.VE.PixelRectangle(new Msn.VE.Pixel(L+A,J+C),new Msn.VE.Pixel(L+O,J+Q)));av(e);}as();if(ah.releaseCapture){ah.releaseCapture();}}function ld(d,f,aJ,aH){kW(au,d+1,f+1,aJ,aH);kW(ah,d,f,aJ,aH);}function kW(cU,d,f,aJ,aH){cU.style.left=d+"px";cU.style.top=f+"px";cU.style.width=aJ+"px";cU.style.height=aH+"px";}function aP(){au.style.display="block";ah.style.display="block";}function as(){au.style.display="none";ah.style.display="none";}this.OnMouseDown=hy;this.OnMouseMove=iO;this.OnMouseUp=iq;}function oT(){var gF=false;this.Init=function(){};this.Destroy=function(){};function hy(b){gF=false;iF=bm(b);iC=ca(b);if(y.setCapture){y.setCapture();}var fD=L+ag+bm(b)-d;var fE=J+af+ca(b)-f;ap("onstartcontinuouspan",fL(x.PixelToLatLong(new Msn.VE.Pixel(fD,fE),c.zoomLevel)));}function iO(b){var cs=bm(b);var lp=ca(b);gZ(iF-cs,iC-lp);iF=cs;iC=lp;gF=true;}function iq(b){lV(true);if(y.releaseCapture){y.releaseCapture();}if(gF){ap("onendcontinuouspan");ap("onchangeview");gF=false;}var fD=L+ag+bm(b)-d;var fE=J+af+ca(b)-f;var gD=fL(x.PixelToLatLong(new Msn.VE.Pixel(fD,fE),c.zoomLevel));ap("onmouseup",gD);ap("onclick",gD);}this.OnMouseDown=hy;this.OnMouseMove=iO;this.OnMouseUp=iq;}this.SetCenter=hn;this.SetMapStyle=ce;this.GetCenterLatitude=qL;this.GetCenterLongitude=oS;this.GetLatitude=ix;this.GetLongitude=hF;this.GetY=hJ;this.GetX=hK;this.LatLongToPixel=cQ;this.PixelToLatLong=du;this.GetZoomLevel=qB;this.GetMapStyle=oK;this.GetMetersPerPixel=mJ;this.Resize=qF;this.PanMap=gZ;this.ContinuousPan=hj;this.StopContinuousPan=fa;this.PanToLatLong=mF;this.AddPushpin=qh;this.RemovePushpin=oH;this.ClearPushpins=mY;this.SetViewport=lG;this.SetBestMapView=kQ;this.IncludePointInViewport=nt;this.SetZoom=qv;this.ZoomIn=gn;this.ZoomOut=gK;this.SetCenterAndZoom=qZ;this.AddLine=pR;this.RemoveLine=pe;this.ClearLines=ju;this.AttachEvent=eh;this.DetachEvent=ee;this.IsObliqueAvailable=ps;this.GetObliqueScene=qJ;this.SetAnimationEnabled=re;this.IsAnimationEnabled=nw;this.SetObliqueScene=pJ;this.SetObliqueOrientation=ng;this.SetView=av;this.Debug=ht;this.GetResponseRangeCounts=or;this.ResetResponseRangeCounts=nr;this.GetFailureRate=pu;};
Msn.VE.Bounds=function(fd,eY,A,C,O,Q){this.z1=fd;this.z2=eY;this.x1=A;this.y1=C;this.x2=O;this.y2=Q;};
Msn.VE.Dashboard=function(i,j,aY){var gE=document.createElement("div");var gw=document.createElement("div");var dP=document.createElement("div");var gp=null;var jI=document.createElement("hr");var bb=document.createElement("div");var cw=document.createElement("input");var kh=true;var bu=null;var dr=null;var ep=null;var de=null;var bL=null;var ch=null;var hX=document.createElement("table");hX.className="dashboardContainerTable";var iS=document.createElement("tbody");var iG=document.createElement("tr");hX.appendChild(iS);iS.appendChild(iG);var ig=document.createElement("td");var dT=document.createElement("td");dT.vAlign="top";var dJ=document.createElement("td");dJ.colSpan=2;dJ.setAttribute("colspan",2);dJ.className="obliqueSelectorTable";iG.appendChild(ig);iG.appendChild(dT);var kS=document.createElement("tr");kS.appendChild(dJ);iS.appendChild(kS);this.Init=function(){var Z=j.GetMapStyle();iD(gE,"road",mH);iD(gw,"aerial",lJ);iD(dP,"bird's eye",iL);jI.className="Dashboard_separator";i.appendChild(jI);i.appendChild(hX);if(!aY||aY==Msn.VE.DashboardSize.Normal){bu=new ql(ig,5,30);bu.Init();bu.Show();}dr=new pi(ig);dr.Hide();ep=new qt(dT,100,30);ep.Init();de=new pH(dT);oR();nS();ch=new nU(dJ);ch.Init();j.AttachEvent("onendzoom",me);j.AttachEvent("onobliqueenter",mz);j.AttachEvent("onobliqueleave",jO);j.AttachEvent("onchangemapstyle",ks);j.AttachEvent("onobliquechange",nN);if(j.IsObliqueAvailable()){mK();}else{jM();}switch(Z){case'r':kM();break;case'a':case'h':mx();break;case'o':mq();break;}};this.Destroy=function(){hD(gE,mH);hD(gw,lJ);hD(dP,iL);gp=gE=gw=dP=null;bb.removeChild(cw);dT.removeChild(bb);bb.detachEvent("onclick",kY);bb=cw=null;if(bu){bu.Destroy();bu=null;}if(de){de.Destroy();de=null;}if(ch){ch.Destroy();ch=null;}if(j){j.DetachEvent("onendzoom",me);j.DetachEvent("onobliqueenter",mz);j.DetachEvent("onobliqueleave",jO);j.DetachEvent("onchangemapstyle",ks);j=null;}};this.GetY=function(){return gh(i);};this.GetHeight=function(){return i.offsetHeight;};function iD(bN,aM,cX,rz){bN.className="Dashboard_tab Dashboard_unselected";bN.href="javascript:void(0)";bN.innerText=aM;bN.attachEvent("onclick",cX);i.appendChild(bN);}function hD(bN,cX){bN.detachEvent("onclick",cX);i.removeChild(bN);}function je(bN){if(gp){gp.className="Dashboard_tab Dashboard_unselected";}bN.className="Dashboard_tab Dashboard_selected";gp=bN;}function oR(){cw.type="checkbox";bb.className="Dashboard_toggler";bb.style.display="none";bb.attachEvent("onclick",kY);bb.appendChild(cw);bb.appendChild(document.createTextNode("Show labels"));dT.appendChild(bb);}function nS(){bL=document.createElement("div");bL.className="Dashboard_notification";bL.innerHTML="<div id=\"obliqueNotifyIcon\">&nbsp;</div> There is Bird's Eye imagery available for this location.";bL.style.display="none";bL.onclick=iL;dJ.appendChild(bL);}function kM(){je(gE);bb.style.display="none";ch.Hide();de.Hide();ep.Show();if(j.IsObliqueAvailable()){bL.style.display="block";}if(bu){bu.Show();}dr.Hide();}function mx(){je(gw);bb.style.display="block";ch.Hide();de.Hide();ep.Show();if(j.GetMapStyle()=='h'){cw.checked=true;}else{cw.checked=false;}if(j.IsObliqueAvailable()){bL.style.display="block";}if(bu){bu.Show();}dr.Hide();}function mq(){je(dP);bb.style.display="none";bL.style.display="none";ch.Show();ep.Hide();de.Show();if(bu){bu.Hide();}dr.Show();}function mK(){dP.className="Dashboard_tab Dashboard_unselected";bL.style.display="block";}function jM(){dP.className="Dashboard_tab Dashboard_disabled";bL.style.display="none";}function mH(){j.SetMapStyle('r');}function lJ(){if(kh||cw.checked){j.SetMapStyle('h');}else{j.SetMapStyle('a');}kh=false;}function iL(){j.SetMapStyle('o');}function kY(b){var Z=j.GetMapStyle();if(Z=='a'){j.SetMapStyle('h');cw.checked=true;}else if(Z=='h'){j.SetMapStyle('a');cw.checked=false;}}function me(b){ep.UpdateFromMap();de.UpdateFromMap();}function mz(b){if(j.GetMapStyle()=="o"){return;}mK();dr.UpdateFromMap();}function jO(b){jM();}function ks(b){switch(b.view.mapStyle){case'r':kM();break;case'a':case'h':mx();break;case'o':mq();break;}}function nN(b){ch.Update();dr.UpdateFromMap();}function ql(M){var i=document.createElement("div");var d=0,f=0;var aR=false;var cB=15;this.Init=function(){i.className="Compass";i.attachEvent("onmousedown",dc);i.attachEvent("onmouseup",bs);i.attachEvent("onmousemove",cA);i.attachEvent("ondblclick",G);M.appendChild(i);};this.Destroy=function(){i.detachEvent("onmousedown",dc);i.detachEvent("onmouseup",bs);i.detachEvent("onmousemove",cA);i.detachEvent("ondblclick",G);i=null;};function dc(b){b=ar(b);aC(b);d=hZ(i);f=gh(i);if(i.setCapture){i.setCapture();}var aL=bm(b)-d-(i.offsetWidth/2);var aK=ca(b)-f-(i.offsetHeight/2);aL=Math.min(Math.max(aL,-cB),cB);aK=Math.min(Math.max(aK,-cB),cB);j.ContinuousPan(aL,aK);aR=true;return false;}function cA(b){b=ar(b);aC(b);if(aR){var aL=bm(b)-d-(i.offsetWidth/2);var aK=ca(b)-f-(i.offsetHeight/2);aL=Math.min(Math.max(aL,-cB),cB);aK=Math.min(Math.max(aK,-cB),cB);j.ContinuousPan(aL,aK);}return false;}function bs(b){b=ar(b);aC(b);if(i.releaseCapture){i.releaseCapture();}j.StopContinuousPan();aR=false;return false;}function as(){i.style.display="none";}function aP(){i.style.display="block";}this.Hide=as;this.Show=aP;}function nU(M){var i=document.createElement("table");var u=new Array(3);this.Init=function(){i.className="obliqueSelectorTable";as();M.appendChild(i);var jh=document.createElement("tbody");jh.className="obliqueSelectorTable";i.appendChild(jh);for(var a=0;a<3;a++){var lk=document.createElement("tr");jh.appendChild(lk);u[a]=new Array(3);for(var aa=0;aa<3;aa++){var an=document.createElement("div");var am=document.createElement("td");lk.appendChild(am);am.appendChild(an);an.className="Dashboard_thumbnail";if(a==1&&aa==1){u[a][aa]=new jJ(an,false);am.className="obliqueSelectorCellCenter";}else{u[a][aa]=new jJ(an,true);am.className="obliqueSelectorCellOff";}u[a][aa].Init();}}};this.Destroy=function(){M.removeChild(i);i=null;for(var a=0;a<u.length;a++){for(var aa=0;aa<u[a].length;aa++){u[a][aa].Destroy();u[a][aa]=null;}}u=null;};function aP(){ci();i.style.display="block";}function as(){i.style.display="none";}function ci(){var g=j.GetObliqueScene();if(!g){return;}u[1][1].SetScene(g);switch(g.GetOrientation()){case"North":u[0][0].SetScene(g.GetNeighbor("Northwest"));u[0][1].SetScene(g.GetNeighbor("North"));u[0][2].SetScene(g.GetNeighbor("Northeast"));u[1][0].SetScene(g.GetNeighbor("West"));u[1][2].SetScene(g.GetNeighbor("East"));u[2][0].SetScene(g.GetNeighbor("Southwest"));u[2][1].SetScene(g.GetNeighbor("South"));u[2][2].SetScene(g.GetNeighbor("Southeast"));break;case"East":u[0][0].SetScene(g.GetNeighbor("Northeast"));u[0][1].SetScene(g.GetNeighbor("East"));u[0][2].SetScene(g.GetNeighbor("Southeast"));u[1][0].SetScene(g.GetNeighbor("North"));u[1][2].SetScene(g.GetNeighbor("South"));u[2][0].SetScene(g.GetNeighbor("Northwest"));u[2][1].SetScene(g.GetNeighbor("West"));u[2][2].SetScene(g.GetNeighbor("Southwest"));break;case"West":u[0][0].SetScene(g.GetNeighbor("Southwest"));u[0][1].SetScene(g.GetNeighbor("West"));u[0][2].SetScene(g.GetNeighbor("Northwest"));u[1][0].SetScene(g.GetNeighbor("South"));u[1][2].SetScene(g.GetNeighbor("North"));u[2][0].SetScene(g.GetNeighbor("Southeast"));u[2][1].SetScene(g.GetNeighbor("East"));u[2][2].SetScene(g.GetNeighbor("Northeast"));break;case"South":u[0][0].SetScene(g.GetNeighbor("Southeast"));u[0][1].SetScene(g.GetNeighbor("South"));u[0][2].SetScene(g.GetNeighbor("Southwest"));u[1][0].SetScene(g.GetNeighbor("East"));u[1][2].SetScene(g.GetNeighbor("West"));u[2][0].SetScene(g.GetNeighbor("Northeast"));u[2][1].SetScene(g.GetNeighbor("North"));u[2][2].SetScene(g.GetNeighbor("Northwest"));break;}}function jJ(an,ef){var g=null;this.Init=function(){an.title="Select a thumbnail to display an image from the surrounding area.";if(ef){an.attachEvent("onclick",gO);an.attachEvent("onmouseover",eO);an.attachEvent("onmouseout",gy);}};this.Destroy=function(){if(ef){an.detachEvent("onclick",gO);an.detachEvent("onmouseover",eO);an.detachEvent("onmouseout",gy);}};this.SetScene=function(s){g=s;if(g){an.innerHTML="<img src=\""+g.GetThumbnailFilename()+"\" width=48 height=48 border=0>";if(ef){an.style.cursor="pointer";}}else{an.innerHTML="";an.style.cursor="default";}if(ef){an.parentNode.className="obliqueSelectorCellOff";}};function gO(){if(!g){return;}j.SetObliqueScene(g.GetID());}function eO(b){an.parentNode.className="obliqueSelectorCellOn";}function gy(b){an.parentNode.className="obliqueSelectorCellOff";}}this.Update=ci;this.Show=aP;this.Hide=as;}function qt(M){var w=document.createElement("div");var dH=document.createElement("div");var bq=document.createElement("div");var Y=document.createElement("div");var cF=document.createElement("div");var d=0,f=0;var cR=false;this.Init=function(){cF.className="ZoomBar_minus";cF.unselectable="on";cF.attachEvent("onclick",jL);Y.className="ZoomBar_slider";Y.unselectable="on";Y.attachEvent("onmousedown",dc);Y.attachEvent("onmousemove",cA);Y.attachEvent("onmouseup",bs);Y.attachEvent("onclick",G);bq.className="ZoomBar_bar";bq.unselectable="on";bq.appendChild(Y);bq.attachEvent("onclick",jm);dH.className="ZoomBar_plus";dH.unselectable="on";dH.attachEvent("onclick",mG);w.className="ZoomBar";w.appendChild(cF);w.appendChild(bq);w.appendChild(dH);w.attachEvent("onmousedown",G);w.attachEvent("onmouseup",G);w.attachEvent("onclick",G);w.attachEvent("ondblclick",G);M.appendChild(w);cD();};this.Destroy=function(){cF.detachEvent("onclick",jL);Y.detachEvent("onmousedown",dc);Y.detachEvent("onmousemove",cA);Y.detachEvent("onmouseup",bs);Y.detachEvent("onclick",G);bq.removeChild(Y);bq.detachEvent("onclick",jm);dH.detachEvent("onclick",mG);w.removeChild(dH);w.removeChild(bq);w.removeChild(cF);w.detachEvent("onmousedown",G);w.detachEvent("onmousedown",G);w.detachEvent("onclick",G);w.detachEvent("ondblclick",G);M.removeChild(w);j.DetachEvent("onendzoom",cD);cF=Y=bq=dH=w=M=j=null;};function aP(){w.style.display="block";}function as(){w.style.display="none";}function lv(){d=hZ(w);f=gh(w);}function dc(b){b=ar(b);aC(b);lv();if(Y.setCapture){Y.setCapture();}cR=true;return false;}function cA(b){b=ar(b);aC(b);if(cR){Y.style.left=hL(bm(b))+"px";}return false;}function bs(b){b=ar(b);aC(b);if(Y.releaseCapture){Y.releaseCapture();}cR=false;kJ(hL(bm(b)));return false;}function mG(b){j.ZoomIn();}function jL(b){j.ZoomOut();}function jm(b){b=ar(b);aC(b);lv();kJ(hL(bm(b)));return false;}function hL(cs){cs-=d+cF.offsetWidth+Y.offsetWidth;var aG=bq.offsetWidth-Y.offsetWidth;if(cs<0){cs=0;}else if(cs>aG){cs=aG;}return cs;}function kJ(aq){var aG=bq.offsetWidth-Y.offsetWidth;var cc=1+aj(aq/aG*18);j.SetZoom(cc);}function cD(){var aG=bq.offsetWidth-Y.offsetWidth;var aq=(j.GetZoomLevel()-1)/18*aG;Y.style.left=aq+"px";}this.UpdateFromMap=cD;this.Show=aP;this.Hide=as;}function pH(M){var w=document.createElement("div");var bK=document.createElement("div");var bO=document.createElement("div");w.title="Select the desired zoom level for the image.";w.setAttribute("id","obliqueZoomContainer");bK.setAttribute("id","obliqueZoomSmall");bK.className="obliqueZoomSmallOn";bO.setAttribute("id","obliqueZoomLarge");bO.className="obliqueZoomLargeOff";bK.attachEvent("onclick",kN);bO.attachEvent("onclick",kH);w.appendChild(bK);w.appendChild(bO);M.appendChild(w);function aP(){w.style.display="block";}function as(){w.style.display="none";}function kN(b){j.ZoomOut();bK.className="obliqueZoomSmallOn";bO.className="obliqueZoomLargeOff";}function kH(b){j.ZoomIn();bK.className="obliqueZoomSmallOff";bO.className="obliqueZoomLargeOn";}function bZ(){bK.detachEvent("onclick",kN);bO.detachEvent("onclick",kH);w.removeChild(bK);w.removeChild(bO);bK=null;bO=null;w.parentNode.removeChild(w);w=null;}function cD(){if(j.GetZoomLevel()==1){bK.className="obliqueZoomSmallOn";bO.className="obliqueZoomLargeOff";}else{bK.className="obliqueZoomSmallOff";bO.className="obliqueZoomLargeOn";}}this.Destroy=bZ;this.Show=aP;this.Hide=as;this.UpdateFromMap=cD;}function fV(F,ny,aq){var i=document.createElement("div");i.setAttribute("id",F);i.innerHTML=ny;var fN="obliqueCompassPointOff";var jp=aq;i.onmouseover=eO;i.onmouseout=gy;i.onclick=gO;this.onclick=null;this.onmouseover=null;this.onmouseout=null;var ed=this;var eV=false;var lR=new nM(i,17,17);function eO(b){if(eV){return;}fN=i.className;i.className="obliqueCompassPointHover";if(ed.onmouseover){ed.onmouseover(b);}}function gO(b){if(eV){return;}eO(b);fN="obliqueCompassPointOn";if(ed.onclick){ed.onclick(b);}}function gy(b){if(eV){return;}i.className=fN;if(ed.onmouseout){ed.onmouseout(b);}}function lX(){fN="obliqueCompassPointOn";i.className="obliqueCompassPointOn";}function jr(){fN="obliqueCompassPointOff";i.className="obliqueCompassPointOff";}function pQ(){eV=true;jr();}function lU(){eV=false;lX();}function ox(){return i;}function no(){return jp;}function oN(aq){jp=aq;}function ip(){lR.Reset();lU();}function pr(lY){i.style.left=lY.left;i.style.top=lY.top;}function nM(bD,qk,qu){var i=bD;var bY=0;var hh=0.3;var jd=0;var oZ=40;var ms=25;var ha=false;var mT=Math.PI/2;var jY=true;var hi=hh+0.1;function qC(hi,kC,kD){if(kC>=kD-hi&&kC<=kD+hi){return true;}return false;}function lb(){bY+=hh;if(bY>Math.PI*2)bY-=Math.PI*2;else if(bY<0){bY+=Math.PI*2}if(qC(hi,bY,jd)){hh=0.3;bY=jd;lj(bY);ha=false;return;}lj(bY);window.setTimeout(lb,oZ);}function lj(dF){var d=qk+(ms*Math.sin(dF));var f=qu+(ms*Math.cos(dF));i.style.left=d+"px";i.style.top=f+"px";}function mE(dF){if(ha)return;ha=true;jd=dF;lb();}function mW(hs,of){jY=of;if(!jY){hh*=-1;}mE(mT*hs);}function ip(){ha=false;bY=0;}this.RotateTo=mE;this.RotateToIndex=mW;this.Reset=ip;}function bZ(){i.parentNode.removeChild(i);i.onmouseover=null;i.onmouseout=null;i.onclick=null;i=null;}this.GetElement=ox;this.GetCurrentPositionIndex=no;this.SetCurrentPositionIndex=oN;this.SetCurrentPosition=pr;this.On=lX;this.Off=jr;this.RotateToIndex=lR.RotateToIndex;this.Reset=ip;this.Disable=pQ;this.Enable=lU;this.Destroy=bZ;}function pi(w){var gc=new Array();gc.push({"top":"-8px","left":"17px"});gc.push({"top":"17px","left":"42px"});gc.push({"top":"42px","left":"17px"});gc.push({"top":"17px","left":"-8px"});var be=document.createElement("div");be.setAttribute("id","obliqueCompassContainer");be.title="Select the direction you want to look toward.";var az=new fV("obliqueCompassPointN","N",0);az.onclick=oD;az.onmouseover=pL;az.onmouseout=eZ;var aD=new fV("obliqueCompassPointE","E",1);aD.onclick=qW;aD.onmouseover=ne;aD.onmouseout=eZ;var ay=new fV("obliqueCompassPointS","S",2);ay.onclick=on;ay.onmouseover=oe;ay.onmouseout=eZ;var aB=new fV("obliqueCompassPointW","W",3);aB.onclick=qK;aB.onmouseover=pB;aB.onmouseout=eZ;var fe=document.createElement("div");be.appendChild(az.GetElement());be.appendChild(aD.GetElement());be.appendChild(ay.GetElement());be.appendChild(aB.GetElement());be.appendChild(fe);w.appendChild(be);cD();function gY(aq){if(aq<0){aq=4-Math.abs(aq);}return aq;}function cP(oy){var aq=oy.GetCurrentPositionIndex();aD.SetCurrentPositionIndex(gY(aD.GetCurrentPositionIndex()-aq));aB.SetCurrentPositionIndex(gY(aB.GetCurrentPositionIndex()-aq));az.SetCurrentPositionIndex(gY(az.GetCurrentPositionIndex()-aq));ay.SetCurrentPositionIndex(gY(ay.GetCurrentPositionIndex()-aq));var fk=true;if(aq==3){fk=false;}az.RotateToIndex(2-az.GetCurrentPositionIndex()<0?az.GetCurrentPositionIndex():2-az.GetCurrentPositionIndex(),fk);aD.RotateToIndex(2-aD.GetCurrentPositionIndex()<0?aD.GetCurrentPositionIndex():2-aD.GetCurrentPositionIndex(),fk);ay.RotateToIndex(2-ay.GetCurrentPositionIndex()<0?ay.GetCurrentPositionIndex():2-ay.GetCurrentPositionIndex(),fk);aB.RotateToIndex(2-aB.GetCurrentPositionIndex()<0?aB.GetCurrentPositionIndex():2-aB.GetCurrentPositionIndex(),fk);}function cp(hs){switch(hs){case 0:eZ();break;case 1:nX();break;case 2:oL();break;case 3:nq();break;}}function eZ(){fe.className="obliqueCompassArrowU";}function oL(){fe.className="obliqueCompassArrowD";}function nX(){fe.className="obliqueCompassArrowR";}function nq(){fe.className="obliqueCompassArrowL";}function on(b){cP(ay);cp(0);var g=j.GetObliqueScene();if(g){var dn=g.GetRotation("South");if(dn){j.SetObliqueOrientation("South");}}}function oD(b){cP(az);cp(0);var g=j.GetObliqueScene();if(g){var dn=g.GetRotation("North");if(dn){j.SetObliqueOrientation("North");}}}function qW(b){cP(aD);cp(0);var g=j.GetObliqueScene();if(g){var dn=g.GetRotation("East");if(dn){j.SetObliqueOrientation("East");}}}function qK(b){cP(aB);cp(0);var g=j.GetObliqueScene();if(g){var dn=g.GetRotation("West");if(dn){j.SetObliqueOrientation("West");}}}function oe(b){cp(ay.GetCurrentPositionIndex());}function ne(b){cp(aD.GetCurrentPositionIndex());}function pB(b){cp(aB.GetCurrentPositionIndex());}function pL(b){cp(az.GetCurrentPositionIndex());}function as(){be.style.display="none";}function aP(){be.style.display="block";}function cD(){var g=j.GetObliqueScene();if(!g){return;}switch(g.GetOrientation()){case"North":cP(az);break;case"South":cP(ay);break;case"East":cP(aD);break;case"West":cP(aB);break;}cp(0);if(g.GetRotation("North")){az.Enable();}else{az.Disable();}if(g.GetRotation("South")){ay.Enable();}else{ay.Disable();}if(g.GetRotation("East")){aD.Enable();}else{aD.Disable();}if(g.GetRotation("West")){aB.Enable();}else{aB.Disable();}}function bZ(){az.Destroy();aD.Destroy();ay.Destroy();aB.Destroy();be.parentNode.removeChild(be);be=null;}this.Hide=as;this.Show=aP;this.UpdateFromMap=cD;}};
Msn.VE.DashboardSize=new function(){this.Normal="normal";this.Small="small";this.Tiny="tiny";};
Msn.VE.LatLong=function(B,I){this.latitude=B;this.longitude=I;this.ToString=function(){return"("+this.latitude+", "+this.longitude+")";};this.Copy=function(o){if(!o){return;}this.latitude=o.latitude;this.longitude=o.longitude;};};
Msn.VE.LatLongRectangle=function(iz,hr){this.northwest=iz;this.southeast=hr;this.ToString=function(){return"("+(this.northwest?this.northwest.ToString():"null")+", "+(this.southeast?this.southeast.ToString():"null")+")";};this.Copy=function(bw){if(!bw){return;}if(!this.northwest){this.northwest=new Msn.VE.LatLong();}if(!this.southeast){this.southeast=new Msn.VE.LatLong();}this.northwest.Copy(bw.northwest);this.southeast.Copy(bw.southeast);};this.Center=function(){var eU=Math.sin(this.northwest.latitude*Math.PI/180.0);var eN=Math.sin(this.southeast.latitude*Math.PI/180.0);var rf=0.25*(Math.log((1.0+eU)/(1.0-eU))+Math.log((1.0+eN)/(1.0-eN)));var bS=new Msn.VE.LatLong();bS.latitude=Math.atan(Math.exp(rf))*360.0/Math.PI-90.0;bS.longitude=0.5*(this.northwest.longitude+this.southeast.longitude);return bS;};this.Contains=function(o){return o.latitude<=iz.latitude&&o.longitude>=iz.longitude&&o.latitude>=hr.latitude&&o.longitude<=hr.longitude;};};
Msn.VE.MapStyle=new function(){this.Road="r";this.Aerial="a";this.Hybrid="h";this.Oblique="o";};
Msn.VE.MapView=function(){this.zoomLevel=0;this.mapStyle=null;this.center=new Msn.VE.Pixel();this.latlong=new Msn.VE.LatLong();this.pixelRect=new Msn.VE.PixelRectangle();this.latlongRect=new Msn.VE.LatLongRectangle();this.sceneId=null;this.sceneOrientation=null;var h=this;var bE="pixel";this.Destroy=function(){this.center=this.latlong=h=null;};this.GetViewType=function(){return bE;};function qM(){var ky=new Msn.VE.MapView();ky.Copy(h);return ky;}function np(e){h.zoomLevel=e.zoomLevel;h.mapStyle=e.mapStyle;h.center.Copy(e.center);h.latlong.Copy(e.latlong);h.pixelRect.Copy(e.pixelRect);h.latlongRect.Copy(e.latlongRect);h.sceneId=e.sceneId;h.sceneOrientation=e.sceneOrientation;bE=e.GetViewType();}function mU(e){return e!=null&&h.zoomLevel==e.zoomLevel&&h.mapStyle==e.mapStyle&&aZ(h.center.x-e.center.x)<0.000001&&aZ(h.center.y-e.center.y)<0.000001&&h.sceneId==e.sceneId&&h.sceneOrientation==e.sceneOrientation;}function iQ(){return"("+h.latlong.ToString()+", "+h.zoomLevel+", "+h.mapStyle+")";}function hn(l){if(!l){return;}h.center=l;bE="pixel";}function qy(o){if(!o){return;}h.latlong=o;bE="latlong";}function pG(mS){h.pixelRect=mS;bE="pixelRect";}function rd(nx){h.latlongRect=nx;bE="latlongRect";}function kt(m){if(m<=0){return;}switch(bE){case"pixel":var ab=Math.pow(2,m-h.zoomLevel);h.center.x*=ab;h.center.y*=ab;break;case"pixelRect":var ab=Math.pow(2,m-h.zoomLevel);h.pixelRect.topLeft.x*=ab;h.pixelRect.topLeft.y*=ab;h.pixelRect.bottomRight.x*=ab;h.pixelRect.bottomRight.y*=ab;break;}h.zoomLevel=m;}function ce(Z,bW,il){h.mapStyle=Z;if(bE=="pixel"){bE="latlong";}if(Z!='o'){h.sceneId=null;h.sceneOrientation=null}else{h.sceneId=bW;h.sceneOrientation=il;}}function hK(m){if(m){return h.center.x*Math.pow(2,m-h.zoomLevel);}return h.center.x;}function hJ(m){if(m){return h.center.y*Math.pow(2,m-h.zoomLevel);}return h.center.y;}function oX(m){if(m==undefined){return h.center;}return new Msn.VE.Pixel(h.GetX(m),h.GetY(m));}function rg(bo,q,p){switch(bE){case"pixel":h.latlong=bo.PixelToLatLong(h.center,h.zoomLevel);break;case"latlong":h.center=bo.LatLongToPixel(h.latlong,h.zoomLevel);break;case"pixelRect":hR(bo,q,p);break;case"latlongRect":if(h.mapStyle=="o"){h.zoomLevel=1;var g=bo.GetScene();if(!g.ContainsLatLong(h.latlongRect.northwest)||!g.ContainsLatLong(h.latlongRect.southeast)){h.latlong=h.latlongRect.Center();h.center=bo.LatLongToPixel(h.latlong,h.zoomLevel);}else{h.pixelRect.topLeft=bo.LatLongToPixel(h.latlongRect.northwest,h.zoomLevel);h.pixelRect.bottomRight=bo.LatLongToPixel(h.latlongRect.southeast,h.zoomLevel);hR(bo,q,p);}}else{h.zoomLevel=12;h.pixelRect.topLeft=bo.LatLongToPixel(h.latlongRect.northwest,h.zoomLevel);h.pixelRect.bottomRight=bo.LatLongToPixel(h.latlongRect.southeast,h.zoomLevel);hR(bo,q,p);}break;}bE="pixel";}function hR(bo,q,p){var hS=19;var T=Math.pow(2,hS-h.zoomLevel);var pf=dM(1,aZ(h.pixelRect.topLeft.x-h.pixelRect.bottomRight.x)*T);var qU=dM(1,aZ(h.pixelRect.topLeft.y-h.pixelRect.bottomRight.y)*T);var lZ=Math.log(2);var qg=hS-Math.ceil(Math.log(pf/q)/lZ);var pv=hS-Math.ceil(Math.log(qU/p)/lZ);var ba=dX(qg,pv);T=Math.pow(2,ba-h.zoomLevel);h.center.x=0.5*(h.pixelRect.topLeft.x+h.pixelRect.bottomRight.x)*T;h.center.y=0.5*(h.pixelRect.topLeft.y+h.pixelRect.bottomRight.y)*T;h.zoomLevel=ba;h.latlong=bo.PixelToLatLong(h.center,h.zoomLevel);}this.MakeCopy=qM;this.Copy=np;this.Equals=mU;this.ToString=iQ;this.SetCenter=hn;this.SetCenterLatLong=qy;this.SetPixelRectangle=pG;this.SetLatLongRectangle=rd;this.SetZoomLevel=kt;this.SetMapStyle=ce;this.GetX=hK;this.GetY=hJ;this.GetCenter=oX;this.Resolve=rg;this.SetZoomLevel=kt;};
Msn.VE.ObliqueScene=function(F,bG,pZ,ea,nP,nQ,eg,gJ,pW,pU,oo,oI){var H=256;var t=new Msn.VE.Bounds(1,2,0,0,eg/2,gJ/2);function du(l,m){var T=Math.pow(2,m-2);var iI=[[l.x/T],[l.y/T],[1]];var aW=lS(pW,iI);var o=new Msn.VE.LatLong();o.longitude=aW[0][0]/aW[2][0];o.latitude=aW[1][0]/aW[2][0];return o;}function cQ(o,m){var T=Math.pow(2,m-2);var iI=[[o.longitude],[o.latitude],[1]];var aW=lS(pU,iI);var l=new Msn.VE.Pixel();l.x=aW[0][0]/aW[2][0]*T;l.y=aW[1][0]/aW[2][0]*T;return l;}function fy(W,ac,m){if(W<0||ac<0){return false;}if(m==1){return W<(eg/2)&&ac<(gJ/2);}return W<eg&&ac<gJ;}function pO(){return F;}function qc(W,ac,m){var pC=ac*(m==1?eg/2:eg)+W;return"http://c"+(W%2)+".p"+nQ+".oblique.tiles.virtualearth.net/tiles/o"+bG+"-"+pZ+"-"+(nP+m-2)+"-"+pC+".jpeg?g=14";}function qE(){return"http://thumbs.oblique.tiles.virtualearth.net/tiles/ot"+F+".jpeg?g=14";}function rb(a){var bW=oo[a];if(bW==null||bW==-1){return null;}return new Msn.VE.ObliqueScene(bW);}function nF(a){var bW=oI[a];if(bW==null||bW==-1){return null;}return new Msn.VE.ObliqueScene(bW);}function pl(){return ea;}function dj(){return t;}function li(){return eg*H;}function gm(){return gJ*H;}function pV(o){if(!o){return false;}var l=cQ(o,2);return kd(l,2);}function kd(l,m){var T=Math.pow(2,2-m);var d=l.x*T;var f=l.y*T;return d>=0&&f>=0&&d<li()&&f<gm();}this.PixelToLatLong=du;this.LatLongToPixel=cQ;this.IsValidTile=fy;this.GetID=pO;this.GetTileFilename=qc;this.GetThumbnailFilename=qE;this.GetNeighbor=rb;this.GetRotation=nF;this.GetOrientation=pl;this.GetBounds=dj;this.GetWidth=li;this.GetHeight=gm;this.ContainsLatLong=pV;this.ContainsPixel=kd;};
Msn.VE.Orientation=new function(){this.North="North";this.East="East";this.West="West";this.South="South";};
Msn.VE.Pixel=function(d,f){this.x=d;this.y=f;this.ToString=function(){return"("+this.x+", "+this.y+")";};this.Copy=function(l){if(!l){return;}this.x=l.x;this.y=l.y;};};
Msn.VE.PixelRectangle=function(rh,pD){this.topLeft=rh;this.bottomRight=pD;this.ToString=function(){return"("+(this.topLeft?this.topLeft.ToString():"null")+", "+(this.bottomRight?this.bottomRight.ToString():"null")+")";};this.Copy=function(bw){if(!bw){return;}if(!this.topLeft){this.topLeft=new Msn.VE.Pixel();}if(!this.bottomRight){this.bottomRight=new Msn.VE.Pixel();}this.topLeft.Copy(bw.topLeft);this.bottomRight.Copy(bw.bottomRight);};};
Msn.VE.LineRegion=function(od,cH,nB){this.boundingRectangle=od;this.indices=cH;this.childRegions=nB;function iQ(){return"Bounding Rectangle: "+this.boundingRectangle[0].ToString()+" to "+this.boundingRectangle[1].ToString()+" | Indices: ["+cH+"]";};this.ToString=iQ;}
