function addMarkers(){
mySelect = document.getElementById('selection');
Forty_Fort = [];Erdenheim = [];Philadelphia = [];Pittsburgh = [];Wyomissing = [];York = [];Newtown = [];Sharon = [];Meadville = [];Butler = [];Johnstown = [];Indiana = [];New_Kensington = [];Summerdale = [];Southampton = [];Broomall = [];Easton = [];Monaca = [];Lancaster = [];Media = [];Monessen = [];Du_Bois = [];Erie = [];New_Castle = [];Bryn_Mawr = [];Harrisburg = [];Middletown = [];Mechanicsburg = [];Monroeville = [];Scranton = [];La_Plume = [];North_Wales = [];Uniontown = [];Schnecksville = [];Center_Valley = [];Allentown = [];Nanticoke = [];Jenkintown = [];Pottsville = [];Mahanoy_City = [];Blue_Bell = [];Pulaski = [];Lower_Burrell = [];Williamsport = [];Bethlehem = [];Reading = [];Bristol = [];Washington = [];West_Mifflin = [];Oakdale = [];Upper_Darby = [];State_College = [];Falls_Creek = [];Greensburg = [];Titusville = [];Wayne = [];Youngwood = [];mySelect.options[mySelect.options.length] = new Option("Allentown Schools",'all=Allentown');
mySelect.options[mySelect.options.length] = new Option("Bethlehem Schools",'all=Bethlehem');
mySelect.options[mySelect.options.length] = new Option("Blue Bell Schools",'all=Blue_Bell');
mySelect.options[mySelect.options.length] = new Option("Bristol Schools",'all=Bristol');
mySelect.options[mySelect.options.length] = new Option("Broomall Schools",'all=Broomall');
mySelect.options[mySelect.options.length] = new Option("Bryn Mawr Schools",'all=Bryn_Mawr');
mySelect.options[mySelect.options.length] = new Option("Butler Schools",'all=Butler');
mySelect.options[mySelect.options.length] = new Option("Center Valley Schools",'all=Center_Valley');
mySelect.options[mySelect.options.length] = new Option("Du Bois Schools",'all=Du_Bois');
mySelect.options[mySelect.options.length] = new Option("Easton Schools",'all=Easton');
mySelect.options[mySelect.options.length] = new Option("Erdenheim Schools",'all=Erdenheim');
mySelect.options[mySelect.options.length] = new Option("Erie Schools",'all=Erie');
mySelect.options[mySelect.options.length] = new Option("Falls Creek Schools",'all=Falls_Creek');
mySelect.options[mySelect.options.length] = new Option("Forty Fort Schools",'all=Forty_Fort');
mySelect.options[mySelect.options.length] = new Option("Greensburg Schools",'all=Greensburg');
mySelect.options[mySelect.options.length] = new Option("Harrisburg Schools",'all=Harrisburg');
mySelect.options[mySelect.options.length] = new Option("Indiana Schools",'all=Indiana');
mySelect.options[mySelect.options.length] = new Option("Jenkintown Schools",'all=Jenkintown');
mySelect.options[mySelect.options.length] = new Option("Johnstown Schools",'all=Johnstown');
mySelect.options[mySelect.options.length] = new Option("La Plume Schools",'all=La_Plume');
mySelect.options[mySelect.options.length] = new Option("Lancaster Schools",'all=Lancaster');
mySelect.options[mySelect.options.length] = new Option("Lower Burrell Schools",'all=Lower_Burrell');
mySelect.options[mySelect.options.length] = new Option("Mahanoy City Schools",'all=Mahanoy_City');
mySelect.options[mySelect.options.length] = new Option("Meadville Schools",'all=Meadville');
mySelect.options[mySelect.options.length] = new Option("Mechanicsburg Schools",'all=Mechanicsburg');
mySelect.options[mySelect.options.length] = new Option("Media Schools",'all=Media');
mySelect.options[mySelect.options.length] = new Option("Middletown Schools",'all=Middletown');
mySelect.options[mySelect.options.length] = new Option("Monaca Schools",'all=Monaca');
mySelect.options[mySelect.options.length] = new Option("Monessen Schools",'all=Monessen');
mySelect.options[mySelect.options.length] = new Option("Monroeville Schools",'all=Monroeville');
mySelect.options[mySelect.options.length] = new Option("Nanticoke Schools",'all=Nanticoke');
mySelect.options[mySelect.options.length] = new Option("New Castle Schools",'all=New_Castle');
mySelect.options[mySelect.options.length] = new Option("New Kensington Schools",'all=New_Kensington');
mySelect.options[mySelect.options.length] = new Option("Newtown Schools",'all=Newtown');
mySelect.options[mySelect.options.length] = new Option("North Wales Schools",'all=North_Wales');
mySelect.options[mySelect.options.length] = new Option("Oakdale Schools",'all=Oakdale');
mySelect.options[mySelect.options.length] = new Option("Philadelphia Schools",'all=Philadelphia');
mySelect.options[mySelect.options.length] = new Option("Pittsburgh Schools",'all=Pittsburgh');
mySelect.options[mySelect.options.length] = new Option("Pottsville Schools",'all=Pottsville');
mySelect.options[mySelect.options.length] = new Option("Pulaski Schools",'all=Pulaski');
mySelect.options[mySelect.options.length] = new Option("Reading Schools",'all=Reading');
mySelect.options[mySelect.options.length] = new Option("Schnecksville Schools",'all=Schnecksville');
mySelect.options[mySelect.options.length] = new Option("Scranton Schools",'all=Scranton');
mySelect.options[mySelect.options.length] = new Option("Sharon Schools",'all=Sharon');
mySelect.options[mySelect.options.length] = new Option("Southampton Schools",'all=Southampton');
mySelect.options[mySelect.options.length] = new Option("State College Schools",'all=State_College');
mySelect.options[mySelect.options.length] = new Option("Summerdale Schools",'all=Summerdale');
mySelect.options[mySelect.options.length] = new Option("Titusville Schools",'all=Titusville');
mySelect.options[mySelect.options.length] = new Option("Uniontown Schools",'all=Uniontown');
mySelect.options[mySelect.options.length] = new Option("Upper Darby Schools",'all=Upper_Darby');
mySelect.options[mySelect.options.length] = new Option("Washington Schools",'all=Washington');
mySelect.options[mySelect.options.length] = new Option("Wayne Schools",'all=Wayne');
mySelect.options[mySelect.options.length] = new Option("West Mifflin Schools",'all=West_Mifflin');
mySelect.options[mySelect.options.length] = new Option("Williamsport Schools",'all=Williamsport');
mySelect.options[mySelect.options.length] = new Option("Wyomissing Schools",'all=Wyomissing');
mySelect.options[mySelect.options.length] = new Option("York Schools",'all=York');
mySelect.options[mySelect.options.length] = new Option("Youngwood Schools",'all=Youngwood');
mySelect.options[mySelect.options.length] = new Option("---------------------------",'');
var tmpLatLng=0;
var tmpLen=0;
tmpLatLng=new GLatLng(41.28217999999999676,-75.8824400000000025);
tmpLen=Forty_Fort.length;
Forty_Fort[tmpLen] = createMarker(tmpLatLng,"
",iconRd);
Forty_Fort[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Allied Medical And Technical Institute",'Forty_Fort=' + Forty_Fort.length);
tmpLatLng=new GLatLng(40.09014899999999670,-75.2102519999999969);
tmpLen=Erdenheim.length;
Erdenheim[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Erdenheim[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Antonelli Institute",'Erdenheim=' + Erdenheim.length);
tmpLatLng=new GLatLng(39.95130900000000195,-75.1675479999999964);
tmpLen=Philadelphia.length;
Philadelphia[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Philadelphia[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Art Institute Of Philadelphia",'Philadelphia=' + Philadelphia.length);
tmpLatLng=new GLatLng(40.43771399999999971,-79.9990569999999934);
tmpLen=Pittsburgh.length;
Pittsburgh[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Pittsburgh[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Art Institute Of Pittsburgh",'Pittsburgh=' + Pittsburgh.length);
tmpLatLng=new GLatLng(40.34257099999999951,-75.9761160000000046);
tmpLen=Wyomissing.length;
Wyomissing[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Wyomissing[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Berks Technical Institute",'Wyomissing=' + Wyomissing.length);
tmpLatLng=new GLatLng(40.44267899999999826,-79.9947020000000037);
tmpLen=Pittsburgh.length;
Pittsburgh[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Pittsburgh[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Bradford School",'Pittsburgh=' + Pittsburgh.length);
tmpLatLng=new GLatLng(39.99215199999999725,-76.6648200000000059);
tmpLen=York.length;
York[tmpLen] = createMarker(tmpLatLng,"",iconRd);
York[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Bradley Academy For Visual Arts",'York=' + York.length);
tmpLatLng=new GLatLng(40.24152399999999829,-74.9648090000000024);
tmpLen=Newtown.length;
Newtown[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Newtown[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Bucks County Community College",'Newtown=' + Newtown.length);
tmpLatLng=new GLatLng(41.23786499999999932,-80.4799440000000032);
tmpLen=Sharon.length;
Sharon[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Sharon[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Business Institute Of Pennsylvania",'Sharon=' + Sharon.length);
tmpLatLng=new GLatLng(41.63401199999999846,-80.1408720000000016);
tmpLen=Meadville.length;
Meadville[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Meadville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Business Institute Of Pennsylvania-titusville",'Meadville=' + Meadville.length);
tmpLatLng=new GLatLng(40.86104999999999876,-79.8952639999999973);
tmpLen=Butler.length;
Butler[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Butler[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Butler County Community College",'Butler=' + Butler.length);
tmpLatLng=new GLatLng(40.30319000000000073,-78.9107269999999942);
tmpLen=Johnstown.length;
Johnstown[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Johnstown[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Cambria Rowe Business College",'Johnstown=' + Johnstown.length);
tmpLatLng=new GLatLng(40.61761899999999769,-79.1657900000000012);
tmpLen=Indiana.length;
Indiana[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Indiana[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Cambria Rowe Business College",'Indiana=' + Indiana.length);
tmpLatLng=new GLatLng(40.56613200000000318,-79.7653739999999942);
tmpLen=New_Kensington.length;
New_Kensington[tmpLen] = createMarker(tmpLatLng,"",iconRd);
New_Kensington[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Career Training Academy",'New_Kensington=' + New_Kensington.length);
tmpLatLng=new GLatLng(40.30913900000000182,-76.9276959999999974);
tmpLen=Summerdale.length;
Summerdale[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Summerdale[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Central Pennsylvania College",'Summerdale=' + Summerdale.length);
tmpLatLng=new GLatLng(40.17647600000000096,-75.0476809999999971);
tmpLen=Southampton.length;
Southampton[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Southampton[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Chi Institute",'Southampton=' + Southampton.length);
tmpLatLng=new GLatLng(39.96199500000000171,-75.3567089999999950);
tmpLen=Broomall.length;
Broomall[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Broomall[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Chi Institute-broomall",'Broomall=' + Broomall.length);
tmpLatLng=new GLatLng(40.69316299999999841,-75.2106380000000029);
tmpLen=Easton.length;
Easton[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Easton[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Churchman Business School",'Easton=' + Easton.length);
tmpLatLng=new GLatLng(40.30257399999999989,-78.9459480000000013);
tmpLen=Johnstown.length;
Johnstown[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Johnstown[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Commonwealth Technical Institute",'Johnstown=' + Johnstown.length);
tmpLatLng=new GLatLng(40.45076900000000108,-80.0184749999999951);
tmpLen=Pittsburgh.length;
Pittsburgh[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Pittsburgh[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Community College Of Allegheny County",'Pittsburgh=' + Pittsburgh.length);
tmpLatLng=new GLatLng(40.65629200000000054,-80.3092350000000010);
tmpLen=Monaca.length;
Monaca[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Monaca[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Community College Of Beaver County",'Monaca=' + Monaca.length);
tmpLatLng=new GLatLng(39.96298999999999779,-75.1662510000000025);
tmpLen=Philadelphia.length;
Philadelphia[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Philadelphia[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Community College Of Philadelphia",'Philadelphia=' + Philadelphia.length);
tmpLatLng=new GLatLng(39.98502799999999979,-76.7579920000000015);
tmpLen=York.length;
York[tmpLen] = createMarker(tmpLatLng,"",iconRd);
York[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Consolidated School Of Business",'York=' + York.length);
tmpLatLng=new GLatLng(40.04229200000000332,-76.3620480000000014);
tmpLen=Lancaster.length;
Lancaster[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Lancaster[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Consolidated School Of Business",'Lancaster=' + Lancaster.length);
tmpLatLng=new GLatLng(40.41036900000000287,-80.0155749999999983);
tmpLen=Pittsburgh.length;
Pittsburgh[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Pittsburgh[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Dean Institute Of Technology",'Pittsburgh=' + Pittsburgh.length);
tmpLatLng=new GLatLng(39.96889800000000292,-75.3964419999999933);
tmpLen=Media.length;
Media[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Media[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Delaware County Community College",'Media=' + Media.length);
tmpLatLng=new GLatLng(40.16179499999999791,-79.8883490000000051);
tmpLen=Monessen.length;
Monessen[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Monessen[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Douglas Education Center",'Monessen=' + Monessen.length);
tmpLatLng=new GLatLng(41.12450199999999966,-78.7565799999999995);
tmpLen=Du_Bois.length;
Du_Bois[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Du_Bois[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Du Bois Business College",'Du_Bois=' + Du_Bois.length);
tmpLatLng=new GLatLng(42.12458099999999916,-80.0884080000000011);
tmpLen=Erie.length;
Erie[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Erie[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Erie Business Center",'Erie=' + Erie.length);
tmpLatLng=new GLatLng(40.99969999999999714,-80.3500999999999976);
tmpLen=New_Castle.length;
New_Castle[tmpLen] = createMarker(tmpLatLng,"",iconRd);
New_Castle[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Erie Business Center-south",'New_Castle=' + New_Castle.length);
tmpLatLng=new GLatLng(42.11267999999999744,-79.9746910000000070);
tmpLen=Erie.length;
Erie[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Erie[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Erie Institute Of Technology (eit)",'Erie=' + Erie.length);
tmpLatLng=new GLatLng(42.07354699999999780,-80.0936569999999932);
tmpLen=Erie.length;
Erie[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Erie[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Erie Institute Of Technology Inc",'Erie=' + Erie.length);
tmpLatLng=new GLatLng(40.44102900000000033,-80.0036949999999933);
tmpLen=Pittsburgh.length;
Pittsburgh[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Pittsburgh[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Everest Institute-pittsburgh",'Pittsburgh=' + Pittsburgh.length);
tmpLatLng=new GLatLng(40.02227400000000301,-75.3138540000000062);
tmpLen=Bryn_Mawr.length;
Bryn_Mawr[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Bryn_Mawr[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Harcum College",'Bryn_Mawr=' + Bryn_Mawr.length);
tmpLatLng=new GLatLng(40.29076599999999786,-76.8850089999999966);
tmpLen=Harrisburg.length;
Harrisburg[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Harrisburg[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Harrisburg Area Community College-harrisburg",'Harrisburg=' + Harrisburg.length);
tmpLatLng=new GLatLng(40.19912899999999922,-76.7566690000000022);
tmpLen=Middletown.length;
Middletown[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Middletown[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Harrisburg Institute Of Trade And Technology",'Middletown=' + Middletown.length);
tmpLatLng=new GLatLng(39.95174999999999698,-75.1585960000000028);
tmpLen=Philadelphia.length;
Philadelphia[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Philadelphia[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Hussian School Of Art",'Philadelphia=' + Philadelphia.length);
tmpLatLng=new GLatLng(40.44236899999999934,-79.9991749999999939);
tmpLen=Pittsburgh.length;
Pittsburgh[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Pittsburgh[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Icm School Of Business And Medical Careers",'Pittsburgh=' + Pittsburgh.length);
tmpLatLng=new GLatLng(40.20383199999999845,-76.9586209999999937);
tmpLen=Mechanicsburg.length;
Mechanicsburg[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Mechanicsburg[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Itt Technical Institute-mechanicsburg",'Mechanicsburg=' + Mechanicsburg.length);
tmpLatLng=new GLatLng(40.43142699999999933,-79.7919969999999949);
tmpLen=Monroeville.length;
Monroeville[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Monroeville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Itt Technical Institute-monroeville",'Monroeville=' + Monroeville.length);
tmpLatLng=new GLatLng(40.42445200000000227,-80.0380300000000062);
tmpLen=Pittsburgh.length;
Pittsburgh[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Pittsburgh[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Itt Technical Institute-pittsburgh",'Pittsburgh=' + Pittsburgh.length);
tmpLatLng=new GLatLng(39.93550599999999661,-75.1673439999999999);
tmpLen=Philadelphia.length;
Philadelphia[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Philadelphia[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Jna Institute Of Culinary Arts",'Philadelphia=' + Philadelphia.length);
tmpLatLng=new GLatLng(41.44939200000000312,-75.6395330000000001);
tmpLen=Scranton.length;
Scranton[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Scranton[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Johnson College",'Scranton=' + Scranton.length);
tmpLatLng=new GLatLng(40.26207899999999995,-76.7907730000000015);
tmpLen=Harrisburg.length;
Harrisburg[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Harrisburg[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Kaplan Career Institute",'Harrisburg=' + Harrisburg.length);
tmpLatLng=new GLatLng(41.55660000000000309,-75.7540999999999939);
tmpLen=La_Plume.length;
La_Plume[tmpLen] = createMarker(tmpLatLng,"",iconRd);
La_Plume[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Keystone College",'La_Plume=' + La_Plume.length);
tmpLatLng=new GLatLng(40.33548799999999801,-76.8307939999999973);
tmpLen=Harrisburg.length;
Harrisburg[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Harrisburg[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Keystone Technical Institute",'Harrisburg=' + Harrisburg.length);
tmpLatLng=new GLatLng(41.41127999999999787,-75.6596339999999969);
tmpLen=Scranton.length;
Scranton[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Scranton[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Lackawanna College",'Scranton=' + Scranton.length);
tmpLatLng=new GLatLng(40.22046100000000024,-75.2894119999999986);
tmpLen=North_Wales.length;
North_Wales[tmpLen] = createMarker(tmpLatLng,"",iconRd);
North_Wales[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Lansdale School Of Business",'North_Wales=' + North_Wales.length);
tmpLatLng=new GLatLng(39.90244100000000315,-79.7214019999999976);
tmpLen=Uniontown.length;
Uniontown[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Uniontown[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Laurel Business Institute",'Uniontown=' + Uniontown.length);
tmpLatLng=new GLatLng(40.66423900000000202,-75.6085690000000028);
tmpLen=Schnecksville.length;
Schnecksville[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Schnecksville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Lehigh Carbon Community College",'Schnecksville=' + Schnecksville.length);
tmpLatLng=new GLatLng(40.55627599999999688,-75.4028160000000013);
tmpLen=Center_Valley.length;
Center_Valley[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Center_Valley[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Lehigh Valley College",'Center_Valley=' + Center_Valley.length);
tmpLatLng=new GLatLng(40.59179600000000220,-75.5717300000000022);
tmpLen=Allentown.length;
Allentown[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Allentown[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Lincoln Technical Institute",'Allentown=' + Allentown.length);
tmpLatLng=new GLatLng(40.05019899999999921,-75.0002020000000015);
tmpLen=Philadelphia.length;
Philadelphia[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Philadelphia[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Lincoln Technical Institute",'Philadelphia=' + Philadelphia.length);
tmpLatLng=new GLatLng(41.19184700000000276,-75.9956970000000069);
tmpLen=Nanticoke.length;
Nanticoke[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Nanticoke[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Luzerne County Community College",'Nanticoke=' + Nanticoke.length);
tmpLatLng=new GLatLng(40.08670999999999651,-75.1020170000000035);
tmpLen=Jenkintown.length;
Jenkintown[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Jenkintown[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Manor College",'Jenkintown=' + Jenkintown.length);
tmpLatLng=new GLatLng(40.67731299999999805,-76.2312629999999984);
tmpLen=Pottsville.length;
Pottsville[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Pottsville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Mccann School Of Business & Technology",'Pottsville=' + Pottsville.length);
tmpLatLng=new GLatLng(40.81195600000000212,-76.1416590000000041);
tmpLen=Mahanoy_City.length;
Mahanoy_City[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Mahanoy_City[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Mccann School Of Business And Technology",'Mahanoy_City=' + Mahanoy_City.length);
tmpLatLng=new GLatLng(40.17692600000000169,-75.2799789999999973);
tmpLen=Blue_Bell.length;
Blue_Bell[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Blue_Bell[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Montgomery County Community College",'Blue_Bell=' + Blue_Bell.length);
tmpLatLng=new GLatLng(41.08452499999999929,-80.4964850000000069);
tmpLen=Pulaski.length;
Pulaski[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Pulaski[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("New Castle School Of Trades",'Pulaski=' + Pulaski.length);
tmpLatLng=new GLatLng(40.54962199999999938,-79.7387200000000007);
tmpLen=Lower_Burrell.length;
Lower_Burrell[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Lower_Burrell[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Newport Business Institute",'Lower_Burrell=' + Lower_Burrell.length);
tmpLatLng=new GLatLng(41.23767899999999997,-77.0211060000000031);
tmpLen=Williamsport.length;
Williamsport[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Williamsport[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Newport Business Institute",'Williamsport=' + Williamsport.length);
tmpLatLng=new GLatLng(40.67477600000000137,-75.3195500000000066);
tmpLen=Bethlehem.length;
Bethlehem[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Bethlehem[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Northampton County Area Community College",'Bethlehem=' + Bethlehem.length);
tmpLatLng=new GLatLng(40.54816699999999940,-79.7339690000000018);
tmpLen=Lower_Burrell.length;
Lower_Burrell[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Lower_Burrell[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Oakbridge Academy Of Arts",'Lower_Burrell=' + Lower_Burrell.length);
tmpLatLng=new GLatLng(40.33609200000000072,-75.9255270000000024);
tmpLen=Reading.length;
Reading[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Reading[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Pace Institute",'Reading=' + Reading.length);
tmpLatLng=new GLatLng(39.94567299999999932,-75.1660799999999937);
tmpLen=Philadelphia.length;
Philadelphia[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Philadelphia[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Peirce College",'Philadelphia=' + Philadelphia.length);
tmpLatLng=new GLatLng(40.09695200000000170,-74.8696039999999953);
tmpLen=Bristol.length;
Bristol[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Bristol[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Pennco Tech",'Bristol=' + Bristol.length);
tmpLatLng=new GLatLng(40.18431600000000258,-80.2373950000000064);
tmpLen=Washington.length;
Washington[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Washington[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Pennsylvania Commercial College",'Washington=' + Washington.length);
tmpLatLng=new GLatLng(40.32627399999999795,-78.9167470000000008);
tmpLen=Johnstown.length;
Johnstown[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Johnstown[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Pennsylvania Highlands Community College",'Johnstown=' + Johnstown.length);
tmpLatLng=new GLatLng(39.90841100000000096,-75.3872369999999989);
tmpLen=Media.length;
Media[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Media[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Pennsylvania Institute Of Technology",'Media=' + Media.length);
tmpLatLng=new GLatLng(40.64479399999999742,-75.4466900000000038);
tmpLen=Allentown.length;
Allentown[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Allentown[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Pennsylvania School Of Business",'Allentown=' + Allentown.length);
tmpLatLng=new GLatLng(40.35062700000000290,-79.9258659999999991);
tmpLen=West_Mifflin.length;
West_Mifflin[tmpLen] = createMarker(tmpLatLng,"",iconRd);
West_Mifflin[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Pittsburgh Institute Of Aeronautics",'West_Mifflin=' + West_Mifflin.length);
tmpLatLng=new GLatLng(40.45942699999999803,-79.9308730000000053);
tmpLen=Pittsburgh.length;
Pittsburgh[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Pittsburgh[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Pittsburgh Institute Of Mortuary Science Inc",'Pittsburgh=' + Pittsburgh.length);
tmpLatLng=new GLatLng(40.43059399999999925,-80.1912290000000069);
tmpLen=Oakdale.length;
Oakdale[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Oakdale[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Pittsburgh Technical Institute",'Oakdale=' + Oakdale.length);
tmpLatLng=new GLatLng(39.96479999999999677,-75.2756150000000019);
tmpLen=Upper_Darby.length;
Upper_Darby[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Upper_Darby[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Pja School",'Upper_Darby=' + Upper_Darby.length);
tmpLatLng=new GLatLng(40.33501499999999850,-75.9336530000000067);
tmpLen=Reading.length;
Reading[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Reading[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Reading Area Community College",'Reading=' + Reading.length);
tmpLatLng=new GLatLng(39.95460500000000081,-75.2065719999999942);
tmpLen=Philadelphia.length;
Philadelphia[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Philadelphia[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Restaurant School At Walnut Hill College",'Philadelphia=' + Philadelphia.length);
tmpLatLng=new GLatLng(40.41504100000000221,-79.9242870000000067);
tmpLen=Pittsburgh.length;
Pittsburgh[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Pittsburgh[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Rosedale Technical Institute",'Pittsburgh=' + Pittsburgh.length);
tmpLatLng=new GLatLng(40.66171500000000094,-76.2143090000000000);
tmpLen=Pottsville.length;
Pottsville[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Pottsville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Schuylkill Institute Of Business Technology",'Pottsville=' + Pottsville.length);
tmpLatLng=new GLatLng(40.77604699999999837,-77.8559620000000052);
tmpLen=State_College.length;
State_College[tmpLen] = createMarker(tmpLatLng,"",iconRd);
State_College[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("South Hills School Of Business And Technology",'State_College=' + State_College.length);
tmpLatLng=new GLatLng(40.03985600000000033,-76.2888329999999967);
tmpLen=Lancaster.length;
Lancaster[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Lancaster[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Thaddeus Stevens College Of Technology",'Lancaster=' + Lancaster.length);
tmpLatLng=new GLatLng(39.95487899999999825,-75.1837759999999946);
tmpLen=Philadelphia.length;
Philadelphia[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Philadelphia[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Thompson Institute",'Philadelphia=' + Philadelphia.length);
tmpLatLng=new GLatLng(42.08035699999999934,-80.1582829999999972);
tmpLen=Erie.length;
Erie[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Erie[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Tri-state Business Institute",'Erie=' + Erie.length);
tmpLatLng=new GLatLng(41.14350000000000307,-78.7917999999999949);
tmpLen=Falls_Creek.length;
Falls_Creek[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Falls_Creek[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Triangle Tech Inc-dubois",'Falls_Creek=' + Falls_Creek.length);
tmpLatLng=new GLatLng(42.11055700000000001,-80.0937810000000069);
tmpLen=Erie.length;
Erie[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Erie[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Triangle Tech Inc-erie",'Erie=' + Erie.length);
tmpLatLng=new GLatLng(40.30325700000000210,-79.5404979999999994);
tmpLen=Greensburg.length;
Greensburg[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Greensburg[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Triangle Tech Inc-greensburg",'Greensburg=' + Greensburg.length);
tmpLatLng=new GLatLng(40.46256900000000200,-80.0132749999999930);
tmpLen=Pittsburgh.length;
Pittsburgh[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Pittsburgh[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Triangle Tech Inc-pittsburgh",'Pittsburgh=' + Pittsburgh.length);
tmpLatLng=new GLatLng(41.62835100000000210,-79.6697450000000060);
tmpLen=Titusville.length;
Titusville[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Titusville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("University Of Pittsburgh-titusville",'Titusville=' + Titusville.length);
tmpLatLng=new GLatLng(40.04401800000000122,-75.3878940000000028);
tmpLen=Wayne.length;
Wayne[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Wayne[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Valley Forge Military College",'Wayne=' + Wayne.length);
tmpLatLng=new GLatLng(40.44455099999999703,-80.0003530000000040);
tmpLen=Pittsburgh.length;
Pittsburgh[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Pittsburgh[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Vet Tech Institute",'Pittsburgh=' + Pittsburgh.length);
tmpLatLng=new GLatLng(40.23986099999999765,-79.5764620000000064);
tmpLen=Youngwood.length;
Youngwood[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Youngwood[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Westmoreland County Community College",'Youngwood=' + Youngwood.length);
tmpLatLng=new GLatLng(39.97769999999999868,-76.7334000000000031);
tmpLen=York.length;
York[tmpLen] = createMarker(tmpLatLng,"",iconRd);
York[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Yorktowne Business Institute",'York=' + York.length);
tmpLatLng=new GLatLng(39.99204199999999787,-76.6648009999999970);
tmpLen=York.length;
York[tmpLen] = createMarker(tmpLatLng,"",iconRd);
York[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Yti Career Institute",'York=' + York.length);
getPoly("","state","","PA");}
// End addStateMarkers JavaScript Function
//open all when map is defined
function openAll() {
if (map) {
selectChange("all");
} else {
setTimeout("openAll()",200);
}
}
// 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].point.x;
var markLat = myArray[i].point.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].point.x;
maxLat = myArray[0].point.y;
minLng = myArray[0].point.x;
minLat = myArray[0].point.y;
}
// Recenter map based on global max/mins
function reCenterMap(){
//alert('#' + minLat + '#' + minLng + '#' + maxLat + '#' + maxLng);
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) {
if (selection.options) {
var _openNewWindow=true;
var myVal = selection.options[selection.selectedIndex].value;
} else {
var _openNewWindow=false;
var myVal=selection;
}
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('schools-by-distance') == -1)
window.open(location.href + '/map/all');
else
window.open('/search////all');
map.removeOverlays(Allentown);
map.removeOverlays(Bethlehem);
map.removeOverlays(Blue_Bell);
map.removeOverlays(Bristol);
map.removeOverlays(Broomall);
map.removeOverlays(Bryn_Mawr);
map.removeOverlays(Butler);
map.removeOverlays(Center_Valley);
map.removeOverlays(Du_Bois);
map.removeOverlays(Easton);
map.removeOverlays(Erdenheim);
map.removeOverlays(Erie);
map.removeOverlays(Falls_Creek);
map.removeOverlays(Forty_Fort);
map.removeOverlays(Greensburg);
map.removeOverlays(Harrisburg);
map.removeOverlays(Indiana);
map.removeOverlays(Jenkintown);
map.removeOverlays(Johnstown);
map.removeOverlays(La_Plume);
map.removeOverlays(Lancaster);
map.removeOverlays(Lower_Burrell);
map.removeOverlays(Mahanoy_City);
map.removeOverlays(Meadville);
map.removeOverlays(Mechanicsburg);
map.removeOverlays(Media);
map.removeOverlays(Middletown);
map.removeOverlays(Monaca);
map.removeOverlays(Monessen);
map.removeOverlays(Monroeville);
map.removeOverlays(Nanticoke);
map.removeOverlays(New_Castle);
map.removeOverlays(New_Kensington);
map.removeOverlays(Newtown);
map.removeOverlays(North_Wales);
map.removeOverlays(Oakdale);
map.removeOverlays(Philadelphia);
map.removeOverlays(Pittsburgh);
map.removeOverlays(Pottsville);
map.removeOverlays(Pulaski);
map.removeOverlays(Reading);
map.removeOverlays(Schnecksville);
map.removeOverlays(Scranton);
map.removeOverlays(Sharon);
map.removeOverlays(Southampton);
map.removeOverlays(State_College);
map.removeOverlays(Summerdale);
map.removeOverlays(Titusville);
map.removeOverlays(Uniontown);
map.removeOverlays(Upper_Darby);
map.removeOverlays(Washington);
map.removeOverlays(Wayne);
map.removeOverlays(West_Mifflin);
map.removeOverlays(Williamsport);
map.removeOverlays(Wyomissing);
map.removeOverlays(York);
map.removeOverlays(Youngwood);
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(Forty_Fort);map.removeOverlays(Allentown);
map.removeOverlays(Bethlehem);
map.removeOverlays(Blue_Bell);
map.removeOverlays(Bristol);
map.removeOverlays(Broomall);
map.removeOverlays(Bryn_Mawr);
map.removeOverlays(Butler);
map.removeOverlays(Center_Valley);
map.removeOverlays(Du_Bois);
map.removeOverlays(Easton);
map.removeOverlays(Erdenheim);
map.removeOverlays(Erie);
map.removeOverlays(Falls_Creek);
map.removeOverlays(Forty_Fort);
map.removeOverlays(Greensburg);
map.removeOverlays(Harrisburg);
map.removeOverlays(Indiana);
map.removeOverlays(Jenkintown);
map.removeOverlays(Johnstown);
map.removeOverlays(La_Plume);
map.removeOverlays(Lancaster);
map.removeOverlays(Lower_Burrell);
map.removeOverlays(Mahanoy_City);
map.removeOverlays(Meadville);
map.removeOverlays(Mechanicsburg);
map.removeOverlays(Media);
map.removeOverlays(Middletown);
map.removeOverlays(Monaca);
map.removeOverlays(Monessen);
map.removeOverlays(Monroeville);
map.removeOverlays(Nanticoke);
map.removeOverlays(New_Castle);
map.removeOverlays(New_Kensington);
map.removeOverlays(Newtown);
map.removeOverlays(North_Wales);
map.removeOverlays(Oakdale);
map.removeOverlays(Philadelphia);
map.removeOverlays(Pittsburgh);
map.removeOverlays(Pottsville);
map.removeOverlays(Pulaski);
map.removeOverlays(Reading);
map.removeOverlays(Schnecksville);
map.removeOverlays(Scranton);
map.removeOverlays(Sharon);
map.removeOverlays(Southampton);
map.removeOverlays(State_College);
map.removeOverlays(Summerdale);
map.removeOverlays(Titusville);
map.removeOverlays(Uniontown);
map.removeOverlays(Upper_Darby);
map.removeOverlays(Washington);
map.removeOverlays(Wayne);
map.removeOverlays(West_Mifflin);
map.removeOverlays(Williamsport);
map.removeOverlays(Wyomissing);
map.removeOverlays(York);
map.removeOverlays(Youngwood);
map.addOverlays(Allentown);
centerByArray(Allentown, false, false);
cntMarker += Allentown.length;
map.addOverlays(Bethlehem);
centerByArray(Bethlehem, false, false);
cntMarker += Bethlehem.length;
map.addOverlays(Blue_Bell);
centerByArray(Blue_Bell, false, false);
cntMarker += Blue_Bell.length;
map.addOverlays(Bristol);
centerByArray(Bristol, false, false);
cntMarker += Bristol.length;
map.addOverlays(Broomall);
centerByArray(Broomall, false, false);
cntMarker += Broomall.length;
map.addOverlays(Bryn_Mawr);
centerByArray(Bryn_Mawr, false, false);
cntMarker += Bryn_Mawr.length;
map.addOverlays(Butler);
centerByArray(Butler, false, false);
cntMarker += Butler.length;
map.addOverlays(Center_Valley);
centerByArray(Center_Valley, false, false);
cntMarker += Center_Valley.length;
map.addOverlays(Du_Bois);
centerByArray(Du_Bois, false, false);
cntMarker += Du_Bois.length;
map.addOverlays(Easton);
centerByArray(Easton, false, false);
cntMarker += Easton.length;
map.addOverlays(Erdenheim);
centerByArray(Erdenheim, false, false);
cntMarker += Erdenheim.length;
map.addOverlays(Erie);
centerByArray(Erie, false, false);
cntMarker += Erie.length;
map.addOverlays(Falls_Creek);
centerByArray(Falls_Creek, false, false);
cntMarker += Falls_Creek.length;
map.addOverlays(Forty_Fort);
centerByArray(Forty_Fort, false, false);
cntMarker += Forty_Fort.length;
map.addOverlays(Greensburg);
centerByArray(Greensburg, false, false);
cntMarker += Greensburg.length;
map.addOverlays(Harrisburg);
centerByArray(Harrisburg, false, false);
cntMarker += Harrisburg.length;
map.addOverlays(Indiana);
centerByArray(Indiana, false, false);
cntMarker += Indiana.length;
map.addOverlays(Jenkintown);
centerByArray(Jenkintown, false, false);
cntMarker += Jenkintown.length;
map.addOverlays(Johnstown);
centerByArray(Johnstown, false, false);
cntMarker += Johnstown.length;
map.addOverlays(La_Plume);
centerByArray(La_Plume, false, false);
cntMarker += La_Plume.length;
map.addOverlays(Lancaster);
centerByArray(Lancaster, false, false);
cntMarker += Lancaster.length;
map.addOverlays(Lower_Burrell);
centerByArray(Lower_Burrell, false, false);
cntMarker += Lower_Burrell.length;
map.addOverlays(Mahanoy_City);
centerByArray(Mahanoy_City, false, false);
cntMarker += Mahanoy_City.length;
map.addOverlays(Meadville);
centerByArray(Meadville, false, false);
cntMarker += Meadville.length;
map.addOverlays(Mechanicsburg);
centerByArray(Mechanicsburg, false, false);
cntMarker += Mechanicsburg.length;
map.addOverlays(Media);
centerByArray(Media, false, false);
cntMarker += Media.length;
map.addOverlays(Middletown);
centerByArray(Middletown, false, false);
cntMarker += Middletown.length;
map.addOverlays(Monaca);
centerByArray(Monaca, false, false);
cntMarker += Monaca.length;
map.addOverlays(Monessen);
centerByArray(Monessen, false, false);
cntMarker += Monessen.length;
map.addOverlays(Monroeville);
centerByArray(Monroeville, false, false);
cntMarker += Monroeville.length;
map.addOverlays(Nanticoke);
centerByArray(Nanticoke, false, false);
cntMarker += Nanticoke.length;
map.addOverlays(New_Castle);
centerByArray(New_Castle, false, false);
cntMarker += New_Castle.length;
map.addOverlays(New_Kensington);
centerByArray(New_Kensington, false, false);
cntMarker += New_Kensington.length;
map.addOverlays(Newtown);
centerByArray(Newtown, false, false);
cntMarker += Newtown.length;
map.addOverlays(North_Wales);
centerByArray(North_Wales, false, false);
cntMarker += North_Wales.length;
map.addOverlays(Oakdale);
centerByArray(Oakdale, false, false);
cntMarker += Oakdale.length;
map.addOverlays(Philadelphia);
centerByArray(Philadelphia, false, false);
cntMarker += Philadelphia.length;
map.addOverlays(Pittsburgh);
centerByArray(Pittsburgh, false, false);
cntMarker += Pittsburgh.length;
map.addOverlays(Pottsville);
centerByArray(Pottsville, false, false);
cntMarker += Pottsville.length;
map.addOverlays(Pulaski);
centerByArray(Pulaski, false, false);
cntMarker += Pulaski.length;
map.addOverlays(Reading);
centerByArray(Reading, false, false);
cntMarker += Reading.length;
map.addOverlays(Schnecksville);
centerByArray(Schnecksville, false, false);
cntMarker += Schnecksville.length;
map.addOverlays(Scranton);
centerByArray(Scranton, false, false);
cntMarker += Scranton.length;
map.addOverlays(Sharon);
centerByArray(Sharon, false, false);
cntMarker += Sharon.length;
map.addOverlays(Southampton);
centerByArray(Southampton, false, false);
cntMarker += Southampton.length;
map.addOverlays(State_College);
centerByArray(State_College, false, false);
cntMarker += State_College.length;
map.addOverlays(Summerdale);
centerByArray(Summerdale, false, false);
cntMarker += Summerdale.length;
map.addOverlays(Titusville);
centerByArray(Titusville, false, false);
cntMarker += Titusville.length;
map.addOverlays(Uniontown);
centerByArray(Uniontown, false, false);
cntMarker += Uniontown.length;
map.addOverlays(Upper_Darby);
centerByArray(Upper_Darby, false, false);
cntMarker += Upper_Darby.length;
map.addOverlays(Washington);
centerByArray(Washington, false, false);
cntMarker += Washington.length;
map.addOverlays(Wayne);
centerByArray(Wayne, false, false);
cntMarker += Wayne.length;
map.addOverlays(West_Mifflin);
centerByArray(West_Mifflin, false, false);
cntMarker += West_Mifflin.length;
map.addOverlays(Williamsport);
centerByArray(Williamsport, false, false);
cntMarker += Williamsport.length;
map.addOverlays(Wyomissing);
centerByArray(Wyomissing, false, false);
cntMarker += Wyomissing.length;
map.addOverlays(York);
centerByArray(York, false, false);
cntMarker += York.length;
map.addOverlays(Youngwood);
centerByArray(Youngwood, false, false);
cntMarker += Youngwood.length;
reCenterMap();
//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');
}
}
function createMarker(point, label, icon){
var marker = new GMarker(point, icon);
var html = label;
GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html); });
return marker;
}