function addMarkers()
{
mySelect = document.getElementById('selection');
Pittsburgh = [];Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.01614380,40.35643768),"
",iconRd);
mySelect.options[mySelect.options.length] = new Option("Abraham Lincoln Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.96814100,40.39937200),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Academy Charter School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.92031097,40.42978668),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Allderdice High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.00886536,40.45413971),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Allegheny Trad El Academy",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.00886536,40.45413971),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Allegheny Trad Mid Academy",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.97201538,40.41542435),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Arlington Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.97245789,40.41706848),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Arlington Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.96354675,40.46750641),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Arsenal Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.06679535,40.50091934),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Avalon Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.09511566,40.54101944),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Avonworth Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.07746887,40.53075027),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Avonworth High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.07678223,40.53041458),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Avonworth Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.09577942,40.33718872),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Baker Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.97907257,40.35507965),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Baldwin Senior High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.03655243,40.40725327),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Banksville Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.02056122,40.41513824),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Beechwood Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.04269409,40.55287933),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bellevue Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.89710236,40.46075439),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Belmar Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.00190735,40.41816330),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Beltzhoover Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.00070190,40.40864563),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bon Air Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.09700012,40.31529236),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Boyce Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.02054596,40.41723633),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Brashear High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.97541809,40.37405014),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Brentwood Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.97552600,40.37336400),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Brentwood MiddleSchool",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.97541809,40.37405014),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Brentwood Senior High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.02489471,40.39470673),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Brookline Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.93891144,40.40429688),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Burgwin Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.95951080,40.47158813),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Career Connections Charter High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.00756836,40.38871384),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Carmalt Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.98828888,40.39116287),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Carrick High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.03641510,40.56925201),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Carson Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.75685120,40.48360825),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Center Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.07519531,40.45778656),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Chartiers Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.07619476,40.39871979),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Chartiers Valley Intrmd School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.01495361,40.48980331),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Chatham Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.99980927,40.44267273),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("City Chs",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.01110840,40.46311188),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Clayton Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.91472626,40.43337250),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Colfax Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.01084900,40.45091629),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Columbus Annex",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.01567841,40.45989227),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Columbus Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.98442841,40.38754654),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Concord Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.02526093,40.45146942),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Conroy Ed Center",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.06739044,40.43109131),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Crafton Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.88237762,40.45429230),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Crescent Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.80959320,40.44941711),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dible Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.89337158,40.42316055),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Dickson Intrmd School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.91769409,40.46862411),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dilworth Traditional Academy",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.04434967,40.39374161),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dormont Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.94741821,40.51168060),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Dorseyville Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.87324524,40.45340347),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("East Hills Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.88209534,40.43227768),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Edgewood Primary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.06314087,40.34837341),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Eisenhower Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.90076447,40.54638672),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fairview Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.06452942,40.35498810),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Fort Couch Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.94265747,40.46900177),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fort Pitt Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.03872681,40.36349869),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Foster Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.86727905,40.51757431),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Fox Chapel Area Senior High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.04209900,40.42513275),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fred L Aiken Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.95693970,40.44329071),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Frick Intl Studies Academy",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.93594360,40.46283722),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Friendship Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.92179871,40.47468185),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fulton Academy Of Science",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.02568054,40.45125961),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Grandview Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.94330597,40.42628098),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Greenfield Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.05106354,40.44729233),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Greenway Classical Academy",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.05106354,40.44729233),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Greenway Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.00260162,40.35132980),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Harrison Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.94741821,40.51168060),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hartwood Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.05210114,40.52453613),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Highcliff Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.70749664,40.47993469),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Holiday Park Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.89949036,40.45492554),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Homewood Montessori Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.06899261,40.37363434),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hoover Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.03004456,40.37540817),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Howe Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.05332947,40.58187866),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ingomar Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-123.32928467,42.44104767),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Ingomar Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.06711578,40.44464493),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ingram Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.06057739,40.38164139),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Jefferson Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.06066132,40.38202286),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Jefferson Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.91791534,40.51269150),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Kerr Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.03444672,40.38832855),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Keystone Oaks High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.03443146,40.38834381),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Keystone Oaks Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.00510406,40.45471191),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("King M L Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.99532318,40.41586304),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Knoxville Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.99370575,40.41636276),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Knoxville Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.05382538,40.45406342),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Langley High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.89659119,40.46966553),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lemington Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.98836517,40.44488907),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Letsche Ed Center",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.93405914,40.45381546),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Liberty Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.04781000,40.38641800),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lincoln Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.91648865,40.44567871),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Linden Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.81453705,40.48276520),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Linton Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.96137238,40.45449829),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Madison Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.02320099,40.45575714),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Manchester Academic Charter School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.02685547,40.45619965),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Manchester Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.03055573,40.47002029),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mann Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.05410767,40.36683655),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Markham Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.96772766,40.51357269),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Marzolf Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.99657440,40.34567642),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mcannulty Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.95104980,40.48024368),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mccleary Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.96981049,40.33050156),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mcclellan Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.01046753,40.55061340),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mcintyre Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.02871704,40.57196426),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mcknight Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.00783539,40.47153473),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Mcnaugher Sp Ed Center",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.04582214,40.37755585),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Mellon Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.02568054,40.45125961),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Mercy Behavioral Health",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.91352844,40.36983871),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mifflin Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.98258209,40.44062042),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Miller Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.96168518,40.44887543),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Milliones Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.92388153,40.42316437),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Minadeo Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.97438049,40.36889267),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Moore School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.92632294,40.48592377),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Morningside Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.03968048,40.48030090),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Morrow Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.05020905,40.37528229),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Mt Lebanon Senior High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.97991943,40.40891647),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Murray Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.02256775,40.36812973),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Myrtle Ave School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.89363000,40.45272500),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("New Homewood Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.03139496,40.57186127),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("North Allegheny Ihs",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.02918243,40.52360535),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("North Hills Junior High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.02934265,40.52371216),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("North Hills Senior High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.06227875,40.50029755),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Northgate Mshs High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.99350800,40.44684900),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Northside Urban Pathways Charter School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.00457001,40.48329926),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Northview Heights Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.02227783,40.54904556),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Northway Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.71237946,40.47183609),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Oblock Junior High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.86369324,40.51705170),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ohara Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.02425385,40.46483612),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Oliver High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.96309662,40.46956253),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Options Center",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.99705505,40.38990784),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Overbrook Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.95115662,40.38197327),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Paynter Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.92255402,40.46672058),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Peabody High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.00892639,40.56510925),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Peebles Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.82781219,40.46168900),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Penn Hebron Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.81918335,40.46821594),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Penn Hills Senior High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.01805115,40.48896027),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Perry Traditional Academy",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.03582001,40.53596115),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Perrysville Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.97900391,40.42793655),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Phillips Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.01018524,40.40246964),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Pioneer Ed Center",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.04653168,40.45051193),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Pittsburgh Classical Academy",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.88801575,40.45619965),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Pittsburgh High School Creat & Per Arts",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.75080872,40.49391174),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pivik Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.95426178,40.33203888),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Pleasant Hills Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.77384949,40.50826263),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Plum Senior High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.98054400,40.43121100),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Propel Cs-east",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.02568054,40.45125961),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Propel Cs-homestead Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.98054400,40.43121100),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Propel Cs-mckeesport",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.01037598,40.42763519),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Prospect Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.06697845,40.49724579),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Prospect Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.02568054,40.45125961),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rapah-edison Charter School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.77598572,40.48283768),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Regency Park Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.89675140,40.43528748),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Regent Square Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.91944122,40.45743179),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Reizenstein Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.98177338,40.47452164),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Reserve Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.92971039,40.46878815),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Rogers Center Creat & Per Arts",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.03901672,40.48004532),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Rooney Arthur J Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.02568054,40.45125961),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Roosevelt Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.00222778,40.52643585),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ross Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.05284119,40.43939972),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Schaeffer Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.95523071,40.44457245),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Schenley High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.99304962,40.45631409),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Schiller Classical Academy",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.03893280,40.49526978),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Seville Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.84477997,40.43038177),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Shaffer Primary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.97203827,40.51224518),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Shaler Area High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.06048584,40.45511627),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sheraden Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.01010132,40.40246582),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("South Brook Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.02059174,40.41696167),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("South Hills Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.98943329,40.42856216),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("South Vo-tech High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.98567200,40.46411896),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Spring Garden Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.98963165,40.46532822),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Spring Hill Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.85913849,40.50003052),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("St Francis Hospital",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.90551758,40.44711685),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Sterrett Classical Academy",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.04028320,40.44242859),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Stevens Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.71523285,40.47431564),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Stevenson Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.09327698,40.32465744),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Streams Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.93455505,40.48068619),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sunnyside Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.07212830,40.33460236),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Upper Saint Clair High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.92935944,40.46598816),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Urban League Of Pittsburgh Charter School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.97074127,40.44916916),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Vann Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-85.57192993,42.27272797),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Washington Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.96309662,40.46956253),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Washington Polytechnic Academy",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.97437286,40.44506454),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Weil Technology Institutional Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.00997162,40.40245819),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("West Liberty Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.03142548,40.52126312),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("West View Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.90054321,40.46056366),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Westinghouse High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.04956055,40.43217850),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Westwood Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.99313354,40.35251999),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Whitehall Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-80.01867676,40.43612289),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Whittier Elementary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.82786560,40.43022919),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wilkins Primary School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.88240814,40.44397736),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Wilkinsburg Middle School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.87678528,40.41991043),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Woodland Hills Junior High School - West",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.85327911,40.43785477),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Woodland Hills Senior High School",'Pittsburgh=' + Pittsburgh.length);
Pittsburgh[Pittsburgh.length] = createMarker(new GPoint(-79.95728302,40.46347809),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Woolslair Elementary School",'Pittsburgh=' + Pittsburgh.length);
maxLng = -79.70749664;
maxLat = 42.44104767;
minLng = -123.32928467;
minLat = 40.31529236;
reCenterMap();
} // 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(Pittsburgh);
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(Pittsburgh);map.removeOverlays(Pittsburgh);
map.addOverlays(Pittsburgh);
centerByArray(Pittsburgh, false, false);
cntMarker += Pittsburgh.length;
centerByArray(Pittsburgh,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');
}
}