function addMarkers() { mySelect = document.getElementById('selection'); Salem = [];Youngstown = [];Sebring = [];Beloit = [];Canfield = [];Campbell = [];Struthers = [];Damascus = [];Poland = [];North_Jackson = [];Lowellville = [];North_Lima = [];Greenford = [];New_Middletown = [];Berlin_Center = [];Ellsworth = [];mySelect.options[mySelect.options.length] = new Option("Beloit schools",'all=Beloit'); mySelect.options[mySelect.options.length] = new Option("Berlin Center schools",'all=Berlin_Center'); mySelect.options[mySelect.options.length] = new Option("Campbell schools",'all=Campbell'); mySelect.options[mySelect.options.length] = new Option("Canfield schools",'all=Canfield'); mySelect.options[mySelect.options.length] = new Option("Damascus schools",'all=Damascus'); mySelect.options[mySelect.options.length] = new Option("Ellsworth schools",'all=Ellsworth'); mySelect.options[mySelect.options.length] = new Option("Greenford schools",'all=Greenford'); mySelect.options[mySelect.options.length] = new Option("Lowellville schools",'all=Lowellville'); mySelect.options[mySelect.options.length] = new Option("New Middletown schools",'all=New_Middletown'); mySelect.options[mySelect.options.length] = new Option("North Jackson schools",'all=North_Jackson'); mySelect.options[mySelect.options.length] = new Option("North Lima schools",'all=North_Lima'); mySelect.options[mySelect.options.length] = new Option("Poland schools",'all=Poland'); mySelect.options[mySelect.options.length] = new Option("Salem schools",'all=Salem'); mySelect.options[mySelect.options.length] = new Option("Sebring schools",'all=Sebring'); mySelect.options[mySelect.options.length] = new Option("Struthers schools",'all=Struthers'); mySelect.options[mySelect.options.length] = new Option("Youngstown schools",'all=Youngstown'); mySelect.options[mySelect.options.length] = new Option("---------------------------",''); Salem[Salem.length] = createMarker(new GPoint(-80.99398041,40.92286301),"
5th Street Beloit Elementary School
14405 Pricetown Road
Salem, OH 44460

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("5th Street Beloit Elementary School",'Salem=' + Salem.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.62934875,41.07564163),"
Adams Junior High School
2537 Cooper St
Youngstown, OH 44502

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Adams Junior High School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.60751900,41.11456800),"
Athena: School Of Excellence For Girls
1061 Lyden Ave
Youngstown, OH 44505

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Athena: School Of Excellence For Girls",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.77067566,41.09983826),"
Austintown Middle School
5800 Mahoning Ave
Youngstown, OH 44515

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Austintown Middle School",'Youngstown=' + Youngstown.length); Sebring[Sebring.length] = createMarker(new GPoint(-81.02748871,40.92673874),"
B L Miller Elementary School
506 W Virginia Ave
Sebring, OH 44672

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("B L Miller Elementary School",'Sebring=' + Sebring.length); Beloit[Beloit.length] = createMarker(new GPoint(-81.05081940,40.92177200),"
Beloit Elementary School
14409 Beloit Snodes Rd
Beloit, OH 44609

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Beloit Elementary School",'Beloit=' + Beloit.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.66407776,41.07410431),"
Bennett Elementary School
2546 Hillman St
Youngstown, OH 44507

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Bennett Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.67211914,41.01178741),"
Boardman High School
7777 Glenwood Ave
Youngstown, OH 44512

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Boardman High School",'Youngstown=' + Youngstown.length); Canfield[Canfield.length] = createMarker(new GPoint(-80.76718140,41.03423691),"
C H Campbell Elementary School
300 Moreland Dr
Canfield, OH 44406

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("C H Campbell Elementary School",'Canfield=' + Canfield.length); Campbell[Campbell.length] = createMarker(new GPoint(-80.59089661,41.07899857),"
Campbell Elementary School
2002 Community Cir
Campbell, OH 44405

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Campbell Elementary School",'Campbell=' + Campbell.length); Campbell[Campbell.length] = createMarker(new GPoint(-80.59089661,41.07899857),"
Campbell Middle School
2002 Community Cir
Campbell, OH 44405

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Campbell Middle School",'Campbell=' + Campbell.length); Canfield[Canfield.length] = createMarker(new GPoint(-80.77207947,41.02788544),"
Canfield High School
100 Cardinal Dr
Canfield, OH 44406

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Canfield High School",'Canfield=' + Canfield.length); Canfield[Canfield.length] = createMarker(new GPoint(-80.76538086,41.02446747),"
Canfield Village Middle School
42 Wadsworth St
Canfield, OH 44406

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Canfield Village Middle School",'Canfield=' + Canfield.length); Struthers[Struthers.length] = createMarker(new GPoint(-80.59390259,41.05179977),"
Center Elementary School
75 Center St
Struthers, OH 44471

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Center Elementary School",'Struthers=' + Struthers.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.66287994,41.02014542),"
Center Middle School
7410 Market St
Youngstown, OH 44512

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Center Middle School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.69659424,41.09225082),"
Chaney High School
731 S Hazelwood Ave
Youngstown, OH 44509

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Chaney High School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.64546204,41.10087204),"
Choffin
200 E Wood St
Youngstown, OH 44503

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Choffin",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.64546204,41.10087204),"
Choffin Career & Technical Center
200 E Wood St
Youngstown, OH 44503

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Choffin Career & Technical Center",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.64546204,41.10087204),"
Choffin Practical Nursing
200 E Wood St
Youngstown, OH 44503

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Choffin Practical Nursing",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.67351532,41.07326126),"
Cleveland Elementary School
621 W Princeton Ave
Youngstown, OH 44511

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Cleveland Elementary School",'Youngstown=' + Youngstown.length); Damascus[Damascus.length] = createMarker(new GPoint(-80.95520020,40.90190125),"
Damascus Elementary School
Po Box 308
Damascus, OH 44619

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Damascus Elementary School",'Damascus=' + Damascus.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.72850800,41.11083603),"
Davis Elementary School
4302 Maple Ave
Youngstown, OH 44515

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Davis Elementary School",'Youngstown=' + Youngstown.length); Poland[Poland.length] = createMarker(new GPoint(-80.59495544,41.00430298),"
Dobbins Elementary School
3030 Dobbins Rd
Poland, OH 44514

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Dobbins Elementary School",'Poland=' + Poland.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.65671539,41.08212280),"
Eagle Heights Academy
1833 Market St
Youngstown, OH 44507

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Eagle Heights Academy",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.62245178,41.10219955),"
East Middle School
1544 E High Ave
Youngstown, OH 44505

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("East Middle School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.73991394,41.09116745),"
Fitch High School
4560 Falcon Dr
Youngstown, OH 44515

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Fitch High School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.74378967,41.09626007),"
Frank Ohl Middle School
255 Idaho Rd
Youngstown, OH 44515

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Frank Ohl Middle School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.67211914,41.01636124),"
Glenwood Middle School
7635 Glenwood Ave
Youngstown, OH 44512

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Glenwood Middle School",'Youngstown=' + Youngstown.length); Salem[Salem.length] = createMarker(new GPoint(-80.91597748,40.94466400),"
Goshen Center Elementary School
14003 W South Range Rd
Salem, OH 44460

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Goshen Center Elementary School",'Salem=' + Salem.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.66632843,41.11865616),"
Harding Elementary School
1903 Cordova Ave
Youngstown, OH 44504

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Harding Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.65338135,41.12215424),"
Hayes Middle School
1616 Ford Ave
Youngstown, OH 44504

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Hayes Middle School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.65906525,41.08783722),"
Hillman Middle School
2546 Hillman St
Youngstown, OH 44507

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Hillman Middle School",'Youngstown=' + Youngstown.length); Canfield[Canfield.length] = createMarker(new GPoint(-80.74531555,41.03173828),"
Hilltop Elementary School
400 Hilltop Blvd
Canfield, OH 44406

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Hilltop Elementary School",'Canfield=' + Canfield.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.62177277,41.06541443),"
Jackson Elementary School
767 Mabel St
Youngstown, OH 44502

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Jackson Elementary School",'Youngstown=' + Youngstown.length); North_Jackson[North_Jackson.length] = createMarker(new GPoint(-80.91696930,41.09943771),"
Jackson-milton Elementary School
14110 Mahoning Ave
North Jackson, OH 44451

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Jackson-milton Elementary School",'North_Jackson=' + North_Jackson.length); North_Jackson[North_Jackson.length] = createMarker(new GPoint(-80.85298157,41.10033798),"
Jackson-milton High School
10748 Mahoning Ave
North Jackson, OH 44451

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Jackson-milton High School",'North_Jackson=' + North_Jackson.length); North_Jackson[North_Jackson.length] = createMarker(new GPoint(-80.85298157,41.10033798),"
Jackson-milton Middle School
10748 Mahoning Ave
North Jackson, OH 44451

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Jackson-milton Middle School",'North_Jackson=' + North_Jackson.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.64546204,41.10087204),"
John White Learning Center
1387 Commonwealth Ave
Youngstown, OH 44505

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("John White Learning Center",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.63933563,41.10810089),"
Juvenile Justice Center (j High School
300 E Scott St
Youngstown, OH 44505

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Juvenile Justice Center (j High School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.70051575,41.06836319),"
Kirkmere Elementary School
134 N Hazelwood Ave
Youngstown, OH 44509

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Kirkmere Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.65988159,41.08238220),"
Legacy Academy For Leaders & Arts
1812 Oak Hill Ave
Youngstown, OH 44507

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Legacy Academy For Leaders & Arts",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.65927124,41.09733582),"
Life Skills Center Of Youngstown
3405 Market St
Youngstown, OH 44507

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Life Skills Center Of Youngstown",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.61588287,41.04478455),"
Lincoln Place
5058 Youngstown Poland Rd
Youngstown, OH 44514

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Lincoln Place",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.77220917,41.10504913),"
Lloyd Elementary School
5705 Norquest Blvd
Youngstown, OH 44515

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lloyd Elementary School",'Youngstown=' + Youngstown.length); Lowellville[Lowellville.length] = createMarker(new GPoint(-80.54699707,41.04309845),"
Lowellville High School
52 Rocket Place
Lowellville, OH 44436

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Lowellville High School",'Lowellville=' + Lowellville.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.72631836,41.06845856),"
Lynn-kirk Elementary School
4211 Evelyn Rd
Youngstown, OH 44511

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lynn-kirk Elementary School",'Youngstown=' + Youngstown.length); Canfield[Canfield.length] = createMarker(new GPoint(-80.78762054,41.03088379),"
Mahoning Career & Technical High School
7300 N Palmyra Rd
Canfield, OH 44406

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Mahoning Career & Technical High School",'Canfield=' + Canfield.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.62934875,41.07564163),"
Mahoning Unlimited Classroom
100 Debartolo Pl Ste 115
Youngstown, OH 44512

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Mahoning Unlimited Classroom",'Youngstown=' + Youngstown.length); Struthers[Struthers.length] = createMarker(new GPoint(-80.60040283,41.04276276),"
Manor Avenue Elementary School
230 E Manor Ave
Struthers, OH 44471

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Manor Avenue Elementary School",'Struthers=' + Struthers.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.66251373,41.04270172),"
Market Street Elementary School
5555 Market St
Youngstown, OH 44512

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Market Street Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.66048431,41.11106491),"
Martin Luther King Elementary School
706 Covington St
Youngstown, OH 44510

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Martin Luther King Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.59304810,41.09759903),"
Mary Haddow Elementary School
2800 Oak Street Ext
Youngstown, OH 44505

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mary Haddow Elementary School",'Youngstown=' + Youngstown.length); Poland[Poland.length] = createMarker(new GPoint(-80.61412811,41.02087402),"
Mckinley Elementary School
7 Elm St
Poland, OH 44514

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Mckinley Elementary School",'Poland=' + Poland.length); Sebring[Sebring.length] = createMarker(new GPoint(-81.01625061,40.92553711),"
Mckinley High School
225 E Indiana Ave
Sebring, OH 44672

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Mckinley High School",'Sebring=' + Sebring.length); Campbell[Campbell.length] = createMarker(new GPoint(-80.59889221,41.08045959),"
Memorial High School
280 6th St
Campbell, OH 44405

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Memorial High School",'Campbell=' + Campbell.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.64640808,41.10129166),"
Mollie Kessler Elementary School
118 E Wood St
Youngstown, OH 44503

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mollie Kessler Elementary School",'Youngstown=' + Youngstown.length); Poland[Poland.length] = createMarker(new GPoint(-80.61988068,41.03353882),"
North Elementary School
361 Johnston Pl
Poland, OH 44514

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("North Elementary School",'Poland=' + Poland.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.59407806,41.11223602),"
North Elementary School
2724 Mariner Ave
Youngstown, OH 44505

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("North Elementary School",'Youngstown=' + Youngstown.length); Lowellville[Lowellville.length] = createMarker(new GPoint(-80.54699707,41.04309845),"
North Side Elementary School
52 Rocket Place
Lowellville, OH 44436

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("North Side Elementary School",'Lowellville=' + Lowellville.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.64821800,41.10189900),"
Novanet High School
20 W Wood St
Youngstown, OH 44503

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Novanet High School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.62349701,41.04819870),"
Paul C Bunn Elementary School
1825 Sequoya Dr
Youngstown, OH 44514

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Paul C Bunn Elementary School",'Youngstown=' + Youngstown.length); Poland[Poland.length] = createMarker(new GPoint(-80.61488342,41.02091980),"
Poland Middle School
47 College St
Poland, OH 44514

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Poland Middle School",'Poland=' + Poland.length); Poland[Poland.length] = createMarker(new GPoint(-80.59117889,41.00561523),"
Poland Seminary High School
3199 Dobbins Rd
Poland, OH 44514

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Poland Seminary High School",'Poland=' + Poland.length); Poland[Poland.length] = createMarker(new GPoint(-80.60835266,41.02198792),"
Poland Union Elementary School
30 Riverside Dr
Poland, OH 44514

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Poland Union Elementary School",'Poland=' + Poland.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.64546204,41.10087204),"
Positive Connections High School
200 E Wood St
Youngstown, OH 44503

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Positive Connections High School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.64871979,41.12643814),"
Rayen High School
250 Benita Ave
Youngstown, OH 44504

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Rayen High School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.63918304,41.04616165),"
Robinwood Lane Elementary School
835 Indianola Rd
Youngstown, OH 44512

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Robinwood Lane Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.66632080,41.06654739),"
Sheridan Elementary School
3321 Hudson Ave
Youngstown, OH 44511

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Sheridan Elementary School",'Youngstown=' + Youngstown.length); North_Lima[North_Lima.length] = createMarker(new GPoint(-80.66098022,40.94630814),"
South Range Elementary School
11836 South Ave
North Lima, OH 44452

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("South Range Elementary School",'North_Lima=' + North_Lima.length); North_Lima[North_Lima.length] = createMarker(new GPoint(-80.66098022,40.94630814),"
South Range High School
11836 South Ave
North Lima, OH 44452

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("South Range High School",'North_Lima=' + North_Lima.length); Greenford[Greenford.length] = createMarker(new GPoint(-80.79160309,40.94380188),"
South Range Middle School
Po Box 86
Greenford, OH 44422

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("South Range Middle School",'Greenford=' + Greenford.length); Lowellville[Lowellville.length] = createMarker(new GPoint(-80.53472137,41.03269958),"
South Side Annex Elementary S
Jackson St
Lowellville, OH 44436

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("South Side Annex Elementary S",'Lowellville=' + Lowellville.length); New_Middletown[New_Middletown.length] = createMarker(new GPoint(-80.56132507,40.96479797),"
Springfield Elementary School
10580 Main St
New Middletown, OH 44442

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Springfield Elementary School",'New_Middletown=' + New_Middletown.length); New_Middletown[New_Middletown.length] = createMarker(new GPoint(-80.55956268,40.96791840),"
Springfield High School
11335 Youngstown Pittsburgh Rd
New Middletown, OH 44442

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Springfield High School",'New_Middletown=' + New_Middletown.length); New_Middletown[New_Middletown.length] = createMarker(new GPoint(-80.55001068,40.95450974),"
Springfield Intermediate Middle School
11333 Youngstown Pittsburgh Rd
New Middletown, OH 44442

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Springfield Intermediate Middle School",'New_Middletown=' + New_Middletown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.66738129,41.01876450),"
Stadium Drive Elementary School
111 Stadium Dr
Youngstown, OH 44512

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Stadium Drive Elementary School",'Youngstown=' + Youngstown.length); Struthers[Struthers.length] = createMarker(new GPoint(-80.59390259,41.05179977),"
Struthers Elementary School
520 9th St
Struthers, OH 44471

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Struthers Elementary School",'Struthers=' + Struthers.length); Struthers[Struthers.length] = createMarker(new GPoint(-80.59808350,41.05339432),"
Struthers High School
111 Euclid Ave
Struthers, OH 44471

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Struthers High School",'Struthers=' + Struthers.length); Struthers[Struthers.length] = createMarker(new GPoint(-80.59629059,41.05366135),"
Struthers Middle School
800 5th St
Struthers, OH 44471

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Struthers Middle School",'Struthers=' + Struthers.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.65968600,41.08678900),"
Summit Academy Community School - Youngstown
1400 Oak Hill Ave
Youngstown, OH 44507

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Summit Academy Community School - Youngstown",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.65968600,41.08678900),"
Summit Academy Secondary - Youngstown
1400 Oak Hill Ave
Youngstown, OH 44507

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Summit Academy Secondary - Youngstown",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.65988159,41.08666229),"
Summit Academy-youngstown Elementary School
144 N Schenley Ave
Youngstown, OH 44509

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Summit Academy-youngstown Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.64330292,41.07896423),"
Taft Elementary School
730 E Avondale Ave
Youngstown, OH 44502

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Taft Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.69988251,41.07726288),"
Volney Rogers Junior High School
2400 S Schenley Ave
Youngstown, OH 44511

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Volney Rogers Junior High School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.74376678,41.09692383),"
Watson Elementary School
215 Idaho Rd
Youngstown, OH 44515

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Watson Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.67927551,41.03625488),"
West Boulevard Elementary School
6125 West Blvd
Youngstown, OH 44512

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("West Boulevard Elementary School",'Youngstown=' + Youngstown.length); Beloit[Beloit.length] = createMarker(new GPoint(-80.99557495,40.91359329),"
West Branch High School
14277 S Main St
Beloit, OH 44609

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("West Branch High School",'Beloit=' + Beloit.length); Beloit[Beloit.length] = createMarker(new GPoint(-80.95520020,40.90190125),"
West Branch Middle School
14409 Beloit Snodes Rd
Beloit, OH 44609

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("West Branch Middle School",'Beloit=' + Beloit.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.69788361,41.10429764),"
West Elementary School
310 S Schenley Ave
Youngstown, OH 44509

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("West Elementary School",'Youngstown=' + Youngstown.length); Berlin_Center[Berlin_Center.length] = createMarker(new GPoint(-80.91260529,41.02473831),"
Western Reserve High School
13850 W Akron Canfield Rd
Berlin Center, OH 44401

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Western Reserve High School",'Berlin_Center=' + Berlin_Center.length); Berlin_Center[Berlin_Center.length] = createMarker(new GPoint(-80.95249939,41.02473831),"
Western Reserve Middle School
15904 W Akron Canfield Rd
Berlin Center, OH 44401

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Western Reserve Middle School",'Berlin_Center=' + Berlin_Center.length); Ellsworth[Ellsworth.length] = createMarker(new GPoint(-80.85758209,41.02890396),"
Western Reserve-ellsworth Elementary School
6194 S Salem Warren Rd
Ellsworth, OH 44416

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Western Reserve-ellsworth Elementary School",'Ellsworth=' + Ellsworth.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.65505981,41.08645630),"
Williamson Elementary School
58 Williamson Ave
Youngstown, OH 44507

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Williamson Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.64271545,41.07225037),"
Wilson High School
2725 Gibson St
Youngstown, OH 44502

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Wilson High School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.72268677,41.09543610),"
Woodside Elementary School
4105 Elmwood Ave
Youngstown, OH 44515

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Woodside Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.62313300,41.09112500),"
Youngstown Academy Of Excellence
1408 Rigby St
Youngstown, OH 44506

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Youngstown Academy Of Excellence",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.65814209,41.09030151),"
Youngstown Community Elementary School
50 Essex St
Youngstown, OH 44502

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Youngstown Community Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-10.00000000,10.00000000),"
Youngstown Early College
Fedor Hall
Youngstown, OH 44555

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Youngstown Early College",'Youngstown=' + Youngstown.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(Beloit); map.removeOverlays(Berlin_Center); map.removeOverlays(Campbell); map.removeOverlays(Canfield); map.removeOverlays(Damascus); map.removeOverlays(Ellsworth); map.removeOverlays(Greenford); map.removeOverlays(Lowellville); map.removeOverlays(New_Middletown); map.removeOverlays(North_Jackson); map.removeOverlays(North_Lima); map.removeOverlays(Poland); map.removeOverlays(Salem); map.removeOverlays(Sebring); map.removeOverlays(Struthers); map.removeOverlays(Youngstown); 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(Salem);map.removeOverlays(Beloit); map.removeOverlays(Berlin_Center); map.removeOverlays(Campbell); map.removeOverlays(Canfield); map.removeOverlays(Damascus); map.removeOverlays(Ellsworth); map.removeOverlays(Greenford); map.removeOverlays(Lowellville); map.removeOverlays(New_Middletown); map.removeOverlays(North_Jackson); map.removeOverlays(North_Lima); map.removeOverlays(Poland); map.removeOverlays(Salem); map.removeOverlays(Sebring); map.removeOverlays(Struthers); map.removeOverlays(Youngstown); map.addOverlays(Beloit); centerByArray(Beloit, false, false); cntMarker += Beloit.length; map.addOverlays(Berlin_Center); centerByArray(Berlin_Center, false, false); cntMarker += Berlin_Center.length; map.addOverlays(Campbell); centerByArray(Campbell, false, false); cntMarker += Campbell.length; map.addOverlays(Canfield); centerByArray(Canfield, false, false); cntMarker += Canfield.length; map.addOverlays(Damascus); centerByArray(Damascus, false, false); cntMarker += Damascus.length; map.addOverlays(Ellsworth); centerByArray(Ellsworth, false, false); cntMarker += Ellsworth.length; map.addOverlays(Greenford); centerByArray(Greenford, false, false); cntMarker += Greenford.length; map.addOverlays(Lowellville); centerByArray(Lowellville, false, false); cntMarker += Lowellville.length; map.addOverlays(New_Middletown); centerByArray(New_Middletown, false, false); cntMarker += New_Middletown.length; map.addOverlays(North_Jackson); centerByArray(North_Jackson, false, false); cntMarker += North_Jackson.length; map.addOverlays(North_Lima); centerByArray(North_Lima, false, false); cntMarker += North_Lima.length; map.addOverlays(Poland); centerByArray(Poland, false, false); cntMarker += Poland.length; map.addOverlays(Salem); centerByArray(Salem, false, false); cntMarker += Salem.length; map.addOverlays(Sebring); centerByArray(Sebring, false, false); cntMarker += Sebring.length; map.addOverlays(Struthers); centerByArray(Struthers, false, false); cntMarker += Struthers.length; map.addOverlays(Youngstown); centerByArray(Youngstown, false, false); cntMarker += Youngstown.length; centerByArray(Salem,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'); } }