var regions = new Array();
r = new Node('51','Marlborough');
d = new Node('270','Marlborough District');
d.children.push(new Node('1273','Blenheim'));
d.children.push(new Node('1277','Picton'));
d.children.push(new Node('2180','Rarangi'));
d.children.push(new Node('2181','Redwoodtown'));
r.children.push(d);
regions.push(r);
r = new Node('43','Nelson & Bays');
d = new Node('271','Nelson City');
d.children.push(new Node('1248','Annesbrook'));
d.children.push(new Node('1251','Bishopdale - Nelson City'));
d.children.push(new Node('1254','Enner Glynn'));
d.children.push(new Node('1260','Nelson'));
d.children.push(new Node('1849','Port Hills'));
d.children.push(new Node('1263','Stepneyville'));
d.children.push(new Node('1266','The Wood'));
d.children.push(new Node('1268','Toi Toi'));
d.children.push(new Node('1271','Washington Valley'));
r.children.push(d);
d = new Node('269','Tasman District');
d.children.push(new Node('1243','Motueka'));
d.children.push(new Node('1244','Nelson Bays Coastal'));
d.children.push(new Node('1246','Richmond - Tasman'));
d.children.push(new Node('1841','Upper Moutere'));
r.children.push(d);
regions.push(r);
var listing_types = new Array();
t = new Node('4','Business');
t.children.push(new Node('30','Accommodation'));
t.children.push(new Node('31','Contractor'));
t.children.push(new Node('32','Distribution'));
t.children.push(new Node('33','Franchise'));
t.children.push(new Node('34','Hospitality'));
t.children.push(new Node('35','Manufacturing'));
t.children.push(new Node('36','Professional'));
t.children.push(new Node('38','Rest Home'));
t.children.push(new Node('37','Restaurant'));
t.children.push(new Node('39','Retail Food'));
t.children.push(new Node('40','Retail General'));
t.children.push(new Node('41','Services'));
t.children.push(new Node('42','Sporting'));
t.children.push(new Node('43','Tourism'));
t.children.push(new Node('44','Transport'));
t.children.push(new Node('45','Wholesale'));
listing_types.push(t);
t = new Node('2','Commercial & Industrial');
t.children.push(new Node('28','Commercial Land'));
t.children.push(new Node('22','Hotel Motel Leisure to Buy'));
t.children.push(new Node('26','Hotel Motel Leisure to Lease'));
t.children.push(new Node('29','Industrial Land'));
t.children.push(new Node('19','Industrial to Buy'));
t.children.push(new Node('23','Industrial to Lease'));
t.children.push(new Node('27','Investment Flat'));
t.children.push(new Node('21','Office to Buy'));
t.children.push(new Node('25','Office to Lease'));
t.children.push(new Node('20','Retail to Buy'));
t.children.push(new Node('24','Retail to Lease'));
listing_types.push(t);
t = new Node('1','Residential');
t.children.push(new Node('2','Apartment'));
t.children.push(new Node('4','Home & Income'));
t.children.push(new Node('3','House'));
t.children.push(new Node('5','Lifestyle'));
t.children.push(new Node('8','Section'));
t.children.push(new Node('7','Townhouse'));
t.children.push(new Node('6','Unit'));
listing_types.push(t);
t = new Node('5','Residential Rentals');
t.children.push(new Node('9','Apartment'));
t.children.push(new Node('17','Flat'));
t.children.push(new Node('10','House'));
t.children.push(new Node('14','Townhouse'));
t.children.push(new Node('13','Unit'));
listing_types.push(t);
t = new Node('3','Rural');
t.children.push(new Node('48','Arable'));
t.children.push(new Node('56','Bare Land'));
t.children.push(new Node('49','Dairy'));
t.children.push(new Node('50','Fattening'));
t.children.push(new Node('51','Forestry'));
t.children.push(new Node('52','Grazing'));
t.children.push(new Node('53','Horticultural'));
t.children.push(new Node('47','Other'));
t.children.push(new Node('55','Specialist Livestock'));
t.children.push(new Node('54','Sth Island High Country'));
listing_types.push(t)
