","afterDisclaimer":""},"listingDetail":{"beforeDisclaimer":null,"afterDisclaimer":null,"marketDisclaimer":{"copyright":{"before":null,"after":null},"disclaimer":{"before":null,"after":null},"eula":{"before":null,"after":null},"dmca":{"before":null,"after":null}}},"listingFilters":{"listingStatuses":{"onekey":["Active"]},"listingTypes":{"onekey":["residential","rental","land","multifamily","commercial"]},"propertyTypes":{"onekey":{"residential":["Apartment","Condominium","Manufactured Home","Manufactured On Land","Mobile Home","Mobile Home with Land","Single Family Residence","Stock Cooperative","Townhouse"],"rental":["Apartment","Condominium","Duplex","Manufactured Home","Mobile Home with Land","Multi Family","Single Family Residence","Stock Cooperative","Townhouse"],"land":["Industrial","Unimproved Land"],"multifamily":["Condominium","Duplex","Quadruplex","Stock Cooperative","Triplex"],"commercial":["Agriculture","Business","Hotel/Motel","Industrial","Mixed Use","Multi Family","Office","Retail","Unimproved Land","Warehouse"]}}},"share":{"allow":true},"allowLookupAreas":["place","township","county","neighborhood","zipcode","school"],"pageDetailsPattern":"https://www.johncordeira.com/search/?listing={id}&market={market}","menu":{"items":[{"caption":"Contact","href":"https://www.johncordeira.com/contact/"},{"caption":"Search","href":"https://www.johncordeira.com/?p=1655","children":[{"caption":"Search Listings","href":"https://www.johncordeira.com/long-island-newest-homes/"},{"caption":"Sold","href":"https://www.johncordeira.com/properties/listing-type/sold/"},{"caption":"Map Search","href":"/search"},{"caption":"Specialty Searches","href":"#","children":[{"caption":"Luxury Homes of Long Island","href":"https://www.johncordeira.com/area/luxury-homes-long-island/"},{"caption":"Waterfront Homes","href":"#","children":[{"caption":"Waterfront Homes of Long Island","href":"https://www.johncordeira.com/area/waterfront-homes-of-long-island/"},{"caption":"Luxury Waterfront Homes of Long Island","href":"https://www.johncordeira.com/area/luxury-waterfront-homes-of-long-island/"},{"caption":"Waterfront Massapequa","href":"https://www.johncordeira.com/area/waterfront-massapequa/"},{"caption":"Waterfront Bar Harbour Massapequa Park","href":"https://www.johncordeira.com/area/waterfront-bar-harbour-massapequa-park/"},{"caption":"Waterfront Old Harbour Green Massapequa","href":"https://www.johncordeira.com/area/waterfront-old-harbour-green-massapequa/"},{"caption":"Waterfront Biltmore Shores Massapequa","href":"https://www.johncordeira.com/area/waterfront-biltmore-shores-massapequa/"},{"caption":"Waterfront Harbour Green Massapequa","href":"https://www.johncordeira.com/area/waterfront-harbour-green-massapequa/"}]}]},{"caption":"Distressed Properties","href":"https://www.johncordeira.com/distressed-properties/"},{"caption":"New Construction","href":"https://www.johncordeira.com/search-new-construction/"}]},{"caption":"Featured Listings","href":"https://www.johncordeira.com/featured-listings/"},{"caption":"Neighborhoods","href":"#","children":[{"caption":"Barnum Woods","href":"https://www.johncordeira.com/area/east-meadow-real-estate/barnum-woods-east-meadow/"},{"caption":"Barnum Woods Proper","href":"https://www.johncordeira.com/area/barnum-woods-proper-east-meadow/"},{"caption":"Bellmore homes for sale","href":"https://www.johncordeira.com/area/bellmore-homes-for-sale/"},{"caption":"North Bellmore Homes for sale","href":"https://www.johncordeira.com/north-bellmore/"},{"caption":"East Meadow","href":"#","children":[{"caption":"East Meadow","href":"https://www.johncordeira.com/area/east-meadow-real-estate/"},{"caption":"East Meadow $350k to $400k","href":"https://www.johncordeira.com/east-meadow-350k-to-400k/"},{"caption":"East Meadow $400k to $450k","href":"https://www.johncordeira.com/east-meadow-400k-450k/"},{"caption":"East Meadow $450K to $500k","href":"https://www.johncordeira.com/east-meadow-450k-500k/"},{"caption":"East Meadow $500k to $600k","href":"https://www.johncordeira.com/east-meadow-500k-600k/"},{"caption":"East Meadow $600 and up","href":"https://www.johncordeira.com/east-meadow-600/"},{"caption":"East Meadow and Salisbury","href":"https://www.johncordeira.com/east-meadow-schools/"},{"caption":"Clearmeadow of East Meadow","href":"https://www.johncordeira.com/clearmeadow-east-meadow/"},{"caption":"Salisbury","href":"https://www.johncordeira.com/salisbury/"}]},{"caption":"Farmingdale","href":"https://www.johncordeira.com/farmingdale/"},{"caption":"Franklin Square","href":"https://www.johncordeira.com/franklin-square/"},{"caption":"Garden City","href":"https://www.johncordeira.com/garden-city/"},{"caption":"Great Neck","href":"https://www.johncordeira.com/great-neck/"},{"caption":"Herricks","href":"https://www.johncordeira.com/herricks/"},{"caption":"Hicksville","href":"https://www.johncordeira.com/area/hicksville/"},{"caption":"Jericho","href":"https://www.johncordeira.com/area/jericho/"},{"caption":"Levittown","href":"https://www.johncordeira.com/levittown/"},{"caption":"Lindenhurst","href":"https://www.johncordeira.com/lindenhurst/"},{"caption":"Long Island New York","href":"https://www.johncordeira.com/area/long-island/"},{"caption":"Manhasset","href":"https://www.johncordeira.com/manhasset/"},{"caption":"Massapequa","href":"#","children":[{"caption":"Massapequa","href":"https://www.johncordeira.com/area/homes-sale-massapequa/"},{"caption":"Massapequa School District","href":"https://www.johncordeira.com/massapequa-school-district/"},{"caption":"Massapequa Luxury Homes","href":"https://www.johncordeira.com/massapequa-luxury-homes/"},{"caption":"South Massapequa","href":"https://www.johncordeira.com/south-massapequa/"},{"caption":"North Massapequa","href":"https://www.johncordeira.com/area/north-massapequa/"},{"caption":"Massapequa Shores","href":"https://www.johncordeira.com/area/massapequa-shores-massapequa-ny/"},{"caption":"Bar Harbor","href":"https://www.johncordeira.com/area/massapequa-park/bar-harbour/"},{"caption":"Biltmore Shores","href":"https://www.johncordeira.com/area/biltmore-shores-massapequa/"},{"caption":"Harbour Green","href":"https://www.johncordeira.com/area/harbor-green-massapequa/"},{"caption":"Nassau Shores","href":"https://www.johncordeira.com/area/nassau-shores-massapequa-ny/"},{"caption":"Old Harbour Green","href":"https://www.johncordeira.com/area/old-harbour-green-massapequa/"}]},{"caption":"Massapequa Park","href":"#","children":[{"caption":"Massapequa Park","href":"https://www.johncordeira.com/area/massapequa-park/"},{"caption":"Bar Harbour Massapequa Park","href":"https://www.johncordeira.com/bar-harbour-massapequa/"}]},{"caption":"Merrick","href":"#","children":[{"caption":"Homes for Sale Merrick NY 11566","href":"https://www.johncordeira.com/area/merrick/"}]},{"caption":"Oceanside","href":"https://www.johncordeira.com/oceanside/"},{"caption":"Old Westbury","href":"https://www.johncordeira.com/old-westbury-homes-for-sale/"},{"caption":"Plainview","href":"https://www.johncordeira.com/homes-sale-plainview-ny/"},{"caption":"Roslyn","href":"https://www.johncordeira.com/roslyn/"},{"caption":"Seaford","href":"#","children":[{"caption":"Seaford Long Island NY","href":"https://www.johncordeira.com/area/seaford/"},{"caption":"South Seaford","href":"https://www.johncordeira.com/south-seaford/"}]},{"caption":"Wantagh Homes for sale","href":"https://www.johncordeira.com/area/wantagh-homes/"},{"caption":"West Hempstead","href":"https://www.johncordeira.com/west-hempstead/"},{"caption":"Williston Park","href":"https://www.johncordeira.com/williston-park-east-williston/"}]},{"caption":"Free Resources","href":"https://*","children":[{"caption":"Sellers","href":"#","children":[{"caption":"Selling your Home","href":"https://www.johncordeira.com/sellers/"},{"caption":"Marketing Your Home","href":"https://www.johncordeira.com/the-basics-of-marketing-your-home/"},{"caption":"Get Your House Ready","href":"https://www.johncordeira.com/get-your-house-ready-to-show-to-buyers/"},{"caption":"How to Set a List Price","href":"https://www.johncordeira.com/how-to-set-a-list-price-for-your-home/"},{"caption":"Why Use a REALTOR\u00ae","href":"https://www.johncordeira.com/why-use-a-realtor-when-selling-a-home/"},{"caption":"Home Values","href":"https://www.johncordeira.com/ms_landing.html"}]},{"caption":"Buyers","href":"#","children":[{"caption":"What is a Buyer Broker?","href":"https://www.johncordeira.com/buyer-broker/"},{"caption":"Buying a Home","href":"https://www.johncordeira.com/buying/"},{"caption":"How to Choose a Neighborhood","href":"https://www.johncordeira.com/how-to-choose-a-neighborhood-for-your-home-search/"},{"caption":"How to Choose a Home","href":"https://www.johncordeira.com/how-to-choose-a-home/"},{"caption":"Why Use a REALTOR\u00ae","href":"https://www.johncordeira.com/why-use-a-realtor-when-buying-a-home/"},{"caption":"The Basics of Making an Offer","href":"https://www.johncordeira.com/the-basics-of-making-an-offer/"},{"caption":"Home Inspections","href":"https://www.johncordeira.com/home-inspections-avert-future-headaches/"},{"caption":"Take Charge When Buying a Home","href":"https://www.johncordeira.com/take-charge-when-buying-a-home/"},{"caption":"FREE Lifestyle Finder","href":"https://www.johncordeira.com/community-lifestyle-data-area-stats-schools-and-local-businesses/"}]},{"caption":"FREE Property Email Alerts","href":"https://www.johncordeira.com/property-email-alerts/"},{"caption":"Inman News Feed","href":"https://www.johncordeira.com/inman-news-feed/"},{"caption":"Finance Calculators","href":"https://www.johncordeira.com/finance-calculators/"},{"caption":"Community Lifestyle Data","href":"https://www.johncordeira.com/community-lifestyle-data-area-stats-schools-and-local-businesses/"},{"caption":"Lead Paint Brochure","href":"https://www.johncordeira.com/lead-paint-brochure/"},{"caption":"FAQs","href":"https://www.johncordeira.com/faqs/"},{"caption":"Mortgage Rates","href":"https://www.johncordeira.com/noteworthy-real-time-mortgage-news/"},{"caption":"Fair Housing Notice","href":"https://www.dos.ny.gov/licensing/docs/FairHousingNotice_new.pdf"}]},{"caption":"About","href":"https://www.johncordeira.com/about/","children":[{"caption":"John's Real-Life Tips","href":"https://www.johncordeira.com/category/johns-tips-for-buying-and-selling-homes/"},{"caption":"John's Bio","href":"https://www.johncordeira.com/about/"},{"caption":"John Cordeira Testimonials","href":"https://www.johncordeira.com/testimonials-2/"},{"caption":"Sold Listings","href":"https://www.johncordeira.com/properties/listing-type/sold/"}]}],"horizontal":{"logo":"","before":null,"after":null},"vertical":{"logo":"","before":null,"after":null}},"timeCorrection":-5};
options.footer.customDisclaimer = (market, key, position) => {
return getBrokerComplianceByMarket(market, key, position);
};
var notificationPosition = 'toast-bottom-right',
crmIntegration,
vendorMetrics,
HJI = window.HJI || {};
hj.init(options);
hj.on('ready', function()
{
loadCustomScripts();
if (crmIntegration)
{
hj.app.login(crmIntegration.options.uid);
}
vendorMetrics = hjEventHandler.vendorMetrics();
});
hj.on('submit.contact_form', function(formData, listing)
{
formData.listing = JSON.stringify(listing);
hjEventHandler.submitContactForm(formData);
if (vendorMetrics)
{
vendorMetrics.trackEvent('listingInquiry', listing);
}
});
hj.on('user.logged', function(user) {
const loginEvent = new CustomEvent('hji-users/login', { detail: {user: user } });
document.dispatchEvent(loginEvent);
hjEventHandler.handleUserLogin(user);
});
hj.on('user.registration', function(user) {
const registrationEvent = new CustomEvent('hji-users/registration', { detail: {user: user } });
document.dispatchEvent(registrationEvent);
hjEventHandler.handleUserRegistration(user);
});
hj.on('search.success', function(response){
if (options.hasOwnProperty('crm'))
{
generateShortUrl();
}
});
hj.on('listing.viewed', function(listing) {
if (vendorMetrics)
{
vendorMetrics.trackEvent('listingView', listing);
}
});
hj.on('listing.saved', function(listing) {
if (vendorMetrics)
{
vendorMetrics.trackEvent('listingFavorite', listing);
}
});
var hjEventHandler =
{
submitContactForm: function(formData)
{
var that = this;
hj.notification.Add({
title: 'Sending...',
msg: '',
timeout: 2000,
position: notificationPosition,
type: 'info'
});
util.ajax.postToWP('handleContactFormSubmission', formData, function(data)
{
if (data.hasOwnProperty('user') && (typeof data.user == "object"))
{
if (!hj.app.isLogged())
that.signUserIn(data.user);
var options = {
msg: 'Thanks! We\'ll get back to you shortly.',
timeout: 3000,
position: notificationPosition,
type: 'success'
};
hj.notification.Add(options);
return;
}
if (data.hasOwnProperty('success') && data.success == false)
{
var options = {
msg: data.message || 'Please contact us via our contact page.',
timeout: 0,
position: notificationPosition,
type: 'error'
};
hj.notification.Add(options);
}
});
},
handleUserLogin: function(user)
{
util.ajax.postToWP('handleUserLogin', {email: user.email});
},
handleUserRegistration: function(user)
{
util.ajax.postToWP('handleUserRegistration', {email: user.email});
},
signUserIn: function(user)
{
localStorage.setItem('user', JSON.stringify({value: user, expire: null}));
hj.app.logged(user);
},
vendorMetrics: function()
{
if (vendorMetrics)
return vendorMetrics;
vendorMetrics = (function()
{
if (HJI.hasOwnProperty('vendorMetrics'))
{
return HJI.vendorMetrics(options.market);
}
return false;
})();
return vendorMetrics;
}
};
crmIntegration = (function()
{
if (!options.hasOwnProperty('crm')) return false;
var _options = options.crm;
var renderEmailBtn = function()
{
var elI = document.createElement('i');
elI.className = "fa fa-envelope-o";
var emailBtn = document.createElement('button');
emailBtn.className = "btn btn-primary button button-primary btn-shadow btn-email-search";
emailBtn.appendChild(elI);
emailBtn.appendChild(document.createTextNode("Email Search"));
emailBtn.style.position ='fixed';
emailBtn.style.top = '10px';
emailBtn.style.right = '10px';
emailBtn.onclick = function()
{
copySearchUrlToClipboard();
openEmailClient();
};
var h = document.getElementById('header');
h.appendChild(emailBtn);
return emailBtn;
};
var openEmailClient = function()
{
var url = 'https://hjicrm.zohoplatform.com/crm/EntReply.do?action=compose&entId='
+ _options.cid
+ '&module=' + _options.module
+ '&entEmail=';
window.open(url, '_blank', "top=100,left=100,width=1335,height=610");
};
return {
options: _options,
emailBtn: renderEmailBtn(),
openEmailClient: function()
{
return openEmailClient();
}
};
})();
var util =
{
ajax :
{
post: function(url, params, callback, headers)
{
var http = new XMLHttpRequest();
http.open("POST", url, true);
if (typeof headers === 'object')
{
for(var i in headers)
{
if ((typeof i === 'string') && (typeof headers[i] === 'string'))
{
http.setRequestHeader(i, headers[i]);
}
}
}
else
{
http.setRequestHeader("Accept", "application/json, text/javascript, */*; q=0.01");
http.setRequestHeader("Content-Type", "application/json");
}
http.onreadystatechange = function()
{
if (http.readyState == 4 && http.status == 200)
{
if (typeof callback == "function")
{
callback(JSON.parse(http.responseText));
}
}
};
if (typeof param === "object")
{
http.send(JSON.stringify(params));
}
else
{
http.send(params);
}
},
postToWP: function(action, data, callback)
{
var obj = {
action: action,
data: data
},
headers = {
"Accept": "application/json, text/javascript, */*; q=0.01",
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
};
try
{
var params = util.toQueryString(obj);
console.log(params);
util.ajax.post(ajaxUrl, params, callback, headers);
}
catch(err)
{
console.error(err.message);
}
}
},
toQueryString: function(a)
{
var s = [], rbracket = /\[\]$/,
isArray = function (obj) {
return Object.prototype.toString.call(obj) === '[object Array]';
}, add = function (k, v) {
v = typeof v === 'function' ? v() : v === null ? '' : v === undefined ? '' : v;
s[s.length] = encodeURIComponent(k) + '=' + encodeURIComponent(v);
}, buildParams = function (prefix, obj) {
var i, len, key;
if (prefix) {
if (isArray(obj)) {
for (i = 0, len = obj.length; i