﻿var searth=null;function SEarth(){this.aH="map.htm";this.map=null;this.Q=null;this.K=null;this.l=null;this.x= -122.420000;this.y=37.779170;this.z=15;this.k=new GLatLng(this.y,this.x);this.d=this.k;this.bQ=null;this.bN=null;this.bO=null;this.bP=null;this.mapType=0;this.wheelScroll=1;this.trafficLayer=0;this.streetviewLayer=1;this.streetviewMarker=0;this.L=this.trafficLayer?true:false;this.K=null;this.ge=null;this.heading=0;this.pitch=45;this.range=1000;this.orbitRate=0;this.controlOrbit=1;this.controlView=1;this.controlCity=1;this.controlGeocoder=0;this.ag=null;this.C=null;};SEarth.prototype.bH=function(){this.bK();this.bJ();this.k=new GLatLng(this.y,this.x);this.aG();this.by();this.B();this.bw();if(this.trafficLayer){this.L=true;this.aQ();}this.bx();};SEarth.prototype.bJ=function(){var aR=document.location.href.indexOf("?");if(aR>0){this.aH=document.location.href.substr(0,aR);}var g=document.location.search.substring(1);var bd=this.f(g,"mx");var bg=this.f(g,"my");var bf=this.f(g,"mz");var bl=this.f(g,"mt");var bk=this.f(g,"sv");var bc=this.f(g,"tr");var bh=this.f(g,"sm");var ba=this.f(g,"ws");var aX=this.f(g,"vh");var bj=this.f(g,"vp");var bi=this.f(g,"vr");var aS=this.f(g,"vo");var aW=this.f(g,"cg");var aP=this.f(g,"cc");var aU=this.f(g,"cv");var aV=this.f(g,"co");if(bd.length>0){this.x=parseFloat(bd);}if(bg.length>0){this.y=parseFloat(bg);}if(bf.length>0){this.z=parseInt(bf);}if(bl.length>0){this.mapType=parseInt(bl);}if(bk.length>0){this.streetviewLayer=parseInt(bk);}if(bc.length>0){this.trafficLayer=parseInt(bc);}if(bh.length>0){this.streetviewMarker=parseInt(bh);}if(ba.length>0){this.wheelScroll=parseInt(ba);}if(aX.length>0){this.heading=parseInt(aX);}if(bj.length>0){this.pitch=parseInt(bj);}if(bi.length>0){this.range=parseInt(bi);}if(aS.length>0){this.orbitRate=parseInt(aS);}if(aW.length>0){this.controlGeocoder=parseInt(aW);}if(aP.length>0){this.controlCity=parseInt(aP);}if(aU.length>0){this.controlView=parseInt(aU);}if(aV.length>0){this.controlOrbit=parseInt(aV);}this.k=new GLatLng(this.y,this.x);this.d=this.k;};function initPage(){searth=new SEarth();searth.bH();};function closePage(){GUnload();};function resizePage(){searth.bm();};SEarth.prototype.aE=function(){if(this.J==2){this.O=parseInt(document.documentElement.clientWidth);this.ae=parseInt(document.documentElement.clientHeight);}else{this.O=parseInt(window.innerWidth);this.ae=parseInt(window.innerHeight);}if(this.J==2){this.O-=1;}this.aB=this.O;this.am=68;this.aL=parseInt(this.O/2);this.aJ=this.ae-this.am;this.G=this.O-this.aL;this.af=Math.floor((this.ae-this.am)/2);this.aA=this.ae-this.af-this.am;this.P=this.G-100;this.aj=this.af-180;if(this.P>640){this.P=640;}if(this.P>this.aj*2){this.P=this.aj*2;}else{this.aj=parseInt(this.P/2);}};SEarth.prototype.by=function(){this.aE();var bF=searth.e("mainDiv");var j="<table cellspacing=0 cellpadding=2 style='width:100%'><tr valign='top'><td>";j+="<div style='float:left;padding:2px;height:20px;font-size:10px'>"+"<a target='_blank' href='http://www.streetcities.com/' title='Free Street View controls for your website'>Street Cities</a>"+"</div>";j+="<div id='permalinkDiv' style='float:left;padding:2px;height:20px;font-size:10px'>&nbsp;</div>";if(this.controlCity){j+="<div style='float:left;padding:2px;background-color:coral;height:20px; font-size:10px'> "+"&nbsp;";j+="<select style='font-size:10px' onchange='searth.changeCity(this)'>";j+="<option>---Select City---</option>";for(var i=0;i<this.v.length;i++){var ab=this.v[i];j+="<option>"+ab.ad+"</option>";}j+="</select>&nbsp;</div>";}if(this.controlGeocoder){j+="<div style='float:left;padding:2px;background-color:firebrick; height:20px; font-size:10px'> "+"<input type='text' id='geoAddress' style='font-size:10px;width:220px' title='Location or Address to Find' onkeypress='return searth.geoKeyPress(event)' /> "+"<input type='button' onclick='searth.geoFind()' value='Find' title='Find Location or Address' style='font-size:10px' /></span></div>";}j+="<div style='float:left;padding:2px;background-color:beige; height:20px; font-size:10px'> "+"<input type='checkbox' onclick='searth.streetviewClick(this)' "+(this.streetviewLayer?" checked='checked'":"")+" /> Street View &nbsp;"+"<input type='checkbox' onclick='searth.trafficClick(this)' "+(this.trafficLayer?" checked='checked'":"")+" /> Traffic &nbsp; </div>";if(this.controlView){j+="<div style='float:left;padding:2px;background-color:lightgreen; height:20px;font-size:10px'> "+"<select onchange='searth.selectPitch(this)' style='font-size:10px'>"+"<option>---Pitch---</option>"+"<option>90&deg; (Ground)</option>"+"<option>75&deg;</option>"+"<option>60&deg;</option>"+"<option>45&deg; (Default)</option>"+"<option>30&deg;</option>"+"<option>15&deg;</option>"+"<option>0&deg; (Above)</option>"+"</select> "+"<select onchange='searth.selectRange(this)' style='font-size:10px'>"+"<option>---Range---</option>"+"<option>50m</option>"+"<option>250m</option>"+"<option>1km</option>"+"<option>5km</option>"+"<option>50km</option>"+"<option>1000km</option>"+"<option>10,000km</option>"+"</select>"+"</div>";}if(this.controlOrbit){j+="<div style='float:left;padding:2px;background-color:lightskyblue;height:20px;font-size:10px'> "+"Orbit &nbsp;"+"<input id='orbitMinusBtn' type='button' value='-' style='font-size:10px;width:50px' onclick='searth.orbitMinus(this)' />"+"<input id='orbitPlusBtn' type='button' value='+' style='font-size:10px;width:50px' onclick='searth.orbitPlus(this)' />"+"<input id='orbitOffBtn' type='button' value='Off' style='font-size:10px;width:72px' onclick='searth.orbitOff(this)' />"+"</div>";}j+="</td></tr></table>";bF.innerHTML="<table cellspacing=0 cellpadding=0><tr valign=top><td>"+"<div id='panDiv' style='width:"+this.G+"px;height:"+this.aA+"px'></div>"+"<div id='mapDiv' style='width:"+this.G+"px;height:"+this.af+"px'></div>"+"</td><td>"+"<div id='map3d' style='width:"+this.G+"px;height:"+this.aJ+"px'></div>"+"</td></tr><tr><td colspan='2'>"+"<div id='optionDiv' style='width:"+this.aB+"px'>"+j+"</div>"+"</td></tr></table>";};SEarth.prototype.bm=function(){searth.aE();searth.e("map3d").style.width=this.aL+"px";searth.e("map3d").style.height=this.aJ+"px";searth.e("mapDiv").style.width=this.G+"px";searth.e("mapDiv").style.height=this.af+"px";searth.e("panDiv").style.width=this.G+"px";searth.e("panDiv").style.height=this.aA+"px";searth.e("optionDiv").style.width=this.aB+"px";if(searth.A){searth.A.checkResize();}if(searth.map){searth.map.checkResize();}};SEarth.prototype.bw=function(){this.bG=[G_NORMAL_MAP,G_SATELLITE_MAP,G_HYBRID_MAP,G_PHYSICAL_MAP];var aO=G_NORMAL_MAP;if(this.mapType>0&&this.mapType<4){aO=this.bG[this.mapType];}var bC={suppressZoomToBounds:true};var bE=this.e("mapDiv");this.map=new GMap2(bE,bC);this.map.addMapType(G_PHYSICAL_MAP);this.map.addControl(new GLargeMapControl3D());this.map.addControl(new GScaleControl());this.map.addControl(new GMenuMapTypeControl());this.map.enableDoubleClickZoom();this.map.enableContinuousZoom();if(this.wheelScroll>0){this.map.enableScrollWheelZoom();}this.map.setCenter(this.k,this.z);this.map.setMapType(aO);this.aF();this.D=true;this.at();GEvent.addListener(searth.map,"moveend",function(){searth.at();});var adManagerOptions={style:'adunit',channel:"5429192447",maxAdsOnMap:1};var adManager=new GAdsManager(this.map,"pub-5408854154696215",adManagerOptions);adManager.enable();};function getEarthInstanceCB(object){this.ge=object;};SEarth.prototype.bW=function(){var ah=this.e("sscDiv");if(ah){var au=new GControlPosition(G_ANCHOR_BOTTOM_RIGHT,new GSize(7,29));au.apply(ah);this.map.getContainer().appendChild(ah);}};SEarth.prototype.bR=function(){var ak=this.e("weatherDiv");if(ak){var au=new GControlPosition(G_ANCHOR_TOP_RIGHT,new GSize(7,29));au.apply(ak);this.map.getContainer().appendChild(ak);}};SEarth.prototype.at=function(){this.k=this.map.getCenter();this.z=this.map.getZoom();this.bS=this.map.getBounds();this.x=this.k.lng();this.y=this.k.lat();if(!this.D|| !this.l){this.d=this.k;}this.av();if(this.ge){this.C.set(this.d.lat(),this.d.lng(),0,this.ge.ALTITUDE_RELATIVE_TO_GROUND,this.heading,this.pitch,this.range);this.ge.getView().setAbstractView(this.C);}};SEarth.prototype.av=function(){var bb=this.aH+"?mx="+this.aK(this.d.lng(),6)+"&my="+this.aK(this.d.lat(),6)+"&mz="+this.z+"&vh="+parseInt(this.heading)+"&vp="+this.pitch+"&vr="+this.range;if(this.l){bb+="&sm=1";}var bB="<a target='_blank' title='Bookmark fullscreen map view' href='"+bb+"'>Permalink</a>";searth.e("permalinkDiv").innerHTML="&nbsp;&nbsp;"+bB+"&nbsp;&nbsp;";};SEarth.prototype.streetviewClick=function(a){var n=a.checked;if(!this.Q){this.aF();}if(n){this.D=true;this.map.addOverlay(this.Q);if(this.l){this.map.addOverlay(this.l);}}else{this.D=false;this.map.removeOverlay(this.Q);if(this.l){this.map.removeOverlay(this.l);}}};SEarth.prototype.aF=function(){var bD=this.e("panDiv");this.A=new GStreetviewPanorama(bD);this.Q=new GStreetviewOverlay();this.d=this.k;this.bo=new GStreetviewClient();this.ap="";GEvent.addListener(searth.map,"click",function(bL,H){if(H&&searth.D){searth.M(H);}});if(this.streetviewLayer){this.D=true;this.map.addOverlay(this.Q);}else{this.D=false;}this.M(this.d);};SEarth.prototype.M=function(R){if(this.D){this.bo.getNearestPanorama(R,initPanorama2);}};function initPanorama2(a){if(a==null){return;}var ar=a.location;if(ar==null){searth.ap="Image not available";searth.d=searth.l.getPoint();searth.T();return;}searth.d=ar.latlng;searth.ap=ar.description;searth.aw();searth.aM();searth.T();GEvent.addListener(searth.A,"yawchanged",function(a){searth.heading=parseFloat(a);searth.aw();if(searth.orbitRate==0){searth.T();}});GEvent.addListener(searth.A,"initialized",function(a){searth.d=a.latlng;searth.ap=a.description;searth.k=searth.d;searth.x=searth.k.lng();searth.y=searth.k.lat();searth.aw();searth.T();});};SEarth.prototype.aM=function(){setTimeout("searth.dsiw2()",1);};SEarth.prototype.dsiw2=function(){searth.A.setLocationAndPOV(searth.d,{"yaw":searth.heading});};SEarth.prototype.aw=function(){if(!this.l){var t=new GIcon();var an=Math.round(searth.heading/22.5)%16;var aq="http://maps.gstatic.com/mapfiles/cb/man_arrow-"+an+".png";t.image=aq;t.iconSize=new GSize(49,52);t.printImage=t.image;t.mozPrintImage=t.image;t.iconAnchor=new GPoint(25,36);t.infoWindowAnchor=new GPoint(25,6);var F=new GMarker(this.d,{"icon":t,"draggable":true});this.map.addOverlay(F);this.l=F;GEvent.addListener(F,"dragstart",function(){});GEvent.addListener(F,"dragend",function(){searth.d=F.getPoint();searth.M(searth.d);});GEvent.addListener(F,"click",function(){searth.aM();});}else{var an=Math.round(searth.heading/22.5)%16;var aq="http://maps.gstatic.com/mapfiles/cb/man_arrow-"+an+".png";this.l.setImage(aq);this.l.setPoint(this.d);}this.map.setCenter(this.d);this.av(this.d);};SEarth.prototype.trafficClick=function(a){this.L= !this.L;this.aQ();if(this.L){a.style.fontWeight="bold";}else{a.style.fontWeight="normal";}};SEarth.prototype.aQ=function(){if(!this.K){if(!this.L){return;}else{this.K=new GTrafficOverlay();this.map.addOverlay(this.K);}}if(this.L){this.K.show();}else{this.K.hide();}};SEarth.prototype.geoFind=function(){var be=this.e("geoAddress").value;var r=[];r[G_GEO_SUCCESS]="Success";r[G_GEO_MISSING_ADDRESS]="Missing Address: The address was either missing or had no value.";r[G_GEO_UNKNOWN_ADDRESS]="Unknown Address:  No corresponding geographic location could be found for the specified address.";r[G_GEO_UNAVAILABLE_ADDRESS]="Unavailable Address:  The geocode for the given address cannot be returned due to legal or contractual reasons.";r[G_GEO_BAD_KEY]="Bad Key: The API key is either invalid or does not match the domain for which it was given";r[G_GEO_TOO_MANY_QUERIES]="Too Many Queries: The daily geocoding quota for this site has been exceeded.";r[G_GEO_SERVER_ERROR]="Server error: The geocoding request could not be successfully processed.";var aZ=new GClientGeocoder(new GGeocodeCache());aZ.getLatLng(be,function(R){searth.orbitRate=0;searth.B();searth.map.closeInfoWindow();if(R){searth.range=1000;searth.heading=0;searth.pitch=45;searth.at();searth.orbitRate=0;searth.B();searth.map.setCenter(R,12);searth.M(R);}else{var I=aZ.getCache().get(be);var ax="";if(I){var ax="Error "+I.Status.code+" : ";if(r[I.Status.code]){ax+=r[I.Status.code];}alert(ax);}}});};SEarth.prototype.geoKeyPress=function(bs){var bA=bs.keyCode;if(bA==13){this.geoFind();return false;}return true;};SEarth.prototype.bx=function(){google.earth.createInstance("map3d",searth.initCallback,searth.failureCallback);};SEarth.prototype.initCallback=function(object){searth.ge=object;searth.ge.getWindow().setVisibility(true);searth.ge.getLayerRoot().enableLayerById(searth.ge.LAYER_BUILDINGS,true);searth.ge.getLayerRoot().enableLayerById(searth.ge.LAYER_ROADS,true);searth.ge.getLayerRoot().enableLayerById(searth.ge.LAYER_BORDERS,true);var options=searth.ge.getOptions();options.setStatusBarVisibility(true);searth.ge.getNavigationControl().setVisibility(searth.ge.VISIBILITY_SHOW);searth.T();searth.bI();};SEarth.prototype.failureCallback=function(error){alert("error loading GE plugin");};SEarth.prototype.T=function(){if(!this.ge){return;}var curView=la=this.ge.getView().copyAsLookAt(this.ge.ALTITUDE_RELATIVE_TO_GROUND);if(curView){}var la=this.ge.createLookAt('');var x=this.d.lng();var y=this.d.lat();la.set(y,x,0,this.ge.ALTITUDE_RELATIVE_TO_GROUND,this.heading,this.pitch,this.range);this.ge.getView().setAbstractView(la);if(this.l){this.bp();}};SEarth.prototype.aI=function(){var curView=la=this.ge.getView().copyAsLookAt(this.ge.ALTITUDE_RELATIVE_TO_GROUND);var la=this.ge.createLookAt('');var x=this.d.lng();var y=this.d.lat();la.set(y,x,0,this.ge.ALTITUDE_RELATIVE_TO_GROUND,this.heading,this.pitch,this.range);this.ge.getView().setAbstractView(la);};SEarth.prototype.bp=function(){if(this.ag==null){var placemark=this.ge.createPlacemark('');placemark.setName("");placemark.setDescription("Street View");this.ge.getFeatures().appendChild(placemark);var normal=this.ge.createIcon('');normal.setHref('http://maps.gstatic.com/mapfiles/cb/man_arrow-0.png');var iconNormal=this.ge.createStyle('');iconNormal.getIconStyle().setIcon(normal);var highlight=this.ge.createIcon('');highlight.setHref('http://maps.gstatic.com/mapfiles/cb/man_arrow-0.png');var iconHighlight=this.ge.createStyle('');iconHighlight.getIconStyle().setIcon(highlight);var styleMap=this.ge.createStyleMap('');styleMap.setNormalStyle(iconNormal);styleMap.setHighlightStyle(iconHighlight);placemark.setStyleSelector(styleMap);this.ag=placemark;}var la=this.ge.getView().copyAsLookAt(this.ge.ALTITUDE_RELATIVE_TO_GROUND);var H=this.ge.createPoint('');var x=this.d.lng();var y=this.d.lat();H.setLatitude(y);H.setLongitude(x);this.ag.setGeometry(H);};SEarth.prototype.bI=function(){this.C=this.ge.createLookAt('');this.C.set(this.y,this.x,0,this.ge.ALTITUDE_RELATIVE_TO_GROUND,this.heading,this.pitch,this.range);this.ge.getView().setAbstractView(this.C);setTimeout("searth.orbitStep()",5000);};SEarth.prototype.orbitPlus=function(a){this.orbitRate++;if(this.orbitRate>40){this.orbitRate=40;}this.B();};SEarth.prototype.orbitMinus=function(a){this.orbitRate--;if(this.orbitRate< -40){this.orbitRate= -40;}this.B();};SEarth.prototype.orbitOff=function(a){this.orbitRate=0;this.B();};SEarth.prototype.orbitStep=function(){if(this.orbitRate!=0){var curView=this.ge.getView().copyAsLookAt(this.ge.ALTITUDE_RELATIVE_TO_GROUND);this.C.set(this.d.lat(),this.d.lng(),0,this.ge.ALTITUDE_RELATIVE_TO_GROUND,this.heading,this.pitch,this.range);this.ge.getView().setAbstractView(this.C);this.heading+=this.orbitRate;if(this.heading>360){this.heading=0;}if(this.A){this.A.setPOV({"yaw":searth.heading});}}setTimeout("searth.orbitStep()",200);};SEarth.prototype.B=function(a){var ay=this.e("orbitPlusBtn");var as=this.e("orbitMinusBtn");var aN=this.e("orbitOffBtn");if(ay){ay.style.fontWeight=(this.orbitRate>0)?"bold":"normal";ay.value=(this.orbitRate>0)?("+"+this.orbitRate):"+";}if(as){as.style.fontWeight=(this.orbitRate<0)?"bold":"normal";as.value=(this.orbitRate<0)?("-"+this.orbitRate):"-";}if(aN){aN.style.fontWeight=(this.orbitRate==0)?"bold":"normal";}this.av();};SEarth.prototype.selectPitch=function(a){var bv=[90,75,60,45,30,15,0];var U=a.selectedIndex-1;if(U>=0){this.pitch=bv[U];this.aI();}};SEarth.prototype.selectRange=function(a){var bu=[50,250,1000,5000,50000,1000000,10000000];var U=a.selectedIndex-1;if(U>=0){this.range=bu[U];this.aI();}};SEarth.prototype.e=function(id){return document.getElementById(id);};SEarth.prototype.bU=function(a){GLog.write(a);};SEarth.prototype.bK=function(){if(navigator.userAgent.indexOf("Firefox")!= -1){this.J=1;}else if(navigator.userAgent.indexOf("MSIE")!= -1){this.J=2;}else if(navigator.userAgent.indexOf("Safari")!= -1){this.J=3;}else if(navigator.userAgent.indexOf("Opera")!= -1){this.J=4;}};SEarth.prototype.bT=function(aY){var ac="";for(var i=0;i<aY.length;i++){var c=aY.substr(i,1);if(c==' '||c=='+'){ac+="&nbsp;";}else if(c=='-'){ac+=(this.J==2?"&nbsp;":"-");}else{ac+=c;}}return ac;};SEarth.prototype.aK=function(pFloat,pDp){var m=Math.pow(10,pDp);return parseInt(pFloat*m,10)/m;};SEarth.prototype.f=function(V,aT){var bz=aT+"=";if(V.length>0){var aa=V.indexOf(aT);if(aa!= -1){aa+=bz.length;var ao=V.indexOf("&",aa);if(ao== -1){ao=V.length;}return unescape(V.substring(aa,ao));}}return "";};SEarth.prototype.bV=function(bq){var bt=Math.floor(Math.random()*bq);return bt;};var cityList=[["albanyNY","Albany","NY ",840,-73.755260,42.651450],["alburquerqueNM","Alburquerque","NM ",840,-106.649100,35.084910],["anchorageAK","Anchorage","AK ",840,-149.857800,61.219540],["annarborMI","Ann Arbor","MI ",840,-83.733280,42.277420],["atlantaGA","Atlanta","GA ",840,-84.389660,33.754490],["austinTX","Austin","TX ",840,-97.742610,30.268650],["bakersfieldCA","Bakersfield","CA ",840,-119.018900,35.373410],["bocarantonFL","Boca Ranton","FL ",840,-80.114720,26.367480],["boiseID","Boise","ID ",840,-116.196900,43.609610],["bostonMA","Boston","MA ",840,-71.056600,42.358440],["buffaloNY","Buffalo","NY ",840,-78.877880,42.886880],["capecoralFL","Cape Coral","FL ",840,-81.974140,26.652300],["charlotteNC","Charlotte","NC ",840,-80.845840,35.231400],["chicagoIL","Chicago","IL ",840,-87.632450,41.884160],["cincinnatiOH","Cincinnati","OH ",840,-84.517490,39.099230],["clevelandOH","Cleveland","OH ",840,-81.691510,41.505550],["columbiaSC","Columbia","SC ",840,-81.035300,34.000690],["columbusOH","Columbus","OH ",840,-83.000680,39.962210],["dallasTX","Dallas","TX ",840,-96.795590,32.778090],["daytonOH","Dayton","OH ",840,-84.205100,39.762350],["denverCO","Denver","CO ",840,-104.992200,39.740060],["detroitMI","Detroit","MI ",840,-83.047530,42.331690],["fairbanksAK","Fairbanks","AK ",840,-147.722000,64.845990],["fortlauderdaleFL","Fort Lauderdale","FL ",840,-80.129680,26.137290],["fresnoCA","Fresno","CA ",840,-119.789400,36.743310],["greenvilleSC","Greenville","SC ",840,-82.391240,34.854970],["houstonTX","Houston","TX ",840,-95.369570,29.760800],["huntsvilleAL","Huntsville","AL ",840,-86.600390,34.740260],["indianapolisIN","Indianapolis","IN ",840,-86.149900,39.766960],["jacksonMS","Jackson","MS ",840,-90.177950,32.312210],["jacksonvilleFL","Jacksonville","FL ",840,-81.657930,30.326220],["juneauAK","Juneau","AK ",840,-134.583500,58.369100],["kansascityMO","Kansas City","MO ",840,-94.582960,39.104880],["knoxvilleTN","Knoxville","TN ",840,-83.924380,35.966570],["lasvegasNV","Las Vegas","NV ",840,-115.139700,36.171860],["lexingtonKY","Lexington","KY ",840,-84.499840,38.048900],["lincolnNE","Lincoln","NE ",840,-96.702620,40.813630],["littlerockAR","Little Rock","AR ",840,-92.274440,34.752090],["losangelesCA","Los Angeles","CA ",840,-118.244500,34.052660],["louisvilleKY","Louisville","KY ",840,-85.751540,38.256070],["madisonWI","Madison","WI ",840,-89.385700,43.074300],["manchesterNH","Manchester","NH ",840,-71.465820,42.992600],["miamiFL","Miami","FL ",840,-80.209590,25.798270],["milwaukeeWI","Milwaukee","WI ",840,-87.906850,43.041790],["minneapolisMN","Minneapolis","MN ",840,-93.265180,44.978570],["nashvilleTN","Nashville","TN ",840,-86.778120,36.169110],["newarkNJ","Newark","NJ ",840,-74.172250,40.735580],["newyorkNY","New York","NY ",840,-74.007000,40.714500],["oklahomacityOK","Oklahoma City","OK ",840,-97.459140,35.493140],["orlandoFL","Orlando","FL ",840,-81.372990,28.564020],["philadelphiaPA","Philadelphia","PA ",840,-75.162030,39.952200],["phoenixAZ","Phoenix","AZ ",840,-112.082500,33.447680],["pittsburghPA","Pittsburgh","PA ",840,-79.997390,40.438450],["portlandOR","Portland","OR ",840,-122.675600,45.511840],["providenceRI","Providence","RI ",840,-71.411940,41.823870],["raleighNC","Raleigh","NC ",840,-78.642600,35.785490],["renoNV","Reno","NV ",840,-119.814400,39.530370],["richmondVA","Richmond","VA ",840,-77.433590,37.541960],["rochesterNY","Rochester","NY ",840,-77.612550,43.155710],["rockfordIL","Rockford","IL ",840,-89.077480,42.267990],["sacramentoCA","Sacramento","CA ",840,-121.487100,38.573660],["saltlakeUT","Salt Lake","UT ",840,-111.888300,40.759550],["sanantonioTX","San Antonio","TX ",840,-98.494540,29.424570],["sandiegoCA","San Diego","CA ",840,-117.162300,32.715680],["sanfranciscoCA","San Francisco","CA ",840,-122.420000,37.779170],["sarasotaFL","Sarasota","FL ",840,-82.527890,27.338540],["spokaneWA","Spokane","WA ",840,-117.412200,47.658000],["springfieldMA","Springfield","MA ",840,-72.585140,42.102610],["st.louisMO","St. Louis","MO ",840,-90.198410,38.627520],["stocktonCA","Stockton","CA ",840,-121.291400,37.958690],["syracuseNY","Syracuse","NY ",840,-76.147380,43.050830],["tampaFL","Tampa","FL ",840,-82.460020,27.947620],["toldeoOH","Toldeo","OH ",840,-83.577780,41.652920],["topekaKS","Topeka","KS ",840,-95.681530,39.047420],["tucsonAZ","Tucson","AZ ",840,-110.969800,32.221510],["tulsaOK","Tulsa","OK ",840,-95.975660,36.133350],["virginiabeachVA","Virginia Beach","VA ",840,-75.978710,36.859220],["westpalmbeachFL","West Palm Beach","FL ",840,-80.134680,26.746270],["winston-salemNC","Winston-Salem","NC ",840,-80.243420,36.094800],["yosemiteCA","Yosemite","CA ",840,-119.606400,37.739090]];function SPlace(){this.al="";this.ad="";this.x=0;this.y=0;this.az=null;};SPlace.prototype.aD=function(a){this.al=a[0];this.ad=a[1]+", "+a[2];this.bM=a[2];this.x=a[4];this.y=a[5];this.az=new GLatLng(this.y,this.x);};SEarth.prototype.aC=function(p1,p2){var v1=p1.ad;var v2=p2.ad;var I=((v1<v2)? -1:((v1>v2)?1:0));return I;};SEarth.prototype.aG=function(){this.v=[];this.ai=[];for(var i=0;i<cityList.length;i++){var o=new SPlace();o.aD(cityList[i]);o.bn=i;this.v.push(o);this.ai[o.al]=o;}this.v.sort(this.aC);};SEarth.prototype.aG=function(){this.v=[];this.ai=[];for(var i=0;i<cityList.length;i++){var o=new SPlace();o.aD(cityList[i]);o.bn=i;this.v.push(o);this.ai[o.al]=o;}this.v.sort(this.aC);};SEarth.prototype.changeCity=function(a){if(a.selectedIndex>0){var ab=this.v[a.selectedIndex-1];this.orbitRate=0;this.B();this.map.setCenter(ab.az,14);searth.M(ab.az);}}
