function addMarkers() { mySelect = document.getElementById('selection'); Kempton = [];Reading = [];Douglassville = [];Blandon = [];Oley = [];Leesport = [];Bethel = [];Birdsboro = [];Boyertown = [];Topton = [];Mohnton = [];Wernersville = [];Robesonia = [];Womelsdorf = [];Sinking_Spring = [];Shillington = [];Fleetwood = [];Lenhartsville = [];Hamburg = [];Hereford = [];Kutztown = [];West_Lawn = [];Mertztown = [];Mount_Penn = [];Laureldale = [];Bernville = [];Shoemakersville = [];Wyomissing = [];Strausstown = [];Elverson = [];Shartlesville = [];Barto = [];West_Reading = [];mySelect.options[mySelect.options.length] = new Option("Barto schools",'all=Barto'); mySelect.options[mySelect.options.length] = new Option("Bernville schools",'all=Bernville'); mySelect.options[mySelect.options.length] = new Option("Bethel schools",'all=Bethel'); mySelect.options[mySelect.options.length] = new Option("Birdsboro schools",'all=Birdsboro'); mySelect.options[mySelect.options.length] = new Option("Blandon schools",'all=Blandon'); mySelect.options[mySelect.options.length] = new Option("Boyertown schools",'all=Boyertown'); mySelect.options[mySelect.options.length] = new Option("Douglassville schools",'all=Douglassville'); mySelect.options[mySelect.options.length] = new Option("Elverson schools",'all=Elverson'); mySelect.options[mySelect.options.length] = new Option("Fleetwood schools",'all=Fleetwood'); mySelect.options[mySelect.options.length] = new Option("Hamburg schools",'all=Hamburg'); mySelect.options[mySelect.options.length] = new Option("Hereford schools",'all=Hereford'); mySelect.options[mySelect.options.length] = new Option("Kempton schools",'all=Kempton'); mySelect.options[mySelect.options.length] = new Option("Kutztown schools",'all=Kutztown'); mySelect.options[mySelect.options.length] = new Option("Laureldale schools",'all=Laureldale'); mySelect.options[mySelect.options.length] = new Option("Leesport schools",'all=Leesport'); mySelect.options[mySelect.options.length] = new Option("Lenhartsville schools",'all=Lenhartsville'); mySelect.options[mySelect.options.length] = new Option("Mertztown schools",'all=Mertztown'); mySelect.options[mySelect.options.length] = new Option("Mohnton schools",'all=Mohnton'); mySelect.options[mySelect.options.length] = new Option("Mount Penn schools",'all=Mount_Penn'); mySelect.options[mySelect.options.length] = new Option("Oley schools",'all=Oley'); mySelect.options[mySelect.options.length] = new Option("Reading schools",'all=Reading'); mySelect.options[mySelect.options.length] = new Option("Robesonia schools",'all=Robesonia'); mySelect.options[mySelect.options.length] = new Option("Shartlesville schools",'all=Shartlesville'); mySelect.options[mySelect.options.length] = new Option("Shillington schools",'all=Shillington'); mySelect.options[mySelect.options.length] = new Option("Shoemakersville schools",'all=Shoemakersville'); mySelect.options[mySelect.options.length] = new Option("Sinking Spring schools",'all=Sinking_Spring'); mySelect.options[mySelect.options.length] = new Option("Strausstown schools",'all=Strausstown'); mySelect.options[mySelect.options.length] = new Option("Topton schools",'all=Topton'); mySelect.options[mySelect.options.length] = new Option("Wernersville schools",'all=Wernersville'); mySelect.options[mySelect.options.length] = new Option("West Lawn schools",'all=West_Lawn'); mySelect.options[mySelect.options.length] = new Option("West Reading schools",'all=West_Reading'); mySelect.options[mySelect.options.length] = new Option("Womelsdorf schools",'all=Womelsdorf'); mySelect.options[mySelect.options.length] = new Option("Wyomissing schools",'all=Wyomissing'); mySelect.options[mySelect.options.length] = new Option("---------------------------",''); Kempton[Kempton.length] = createMarker(new GPoint(-75.85823822,40.62392426),"
Albany Elementary School
3656 Route 737
Kempton, PA 19529

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Albany Elementary School",'Kempton=' + Kempton.length); Reading[Reading.length] = createMarker(new GPoint(-75.91812134,40.33031082),"
Amanda E Stout Elementary School
321 S 10th St
Reading, PA 19602

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Amanda E Stout Elementary School",'Reading=' + Reading.length); Douglassville[Douglassville.length] = createMarker(new GPoint(-75.73712158,40.29277039),"
Amity Intrmd Center
200 Boone Drive
Douglassville, PA 19518

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Amity Intrmd Center",'Douglassville=' + Douglassville.length); Douglassville[Douglassville.length] = createMarker(new GPoint(-75.73529053,40.29829788),"
Amity Primary Center
2144 Weavertown Rd
Douglassville, PA 19518

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Amity Primary Center",'Douglassville=' + Douglassville.length); Blandon[Blandon.length] = createMarker(new GPoint(-75.88520050,40.44063568),"
Andrew Maier Elementary School
355 Andrew Maier Blvd
Blandon, PA 19510

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Andrew Maier Elementary School",'Blandon=' + Blandon.length); Reading[Reading.length] = createMarker(new GPoint(-75.87051392,40.35245514),"
Antietam Middle School High School
100 Antietam Rd
Reading, PA 19606

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Antietam Middle School High School",'Reading=' + Reading.length); Oley[Oley.length] = createMarker(new GPoint(-75.79718018,40.38379288),"
Berks Ctc-east Campus
3307 Friedensburg Rd
Oley, PA 19547

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Berks Ctc-east Campus",'Oley=' + Oley.length); Leesport[Leesport.length] = createMarker(new GPoint(-76.01715088,40.38109970),"
Berks Ctc-west Campus
1057 County Road
Leesport, PA 19533

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Berks Ctc-west Campus",'Leesport=' + Leesport.length); Bethel[Bethel.length] = createMarker(new GPoint(-76.28990936,40.46857452),"
Bethel Elementary School
8390 Lancaster Ave
Bethel, PA 19507

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Bethel Elementary School",'Bethel=' + Bethel.length); Birdsboro[Birdsboro.length] = createMarker(new GPoint(-75.81393433,40.26353073),"
Birdsboro El Center
400 W 2nd St
Birdsboro, PA 19508

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Birdsboro El Center",'Birdsboro=' + Birdsboro.length); Boyertown[Boyertown.length] = createMarker(new GPoint(-75.63307190,40.32485580),"
Boyertown Area Junior High School - West
380 S Madison St
Boyertown, PA 19512

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Boyertown Area Junior High School - West",'Boyertown=' + Boyertown.length); Boyertown[Boyertown.length] = createMarker(new GPoint(-75.63037109,40.33109283),"
Boyertown Area Senior High School
120 N Monroe St
Boyertown, PA 19512

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Boyertown Area Senior High School",'Boyertown=' + Boyertown.length); Boyertown[Boyertown.length] = createMarker(new GPoint(-75.63106537,40.32530975),"
Boyertown Elementary School
641 E Second St
Boyertown, PA 19512

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Boyertown Elementary School",'Boyertown=' + Boyertown.length); Topton[Topton.length] = createMarker(new GPoint(-75.70320129,40.49936676),"
Brandywine Heights High School
200 W Weis St
Topton, PA 19562

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Brandywine Heights High School",'Topton=' + Topton.length); Topton[Topton.length] = createMarker(new GPoint(-75.70320129,40.49936676),"
Brandywine Heights Middle School
200 W Weis St
Topton, PA 19562

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Brandywine Heights Middle School",'Topton=' + Topton.length); Mohnton[Mohnton.length] = createMarker(new GPoint(-75.98410034,40.28479004),"
Brecknock Elementary School
Route 568
Mohnton, PA 19540

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Brecknock Elementary School",'Mohnton=' + Mohnton.length); Boyertown[Boyertown.length] = createMarker(new GPoint(-75.62764740,40.34019089),"
Colebrookdale Elementary School
1001 Montgomery Avenue
Boyertown, PA 19512

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Colebrookdale Elementary School",'Boyertown=' + Boyertown.length); Wernersville[Wernersville.length] = createMarker(new GPoint(-76.07875061,40.32540894),"
Conrad Weiser East Elementary School
200 Lincoln Dr
Wernersville, PA 19565

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Conrad Weiser East Elementary School",'Wernersville=' + Wernersville.length); Robesonia[Robesonia.length] = createMarker(new GPoint(-76.11814117,40.34718704),"
Conrad Weiser High School
44 Big Spring Road
Robesonia, PA 19551

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Conrad Weiser High School",'Robesonia=' + Robesonia.length); Robesonia[Robesonia.length] = createMarker(new GPoint(-76.12629700,40.34912491),"
Conrad Weiser Middle School
347 East Penn Avenue
Robesonia, PA 19551

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Conrad Weiser Middle School",'Robesonia=' + Robesonia.length); Womelsdorf[Womelsdorf.length] = createMarker(new GPoint(-76.18960571,40.36326981),"
Conrad Weiser West Elementary School
102 S 3rd St
Womelsdorf, PA 19567

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Conrad Weiser West Elementary School",'Womelsdorf=' + Womelsdorf.length); Sinking_Spring[Sinking_Spring.length] = createMarker(new GPoint(-76.01195526,40.31953812),"
Cornwall Terrace Elementary School
3100 Iroquois Avenue
Sinking Spring, PA 19608

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Cornwall Terrace Elementary School",'Sinking_Spring=' + Sinking_Spring.length); Shillington[Shillington.length] = createMarker(new GPoint(-75.95511627,40.29827881),"
Cumru Elementary School
Philadelphia Avenue
Shillington, PA 19607

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Cumru Elementary School",'Shillington=' + Shillington.length); Birdsboro[Birdsboro.length] = createMarker(new GPoint(-75.82800293,40.26610184),"
Daniel Boone Area High School
Po Box 450
Birdsboro, PA 19508

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Daniel Boone Area High School",'Birdsboro=' + Birdsboro.length); Douglassville[Douglassville.length] = createMarker(new GPoint(-75.82800293,40.26610184),"
Daniel Boone Area Middle School
1845 Weavertown Rd
Douglassville, PA 19518

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Daniel Boone Area Middle School",'Douglassville=' + Douglassville.length); Topton[Topton.length] = createMarker(new GPoint(-75.70394135,40.50173950),"
District-topton Elementary School
445 Barkley St
Topton, PA 19562

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("District-topton Elementary School",'Topton=' + Topton.length); Boyertown[Boyertown.length] = createMarker(new GPoint(-75.70613098,40.36839676),"
Earl Elementary School
22 Schoolhouse Rd
Boyertown, PA 19512

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Earl Elementary School",'Boyertown=' + Boyertown.length); Reading[Reading.length] = createMarker(new GPoint(-75.86803436,40.31738663),"
Exeter Township Junior High School
151 E 39th St
Reading, PA 19606

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Exeter Township Junior High School",'Reading=' + Reading.length); Reading[Reading.length] = createMarker(new GPoint(-75.87023926,40.32043076),"
Exeter Township Senior High School
201 E 37th St
Reading, PA 19606

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Exeter Township Senior High School",'Reading=' + Reading.length); Fleetwood[Fleetwood.length] = createMarker(new GPoint(-75.82176208,40.45748138),"
Fleetwood Elementary School
109 W Vine St
Fleetwood, PA 19522

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Fleetwood Elementary School",'Fleetwood=' + Fleetwood.length); Fleetwood[Fleetwood.length] = createMarker(new GPoint(-75.82300568,40.45693588),"
Fleetwood Middle School
407 N Richmond St
Fleetwood, PA 19522

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Fleetwood Middle School",'Fleetwood=' + Fleetwood.length); Fleetwood[Fleetwood.length] = createMarker(new GPoint(-75.83068085,40.45961380),"
Fleetwood Senior High School
803 N Richmond St
Fleetwood, PA 19522

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Fleetwood Senior High School",'Fleetwood=' + Fleetwood.length); Reading[Reading.length] = createMarker(new GPoint(-75.94974518,40.35736847),"
Glenside Elementary School
500 Lackawanna St
Reading, PA 19601

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Glenside Elementary School",'Reading=' + Reading.length); Shillington[Shillington.length] = createMarker(new GPoint(-75.96517181,40.30454636),"
Governor Mifflin Middle School
130 East Lancaster Avenue
Shillington, PA 19607

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Governor Mifflin Middle School",'Shillington=' + Shillington.length); Shillington[Shillington.length] = createMarker(new GPoint(-75.96191406,40.30181122),"
Governor Mifflin Senior High School
101 S Waverly St
Shillington, PA 19607

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Governor Mifflin Senior High School",'Shillington=' + Shillington.length); Lenhartsville[Lenhartsville.length] = createMarker(new GPoint(-75.80245209,40.57514191),"
Greenwich-lenhartsville Elementary School
1457 Krumsville Rd
Lenhartsville, PA 19534

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Greenwich-lenhartsville Elementary School",'Lenhartsville=' + Lenhartsville.length); Hamburg[Hamburg.length] = createMarker(new GPoint(-75.97936249,40.54972076),"
Hamburg Area High School
Windsor Street
Hamburg, PA 19526

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hamburg Area High School",'Hamburg=' + Hamburg.length); Hamburg[Hamburg.length] = createMarker(new GPoint(-75.97936249,40.54972076),"
Hamburg Area Middle School
Windsor Street
Hamburg, PA 19526

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Hamburg Area Middle School",'Hamburg=' + Hamburg.length); Hamburg[Hamburg.length] = createMarker(new GPoint(-75.97793579,40.55716705),"
Hamburg Elementary School
680 East State Street
Hamburg, PA 19526

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Hamburg Elementary School",'Hamburg=' + Hamburg.length); Hereford[Hereford.length] = createMarker(new GPoint(-75.54807281,40.44128036),"
Hereford Elementary School
1043 Gravel Pike
Hereford, PA 18056

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Hereford Elementary School",'Hereford=' + Hereford.length); Shillington[Shillington.length] = createMarker(new GPoint(-75.95468140,40.30220032),"
Intermediate School
600 Governor Dr
Shillington, PA 19607

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Intermediate School",'Shillington=' + Shillington.length); Reading[Reading.length] = createMarker(new GPoint(-75.84571838,40.32513428),"
Jacksonwald Elementary School
100 Church Lane Rd
Reading, PA 19606

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Jacksonwald Elementary School",'Reading=' + Reading.length); Kutztown[Kutztown.length] = createMarker(new GPoint(-75.76969147,40.51170731),"
Kutztown Area Middle School
10 Deisher Ln
Kutztown, PA 19530

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Kutztown Area Middle School",'Kutztown=' + Kutztown.length); Kutztown[Kutztown.length] = createMarker(new GPoint(-75.77832031,40.50997925),"
Kutztown Area Senior High School
50 Trexler Ave
Kutztown, PA 19530

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Kutztown Area Senior High School",'Kutztown=' + Kutztown.length); Kutztown[Kutztown.length] = createMarker(new GPoint(-75.77072906,40.51553726),"
Kutztown Elementary School
40 Normal Ave
Kutztown, PA 19530

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Kutztown Elementary School",'Kutztown=' + Kutztown.length); Reading[Reading.length] = createMarker(new GPoint(-75.93341827,40.33932114),"
Lauers Park Elementary School
251 N 2nd St
Reading, PA 19601

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lauers Park Elementary School",'Reading=' + Reading.length); West_Lawn[West_Lawn.length] = createMarker(new GPoint(-75.98725128,40.31402969),"
Lincoln Park Elementary School
400 Dorchester Avenue
West Lawn, PA 19609

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lincoln Park Elementary School",'West_Lawn=' + West_Lawn.length); Mertztown[Mertztown.length] = createMarker(new GPoint(-75.66078186,40.50276947),"
Longswamp Elementary School
1160 State St
Mertztown, PA 19539

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Longswamp Elementary School",'Mertztown=' + Mertztown.length); Reading[Reading.length] = createMarker(new GPoint(-75.85378265,40.29180145),"
Lorane Elementary School
699 Rittenhouse Dr
Reading, PA 19606

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lorane Elementary School",'Reading=' + Reading.length); Sinking_Spring[Sinking_Spring.length] = createMarker(new GPoint(-76.05805206,40.36121750),"
Lower Heidelberg Elementary School
810 Brownsville Rd
Sinking Spring, PA 19608

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lower Heidelberg Elementary School",'Sinking_Spring=' + Sinking_Spring.length); Reading[Reading.length] = createMarker(new GPoint(-75.86042786,40.32251358),"
Martin Luther Lausch El Center
200 Elm St
Reading, PA 19606

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Martin Luther Lausch El Center",'Reading=' + Reading.length); Kutztown[Kutztown.length] = createMarker(new GPoint(-75.73171234,40.53425980),"
Maxatawny Elementary School
251 Long Lane Rd
Kutztown, PA 19530

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Maxatawny Elementary School",'Kutztown=' + Kutztown.length); Reading[Reading.length] = createMarker(new GPoint(-75.93046570,40.31860733),"
Millmont Elementary School
400 Summit Ave
Reading, PA 19611

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Millmont Elementary School",'Reading=' + Reading.length); Douglassville[Douglassville.length] = createMarker(new GPoint(-75.73870087,40.27740097),"
Monocacy Kdg Center
Po Box 186
Douglassville, PA 19518

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Monocacy Kdg Center",'Douglassville=' + Douglassville.length); Mount_Penn[Mount_Penn.length] = createMarker(new GPoint(-75.89066315,40.32906342),"
Mt Penn Elementary School
2310 Cumberland Ave
Mount Penn, PA 19606

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mt Penn Elementary School",'Mount_Penn=' + Mount_Penn.length); Reading[Reading.length] = createMarker(new GPoint(-75.88749800,40.33018200),"
Mt Penn Primary Center
201 North 25th Street
Reading, PA 19606

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mt Penn Primary Center",'Reading=' + Reading.length); Laureldale[Laureldale.length] = createMarker(new GPoint(-75.91867065,40.38800812),"
Muhlenberg El Center
Sharp Avenue And Kutztown
Laureldale, PA 19605

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Muhlenberg El Center",'Laureldale=' + Laureldale.length); Laureldale[Laureldale.length] = createMarker(new GPoint(-75.91867065,40.38800812),"
Muhlenberg High School
Sharp Avenue And Frances St
Laureldale, PA 19605

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Muhlenberg High School",'Laureldale=' + Laureldale.length); Laureldale[Laureldale.length] = createMarker(new GPoint(-75.92214203,40.38853455),"
Muhlenberg Middle School
801 E Bellevue Ave
Laureldale, PA 19605

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Muhlenberg Middle School",'Laureldale=' + Laureldale.length); Reading[Reading.length] = createMarker(new GPoint(-75.91195679,40.35344315),"
Northeast Middle School
1216 N 13th St
Reading, PA 19604

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Northeast Middle School",'Reading=' + Reading.length); Reading[Reading.length] = createMarker(new GPoint(-75.94548798,40.34734726),"
Northwest Elementary School
820 Clinton Street
Reading, PA 19601

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Northwest Elementary School",'Reading=' + Reading.length); Reading[Reading.length] = createMarker(new GPoint(-75.93537903,40.35073853),"
Northwest Middle School
1000 N Front St
Reading, PA 19601

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Northwest Middle School",'Reading=' + Reading.length); Oley[Oley.length] = createMarker(new GPoint(-75.79964447,40.38205719),"
Oley Valley Elementary School
3257 Friedensburg Rd
Oley, PA 19547

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Oley Valley Elementary School",'Oley=' + Oley.length); Oley[Oley.length] = createMarker(new GPoint(-75.80001068,40.38164139),"
Oley Valley Middle School
3247 Friedensburg Rd
Oley, PA 19547

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Oley Valley Middle School",'Oley=' + Oley.length); Oley[Oley.length] = createMarker(new GPoint(-75.78490448,40.38616562),"
Oley Valley Senior High School
17 Jefferson St
Oley, PA 19547

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Oley Valley Senior High School",'Oley=' + Oley.length); Bernville[Bernville.length] = createMarker(new GPoint(-76.11745453,40.43952942),"
Penn Bernville Elementary School
24 Shartlesville Rd
Bernville, PA 19506

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Penn Bernville Elementary School",'Bernville=' + Bernville.length); Shoemakersville[Shoemakersville.length] = createMarker(new GPoint(-75.96681976,40.49914932),"
Perry Elementary School
201 Fourth Street
Shoemakersville, PA 19555

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Perry Elementary School",'Shoemakersville=' + Shoemakersville.length); Boyertown[Boyertown.length] = createMarker(new GPoint(-75.69361115,40.28200150),"
Pine Forge Elementary School
8 Glendale Rd
Boyertown, PA 19512

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Pine Forge Elementary School",'Boyertown=' + Boyertown.length); Reading[Reading.length] = createMarker(new GPoint(-75.91172028,40.34735489),"
Reading Senior High School
801 N 13th St
Reading, PA 19604

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Reading Senior High School",'Reading=' + Reading.length); Reading[Reading.length] = createMarker(new GPoint(-75.91159821,40.36830139),"
Reading-muhlenberg Avts
Spring Valley Warren Rds
Reading, PA 19612

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Reading-muhlenberg Avts",'Reading=' + Reading.length); Reading[Reading.length] = createMarker(new GPoint(-75.85827637,40.31251907),"
Reiffton School
4355 Dunham Drive
Reading, PA 19606

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Reiffton School",'Reading=' + Reading.length); Fleetwood[Fleetwood.length] = createMarker(new GPoint(-75.84053802,40.48479843),"
Richmond Elementary School
14432 Kutztown Road
Fleetwood, PA 19522

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Richmond Elementary School",'Fleetwood=' + Fleetwood.length); Reading[Reading.length] = createMarker(new GPoint(-75.93329620,40.35850525),"
Riverside Elementary School
1400 Centre Avenue
Reading, PA 19601

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Riverside Elementary School",'Reading=' + Reading.length); Birdsboro[Birdsboro.length] = createMarker(new GPoint(-75.87038422,40.24523926),"
Robeson El Center
801 White Bear Rd
Birdsboro, PA 19508

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Robeson El Center",'Birdsboro=' + Birdsboro.length); Fleetwood[Fleetwood.length] = createMarker(new GPoint(-75.74820709,40.45781326),"
Rockland Center Elementary School
73 Lyons Rd
Fleetwood, PA 19522

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Rockland Center Elementary School",'Fleetwood=' + Fleetwood.length); Leesport[Leesport.length] = createMarker(new GPoint(-75.94779205,40.44749069),"
Schuylkill Valley Elementary School
62 Ames Way
Leesport, PA 19533

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Schuylkill Valley Elementary School",'Leesport=' + Leesport.length); Leesport[Leesport.length] = createMarker(new GPoint(-75.94136810,40.44188309),"
Schuylkill Valley High School
929 Lakeshore Dr
Leesport, PA 19533

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Schuylkill Valley High School",'Leesport=' + Leesport.length); Leesport[Leesport.length] = createMarker(new GPoint(-75.94232941,40.44657898),"
Schuylkill Valley Middle School
114 Ontelaunee Dr
Leesport, PA 19533

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Schuylkill Valley Middle School",'Leesport=' + Leesport.length); Sinking_Spring[Sinking_Spring.length] = createMarker(new GPoint(-76.02702332,40.28541946),"
Shiloh Hills Elementary School
301 Sage Drive
Sinking Spring, PA 19608

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Shiloh Hills Elementary School",'Sinking_Spring=' + Sinking_Spring.length); Reading[Reading.length] = createMarker(new GPoint(-75.90608215,40.33062363),"
Sixteenth & Haak Elementary School
1601 Haak St
Reading, PA 19602

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Sixteenth & Haak Elementary School",'Reading=' + Reading.length); Reading[Reading.length] = createMarker(new GPoint(-75.91890717,40.33213806),"
Southern Middle School
931 Chestnut St
Reading, PA 19602

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Southern Middle School",'Reading=' + Reading.length); Reading[Reading.length] = createMarker(new GPoint(-75.94451904,40.33300400),"
Southwest Middle School
300 Chestnut St
Reading, PA 19602

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Southwest Middle School",'Reading=' + Reading.length); Wyomissing[Wyomissing.length] = createMarker(new GPoint(-75.99088287,40.34338760),"
Spring Ridge Elementary School
1211 Broadcasting Rd
Wyomissing, PA 19610

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Spring Ridge Elementary School",'Wyomissing=' + Wyomissing.length); Strausstown[Strausstown.length] = createMarker(new GPoint(-76.18001556,40.49396133),"
Strausstown Elementary School
44 East Avenue Po Box 156
Strausstown, PA 19559

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Strausstown Elementary School",'Strausstown=' + Strausstown.length); Reading[Reading.length] = createMarker(new GPoint(-75.91807556,40.34154129),"
Tenth & Green Elementary School
400 N 10th St
Reading, PA 19604

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Tenth & Green Elementary School",'Reading=' + Reading.length); Reading[Reading.length] = createMarker(new GPoint(-75.91906738,40.33533859),"
Tenth & Penn Elementary School
955 Penn St
Reading, PA 19601

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Tenth & Penn Elementary School",'Reading=' + Reading.length); Reading[Reading.length] = createMarker(new GPoint(-75.91190338,40.34294510),"
Thirteenth & Green Elementary School
501 N 13th St
Reading, PA 19604

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Thirteenth & Green Elementary School",'Reading=' + Reading.length); Reading[Reading.length] = createMarker(new GPoint(-75.91178131,40.35924149),"
Thirteenth & Union Elementary School
1600 N 13th St
Reading, PA 19604

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Thirteenth & Union Elementary School",'Reading=' + Reading.length); Reading[Reading.length] = createMarker(new GPoint(-75.95159912,40.32276535),"
Thomas H Ford Elementary School
901 Margaret St
Reading, PA 19611

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Thomas H Ford Elementary School",'Reading=' + Reading.length); Hamburg[Hamburg.length] = createMarker(new GPoint(-75.99987030,40.54981232),"
Tilden Elementary School
524 W State Street
Hamburg, PA 19526

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Tilden Elementary School",'Hamburg=' + Hamburg.length); Bernville[Bernville.length] = createMarker(new GPoint(-76.17720795,40.45276260),"
Tulpehocken Junior Senior High School
430 New Schaefferstown Rd
Bernville, PA 19506

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Tulpehocken Junior Senior High School",'Bernville=' + Bernville.length); Reading[Reading.length] = createMarker(new GPoint(-75.91387939,40.35333633),"
Twelfth & Marion Elementary School
1200 N 12th St
Reading, PA 19604

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Twelfth & Marion Elementary School",'Reading=' + Reading.length); Elverson[Elverson.length] = createMarker(new GPoint(-75.85570526,40.16042709),"
Twin Valley High School
4897 North Twin Valley Rd
Elverson, PA 19520

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Twin Valley High School",'Elverson=' + Elverson.length); Elverson[Elverson.length] = createMarker(new GPoint(-75.85754395,40.16469193),"
Twin Valley Middle School
770 Clymer Hill Rd
Elverson, PA 19520

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Twin Valley Middle School",'Elverson=' + Elverson.length); Reading[Reading.length] = createMarker(new GPoint(-75.92791748,40.33043289),"
Tyson-schoener Elementary School
315 S 5th St
Reading, PA 19602

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Tyson-schoener Elementary School",'Reading=' + Reading.length); Shartlesville[Shartlesville.length] = createMarker(new GPoint(-76.10659790,40.51409912),"
Upper Bern Elementary School
Po Box 467
Shartlesville, PA 19554

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Upper Bern Elementary School",'Shartlesville=' + Shartlesville.length); Barto[Barto.length] = createMarker(new GPoint(-75.59858704,40.38825607),"
Washington Elementary School
1406 Route 100
Barto, PA 19504

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Washington Elementary School",'Barto=' + Barto.length); West_Reading[West_Reading.length] = createMarker(new GPoint(-75.94639587,40.33364105),"
West Reading El Center
421 Chestnut St
West Reading, PA 19611

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("West Reading El Center",'West_Reading=' + West_Reading.length); West_Lawn[West_Lawn.length] = createMarker(new GPoint(-75.98952484,40.32456589),"
West Wyomissing Elementary School
2173 Garfield Ave
West Lawn, PA 19609

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("West Wyomissing Elementary School",'West_Lawn=' + West_Lawn.length); West_Lawn[West_Lawn.length] = createMarker(new GPoint(-76.00611877,40.33364105),"
Whitfield Elementary School
2700 Van Reed Rd
West Lawn, PA 19609

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Whitfield Elementary School",'West_Lawn=' + West_Lawn.length); West_Lawn[West_Lawn.length] = createMarker(new GPoint(-76.00080109,40.33055496),"
Wilson Central Junior High School
2601 Grandview Boulevard
West Lawn, PA 19609

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Wilson Central Junior High School",'West_Lawn=' + West_Lawn.length); West_Lawn[West_Lawn.length] = createMarker(new GPoint(-76.00080109,40.33055496),"
Wilson High School
2601 Grandview Boulevard
West Lawn, PA 19609

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Wilson High School",'West_Lawn=' + West_Lawn.length); Sinking_Spring[Sinking_Spring.length] = createMarker(new GPoint(-76.01195526,40.31953812),"
Wilson Southern Junior High School
3100 Iroquois Avenue
Sinking Spring, PA 19608

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Wilson Southern Junior High School",'Sinking_Spring=' + Sinking_Spring.length); Wyomissing[Wyomissing.length] = createMarker(new GPoint(-75.97010803,40.32473755),"
Wyomissing Area Junior Senior High School
630 Evans Ave
Wyomissing, PA 19610

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Wyomissing Area Junior Senior High School",'Wyomissing=' + Wyomissing.length); Wyomissing[Wyomissing.length] = createMarker(new GPoint(-75.97926331,40.33308411),"
Wyomissing Hills El Center
110 Woodland Rd
Wyomissing, PA 19610

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Wyomissing Hills El Center",'Wyomissing=' + Wyomissing.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(Barto); map.removeOverlays(Bernville); map.removeOverlays(Bethel); map.removeOverlays(Birdsboro); map.removeOverlays(Blandon); map.removeOverlays(Boyertown); map.removeOverlays(Douglassville); map.removeOverlays(Elverson); map.removeOverlays(Fleetwood); map.removeOverlays(Hamburg); map.removeOverlays(Hereford); map.removeOverlays(Kempton); map.removeOverlays(Kutztown); map.removeOverlays(Laureldale); map.removeOverlays(Leesport); map.removeOverlays(Lenhartsville); map.removeOverlays(Mertztown); map.removeOverlays(Mohnton); map.removeOverlays(Mount_Penn); map.removeOverlays(Oley); map.removeOverlays(Reading); map.removeOverlays(Robesonia); map.removeOverlays(Shartlesville); map.removeOverlays(Shillington); map.removeOverlays(Shoemakersville); map.removeOverlays(Sinking_Spring); map.removeOverlays(Strausstown); map.removeOverlays(Topton); map.removeOverlays(Wernersville); map.removeOverlays(West_Lawn); map.removeOverlays(West_Reading); map.removeOverlays(Womelsdorf); map.removeOverlays(Wyomissing); 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(Kempton);map.removeOverlays(Barto); map.removeOverlays(Bernville); map.removeOverlays(Bethel); map.removeOverlays(Birdsboro); map.removeOverlays(Blandon); map.removeOverlays(Boyertown); map.removeOverlays(Douglassville); map.removeOverlays(Elverson); map.removeOverlays(Fleetwood); map.removeOverlays(Hamburg); map.removeOverlays(Hereford); map.removeOverlays(Kempton); map.removeOverlays(Kutztown); map.removeOverlays(Laureldale); map.removeOverlays(Leesport); map.removeOverlays(Lenhartsville); map.removeOverlays(Mertztown); map.removeOverlays(Mohnton); map.removeOverlays(Mount_Penn); map.removeOverlays(Oley); map.removeOverlays(Reading); map.removeOverlays(Robesonia); map.removeOverlays(Shartlesville); map.removeOverlays(Shillington); map.removeOverlays(Shoemakersville); map.removeOverlays(Sinking_Spring); map.removeOverlays(Strausstown); map.removeOverlays(Topton); map.removeOverlays(Wernersville); map.removeOverlays(West_Lawn); map.removeOverlays(West_Reading); map.removeOverlays(Womelsdorf); map.removeOverlays(Wyomissing); map.addOverlays(Barto); centerByArray(Barto, false, false); cntMarker += Barto.length; map.addOverlays(Bernville); centerByArray(Bernville, false, false); cntMarker += Bernville.length; map.addOverlays(Bethel); centerByArray(Bethel, false, false); cntMarker += Bethel.length; map.addOverlays(Birdsboro); centerByArray(Birdsboro, false, false); cntMarker += Birdsboro.length; map.addOverlays(Blandon); centerByArray(Blandon, false, false); cntMarker += Blandon.length; map.addOverlays(Boyertown); centerByArray(Boyertown, false, false); cntMarker += Boyertown.length; map.addOverlays(Douglassville); centerByArray(Douglassville, false, false); cntMarker += Douglassville.length; map.addOverlays(Elverson); centerByArray(Elverson, false, false); cntMarker += Elverson.length; map.addOverlays(Fleetwood); centerByArray(Fleetwood, false, false); cntMarker += Fleetwood.length; map.addOverlays(Hamburg); centerByArray(Hamburg, false, false); cntMarker += Hamburg.length; map.addOverlays(Hereford); centerByArray(Hereford, false, false); cntMarker += Hereford.length; map.addOverlays(Kempton); centerByArray(Kempton, false, false); cntMarker += Kempton.length; map.addOverlays(Kutztown); centerByArray(Kutztown, false, false); cntMarker += Kutztown.length; map.addOverlays(Laureldale); centerByArray(Laureldale, false, false); cntMarker += Laureldale.length; map.addOverlays(Leesport); centerByArray(Leesport, false, false); cntMarker += Leesport.length; map.addOverlays(Lenhartsville); centerByArray(Lenhartsville, false, false); cntMarker += Lenhartsville.length; map.addOverlays(Mertztown); centerByArray(Mertztown, false, false); cntMarker += Mertztown.length; map.addOverlays(Mohnton); centerByArray(Mohnton, false, false); cntMarker += Mohnton.length; map.addOverlays(Mount_Penn); centerByArray(Mount_Penn, false, false); cntMarker += Mount_Penn.length; map.addOverlays(Oley); centerByArray(Oley, false, false); cntMarker += Oley.length; map.addOverlays(Reading); centerByArray(Reading, false, false); cntMarker += Reading.length; map.addOverlays(Robesonia); centerByArray(Robesonia, false, false); cntMarker += Robesonia.length; map.addOverlays(Shartlesville); centerByArray(Shartlesville, false, false); cntMarker += Shartlesville.length; map.addOverlays(Shillington); centerByArray(Shillington, false, false); cntMarker += Shillington.length; map.addOverlays(Shoemakersville); centerByArray(Shoemakersville, false, false); cntMarker += Shoemakersville.length; map.addOverlays(Sinking_Spring); centerByArray(Sinking_Spring, false, false); cntMarker += Sinking_Spring.length; map.addOverlays(Strausstown); centerByArray(Strausstown, false, false); cntMarker += Strausstown.length; map.addOverlays(Topton); centerByArray(Topton, false, false); cntMarker += Topton.length; map.addOverlays(Wernersville); centerByArray(Wernersville, false, false); cntMarker += Wernersville.length; map.addOverlays(West_Lawn); centerByArray(West_Lawn, false, false); cntMarker += West_Lawn.length; map.addOverlays(West_Reading); centerByArray(West_Reading, false, false); cntMarker += West_Reading.length; map.addOverlays(Womelsdorf); centerByArray(Womelsdorf, false, false); cntMarker += Womelsdorf.length; map.addOverlays(Wyomissing); centerByArray(Wyomissing, false, false); cntMarker += Wyomissing.length; centerByArray(Kempton,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'); } }