var queryField;var lookupURL;var divName;var ifName;var lastVal="";var theval="";var xmlHttp;var cache=new Object();var searching=false;var globalDiv;var divFormatted=false;var DIV_BG_COLOR="#eeeeee";var DIV_HIGHLIGHT_COLOR="#cccccc";var selectedLID="";var selectedFT="";var selectedHouseNumber="";var searcheventobj=new Object();function InitQueryCode(c,b,a){queryField=document.getElementsByName(c).item(0);queryField.onblur=hideDiv;queryField.onkeydown=keypressHandler;queryField.autocomplete="off";lookupURL=b;if(a){divName=a}else{divName="querydiv"}ifName="queryiframe";setTimeout("mainLoop()",100)}function InitQueryEvents(a){searcheventobj.onsearchchanged=new YAHOO.util.CustomEvent("searchchanged",searcheventobj);searcheventobj.onsearchchanged.subscribe(a)}function setQueryFieldValueNoEvents(a){queryField.value=a;lastVal=theval=escape(a)}function addToCache(c,a,b){}mainLoop=function(){theval=escape(queryField.value);if(lastVal!=theval&&searching==false){doRemoteQuery(theval);lastVal=theval}setTimeout("mainLoop()",100);return true};function getDiv(b){var a=queryField.offsetLeft;var f=queryField.offsetTop+queryField.offsetHeight+2;var d=queryField;while(d.offsetParent){d=d.offsetParent;a+=d.offsetLeft;f+=d.offsetTop}if(!globalDiv){if(!document.getElementById(b)){var c=document.createElement("div");c.setAttribute("id",b);document.body.appendChild(c)}globalDiv=document.getElementById(b);if(!divFormatted){globalDiv.style.backgroundColor=DIV_BG_COLOR;globalDiv.style.fontFamily="Verdana, Geneva, Arial, Helvetica, sans-serif";globalDiv.style.padding="4px";globalDiv.style.border="1px solid black";globalDiv.style.fontSize="90%";globalDiv.style.position="absolute";globalDiv.style.left=a+"px";globalDiv.style.top=f+"px";globalDiv.style.visibility="hidden";globalDiv.style.zIndex=10000;divFormatted=true}}else{globalDiv.style.left=a+"px";globalDiv.style.top=f+"px"}return globalDiv}function doNoop(){showDiv(false)}function doNoopAlert(a){alert(a);showDiv(false)}function showQueryDiv(a,n,m){var b=getDiv(divName);while(b.childNodes.length>0){b.removeChild(b.childNodes[0])}var k=n.length-1;for(var h=0;h<=k;h++){var o=document.createElement("div");o.style.cursor="pointer";if(h<k){o.style.borderBottom="1px solid #777777"}else{o.style.borderBottom="0px solid #777777"}o.style.textAlign="left";o.style.padding="2px 0px 2px 0px";o.style.margin="0px 0px 0px 0px";_unhighlightResult(o);o.onmousedown=selectResult;o.onmouseover=highlightResult;o.onmouseout=unhighlightResult;var f=document.createElement("span");f.className="result0";f.style.textAlign="left";var c=m[h].split("_");var l=c[1];if(l=="undefined"||l==""){l=233}var g="http://www.zoomatlas.com/pix/"+l+"_sm.png";f.innerHTML='<img src="'+g+'" />';o.appendChild(f);var d=document.createElement("span");d.className="result1";d.style.textAlign="right";d.style.paddingLeft="20px";d.style.fontWeight="bold";d.innerHTML=n[h];d.id=m[h];d.style.width=o.style.width;o.appendChild(d);b.appendChild(o)}showDiv(n.length>0)}function selectResult(){_selectResult(this)}function selectNoResult(){}function _selectResult(d){var c=d.getElementsByTagName("span");if(c){for(var b=0;b<c.length;b++){if(c[b].className=="result1"){var f=c[b].id.split("_");if(f.length==2){selectedLID=f[0];selectedFT=f[1]}if(c[b].innerText){queryField.value=c[b].innerText}else{queryField.value=c[b].textContent}lastVal=theval=escape(queryField.value);searching=false;mainLoop();queryField.focus();showDiv(false);selectedHouseNumber="";if(selectedFT=="160"){var a=queryField.value.split(" ");if(isInteger2(a[0])){selectedHouseNumber=a[0]}}if(searcheventobj.onsearchchanged){searcheventobj.onsearchchanged.fire()}return}}}}function highlightResult(){_highlightResult(this)}function _highlightResult(a){a.style.backgroundColor=DIV_HIGHLIGHT_COLOR}function unhighlightResult(){_unhighlightResult(this)}function _unhighlightResult(a){a.style.backgroundColor=DIV_BG_COLOR}function showDiv(a){var b=getDiv(divName);if(a){b.style.visibility="visible"}else{b.style.visibility="hidden"}adjustiFrame()}function hideDiv(){showDiv(false)}function adjustiFrame(){if(!document.getElementById(ifName)){var a=document.createElement("iFrame");a.setAttribute("id",ifName);a.setAttribute("src","javascript:false;");a.setAttribute("scrolling","no");a.setAttribute("frameborder","0");document.body.appendChild(a)}iFrameDiv=document.getElementById(ifName);var c=getDiv(divName);try{iFrameDiv.style.position="absolute";iFrameDiv.style.width=c.offsetWidth;iFrameDiv.style.height=c.offsetHeight;iFrameDiv.style.top=c.style.top;iFrameDiv.style.left=c.style.left;iFrameDiv.style.zIndex=c.style.zIndex-1;iFrameDiv.style.visibility=c.style.visibility}catch(b){}}function getXMLHTTP(){var b=null;try{b=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{b=new ActiveXObject("Microsoft.XMLHTTP")}catch(a){b=null}}if(!b&&typeof XMLHttpRequest!="undefined"){b=new XMLHttpRequest()}return b}function doRemoteQuery(queryString){if(queryString.indexOf("Click%20here")>-1){return true}searching=true;if(xmlHttp&&xmlHttp.readyState!=0){xmlHttp.abort()}xmlHttp=getXMLHTTP();if(xmlHttp){xmlHttp.open("GET",noCache2(lookupURL+queryString),true);xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4&&xmlHttp.responseText&&searching){eval(xmlHttp.responseText);searching=false}};xmlHttp.send(null)}}function keypressHandler(l){var b=getDiv(divName);if(b.style.visibility=="hidden"){return true}if(!l&&window.event){l=window.event}var k=l.keyCode;var g=38;var f=40;var c=13;var d=9;if((k!=g)&&(k!=f)&&(k!=c)&&(k!=d)){return true}var h=getSelectedSpanNum(b);var a=setSelectedSpan(b,h);if((k==c)||(k==d)){if(a){_selectResult(a)}else{a=setSelectedSpan(b,0);_selectResult(a)}l.cancelBubble=true;return false}else{if(k==g){a=setSelectedSpan(b,h-1)}if(k==f){a=setSelectedSpan(b,h+1)}if(a){_highlightResult(a)}}showDiv(true);return true}function getSelectedSpanNum(d){var c=-1;var b=d.getElementsByTagName("div");if(b){for(var a=0;a<b.length;a++){c++;if(b[a].style.backgroundColor!=d.style.backgroundColor){return c}}}return -1}function setSelectedSpan(g,d){var f=-1;var a;var c=g.getElementsByTagName("div");if(c){for(var b=0;b<c.length;b++){if(++f==d){_highlightResult(c[b]);a=c[b]}else{_unhighlightResult(c[b])}}}return a}function noCache2(a){return a.concat(/\?/.test(a)?"&":"?","noCache=",new Date().getTime(),".",Math.random()*1234567)}function isInteger2(a){return(a.toString().search(/^-?[0-9]+$/)==0)}function showNoResults(){var c=getDiv(divName);while(c.childNodes.length>0){c.removeChild(c.childNodes[0])}var a=document.createElement("div");var b=document.createElement("span");b.innerHTML='<img src="http://www.zoomatlas.com/images/oops.png" alt="No matches were found" usemap="#searchmap" />';a.appendChild(b);c.appendChild(a);showDiv(true)}function getParameterString(k){var h=[];for(var c in k){var f=k[c];if((f!=null)&&(typeof f!="function")){var b;if(typeof f=="object"&&f.constructor==Array){var g=[];for(var d=0,a=f.length;d<a;d++){g.push(encodeURIComponent(f[d]))}b=g.join(",")}else{b=encodeURIComponent(f)}h.push(encodeURIComponent(c)+"="+b)}}return h.join("&")}function changeSearchAction(){var a=document.searchform;a.action="http://www.zoomatlas.com/mediawiki/index.php/"+document.searchform.searchText1.value;a.submit()}function checkSearchEnter(b){var a;if(b&&b.which){b=b;a=b.which}else{b=event;a=b.keyCode}if(a==13){searchchanged();return false}else{return true}}function changeSearchAction(){var a=document.searchform;a.action="http://www.zoomatlas.com/mediawiki/index.php/"+document.searchform.searchText1.value;a.submit()}function checkSearchEnter(b){var a;if(b&&b.which){b=b;a=b.which}else{b=event;a=b.keyCode}if(a==13){searchchanged();return false}else{return true}}json_parse=(function(){var d,b,a={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},p,n=function(q){throw {name:"SyntaxError",message:q,at:d,text:p}},h=function(q){if(q&&q!==b){n("Expected '"+q+"' instead of '"+b+"'")}b=p.charAt(d);d+=1;return b},g=function(){var r,q="";if(b==="-"){q="-";h("-")}while(b>="0"&&b<="9"){q+=b;h()}if(b==="."){q+=".";while(h()&&b>="0"&&b<="9"){q+=b}}if(b==="e"||b==="E"){q+=b;h();if(b==="-"||b==="+"){q+=b;h()}while(b>="0"&&b<="9"){q+=b;h()}}r=+q;if(isNaN(r)){n("Bad number")}else{return r}},k=function(){var t,s,r="",q;if(b==='"'){while(h()){if(b==='"'){h();return r}else{if(b==="\\"){h();if(b==="u"){q=0;for(s=0;s<4;s+=1){t=parseInt(h(),16);if(!isFinite(t)){break}q=q*16+t}r+=String.fromCharCode(q)}else{if(typeof a[b]==="string"){r+=a[b]}else{break}}}else{r+=b}}}}n("Bad string")},m=function(){while(b&&b<=" "){h()}},c=function(){switch(b){case"t":h("t");h("r");h("u");h("e");return true;case"f":h("f");h("a");h("l");h("s");h("e");return false;case"n":h("n");h("u");h("l");h("l");return null}n("Unexpected '"+b+"'")},o,l=function(){var q=[];if(b==="["){h("[");m();if(b==="]"){h("]");return q}while(b){q.push(o());m();if(b==="]"){h("]");return q}h(",");m()}}n("Bad array")},f=function(){var r,q={};if(b==="{"){h("{");m();if(b==="}"){h("}");return q}while(b){r=k();m();h(":");if(Object.hasOwnProperty.call(q,r)){n('Duplicate key "'+r+'"')}q[r]=o();m();if(b==="}"){h("}");return q}h(",");m()}}n("Bad object")};o=function(){m();switch(b){case"{":return f();case"[":return l();case'"':return k();case"-":return g();default:return b>="0"&&b<="9"?g():c()}};return function(t,r){var q;p=t;d=0;b=" ";q=o();m();if(b){n("Syntax error")}return typeof r==="function"?(function s(y,x){var w,u,z=y[x];if(z&&typeof z==="object"){for(w in z){if(Object.hasOwnProperty.call(z,w)){u=s(z,w);if(u!==undefined){z[w]=u}else{delete z[w]}}}}return r.call(y,x,z)}({"":q},"")):q}}());var login_http_request=false;function noCache(a){return a.concat(/\?/.test(a)?"&":"?","noCache=",(new Date).getTime(),".",Math.random()*1234567)}function makeLoginRequest(a,b){login_http_request=false;if(window.XMLHttpRequest){login_http_request=new XMLHttpRequest();if(login_http_request.overrideMimeType){login_http_request.overrideMimeType("text/html")}}else{if(window.ActiveXObject){try{login_http_request=new ActiveXObject("Msxml2.XMLHTTP")}catch(d){try{login_http_request=new ActiveXObject("Microsoft.XMLHTTP")}catch(d){}}}}if(!login_http_request){alert("Cannot create XMLHTTP instance");return false}login_http_request.onreadystatechange=doLoginResponse;var c="";if(b.length==0){c=c.concat("noCache=",(new Date).getTime(),".",Math.random()*1234567)}else{c=b;c=c.concat("&noCache=",(new Date).getTime(),".",Math.random()*1234567)}login_http_request.open("POST",a,true);login_http_request.setRequestHeader("Content-type","application/x-www-form-urlencoded");login_http_request.setRequestHeader("Content-length",c.length);login_http_request.setRequestHeader("Connection","close");login_http_request.send(c)}function doLoginResponse(){if(login_http_request.readyState==4){if(login_http_request.status==200){result=login_http_request.responseText;document.getElementById("myloginarea").innerHTML=result;if(document.getElementById("Email")!=null){document.getElementById("Email").focus()}FB.XFBML.Host.parseDomTree()}else{alert("alertContents: There was a problem with the request.")}}}function getLogin(b){var a="opcode="+b;if(b=="dologin"){a=a+"&email="+document.getElementById("Email").value+"&password="+document.getElementById("Password").value+"&remember="+document.getElementById("RememberMe").checked}else{if(b=="findpwd"){a=a+"&email="+document.getElementById("Email").value}}a=encodeURI(a);makeLoginRequest("http://www.zoomatlas.com/mediawiki/skins/za_skin/DoLogin.php",a);return true}function g_refreshHeader(){updateLIDforElement("zasignin");updateLIDforElement("zalogout");updateLIDforElement("fb-connect-link");updateLIDforElement("zaforgotpwd")}function updateLIDforElement(b){var a=document.getElementById(b);if(a){a.href="#"+g_SelectedLid}}var lc_xmlhttpreq;var sCurrPrefix="lw";function initLocateWidget(b,c,a){notebar_lid=b;nbfeatureType=c;initFromToYear(a+"_from_yr",a+"_to_yr");initFromToMonth(a+"_from_month",a+"_to_month");setFeatureValuesByWidget(c,a+"_activityInput2")}function initFromToYear(c,k,b,g){var l=document.getElementById(c);var a=document.getElementById(k);if(l!=null&&a!=null){var h=new Date();var f=h.getFullYear();l.options.length=f-1910;a.options.length=f-1910;for(yr=f,j=0;yr>=1911;yr--,j++){a.options[j].text=yr;a.options[j].value=yr;if(g&&g.length>0&&g==yr){a.options[j].selected="1"}l.options[j].text=yr;l.options[j].value=yr;if(b&&b.length>0&&b==yr){l.options[j].selected="1"}}}}function initFromToMonth(g,d,f,c){var b=document.getElementById(g);var h=document.getElementById(d);if(b!=null&&h!=null){b.options.length=13;h.options.length=13;for(j=1;j<=12;j++){var a=zeroPad(j,2);b.options[j].text=a;b.options[j].value=a;if(f&&f.length>0&&f==a){b.options[j].selected="1"}h.options[j].text=a;h.options[j].value=a;if(c&&c.length>0&&c==a){h.options[j].selected="1"}}}}function zeroPad(a,b){var c=a+"";while(c.length<b){c="0"+c}return c}function postLocate(a){if(!loggedIn()){askToRegister()}else{if(isFacebookUser()){FB.Facebook.apiClient.users_hasAppPermission("email",function(b){if(b==0){fbconnect_optin_showdiv()}else{postLocateNow(a)}});return}postLocateNow(a)}}function postLocateNow(x){if(notebar_lid==0){alert("No location was specified.  Please enter the location that you wish to add.");return false}var r="";var c="";var n="";var I="";var w="";var u="";var f="";var s="";var z="";var o="";sCurrPrefix=x;var g=document.getElementById(x+"_findmsg");if(g!=null){n=g.value;r=encodeURIComponent(n)}var p=document.getElementById(x+"_activityInput2");if(p!=null){c=p.value}var A=document.getElementById(x+"_lookingfor");if(A!=null){I=A.value}var q=document.getElementById(x+"_from_yr");if(q!=null){f=q.value}var v=document.getElementById(x+"_to_yr");if(v!=null){s=v.value}var F=document.getElementById(x+"_from_month");if(F!=null){z=F.value}var t=document.getElementById(x+"_to_month");if(t!=null){o=t.value}var k=document.getElementsByName(x+"_birthinfo");if(k!=null){if(k[0].checked){var C=document.getElementById(x+"_bdmonth");var y=document.getElementById(x+"_bdday");var m=document.getElementById(x+"_bdyear");if(C!=null&&y!=null&&m!=null){u="&bmonth="+C.value+"&bday="+y.value+"&byear="+m.value}else{if(m!=null){u="&byear="+m.value}}}else{if(k[1].checked){var E=document.getElementById(x+"_birthyear");if(E!=null){u="&byear="+E.value}}else{if(k[2].checked){var b=document.getElementById(x+"_currage");if(b!=null){var D=new Date();var l=D.getFullYear();var H=b.value;var G=l-H;u="&byear="+G}}}}}lc_xmlhttpreq=false;if(window.XMLHttpRequest){lc_xmlhttpreq=new XMLHttpRequest();if(lc_xmlhttpreq.overrideMimeType){lc_xmlhttpreq.overrideMimeType("text/html")}}else{if(window.ActiveXObject){try{lc_xmlhttpreq=new ActiveXObject("Msxml2.XMLHTTP")}catch(B){try{lc_xmlhttpreq=new ActiveXObject("Microsoft.XMLHTTP")}catch(B){}}}}if(!lc_xmlhttpreq){alert("Cannot create XMLHTTP instance");return false}lc_xmlhttpreq.onreadystatechange=processPostedFind;var a=getZoomLevel();var h="http://www.zoomatlas.com/NoteMan/NoteBar?op=find&lid="+notebar_lid+"&type="+c+"&msg="+escape(r)+"&name="+I+"&fy="+f+"&ty="+s+"&fm="+z+"&tm="+o+u+"&long="+ibFloatPanelLon+"&lat="+ibFloatPanelLat+"&zoom="+a+"&ft="+nbfeatureType;lc_xmlhttpreq.open("GET",h,true);lc_xmlhttpreq.send(null);return false}function processPostedFind(){if(lc_xmlhttpreq.readyState==4){if(lc_xmlhttpreq.status==200){var a=lc_xmlhttpreq.responseXML;if(true){lc_xmlhttpreq.close;clearFind();updateFind();doRedrawMap(a)}else{handleFindError()}}else{alert("processPostedFind: problem with request")}}}function clearFind(){if(msgBoxPanel==null){clearLocateFormElement("findmsg");resetLocateSelectElement("activityInput2");clearLocateFormElement("lookingfor");clearLocateFormElement("from_yr");clearLocateFormElement("to_yr");clearLocateFormElement("from_month");clearLocateFormElement("to_month");clearLocateBirthInfoRadioButtons("birthinfo");clearLocateFormElement("bdmonth");clearLocateFormElement("bdday");clearLocateFormElement("bdyear");clearLocateFormElement("birthyear");clearLocateFormElement("currage")}else{var a="Your note was posted successfully.<br/><input type='button' value='OK' onclick='cancelPvtMsg();'>";msgBoxPanel.setBody(a)}}function clearLocateFormElement(a){try{document.getElementById(sCurrPrefix+"_"+a).value=""}catch(b){}}function resetLocateSelectElement(b){try{var a=document.getElementById(sCurrPrefix+"_"+b);a.selectedIndex=0}catch(c){}}function clearLocateBirthInfoRadioButtons(c){try{var a=document.getElementsByName(sCurrPrefix+"_"+c);for(i=0;i<3;i++){a[i].checked=false}}catch(b){}}function handleFindError(){var a="Error posting your 'I'm looking for' item";if(msgBoxPanel==null){alert(a)}else{var b=a+"<br/><input type='button' value='OK' onclick='cancelPvtMsg();'>";msgBoxPanel.setBody(b)}}function setBirthInfoRadioButton(a,b){try{document.getElementsByName(a+"_birthinfo")[b].checked=true}catch(c){}}var propertyMenu=null;var ibFloatPanelMode="i";var ibFloatPanelLon=0;var ibFloatPanelLat=0;var ibFloatPanelZ=15;var lifePathUrl;var sizeHandlerSet=false;var xmlhttp=false;var newhttp=false;var ib_lid="";var ib_featureType="empty";var ib_fieldLongName="";var ib_fieldName="";var optionalChar=-1;var seqnum=Math.floor(Math.random()*10000)*100;var FBarticleHeader="My ZoomAtlas LifePath Timeline";var FBarticleBody="Come check out all the places I've been.";var FBtileFname="http://www.zoomatlas.com/pix/FBLifeLineB.png";var FBuid=0;var currentNoteTabView=null;var currentMyPlacesTabView=null;var gnomeCount=0;var gnomeMsgs=new Array(14);gnomeMsgs[0]="Click&nbsp;here&nbsp;to&nbsp;edit&nbsp;property&nbsp;locations and&nbsp;the&nbsp;road&nbsp;paths.";gnomeMsgs[1]="Use&nbsp;this&nbsp;slider&nbsp;to&nbsp;fade&nbsp;between&nbsp;the satellite&nbsp;image&nbsp;and&nbsp;the&nbsp;map.";gnomeMsgs[2]="Is&nbsp;your&nbsp;house&nbsp;in&nbsp;the&nbsp;wrong&nbsp;place? Click&nbsp;<i>Edit&nbsp;Map</i>&nbsp;to&nbsp;fix&nbsp;it.";gnomeMsgs[3]="You&nbsp;can&nbsp;turn&nbsp;on&nbsp;and&nbsp;off&nbsp;the map&nbsp;labels&nbsp;by&nbsp;clicking&nbsp;here.";gnomeMsgs[4]="If&nbsp;you&nbsp;can't&nbsp;find&nbsp;your&nbsp;address up&nbsp;here,&nbsp;just&nbsp;try&nbsp;street&nbsp;name.";gnomeMsgs[5]="Detail&nbsp;your&nbsp;property!&nbsp;Add&nbsp;roofs,&nbsp;trees, flowers,&nbsp;patios,&nbsp;driveways.";gnomeMsgs[6]="Zoom&nbsp;in&nbsp;really&nbsp;close&nbsp;on&nbsp;a&nbsp;road&nbsp;or house&nbsp;to&nbsp;see&nbsp;amazing&nbsp;detail!";gnomeMsgs[7]="Streets&nbsp;don't&nbsp;line&nbsp;up&nbsp;with&nbsp;the&nbsp;satellite image?&nbsp;Click&nbsp;<i>Edit&nbsp;Map</i>&nbsp;to&nbsp;fix&nbsp;it.";gnomeMsgs[8]="Turn&nbsp;on&nbsp;map&nbsp;labels&nbsp;to&nbsp;see&nbsp;house numbers&nbsp;and&nbsp;street&nbsp;names.";gnomeMsgs[9]="Try&nbsp;searching&nbsp;for&nbsp;an&nbsp;address,&nbsp;business, school,&nbsp;airport&nbsp;or&nbsp;arena.";gnomeMsgs[10]="Turn&nbsp;those&nbsp;little&nbsp;green&nbsp;squares&nbsp;into&nbsp;a detailed&nbsp;map&nbsp;of&nbsp;your&nbsp;property.";gnomeMsgs[11]="Move&nbsp;this&nbsp;slider&nbsp;up&nbsp;to&nbsp;see&nbsp;the&nbsp;map without&nbsp;the&nbsp;satellite&nbsp;image.";gnomeMsgs[12]="After&nbsp;editing&nbsp;the&nbsp;map,&nbsp;zoom&nbsp;in&nbsp;close&nbsp;to see&nbsp;photo-realistic&nbsp;details!";gnomeMsgs[13]="Hold&nbsp;<i>shift</i>&nbsp;and&nbsp;draw&nbsp;a&nbsp;rectangle for&nbsp;a&nbsp;precise&nbsp;zoom.";
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects.
 try {
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 } catch (e) {
  try {
   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (E) {
   xmlhttp = false;
  }
 }
@end @*/
if(!xmlhttp&&typeof XMLHttpRequest!="undefined"){try{xmlhttp=new XMLHttpRequest()}catch(e){xmlhttp=false}}if(!xmlhttp&&window.createRequest){try{xmlhttp=window.createRequest()}catch(e){xmlhttp=false}}function gnomeNextMsg(){gnomeCount++;if(gnomeCount>13){gnomeCount=0}var b="lbg21";var a="tl";if((gnomeCount==1)||(gnomeCount==11)){b="lbg"}if((gnomeCount==6)||(gnomeCount==13)){b="lbg5"}if((gnomeCount==3)||(gnomeCount==8)){a="tl3";b="lbg3"}if((gnomeCount==4)||(gnomeCount==9)){a="tl4";b="lb4"}document.getElementById("gnomeMsg").innerHTML=gnomeMsgs[gnomeCount];document.getElementById("gnomeHead").innerHTML='<img src="http://www.zoomatlas.com/images/'+a+'.gif" width="91" height="39">';document.getElementById("gnomeBody").innerHTML='<img src="http://www.zoomatlas.com/images/'+b+'.gif" width="91" height="50">'}function g_enableTabGoInside(a){if(a&&(g_SelectedLid!=null)&&(g_SelectedLid!=0)&&(g_SelectedLid!="")){ibFloatPanelMode="x";loadSlider()}}function g_enableTabNotes(a){if(a&&(g_SelectedLid!=null)&&(g_SelectedLid!=0)&&(g_SelectedLid!="")){ibFloatPanelMode="n";loadSlider()}}function g_enableTabArticle(a){if(a&&(g_SelectedLid!=null)&&(g_SelectedLid!=0)&&(g_SelectedLid!="")){ibFloatPanelMode="a";loadSlider()}}function g_enableTabMyPlaces(a){if(a&&(g_SelectedLid!=null)&&(g_SelectedLid!=0)&&(g_SelectedLid!="")){ibFloatPanelMode="m";loadSlider()}}function loadSlider(){var a=getStatusBar();if((a!=null)&&(a.length<40)){if((g_SelectedLid!=null)&&(g_SelectedLid!=0)&&(g_SelectedLid!="")){g_setGlobalSelection(g_SelectedLid,(g_SelectedLidInside==null?null:(g_SelectedLidInside==""?null:g_SelectedLidInside)))}}var b=g_SelectedLid;if((g_SelectedLidInside!=null)&&(g_SelectedLidInside!=0)&&(g_SelectedLidInside!="")){b=g_SelectedLidInside}url="http://www.zoomatlas.com/InfoBoxManager/InfoBox?click=Y&floatMode="+ibFloatPanelMode+"&lid="+b+"&seqnum="+seqnum;seqnum++;xmlhttp.open("get",url,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){var k=new OpenLayers.Format.JSON();var f=k.read(xmlhttp.responseText);var l="";var h=ibFloatPanelMode.substring(0,1);if(h=="x"){l='<div id="container"></div>'}else{if(h=="m"){l='<div id="myplacescontainer"></div>'}else{if(h=="a"){l='<div id="articlecontainer"><table><tr><td width="6">&nbsp;</td><td width="100%"><div id="articletabcontainer"></div></td></tr></table></div>'}else{if(h=="n"){l='<div id="notecontainer"></div>'}else{l='<div style="overflow:scroll">'+f.html+"</div>"}}}}if(h!=null){var d=ibFloatPanelMode.substring(0,1);var g="Notes";if(d=="a"){g="Article"}else{if(d=="x"){g="GoInside"}else{if(d=="n"){g="Notes"}else{if(d=="m"){g="MyPlaces"}else{}}}}var c=document.getElementById("tab"+g+"ContentsInner");c.innerHTML=l;if(d=="x"){goInsideInit(f)}if(d=="n"){notesInit(f)}if(d=="m"){myPlacesInit(url)}if(d=="a"){articleInit(f)}}cursor_clear()}};xmlhttp.setRequestHeader("Accept","message/x-formresult");xmlhttp.send(null);return false}function slidePanel(f,d){ibFloatPanelMode=f;if(ibFloatPanelMode!=null){var b=ibFloatPanelMode.substring(0,1);var c="Notes";if(b=="a"){c="Article"}else{if(b=="x"){c="GoInside"}else{if(b=="n"){c="Notes"}else{if(b=="m"){c="MyPlaces"}else{}}}}var a=document.getElementById("tab"+c+"ContentsInner");slideTab("tab"+c+"Contents","tab"+c+"ContentsInner");closePopup()}}function setLongLatZ(c,a,b){ibFloatPanelLon=c;ibFloatPanelLat=a;ibFloatPanelZ=b}function floatPanel(d,h,f,g){ibFloatPanelMode=d;ibFloatPanelLon=h;ibFloatPanelLat=f;ibFloatPanelZ=g;var b=ibFloatPanelMode.substring(0,1);var c="Notes";if(b=="a"){c="Article"}else{if(b=="x"){c="GoInside"}else{if(b=="n"){c="Notes"}else{if(b=="m"){c="MyPlaces"}}}}var a=document.getElementById("tab"+c+"ContentsInner");slideTab("tab"+c+"Contents","tab"+c+"ContentsInner");closePopup();return false}function floatPanelNow(){var a=g_SelectedLid;if((g_SelectedLidInside!=null)&&(g_SelectedLidInside!=0)&&(g_SelectedLidInside!="")){a=g_SelectedLidInside}url="http://www.zoomatlas.com/InfoBoxManager/InfoBox?click=Y&floatMode="+ibFloatPanelMode+"&lid="+a+"&seqnum="+seqnum;seqnum++;xmlhttp.open("get",url,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){var g=new OpenLayers.Format.JSON();var d=g.read(xmlhttp.responseText);if(ibFloatPanelMode!=null){var c=ibFloatPanelMode.substring(0,1);var f="Notes";if(c=="a"){f="Article"}else{if(c=="x"){f="GoInside"}else{if(c=="n"){f="Notes"}else{if(c=="m"){f="MyPlaces"}else{}}}}var b=document.getElementById("tab"+f+"ContentsInner");slideTab("tab"+f+"Contents","tab"+f+"ContentsInner");closePopup()}}};xmlhttp.setRequestHeader("Accept","message/x-formresult");xmlhttp.send(null);return false}var sliderResize=function(c){if(ibFloatPanelMode.substring(0,1)=="a"){var d=m_Layout.getUnitByPosition("right");var a=d.get("height");document.getElementById("articlecontainer").style.height=a+"px";return true}else{if(ibFloatPanelMode.substring(0,1)=="x"){var d=m_Layout.getUnitByPosition("right");var a=d.get("height");a-=35;for(var b=0;b<numInsideTabs;b++){insideTabs[b].get("contentEl").style.height=a+"px"}return true}else{if(ibFloatPanelMode.substring(0,1)=="m"){numTries=0;intervalId=setInterval(function(){var f=Dom.get("tabMyPlacesContentsInner");var h=m_Layout.getUnitByPosition("right").get("width");var g=document.getElementById("lifepathouterdiv");h-=45;if(g!=null){g.style.width=h+"px";clearInterval(intervalId)}else{numTries++;if(numTries>10){clearInterval(intervalId)}}},1)}}}return false};var intervalId=0;var numTries=0;var numInsideTabs=0;var insideTabs=new Array();var selectedInsideTab=null;function goInsideInit(c){var b=new YAHOO.widget.TabView();b.subscribe("beforeActiveIndexChange",function(l){var k=l.newValue;var n=b.getTab(k);selectedInsideTab=n;var m=n.get("dataSrc");var h=m.lastIndexOf("seq=");if(h<=0){m+="&seq=";m+=seqnum}else{m=m.substring(0,h+4);m+=seqnum}seqnum++;n.set("dataSrc",m);return true});var g;var d=0;insideTabs=new Array();for(g in c){var a=c[d];var f=new YAHOO.widget.Tab(a);f.get("contentEl").style.overflow="scroll";f.set("content","Loading...");insideTabs[d]=f;b.addTab(f);d++}numInsideTabs=d;b.appendTo("container");handleSlider()}var articleTabView=null;var articleEditUrl=null;function articleInit(d){articleEditUrl=decodeURIComponent(d.editUrl);articleTabView=new YAHOO.widget.TabView();articleTabView.subscribe("beforeActiveIndexChange",function(h){var g=h.newValue;if(g==1){var f=articleEditUrl.lastIndexOf("seq=");if(f<=0){articleEditUrl+="&seq=";articleEditUrl+=seqnum}else{articleEditUrl=articleEditUrl.substring(0,f+4);articleEditUrl+=seqnum}seqnum++;xmlhttp.open("get",articleEditUrl,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){var k=xmlhttp.responseText;var l=articleTabView.getTab(1);l.set("content",k)}};xmlhttp.setRequestHeader("Accept","message/x-formresult");xmlhttp.send(null)}return true});var b=new YAHOO.widget.Tab({label:"Article",content:d.html,cacheData:false,active:true});b.get("contentEl").style.overflow="scroll";var c=getBrowserWindowHeight()-120;b.get("contentEl").style.height=c+"px";b.get("contentEl").style.background="white";articleTabView.addTab(b);var a=new YAHOO.widget.Tab({label:"Edit",content:"Loading Wiki Editor...",cacheData:false,active:false});a.get("contentEl").style.overflow="scroll";a.get("contentEl").style.height=c+"px";a.get("contentEl").style.background="white";articleTabView.addTab(a);articleTabView.appendTo("articletabcontainer");handleSlider()}function selectNoteTab(a){setTimeout(function(){if((currentNoteTabView!=null)&&(a>0)&&(a<=3)){currentNoteTabView.selectTab(a)}},1000)}function notesInit(c){var b=new YAHOO.widget.TabView();currentNoteTabView=b;b.subscribe("beforeActiveIndexChange",function(m){var l=m.newValue;var o=b.getTab(l);var n=o.get("dataSrc");var k=n.lastIndexOf("seq=");if(k<=0){n+="&seq=";n+=seqnum}else{n=n.substring(0,k+4);n+=seqnum}seqnum++;o.set("dataSrc",n);return true});var h;var d=0;var g=new Array();ib_featureType=c.featureType;ib_lid=c.lid;for(h in c){var a=c[d];var f=new YAHOO.widget.Tab(a);f.get("contentEl").style.height="600px";f.get("contentEl").style.overflow="auto";g[d]=f;b.addTab(f);d++;if(d>3){break}}b.set("activeIndex",0);b.appendTo("notecontainer");handleSlider()}function selectMyPlacesTab(a){setTimeout(function(){if((currentMyPlacesTabView!=null)&&(a>0)&&(a<=2)){currentMyPlacesTabView.selectTab(a)}},1000)}var wallPostDestination="tab";function showWallPostLink(){xmlhttp.open("get","http://www.zoomatlas.com/InfoBoxManager/InfoBox?wall=Y&seq="+seqnum,true);seqnum++;xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){var f=xmlhttp.responseXML;var d=f.documentElement;var a=d.getElementsByTagName("error");if(a!=null){var c=a[0];if(c!=null){var b=c.firstChild;if(b!=null){alert(b.data);return}}}FBarticleHeader=d.getElementsByTagName("articleHeader")[0].firstChild.data;FBarticleBody=d.getElementsByTagName("articleBody")[0].firstChild.data;FBtileFname=d.getElementsByTagName("tileFname")[0].firstChild.data;FBuid=d.getElementsByTagName("fb_uid")[0].firstChild.data;if(FBarticleHeader==null){FBarticleHeader="My ZoomAtlas LifePath Timeline"}if(FBarticleBody==null){FBarticleBody="Come check out all the places I've been."}if(FBtileFname==null){FBtileFname="http://www.zoomatlas.com/pix/FBLifeLineB.png"}if(FBuid==null){FBuid=0}var h='<span style="color:blue"><b>'+FBarticleHeader+"</b></span><br/>"+FBarticleBody;if(wallPostDestination=="tab"){currentMyPlacesTabView.addTab(new YAHOO.widget.Tab({label:"Publish My LifePath",content:'<br/><br/><table><tr><td><img src="http://www.zoomatlas.com/cgi-bin/lifepath_banner.prl?seqnum='+seqnum+'" width="130" height="130"></td><td>&nbsp;</td><td valign="top">'+h+'</td></tr></table><br/><center><div onclick="javascript:fbPublish();" style="cursor:hand;"><u>Click Here to Publish to Your Wall</u></div></center><fb:fan profile_id="180887002485" stream="" connections="" width="300"></fb:fan><div style="font-size:8px; padding-left:10px">',cacheData:false,active:false}));var g=lifePathUrl.replace("floatMode=m","floatMode=mfriends");currentMyPlacesTabView.addTab(new YAHOO.widget.Tab({label:"My Friends' LifePaths",dataSrc:g,cacheData:false,active:false}));currentMyPlacesTabView.appendTo("myplacescontainer");handleSlider()}else{document.getElementById("life_path_link_div").innerHTML='<div onclick="javascript:fbPublish();" style="cursor:pointer; cursor:hand;"><table><tr><td valign="bottom"><img src="/images/fbshare.png" /></td><td>&nbsp;<u>Publish to Your Wall</u></td></tr></table></div>'}}};xmlhttp.setRequestHeader("Accept","message/x-formresult");xmlhttp.send(null);return true}function myPlacesInit(b){lifePathUrl=b;currentMyPlacesTabView=new YAHOO.widget.TabView();currentMyPlacesTabView.subscribe("beforeActiveIndexChange",function(g){var f=g.newValue;var k=currentMyPlacesTabView.getTab(f);var h=k.get("dataSrc");var d=h.lastIndexOf("seq=");if(d<=0){h+="&seq=";h+=seqnum}else{h=h.substring(0,d+4);h+=seqnum}seqnum++;k.set("dataSrc",h);return true});var c;var a=new YAHOO.widget.Tab({label:"My LifePath",dataSrc:lifePathUrl,cacheData:false,active:true});currentMyPlacesTabView.addTab(a);wallPostDestination="tab";showWallPostLink();return true}function showFriendLifePath(a){var b=a.lastIndexOf("seq=");if(b<=0){a+="&seq=";a+=seqnum}else{a=a.substring(0,b+4);a+=seqnum}seqnum++;xmlhttp.open("get",a,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){var c=xmlhttp.responseText;document.getElementById("FriendLifePath").innerHTML=c}};xmlhttp.setRequestHeader("Accept","message/x-formresult");xmlhttp.send(null)}function fbPublish(){FBtileFname=FBtileFname.replace("lpbanner","lpb");var a="http://www.zoomatlas.com";if(FBuid>0){a="http://apps.facebook.com/zoomatlas/lifepath.html?fbid="+FBuid+"&fb_force_mode=fbml"}var c={media:[{type:"image",src:FBtileFname,href:a,width:"130",height:"130"}],name:FBarticleHeader,href:"http://www.zoomatlas.com",description:FBarticleBody};var b=[{text:"Build your own LifePath",href:"http://www.zoomatlas.com/postnote.html"}];FB.Connect.streamPublish("Check out my ZoomAtlas LifePath...the timeline of my life",c,b,null,FBarticleHeader,wallPostCallback,false,null);return true}function inviteFriend(c,b){var a=[{text:"Visit ZoomAtlas",href:"http://www.zoomatlas.com"}];var d={media:[{type:"image",src:"http://www.zoomatlas.com/pix/FBLifeLineB.png",href:"http://www.zoomatlas.com",width:"130",height:"130"}],name:"ZoomAtlas: Mapping Every Square Inch of America",href:"http://www.zoomatlas.com",description:"Map your life...find old friends. Get reconnected with people from your past who are not on Facebook. Drop notes at your old homes, and your friends' old homes. Build a LifePath timeline of your life, and share it with friends on Facebook."};FB.Connect.streamPublish("I built my LifePath timeline on ZoomAtlas...you should too.",d,a,b)}function wallPostCallback(){var a="http://www.zoomatlas.com/cgi-bin/recordWallPost.prl?seq="+seqnum;seqnum++;xmlhttp.open("get",a,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){}};xmlhttp.setRequestHeader("Accept","message/x-formresult");xmlhttp.send(null);return true}function handleSlider(){if(!sizeHandlerSet){m_Layout.getUnitByPosition("right").on("resize",sliderResize);sizeHandlerSet=true}sliderResize(null)}var lastPopup=0;var activeLifePathTimeout=0;var popupLoaded=0;var slotSize=120;var livedBgImage="url(http://www.zoomatlas.com/notebar/images/popbgblue.png)";var workedBgImage="url(http://www.zoomatlas.com/notebar/images/popbgorange.png)";var playedBgImage="url(http://www.zoomatlas.com/notebar/images/popbggreen.png)";function showLifePathPopup(u,v,k,d,h,g,f,q,w,y,b,n,o,s,h,m,r){var p;if(window.event){p=window.event}else{p=u}if(s==lastPopup){return}popupLoaded=0;newImage=livedBgImage;if(g=="worked"){newImage=workedBgImage}if(g=="played"){newImage=playedBgImage}var c=decodeURIComponent(r.replace(/\+/g," "));var t=decodeURIComponent(m.replace(/\+/g," "));var a='<span style="cursor:pointer" onclick="javascript:g_setGlobalSelection('+(d>0?d+",":"")+k+');"><u>'+t+"</u></span>";document.getElementById("popupCell").style.backgroundImage=newImage;document.getElementById("boxcontent").innerHTML='<table><tr><td rowspan="2" valign="top"><img width="58" height="58" src="http://www.zoomatlas.com/pix/'+h+'.png"></td><td valign="top"><span class=\'earn_small\'>Location: </span></td><td class=\'data\' valign="top">'+a+"</td></tr><tr><td class='data' valign=\"bottom\"><span class='earn_small'>From:</span></td><td class='data' valign=\"bottom\">"+q+" <span class='earn_small'>To:</span>"+w+'<span id="getAddrLidElement" style="cursor: pointer" onclick="setCallback(); getAddressLid();"></td></tr><tr><td class=\'data\' colspan="3"><img alt="Upload a Photo..." src="http://www.zoomatlas.com/notebar/images/popphoto.png" width="32" height="32"><span class=\'earn_small\'>Details: </span><i>'+c+"</i><br/></td></tr></table>";var x=p.clientX-125;document.getElementById("popupLifePathBox").style.left=x;var l=p.clientY+30;document.getElementById("popupLifePathBox").style.top=l;document.getElementById("popupLifePathBox").style.display="block";lastPopup=s;if(activeLifePathTimeout!=0){clearTimeout(activeLifePathTimeout)}activeLifePathTimeout=setTimeout("popdownLifePathBox()",5000)}function popdownLifePathBox(){document.getElementById("popupLifePathBox").style.display="none";activeLifePathTimeout=0}function doomLifePathBox(){if(activeLifePathTimeout!=0){clearTimeout(activeLifePathTimeout)}activeLifePathTimeout=setTimeout("popdownLifePathBox()",5000)}function keepAliveLifePathBox(){if(activeLifePathTimeout!=0){clearTimeout(activeLifePathTimeout)}}function addCategoryTab(c,a){var b=decodeURIComponent(a).replace(/\+/g," ");ib_fieldName="NewCategory";ib_lid=c;document.getElementById("categoryAdd").innerHTML='<select id="ib_'+ib_fieldName+'">'+b+'</select><input type=submit onclick="javascript:saveTextChanges();" value="+">'}function saveTextChanges(){var b=document.getElementById("ib_"+ib_fieldName);var a=b.value;if((ib_fieldName=="block")||(ib_fieldName=="addrblock")){a=a+"."+document.getElementById("housenum").value}if(a!=null){if(a==-999999){a="NEW_"+prompt("New Value:","")}a=encodeURIComponent(a)}return saveEditChanges(ib_lid,ib_featureType,ib_fieldName,ib_fieldLongName,a)}function saveInsideChanges(f,d,g,a,b){var c=g.substring(10);c=c.substring(0,c.indexOf("_"));url="http://www.zoomatlas.com/InfoBoxManager/InfoBox?edit=Y&lid="+f+"&featureType="+d+"&fieldName="+g+"&fieldLongName="+encodeURIComponent(a)+"&"+g+"="+b+"&seqnum="+seqnum;seqnum++;xmlhttp.open("get",url,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){var m=new OpenLayers.Format.JSON();var l=m.read(xmlhttp.responseText);if(l.error!=null){if(l.error.length>0){alert(l.error);return}}var h=l.ib_insideLid;var k=l.html;document.getElementById("categoryTab"+c).innerHTML=k}};xmlhttp.setRequestHeader("Accept","message/x-formresult");xmlhttp.send(null);return false}function saveEditChanges(d,c,f,a,b){if(f.substr(0,10)=="ib_inside_"){return saveInsideChanges(d,c,f,a,b)}url="http://www.zoomatlas.com/InfoBoxManager/InfoBox?edit=Y&lid="+d+"&featureType="+c+"&fieldName="+f+"&fieldLongName="+encodeURIComponent(a)+"&"+f+"="+b+"&seqnum="+seqnum;seqnum++;xmlhttp.open("get",url,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){var x=xmlhttp.responseXML;var g=x.documentElement;var l=g.getElementsByTagName("error");if(l!=null){var n=l[0];if(n!=null){var C=n.firstChild;if(C!=null){alert(C.data);return}}}var B=g.getElementsByTagName("ib_insideLid");if(B!=null){var k=B[0];if(k!=null){var I=k.firstChild;if(I!=null){var M=g.getElementsByTagName("html")[0].firstChild.data;onGoInsideResponse(g,I,M);return}}}B=g.getElementsByTagName("ib_insideNewCategory");if(B!=null){var k=B[0];if(k!=null){var t=k.firstChild;if(t!=null){floatPanel("x"+t,ibFloatPanelLon,ibFloatPanelLat,ibFloatPanelZ);return}}}var v=g.getElementsByTagName("fieldName")[0];var A=v.firstChild;var D=g.getElementsByTagName("fieldName")[0].firstChild;var m="";if(D!=null){m=D.data}if(m=="featureFullname"){window.location.reload()}var P=g.getElementsByTagName("fieldLongName")[0].firstChild;var z="";if(P!=null){z=P.data}var s=g.getElementsByTagName(m)[0].firstChild;var K="";if(s!=null){K=s.data}var u=g.getElementsByTagName("lid")[0].firstChild.data;var r=g.getElementsByTagName("featureType")[0].firstChild.data;var q=g.getElementsByTagName("info")[0];var L=g.getElementsByTagName("bbnorth")[0];var h=g.getElementsByTagName("bbsouth")[0];var Q=g.getElementsByTagName("bbeast")[0];var E=g.getElementsByTagName("bbwest")[0];var H=g.getElementsByTagName("list")[0];var G=g.getElementsByTagName("points")[0].firstChild.data;var J=g.getElementsByTagName("pointstoday")[0].firstChild.data;if(m!="characteristics"){var w=g.getElementsByTagName("optionMenu")[0].firstChild;var F="";if(w!=null){F=decodeURIComponent(w.data)}var p=K.replace(/'/g,"\\'");var o="onclick=\"javascript:showTextEdit('"+z+"','"+m+"','"+p+"','5','"+u+"','"+r+"');\"";if(H!=null){o="onclick=\"javascript:showListEdit('"+z+"','"+m+"','"+p+"','"+u+"','"+r+"');\"";K=p.replace(/<br\/>/g,"<br/>&nbsp;&nbsp;")}if(F.length>0){o="onclick=\"javascript:showPulldownMenu('"+z+"','"+m+"','"+F+"','"+u+"','"+r+"');\""}if(((m=="block")&&(ib_fieldName=="addrblock"))||((m=="fullname")&&(ib_fieldName=="microfullname"))){var y=K.indexOf(",");if(y>0){K=K.substring(0,y)}var O=document.getElementById(ib_fieldName);if(O!=null){O.innerHTML=K}var N=document.getElementById(ib_fieldName+"_R");if(N!=null){N.innerHTML=""}}else{var O=document.getElementById(m);if(O!=null){O.innerHTML=K}var N=document.getElementById(m+"_R");if(N!=null){N.innerHTML='<span style="cursor:pointer" '+o+'><span class="earn_small"><u>Edit</u></span> <img src="http://www.zoomatlas.com/images/icons/1pts.jpg" width="16" height="15" alt="Earn 1 Point"></span>'}}}showPoints(G,J);if(q!=null){alert(q.firstChild.data)}if((L!=null)&&(h!=null)&&(Q!=null)&&(E!=null)){RedrawMap(E.firstChild.data,h.firstChild.data,Q.firstChild.data,L.firstChild.data)}}};xmlhttp.setRequestHeader("Accept","message/x-formresult");xmlhttp.send(null);return false}function refreshPoints(){return true}function showPoints(a,b){return true}function showFileUpload(b,a){document.getElementById("pixup").innerHTML='<form method="post" enctype="multipart/form-data" action="http://www.zoomatlas.com/cgi-bin/pixup.prl"><input type="hidden" name="lid" value="'+b+'"><input type="hidden" name="featureType" value="'+a+'"><input type=file size="10" name=upfile><br/><input type=submit value=Upload></form>'}function showTextEdit(b,g,f,a,d,c){showEditField(b,g,f,a,d,c,"Text")}function showIntEdit(c,h,g,a,f,d){optionalChar=-1;var b=g.replace(/,/g,"");showEditField(c,h,b,a,f,d,"Int")}function showFloatEdit(b,g,f,a,d,c){optionalChar=190;showEditField(b,g,f,a,d,c,"Int")}function showEditField(c,h,g,a,f,d,b){ib_lid=f;ib_featureType=d;ib_fieldLongName=c;ib_fieldName=h;document.getElementById(h).innerHTML='<input type="text" onkeypress="return onIB'+b+'Enter(event,this.form);" id="ib_'+h+'" SIZE="'+a+'" VALUE="'+g+'">';document.getElementById(h+"_R").innerHTML='<input type=submit onclick="javascript:saveTextChanges();" style="font-size:60%" value="OK">'}function onIBTextEnter(a,b){var c=null;if(a.which){c=a.which}else{if(a.keyCode){c=a.keyCode}}if(13==c){saveTextChanges();return false}return true}function onIBIntEnter(a,b){var c=null;if(a.which){c=a.which}else{if(a.keyCode){c=a.keyCode}}if(13==c){saveTextChanges();return false}else{if(c<48){if((c==8)||(c==37)||(c==39)||(c==46)||(c==optionalChar)){return true}return false}else{if(c>=58){return false}}}return true}function showListEdit(b,g,f,d,c){var a=f.replace(/<br\/>/g,"\n");ib_lid=d;ib_featureType=c;ib_fieldLongName=b;ib_fieldName=g;document.getElementById(g).innerHTML=b+'<textarea id="ib_'+g+'" rows="4" cols="20">'+a+"</textarea>";document.getElementById(g+"_R").innerHTML='<input type=submit onclick="javascript:saveTextChanges();" style="font-size:60%" value="OK">'}function showRoadMenu(c,g,a,f,d){var b=new COOLjsMenu("menu1",LOCAL_ROAD_ITEMS);ib_lid=f;ib_featureType=d;ib_fieldLongName=c;ib_fieldName=g;document.getElementById(g).innerHTML=c+b+'<select id="ib_'+g+'">'+decodeURIComponent(a)+"</select>";document.getElementById(g+"_R").innerHTML='<input type=submit onclick="javascript:saveTextChanges();" style="font-size:60%" value="OK">'}function showPulldownMenu(l,h,a,f,d){var k="";var c="";var b="";if(h=="block"){c="<br/>"}if(h=="addrblock"){b='style="font-size:70%"'}if((h=="block")||(h=="addrblock")){k=c+"House or Bldg #:<input "+b+' type="text" id="housenum" size="4" value="">'}ib_lid=f;ib_featureType=d;ib_fieldLongName=l;ib_fieldName=h;var g=decodeURIComponent(a).replace(/\+/g," ");document.getElementById(h).innerHTML=c+"<select  "+b+' id="ib_'+h+'">'+g+"</select>"+k;document.getElementById(h+"_R").innerHTML='<input type=submit onclick="javascript:saveTextChanges();" '+b+' value="OK">'}function showSuggestionBox(b){var a=new YAHOO.widget.Panel("suggestBox"+seqnum,{width:"335px",visible:true,draggable:true,close:true,constraintoviewport:true,context:[b,"tl","tl"]});a.setHeader("Cannot post note here");a.setBody('<img src="/images/suggestion.jpg" />');a.render(document.body)}function loadFeatureMenu(a,d,b,f){var c=buildPropertyMenu(b);showPulldownMenu("","featureFullname",c,d,b)}function buildPropertyMenu(b){if(propertyMenu==null){propertyMenu=new Array();propertyMenu[0]=new Array(2);propertyMenu[1]=new Array(2);propertyMenu[2]=new Array(2);propertyMenu[3]=new Array(2);propertyMenu[4]=new Array(2);propertyMenu[5]=new Array(2);propertyMenu[6]=new Array(2);propertyMenu[7]=new Array(2);propertyMenu[8]=new Array(2);propertyMenu[9]=new Array(2);propertyMenu[10]=new Array(2);propertyMenu[11]=new Array(2);propertyMenu[12]=new Array(2);propertyMenu[13]=new Array(2);propertyMenu[14]=new Array(2);propertyMenu[15]=new Array(2);propertyMenu[16]=new Array(2);propertyMenu[17]=new Array(2);propertyMenu[18]=new Array(2);propertyMenu[19]=new Array(2);propertyMenu[20]=new Array(2);propertyMenu[21]=new Array(2);propertyMenu[22]=new Array(2);propertyMenu[23]=new Array(2);propertyMenu[24]=new Array(2);propertyMenu[25]=new Array(2);propertyMenu[26]=new Array(2);propertyMenu[27]=new Array(2);propertyMenu[28]=new Array(2);propertyMenu[29]=new Array(2);propertyMenu[30]=new Array(2);propertyMenu[31]=new Array(2);propertyMenu[32]=new Array(2);propertyMenu[33]=new Array(2);propertyMenu[34]=new Array(2);propertyMenu[35]=new Array(2);propertyMenu[36]=new Array(2);propertyMenu[37]=new Array(2);propertyMenu[38]=new Array(2);propertyMenu[39]=new Array(2);propertyMenu[40]=new Array(2);propertyMenu[41]=new Array(2);propertyMenu[42]=new Array(2);propertyMenu[43]=new Array(2);propertyMenu[44]=new Array(2);propertyMenu[45]=new Array(2);propertyMenu[46]=new Array(2);propertyMenu[47]=new Array(2);propertyMenu[48]=new Array(2);propertyMenu[49]=new Array(2);propertyMenu[50]=new Array(2);propertyMenu[51]=new Array(2);propertyMenu[52]=new Array(2);propertyMenu[53]=new Array(2);propertyMenu[54]=new Array(2);propertyMenu[55]=new Array(2);propertyMenu[56]=new Array(2);propertyMenu[57]=new Array(2);propertyMenu[58]=new Array(2);propertyMenu[59]=new Array(2);propertyMenu[60]=new Array(2);propertyMenu[61]=new Array(2);propertyMenu[62]=new Array(2);propertyMenu[63]=new Array(2);propertyMenu[64]=new Array(2);propertyMenu[65]=new Array(2);propertyMenu[66]=new Array(2);propertyMenu[67]=new Array(2);propertyMenu[68]=new Array(2);propertyMenu[69]=new Array(2);propertyMenu[70]=new Array(2);propertyMenu[71]=new Array(2);propertyMenu[72]=new Array(2);propertyMenu[73]=new Array(2);propertyMenu[74]=new Array(2);propertyMenu[75]=new Array(2);propertyMenu[76]=new Array(2);propertyMenu[77]=new Array(2);propertyMenu[78]=new Array(2);propertyMenu[79]=new Array(2);propertyMenu[80]=new Array(2);propertyMenu[81]=new Array(2);propertyMenu[82]=new Array(2);propertyMenu[83]=new Array(2);propertyMenu[84]=new Array(2);propertyMenu[85]=new Array(2);propertyMenu[86]=new Array(2);propertyMenu[87]=new Array(2);propertyMenu[88]=new Array(2);propertyMenu[89]=new Array(2);propertyMenu[90]=new Array(2);propertyMenu[91]=new Array(2);propertyMenu[92]=new Array(2);propertyMenu[93]=new Array(2);propertyMenu[94]=new Array(2);propertyMenu[95]=new Array(2);propertyMenu[96]=new Array(2);propertyMenu[97]=new Array(2);propertyMenu[98]=new Array(2);propertyMenu[99]=new Array(2);propertyMenu[0][0]=187;propertyMenu[0][1]="Academic Building";propertyMenu[1][0]=96;propertyMenu[1][1]="Airport";propertyMenu[2][0]=115;propertyMenu[2][1]="Apartment Complex";propertyMenu[3][0]=215;propertyMenu[3][1]="Aquarium";propertyMenu[4][0]=224;propertyMenu[4][1]="Auto Rental";propertyMenu[5][0]=225;propertyMenu[5][1]="Auto Sales";propertyMenu[6][0]=217;propertyMenu[6][1]="Auto Service";propertyMenu[7][0]=97;propertyMenu[7][1]="Aviation Community";propertyMenu[8][0]=241;propertyMenu[8][1]="Bakery";propertyMenu[9][0]=200;propertyMenu[9][1]="Bank";propertyMenu[10][0]=184;propertyMenu[10][1]="Bar/Nightclub";propertyMenu[11][0]=172;propertyMenu[11][1]="Beach Area";propertyMenu[12][0]=214;propertyMenu[12][1]="Billiards Hall";propertyMenu[13][0]=212;propertyMenu[13][1]="Bowling Alley";propertyMenu[14][0]=98;propertyMenu[14][1]="Business Campus";propertyMenu[15][0]=194;propertyMenu[15][1]="Bus Stop";propertyMenu[16][0]=185;propertyMenu[16][1]="Cafe/Coffee House";propertyMenu[17][0]=209;propertyMenu[17][1]="Campground";propertyMenu[18][0]=161;propertyMenu[18][1]="Cemetery";propertyMenu[19][0]=238;propertyMenu[19][1]="Clothing Store";propertyMenu[20][0]=208;propertyMenu[20][1]="Club / Lodge";propertyMenu[21][0]=110;propertyMenu[21][1]="College/University";propertyMenu[22][0]=169;propertyMenu[22][1]="Commercial Property";propertyMenu[23][0]=179;propertyMenu[23][1]="Cropland";propertyMenu[24][0]=236;propertyMenu[24][1]="Day Care/Nursery";propertyMenu[25][0]=173;propertyMenu[25][1]="Department Store";propertyMenu[26][0]=99;propertyMenu[26][1]="Development";propertyMenu[27][0]=188;propertyMenu[27][1]="Dorm/Student Housing";propertyMenu[28][0]=227;propertyMenu[28][1]="Drive-In Theater";propertyMenu[29][0]=232;propertyMenu[29][1]="Drug Store/Pharmacy";propertyMenu[30][0]=101;propertyMenu[30][1]="Equestrian Community";propertyMenu[31][0]=197;propertyMenu[31][1]="Factory/Utility";propertyMenu[32][0]=219;propertyMenu[32][1]="Fairground";propertyMenu[33][0]=171;propertyMenu[33][1]="Farm / Ranch";propertyMenu[34][0]=183;propertyMenu[34][1]="Fast Food Restaurant";propertyMenu[35][0]=191;propertyMenu[35][1]="Firehouse";propertyMenu[36][0]=205;propertyMenu[36][1]="Florist /Greenhouse";propertyMenu[37][0]=218;propertyMenu[37][1]="Forest";propertyMenu[38][0]=102;propertyMenu[38][1]="Golf Community";propertyMenu[39][0]=162;propertyMenu[39][1]="Golf Course";propertyMenu[40][0]=229;propertyMenu[40][1]="Government Building";propertyMenu[41][0]=103;propertyMenu[41][1]="Government Campus";propertyMenu[42][0]=177;propertyMenu[42][1]="Grazing Land";propertyMenu[43][0]=234;propertyMenu[43][1]="Grocery Store";propertyMenu[44][0]=189;propertyMenu[44][1]="Gymnasium";propertyMenu[45][0]=233;propertyMenu[45][1]="Hair/Beauty Salon";propertyMenu[46][0]=237;propertyMenu[46][1]="Historic Site";propertyMenu[47][0]=199;propertyMenu[47][1]="Hospital";propertyMenu[48][0]=211;propertyMenu[48][1]="Hotel / Motel";propertyMenu[49][0]=176;propertyMenu[49][1]="House of Worship";propertyMenu[50][0]=198;propertyMenu[50][1]="Jail/Prison";propertyMenu[51][0]=240;propertyMenu[51][1]="Jewelry Store";propertyMenu[52][0]=223;propertyMenu[52][1]="Landfill";propertyMenu[53][0]=186;propertyMenu[53][1]="Library";propertyMenu[54][0]=235;propertyMenu[54][1]="Liquor Store";propertyMenu[55][0]=226;propertyMenu[55][1]="Live Theater";propertyMenu[56][0]=116;propertyMenu[56][1]="Mall/Shopping Center";propertyMenu[57][0]=206;propertyMenu[57][1]="Marina";propertyMenu[58][0]=104;propertyMenu[58][1]="Medical Center";propertyMenu[59][0]=117;propertyMenu[59][1]="Military Base";propertyMenu[60][0]=221;propertyMenu[60][1]="Military Building";propertyMenu[61][0]=174;propertyMenu[61][1]="MixedUse Comml/Resid.";propertyMenu[62][0]=231;propertyMenu[62][1]="Mobile Home";propertyMenu[63][0]=121;propertyMenu[63][1]="Mobile Home Park";propertyMenu[64][0]=204;propertyMenu[64][1]="Movie Theater";propertyMenu[65][0]=163;propertyMenu[65][1]="Multi-Family Residential";propertyMenu[66][0]=190;propertyMenu[66][1]="Museum";propertyMenu[67][0]=70;propertyMenu[67][1]="Neighborhood";propertyMenu[68][0]=180;propertyMenu[68][1]="Nursing Home";propertyMenu[69][0]=207;propertyMenu[69][1]="Office Building";propertyMenu[70][0]=222;propertyMenu[70][1]="Orchard";propertyMenu[71][0]=164;propertyMenu[71][1]="Park";propertyMenu[72][0]=182;propertyMenu[72][1]="Parking Lot/Structure";propertyMenu[73][0]=220;propertyMenu[73][1]="Police Station";propertyMenu[74][0]=113;propertyMenu[74][1]="Port Area";propertyMenu[75][0]=230;propertyMenu[75][1]="Post Office";propertyMenu[76][0]=165;propertyMenu[76][1]="Public Space/Plaza";propertyMenu[77][0]=119;propertyMenu[77][1]="Quad";propertyMenu[78][0]=210;propertyMenu[78][1]="Race Track";propertyMenu[79][0]=203;propertyMenu[79][1]="Repair Service";propertyMenu[80][0]=175;propertyMenu[80][1]="Restaurant";propertyMenu[81][0]=245;propertyMenu[81][1]="Retail Store";propertyMenu[82][0]=201;propertyMenu[82][1]="Retirement Home";propertyMenu[83][0]=195;propertyMenu[83][1]="School Property";propertyMenu[84][0]=100;propertyMenu[84][1]="School Campus";propertyMenu[85][0]=114;propertyMenu[85][1]="Section/Subdivision";propertyMenu[86][0]=181;propertyMenu[86][1]="Service Station";propertyMenu[87][0]=239;propertyMenu[87][1]="Shoe Store";propertyMenu[88][0]=170;propertyMenu[88][1]="Single-Family Residential";propertyMenu[89][0]=213;propertyMenu[89][1]="Skating Rink";propertyMenu[90][0]=106;propertyMenu[90][1]="Ski Area";propertyMenu[91][0]=107;propertyMenu[91][1]="Sports/Ent. Complex";propertyMenu[92][0]=193;propertyMenu[92][1]="Subway Station";propertyMenu[93][0]=228;propertyMenu[93][1]="Summer Camp";propertyMenu[94][0]=202;propertyMenu[94][1]="Supermarket";propertyMenu[95][0]=118;propertyMenu[95][1]="Theme Park";propertyMenu[96][0]=178;propertyMenu[96][1]="Timberland";propertyMenu[97][0]=192;propertyMenu[97][1]="Transport Hub";propertyMenu[98][0]=196;propertyMenu[98][1]="Undeveloped Land";propertyMenu[99][0]=120;propertyMenu[99][1]="Zoo"}var c="";var a=0;for(a=0;a<=99;a++){c+="<option value=";c+=propertyMenu[a][0];if(b==propertyMenu[a][0]){c+=" selected"}c+=">";c+=propertyMenu[a][1];c+="</option>"}return c};