eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('r.5=w(k,d,a){4(m d!=\'H\'){a=a||{};4(d===p){d=\'\';a.3=-1}2 g=\'\';4(a.3&&(m a.3==\'n\'||a.3.u)){2 f;4(m a.3==\'n\'){f=G E();f.C(f.B()+(a.3*z*s*s*v))}o{f=a.3}g=\'; 3=\'+f.u()}2 b=a.7?\'; 7=\'+(a.7):\'\';2 e=a.9?\'; 9=\'+(a.9):\'\';2 l=a.t?\'; t\':\'\';6.5=[k,\'=\',K(d),g,b,e,l].I(\'\')}o{2 h=p;4(6.5&&6.5!=\'\'){2 c=6.5.F(\';\');D(2 i=0;i> 1, 19 >> 1); return icon; } var complexesStr = "0"; mapConf.mapstatekey = 'Cornwall-NY-'; function loadMap(id){ var map = new GMap2(document.getElementById(id),{size : new GSize(581,424)}); mapConf.markers = new Array(); if(mapConf.getLat() && mapConf.getLon()){ map.setCenter( new GLatLng(mapConf.getLat(),mapConf.getLon()), (mapConf.getZoom() ? mapConf.getZoom() : 13) ); } else { map.setCenter(new GLatLng(41.4138,-74.0483), 13); } map.addControl(new GMapTypeControl()); map.addControl(new GLargeMapControl()); var baseIcon = new GIcon(); baseIcon.shadow = "/review/images/goog-pin-shadow.png"; baseIcon.iconSize = new GSize(10, 19); baseIcon.iconAnchor = new GPoint(10 >> 1, 19 >> 1); baseIcon.shadowSize = new GSize(45, 45); baseIcon.infoWindowAnchor = new GPoint(10 >> 1, 19 >> 1); baseIcon.infoShadowAnchor = new GPoint(10 >> 1, 19 >> 1); if(mapConf.getCurrentComplex().complex_id && mapConf.getCurrentComplex().complex_id != 'undefined'){ curmarker = createMarker(mapConf.getCurrentComplex(),baseIcon,map); map.addOverlay(curmarker); curmarker.openInfoWindowHtml(mapConf.getCurrentComplex().html); } this.getComplexes = function(){ var NE = map.getBounds().getNorthEast(); var SW = map.getBounds().getSouthWest(); var frm = document.forms["map_marker_request"]; frm.minLat.value = SW.lat(); frm.minLon.value = SW.lng(); frm.maxLat.value = NE.lat(); frm.maxLon.value = NE.lng(); frm.exclude.value= complexesStr; AjaxRequest.submit( frm, { 'onSuccess':function(req){ try{ objComplexes = eval("("+ req.responseText + ")"); loadComplexes(map,objComplexes.ResultSet,baseIcon); incompleteSetDialogue(objComplexes.more); }catch(err){ alert(err); } } ,'onError':function(req){ } ,'generateUniqueUrl':false } ); } GEvent.addListener(map, "moveend", this.getComplexes); GEvent.addListener(map, "moveend", function(){mapConf.saveCenter(map)}); GEvent.addListener(map, "zoomend", function(){mapConf.setZoom(map.getZoom())}); } function incompleteSetDialogue(bShow){ if(bShow){ document.getElementById("map_display_message").className = "map_display_message"; } else { document.getElementById("map_display_message").className = "noshow"; } }