function addMarkers() { mySelect = document.getElementById('selection'); Harrisburg = [];Elizabethtown = [];Middletown = [];Grantville = [];Halifax = [];Hershey = [];Penbrook = [];Millersburg = [];Hummelstown = [];Dauphin = [];Steelton = [];Lykens = [];Elizabethville = [];mySelect.options[mySelect.options.length] = new Option("Dauphin schools",'all=Dauphin'); mySelect.options[mySelect.options.length] = new Option("Elizabethtown schools",'all=Elizabethtown'); mySelect.options[mySelect.options.length] = new Option("Elizabethville schools",'all=Elizabethville'); mySelect.options[mySelect.options.length] = new Option("Grantville schools",'all=Grantville'); mySelect.options[mySelect.options.length] = new Option("Halifax schools",'all=Halifax'); mySelect.options[mySelect.options.length] = new Option("Harrisburg schools",'all=Harrisburg'); mySelect.options[mySelect.options.length] = new Option("Hershey schools",'all=Hershey'); mySelect.options[mySelect.options.length] = new Option("Hummelstown schools",'all=Hummelstown'); mySelect.options[mySelect.options.length] = new Option("Lykens schools",'all=Lykens'); mySelect.options[mySelect.options.length] = new Option("Middletown schools",'all=Middletown'); mySelect.options[mySelect.options.length] = new Option("Millersburg schools",'all=Millersburg'); mySelect.options[mySelect.options.length] = new Option("Penbrook schools",'all=Penbrook'); mySelect.options[mySelect.options.length] = new Option("Steelton schools",'all=Steelton'); mySelect.options[mySelect.options.length] = new Option("---------------------------",''); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.84014893,40.28364944),"
Anna L Carter Kdg Center
150 S Progress Ave
Harrisburg, PA 17109

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Anna L Carter Kdg Center",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.88565400,40.26986700),"
Ben Franklin School
1206 N 6th Street
Harrisburg, PA 17102

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Ben Franklin School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.89519501,40.29172516),"
Camp Curtin School
2900 N 6th Street
Harrisburg, PA 17110

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Camp Curtin School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.80234528,40.28456497),"
Central Dauphin East Junior High School
628 Rutherford Rd
Harrisburg, PA 17109

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Central Dauphin East Junior High School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.80255127,40.28480148),"
Central Dauphin East Senior High School
626 Rutherford Rd
Harrisburg, PA 17109

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Central Dauphin East Senior High School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.81135559,40.29256058),"
Central Dauphin Senior High School
4600 Locust Lane
Harrisburg, PA 17109

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Central Dauphin Senior High School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.75773700,40.33784600),"
Central Dauphin Sr. High School
437 Piketown Road
Harrisburg, PA 17112

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Central Dauphin Sr. High School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.77780151,40.25511169),"
Chamber Hill Elementary School
6450 Chambers Hill Rd
Harrisburg, PA 17111

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Chamber Hill Elementary School",'Harrisburg=' + Harrisburg.length); Elizabethtown[Elizabethtown.length] = createMarker(new GPoint(-76.62321472,40.23515320),"
Conewago Elementary School
2809 Hershey Rd
Elizabethtown, PA 17022

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Conewago Elementary School",'Elizabethtown=' + Elizabethtown.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.78053284,40.29456329),"
Dauphin County Avts High School
6001 Locust Ln
Harrisburg, PA 17109

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Dauphin County Avts High School",'Harrisburg=' + Harrisburg.length); Middletown[Middletown.length] = createMarker(new GPoint(-76.73426056,40.19229889),"
Demey Elementary School
Catherine Roosevelt
Middletown, PA 17057

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Demey Elementary School",'Middletown=' + Middletown.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.87706757,40.27477264),"
Downey School
1313 Monroe St
Harrisburg, PA 17103

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Downey School",'Harrisburg=' + Harrisburg.length); Grantville[Grantville.length] = createMarker(new GPoint(-76.67385864,40.36136246),"
East Hanover Elementary School
2673 Sand Beach Rd
Grantville, PA 17028

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("East Hanover Elementary School",'Grantville=' + Grantville.length); Halifax[Halifax.length] = createMarker(new GPoint(-76.85343933,40.49673080),"
Enders-fisherville Elementary School
791 Enders Rd
Halifax, PA 17032

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Enders-fisherville Elementary School",'Halifax=' + Halifax.length); Middletown[Middletown.length] = createMarker(new GPoint(-76.72541809,40.19780731),"
Feaser Middle School
214 N Race St
Middletown, PA 17057

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Feaser Middle School",'Middletown=' + Middletown.length); Middletown[Middletown.length] = createMarker(new GPoint(-76.72548676,40.19670105),"
Fink Elementary School
150 N Race St
Middletown, PA 17057

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Fink Elementary School",'Middletown=' + Middletown.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.76874542,40.39186096),"
Fishing Creek Valley Elementary School
1524 Pine Tree Ave
Harrisburg, PA 17112

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Fishing Creek Valley Elementary School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.86296082,40.25131226),"
Foose School
1301 Sycamore St
Harrisburg, PA 17104

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Foose School",'Harrisburg=' + Harrisburg.length); Halifax[Halifax.length] = createMarker(new GPoint(-76.92755127,40.46073151),"
Halifax Area Elementary School
3940 Peters Mountain Rd
Halifax, PA 17032

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Halifax Area Elementary School",'Halifax=' + Halifax.length); Halifax[Halifax.length] = createMarker(new GPoint(-76.92755127,40.46073151),"
Halifax Area High School
3940 Peters Mountain Rd
Halifax, PA 17032

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Halifax Area High School",'Halifax=' + Halifax.length); Halifax[Halifax.length] = createMarker(new GPoint(-76.92755127,40.46073151),"
Halifax Area Middle School
3940 Peters Mountain Rd
Halifax, PA 17032

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Halifax Area Middle School",'Halifax=' + Halifax.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.88780212,40.27598953),"
Hamilton School
1701 N 6th St
Harrisburg, PA 17102

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hamilton School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.84904480,40.27151871),"
Harrisburg High School
2451 Market St
Harrisburg, PA 17103

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Harrisburg High School",'Harrisburg=' + Harrisburg.length); Hershey[Hershey.length] = createMarker(new GPoint(-76.64550018,40.27640152),"
Hershey Early Childhood Center
Po Box 898
Hershey, PA 17033

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Hershey Early Childhood Center",'Hershey=' + Hershey.length); Hershey[Hershey.length] = createMarker(new GPoint(-76.64550018,40.27640152),"
Hershey High School
Po Box 898
Hershey, PA 17033

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hershey High School",'Hershey=' + Hershey.length); Hershey[Hershey.length] = createMarker(new GPoint(-76.64550018,40.27640152),"
Hershey Intrmd Elementary School
Po Box 898
Hershey, PA 17033

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Hershey Intrmd Elementary School",'Hershey=' + Hershey.length); Hershey[Hershey.length] = createMarker(new GPoint(-76.64550018,40.27640152),"
Hershey Middle School
Po Box 898
Hershey, PA 17033

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Hershey Middle School",'Hershey=' + Hershey.length); Hershey[Hershey.length] = createMarker(new GPoint(-76.64550018,40.27640152),"
Hershey Primary Elementary School
Po Box 898
Hershey, PA 17033

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Hershey Primary Elementary School",'Hershey=' + Hershey.length); Penbrook[Penbrook.length] = createMarker(new GPoint(-76.87516022,40.25551987),"
Infinity Charter School
Suite 1
Penbrook, PA 17103

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Infinity Charter School",'Penbrook=' + Penbrook.length); Middletown[Middletown.length] = createMarker(new GPoint(-76.77690887,40.22657776),"
Kunkel Elementary School
2401 Fulling Mill Rd
Middletown, PA 17057

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Kunkel Elementary School",'Middletown=' + Middletown.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.80831909,40.26043701),"
Lawnton Elementary School
4400 Franklin St
Harrisburg, PA 17111

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lawnton Elementary School",'Harrisburg=' + Harrisburg.length); Millersburg[Millersburg.length] = createMarker(new GPoint(-76.96228027,40.53085709),"
Lenkerville Elementary School
520 South Market St
Millersburg, PA 17061

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lenkerville Elementary School",'Millersburg=' + Millersburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.86785126,40.27074432),"
Lincoln School
1601 State St
Harrisburg, PA 17103

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lincoln School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.79158020,40.33727264),"
Linglestown Elementary School
1044 N Mountain Rd
Harrisburg, PA 17112

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Linglestown Elementary School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.79167938,40.33904266),"
Linglestown Junior High School
1200 N Mountain Rd
Harrisburg, PA 17112

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Linglestown Junior High School",'Harrisburg=' + Harrisburg.length); Middletown[Middletown.length] = createMarker(new GPoint(-76.67910004,40.19146729),"
Londonderry Elementary School
260 Schoolhouse Rd
Middletown, PA 17057

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Londonderry Elementary School",'Middletown=' + Middletown.length); Hummelstown[Hummelstown.length] = createMarker(new GPoint(-76.70761108,40.26080704),"
Lower Dauphin High School
201 S Hanover St
Hummelstown, PA 17036

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Lower Dauphin High School",'Hummelstown=' + Hummelstown.length); Hummelstown[Hummelstown.length] = createMarker(new GPoint(-76.70095062,40.26074600),"
Lower Dauphin Middle School
251 Quarry Rd
Hummelstown, PA 17036

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Lower Dauphin Middle School",'Hummelstown=' + Hummelstown.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.84637451,40.26700592),"
Marshall School
301 Hale Ave
Harrisburg, PA 17104

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Marshall School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.85443115,40.26215363),"
Melrose School
2041 Berryhill St
Harrisburg, PA 17104

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Melrose School",'Harrisburg=' + Harrisburg.length); Dauphin[Dauphin.length] = createMarker(new GPoint(-76.93255615,40.37938309),"
Middle Paxton Elementary School
931 Peters Mountain Rd
Dauphin, PA 17018

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Middle Paxton Elementary School",'Dauphin=' + Dauphin.length); Middletown[Middletown.length] = createMarker(new GPoint(-76.73588562,40.21155167),"
Middletown Area High School
1155 N Union St
Middletown, PA 17057

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Middletown Area High School",'Middletown=' + Middletown.length); Millersburg[Millersburg.length] = createMarker(new GPoint(-76.95182037,40.54219818),"
Millersburg Area Middle School
799 Center St
Millersburg, PA 17061

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Millersburg Area Middle School",'Millersburg=' + Millersburg.length); Millersburg[Millersburg.length] = createMarker(new GPoint(-76.96165900,40.53811000),"
Millersburg Area MiddleSchool
799 Center St
Millersburg, PA 17061

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Millersburg Area MiddleSchool",'Millersburg=' + Millersburg.length); Millersburg[Millersburg.length] = createMarker(new GPoint(-76.95182037,40.54219818),"
Millersburg Area Senior High School
799 Center St
Millersburg, PA 17061

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Millersburg Area Senior High School",'Millersburg=' + Millersburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.80070496,40.32341385),"
Mountain View Elementary School
400 Gibbel Rd
Harrisburg, PA 17112

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mountain View Elementary School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.81751251,40.30628967),"
North Side Elementary School
4520 Devonshire Rd
Harrisburg, PA 17109

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("North Side Elementary School",'Harrisburg=' + Harrisburg.length); Hummelstown[Hummelstown.length] = createMarker(new GPoint(-76.71177673,40.26253510),"
Nye Elementary School
200 S John St
Hummelstown, PA 17036

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Nye Elementary School",'Hummelstown=' + Hummelstown.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.83071136,40.26093674),"
Paxtang Elementary School
3530 Rutherford St
Harrisburg, PA 17111

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Paxtang Elementary School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.78334808,40.32024002),"
Paxtonia Elementary School
6135 Jonestown Rd
Harrisburg, PA 17112

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Paxtonia Elementary School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.88472748,40.27357864),"
Penn Data Sp Ed Enrollments A
333 Market Street, 14th Floor
Harrisburg, PA 17126

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Penn Data Sp Ed Enrollments A",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.88472748,40.27357864),"
Penn Data Sp Ed Enrollments B
333 Market Street, 14th Floor
Harrisburg, PA 17126

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Penn Data Sp Ed Enrollments B",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.88355400,40.25938900),"
Pennsylvania Distance Learning
23 N Front Street
Harrisburg, PA 17101

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Pennsylvania Distance Learning",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.80401611,40.29235077),"
Phillips Elementary School
100 Oakmont Rd
Harrisburg, PA 17109

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Phillips Elementary School",'Harrisburg=' + Harrisburg.length); Hummelstown[Hummelstown.length] = createMarker(new GPoint(-76.70570600,40.26415600),"
Price
101 East High Street
Hummelstown, PA 17036

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Price",'Hummelstown=' + Hummelstown.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.90097809,40.29865265),"
Riverside School
3219 Green St
Harrisburg, PA 17110

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Riverside School",'Harrisburg=' + Harrisburg.length); Middletown[Middletown.length] = createMarker(new GPoint(-76.73587799,40.21291351),"
Robert Reid Elementary School
201 Oberlin Road
Middletown, PA 17057

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Robert Reid Elementary School",'Middletown=' + Middletown.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.88747406,40.26717758),"
Ronald H Brown Charter School
279 Boas Street
Harrisburg, PA 17102

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Ronald H Brown Charter School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.85947418,40.26185989),"
Rowland School
1842 Derry Street
Harrisburg, PA 17104

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Rowland School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.77413177,40.26564789),"
Rutherford Elementary School
6500 Clearfield St
Harrisburg, PA 17111

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Rutherford Elementary School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.84680939,40.30013657),"
Sara Lindemuth Elementary School
1201 N Progress Ave
Harrisburg, PA 17109

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Sara Lindemuth Elementary School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.85787964,40.26160049),"
Scott School
1900 Derry Street
Harrisburg, PA 17104

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Scott School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.86103821,40.25896454),"
Shimmell School
548 S 17th St
Harrisburg, PA 17104

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Shimmell School",'Harrisburg=' + Harrisburg.length); Hershey[Hershey.length] = createMarker(new GPoint(-76.68246460,40.29100800),"
South Hanover Elementary School
15 W 3rd St
Hershey, PA 17033

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("South Hanover Elementary School",'Hershey=' + Hershey.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.80635071,40.27971649),"
South Side Elementary School
4525 Union Deposit Rd
Harrisburg, PA 17111

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("South Side Elementary School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.89602661,40.28735733),"
Steele School
2537 N 5th St
Harrisburg, PA 17110

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Steele School",'Harrisburg=' + Harrisburg.length); Steelton[Steelton.length] = createMarker(new GPoint(-76.88970184,40.27362061),"
Steelton-highspire Elementary School
4th Walnut Streets
Steelton, PA 17113

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Steelton-highspire Elementary School",'Steelton=' + Steelton.length); Steelton[Steelton.length] = createMarker(new GPoint(-76.86969757,40.25963974),"
Steelton-highspire High School
Swatara Reynders
Steelton, PA 17113

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Steelton-highspire High School",'Steelton=' + Steelton.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.84018707,40.29959488),"
Susquehanna Township High School
3500 Elmerton Ave
Harrisburg, PA 17109

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Susquehanna Township High School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.83295441,40.27983475),"
Susquehanna Township Middle School
801 Wood St
Harrisburg, PA 17109

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Susquehanna Township Middle School",'Harrisburg=' + Harrisburg.length); Steelton[Steelton.length] = createMarker(new GPoint(-76.81755829,40.23873520),"
Swatara Junior High School
1101 Highland St
Steelton, PA 17113

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Swatara Junior High School",'Steelton=' + Steelton.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.86389160,40.25308609),"
Sylvan Heights Science Charter School
915 S 13th Street
Harrisburg, PA 17104

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Sylvan Heights Science Charter School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.87107086,40.32802963),"
Thomas W Holtzman Elementary School
1910 Linglestown Rd
Harrisburg, PA 17110

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Thomas W Holtzman Elementary School",'Harrisburg=' + Harrisburg.length); Steelton[Steelton.length] = createMarker(new GPoint(-76.81911469,40.23301315),"
Tri-community Elementary School
255 Cypress St
Steelton, PA 17113

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Tri-community Elementary School",'Steelton=' + Steelton.length); Lykens[Lykens.length] = createMarker(new GPoint(-76.73671722,40.56651306),"
Upper Dauphin Area Elementary School
5668 State Route 209
Lykens, PA 17048

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Upper Dauphin Area Elementary School",'Lykens=' + Lykens.length); Elizabethville[Elizabethville.length] = createMarker(new GPoint(-76.81710052,40.55179977),"
Upper Dauphin Area High School
220 N Church St
Elizabethville, PA 17023

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Upper Dauphin Area High School",'Elizabethville=' + Elizabethville.length); Lykens[Lykens.length] = createMarker(new GPoint(-76.73671722,40.56651306),"
Upper Dauphin Area Middle School
5668 State Route 209
Lykens, PA 17048

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Upper Dauphin Area Middle School",'Lykens=' + Lykens.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.72451019,40.33816528),"
West Hanover Elementary School
7740 Manor Dr
Harrisburg, PA 17112

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("West Hanover Elementary School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.90030670,40.29167175),"
William Penn Acts School
2915 N 3rd St
Harrisburg, PA 17110

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("William Penn Acts School",'Harrisburg=' + Harrisburg.length); Harrisburg[Harrisburg.length] = createMarker(new GPoint(-76.86696625,40.27557373),"
Woodward School
1205 N 6th Street
Harrisburg, PA 17102

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Woodward School",'Harrisburg=' + Harrisburg.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(Dauphin); map.removeOverlays(Elizabethtown); map.removeOverlays(Elizabethville); map.removeOverlays(Grantville); map.removeOverlays(Halifax); map.removeOverlays(Harrisburg); map.removeOverlays(Hershey); map.removeOverlays(Hummelstown); map.removeOverlays(Lykens); map.removeOverlays(Middletown); map.removeOverlays(Millersburg); map.removeOverlays(Penbrook); map.removeOverlays(Steelton); 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(Harrisburg);map.removeOverlays(Dauphin); map.removeOverlays(Elizabethtown); map.removeOverlays(Elizabethville); map.removeOverlays(Grantville); map.removeOverlays(Halifax); map.removeOverlays(Harrisburg); map.removeOverlays(Hershey); map.removeOverlays(Hummelstown); map.removeOverlays(Lykens); map.removeOverlays(Middletown); map.removeOverlays(Millersburg); map.removeOverlays(Penbrook); map.removeOverlays(Steelton); map.addOverlays(Dauphin); centerByArray(Dauphin, false, false); cntMarker += Dauphin.length; map.addOverlays(Elizabethtown); centerByArray(Elizabethtown, false, false); cntMarker += Elizabethtown.length; map.addOverlays(Elizabethville); centerByArray(Elizabethville, false, false); cntMarker += Elizabethville.length; map.addOverlays(Grantville); centerByArray(Grantville, false, false); cntMarker += Grantville.length; map.addOverlays(Halifax); centerByArray(Halifax, false, false); cntMarker += Halifax.length; map.addOverlays(Harrisburg); centerByArray(Harrisburg, false, false); cntMarker += Harrisburg.length; map.addOverlays(Hershey); centerByArray(Hershey, false, false); cntMarker += Hershey.length; map.addOverlays(Hummelstown); centerByArray(Hummelstown, false, false); cntMarker += Hummelstown.length; map.addOverlays(Lykens); centerByArray(Lykens, false, false); cntMarker += Lykens.length; map.addOverlays(Middletown); centerByArray(Middletown, false, false); cntMarker += Middletown.length; map.addOverlays(Millersburg); centerByArray(Millersburg, false, false); cntMarker += Millersburg.length; map.addOverlays(Penbrook); centerByArray(Penbrook, false, false); cntMarker += Penbrook.length; map.addOverlays(Steelton); centerByArray(Steelton, false, false); cntMarker += Steelton.length; centerByArray(Harrisburg,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'); } }