function addMarkers() { mySelect = document.getElementById('selection'); Leechburg = [];Alverton = [];Greensburg = [];Latrobe = [];Salina = [];Belle_Vernon = [];Arnold = [];Lower_Burrell = [];Bradenville = [];New_Stanton = [];Derry = [];Jones_Mills = [];New_Kensington = [];Murrysville = [];Herminie = [];Jeannette = [];North_Huntingdon = [];Vandergrift = [];New_Florence = [];Trafford = [];Ligonier = [];Export = [];Claridge = [];Ruffsdale = [];New_Alexandria = [];Monessen = [];Mount_Pleasant = [];New_Derry = [];Apollo = [];Harrison_City = [];Irwin = [];Ruffs_Dale = [];Scottdale = [];Torrance = [];West_Newton = [];mySelect.options[mySelect.options.length] = new Option("Alverton schools",'all=Alverton'); mySelect.options[mySelect.options.length] = new Option("Apollo schools",'all=Apollo'); mySelect.options[mySelect.options.length] = new Option("Arnold schools",'all=Arnold'); mySelect.options[mySelect.options.length] = new Option("Belle Vernon schools",'all=Belle_Vernon'); mySelect.options[mySelect.options.length] = new Option("Bradenville schools",'all=Bradenville'); mySelect.options[mySelect.options.length] = new Option("Claridge schools",'all=Claridge'); mySelect.options[mySelect.options.length] = new Option("Derry schools",'all=Derry'); mySelect.options[mySelect.options.length] = new Option("Export schools",'all=Export'); mySelect.options[mySelect.options.length] = new Option("Greensburg schools",'all=Greensburg'); mySelect.options[mySelect.options.length] = new Option("Harrison City schools",'all=Harrison_City'); mySelect.options[mySelect.options.length] = new Option("Herminie schools",'all=Herminie'); mySelect.options[mySelect.options.length] = new Option("Irwin schools",'all=Irwin'); mySelect.options[mySelect.options.length] = new Option("Jeannette schools",'all=Jeannette'); mySelect.options[mySelect.options.length] = new Option("Jones Mills schools",'all=Jones_Mills'); mySelect.options[mySelect.options.length] = new Option("Latrobe schools",'all=Latrobe'); mySelect.options[mySelect.options.length] = new Option("Leechburg schools",'all=Leechburg'); mySelect.options[mySelect.options.length] = new Option("Ligonier schools",'all=Ligonier'); mySelect.options[mySelect.options.length] = new Option("Lower Burrell schools",'all=Lower_Burrell'); mySelect.options[mySelect.options.length] = new Option("Monessen schools",'all=Monessen'); mySelect.options[mySelect.options.length] = new Option("Mount Pleasant schools",'all=Mount_Pleasant'); mySelect.options[mySelect.options.length] = new Option("Murrysville schools",'all=Murrysville'); mySelect.options[mySelect.options.length] = new Option("New Alexandria schools",'all=New_Alexandria'); mySelect.options[mySelect.options.length] = new Option("New Derry schools",'all=New_Derry'); mySelect.options[mySelect.options.length] = new Option("New Florence schools",'all=New_Florence'); mySelect.options[mySelect.options.length] = new Option("New Kensington schools",'all=New_Kensington'); mySelect.options[mySelect.options.length] = new Option("New Stanton schools",'all=New_Stanton'); mySelect.options[mySelect.options.length] = new Option("North Huntingdon schools",'all=North_Huntingdon'); mySelect.options[mySelect.options.length] = new Option("Ruffs Dale schools",'all=Ruffs_Dale'); mySelect.options[mySelect.options.length] = new Option("Ruffsdale schools",'all=Ruffsdale'); mySelect.options[mySelect.options.length] = new Option("Salina schools",'all=Salina'); mySelect.options[mySelect.options.length] = new Option("Scottdale schools",'all=Scottdale'); mySelect.options[mySelect.options.length] = new Option("Torrance schools",'all=Torrance'); mySelect.options[mySelect.options.length] = new Option("Trafford schools",'all=Trafford'); mySelect.options[mySelect.options.length] = new Option("Vandergrift schools",'all=Vandergrift'); mySelect.options[mySelect.options.length] = new Option("West Newton schools",'all=West_Newton'); mySelect.options[mySelect.options.length] = new Option("---------------------------",''); Leechburg[Leechburg.length] = createMarker(new GPoint(-79.59217834,40.62977600),"
Allegheny-hyde Park Elementary School
1048 School Road
Leechburg, PA 15656

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Allegheny-hyde Park Elementary School",'Leechburg=' + Leechburg.length); Alverton[Alverton.length] = createMarker(new GPoint(-79.56300354,40.12659836),"
Alverton Elementary School
Po Box C
Alverton, PA 15612

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Alverton Elementary School",'Alverton=' + Alverton.length); Greensburg[Greensburg.length] = createMarker(new GPoint(-79.54901886,40.29131699),"
Amos K Hutchinson Elementary School
810 Welty St
Greensburg, PA 15601

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Amos K Hutchinson Elementary School",'Greensburg=' + Greensburg.length); Latrobe[Latrobe.length] = createMarker(new GPoint(-79.38639832,40.29840088),"
Baggaley Elementary School
4080 Route 982
Latrobe, PA 15650

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Baggaley Elementary School",'Latrobe=' + Latrobe.length); Salina[Salina.length] = createMarker(new GPoint(-79.49918365,40.52066040),"
Bell Avon Elementary School
238 Stewart St
Salina, PA 15680

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Bell Avon Elementary School",'Salina=' + Salina.length); Belle_Vernon[Belle_Vernon.length] = createMarker(new GPoint(-79.81900024,40.17736435),"
Belle Vernon Area High School
425 Crest Ave
Belle Vernon, PA 15012

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Belle Vernon Area High School",'Belle_Vernon=' + Belle_Vernon.length); Arnold[Arnold.length] = createMarker(new GPoint(-79.76339722,40.57709885),"
Berkey School
1739 Victoria Ave
Arnold, PA 15068

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Berkey School",'Arnold=' + Arnold.length); Lower_Burrell[Lower_Burrell.length] = createMarker(new GPoint(-79.70623016,40.58443832),"
Bon Air Elementary School
3260 Leechburg Rd
Lower Burrell, PA 15068

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Bon Air Elementary School",'Lower_Burrell=' + Lower_Burrell.length); Greensburg[Greensburg.length] = createMarker(new GPoint(-79.52491760,40.31137848),"
Bovard Elementary School
Rr 12 Box 525
Greensburg, PA 15601

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Bovard Elementary School",'Greensburg=' + Greensburg.length); Bradenville[Bradenville.length] = createMarker(new GPoint(-79.28430176,40.30559921),"
Bradenville Elementary School
Rr 1 Box 157
Bradenville, PA 15620

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Bradenville Elementary School",'Bradenville=' + Bradenville.length); Lower_Burrell[Lower_Burrell.length] = createMarker(new GPoint(-79.70025635,40.58246994),"
Burrell High School
1021 Puckety Church Rd
Lower Burrell, PA 15068

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Burrell High School",'Lower_Burrell=' + Lower_Burrell.length); New_Stanton[New_Stanton.length] = createMarker(new GPoint(-79.60308075,40.22756958),"
Central Westmoreland Ctc
240 Arona Rd
New Stanton, PA 15672

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Central Westmoreland Ctc",'New_Stanton=' + New_Stanton.length); Lower_Burrell[Lower_Burrell.length] = createMarker(new GPoint(-79.70050049,40.58225250),"
Charles A Huston Middle School
1020 Puckety Church Rd
Lower Burrell, PA 15068

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Charles A Huston Middle School",'Lower_Burrell=' + Lower_Burrell.length); Greensburg[Greensburg.length] = createMarker(new GPoint(-79.54831696,40.27428436),"
Crossroads School
1723 Poplar Street
Greensburg, PA 15601

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Crossroads School",'Greensburg=' + Greensburg.length); Derry[Derry.length] = createMarker(new GPoint(-79.31456757,40.33968735),"
Derry Area Middle School
994 North Chestnut St Ext
Derry, PA 15627

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Derry Area Middle School",'Derry=' + Derry.length); Derry[Derry.length] = createMarker(new GPoint(-79.31455994,40.33968735),"
Derry Area Senior High School
988 North Chestnut St Ext
Derry, PA 15627

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Derry Area Senior High School",'Derry=' + Derry.length); Jones_Mills[Jones_Mills.length] = createMarker(new GPoint(-79.33995056,40.08826065),"
Donegal Elementary School
Schoolhouse Lane
Jones Mills, PA 15646

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Donegal Elementary School",'Jones_Mills=' + Jones_Mills.length); Greensburg[Greensburg.length] = createMarker(new GPoint(-79.51925659,40.28906250),"
East Hempfield Elementary School
555 Rial Lane
Greensburg, PA 15601

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("East Hempfield Elementary School",'Greensburg=' + Greensburg.length); Latrobe[Latrobe.length] = createMarker(new GPoint(-79.35916138,40.31116486),"
Eastern Westmoreland Ctc
849 Hillview Ave
Latrobe, PA 15650

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Eastern Westmoreland Ctc",'Latrobe=' + Latrobe.length); New_Kensington[New_Kensington.length] = createMarker(new GPoint(-79.75489807,40.57303238),"
Edgewood School
1025 Knollwood Rd
New Kensington, PA 15068

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Edgewood School",'New_Kensington=' + New_Kensington.length); Greensburg[Greensburg.length] = createMarker(new GPoint(-79.49770355,40.28710175),"
Fort Allen Elementary School
Rr 11 Box 191
Greensburg, PA 15601

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Fort Allen Elementary School",'Greensburg=' + Greensburg.length); New_Kensington[New_Kensington.length] = createMarker(new GPoint(-79.76349640,40.55467987),"
Fort Crawford School
255 Third St
New Kensington, PA 15068

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Fort Crawford School",'New_Kensington=' + New_Kensington.length); Murrysville[Murrysville.length] = createMarker(new GPoint(-79.66889191,40.42608261),"
Franklin Regional Middle School
4660 Old William Penn Hwy
Murrysville, PA 15668

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Franklin Regional Middle School",'Murrysville=' + Murrysville.length); Murrysville[Murrysville.length] = createMarker(new GPoint(-79.66411591,40.43067169),"
Franklin Regional Senior High School
3200 School Rd
Murrysville, PA 15668

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Franklin Regional Senior High School",'Murrysville=' + Murrysville.length); Derry[Derry.length] = createMarker(new GPoint(-79.31511688,40.34044266),"
Grandview Elementary School
188 Recreation Rd
Derry, PA 15627

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Grandview Elementary School",'Derry=' + Derry.length); Latrobe[Latrobe.length] = createMarker(new GPoint(-79.39295197,40.27910614),"
Greater Latrobe Junior High School
130 High School Rd
Latrobe, PA 15650

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Greater Latrobe Junior High School",'Latrobe=' + Latrobe.length); Latrobe[Latrobe.length] = createMarker(new GPoint(-79.39295197,40.27910614),"
Greater Latrobe Senior High School
131 High School Rd
Latrobe, PA 15650

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Greater Latrobe Senior High School",'Latrobe=' + Latrobe.length); Greensburg[Greensburg.length] = createMarker(new GPoint(-79.54292297,40.32750320),"
Greensburg-salem High School
65 Mennel Dr
Greensburg, PA 15601

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Greensburg-salem High School",'Greensburg=' + Greensburg.length); Greensburg[Greensburg.length] = createMarker(new GPoint(-79.54537964,40.30638504),"
Greensburg-salem Middle School
301 N Main St
Greensburg, PA 15601

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Greensburg-salem Middle School",'Greensburg=' + Greensburg.length); New_Kensington[New_Kensington.length] = createMarker(new GPoint(-79.75165558,40.58612823),"
Greenwald Memorial School
110 Elmtree Rd
New Kensington, PA 15068

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Greenwald Memorial School",'New_Kensington=' + New_Kensington.length); Herminie[Herminie.length] = createMarker(new GPoint(-79.72028351,40.26065826),"
H W Good Elementary School
1464 Herminie-wn Rd
Herminie, PA 15637

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("H W Good Elementary School",'Herminie=' + Herminie.length); Jeannette[Jeannette.length] = createMarker(new GPoint(-79.64498138,40.35129929),"
Harrison Park Elementary School
Dell Avenue
Jeannette, PA 15644

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Harrison Park Elementary School",'Jeannette=' + Jeannette.length); Greensburg[Greensburg.length] = createMarker(new GPoint(-79.50129700,40.29380035),"
Harrold Middle School
Rr 6 Box 75
Greensburg, PA 15601

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Harrold Middle School",'Greensburg=' + Greensburg.length); North_Huntingdon[North_Huntingdon.length] = createMarker(new GPoint(-79.77050018,40.36261749),"
Hartford Heights Elementary School
15020 Ardara Rd
North Huntingdon, PA 15642

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Hartford Heights Elementary School",'North_Huntingdon=' + North_Huntingdon.length); Greensburg[Greensburg.length] = createMarker(new GPoint(-79.50129700,40.29380035),"
Hempfield Area Senior High School
Rr 6 Box 77
Greensburg, PA 15601

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hempfield Area Senior High School",'Greensburg=' + Greensburg.length); Murrysville[Murrysville.length] = createMarker(new GPoint(-79.66403961,40.43088913),"
Heritage Elementary School
3240 School Rd
Murrysville, PA 15668

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Heritage Elementary School",'Murrysville=' + Murrysville.length); North_Huntingdon[North_Huntingdon.length] = createMarker(new GPoint(-79.72880554,40.32083893),"
Hillcrest Elementary School
11091 Mockingbird Dr
North Huntingdon, PA 15642

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Hillcrest Elementary School",'North_Huntingdon=' + North_Huntingdon.length); North_Huntingdon[North_Huntingdon.length] = createMarker(new GPoint(-79.72880554,40.32083893),"
Hillcrest Intermediate School
11091 Mockingbird Drive
North Huntingdon, PA 15642

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Hillcrest Intermediate School",'North_Huntingdon=' + North_Huntingdon.length); Jeannette[Jeannette.length] = createMarker(new GPoint(-79.61799622,40.31662369),"
Jeannette Mckee El/ms Elementary School
1000 Lowry Ave
Jeannette, PA 15644

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Jeannette Mckee El/ms Elementary School",'Jeannette=' + Jeannette.length); Jeannette[Jeannette.length] = createMarker(new GPoint(-79.60984039,40.31269836),"
Jeannette Senior High School
200 Florida Avenue
Jeannette, PA 15644

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Jeannette Senior High School",'Jeannette=' + Jeannette.length); Vandergrift[Vandergrift.length] = createMarker(new GPoint(-79.57198334,40.60146332),"
Kiski Area High School
240 Hyde Park Rd
Vandergrift, PA 15690

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Kiski Area High School",'Vandergrift=' + Vandergrift.length); Vandergrift[Vandergrift.length] = createMarker(new GPoint(-79.57198334,40.60146332),"
Kiski Area Ihs Middle School
260 Hyde Park Rd
Vandergrift, PA 15690

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Kiski Area Ihs Middle School",'Vandergrift=' + Vandergrift.length); Latrobe[Latrobe.length] = createMarker(new GPoint(-79.38057709,40.31295013),"
Latrobe Elementary School
1501 Ligonier St
Latrobe, PA 15650

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Latrobe Elementary School",'Latrobe=' + Latrobe.length); Vandergrift[Vandergrift.length] = createMarker(new GPoint(-79.57379913,40.62300110),"
Laurel Point Elementary School
1141 Airport Road
Vandergrift, PA 15690

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Laurel Point Elementary School",'Vandergrift=' + Vandergrift.length); New_Florence[New_Florence.length] = createMarker(new GPoint(-79.08110046,40.39739990),"
Laurel Valley Elementary School
137 Education Lane
New Florence, PA 15944

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Laurel Valley Elementary School",'New_Florence=' + New_Florence.length); New_Florence[New_Florence.length] = createMarker(new GPoint(-79.08110046,40.39739990),"
Laurel Valley Middle School High School
114 Education Lane
New Florence, PA 15944

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Laurel Valley Middle School High School",'New_Florence=' + New_Florence.length); Trafford[Trafford.length] = createMarker(new GPoint(-79.71544647,40.39609146),"
Level Green Elementary School
650 Cypress Ct
Trafford, PA 15085

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Level Green Elementary School",'Trafford=' + Trafford.length); Ligonier[Ligonier.length] = createMarker(new GPoint(-79.24542236,40.25456238),"
Ligonier Valley High School
40 Springer Rd
Ligonier, PA 15658

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Ligonier Valley High School",'Ligonier=' + Ligonier.length); Ligonier[Ligonier.length] = createMarker(new GPoint(-79.22646332,40.24300003),"
Ligonier Valley Middle School
536 Bell Street
Ligonier, PA 15658

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Ligonier Valley Middle School",'Ligonier=' + Ligonier.length); Latrobe[Latrobe.length] = createMarker(new GPoint(-79.36549377,40.31454849),"
Loyalhanna Elementary School
314 Loyalhanna School Rd
Latrobe, PA 15650

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Loyalhanna Elementary School",'Latrobe=' + Latrobe.length); Export[Export.length] = createMarker(new GPoint(-79.58989716,40.44359970),"
Mamont Elementary School
230 Mamont Dr
Export, PA 15632

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mamont Elementary School",'Export=' + Export.length); New_Kensington[New_Kensington.length] = createMarker(new GPoint(-79.74511719,40.56313705),"
Martin School
1800 7th St
New Kensington, PA 15068

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Martin School",'New_Kensington=' + New_Kensington.length); Greensburg[Greensburg.length] = createMarker(new GPoint(-79.54587555,40.32741165),"
Maxwell Elementary School
1101 Old Salem Rd
Greensburg, PA 15601

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Maxwell Elementary School",'Greensburg=' + Greensburg.length); Claridge[Claridge.length] = createMarker(new GPoint(-79.61750031,40.36640167),"
Mccullough Elementary School
Po Box 369
Claridge, PA 15623

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mccullough Elementary School",'Claridge=' + Claridge.length); Ligonier[Ligonier.length] = createMarker(new GPoint(-79.22646332,40.24300003),"
Mellon Elementary School
559 Bell Street
Ligonier, PA 15658

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mellon Elementary School",'Ligonier=' + Ligonier.length); Ruffsdale[Ruffsdale.length] = createMarker(new GPoint(-79.63069916,40.16540146),"
Mendon Elementary School
164 Route 31
Ruffsdale, PA 15679

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mendon Elementary School",'Ruffsdale=' + Ruffsdale.length); New_Alexandria[New_Alexandria.length] = createMarker(new GPoint(-79.39520264,40.40150070),"
Metzgar Elementary School
Rr 3 Box 379
New Alexandria, PA 15670

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Metzgar Elementary School",'New_Alexandria=' + New_Alexandria.length); Monessen[Monessen.length] = createMarker(new GPoint(-79.88719940,40.15050125),"
Monessen El Center
1275 Rostraver St
Monessen, PA 15062

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Monessen El Center",'Monessen=' + Monessen.length); Monessen[Monessen.length] = createMarker(new GPoint(-79.87187958,40.14101028),"
Monessen Middle School
1245 State Rd
Monessen, PA 15062

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Monessen Middle School",'Monessen=' + Monessen.length); Monessen[Monessen.length] = createMarker(new GPoint(-79.87187958,40.14101028),"
Monessen Senior High School
1245 State Rd
Monessen, PA 15062

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Monessen Senior High School",'Monessen=' + Monessen.length); Mount_Pleasant[Mount_Pleasant.length] = createMarker(new GPoint(-79.53524017,40.13098145),"
Mount Pleasant Area Junior Senior High School
Rr 4 Box 2222
Mount Pleasant, PA 15666

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Mount Pleasant Area Junior Senior High School",'Mount_Pleasant=' + Mount_Pleasant.length); Greensburg[Greensburg.length] = createMarker(new GPoint(-79.46448517,40.29569244),"
Mountain View Elementary School
1010 Mountain View Dr
Greensburg, PA 15601

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mountain View Elementary School",'Greensburg=' + Greensburg.length); New_Derry[New_Derry.length] = createMarker(new GPoint(-79.33039856,40.35100174),"
New Derry Elementary School
314 Pittsburgh St
New Derry, PA 15671

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("New Derry Elementary School",'New_Derry=' + New_Derry.length); Murrysville[Murrysville.length] = createMarker(new GPoint(-79.66462708,40.42923737),"
Newlonsburg Elementary School
3170 School Rd
Murrysville, PA 15668

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Newlonsburg Elementary School",'Murrysville=' + Murrysville.length); Greensburg[Greensburg.length] = createMarker(new GPoint(-79.54100037,40.32285309),"
Nicely Elementary School
55 Mclaughlin Dr
Greensburg, PA 15601

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Nicely Elementary School",'Greensburg=' + Greensburg.length); Apollo[Apollo.length] = createMarker(new GPoint(-79.59202576,40.54120636),"
North Washington Elementary School
4350 Route 66
Apollo, PA 15613

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("North Washington Elementary School",'Apollo=' + Apollo.length); New_Kensington[New_Kensington.length] = createMarker(new GPoint(-79.75514221,40.56542587),"
Northern Westmoreland Avts
705 Stevenson Blvd
New Kensington, PA 15068

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Northern Westmoreland Avts",'New_Kensington=' + New_Kensington.length); Mount_Pleasant[Mount_Pleasant.length] = createMarker(new GPoint(-79.49835968,40.20478821),"
Norvelt Elementary School
Rr 4 Box 2222
Mount Pleasant, PA 15666

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Norvelt Elementary School",'Mount_Pleasant=' + Mount_Pleasant.length); North_Huntingdon[North_Huntingdon.length] = createMarker(new GPoint(-79.71319580,40.32602310),"
Norwin Middle School
10870 Mockingbird Dr
North Huntingdon, PA 15642

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Norwin Middle School",'North_Huntingdon=' + North_Huntingdon.length); North_Huntingdon[North_Huntingdon.length] = createMarker(new GPoint(-79.72350311,40.32552719),"
Norwin Middle School West
10870 Mockingbird Dr
North Huntingdon, PA 15642

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Norwin Middle School West",'North_Huntingdon=' + North_Huntingdon.length); North_Huntingdon[North_Huntingdon.length] = createMarker(new GPoint(-79.72641754,40.32542801),"
Norwin Senior High School
251 Mcmahon Dr
North Huntingdon, PA 15642

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Norwin Senior High School",'North_Huntingdon=' + North_Huntingdon.length); Claridge[Claridge.length] = createMarker(new GPoint(-79.61750031,40.36640167),"
Penn Middle School
Po Box 399
Claridge, PA 15623

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Penn Middle School",'Claridge=' + Claridge.length); Harrison_City[Harrison_City.length] = createMarker(new GPoint(-79.65550232,40.36209869),"
Penn Trafford High School
Po Box 530
Harrison City, PA 15636

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Penn Trafford High School",'Harrison_City=' + Harrison_City.length); Irwin[Irwin.length] = createMarker(new GPoint(-79.69783020,40.32729340),"
Pennsylvania Avenue Elementary School
1015 Pennsylvania Ave
Irwin, PA 15642

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Pennsylvania Avenue Elementary School",'Irwin=' + Irwin.length); Mount_Pleasant[Mount_Pleasant.length] = createMarker(new GPoint(-79.54872131,40.14994049),"
Ramsay Elementary School
300 Eagle Street
Mount Pleasant, PA 15666

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Ramsay Elementary School",'Mount_Pleasant=' + Mount_Pleasant.length); Latrobe[Latrobe.length] = createMarker(new GPoint(-79.39319611,40.30603027),"
Ridgeview Academy Charter School
1133 Village Way
Latrobe, PA 15650

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Ridgeview Academy Charter School",'Latrobe=' + Latrobe.length); Belle_Vernon[Belle_Vernon.length] = createMarker(new GPoint(-79.81464386,40.17874908),"
Rostraver Elementary School
300 Crest Ave
Belle Vernon, PA 15012

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Rostraver Elementary School",'Belle_Vernon=' + Belle_Vernon.length); Belle_Vernon[Belle_Vernon.length] = createMarker(new GPoint(-79.81166077,40.18002319),"
Rostraver Middle School
250 Crest Ave
Belle Vernon, PA 15012

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Rostraver Middle School",'Belle_Vernon=' + Belle_Vernon.length); Ruffs_Dale[Ruffs_Dale.length] = createMarker(new GPoint(-79.60729980,40.17269897),"
Ruffsdale Elementary School
Rr 1 Box 101
Ruffs Dale, PA 15679

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Ruffsdale Elementary School",'Ruffs_Dale=' + Ruffs_Dale.length); Mount_Pleasant[Mount_Pleasant.length] = createMarker(new GPoint(-79.53524017,40.13098145),"
Rumbaugh Elementary School
Rr 4 Box 1200
Mount Pleasant, PA 15666

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Rumbaugh Elementary School",'Mount_Pleasant=' + Mount_Pleasant.length); Scottdale[Scottdale.length] = createMarker(new GPoint(-79.58724213,40.10599899),"
Scottdale Elementary School
North Chestnut Street
Scottdale, PA 15683

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Scottdale Elementary School",'Scottdale=' + Scottdale.length); North_Huntingdon[North_Huntingdon.length] = createMarker(new GPoint(-79.68569183,40.32719040),"
Scull Elementary School
780 Brush Hill Rd
North Huntingdon, PA 15642

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Scull Elementary School",'North_Huntingdon=' + North_Huntingdon.length); North_Huntingdon[North_Huntingdon.length] = createMarker(new GPoint(-79.70291138,40.33835602),"
Shaw Elementary School
1219 Morris Avenue
North Huntingdon, PA 15642

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Shaw Elementary School",'North_Huntingdon=' + North_Huntingdon.length); North_Huntingdon[North_Huntingdon.length] = createMarker(new GPoint(-79.70291138,40.33835602),"
Sheridan Terrace Elementary School
1219 Morris Avenue
North Huntingdon, PA 15642

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Sheridan Terrace Elementary School",'North_Huntingdon=' + North_Huntingdon.length); Murrysville[Murrysville.length] = createMarker(new GPoint(-79.66587067,40.45621490),"
Sloan Elementary School
4121 Sardis Rd
Murrysville, PA 15668

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Sloan Elementary School",'Murrysville=' + Murrysville.length); Torrance[Torrance.length] = createMarker(new GPoint(-79.22290039,40.41690063),"
South West Secure Trtmnt Center
Po Box 94
Torrance, PA 15779

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("South West Secure Trtmnt Center",'Torrance=' + Torrance.length); Alverton[Alverton.length] = createMarker(new GPoint(-79.59767300,40.13631200),"
Southmoreland Junior High School
Po Box B
Alverton, PA 15612

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Southmoreland Junior High School",'Alverton=' + Alverton.length); Alverton[Alverton.length] = createMarker(new GPoint(-79.56300354,40.12659836),"
Southmoreland Senior High School
Po Box A
Alverton, PA 15612

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Southmoreland Senior High School",'Alverton=' + Alverton.length); Torrance[Torrance.length] = createMarker(new GPoint(-79.22395900,40.41728500),"
Southwestern Secure Trtmnt Center
Po Box 94
Torrance, PA 15779

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Southwestern Secure Trtmnt Center",'Torrance=' + Torrance.length); New_Stanton[New_Stanton.length] = createMarker(new GPoint(-79.60475922,40.22720337),"
Stanwood Elementary School
255 Arona Rd
New Stanton, PA 15672

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Stanwood Elementary School",'New_Stanton=' + New_Stanton.length); Lower_Burrell[Lower_Burrell.length] = createMarker(new GPoint(-79.72523499,40.58946609),"
Stewart Elementary School
2880 Leechburg Rd
Lower Burrell, PA 15068

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Stewart Elementary School",'Lower_Burrell=' + Lower_Burrell.length); North_Huntingdon[North_Huntingdon.length] = createMarker(new GPoint(-79.76564789,40.34511948),"
Stewartsville Elementary School
101 Carpenter Ln
North Huntingdon, PA 15642

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Stewartsville Elementary School",'North_Huntingdon=' + North_Huntingdon.length); Irwin[Irwin.length] = createMarker(new GPoint(-79.69239807,40.36852264),"
Sunrise Elementary School
300 Sunrise Dr
Irwin, PA 15642

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Sunrise Elementary School",'Irwin=' + Irwin.length); North_Huntingdon[North_Huntingdon.length] = createMarker(new GPoint(-79.74072266,40.30602646),"
Sunset Valley Elementary School
11605 Dickens Drive
North Huntingdon, PA 15642

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Sunset Valley Elementary School",'North_Huntingdon=' + North_Huntingdon.length); Trafford[Trafford.length] = createMarker(new GPoint(-79.76232147,40.38183594),"
Trafford Elementary School
100 E Brinton Ave
Trafford, PA 15085

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Trafford Elementary School",'Trafford=' + Trafford.length); Trafford[Trafford.length] = createMarker(new GPoint(-79.76232147,40.38183594),"
Trafford Middle School
100 E Brinton Ave
Trafford, PA 15085

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Trafford Middle School",'Trafford=' + Trafford.length); Arnold[Arnold.length] = createMarker(new GPoint(-79.76004791,40.57689285),"
Valley Middle School
1701 Alcoa Dr
Arnold, PA 15068

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Valley Middle School",'Arnold=' + Arnold.length); New_Kensington[New_Kensington.length] = createMarker(new GPoint(-79.75514984,40.56539154),"
Valley Senior High School
703 Stevenson Blvd
New Kensington, PA 15068

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Valley Senior High School",'New_Kensington=' + New_Kensington.length); Vandergrift[Vandergrift.length] = createMarker(new GPoint(-79.56506348,40.59910202),"
Vandergrift Elementary School
420 Franklin Ave
Vandergrift, PA 15690

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Vandergrift Elementary School",'Vandergrift=' + Vandergrift.length); Apollo[Apollo.length] = createMarker(new GPoint(-79.57987976,40.56579590),"
Washington Elementary School
180 Route 66
Apollo, PA 15613

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Washington Elementary School",'Apollo=' + Apollo.length); Greensburg[Greensburg.length] = createMarker(new GPoint(-79.51655579,40.27253342),"
Wendover Middle School
425 Arthur Drive
Greensburg, PA 15601

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Wendover Middle School",'Greensburg=' + Greensburg.length); Irwin[Irwin.length] = createMarker(new GPoint(-79.70143127,40.32403946),"
West Hempfield Elementary School
Rr 3 Wendel Rd
Irwin, PA 15642

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("West Hempfield Elementary School",'Irwin=' + Irwin.length); Irwin[Irwin.length] = createMarker(new GPoint(-79.67665863,40.29404068),"
West Hempfield Middle School
Northumberland Road
Irwin, PA 15642

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("West Hempfield Middle School",'Irwin=' + Irwin.length); West_Newton[West_Newton.length] = createMarker(new GPoint(-79.76344299,40.20192337),"
West Newton Elementary School
1208 Vine St
West Newton, PA 15089

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("West Newton Elementary School",'West_Newton=' + West_Newton.length); Greensburg[Greensburg.length] = createMarker(new GPoint(-79.51254272,40.27230072),"
West Point Elementary School
St Andrews Drive
Greensburg, PA 15601

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("West Point Elementary School",'Greensburg=' + Greensburg.length); Ruffsdale[Ruffsdale.length] = createMarker(new GPoint(-79.63809967,40.15610123),"
Yough Middle School
171 Route 31
Ruffsdale, PA 15679

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Yough Middle School",'Ruffsdale=' + Ruffsdale.length); Herminie[Herminie.length] = createMarker(new GPoint(-79.73045349,40.25951004),"
Yough Senior High School
919 Lowber Rd
Herminie, PA 15637

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Yough Senior High School",'Herminie=' + Herminie.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(Alverton); map.removeOverlays(Apollo); map.removeOverlays(Arnold); map.removeOverlays(Belle_Vernon); map.removeOverlays(Bradenville); map.removeOverlays(Claridge); map.removeOverlays(Derry); map.removeOverlays(Export); map.removeOverlays(Greensburg); map.removeOverlays(Harrison_City); map.removeOverlays(Herminie); map.removeOverlays(Irwin); map.removeOverlays(Jeannette); map.removeOverlays(Jones_Mills); map.removeOverlays(Latrobe); map.removeOverlays(Leechburg); map.removeOverlays(Ligonier); map.removeOverlays(Lower_Burrell); map.removeOverlays(Monessen); map.removeOverlays(Mount_Pleasant); map.removeOverlays(Murrysville); map.removeOverlays(New_Alexandria); map.removeOverlays(New_Derry); map.removeOverlays(New_Florence); map.removeOverlays(New_Kensington); map.removeOverlays(New_Stanton); map.removeOverlays(North_Huntingdon); map.removeOverlays(Ruffs_Dale); map.removeOverlays(Ruffsdale); map.removeOverlays(Salina); map.removeOverlays(Scottdale); map.removeOverlays(Torrance); map.removeOverlays(Trafford); map.removeOverlays(Vandergrift); map.removeOverlays(West_Newton); 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(Leechburg);map.removeOverlays(Alverton); map.removeOverlays(Apollo); map.removeOverlays(Arnold); map.removeOverlays(Belle_Vernon); map.removeOverlays(Bradenville); map.removeOverlays(Claridge); map.removeOverlays(Derry); map.removeOverlays(Export); map.removeOverlays(Greensburg); map.removeOverlays(Harrison_City); map.removeOverlays(Herminie); map.removeOverlays(Irwin); map.removeOverlays(Jeannette); map.removeOverlays(Jones_Mills); map.removeOverlays(Latrobe); map.removeOverlays(Leechburg); map.removeOverlays(Ligonier); map.removeOverlays(Lower_Burrell); map.removeOverlays(Monessen); map.removeOverlays(Mount_Pleasant); map.removeOverlays(Murrysville); map.removeOverlays(New_Alexandria); map.removeOverlays(New_Derry); map.removeOverlays(New_Florence); map.removeOverlays(New_Kensington); map.removeOverlays(New_Stanton); map.removeOverlays(North_Huntingdon); map.removeOverlays(Ruffs_Dale); map.removeOverlays(Ruffsdale); map.removeOverlays(Salina); map.removeOverlays(Scottdale); map.removeOverlays(Torrance); map.removeOverlays(Trafford); map.removeOverlays(Vandergrift); map.removeOverlays(West_Newton); map.addOverlays(Alverton); centerByArray(Alverton, false, false); cntMarker += Alverton.length; map.addOverlays(Apollo); centerByArray(Apollo, false, false); cntMarker += Apollo.length; map.addOverlays(Arnold); centerByArray(Arnold, false, false); cntMarker += Arnold.length; map.addOverlays(Belle_Vernon); centerByArray(Belle_Vernon, false, false); cntMarker += Belle_Vernon.length; map.addOverlays(Bradenville); centerByArray(Bradenville, false, false); cntMarker += Bradenville.length; map.addOverlays(Claridge); centerByArray(Claridge, false, false); cntMarker += Claridge.length; map.addOverlays(Derry); centerByArray(Derry, false, false); cntMarker += Derry.length; map.addOverlays(Export); centerByArray(Export, false, false); cntMarker += Export.length; map.addOverlays(Greensburg); centerByArray(Greensburg, false, false); cntMarker += Greensburg.length; map.addOverlays(Harrison_City); centerByArray(Harrison_City, false, false); cntMarker += Harrison_City.length; map.addOverlays(Herminie); centerByArray(Herminie, false, false); cntMarker += Herminie.length; map.addOverlays(Irwin); centerByArray(Irwin, false, false); cntMarker += Irwin.length; map.addOverlays(Jeannette); centerByArray(Jeannette, false, false); cntMarker += Jeannette.length; map.addOverlays(Jones_Mills); centerByArray(Jones_Mills, false, false); cntMarker += Jones_Mills.length; map.addOverlays(Latrobe); centerByArray(Latrobe, false, false); cntMarker += Latrobe.length; map.addOverlays(Leechburg); centerByArray(Leechburg, false, false); cntMarker += Leechburg.length; map.addOverlays(Ligonier); centerByArray(Ligonier, false, false); cntMarker += Ligonier.length; map.addOverlays(Lower_Burrell); centerByArray(Lower_Burrell, false, false); cntMarker += Lower_Burrell.length; map.addOverlays(Monessen); centerByArray(Monessen, false, false); cntMarker += Monessen.length; map.addOverlays(Mount_Pleasant); centerByArray(Mount_Pleasant, false, false); cntMarker += Mount_Pleasant.length; map.addOverlays(Murrysville); centerByArray(Murrysville, false, false); cntMarker += Murrysville.length; map.addOverlays(New_Alexandria); centerByArray(New_Alexandria, false, false); cntMarker += New_Alexandria.length; map.addOverlays(New_Derry); centerByArray(New_Derry, false, false); cntMarker += New_Derry.length; map.addOverlays(New_Florence); centerByArray(New_Florence, false, false); cntMarker += New_Florence.length; map.addOverlays(New_Kensington); centerByArray(New_Kensington, false, false); cntMarker += New_Kensington.length; map.addOverlays(New_Stanton); centerByArray(New_Stanton, false, false); cntMarker += New_Stanton.length; map.addOverlays(North_Huntingdon); centerByArray(North_Huntingdon, false, false); cntMarker += North_Huntingdon.length; map.addOverlays(Ruffs_Dale); centerByArray(Ruffs_Dale, false, false); cntMarker += Ruffs_Dale.length; map.addOverlays(Ruffsdale); centerByArray(Ruffsdale, false, false); cntMarker += Ruffsdale.length; map.addOverlays(Salina); centerByArray(Salina, false, false); cntMarker += Salina.length; map.addOverlays(Scottdale); centerByArray(Scottdale, false, false); cntMarker += Scottdale.length; map.addOverlays(Torrance); centerByArray(Torrance, false, false); cntMarker += Torrance.length; map.addOverlays(Trafford); centerByArray(Trafford, false, false); cntMarker += Trafford.length; map.addOverlays(Vandergrift); centerByArray(Vandergrift, false, false); cntMarker += Vandergrift.length; map.addOverlays(West_Newton); centerByArray(West_Newton, false, false); cntMarker += West_Newton.length; centerByArray(Leechburg,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'); } }