function getHTTPObject() { 
  var xmlhttp; /*@cc_on 
  @if (@_jscript_version >= 5)
	try { 
	  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); 
	} catch (e) { 
	  try { 
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 
	  } catch (E) { 
		xmlhttp = false; 
	  } 
	} 
  @else 
	xmlhttp = false; 
  @end @*/  
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') { 
	try { 
	  xmlhttp = new XMLHttpRequest(); 
	} catch (e) { 
	  xmlhttp = false; 
	} 
  } 
  return xmlhttp; 
} 


maxpoints=100;
var map=null;
var geocoder=null;
var mgr=null;
function load(_2,_3,_4){
if(GBrowserIsCompatible()){
map=new GMap2(document.getElementById("map"));
map.addMapType(G_PHYSICAL_MAP);
geocoder=new GClientGeocoder();
map.addControl(new mmZoomControl(),new GControlPosition(G_ANCHOR_TOP_LEFT,new GSize(17,58)));
map.addControl(new GMapTypeControl());
map.enableDoubleClickZoom();
if(init!=""){
init=init.split(",");
map.setCenter(new GLatLng(parseFloat(init[0]),parseFloat(init[1])),parseInt(init[2]));
}else{
if(splat!=""){
if(spzm==""){
spzm=15;
}
map.setCenter(new GLatLng(parseFloat(splat),parseFloat(splng)),parseInt(spzm));
}else{
map.setCenter(new GLatLng(38.358,-96.855),4);
}
}
if(_4=="G_SATELLITE_MAP"){
map.setMapType(G_SATELLITE_MAP);
}
if(_4=="G_HYBRID_MAP"){
map.setMapType(G_HYBRID_MAP);
}
var _5=map.getCenter();
document.getElementById("center").value=_5.toString();
var _6=map.getZoom();
document.getElementById("zlevel").value=_6.toString();
var _7=map.getCurrentMapType();
if(_7==G_NORMAL_MAP){
document.getElementById("maptyp").value="G_NORMAL_MAP";
}
if(_7==G_SATELLITE_MAP){
document.getElementById("maptyp").value="G_SATELLITE_MAP";
}
if(_7==G_HYBRID_MAP){
document.getElementById("maptyp").value="G_HYBRID_MAP";
}
mgr=new MarkerManager(map);
var _8,_9;
function getMousePos(e){
if(!e){
var e=window.event||window.Event;
}
if("undefined"!=typeof e.pageX){
_8=e.pageX;
_9=e.pageY;
}else{
_8=e.clientX+document.body.scrollLeft;
_9=e.clientY+document.body.scrollTop;
}
}
if(window.Event&&document.captureEvents){
document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove=getMousePos;
GEvent.addListener(map,"click",function(_b,_c){
if(_b){
if(isSwitch){
}else{
try{
tpc="";
idf="";
tpc=_b.getTitle().split("[")[1].split("]")[0];
idf=_b.getTitle().split("[")[2].split("]")[0];
window.open("re32launch.php?idf="+idf+"&tpc="+tpc+"&thm="+themeId+"&agt="+agt);
}
catch(err){
}
}
}else{
}
});
GEvent.addListener(map,"moveend",function(){
var _d=map.getCenter();
var _e=map.getZoom();
var _f=map.getCurrentMapType();
document.getElementById("center").value=_d.toString();
document.getElementById("zlevel").value=_e.toString();
if(_f==G_NORMAL_MAP){
document.getElementById("maptyp").value="G_NORMAL_MAP";
}
if(_f==G_SATELLITE_MAP){
document.getElementById("maptyp").value="G_SATELLITE_MAP";
}
if(_f==G_HYBRID_MAP){
document.getElementById("maptyp").value="G_HYBRID_MAP";
}
center_write();
forceFade();
makeSearchString();
});
}
}
function addAddressToMap(_10){
if(!_10||_10.Status.code!=200){
alert("We're sorry!\n'"+document.getElementById("address").value+"' couldn't be located.\nPlease try entering another location.");
}else{
place=_10.Placemark[0];
point=new GLatLng(place.Point.coordinates[1],place.Point.coordinates[0]);
map.setCenter(point,13);
marker=new GMarker(point);
map.addOverlay(marker);
marker.openInfoWindowHtml("<span class='mdHeader'><br>"+place.address+"</span>");
}
}
function showAddress(_11){
geocoder.getLocations(_11,addAddressToMap);
}
var http=getHTTPObject();
var http2=getHTTPObject();
var http3=getHTTPObject();
var http4=getHTTPObject();
var http5=getHTTPObject();
whereHold="";
topicHold="";
redoOnce=true;
function doAjax(_12,_13){
document.getElementById("tooMany").style.visibility="hidden";
try{
if(typeof (_13)=="undefined"){
_13="";
}
document.getElementById("loading").style.visibility="visible";
if(document.getElementById("tlist").value!=mainTopic+","){
document.getElementById("mapstatus").innerHTML="<span class='regbold' style='padding:4px;background-color:red;color:#FFFFFF'><b>Loading places...</b></span>";
}else{
document.getElementById("mapstatus").innerHTML="<span class='regbold' style='padding:4px;background-color:red;color:#FFFFFF'><b>Loading properties...</b></span>";
}
var _14=map.getBounds();
var _15=_14.getSouthWest().lat();
var _16=_14.getNorthEast().lat();
var _17=_14.getSouthWest().lng();
var _18=_14.getNorthEast().lng();
if(showColors){
http.open("GET","re32ajax_print.php?topicVal="+_13+"&lvl="+map.getZoom().toString()+"&showColors="+mainTopic+"&whereFor="+mainTopic+"&whereVal="+_12+"&bounds="+_15+","+_16+","+_17+","+_18+"&maxpoints="+maxpoints,true);
}else{
http.open("GET","re32ajax_print.php?topicVal="+_13+"&lvl="+map.getZoom().toString()+"&whereFor="+mainTopic+"&whereVal="+_12+"&bounds="+_15+","+_16+","+_17+","+_18+"&maxpoints="+maxpoints,true);
}
http.onreadystatechange=handleHttpResponse;
http.send(null);
}
catch(err){
if(redoOnce){
whereHold=_12;
topicHold=_13;
window.setTimeout("doAjax(whereHold,topicHold)",50);
redoOnce=false;
}
}
}
function doPropSearch(_19,_1a){
cursorNum=0;
doAjax(_19,_1a);
}
var http3_isBusy=false;
var http5_isBusy=false;
function doAjaxProp(idf,tpc,swb){
try{
if(idf!=""){
http3.open("GET","re32ajax.php?topicVal="+document.getElementById("tlist").value+"&lvl="+map.getZoom().toString()+"&idf="+idf+"&tpc="+tpc+"&swb="+swb+"&whereFor="+mainTopic+"&whereVal="+document.getElementById("sqlstr").value,true);
http3_isBusy=true;
http3.onreadystatechange=handleHttpResponseProp;
http3.send(null);
}
}
catch(err){
http3.onreadystatechange=function(){
};
http3.abort();
idfHold=idf;
tpcHold=tpc;
swbHold=swb;
window.setTimeout("doAjaxProp(idfHold, tpcHold, swbHold)",500);
}
}
function doAjaxPropSwitch(idf,tpc,swb){
try{
if(idf!=""){
http5.open("GET","re32ajax.php?topicVal="+document.getElementById("tlist").value+"&lvl="+map.getZoom().toString()+"&idg="+idf+"&tpc="+tpc+"&swb="+swb+"&whereFor="+mainTopic+"&whereVal="+document.getElementById("sqlstr").value,true);
http5_isBusy=true;
http5.onreadystatechange=handleHttpResponsePropSwitch;
http5.send(null);
}
}
catch(err){
http5.onreadystatechange=function(){
};
http5.abort();
idfHold=idf;
tpcHold=tpc;
swbHold=swb;
window.setTimeout("doAjaxPropSwitch(idfHold, tpcHold, swbHold)",500);
}
}
var idfHold="";
var tpcHold="";
var swbHold="";
var isSwitch=false;
function handleHttpResponseProp(){
if(http3.readyState==4){
if(http3.responseText!=""){
http3_isBusy=false;
results=http3.responseText.split("|");
swbdwel=results[12];
if(swbdwel==1){
dbuild="";
dbuild+="<b>"+results[1]+"</b><br>";
if(trim(results[2])!=""){
dbuild+=results[2]+"<br>";
}
if(results[3]!=""){
dbuild+=results[3]+"<br>";
}
if(results[4]!=""){
dbuild+=results[4]+"<br>";
}
if(results[5]!=""){
dbuild+=results[5]+"<br>";
}
if(results[6]!=""){
dbuild+=results[6]+"<br>";
}
if(results[7]!=""){
dbuild+=results[7]+"<br>";
}
dbuild+="<span class='smalltext'>Click on link for more details</span><br>";
if(results[10]!="1"){
dbuild+="<span class='smalltext' style='color:red;'>"+getGeotext(results[10])+"</span><br>";
}
if(results[9]!=""){
dbuild+="<img src='"+results[9]+"' width='180' height='135' style='margin:10px;' onerror=\"this.src='http://image1.mapmuse.com/images/all/blank.gif';\" onload='fixPifr();'>";
}
document.getElementById("pdiv").innerHTML=dbuild;
fixPifr();
}else{
pdivDn();
isSwitch=false;
document.getElementById("actvhdr").innerHTML="<table width='100%'><tr><td>"+results[1]+"</td><td align='right'><img src='http://image1.mapmuse.com/images/all/forceFade.gif' border='0' style='cursor:pointer;' onclick='forceFade();' alt='Close'></td></tr></table><span style='visibility:hidden;position:absolute;left:0px;top:0px;'>"+results[0]+"</span>";
dbuild="";
if(trim(results[2])!=""){
dbuild+=results[2]+"<br>";
}
if(results[3]!=""){
dbuild+=results[3]+"<br>";
}
if(results[4]!=""){
dbuild+=results[4]+"<br>";
}
if(results[5]!=""){
dbuild+=results[5]+"<br>";
}
if(results[6]!=""){
dbuild+=results[6]+"<br>";
}
if(results[7]!=""){
dbuild+=results[7]+"<br>";
}
dbuild+="<span class='smalltext'>Click on icon for more details</span><br>";
dbuild+="<span id='swbmsg' class='plainsmalltext' style='line-height:1px;'>Checking for other places here...</span><br>";
if(results[10]!="1"){
dbuild+="<span class='smalltext' style='color:red;'>"+getGeotext(results[10])+"</span><br>";
}
if(results[9]!=""){
dbuild+="<img src='"+results[9]+"' width='180' height='135' style='margin:10px;' onerror=\"this.src='http://image1.mapmuse.com/images/all/blank.gif';\" onload='fixPifr();'><br>";
}
document.getElementById("actvbdy").innerHTML=dbuild;
oIf.style.height=oDv.offsetHeight+"px";
oIf.style.width=oDv.offsetWidth+"px";
doAjaxPropSwitch(results[0],results[13],swbdwel);
}
}else{
}
}
}
function handleHttpResponsePropSwitch(){
if(http5.readyState==4){
if(http5.responseText!=""){
http5_isBusy=false;
results=http5.responseText.split("|");
swbdwel=results[12];
if(document.getElementById("swbmsg")){
document.getElementById("swbmsg").innerHTML="&nbsp;";
}
if(trim(results[11])!=""){
if(document.getElementById("actvhdr").innerHTML.indexOf(results[0])>-1){
if(swbdwel==0){
pdivDn();
isSwitch=true;
document.getElementById("actvhdr").innerHTML="<table width='100%'><tr><td>"+(results[11].split("##").length-1)+" places here</td><td align='right'><a href='javascript:forceFade();'><img src='http://image1.mapmuse.com/images/all/forceFade.gif' border='0'></a></td></tr></table>";
swa=results[11].split("##");
swo="";
for(i=0,max=swa.length-1;i<max;i++){
var _21=swa[i].split("~")[0];
var _22=swa[i].split("~")[1];
if(spid==""){
swo+="<a href='re32launch.php?idf="+_21+"&tpc="+_22+"&thm="+themeId+"&agt="+agt+"' target='popwin' onmouseover=\"pdivUp(event, '"+_21+"', '"+_22+"');\" onmouseout=\"pdivDn();\">"+swa[i].split("~")[2]+"</a><br />";
}else{
if((spid!=_21)||(sptp!=_22)){
swo+="<a href='re32launch.php?idf="+_21+"&tpc="+_22+"&thm="+themeId+"&agt="+agt+"' target='popwin' onmouseover=\"pdivUp(event, '"+_21+"', '"+_22+"');\" onmouseout=\"pdivDn();\">"+swa[i].split("~")[2]+"</a><br />";
}else{
swo="<a href='re32launch.php?idf="+_21+"&tpc="+_22+"&thm="+themeId+"&agt="+agt+"' target='popwin' onmouseover=\"pdivUp(event, '"+_21+"', '"+_22+"');\" onmouseout=\"pdivDn();\">Featured Property</a><br />"+swo;
}
}
}
swo="<a href='' id='flink'></a>"+swo;
document.getElementById("actvbdy").innerHTML=swo;
oIf.style.height=oDv.offsetHeight+"px";
oIf.style.width=oDv.offsetWidth+"px";
document.getElementById("flink").focus();
}
}
}
}else{
}
}
}
function getGeotext(gcd){
var _24="";
if(gcd=="0"){
_24="Couldn't find address;<br>Location may be inaccurate";
}
if(gcd=="3"){
_24="Couldn't find address;<br>Centered on zip code";
}
if(gcd=="7"){
_24="Couldn't find address;<br>Centered on city";
}
if(gcd=="9"){
_24="Address in newly developed area<br>street data not yet available";
}
if(gcd=="2"){
_24="Couldn't find address;<br>Located in general area";
}
if(gcd=="4"){
_24="Located by a secondary source";
}
if(gcd=="5"){
_24="Location coordinates provided<br>by the U.S. Geological Survey";
}
return _24;
}
function pdivUp(e,idf,tpc){
if(document.getElementById("pdiv").style.visibility=="hidden"){
document.getElementById("pdiv").innerHTML="Loading...";
doAjaxProp(idf,tpc,1);
}
var ox,oy;
if(self.pageYOffset){
ox=self.pageXOffset;
oy=self.pageYOffset;
}else{
if(document.documentElement&&document.documentElement.scrollTop){
ox=document.documentElement.scrollLeft;
oy=document.documentElement.scrollTop;
}else{
if(document.body){
ox=document.body.scrollLeft;
oy=document.body.scrollTop;
}
}
}
ox=parseInt(ox);
oy=parseInt(oy);
var _2a=document.getElementById("pdiv");
_2a.style.left=(e.clientX+25+ox)+"px";
_2a.style.top=(e.clientY-20+oy)+"px";
_2a.style.zIndex="2000";
_2a.style.visibility="visible";
var _2b=document.getElementById("pifr");
_2b.style.left=(e.clientX+25+ox)+"px";
_2b.style.top=(e.clientY-20+oy)+"px";
_2b.style.height=(_2a.offsetHeight-10)+"px";
_2b.style.width=(_2a.offsetWidth-10)+"px";
_2b.style.zIndex="1999";
_2b.style.visibility="visible";
}
function pdivDn(){
document.getElementById("pdiv").style.visibility="hidden";
document.getElementById("pifr").style.visibility="hidden";
document.getElementById("pdiv").style.zIndex="0";
document.getElementById("pifr").style.zIndex="0";
}
function fixPifr(){
var _2c=document.getElementById("pdiv");
var _2d=document.getElementById("pifr");
_2d.style.height=(_2c.offsetHeight-10)+"px";
_2d.style.width=(_2c.offsetWidth-10)+"px";
}
var drawCount=0;
var nm=new GIcon();
nm.shadow="http://image1.mapmuse.com/images/all/icon_letterShadow.png";
nm.iconSize=new GSize(17,17);
nm.shadowSize=new GSize(20,20);
nm.iconAnchor=new GPoint(4,4);
nm.infoWindowAnchor=new GPoint(8,8);
var icon_star=new GIcon();
icon_star.image="http://image1.mapmuse.com/images/all/icon_star.png";
icon_star.shadow="http://image1.mapmuse.com/images/all/icon_shadow.png";
icon_star.iconSize=new GSize(24,24);
icon_star.shadowSize=new GSize(24,24);
icon_star.iconAnchor=new GPoint(9,9);
icon_star.infoWindowAnchor=new GPoint(12,12);
function pickIcon(num,col){
if(col==1){
col="Blue";
}
if(col==2){
col="Red";
}
if(col==3){
col="Yellow";
}
if(col==4){
col="Gray";
}
if(col==5){
col="Green";
}
if(col>=6){
col="Purple";
}
var ic=new GIcon(nm,"http://image.mapmuse.com/images/icons/number"+col+"_"+num+".png");
return ic;
}
function pickIconString(num,col){
if(col==1){
col="Blue";
}
if(col==2){
col="Red";
}
if(col==3){
col="Yellow";
}
if(col==4){
col="Gray";
}
if(col==5){
col="Green";
}
if(col>=6){
col="Purple";
}
var ic="http://image.mapmuse.com/images/icons/number"+col+"_"+num+".gif";
return ic;
}
function pickIconSm(tid){
}
function handleHttpResponse(){
if(http.readyState==4){
if(trim(http.responseText)!=""){
theList="<table width='100%' cellpadding='4' cellspacing='0'>";
var _35=http.responseText.split("[][]");
var _36=_35[0];
var _37=_35[1];
redoOnce=true;
wording="roperties";
wording_sing="roperty";
if(document.getElementById("tlist").value!=mainTopic+","){
wording="laces";
wording_sing="lace";
}
mgr.clearMarkers();
rs=_36.split("^");
rl=_37.split("^");
ct=rs[0];
if(spid!=""){
var _38=[];
useIco=icon_star;
_38.push(new GMarker(new GLatLng(parseFloat(splat),parseFloat(splng)),{title:"header=["+sptp+"] body=["+spid+"]",icon:useIco}));
mgr.addMarkers(_38,1);
if((ct==0)||(ct>maxpoints)){
ct++;
}
theList+="<tr><td colspan='4' class='mdHeader'>Featured Property</td></tr><tr><td colspan='4' height='4'></td></tr>";
theList+="<tr><td valign='top'><img src='http://image.mapmuse.com/images/all/singlepoint.gif'></td><td valign='top'><span id='spl_photo'></span></td><td valign='top'><span id='spl_1'></span></td><td valign='top'><span id='spl_2'></span></td></tr>";
}
if((ct>0)&&(ct<=maxpoints)){
for(i=1;i<rs.length-1;i++){
pt=rs[i].split("::");
if((pt[1]!="")&&(typeof (pt[1])!="undefined")){
theList+="<tr><td colspan='4' height='12'></td></tr><tr><td colspan='4' class='mdHeader'>"+tNames[pt[0]]+"</td></tr><tr><td colspan='4' height='4'></td></tr>";
var _38=[];
rsx=pt[1].split("~");
rlx=rl[i-1].split("~");
for(j=0,max=rsx.length;j<max;j++){
if(trim(rsx[j])!=""){
rlxEntry=rlx[j+1].split("{}");
for(k=0,kmax=rlxEntry.length;k<kmax;k++){
rlxData=rlxEntry[k].split("|");
theList+="<tr><td valign='top'><img src='"+pickIconString((j+1),i)+"'></td><td valign='top'>"+writeRlxPhoto(rlxData[0])+"</td><td valign='top'>"+writeRlx1(rlxData[1],rlxData[2],rlxData[3],rlxData[7],pt[0])+"</td><td valign='top'>"+writeRlx2(rlxData[4],rlxData[5],rlxData[6])+"</td></tr>";
}
result=rsx[j].split("|");
useIcoTemp=pickIcon((j+1),i);
_38.push(new GMarker(new GLatLng(result[1],result[2]),{title:"header=["+pt[0]+"] body=["+result[0]+"]",icon:useIcoTemp}));
}
}
mgr.addMarkers(_38,1);
}
}
}else{
theList+="<td colspan='4' height='4'></td></tr><tr><td colspan='4' class='reg'>The printable map can display up to 100 properties and places. <br>The current map exceeds this limit - please zoom in to continue.</td></tr><tr><td colspan='4' height='4'></td></tr>";
}
mgr.refresh();
document.getElementById("loading").style.visibility="hidden";
if(ct>maxpoints){
document.getElementById("mapstatus").innerHTML="<span class='regbold' style='padding:4px;background-color:#000000;color:#FFFFFF'><b>"+ct+" p"+wording+" on this map.</b></span>&nbsp;&nbsp;P"+wording+" appear when fewer than "+maxpoints+" are on the map.&nbsp;&nbsp;Zoom in or refine your search.";
}else{
if(ct==0){
document.getElementById("mapstatus").innerHTML="<span class='regbold' style='padding:4px;background-color:#000000;color:#FFFFFF'><b>0 p"+wording+" on this map.</b></span>&nbsp;&nbsp;Zoom out or change your search to view p"+wording+".";
}else{
if(ct==1){
document.getElementById("mapstatus").innerHTML="<span class='regbold' style='padding:4px;background-color:#000000;color:#FFFFFF'><b>Done loading 1 p"+wording_sing+".</b></span>";
}else{
document.getElementById("mapstatus").innerHTML="<span class='regbold' style='padding:4px;background-color:#000000;color:#FFFFFF'><b>Done loading "+ct+" p"+wording+".</b></span>";
}
}
}
theList+="</table>";
if(ct<=maxpoints){
document.getElementById("maplistHolder").innerHTML=theList;
if(document.getElementById("spl_photo")){
get_spl(spid,sptp,0);
}
}else{
document.getElementById("maplistHolder").innerHTML="";
document.getElementById("tooMany").style.visibility="visible";
}
}
}
}
function writeRlxPhoto(_39){
return "<img src='"+_39+"' onError=\"this.src='http://image.mapmuse.com/images/all/imgNotAvail.gif';\" border='0' width='90' style='border:1px solid silver;'>";
}
function writeRlx1(_3a,_3b,_3c,_3d,_3e){
var _3f="";
if(trim(_3a)!=""){
_3f+=trim(_3a);
}
if(trim(_3b)!=""){
_3f+="<br>"+trim(_3b);
}
if(trim(_3c)!=""){
_3f+="<br>"+trim(_3c);
}
if((_3e!="RAVEIS_FULL")&&(_3e!="RAVEIS_SOLD_FULL")){
if(trim(_3d)!=""){
_3f+="<br>Phone: "+trim(_3d);
}
}
return _3f;
}
function writeRlx2(_40,_41,_42){
var _43="";
if(trim(_40)!=":"){
_43+=trim(_40);
}
if(trim(_41)!=":"){
_43+="<br>"+trim(_41);
}
if(trim(_42)!=":"){
_43+="<br>"+trim(_42);
}
return _43;
}
function get_spl(idf,tpc,swb){
http3.open("GET","re32ajax_print.php?topicVal="+document.getElementById("tlist").value+"&lvl="+map.getZoom().toString()+"&idf="+idf+"&tpc="+tpc+"&swb="+swb+"&whereFor="+mainTopic+"&whereVal="+document.getElementById("sqlstr").value,true);
http3_isBusy=true;
http3.onreadystatechange=handleHttpResponse_spl;
http3.send(null);
}
function handleHttpResponse_spl(){
if(http3.readyState==4){
if(http3.responseText!=""){
http3_isBusy=false;
results=http3.responseText.split("|");
document.getElementById("spl_photo").innerHTML=writeRlxPhoto(results[9]);
document.getElementById("spl_1").innerHTML=writeRlx1(results[1],results[2],results[3],"","RAVEIS");
document.getElementById("spl_2").innerHTML=writeRlx2(results[4],results[5],results[6]);
}
}
}
function trim(_47){
return _47.replace(/^\s+|\s+$/g,"");
}
function center_write(){
var _48=document.getElementById("centerMark");
var _49=document.getElementById("centerDisp");
var _4a=document.getElementById("centerDisp2");
var _4b=map.getCenter();
if(_48.style.visibility=="visible"){
_49.innerHTML="<a href='javascript:center_toggle();'><u>Hide map center marker</u></a>";
}else{
_49.innerHTML="<a href='javascript:center_toggle();'><u>Mark the map's center</u></a>";
}
_4a.innerHTML="Map center coordinates: "+round(_4b.lat(),4)+", "+round(_4b.lng(),4);
var SW=map.getBounds().getSouthWest();
var NE=map.getBounds().getNorthEast();
var NW=new GLatLng(NE.lat(),SW.lng());
var _4f=NE.distanceFrom(NW);
var _50=_4f/1600;
if(_50>1){
_50=_50.toFixed(0);
}else{
_50=_50.toFixed(1);
}
if(document.getElementById("widthDisp")){
document.getElementById("widthDisp").innerHTML="Map Width = "+_50+" mi.";
}
mmZC(map.getZoom());
}
function round(_51,X){
X=(!X?2:X);
return Math.round(_51*Math.pow(10,X))/Math.pow(10,X);
}
function center_toggle(){
var _53=document.getElementById("centerMark");
var _54=document.getElementById("centerDisp");
if(_53.style.visibility=="visible"){
_53.style.visibility="hidden";
center_write();
}else{
_53.style.visibility="visible";
center_write();
}
}
function addCommas(_55){
_55+="";
x=_55.split(".");
x1=x[0];
x2=x.length>1?"."+x[1]:"";
var rgx=/(\d+)(\d{3})/;
while(rgx.test(x1)){
x1=x1.replace(rgx,"$1"+","+"$2");
}
return x1+x2;
}
function changeInstruction(_57){
}
function do_goto(_58){
if(_58!="null"){
_58=_58.split(",");
zmto=14;
if(_58[2]<3){
zmto=14;
}else{
if(_58[2]<7){
zmto=13;
}else{
if(_58[2]<13){
zmto=12;
}else{
if(_58[2]<26){
zmto=11;
}else{
if(_58[2]<52){
zmto=10;
}else{
if(_58[2]<104){
zmto=9;
}else{
if(_58[2]<205){
zmto=8;
}else{
if(_58[2]<405){
zmto=7;
}else{
if(_58[2]<784){
zmto=6;
}else{
if(_58[2]<1463){
zmto=5;
}else{
if(_58[2]<2475){
zmto=4;
}else{
if(_58[2]<3132){
zmto=3;
}else{
zmto=2;
}
}
}
}
}
}
}
}
}
}
}
}
map.setCenter(new GLatLng(_58[0],_58[1]),zmto);
}
}



