function addMarkers() { mySelect = document.getElementById('selection'); Staten_Island = [];Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.22676086,40.54792786),"
Arthur Kill Corr Facil
2911 Arthur Kill Rd
Staten Island, NY 10309

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Arthur Kill Corr Facil",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.08723450,40.61089706),"
Concord Alternative High School
109 Rhine Avenue
Staten Island, NY 10304

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Concord Alternative High School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.15336600,40.60880500),"
Csi High School For International Studies
2800 Victory Blvd
Staten Island, NY 10314

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Csi High School For International Studies",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.08117676,40.64454651),"
Curtis High School
105 Hamilton Avenue
Staten Island, NY 10301

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Curtis High School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.06970978,40.60158539),"
Geller House School
77 Chicago Avenue
Staten Island, NY 10305

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Geller House School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.08413696,40.60533905),"
Group Home
506 Mosel Ave
Staten Island, NY 10304

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Group Home",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.08790588,40.61149216),"
Group Home 17
12 Steuben St
Staten Island, NY 10304

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Group Home 17",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.13076019,40.60370636),"
Group Home Family Style
72 Wellbrook Ave Gh
Staten Island, NY 10314

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Group Home Family Style",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.10023499,40.57680130),"
I.S. 2 Egbert Intermediate School
333 Midland Avenue
Staten Island, NY 10306

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("I.S. 2 Egbert Intermediate School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.18631744,40.52433777),"
I.S. 7 E. Bernstein School
1270 Huguenot Avenue
Staten Island, NY 10312

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("I.S. 7 E. Bernstein School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.14614868,40.54525757),"
I.S. 24 M. S. Barnes Intermediate School
225 Cleveland Avenue
Staten Island, NY 10308

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("I.S. 24 M. S. Barnes Intermediate School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.11713409,40.62797928),"
I.S. 27 A. S. Prall Intermediate School
11 Clove Lake Place
Staten Island, NY 10310

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("I.S. 27 A. S. Prall Intermediate School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.24308777,40.50857544),"
I.S. 34 Totten Intermediate School
528 Academy Avenue
Staten Island, NY 10307

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("I.S. 34 Totten Intermediate School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.08200073,40.62033463),"
I.S. 49 B. A. Dreyfus Intermediate School
101 Warren Street
Staten Island, NY 10304

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("I.S. 49 B. A. Dreyfus Intermediate School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.14487457,40.62244034),"
I.S. 51 E. Markham Intermediate School
20 Houston Street
Staten Island, NY 10302

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("I.S. 51 E. Markham Intermediate School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.09738922,40.63388062),"
I.S. 61 William Morris School
445 Castleton Avenue
Staten Island, NY 10301

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("I.S. 61 William Morris School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.15874481,40.59324646),"
I.S. 72 Rocco Laurie Intermediate School
33 Ferndale Avenue
Staten Island, NY 10314

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("I.S. 72 Rocco Laurie Intermediate School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.19774628,40.54403687),"
I.S. 75 Paulo Intermediate School
455 Huguenot Avenue
Staten Island, NY 10312

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("I.S. 75 Paulo Intermediate School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.11566162,40.63576508),"
Market Street Group Home
171 Market St
Staten Island, NY 10301

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Market Street Group Home",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.22225189,40.50892258),"
Mission Of Immac Virgin
6581 Hylan Blvd
Staten Island, NY 10309

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Mission Of Immac Virgin",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.10741425,40.56936646),"
New Dorp High School
465 New Dorp Lane
Staten Island, NY 10306

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("New Dorp High School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.24428558,40.50932693),"
P.S. 1 Tottenville School
58 Summit Street
Staten Island, NY 10307

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 1 Tottenville School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.21114349,40.52057266),"
P.S. 3 Margaret Gioiosa School
80 South Goff Avenue
Staten Island, NY 10309

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 3 Margaret Gioiosa School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.17800140,40.54280090),"
P.S. 4 Maurice Wollin School
200 Nedra Ln
Staten Island, NY 10312

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 4 Maurice Wollin School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.18788147,40.53041077),"
P.S. 5 Huguenot School
348 Deisius Street
Staten Island, NY 10312

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 5 Huguenot School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.23139191,40.51216888),"
P.S. 6 Cpl A.f. Kivlehan School
555 Page Ave
Staten Island, NY 10307

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 6 Cpl A.f. Kivlehan School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.15203094,40.54803848),"
P.S. 8 Shirley Solomon School
112 Lindenwood Rd
Staten Island, NY 10308

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 8 Shirley Solomon School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.09762573,40.59046173),"
P.S. 11 Thomas Dongan School
50 Jefferson Street
Staten Island, NY 10304

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 11 Thomas Dongan School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.06987000,40.61309052),"
P.S. 13 M. L. Lindenmeyer School
191 Vermont Avenue
Staten Island, NY 10305

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 13 M. L. Lindenmeyer School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.07843018,40.62198639),"
P.S. 14 Vanderbilt School
100 Tompkins Avenue
Staten Island, NY 10304

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 14 Vanderbilt School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.07921800,40.64001800),"
P.S. 16 John Driscoll School
80 Monroe Avenue
Staten Island, NY 10301

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 16 John Driscoll School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.11750031,40.63589859),"
P.S. 18 J. Greenleaf Whittier School
221 Broadway
Staten Island, NY 10310

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 18 J. Greenleaf Whittier School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.12766266,40.63095856),"
P.S. 19 Curtis School
780 Post Avenue
Staten Island, NY 10310

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 19 Curtis School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.13316345,40.63635254),"
P.S. 20 Port Richmond School
161 Park Avenue
Staten Island, NY 10302

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 20 Port Richmond School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.14385223,40.63124847),"
P.S. 21 Elm Park School
168 Hooker Place
Staten Island, NY 10302

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 21 Elm Park School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.15135956,40.62522125),"
P.S. 22 Graniteville School
1860 Forest Avenue
Staten Island, NY 10303

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 22 Graniteville School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.13205719,40.57126999),"
P.S. 23 Richmondtown School
30 Natick Street
Staten Island, NY 10306

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 23 Richmondtown School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.22250366,40.50897980),"
P.S. 25 South Richmond High School Mt Loretto
6581 Hylan Boulevard
Staten Island, NY 10309

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("P.S. 25 South Richmond High School Mt Loretto",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.19083405,40.59159088),"
P.S. 26 Carteret School
4108 Victory Boulevard
Staten Island, NY 10314

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 26 Carteret School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.11521149,40.61361313),"
P.S. 29 Bardwell School
1581 Victory Boulevard
Staten Island, NY 10314

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 29 Bardwell School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.13269806,40.61846542),"
P.S. 30 Westerleigh School
200 Wardwell Avenue
Staten Island, NY 10314

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 30 Westerleigh School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.08546448,40.64139557),"
P.S. 31 William T. Davis School
55 Layton Avenue
Staten Island, NY 10301

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 31 William T. Davis School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.15417480,40.55522537),"
P.S. 32 Gifford School
32 Elverton Avenue
Staten Island, NY 10308

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 32 Gifford School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.09986115,40.61361694),"
P.S. 35 Clove Valley School
60 Foote Avenue
Staten Island, NY 10301

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 35 Clove Valley School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.18258667,40.54327011),"
P.S. 36 John C. Drumgoole School
255 Ionia Avenue
Staten Island, NY 10312

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 36 John C. Drumgoole School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.15071869,40.56411362),"
P.S. 37
15 Fairfield Street
Staten Island, NY 10308

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 37",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.09969330,40.57464600),"
P.S. 38 George Cromwell School
421 Lincoln Avenue
Staten Island, NY 10306

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 38 George Cromwell School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.07132721,40.59750366),"
P.S. 39 Francis J. Murphy Junior School
71 Sand Lane
Staten Island, NY 10305

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 39 Francis J. Murphy Junior School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.10910034,40.57403564),"
P.S. 41 New Dorp School
216 Clawson Street
Staten Island, NY 10306

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 41 New Dorp School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.16988373,40.55256271),"
P.S. 42 Eltingville School
380 Genesee Avenue
Staten Island, NY 10312

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 42 Eltingville School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.15663147,40.63157654),"
P.S. 44 Thomas C. Brown School
80 Maple Parkway
Staten Island, NY 10303

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 44 Thomas C. Brown School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.10729980,40.62849045),"
P.S. 45 John Tyler School
58 Lawrence Avenue
Staten Island, NY 10310

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 45 John Tyler School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.08043671,40.59361267),"
P.S. 46 Albert V. Maniscalco School
41 Reid Avenue
Staten Island, NY 10305

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 46 Albert V. Maniscalco School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.09123230,40.60221100),"
P.S. 48 William G. Wilcox School
1055 Targee Street
Staten Island, NY 10304

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 48 William G. Wilcox School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.12448883,40.56177902),"
P.S. 50 Frank Hankinson School
200 Adelaide Avenue
Staten Island, NY 10306

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 50 Frank Hankinson School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.08819580,40.58272934),"
P.S. 52 John C. Thompson School
450 Buel Avenue
Staten Island, NY 10305

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 52 John C. Thompson School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.13703156,40.55266953),"
P.S. 53 Bay Terrace School
330 Durant Avenue
Staten Island, NY 10308

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 53 Bay Terrace School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.13785553,40.60333252),"
P.S. 54 Charles W. Leng School
1060 Willowbrook Road
Staten Island, NY 10314

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 54 Charles W. Leng School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.16400146,40.53668213),"
P.S. 55 Henry M. Boehm School
54 Osborne Street
Staten Island, NY 10312

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 55 Henry M. Boehm School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.21385956,40.54252625),"
P.S. 56 Louis De Sario School
250 Kramer Avenue
Staten Island, NY 10309

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 56 Louis De Sario School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.08264160,40.61123657),"
P.S. 57 Hubert H. Humphrey School
140 Palma Drive
Staten Island, NY 10304

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 57 Hubert H. Humphrey School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.15119934,40.60380173),"
P.S. 58 Ss Columbia School
77 Marsh Ave
Staten Island, NY 10314

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 58 Ss Columbia School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.16203308,40.60991287),"
P.S. 60 Alice Austen School
55 Merrill Avenue
Staten Island, NY 10314

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 60 Alice Austen School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.15582275,40.59224319),"
P.S. 69 Daniel Tompkins School
144 Keating Place
Staten Island, NY 10314

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 69 Daniel Tompkins School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.10146332,40.60723877),"
P.S. 80 Petrides School
715 Ocean Ter
Staten Island, NY 10301

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("P.S. 80 Petrides School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.09455109,40.64068222),"
P.S. 373
91 Henderson Avenue
Staten Island, NY 10301

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("P.S. 373",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-73.92050171,40.86750031),"
P.S. 721
155 Tompkins Avenue
Staten Island, NY 10304

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("P.S. 721",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-75.45578003,39.71756744),"
Penns Grove High School
80 Monroe Avenue
Staten Island, NY 10301

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Penns Grove High School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.15062714,40.58388901),"
Petrides School
715 Ocean Terrace
Staten Island, NY 10301

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Petrides School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-73.78717804,40.89761353),"
Port Richmond High School
45 Innis Street
Staten Island, NY 10302

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Port Richmond High School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.07874298,40.64265442),"
Ralph Mckee High School
290 St. Marks Place
Staten Island, NY 10301

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Ralph Mckee High School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.07801819,40.57966232),"
South Beach Psych Center
777 Seaview Ave
Staten Island, NY 10305

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("South Beach Psych Center",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.22225189,40.50892258),"
Spec Adol Unit Female Division
6581 Hylan Blvd
Staten Island, NY 10309

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Spec Adol Unit Female Division",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.08387756,40.61772919),"
Staten Island Group Home
62-64 Waverly Pl
Staten Island, NY 10305

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Staten Island Group Home",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.14457703,40.59237289),"
Staten Island Res Center
1133 Forest Hill Road
Staten Island, NY 10314

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Staten Island Res Center",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.11498260,40.56760788),"
Staten Island Technical High School
485 Clawson Street
Staten Island, NY 10306

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Staten Island Technical High School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.12332916,40.59844589),"
Susan E. Wagner High School
1200 Manor Road
Staten Island, NY 10314

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Susan E. Wagner High School",'Staten_Island=' + Staten_Island.length); Staten_Island[Staten_Island.length] = createMarker(new GPoint(-74.19253540,40.52853012),"
Tottenville High School
100 Luten Avenue
Staten Island, NY 10312

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Tottenville High School",'Staten_Island=' + Staten_Island.length); maxLng = -73.78717804; maxLat = 40.89761353; minLng = -75.45578003; minLat = 39.71756744; reCenterMap(); } // 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(Staten_Island); 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(Staten_Island);map.removeOverlays(Staten_Island); map.addOverlays(Staten_Island); centerByArray(Staten_Island, false, false); cntMarker += Staten_Island.length; centerByArray(Staten_Island,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'); } }