function addMarkers() { mySelect = document.getElementById('selection'); Clifton = [];Wayne = [];Paterson = [];West_Milford = [];West_Paterson = [];Ringwood = [];Passaic = [];Haledon = [];Haskell = [];Hawthorne = [];North_Haledon = [];Wanaque = [];Pompton_Lakes = [];Bloomingdale = [];Totowa = [];Little_Falls = [];Prospect_Park = [];Oak_Ridge = [];Hewitt = [];mySelect.options[mySelect.options.length] = new Option("Bloomingdale schools",'all=Bloomingdale'); mySelect.options[mySelect.options.length] = new Option("Clifton schools",'all=Clifton'); mySelect.options[mySelect.options.length] = new Option("Haledon schools",'all=Haledon'); mySelect.options[mySelect.options.length] = new Option("Haskell schools",'all=Haskell'); mySelect.options[mySelect.options.length] = new Option("Hawthorne schools",'all=Hawthorne'); mySelect.options[mySelect.options.length] = new Option("Hewitt schools",'all=Hewitt'); mySelect.options[mySelect.options.length] = new Option("Little Falls schools",'all=Little_Falls'); mySelect.options[mySelect.options.length] = new Option("North Haledon schools",'all=North_Haledon'); mySelect.options[mySelect.options.length] = new Option("Oak Ridge schools",'all=Oak_Ridge'); mySelect.options[mySelect.options.length] = new Option("Passaic schools",'all=Passaic'); mySelect.options[mySelect.options.length] = new Option("Paterson schools",'all=Paterson'); mySelect.options[mySelect.options.length] = new Option("Pompton Lakes schools",'all=Pompton_Lakes'); mySelect.options[mySelect.options.length] = new Option("Prospect Park schools",'all=Prospect_Park'); mySelect.options[mySelect.options.length] = new Option("Ringwood schools",'all=Ringwood'); mySelect.options[mySelect.options.length] = new Option("Totowa schools",'all=Totowa'); mySelect.options[mySelect.options.length] = new Option("Wanaque schools",'all=Wanaque'); mySelect.options[mySelect.options.length] = new Option("Wayne schools",'all=Wayne'); mySelect.options[mySelect.options.length] = new Option("West Milford schools",'all=West_Milford'); mySelect.options[mySelect.options.length] = new Option("West Paterson schools",'all=West_Paterson'); mySelect.options[mySelect.options.length] = new Option("---------------------------",''); Clifton[Clifton.length] = createMarker(new GPoint(-74.17199707,40.86980057),"
Academy High School
1037 Route 46 East
Clifton, NJ 07013

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Academy High School",'Clifton=' + Clifton.length); Wayne[Wayne.length] = createMarker(new GPoint(-74.25684357,40.96945953),"
Albert P Terhune Elementary School
40 Geoffrey Way
Wayne, NJ 07470

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Albert P Terhune Elementary School",'Wayne=' + Wayne.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.16706848,40.91607666),"
Alexander Hamilton Academy
11-27 16th Avenue
Paterson, NJ 07509

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Alexander Hamilton Academy",'Paterson=' + Paterson.length); Wayne[Wayne.length] = createMarker(new GPoint(-74.21010100,40.93917200),"
Anthony Wayne Middle School
201 Garside Ave
Wayne, NJ 07470

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Anthony Wayne Middle School",'Wayne=' + Wayne.length); West_Milford[West_Milford.length] = createMarker(new GPoint(-74.37064362,41.01593018),"
Apshawa Elementary School
140 High Crest Drive
West Milford, NJ 07480

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Apshawa Elementary School",'West_Milford=' + West_Milford.length); West_Paterson[West_Paterson.length] = createMarker(new GPoint(-74.20883942,40.89327240),"
Beatrice Gilmore Elementary School
1075 Mcbride Avenue
West Paterson, NJ 07424

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Beatrice Gilmore Elementary School",'West_Paterson=' + West_Paterson.length); West_Paterson[West_Paterson.length] = createMarker(new GPoint(-74.21119690,40.88489914),"
Charles Olbon Elementary School
Lincoln Lane
West Paterson, NJ 07424

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Charles Olbon Elementary School",'West_Paterson=' + West_Paterson.length); Clifton[Clifton.length] = createMarker(new GPoint(-74.14981842,40.88050461),"
Christopher Columbus Middle School
350 Piaget Avenue
Clifton, NJ 07011

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Christopher Columbus Middle School",'Clifton=' + Clifton.length); Clifton[Clifton.length] = createMarker(new GPoint(-74.17256927,40.89745712),"
Classical Academy Charter School Of Clifton
20 Valley Road
Clifton, NJ 07013

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Classical Academy Charter School Of Clifton",'Clifton=' + Clifton.length); Clifton[Clifton.length] = createMarker(new GPoint(-74.16304779,40.87120056),"
Clifton High School
333 Colfax Avenue
Clifton, NJ 07013

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Clifton High School",'Clifton=' + Clifton.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.16903687,40.91388702),"
Dale Ave Elementary School
21 Dale Avenue
Paterson, NJ 07505

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Dale Ave Elementary School",'Paterson=' + Paterson.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.16006470,40.91509628),"
Eastside High School
150 Park Avenue
Paterson, NJ 07501

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Eastside High School",'Paterson=' + Paterson.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.17019653,40.91289902),"
Edward W Kilpatrick Elementary School
Summer Street Ellison Street
Paterson, NJ 07501

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Edward W Kilpatrick Elementary School",'Paterson=' + Paterson.length); Ringwood[Ringwood.length] = createMarker(new GPoint(-74.25746918,41.13365936),"
Eleanor G Hewitt Middle School
266 Sloatsburg Road
Ringwood, NJ 07456

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Eleanor G Hewitt Middle School",'Ringwood=' + Ringwood.length); Passaic[Passaic.length] = createMarker(new GPoint(-74.12938690,40.87619781),"
Essex High School
188 1st Street
Passaic, NJ 07055

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Essex High School",'Passaic=' + Passaic.length); Passaic[Passaic.length] = createMarker(new GPoint(-74.11764526,40.86632156),"
Etta Gero No 9 Elementary School
140 First Street
Passaic, NJ 07055

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Etta Gero No 9 Elementary School",'Passaic=' + Passaic.length); Wayne[Wayne.length] = createMarker(new GPoint(-74.23534393,40.93291473),"
Fallon Elementary School
51 Clifford Drive
Wayne, NJ 07470

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Fallon Elementary School",'Wayne=' + Wayne.length); Wayne[Wayne.length] = createMarker(new GPoint(-74.26433563,40.94252777),"
George Washington Middle School
68 Lenox Road
Wayne, NJ 07470

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("George Washington Middle School",'Wayne=' + Wayne.length); Haledon[Haledon.length] = createMarker(new GPoint(-74.18687439,40.93191528),"
Haledon Public School
91 Henry Street
Haledon, NJ 07508

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Haledon Public School",'Haledon=' + Haledon.length); Haskell[Haskell.length] = createMarker(new GPoint(-74.29259491,41.04369736),"
Haskell Elementary School
973 Ringwood Avenue
Haskell, NJ 07420

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Haskell Elementary School",'Haskell=' + Haskell.length); Hawthorne[Hawthorne.length] = createMarker(new GPoint(-74.15619659,40.95800018),"
Hawthorne High School
160 Parmelee Avenue
Hawthorne, NJ 07506

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hawthorne High School",'Hawthorne=' + Hawthorne.length); North_Haledon[North_Haledon.length] = createMarker(new GPoint(-74.18164062,40.95541000),"
High Mountain
515 High Mountain Road
North Haledon, NJ 07508

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("High Mountain",'North_Haledon=' + North_Haledon.length); Ringwood[Ringwood.length] = createMarker(new GPoint(-74.26920319,41.09769821),"
Hill Top Learning Center
Co Ryerson School
Ringwood, NJ 07456

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hill Top Learning Center",'Ringwood=' + Ringwood.length); Wayne[Wayne.length] = createMarker(new GPoint(-74.22121429,40.94817352),"
John F Kennedy Elementary School
1310 Ratzer Road
Wayne, NJ 07470

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("John F Kennedy Elementary School",'Wayne=' + Wayne.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.18749237,40.91539764),"
John F. Kennedy High School
61-127 Preakness Avenue
Paterson, NJ 07522

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("John F. Kennedy High School",'Paterson=' + Paterson.length); Wayne[Wayne.length] = createMarker(new GPoint(-74.22119141,40.93619919),"
Lafayette Elementary School
100 Laauwe Avenue
Wayne, NJ 07470

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lafayette Elementary School",'Wayne=' + Wayne.length); Wanaque[Wanaque.length] = createMarker(new GPoint(-74.27769470,41.06129456),"
Lakeland Regional High School
205 Conklintown Road
Wanaque, NJ 07465

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Lakeland Regional High School",'Wanaque=' + Wanaque.length); Pompton_Lakes[Pompton_Lakes.length] = createMarker(new GPoint(-74.28462219,41.00509644),"
Lakeside Middle School
316 Lakeside Avenue
Pompton Lakes, NJ 07442

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Lakeside Middle School",'Pompton_Lakes=' + Pompton_Lakes.length); Pompton_Lakes[Pompton_Lakes.length] = createMarker(new GPoint(-74.28157043,40.99283981),"
Lincoln Elementary School
40 Mill Street
Pompton Lakes, NJ 07442

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lincoln Elementary School",'Pompton_Lakes=' + Pompton_Lakes.length); Hawthorne[Hawthorne.length] = createMarker(new GPoint(-74.14886475,40.95157623),"
Lincoln Middle School
230 Hawthorne Avenue
Hawthorne, NJ 07506

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Lincoln Middle School",'Hawthorne=' + Hawthorne.length); West_Milford[West_Milford.length] = createMarker(new GPoint(-74.38619995,41.08009720),"
Macopin Middle School
70 Highlander Drive
West Milford, NJ 07480

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Macopin Middle School",'West_Milford=' + West_Milford.length); Haledon[Haledon.length] = createMarker(new GPoint(-74.18254089,40.94127655),"
Manchester Regional High School
70 Church Street
Haledon, NJ 07508

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Manchester Regional High School",'Haledon=' + Haledon.length); West_Milford[West_Milford.length] = createMarker(new GPoint(-74.39064789,41.06332016),"
Maple Road Elementary School
36 Maple Road
West Milford, NJ 07480

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Maple Road Elementary School",'West_Milford=' + West_Milford.length); West_Milford[West_Milford.length] = createMarker(new GPoint(-74.35070038,41.13439941),"
Marshall Hill Elementary School
210 Marshall Hill Road
West Milford, NJ 07480

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Marshall Hill Elementary School",'West_Milford=' + West_Milford.length); Bloomingdale[Bloomingdale.length] = createMarker(new GPoint(-74.32344055,41.01684189),"
Martha B. Day
Rafkind Road
Bloomingdale, NJ 07403

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Martha B. Day",'Bloomingdale=' + Bloomingdale.length); Ringwood[Ringwood.length] = createMarker(new GPoint(-74.24573517,41.10817337),"
Martin J Ryerson Middle School
130 Valley Road
Ringwood, NJ 07456

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Martin J Ryerson Middle School",'Ringwood=' + Ringwood.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.14884949,40.90771866),"
Martin Luther King Elementary School
851 E. 28th Street
Paterson, NJ 07513

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Martin Luther King Elementary School",'Paterson=' + Paterson.length); North_Haledon[North_Haledon.length] = createMarker(new GPoint(-74.18437958,40.95996475),"
Memorial Elementary School
670 High Mountain Road
North Haledon, NJ 07508

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Memorial Elementary School",'North_Haledon=' + North_Haledon.length); Totowa[Totowa.length] = createMarker(new GPoint(-74.20731354,40.90453720),"
Memorial Middle School
294 Totowa Road
Totowa, NJ 07512

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Memorial Middle School",'Totowa=' + Totowa.length); West_Paterson[West_Paterson.length] = createMarker(new GPoint(-74.21130371,40.88489914),"
Memorial Middle School
Memorial Drive
West Paterson, NJ 07424

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Memorial Middle School",'West_Paterson=' + West_Paterson.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.17026520,40.91819763),"
Norman S. Weir Elementary School
152 College Boulevard
Paterson, NJ 07505

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Norman S. Weir Elementary School",'Paterson=' + Paterson.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.14379883,40.92549896),"
Number 1 Elementary School
East 32nd St. 11th Avenue
Paterson, NJ 07514

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 1 Elementary School",'Paterson=' + Paterson.length); Clifton[Clifton.length] = createMarker(new GPoint(-74.15139771,40.88307190),"
Number 1 Elementary School
158 Park Slope
Clifton, NJ 07011

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 1 Elementary School",'Clifton=' + Clifton.length); Little_Falls[Little_Falls.length] = createMarker(new GPoint(-74.21119690,40.88489914),"
Number 1 Middle School
Stevens Avenue
Little Falls, NJ 07424

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Number 1 Middle School",'Little_Falls=' + Little_Falls.length); Prospect_Park[Prospect_Park.length] = createMarker(new GPoint(-74.17342377,40.93413162),"
Number 1 Prospect Park Elementary School
94 Brown Avenue
Prospect Park, NJ 07508

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 1 Prospect Park Elementary School",'Prospect_Park=' + Prospect_Park.length); Passaic[Passaic.length] = createMarker(new GPoint(-74.12799835,40.85670090),"
Number 1 Thomas Jefferson Elementary School
Broadway Van Houten Avenue
Passaic, NJ 07055

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 1 Thomas Jefferson Elementary School",'Passaic=' + Passaic.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.16045380,40.92736435),"
Number 10 Elementary School
48 Mercer Street
Paterson, NJ 07524

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 10 Elementary School",'Paterson=' + Paterson.length); Passaic[Passaic.length] = createMarker(new GPoint(-74.12799835,40.85670090),"
Number 10 Roosevelt Elementary School
Harrison Street Parker Avenu
Passaic, NJ 07055

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 10 Roosevelt Elementary School",'Passaic=' + Passaic.length); Clifton[Clifton.length] = createMarker(new GPoint(-74.13880920,40.88515854),"
Number 11 Elementary School
147 Merselis Avenue
Clifton, NJ 07011

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 11 Elementary School",'Clifton=' + Clifton.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.17019653,40.91299820),"
Number 11 Elementary School
350 Market Street
Paterson, NJ 07501

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 11 Elementary School",'Paterson=' + Paterson.length); Passaic[Passaic.length] = createMarker(new GPoint(-74.12799835,40.85670090),"
Number 11 Memorial Elementary School
Gregorymadison Avenues
Passaic, NJ 07055

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 11 Memorial Elementary School",'Passaic=' + Passaic.length); Clifton[Clifton.length] = createMarker(new GPoint(-74.13201904,40.87703323),"
Number 12 Elementary School
165 Clifton Avenue
Clifton, NJ 07011

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 12 Elementary School",'Clifton=' + Clifton.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.17810059,40.92559814),"
Number 12 Elementary School
121 North Second Street
Paterson, NJ 07522

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 12 Elementary School",'Paterson=' + Paterson.length); Clifton[Clifton.length] = createMarker(new GPoint(-74.15351105,40.86135101),"
Number 13 Elementary School
782 Van Houten Avenue
Clifton, NJ 07013

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 13 Elementary School",'Clifton=' + Clifton.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.14189911,40.91230011),"
Number 13 Elementary School
690 East 23rd St.
Paterson, NJ 07504

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 13 Elementary School",'Paterson=' + Paterson.length); Clifton[Clifton.length] = createMarker(new GPoint(-74.15886900,40.84251000),"
Number 14
99 St. Andrew''s Boulevard
Clifton, NJ 07012

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 14",'Clifton=' + Clifton.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.17810059,40.92559814),"
Number 14 Elementary School
522 Union Avenue
Paterson, NJ 07522

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 14 Elementary School",'Paterson=' + Paterson.length); Passaic[Passaic.length] = createMarker(new GPoint(-74.12738800,40.86890030),"
Number 14 Middle School
266 Harrison Street
Passaic, NJ 07055

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Number 14 Middle School",'Passaic=' + Passaic.length); Clifton[Clifton.length] = createMarker(new GPoint(-74.14555359,40.86810684),"
Number 15 Elementary School
700 Gregory Avenue
Clifton, NJ 07011

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 15 Elementary School",'Clifton=' + Clifton.length); Passaic[Passaic.length] = createMarker(new GPoint(-74.12799835,40.85670090),"
Number 15 Elementary School
374 Broadway
Passaic, NJ 07055

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 15 Elementary School",'Passaic=' + Passaic.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.17019653,40.91299820),"
Number 15 Elementary School
98 Oak Street
Paterson, NJ 07501

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 15 Elementary School",'Paterson=' + Paterson.length); Passaic[Passaic.length] = createMarker(new GPoint(-74.12799835,40.85670090),"
Number 16 Elementary School
657 Main Avenue
Passaic, NJ 07055

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 16 Elementary School",'Passaic=' + Passaic.length); Clifton[Clifton.length] = createMarker(new GPoint(-74.18803406,40.85914230),"
Number 16 Elementary School
755 Grove Street
Clifton, NJ 07013

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 16 Elementary School",'Clifton=' + Clifton.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.14800262,40.90530014),"
Number 16 Elementary School
11 22nd Avenue
Paterson, NJ 07513

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 16 Elementary School",'Paterson=' + Paterson.length); Clifton[Clifton.length] = createMarker(new GPoint(-74.13105100,40.87403700),"
Number 17
361 Lexington Avenue
Clifton, NJ 07011

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 17",'Clifton=' + Clifton.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.17496490,40.92800903),"
Number 17 Elementary School
112 N. Fifth Street
Paterson, NJ 07522

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 17 Elementary School",'Paterson=' + Paterson.length); Passaic[Passaic.length] = createMarker(new GPoint(-74.12799835,40.85670090),"
Number 17 Elementary School
95-99 Dayton Avenue
Passaic, NJ 07055

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 17 Elementary School",'Passaic=' + Passaic.length); Passaic[Passaic.length] = createMarker(new GPoint(-74.13016600,40.85510300),"
Number 18
158 Passaic
Passaic, NJ 07055

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 18",'Passaic=' + Passaic.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.14981842,40.93791962),"
Number 18 Elementary School
51 E. 18th Street
Paterson, NJ 07524

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 18 Elementary School",'Paterson=' + Paterson.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.18918610,40.91975403),"
Number 19 Elementary School
31 James Street
Paterson, NJ 07502

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 19 Elementary School",'Paterson=' + Paterson.length); Passaic[Passaic.length] = createMarker(new GPoint(-74.12799835,40.85670090),"
Number 2 Elementary School
48 Bergen Street
Passaic, NJ 07055

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 2 Elementary School",'Passaic=' + Passaic.length); Little_Falls[Little_Falls.length] = createMarker(new GPoint(-74.21130371,40.88489914),"
Number 2 Elementary School
Long Hill Road
Little Falls, NJ 07424

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 2 Elementary School",'Little_Falls=' + Little_Falls.length); Clifton[Clifton.length] = createMarker(new GPoint(-74.17147827,40.87104797),"
Number 2 Elementary School
1270 Van Houten Avenue
Clifton, NJ 07013

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 2 Elementary School",'Clifton=' + Clifton.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.17019653,40.91299820),"
Number 2 Elementary School
22 Passaic Street
Paterson, NJ 07501

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 2 Elementary School",'Paterson=' + Paterson.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.14054871,40.90623474),"
Number 20 Elementary School
500 East 37th Street
Paterson, NJ 07504

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 20 Elementary School",'Paterson=' + Paterson.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.15186310,40.92427444),"
Number 21 Elementary School
322 Tenth Avenue
Paterson, NJ 07514

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 21 Elementary School",'Paterson=' + Paterson.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.15419006,40.90989685),"
Number 24 Elementary School
50 Nineteenth Avenue
Paterson, NJ 07513

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 24 Elementary School",'Paterson=' + Paterson.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.15390015,40.89960098),"
Number 25 Elementary School
Trenton Avenue
Paterson, NJ 07503

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 25 Elementary School",'Paterson=' + Paterson.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.14379883,40.92549896),"
Number 26 Elementary School
One East 32nd Street
Paterson, NJ 07514

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 26 Elementary School",'Paterson=' + Paterson.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.19979858,40.91983414),"
Number 27 Elementary School
250 Richmond Ave.
Paterson, NJ 07502

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 27 Elementary School",'Paterson=' + Paterson.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.17810059,40.92559814),"
Number 28 Elementary School
200 Presidential Boulevard
Paterson, NJ 07522

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 28 Elementary School",'Paterson=' + Paterson.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.19103241,40.90691376),"
Number 29 Elementary School
88 Danforth Avenue
Paterson, NJ 07501

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 29 Elementary School",'Paterson=' + Paterson.length); Little_Falls[Little_Falls.length] = createMarker(new GPoint(-74.21130371,40.88489914),"
Number 3 Elementary School
560 Main Street
Little Falls, NJ 07424

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 3 Elementary School",'Little_Falls=' + Little_Falls.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.17019653,40.91299820),"
Number 3 Elementary School
448 Main Street
Paterson, NJ 07501

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 3 Elementary School",'Paterson=' + Paterson.length); Clifton[Clifton.length] = createMarker(new GPoint(-74.15619659,40.87562561),"
Number 3 Elementary School
365 Washington Avenue
Clifton, NJ 07011

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 3 Elementary School",'Clifton=' + Clifton.length); Passaic[Passaic.length] = createMarker(new GPoint(-74.12985992,40.84666443),"
Number 3 Mario J Drago Elementary School
155 Van Housten Avenue
Passaic, NJ 07055

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 3 Mario J Drago Elementary School",'Passaic=' + Passaic.length); Clifton[Clifton.length] = createMarker(new GPoint(-74.15750885,40.88768005),"
Number 4 Elementary School
194 West Second Street
Clifton, NJ 07011

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 4 Elementary School",'Clifton=' + Clifton.length); Passaic[Passaic.length] = createMarker(new GPoint(-74.12799835,40.85670090),"
Number 4 Lincoln Middle School
Boulevard Lafayette Avenue
Passaic, NJ 07055

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Number 4 Lincoln Middle School",'Passaic=' + Passaic.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.17308044,40.92478561),"
Number 4 Middle School
55 Clinton Street
Paterson, NJ 07522

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Number 4 Middle School",'Paterson=' + Paterson.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.19419861,40.91899872),"
Number 5 Elementary School
430 Totowa Avenue
Paterson, NJ 07502

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 5 Elementary School",'Paterson=' + Paterson.length); Clifton[Clifton.length] = createMarker(new GPoint(-74.17467499,40.89363861),"
Number 5 Elementary School
136 Valley Road
Clifton, NJ 07013

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 5 Elementary School",'Clifton=' + Clifton.length); Passaic[Passaic.length] = createMarker(new GPoint(-74.11997223,40.86748505),"
Number 5 Middle School
168 Monroe Street
Passaic, NJ 07055

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Number 5 Middle School",'Passaic=' + Passaic.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.16188812,40.91919708),"
Number 6 Elementary School
137 Carroll Street
Paterson, NJ 07501

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 6 Elementary School",'Paterson=' + Paterson.length); Passaic[Passaic.length] = createMarker(new GPoint(-74.12494659,40.86479187),"
Number 6 Martin L King Elementary School
85 Hamilton Avenue
Passaic, NJ 07055

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 6 Martin L King Elementary School",'Passaic=' + Passaic.length); Passaic[Passaic.length] = createMarker(new GPoint(-74.12799835,40.85670090),"
Number 7 Grant Elementary School
Summer Street Myrtle Avenue
Passaic, NJ 07055

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 7 Grant Elementary School",'Passaic=' + Passaic.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.18730164,40.90847397),"
Number 7 Middle School
106 Ramsey Street
Paterson, NJ 07501

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Number 7 Middle School",'Paterson=' + Paterson.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.15409851,40.89970016),"
Number 8 Elementary School
35 Chadwick Street
Paterson, NJ 07503

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 8 Elementary School",'Paterson=' + Paterson.length); Clifton[Clifton.length] = createMarker(new GPoint(-74.13182831,40.82888031),"
Number 8 Elementary School
41 Oak Street
Clifton, NJ 07014

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 8 Elementary School",'Clifton=' + Clifton.length); Passaic[Passaic.length] = createMarker(new GPoint(-74.11447144,40.86481857),"
Number 8 Pulaski Elementary School
100 Fourth Street
Passaic, NJ 07055

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 8 Pulaski Elementary School",'Passaic=' + Passaic.length); Clifton[Clifton.length] = createMarker(new GPoint(-74.15889740,40.84643173),"
Number 9 Elementary School
25 Brighton Road
Clifton, NJ 07012

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 9 Elementary School",'Clifton=' + Clifton.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.15409851,40.89970016),"
Number 9 Elementary School
6 Timothy Street
Paterson, NJ 07503

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Number 9 Elementary School",'Paterson=' + Paterson.length); Wayne[Wayne.length] = createMarker(new GPoint(-74.25618744,40.94769669),"
Packanack Elementary School
190 Oakwood Drive
Wayne, NJ 07470

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Packanack Elementary School",'Wayne=' + Wayne.length); Oak_Ridge[Oak_Ridge.length] = createMarker(new GPoint(-74.46257019,41.05816269),"
Paradise Knoll Elementary School
103 Paradise Road
Oak Ridge, NJ 07438

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Paradise Knoll Elementary School",'Oak_Ridge=' + Oak_Ridge.length); Prospect_Park[Prospect_Park.length] = createMarker(new GPoint(-74.17739105,40.93454742),"
Park School
13 Wagaraw Boulevard
Prospect Park, NJ 07508

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Park School",'Prospect_Park=' + Prospect_Park.length); Passaic[Passaic.length] = createMarker(new GPoint(-74.11041260,40.86349487),"
Passaic Alternate School
20 Wall Street
Passaic, NJ 07055

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Passaic Alternate School",'Passaic=' + Passaic.length); Wayne[Wayne.length] = createMarker(new GPoint(-74.19969177,40.93169785),"
Passaic Co Technical Institute High School
45 Reinhardt Road
Wayne, NJ 07470

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Passaic Co Technical Institute High School",'Wayne=' + Wayne.length); Passaic[Passaic.length] = createMarker(new GPoint(-74.12799835,40.85670090),"
Passaic High School
170 Paulison Avenue
Passaic, NJ 07055

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Passaic High School",'Passaic=' + Passaic.length); Passaic[Passaic.length] = createMarker(new GPoint(-74.12489319,40.87036133),"
Passaic Prep
209 Hope Avenue
Passaic, NJ 07055

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Passaic Prep",'Passaic=' + Passaic.length); Little_Falls[Little_Falls.length] = createMarker(new GPoint(-74.21119690,40.88489914),"
Passaic Valley High School
East Main Street
Little Falls, NJ 07424

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Passaic Valley High School",'Little_Falls=' + Little_Falls.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.17169952,40.91709900),"
Paterson Charter School For Sci/tech
69-75 Lehigh Avenue
Paterson, NJ 07503

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Paterson Charter School For Sci/tech",'Paterson=' + Paterson.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.13461304,40.92197418),"
Paterson Charter School For Urban Leadership
2 East 40th Street
Paterson, NJ 07514

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Paterson Charter School For Urban Leadership",'Paterson=' + Paterson.length); Ringwood[Ringwood.length] = createMarker(new GPoint(-74.26689148,41.06519699),"
Peter Cooper Elementary School
54 Roger Court
Ringwood, NJ 07456

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Peter Cooper Elementary School",'Ringwood=' + Ringwood.length); Wayne[Wayne.length] = createMarker(new GPoint(-74.25698090,40.98411942),"
Pines Lake Elementary School
511 Pines Lake Drive
Wayne, NJ 07470

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Pines Lake Elementary School",'Wayne=' + Wayne.length); Pompton_Lakes[Pompton_Lakes.length] = createMarker(new GPoint(-74.28953552,41.00521088),"
Pompton Lakes High School
44 Lakeside Avenue
Pompton Lakes, NJ 07442

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Pompton Lakes High School",'Pompton_Lakes=' + Pompton_Lakes.length); Wayne[Wayne.length] = createMarker(new GPoint(-74.24639130,40.92639923),"
Randall Carter Elementary School
531 Alps Road
Wayne, NJ 07470

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Randall Carter Elementary School",'Wayne=' + Wayne.length); Ringwood[Ringwood.length] = createMarker(new GPoint(-74.26386261,41.09219742),"
Robert Erskine Elementary School
88 Erskine Road
Ringwood, NJ 07456

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Robert Erskine Elementary School",'Ringwood=' + Ringwood.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.15885162,40.91342163),"
Roberto Clemente Elementary School
434 Rosa Parks Blvd.
Paterson, NJ 07501

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Roberto Clemente Elementary School",'Paterson=' + Paterson.length); Hawthorne[Hawthorne.length] = createMarker(new GPoint(-74.15513611,40.96457291),"
Roosevelt Elementary School
50 Roosevelt Avenue
Hawthorne, NJ 07506

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Roosevelt Elementary School",'Hawthorne=' + Hawthorne.length); Paterson[Paterson.length] = createMarker(new GPoint(-74.14628601,40.91969681),"
Rosa Parks Arts High School
413 12th Avenue
Paterson, NJ 07514

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Rosa Parks Arts High School",'Paterson=' + Paterson.length); Wayne[Wayne.length] = createMarker(new GPoint(-74.24960327,40.93970108),"
Ryerson Elementary School
30 Mc Clelland Avenue
Wayne, NJ 07470

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Ryerson Elementary School",'Wayne=' + Wayne.length); Bloomingdale[Bloomingdale.length] = createMarker(new GPoint(-74.33148193,41.00490189),"
Samuel R. Donald Elementary School
Captolene Avenue
Bloomingdale, NJ 07403

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Samuel R. Donald Elementary School",'Bloomingdale=' + Bloomingdale.length); Wayne[Wayne.length] = createMarker(new GPoint(-74.25439453,40.96489716),"
Schuyler-colfax Middle School
1500 Hamburg Turnpike
Wayne, NJ 07470

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Schuyler-colfax Middle School",'Wayne=' + Wayne.length); Ringwood[Ringwood.length] = createMarker(new GPoint(-74.26920319,41.09769821),"
Skylands Sch-exceptional
Co Ryerson School
Ringwood, NJ 07456

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Skylands Sch-exceptional",'Ringwood=' + Ringwood.length); Wayne[Wayne.length] = createMarker(new GPoint(-74.26248932,40.95999908),"
Theunis Dey Elementary School
55 Webster Drive
Wayne, NJ 07470

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Theunis Dey Elementary School",'Wayne=' + Wayne.length); Hawthorne[Hawthorne.length] = createMarker(new GPoint(-74.16175079,40.97013855),"
Thomas Jefferson Elementary School
233 Goffle Hill Road
Hawthorne, NJ 07507

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Thomas Jefferson Elementary School",'Hawthorne=' + Hawthorne.length); Hewitt[Hewitt.length] = createMarker(new GPoint(-74.50759888,41.03079987),"
Upper Greenwood Lake Elementary School
41 Henry Road
Hewitt, NJ 07438

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Upper Greenwood Lake Elementary School",'Hewitt=' + Hewitt.length); Bloomingdale[Bloomingdale.length] = createMarker(new GPoint(-74.33567810,41.01742172),"
Walter T Bergen Middle School
Glenwild Avenue
Bloomingdale, NJ 07403

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Walter T Bergen Middle School",'Bloomingdale=' + Bloomingdale.length); Wanaque[Wanaque.length] = createMarker(new GPoint(-74.28019714,41.05540085),"
Wanaque Elementary School
First Street
Wanaque, NJ 07465

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Wanaque Elementary School",'Wanaque=' + Wanaque.length); Hawthorne[Hawthorne.length] = createMarker(new GPoint(-74.16810608,40.94173813),"
Washington Elementary School
176 Mohawk Avenue
Hawthorne, NJ 07506

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Washington Elementary School",'Hawthorne=' + Hawthorne.length); Totowa[Totowa.length] = createMarker(new GPoint(-74.21847600,40.90424800),"
Washington Park
10 Crews Street
Totowa, NJ 07512

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Washington Park",'Totowa=' + Totowa.length); Totowa[Totowa.length] = createMarker(new GPoint(-74.21569061,40.90295410),"
Washington Park Elementary School
294 Totowa Road
Totowa, NJ 07512

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Washington Park Elementary School",'Totowa=' + Totowa.length); Wayne[Wayne.length] = createMarker(new GPoint(-74.24269867,40.96760941),"
Wayne Hills High School
272 Berdan Avenue
Wayne, NJ 07470

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Wayne Hills High School",'Wayne=' + Wayne.length); Wayne[Wayne.length] = createMarker(new GPoint(-74.22936249,40.92885208),"
Wayne Valley High School
551 Valley Road
Wayne, NJ 07470

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Wayne Valley High School",'Wayne=' + Wayne.length); West_Milford[West_Milford.length] = createMarker(new GPoint(-74.38145447,41.08317566),"
West Brook Elementary School
55 Nosenzo Pond Road
West Milford, NJ 07480

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("West Brook Elementary School",'West_Milford=' + West_Milford.length); West_Milford[West_Milford.length] = createMarker(new GPoint(-74.38627625,41.08015823),"
West Milford High School
67 Highlander Drive
West Milford, NJ 07480

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("West Milford High School",'West_Milford=' + West_Milford.length); Clifton[Clifton.length] = createMarker(new GPoint(-74.17630768,40.87450409),"
Woodrow Wilson Middle School
1400 Van Houten Avenue
Clifton, NJ 07013

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Woodrow Wilson Middle School",'Clifton=' + Clifton.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(Bloomingdale); map.removeOverlays(Clifton); map.removeOverlays(Haledon); map.removeOverlays(Haskell); map.removeOverlays(Hawthorne); map.removeOverlays(Hewitt); map.removeOverlays(Little_Falls); map.removeOverlays(North_Haledon); map.removeOverlays(Oak_Ridge); map.removeOverlays(Passaic); map.removeOverlays(Paterson); map.removeOverlays(Pompton_Lakes); map.removeOverlays(Prospect_Park); map.removeOverlays(Ringwood); map.removeOverlays(Totowa); map.removeOverlays(Wanaque); map.removeOverlays(Wayne); map.removeOverlays(West_Milford); map.removeOverlays(West_Paterson); 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(Clifton);map.removeOverlays(Bloomingdale); map.removeOverlays(Clifton); map.removeOverlays(Haledon); map.removeOverlays(Haskell); map.removeOverlays(Hawthorne); map.removeOverlays(Hewitt); map.removeOverlays(Little_Falls); map.removeOverlays(North_Haledon); map.removeOverlays(Oak_Ridge); map.removeOverlays(Passaic); map.removeOverlays(Paterson); map.removeOverlays(Pompton_Lakes); map.removeOverlays(Prospect_Park); map.removeOverlays(Ringwood); map.removeOverlays(Totowa); map.removeOverlays(Wanaque); map.removeOverlays(Wayne); map.removeOverlays(West_Milford); map.removeOverlays(West_Paterson); map.addOverlays(Bloomingdale); centerByArray(Bloomingdale, false, false); cntMarker += Bloomingdale.length; map.addOverlays(Clifton); centerByArray(Clifton, false, false); cntMarker += Clifton.length; map.addOverlays(Haledon); centerByArray(Haledon, false, false); cntMarker += Haledon.length; map.addOverlays(Haskell); centerByArray(Haskell, false, false); cntMarker += Haskell.length; map.addOverlays(Hawthorne); centerByArray(Hawthorne, false, false); cntMarker += Hawthorne.length; map.addOverlays(Hewitt); centerByArray(Hewitt, false, false); cntMarker += Hewitt.length; map.addOverlays(Little_Falls); centerByArray(Little_Falls, false, false); cntMarker += Little_Falls.length; map.addOverlays(North_Haledon); centerByArray(North_Haledon, false, false); cntMarker += North_Haledon.length; map.addOverlays(Oak_Ridge); centerByArray(Oak_Ridge, false, false); cntMarker += Oak_Ridge.length; map.addOverlays(Passaic); centerByArray(Passaic, false, false); cntMarker += Passaic.length; map.addOverlays(Paterson); centerByArray(Paterson, false, false); cntMarker += Paterson.length; map.addOverlays(Pompton_Lakes); centerByArray(Pompton_Lakes, false, false); cntMarker += Pompton_Lakes.length; map.addOverlays(Prospect_Park); centerByArray(Prospect_Park, false, false); cntMarker += Prospect_Park.length; map.addOverlays(Ringwood); centerByArray(Ringwood, false, false); cntMarker += Ringwood.length; map.addOverlays(Totowa); centerByArray(Totowa, false, false); cntMarker += Totowa.length; map.addOverlays(Wanaque); centerByArray(Wanaque, false, false); cntMarker += Wanaque.length; map.addOverlays(Wayne); centerByArray(Wayne, false, false); cntMarker += Wayne.length; map.addOverlays(West_Milford); centerByArray(West_Milford, false, false); cntMarker += West_Milford.length; map.addOverlays(West_Paterson); centerByArray(West_Paterson, false, false); cntMarker += West_Paterson.length; centerByArray(Clifton,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'); } }