function addMarkers() { mySelect = document.getElementById('selection'); Barnegat = [];Bay_Head = [];Bayville = [];Beach_Haven = [];Beachwood = [];Brick_Town = [];Brick = [];Lakehurst_Nj = [];Jackson = [];Lanoka_Harbor = [];Toms_River = [];Lakewood = [];West_Creek = [];Surf_City = [];Forked_River = [];Waretown = [];Point_Pleasant_Beach = [];Little_Egg_Harbor = [];Seaside_Hts = [];Island_Heights = [];Lakehurst = [];Lavallette = [];Ship_Bottom = [];Manchester = [];Manahawkin = [];Point_Pleasant = [];New_Egypt = [];Ocean_Gate = [];Pine_Beach = [];Tuckerton = [];Seaside_Park = [];South_Toms_River = [];Whiting = [];mySelect.options[mySelect.options.length] = new Option("Barnegat schools",'all=Barnegat'); mySelect.options[mySelect.options.length] = new Option("Bay Head schools",'all=Bay_Head'); mySelect.options[mySelect.options.length] = new Option("Bayville schools",'all=Bayville'); mySelect.options[mySelect.options.length] = new Option("Beach Haven schools",'all=Beach_Haven'); mySelect.options[mySelect.options.length] = new Option("Beachwood schools",'all=Beachwood'); mySelect.options[mySelect.options.length] = new Option("Brick schools",'all=Brick'); mySelect.options[mySelect.options.length] = new Option("Brick Town schools",'all=Brick_Town'); mySelect.options[mySelect.options.length] = new Option("Forked River schools",'all=Forked_River'); mySelect.options[mySelect.options.length] = new Option("Island Heights schools",'all=Island_Heights'); mySelect.options[mySelect.options.length] = new Option("Jackson schools",'all=Jackson'); mySelect.options[mySelect.options.length] = new Option("Lakehurst schools",'all=Lakehurst'); mySelect.options[mySelect.options.length] = new Option("Lakehurst Nj schools",'all=Lakehurst_Nj'); mySelect.options[mySelect.options.length] = new Option("Lakewood schools",'all=Lakewood'); mySelect.options[mySelect.options.length] = new Option("Lanoka Harbor schools",'all=Lanoka_Harbor'); mySelect.options[mySelect.options.length] = new Option("Lavallette schools",'all=Lavallette'); mySelect.options[mySelect.options.length] = new Option("Little Egg Harbor schools",'all=Little_Egg_Harbor'); mySelect.options[mySelect.options.length] = new Option("Manahawkin schools",'all=Manahawkin'); mySelect.options[mySelect.options.length] = new Option("Manchester schools",'all=Manchester'); mySelect.options[mySelect.options.length] = new Option("New Egypt schools",'all=New_Egypt'); mySelect.options[mySelect.options.length] = new Option("Ocean Gate schools",'all=Ocean_Gate'); mySelect.options[mySelect.options.length] = new Option("Pine Beach schools",'all=Pine_Beach'); mySelect.options[mySelect.options.length] = new Option("Point Pleasant schools",'all=Point_Pleasant'); mySelect.options[mySelect.options.length] = new Option("Point Pleasant Beach schools",'all=Point_Pleasant_Beach'); mySelect.options[mySelect.options.length] = new Option("Seaside Hts schools",'all=Seaside_Hts'); mySelect.options[mySelect.options.length] = new Option("Seaside Park schools",'all=Seaside_Park'); mySelect.options[mySelect.options.length] = new Option("Ship Bottom schools",'all=Ship_Bottom'); mySelect.options[mySelect.options.length] = new Option("South Toms River schools",'all=South_Toms_River'); mySelect.options[mySelect.options.length] = new Option("Surf City schools",'all=Surf_City'); mySelect.options[mySelect.options.length] = new Option("Toms River schools",'all=Toms_River'); mySelect.options[mySelect.options.length] = new Option("Tuckerton schools",'all=Tuckerton'); mySelect.options[mySelect.options.length] = new Option("Waretown schools",'all=Waretown'); mySelect.options[mySelect.options.length] = new Option("West Creek schools",'all=West_Creek'); mySelect.options[mySelect.options.length] = new Option("Whiting schools",'all=Whiting'); mySelect.options[mySelect.options.length] = new Option("---------------------------",''); Barnegat[Barnegat.length] = createMarker(new GPoint(-10.00000000,10.00000000),"
Barnegat High School
180 Bengal Blvd.
Barnegat, NJ 08005

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Barnegat High School",'Barnegat=' + Barnegat.length); Bay_Head[Bay_Head.length] = createMarker(new GPoint(-74.04943085,40.06974030),"
Bay Head Elementary School
145 Grove Street
Bay Head, NJ 08742

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Bay Head Elementary School",'Bay_Head=' + Bay_Head.length); Bayville[Bayville.length] = createMarker(new GPoint(-74.15917969,39.91886520),"
Bayville Elementary School
356 Atlantic City Blvd
Bayville, NJ 08721

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Bayville Elementary School",'Bayville=' + Bayville.length); Beach_Haven[Beach_Haven.length] = createMarker(new GPoint(-74.23529816,39.56769943),"
Beach Haven Elementary School
Beach Avenue At Eighth Street
Beach Haven, NJ 08008

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Beach Haven Elementary School",'Beach_Haven=' + Beach_Haven.length); Beachwood[Beachwood.length] = createMarker(new GPoint(-74.19228363,39.92381668),"
Beachwood Elementary School
901 Berkeley Avenue
Beachwood, NJ 08722

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Beachwood Elementary School",'Beachwood=' + Beachwood.length); Bayville[Bayville.length] = createMarker(new GPoint(-74.15833000,39.89937000),"
Berkeley Township Es
10 Emory Road
Bayville, NJ 08721

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Berkeley Township Es",'Bayville=' + Bayville.length); Brick_Town[Brick_Town.length] = createMarker(new GPoint(-10.00000000,10.00000000),"
Brick Center
350 Chambers Bridge Road
Brick Town, NJ 08723

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Brick Center",'Brick_Town=' + Brick_Town.length); Brick[Brick.length] = createMarker(new GPoint(-74.14730835,40.06801987),"
Brick Community Prim Learn Center
224-260 Chambers Bridge Rd.
Brick, NJ 08723

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Brick Community Prim Learn Center",'Brick=' + Brick.length); Brick_Town[Brick_Town.length] = createMarker(new GPoint(-74.15074921,40.07193375),"
Brick Township High School
346 Chambers Bridge Rd
Brick Town, NJ 08723

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Brick Township High School",'Brick_Town=' + Brick_Town.length); Brick[Brick.length] = createMarker(new GPoint(-74.13240051,40.10407257),"
Brick Township Memorial High School
2001 Lanes Mill Rd
Brick, NJ 08724

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Brick Township Memorial High School",'Brick=' + Brick.length); Lakehurst_Nj[Lakehurst_Nj.length] = createMarker(new GPoint(-74.36309814,40.02180099),"
Career & Technical Institute High School
Po Box 1125, Hangar One - Naes
Lakehurst Nj, NJ 08733

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Career & Technical Institute High School",'Lakehurst_Nj=' + Lakehurst_Nj.length); Jackson[Jackson.length] = createMarker(new GPoint(-74.39459229,40.15473557),"
Carl W Goetz Middle School
835 Patterson Road
Jackson, NJ 08527

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Carl W Goetz Middle School",'Jackson=' + Jackson.length); Barnegat[Barnegat.length] = createMarker(new GPoint(-74.21932983,39.75472260),"
Cecil S. Collins Elementary School
570 Barnegat Blvd. North
Barnegat, NJ 08005

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Cecil S. Collins Elementary School",'Barnegat=' + Barnegat.length); Lanoka_Harbor[Lanoka_Harbor.length] = createMarker(new GPoint(-74.19724274,39.86639023),"
Cedar Creek Elementary School
220 Western Blvd
Lanoka Harbor, NJ 08734

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Cedar Creek Elementary School",'Lanoka_Harbor=' + Lanoka_Harbor.length); Toms_River[Toms_River.length] = createMarker(new GPoint(-74.17121124,39.96848679),"
Cedar Grove Elementary School
179 Cedar Grove Road
Toms River, NJ 08753

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Cedar Grove Elementary School",'Toms_River=' + Toms_River.length); Bayville[Bayville.length] = createMarker(new GPoint(-74.20635986,39.89273834),"
Central Regional High School
Forest Hills Parkway
Bayville, NJ 08721

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Central Regional High School",'Bayville=' + Bayville.length); Bayville[Bayville.length] = createMarker(new GPoint(-74.20635986,39.89273834),"
Central Regional Middle School
Forest Hills Parkway
Bayville, NJ 08721

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Central Regional Middle School",'Bayville=' + Bayville.length); Jackson[Jackson.length] = createMarker(new GPoint(-74.26758575,40.08347702),"
Christa Mcauliffe Mid School
35 Hope Chapel Road
Jackson, NJ 08527

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Christa Mcauliffe Mid School",'Jackson=' + Jackson.length); Bayville[Bayville.length] = createMarker(new GPoint(-74.16573334,39.89145279),"
Clara B Worth Elementary School
57 Central Parkway
Bayville, NJ 08721

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Clara B Worth Elementary School",'Bayville=' + Bayville.length); Lakewood[Lakewood.length] = createMarker(new GPoint(-74.21523285,40.09626007),"
Clifton Ave Grade School
625 Clifton Avenue
Lakewood, NJ 08701

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Clifton Ave Grade School",'Lakewood=' + Lakewood.length); Jackson[Jackson.length] = createMarker(new GPoint(-74.26683044,40.15019226),"
Crawford-rodriguez Elementary School
1025 Larsen Road
Jackson, NJ 08527

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Crawford-rodriguez Elementary School",'Jackson=' + Jackson.length); Brick_Town[Brick_Town.length] = createMarker(new GPoint(-74.13787842,40.04518890),"
Drum Point Road Elementary School
41 Drum Point Rd
Brick Town, NJ 08723

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Drum Point Road Elementary School",'Brick_Town=' + Brick_Town.length); West_Creek[West_Creek.length] = createMarker(new GPoint(-74.29036713,39.65648270),"
Eagleswood Township Elementary School
511 Route 9
West Creek, NJ 08092

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Eagleswood Township Elementary School",'West_Creek=' + West_Creek.length); Toms_River[Toms_River.length] = createMarker(new GPoint(-74.15779877,39.97560120),"
East Dover Elementary School
725 Vaughn Avenue
Toms River, NJ 08753

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("East Dover Elementary School",'Toms_River=' + Toms_River.length); Barnegat[Barnegat.length] = createMarker(new GPoint(-74.21932983,39.75472260),"
Elizabeth V Edwards Elementary School
25 Birdsall Street
Barnegat, NJ 08005

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Elizabeth V Edwards Elementary School",'Barnegat=' + Barnegat.length); Lakewood[Lakewood.length] = createMarker(new GPoint(-74.20008850,40.09451675),"
Ella G Clarke Elementary School
455 Manetta Avenue
Lakewood, NJ 08701

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Ella G Clarke Elementary School",'Lakewood=' + Lakewood.length); Jackson[Jackson.length] = createMarker(new GPoint(-74.32240295,40.12080002),"
Elms Elementary School
780 Patterson Road
Jackson, NJ 08527

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Elms Elementary School",'Jackson=' + Jackson.length); Brick[Brick.length] = createMarker(new GPoint(-74.13775635,40.04518127),"
Emma Havens Young Elementary School
43 Drum Point Rd
Brick, NJ 08723

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Emma Havens Young Elementary School",'Brick=' + Brick.length); Surf_City[Surf_City.length] = createMarker(new GPoint(-74.17467499,39.65792847),"
Ethel A Jacobsen Elementary School
200 Barnegat Avenue
Surf City, NJ 08008

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Ethel A Jacobsen Elementary School",'Surf_City=' + Surf_City.length); Forked_River[Forked_River.length] = createMarker(new GPoint(-74.18831635,39.83605194),"
Forked River Elementary School
110 Lacey Road
Forked River, NJ 08731

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Forked River Elementary School",'Forked_River=' + Forked_River.length); Waretown[Waretown.length] = createMarker(new GPoint(-74.27512360,39.77785110),"
Frederic A. Priff Elementary School
139 Wells Mill Road
Waretown, NJ 08758

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Frederic A. Priff Elementary School",'Waretown=' + Waretown.length); Point_Pleasant_Beach[Point_Pleasant_Beach.length] = createMarker(new GPoint(-74.06069946,40.08100128),"
G Harold Antrim Elementary School
Niblick St
Point Pleasant Beach, NJ 08742

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("G Harold Antrim Elementary School",'Point_Pleasant_Beach=' + Point_Pleasant_Beach.length); Little_Egg_Harbor[Little_Egg_Harbor.length] = createMarker(new GPoint(-74.34198761,39.61993790),"
George Mitchell Elementary School
950 Route 539
Little Egg Harbor, NJ 08087

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("George Mitchell Elementary School",'Little_Egg_Harbor=' + Little_Egg_Harbor.length); Bayville[Bayville.length] = createMarker(new GPoint(-74.14871979,39.91541290),"
H & M Potter Elementary School
60 Veeder Lane
Bayville, NJ 08721

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("H & M Potter Elementary School",'Bayville=' + Bayville.length); Brick[Brick.length] = createMarker(new GPoint(-74.11376953,40.11100769),"
Herbertsville Elementary School
2282 Lanes Mill Rd.
Brick, NJ 08724

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Herbertsville Elementary School",'Brick=' + Brick.length); Toms_River[Toms_River.length] = createMarker(new GPoint(-74.17214203,39.99387360),"
Hooper Ave Elementary School
1451 Hooper Avenue
Toms River, NJ 08753

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Hooper Ave Elementary School",'Toms_River=' + Toms_River.length); Jackson[Jackson.length] = createMarker(new GPoint(-74.26697540,40.15011978),"
Howard C Johnson Elementary School
Y021 Larsen Road
Jackson, NJ 08527

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Howard C Johnson Elementary School",'Jackson=' + Jackson.length); Seaside_Hts[Seaside_Hts.length] = createMarker(new GPoint(-74.07868195,39.94581985),"
Hugh J Boyd Junior Elementary School
1200 Bay Boulevard
Seaside Hts., NJ 08751

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Hugh J Boyd Junior Elementary School",'Seaside_Hts=' + Seaside_Hts.length); Island_Heights[Island_Heights.length] = createMarker(new GPoint(-74.14858246,39.94311905),"
Island Heights Elementary School
115 Summit Ave
Island Heights, NJ 08732

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Island Heights Elementary School",'Island_Heights=' + Island_Heights.length); Jackson[Jackson.length] = createMarker(new GPoint(-74.36069800,40.06169700),"
Jackson Center
850 Toms River Road
Jackson, NJ 08527

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Jackson Center",'Jackson=' + Jackson.length); Jackson[Jackson.length] = createMarker(new GPoint(-74.34689331,40.10661316),"
Jackson Memorial High School
101 Don Connor Blvd.
Jackson, NJ 08527

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Jackson Memorial High School",'Jackson=' + Jackson.length); Toms_River[Toms_River.length] = createMarker(new GPoint(-74.22275543,40.02683258),"
Joseph A. Citta Elementary School
2050 Lakewood Road
Toms River, NJ 08755

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Joseph A. Citta Elementary School",'Toms_River=' + Toms_River.length); Lanoka_Harbor[Lanoka_Harbor.length] = createMarker(new GPoint(-74.19000244,39.86042786),"
Lacey Township High School
73 Haines Street
Lanoka Harbor, NJ 08734

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Lacey Township High School",'Lanoka_Harbor=' + Lanoka_Harbor.length); Forked_River[Forked_River.length] = createMarker(new GPoint(-74.20264435,39.85618210),"
Lacey Township Middle School
660 Denton Avenue
Forked River, NJ 08731

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Lacey Township Middle School",'Forked_River=' + Forked_River.length); Brick[Brick.length] = createMarker(new GPoint(-74.15246582,40.03215790),"
Lake Riviera Middle School
171 Beaverson Boulevard
Brick, NJ 08723

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Lake Riviera Middle School",'Brick=' + Brick.length); Lakehurst[Lakehurst.length] = createMarker(new GPoint(-74.31649017,40.01191711),"
Lakehurst Elementary School
301 Union Ave
Lakehurst, NJ 08733

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lakehurst Elementary School",'Lakehurst=' + Lakehurst.length); Lakewood[Lakewood.length] = createMarker(new GPoint(-74.19509888,40.10065842),"
Lakewood High School
855 Somerset Avenue
Lakewood, NJ 08701

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Lakewood High School",'Lakewood=' + Lakewood.length); Lakewood[Lakewood.length] = createMarker(new GPoint(-74.19485474,40.09672546),"
Lakewood Middle School
755 Somerset Avenue
Lakewood, NJ 08701

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Lakewood Middle School",'Lakewood=' + Lakewood.length); Brick[Brick.length] = createMarker(new GPoint(-74.13291168,40.10361099),"
Lanes Mill Elementary School
1891 Lanes Mill Rd.
Brick, NJ 08724

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lanes Mill Elementary School",'Brick=' + Brick.length); Lanoka_Harbor[Lanoka_Harbor.length] = createMarker(new GPoint(-74.19170380,39.86624908),"
Lanoka Harbor Elementary School
281 Manchester Ave.
Lanoka Harbor, NJ 08734

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lanoka Harbor Elementary School",'Lanoka_Harbor=' + Lanoka_Harbor.length); Lavallette[Lavallette.length] = createMarker(new GPoint(-74.07048035,39.96806335),"
Lavallette Elementary School
105 Brooklyn Ave
Lavallette, NJ 08735

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lavallette Elementary School",'Lavallette=' + Lavallette.length); Barnegat[Barnegat.length] = createMarker(new GPoint(-74.21932983,39.75472260),"
Lillian M Dunfee Elementary School
128 Barnegat Blvd.
Barnegat, NJ 08005

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lillian M Dunfee Elementary School",'Barnegat=' + Barnegat.length); Little_Egg_Harbor[Little_Egg_Harbor.length] = createMarker(new GPoint(-74.32679749,39.62854767),"
Little Egg Harbor Inter Elementary School
305 Frog Pond Road
Little Egg Harbor, NJ 08087

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Little Egg Harbor Inter Elementary School",'Little_Egg_Harbor=' + Little_Egg_Harbor.length); Ship_Bottom[Ship_Bottom.length] = createMarker(new GPoint(-74.18890381,39.63430023),"
Long Beach Island Grade Elementary School
201 - 267 20th Street
Ship Bottom, NJ 08008

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Long Beach Island Grade Elementary School",'Ship_Bottom=' + Ship_Bottom.length); Jackson[Jackson.length] = createMarker(new GPoint(-74.28768921,40.11611557),"
Lucy N Holman Elementary School
125 Manhattan Street
Jackson, NJ 08527

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lucy N Holman Elementary School",'Jackson=' + Jackson.length); Manchester[Manchester.length] = createMarker(new GPoint(-74.30953979,40.00341797),"
Manchester High School
101 S. Colonial Dr.
Manchester, NJ 08759

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Manchester High School",'Manchester=' + Manchester.length); Manchester[Manchester.length] = createMarker(new GPoint(-74.29299164,40.01261520),"
Manchester Township Elementary School
101 N. Colonial Drive
Manchester, NJ 08733

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Manchester Township Elementary School",'Manchester=' + Manchester.length); Manchester[Manchester.length] = createMarker(new GPoint(-74.26239777,40.01885223),"
Manchester Township Middle School
2759 Ridgeway Rd
Manchester, NJ 08759

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Manchester Township Middle School",'Manchester=' + Manchester.length); Manahawkin[Manahawkin.length] = createMarker(new GPoint(-74.28160095,39.70067596),"
Mckinley Ave Elementary School
1000 Mckinley Ave
Manahawkin, NJ 08050

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mckinley Ave Elementary School",'Manahawkin=' + Manahawkin.length); Point_Pleasant[Point_Pleasant.length] = createMarker(new GPoint(-74.06069946,40.08100128),"
Memorial Middle School
Laura Herbert Dr
Point Pleasant, NJ 08742

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Memorial Middle School",'Point_Pleasant=' + Point_Pleasant.length); Lakewood[Lakewood.length] = createMarker(new GPoint(-74.17620087,40.07360077),"
Merdian Acad-lakewood
150 Oberlin Avenue North
Lakewood, NJ 08701

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Merdian Acad-lakewood",'Lakewood=' + Lakewood.length); Brick_Town[Brick_Town.length] = createMarker(new GPoint(-74.10022736,40.06890869),"
Midstreams Elementary School
500 Midstreams Rd.
Brick Town, NJ 08724

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Midstreams Elementary School",'Brick_Town=' + Brick_Town.length); Lanoka_Harbor[Lanoka_Harbor.length] = createMarker(new GPoint(-74.19687653,39.86822510),"
Mill Pond Elementary School
201 Western Blvd
Lanoka Harbor, NJ 08734

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Mill Pond Elementary School",'Lanoka_Harbor=' + Lanoka_Harbor.length); Jackson[Jackson.length] = createMarker(new GPoint(-74.35049438,40.05681610),"
N J Reg Day-jackson
890 Toms River Road
Jackson, NJ 08527

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("N J Reg Day-jackson",'Jackson=' + Jackson.length); Point_Pleasant[Point_Pleasant.length] = createMarker(new GPoint(-74.06069946,40.08100128),"
Nellie F Bennett Elementary School
Riviera Parkway
Point Pleasant, NJ 08742

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Nellie F Bennett Elementary School",'Point_Pleasant=' + Point_Pleasant.length); New_Egypt[New_Egypt.length] = createMarker(new GPoint(-74.52688599,40.07031631),"
New Egypt Elementary School
131 Evergreen Road
New Egypt, NJ 08533

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("New Egypt Elementary School",'New_Egypt=' + New_Egypt.length); New_Egypt[New_Egypt.length] = createMarker(new GPoint(-74.53247900,40.08116200),"
New Egypt High School
117 Evergreen Road
New Egypt, NJ 08533

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("New Egypt High School",'New_Egypt=' + New_Egypt.length); New_Egypt[New_Egypt.length] = createMarker(new GPoint(-74.53218842,40.07934189),"
New Egypt Middle School
115 Evergreen Road
New Egypt, NJ 08533

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("New Egypt Middle School",'New_Egypt=' + New_Egypt.length); Toms_River[Toms_River.length] = createMarker(new GPoint(-74.19376900,39.95288000),"
North Dover Elementary School
1759 New Hampshire Avenue
Toms River, NJ 08753

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("North Dover Elementary School",'Toms_River=' + Toms_River.length); Lakewood[Lakewood.length] = createMarker(new GPoint(-74.21538544,40.06575394),"
Oak Street Elementary School
75 Oak Street
Lakewood, NJ 08701

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Oak Street Elementary School",'Lakewood=' + Lakewood.length); Manahawkin[Manahawkin.length] = createMarker(new GPoint(-74.28224182,39.74237061),"
Ocean Acres Elementary School
489 Nautilus Drive
Manahawkin, NJ 08050

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Ocean Acres Elementary School",'Manahawkin=' + Manahawkin.length); Waretown[Waretown.length] = createMarker(new GPoint(-74.24726400,39.79680900),"
Ocean Center
423 Wells Mills Road
Waretown, NJ 08758

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Ocean Center",'Waretown=' + Waretown.length); Ocean_Gate[Ocean_Gate.length] = createMarker(new GPoint(-74.13702900,39.92826000),"
Ocean Gate Elementary School
126 West Arverne Avenue
Ocean Gate, NJ 08740

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Ocean Gate Elementary School",'Ocean_Gate=' + Ocean_Gate.length); Point_Pleasant[Point_Pleasant.length] = createMarker(new GPoint(-74.06916800,40.07210300),"
Ocean Road Elementary School
Benedict Street
Point Pleasant, NJ 08742

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Ocean Road Elementary School",'Point_Pleasant=' + Point_Pleasant.length); Lakehurst[Lakehurst.length] = createMarker(new GPoint(-74.26329803,39.69114304),"
Ocean Sch Of Technology
Po Box 1166
Lakehurst, NJ 08733

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Ocean Sch Of Technology",'Lakehurst=' + Lakehurst.length); Brick[Brick.length] = createMarker(new GPoint(-74.12267303,40.04408264),"
Osbornville Elementary School
218 Drum Point Rd.
Brick, NJ 08723

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Osbornville Elementary School",'Brick=' + Brick.length); Manahawkin[Manahawkin.length] = createMarker(new GPoint(-74.26024628,39.69398499),"
Oxycocus Elementary School
250 Main Street
Manahawkin, NJ 08050

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Oxycocus Elementary School",'Manahawkin=' + Manahawkin.length); Lakehurst[Lakehurst.length] = createMarker(new GPoint(-10.00000000,10.00000000),"
Performing Arts Academy
Career Technical Institute
Lakehurst, NJ 08733

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Performing Arts Academy",'Lakehurst=' + Lakehurst.length); Pine_Beach[Pine_Beach.length] = createMarker(new GPoint(-74.18058777,39.93601990),"
Pine Beach Elementary School
101 Pennsylvania Avenue
Pine Beach, NJ 08741

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Pine Beach Elementary School",'Pine_Beach=' + Pine_Beach.length); Tuckerton[Tuckerton.length] = createMarker(new GPoint(-74.33775900,39.60374500),"
Pinelands Reg Jr High School
590 Nugentown Road
Tuckerton, NJ 08087

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Pinelands Reg Jr High School",'Tuckerton=' + Tuckerton.length); Tuckerton[Tuckerton.length] = createMarker(new GPoint(-74.35761261,39.61188889),"
Pinelands Regional High School
565 Nugentown Road
Tuckerton, NJ 08087

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Pinelands Regional High School",'Tuckerton=' + Tuckerton.length); Tuckerton[Tuckerton.length] = createMarker(new GPoint(-74.36196899,39.61270142),"
Pinelands Regional Middle School
565 Nugentown Road
Tuckerton, NJ 08087

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Pinelands Regional Middle School",'Tuckerton=' + Tuckerton.length); Point_Pleasant_Beach[Point_Pleasant_Beach.length] = createMarker(new GPoint(-74.05168152,40.08951569),"
Point Pleasant Bch High School
700 Trenton Avenue
Point Pleasant Beach, NJ 08742

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Point Pleasant Bch High School",'Point_Pleasant_Beach=' + Point_Pleasant_Beach.length); Point_Pleasant[Point_Pleasant.length] = createMarker(new GPoint(-74.06069946,40.08100128),"
Point Pleasant High School
Laura Herbert Dr
Point Pleasant, NJ 08742

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Point Pleasant High School",'Point_Pleasant=' + Point_Pleasant.length); Manchester[Manchester.length] = createMarker(new GPoint(-74.26412201,40.01991272),"
Ridgeway Elementary School
2861 Ridgeway Rd
Manchester, NJ 08759

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Ridgeway Elementary School",'Manchester=' + Manchester.length); Barnegat[Barnegat.length] = createMarker(new GPoint(-74.23137665,39.75690460),"
Robert L. Horbelt Elementary School
104 Burr Street
Barnegat, NJ 08005

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Robert L. Horbelt Elementary School",'Barnegat=' + Barnegat.length); Barnegat[Barnegat.length] = createMarker(new GPoint(-74.21932983,39.75472260),"
Russell O. Brackman Middle School
600 Barnegat Blvd. North
Barnegat, NJ 08005

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Russell O. Brackman Middle School",'Barnegat=' + Barnegat.length); Seaside_Park[Seaside_Park.length] = createMarker(new GPoint(-74.07890320,39.91930008),"
Seaside Park Elementary School
Central Fourth Avenues
Seaside Park, NJ 08752

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Seaside Park Elementary School",'Seaside_Park=' + Seaside_Park.length); Toms_River[Toms_River.length] = createMarker(new GPoint(-74.13868713,40.00604630),"
Silver Bay Elementary School
100 Silver Bay Road
Toms River, NJ 08753

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Silver Bay Elementary School",'Toms_River=' + Toms_River.length); South_Toms_River[South_Toms_River.length] = createMarker(new GPoint(-74.21582031,39.93928146),"
South Toms River Elementary School
419 Dover Road
South Toms River, NJ 08757

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("South Toms River Elementary School",'South_Toms_River=' + South_Toms_River.length); Manahawkin[Manahawkin.length] = createMarker(new GPoint(-74.25842900,39.69629000),"
Southern Reg Middle School
75 Cedar Bridge Road
Manahawkin, NJ 08050

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Southern Reg Middle School",'Manahawkin=' + Manahawkin.length); Manahawkin[Manahawkin.length] = createMarker(new GPoint(-74.25908661,39.71670151),"
Southern Regional High School
90 Cedar Bridge Road
Manahawkin, NJ 08050

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Southern Regional High School",'Manahawkin=' + Manahawkin.length); Manahawkin[Manahawkin.length] = createMarker(new GPoint(-74.25865936,39.71682358),"
Southern Regional Middle School
90 Cedar Bridge Road
Manahawkin, NJ 08050

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Southern Regional Middle School",'Manahawkin=' + Manahawkin.length); Lakewood[Lakewood.length] = createMarker(new GPoint(-74.21358400,40.09325000),"
Spruce St Elementary School
90 Spruce Street
Lakewood, NJ 08701

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Spruce St Elementary School",'Lakewood=' + Lakewood.length); Manahawkin[Manahawkin.length] = createMarker(new GPoint(-74.28160095,39.70067596),"
Stafford Intermediate
1000 Mckinley Avenue
Manahawkin, NJ 08050

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Stafford Intermediate",'Manahawkin=' + Manahawkin.length); Jackson[Jackson.length] = createMarker(new GPoint(-74.34862518,40.11162949),"
Switlik Elementary School
75 West Veteran''s Highway
Jackson, NJ 08527

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Switlik Elementary School",'Jackson=' + Jackson.length); Jackson[Jackson.length] = createMarker(new GPoint(-74.25089264,40.12131500),"
Sylvia Rosenauer Elementary School
60 Citadel Drive
Jackson, NJ 08527

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Sylvia Rosenauer Elementary School",'Jackson=' + Jackson.length); Manahawkin[Manahawkin.length] = createMarker(new GPoint(-74.19708252,39.98281860),"
Toms River Center
195 Cedar Bridge Road
Manahawkin, NJ 08050

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Toms River Center",'Manahawkin=' + Manahawkin.length); Toms_River[Toms_River.length] = createMarker(new GPoint(-74.19540200,39.98490900),"
Toms River Center
1299 Old Freehold Road
Toms River, NJ 08753

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Toms River Center",'Toms_River=' + Toms_River.length); Toms_River[Toms_River.length] = createMarker(new GPoint(-74.14285278,39.96731186),"
Toms River High East
1225 Raider Way
Toms River, NJ 08753

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Toms River High East",'Toms_River=' + Toms_River.length); Toms_River[Toms_River.length] = createMarker(new GPoint(-74.19730377,39.98105240),"
Toms River High North
1245 Old Freehold Road
Toms River, NJ 08753

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Toms River High North",'Toms_River=' + Toms_River.length); Toms_River[Toms_River.length] = createMarker(new GPoint(-74.19698334,39.95407867),"
Toms River High South
55 Hyers Street
Toms River, NJ 08753

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Toms River High South",'Toms_River=' + Toms_River.length); Toms_River[Toms_River.length] = createMarker(new GPoint(-74.16954041,39.99559402),"
Toms River Intermediate E
1519 Hooper Avenue
Toms River, NJ 08753

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Toms River Intermediate E",'Toms_River=' + Toms_River.length); Beachwood[Beachwood.length] = createMarker(new GPoint(-74.20871900,39.91169200),"
Toms River Intermediate S
1675 Pinewald Road
Beachwood, NJ 08722

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Toms River Intermediate S",'Beachwood=' + Beachwood.length); Toms_River[Toms_River.length] = createMarker(new GPoint(-74.15779877,39.97560120),"
Toms River Intermediate W
150 Intermediate North Way
Toms River, NJ 08753

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Toms River Intermediate W",'Toms_River=' + Toms_River.length); Tuckerton[Tuckerton.length] = createMarker(new GPoint(-74.37249756,39.60300064),"
Tuckerton Elementary School
P.o. Box 217, Marine Street
Tuckerton, NJ 08087

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Tuckerton Elementary School",'Tuckerton=' + Tuckerton.length); Brick[Brick.length] = createMarker(new GPoint(-74.11686707,40.08151245),"
Veterans Mem Elementary School
103 Hendrickson Avenue
Brick, NJ 08724

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Veterans Mem Elementary School",'Brick=' + Brick.length); Brick_Town[Brick_Town.length] = createMarker(new GPoint(-74.11686707,40.08151627),"
Veterans Mem Middle School
105 Hendrickson Avenue
Brick Town, NJ 08724

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Veterans Mem Middle School",'Brick_Town=' + Brick_Town.length); Toms_River[Toms_River.length] = createMarker(new GPoint(-74.19698334,39.96721649),"
Walnut Street Elementary School
60 Walnut Street
Toms River, NJ 08753

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Walnut Street Elementary School",'Toms_River=' + Toms_River.length); Waretown[Waretown.length] = createMarker(new GPoint(-74.20209503,39.78778458),"
Waretown Elementary School
64 Railroad Avenue
Waretown, NJ 08758

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Waretown Elementary School",'Waretown=' + Waretown.length); Toms_River[Toms_River.length] = createMarker(new GPoint(-74.17268372,39.95631790),"
Washington St Elementary School
500 West Earl Court
Toms River, NJ 08753

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Washington St Elementary School",'Toms_River=' + Toms_River.length); Toms_River[Toms_River.length] = createMarker(new GPoint(-74.23048401,39.97021866),"
West Dover Elementary School
50 Blue Jay Drive
Toms River, NJ 08753

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("West Dover Elementary School",'Toms_River=' + Toms_River.length); Whiting[Whiting.length] = createMarker(new GPoint(-74.37712860,39.95844650),"
Whiting Elementary School
412 Manchester Blvd
Whiting, NJ 08759

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Whiting Elementary School",'Whiting=' + Whiting.length); } // End addStateMarkers JavaScript Function // Takes an array of markers and centers/zooms map based on marker range function centerByArray(myArray, recenter, newMaxMin) { if (newMaxMin == true) reMaxMin(myArray); for (var i = 0; i < myArray.length; i++) { var markLng = myArray[i].getPoint().x; var markLat = myArray[i].getPoint().y; if (markLat > maxLat) maxLat = markLat; if (markLng > maxLng) maxLng = markLng; if (markLat < minLat) minLat = markLat; if (markLng < minLng) minLng = markLng; } if (recenter) reCenterMap(); } // Reinit max/mins function reMaxMin(myArray) { maxLng = myArray[0].getPoint().x; maxLat = myArray[0].getPoint().y; minLng = myArray[0].getPoint().x; minLat = myArray[0].getPoint().y; } // Recenter map based on global max/mins function reCenterMap() { var bounds = new GLatLngBounds(); bounds.extend(new GLatLng(minLat, minLng)); bounds.extend(new GLatLng(maxLat, maxLng)); var center_lat = (bounds.getNorthEast().lat() + bounds.getSouthWest().lat()) / 2.0; var center_lng = (bounds.getNorthEast().lng() + bounds.getSouthWest().lng()) / 2.0; var center = new GLatLng(center_lat, center_lng); var zoom = map.getBoundsZoomLevel(bounds); map.setCenter(center,zoom); //map.setCenter(center,10); /* var center = new GPoint( (maxLng + minLng)/2, (maxLat+minLat)/2 ); var delta = new GSize(maxLng - minLng, maxLat - minLat); var minZoom = map.spec.getLowestZoomLevel(center, delta, map.viewSize); if (minZoom < 4) minZoom = 4; // Lowest possible zoom is 4 map.centerAndZoom(center, minZoom); */ } // Fires when drop down list of schools changes function selectChange(selection) { var myVal = selection.options[selection.selectedIndex].value; map.closeInfoWindow(); // Add entire array based on variable type if (myVal.indexOf('all') != -1 && myVal != 'all') { var temp = myVal.split('='); var showArray = temp[1]; // If Array is > X amount of markers, then open in a new page if (eval(showArray).length > 20) // New window depends on whether or not we're on the search page if (location.href.indexOf('nearby_schools.php') == -1) window.open(location.href + '/map/' + showArray); else window.open('/search////' + showArray); map.removeOverlays(Barnegat); map.removeOverlays(Bay_Head); map.removeOverlays(Bayville); map.removeOverlays(Beach_Haven); map.removeOverlays(Beachwood); map.removeOverlays(Brick); map.removeOverlays(Brick_Town); map.removeOverlays(Forked_River); map.removeOverlays(Island_Heights); map.removeOverlays(Jackson); map.removeOverlays(Lakehurst); map.removeOverlays(Lakehurst_Nj); map.removeOverlays(Lakewood); map.removeOverlays(Lanoka_Harbor); map.removeOverlays(Lavallette); map.removeOverlays(Little_Egg_Harbor); map.removeOverlays(Manahawkin); map.removeOverlays(Manchester); map.removeOverlays(New_Egypt); map.removeOverlays(Ocean_Gate); map.removeOverlays(Pine_Beach); map.removeOverlays(Point_Pleasant); map.removeOverlays(Point_Pleasant_Beach); map.removeOverlays(Seaside_Hts); map.removeOverlays(Seaside_Park); map.removeOverlays(Ship_Bottom); map.removeOverlays(South_Toms_River); map.removeOverlays(Surf_City); map.removeOverlays(Toms_River); map.removeOverlays(Tuckerton); map.removeOverlays(Waretown); map.removeOverlays(West_Creek); map.removeOverlays(Whiting); map.addOverlays(eval(showArray)); centerByArray(eval(showArray), true, true); // Center and zoom on set of markers } // Add individual markers if (myVal.indexOf('all') == -1 && myVal != 'all' && myVal.length) { var temp = myVal.split('='); var myArray = temp[0]; var myIndex = parseInt(temp[1]) - 1; document.getElementById('map').width = "750"; map.removeOverlay(eval(myArray)[myIndex]); map.addOverlay(eval(myArray)[myIndex]); GEvent.trigger(eval(myArray)[myIndex],'click'); } // Show all markers if (myVal == 'all') { cntMarker = 0; reMaxMin(Barnegat);map.removeOverlays(Barnegat); map.removeOverlays(Bay_Head); map.removeOverlays(Bayville); map.removeOverlays(Beach_Haven); map.removeOverlays(Beachwood); map.removeOverlays(Brick); map.removeOverlays(Brick_Town); map.removeOverlays(Forked_River); map.removeOverlays(Island_Heights); map.removeOverlays(Jackson); map.removeOverlays(Lakehurst); map.removeOverlays(Lakehurst_Nj); map.removeOverlays(Lakewood); map.removeOverlays(Lanoka_Harbor); map.removeOverlays(Lavallette); map.removeOverlays(Little_Egg_Harbor); map.removeOverlays(Manahawkin); map.removeOverlays(Manchester); map.removeOverlays(New_Egypt); map.removeOverlays(Ocean_Gate); map.removeOverlays(Pine_Beach); map.removeOverlays(Point_Pleasant); map.removeOverlays(Point_Pleasant_Beach); map.removeOverlays(Seaside_Hts); map.removeOverlays(Seaside_Park); map.removeOverlays(Ship_Bottom); map.removeOverlays(South_Toms_River); map.removeOverlays(Surf_City); map.removeOverlays(Toms_River); map.removeOverlays(Tuckerton); map.removeOverlays(Waretown); map.removeOverlays(West_Creek); map.removeOverlays(Whiting); map.addOverlays(Barnegat); centerByArray(Barnegat, false, false); cntMarker += Barnegat.length; map.addOverlays(Bay_Head); centerByArray(Bay_Head, false, false); cntMarker += Bay_Head.length; map.addOverlays(Bayville); centerByArray(Bayville, false, false); cntMarker += Bayville.length; map.addOverlays(Beach_Haven); centerByArray(Beach_Haven, false, false); cntMarker += Beach_Haven.length; map.addOverlays(Beachwood); centerByArray(Beachwood, false, false); cntMarker += Beachwood.length; map.addOverlays(Brick); centerByArray(Brick, false, false); cntMarker += Brick.length; map.addOverlays(Brick_Town); centerByArray(Brick_Town, false, false); cntMarker += Brick_Town.length; map.addOverlays(Forked_River); centerByArray(Forked_River, false, false); cntMarker += Forked_River.length; map.addOverlays(Island_Heights); centerByArray(Island_Heights, false, false); cntMarker += Island_Heights.length; map.addOverlays(Jackson); centerByArray(Jackson, false, false); cntMarker += Jackson.length; map.addOverlays(Lakehurst); centerByArray(Lakehurst, false, false); cntMarker += Lakehurst.length; map.addOverlays(Lakehurst_Nj); centerByArray(Lakehurst_Nj, false, false); cntMarker += Lakehurst_Nj.length; map.addOverlays(Lakewood); centerByArray(Lakewood, false, false); cntMarker += Lakewood.length; map.addOverlays(Lanoka_Harbor); centerByArray(Lanoka_Harbor, false, false); cntMarker += Lanoka_Harbor.length; map.addOverlays(Lavallette); centerByArray(Lavallette, false, false); cntMarker += Lavallette.length; map.addOverlays(Little_Egg_Harbor); centerByArray(Little_Egg_Harbor, false, false); cntMarker += Little_Egg_Harbor.length; map.addOverlays(Manahawkin); centerByArray(Manahawkin, false, false); cntMarker += Manahawkin.length; map.addOverlays(Manchester); centerByArray(Manchester, false, false); cntMarker += Manchester.length; map.addOverlays(New_Egypt); centerByArray(New_Egypt, false, false); cntMarker += New_Egypt.length; map.addOverlays(Ocean_Gate); centerByArray(Ocean_Gate, false, false); cntMarker += Ocean_Gate.length; map.addOverlays(Pine_Beach); centerByArray(Pine_Beach, false, false); cntMarker += Pine_Beach.length; map.addOverlays(Point_Pleasant); centerByArray(Point_Pleasant, false, false); cntMarker += Point_Pleasant.length; map.addOverlays(Point_Pleasant_Beach); centerByArray(Point_Pleasant_Beach, false, false); cntMarker += Point_Pleasant_Beach.length; map.addOverlays(Seaside_Hts); centerByArray(Seaside_Hts, false, false); cntMarker += Seaside_Hts.length; map.addOverlays(Seaside_Park); centerByArray(Seaside_Park, false, false); cntMarker += Seaside_Park.length; map.addOverlays(Ship_Bottom); centerByArray(Ship_Bottom, false, false); cntMarker += Ship_Bottom.length; map.addOverlays(South_Toms_River); centerByArray(South_Toms_River, false, false); cntMarker += South_Toms_River.length; map.addOverlays(Surf_City); centerByArray(Surf_City, false, false); cntMarker += Surf_City.length; map.addOverlays(Toms_River); centerByArray(Toms_River, false, false); cntMarker += Toms_River.length; map.addOverlays(Tuckerton); centerByArray(Tuckerton, false, false); cntMarker += Tuckerton.length; map.addOverlays(Waretown); centerByArray(Waretown, false, false); cntMarker += Waretown.length; map.addOverlays(West_Creek); centerByArray(West_Creek, false, false); cntMarker += West_Creek.length; map.addOverlays(Whiting); centerByArray(Whiting, false, false); cntMarker += Whiting.length; centerByArray(Barnegat,true, false); if (cntMarker > 20) // New window depends on whether or not we're on the search page if (location.href.indexOf('schools-by-distance') == -1) window.open(location.href + '/map/all'); else window.open('/search////all'); } }