function addMarkers()
{
mySelect = document.getElementById('selection');
Brockport = [];Spencerport = [];Rochester = [];Penfield = [];Fairport = [];Henrietta = [];Churchville = [];Webster = [];East_Rochester = [];West_Henrietta = [];Hilton = [];Honeoye_Falls = [];Rush = [];Pittsford = [];Scottsville = [];mySelect.options[mySelect.options.length] = new Option("Brockport schools",'all=Brockport');
mySelect.options[mySelect.options.length] = new Option("Churchville schools",'all=Churchville');
mySelect.options[mySelect.options.length] = new Option("East Rochester schools",'all=East_Rochester');
mySelect.options[mySelect.options.length] = new Option("Fairport schools",'all=Fairport');
mySelect.options[mySelect.options.length] = new Option("Henrietta schools",'all=Henrietta');
mySelect.options[mySelect.options.length] = new Option("Hilton schools",'all=Hilton');
mySelect.options[mySelect.options.length] = new Option("Honeoye Falls schools",'all=Honeoye_Falls');
mySelect.options[mySelect.options.length] = new Option("Penfield schools",'all=Penfield');
mySelect.options[mySelect.options.length] = new Option("Pittsford schools",'all=Pittsford');
mySelect.options[mySelect.options.length] = new Option("Rochester schools",'all=Rochester');
mySelect.options[mySelect.options.length] = new Option("Rush schools",'all=Rush');
mySelect.options[mySelect.options.length] = new Option("Scottsville schools",'all=Scottsville');
mySelect.options[mySelect.options.length] = new Option("Spencerport schools",'all=Spencerport');
mySelect.options[mySelect.options.length] = new Option("Webster schools",'all=Webster');
mySelect.options[mySelect.options.length] = new Option("West Henrietta schools",'all=West_Henrietta');
mySelect.options[mySelect.options.length] = new Option("---------------------------",'');
Brockport[Brockport.length] = createMarker(new GPoint(-77.94545746,43.20748901),"
",iconBl);
mySelect.options[mySelect.options.length] = new Option("A.d. Oliver Middle School",'Brockport=' + Brockport.length);
Spencerport[Spencerport.length] = createMarker(new GPoint(-77.77754974,43.18465424),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("A.m. Cosgrove Middle School",'Spencerport=' + Spencerport.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.52707672,43.12562180),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Allen Creek School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.61919403,43.15424347),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alternative Educ Center At Lofton",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.66279602,43.22388077),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Apollo Middle School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.66510773,43.25550461),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Arcadia Middle School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.70443726,43.22356415),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Autumn Lane Elementary School",'Rochester=' + Rochester.length);
Brockport[Brockport.length] = createMarker(new GPoint(-77.94545746,43.20748901),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Barclay Elementary School",'Brockport=' + Brockport.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.64368439,43.22356415),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Barnard Es",'Rochester=' + Rochester.length);
Penfield[Penfield.length] = createMarker(new GPoint(-77.48487854,43.15525055),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Bay Trail Middle School",'Penfield=' + Penfield.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.59765625,43.18682480),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Benjamin Franklin Montessori School",'Rochester=' + Rochester.length);
Fairport[Fairport.length] = createMarker(new GPoint(-77.45871735,43.10606384),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Boces Monroe 1 Elementary School",'Fairport=' + Fairport.length);
Spencerport[Spencerport.length] = createMarker(new GPoint(-77.78727722,43.19506073),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Boces Monroe 2-orleans Elementary School",'Spencerport=' + Spencerport.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.60388947,43.21497726),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Briarwood School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.56834412,43.12192535),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Brighton High School",'Rochester=' + Rochester.length);
Brockport[Brockport.length] = createMarker(new GPoint(-77.93729400,43.21423500),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Brockport High School",'Brockport=' + Brockport.length);
Fairport[Fairport.length] = createMarker(new GPoint(-77.44335175,43.09073639),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Brooks Hill School",'Fairport=' + Fairport.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.69650269,43.21797562),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Brookside Elementary School Campus",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.59362030,43.20424652),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Brookview School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.67060852,43.21579361),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Buckman Hts Elementary School",'Rochester=' + Rochester.length);
Brockport[Brockport.length] = createMarker(new GPoint(-77.93907928,43.21369934),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Campus Sch-suc At Brockport",'Brockport=' + Brockport.length);
Spencerport[Spencerport.length] = createMarker(new GPoint(-77.80789948,43.18849945),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Canal View Elementary School",'Spencerport=' + Spencerport.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.58382416,43.14304352),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Canterbury Road Group Home",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.59765625,43.18682480),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Career High School At Franklin",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.59765625,43.18682480),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Career Schools At Benjamin Franklin",'Rochester=' + Rochester.length);
Henrietta[Henrietta.length] = createMarker(new GPoint(-77.62101746,43.04329681),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Charles H. Roth Middle School",'Henrietta=' + Henrietta.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.61785126,43.24557114),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Charlotte High School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.61835480,43.16886139),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Charter School Of Sci & Technical",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.77835083,43.09361649),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Chestnut Ridge Elementary School",'Rochester=' + Rochester.length);
Churchville[Churchville.length] = createMarker(new GPoint(-77.88746643,43.10446167),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Churchville Elementary School",'Churchville=' + Churchville.length);
Churchville[Churchville.length] = createMarker(new GPoint(-77.82804871,43.12313080),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Churchville-chili Junior High School",'Churchville=' + Churchville.length);
Churchville[Churchville.length] = createMarker(new GPoint(-77.82804108,43.12324524),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Churchville-chili Middle School",'Churchville=' + Churchville.length);
Churchville[Churchville.length] = createMarker(new GPoint(-77.83700562,43.11538696),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Churchville-chili Senior High School",'Churchville=' + Churchville.length);
Penfield[Penfield.length] = createMarker(new GPoint(-77.45880127,43.14170074),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cobbles Elementary School",'Penfield=' + Penfield.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.59317780,43.24001312),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Colebrook School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.55075836,43.13155746),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Council Rock Primary School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.72084808,43.20531845),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Craig Hill Elementary School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.59844971,43.21804810),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Dake Junior High School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.61437988,43.07524872),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("David B. Crane Elementary School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.68630981,43.21189880),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Day Care Treatment",'Rochester=' + Rochester.length);
Webster[Webster.length] = createMarker(new GPoint(-77.51561737,43.22766113),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dewitt Road Elementary School",'Webster=' + Webster.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.59415436,43.16799545),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Dr. Freddie Thomas Learning Center",'Rochester=' + Rochester.length);
Fairport[Fairport.length] = createMarker(new GPoint(-77.40748596,43.10162354),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dudley School",'Fairport=' + Fairport.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.61596680,43.15443802),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Durand-eastman Intermediate School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.56283569,43.15966415),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("East High School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.61752319,43.18830109),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("East Irondequoit Middle School",'Rochester=' + Rochester.length);
East_Rochester[East_Rochester.length] = createMarker(new GPoint(-77.49141693,43.10816193),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("East Rochester Elementary School",'East_Rochester=' + East_Rochester.length);
East_Rochester[East_Rochester.length] = createMarker(new GPoint(-77.48960876,43.10765839),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("East Rochester Junior Senior High School",'East_Rochester=' + East_Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.55640411,43.20436478),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Eastridge Junior High School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.55640411,43.20436478),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Eastridge Senior High School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.66975403,43.17276382),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Edison Technical & Occup Educ Center",'Rochester=' + Rochester.length);
Henrietta[Henrietta.length] = createMarker(new GPoint(-77.62458801,43.05637741),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Emma E. Sherman Elementary School",'Henrietta=' + Henrietta.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.65098572,43.23978806),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("English Village School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.65196228,43.06806946),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ethel K. Fyle Elementary School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.59780884,43.17543793),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Eugenio Maria De Hostos Charter School",'Rochester=' + Rochester.length);
Churchville[Churchville.length] = createMarker(new GPoint(-77.82791901,43.12526703),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fairbanks Road Elementary School",'Churchville=' + Churchville.length);
Fairport[Fairport.length] = createMarker(new GPoint(-77.41352081,43.07949066),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Fairport Senior High School",'Fairport=' + Fairport.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.61596680,43.15443802),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Finger Lakes Ddso High School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.74544525,43.11536026),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Florence Brasser School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.57162476,43.17012787),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Florence S. Brown Pre-k Center",'Rochester=' + Rochester.length);
Henrietta[Henrietta.length] = createMarker(new GPoint(-77.59362030,43.05816269),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Floyd S. Winslow Elementary School",'Henrietta=' + Henrietta.length);
Brockport[Brockport.length] = createMarker(new GPoint(-77.94545746,43.20748901),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Fred W. Hill School",'Brockport=' + Brockport.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.57712555,43.17836380),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Frederick Douglass Prep School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.56732178,43.09916306),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("French Road Elementary School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.71121216,43.15276718),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Gates-chili High School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.71121216,43.15276718),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Gates-chili Middle School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.58745575,43.15313339),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Genesee Community Charter School At R",'Rochester=' + Rochester.length);
Brockport[Brockport.length] = createMarker(new GPoint(-77.94545746,43.20748901),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ginther Elementary School",'Brockport=' + Brockport.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.60286400,43.18496000),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Global Media Arts High School At Franklin",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.66510773,43.25531387),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Greece Arcadia High School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.69635773,43.24422073),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Greece-athena High School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.69635773,43.24422073),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Greece-athena Middle School",'Rochester=' + Rochester.length);
Penfield[Penfield.length] = createMarker(new GPoint(-77.44670868,43.13049316),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Harris Hill Elementary School",'Penfield=' + Penfield.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.54492187,43.17342377),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Helendale Road Primary School",'Rochester=' + Rochester.length);
West_Henrietta[West_Henrietta.length] = createMarker(new GPoint(-77.66794586,43.04024124),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Henry V. Burger Middle School",'West_Henrietta=' + West_Henrietta.length);
Webster[Webster.length] = createMarker(new GPoint(-77.50032043,43.23110580),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Heritage Christian Home Inc",'Webster=' + Webster.length);
Hilton[Hilton.length] = createMarker(new GPoint(-77.78108215,43.29189682),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Hilton High School",'Hilton=' + Hilton.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.68974304,43.20161438),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Holmes Road Elementary School",'Rochester=' + Rochester.length);
Honeoye_Falls[Honeoye_Falls.length] = createMarker(new GPoint(-77.59078979,42.95122910),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Honeoye Falls-lima Middle School",'Honeoye_Falls=' + Honeoye_Falls.length);
Honeoye_Falls[Honeoye_Falls.length] = createMarker(new GPoint(-77.58473206,42.95276260),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Honeoye Falls-lima Senior High School",'Honeoye_Falls=' + Honeoye_Falls.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.52902222,43.14246368),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Indian Landing Elementary School",'Rochester=' + Rochester.length);
Rush[Rush.length] = createMarker(new GPoint(-77.71611023,43.00306320),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Industry School",'Rush=' + Rush.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.60286400,43.18496000),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Intrntnl Finance & Econ Dev High School At Frankli",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.59831238,43.21596527),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Irondequoit High School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.59474945,43.23997879),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Iroquois Middle School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.56792450,43.20567322),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ivan L. Green Primary School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.63622284,43.14596176),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("James Madison High School - Excellence",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.59935760,43.14722824),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("James Monroe Middle School",'Rochester=' + Rochester.length);
Fairport[Fairport.length] = createMarker(new GPoint(-77.46230316,43.09088516),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Jefferson Ave School",'Fairport=' + Fairport.length);
Pittsford[Pittsford.length] = createMarker(new GPoint(-77.50929300,43.08220800),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Jefferson Road School",'Pittsford=' + Pittsford.length);
Fairport[Fairport.length] = createMarker(new GPoint(-77.44786072,43.09232330),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Johanna Perrin Middle School",'Fairport=' + Fairport.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.63577271,43.19403076),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("John Marshall High School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.63628387,43.14033508),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Joseph C. Wilson Magnet High School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.67778778,43.25906372),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Kirk Road School",'Rochester=' + Rochester.length);
Webster[Webster.length] = createMarker(new GPoint(-77.45774841,43.23066330),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Klem Road North Elementary School",'Webster=' + Webster.length);
Webster[Webster.length] = createMarker(new GPoint(-77.45632172,43.23066330),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Klem Road South Elementary School",'Webster=' + Webster.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.64328003,43.25304413),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lakeshore Elementary School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.55350494,43.18631363),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Laurelton-pardee Intermediate School",'Rochester=' + Rochester.length);
Spencerport[Spencerport.length] = createMarker(new GPoint(-77.80789948,43.18880081),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Leo Bernabi School",'Spencerport=' + Spencerport.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.60778809,43.13871765),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Linden St Group Home",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.59274292,43.21669388),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Listwood School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.65338898,43.22791290),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Longridge School",'Rochester=' + Rochester.length);
Honeoye_Falls[Honeoye_Falls.length] = createMarker(new GPoint(-77.57952881,42.95362091),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Manor Intermediate School",'Honeoye_Falls=' + Honeoye_Falls.length);
Fairport[Fairport.length] = createMarker(new GPoint(-77.44905853,43.07893753),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Martha Brown Middle School",'Fairport=' + Fairport.length);
Pittsford[Pittsford.length] = createMarker(new GPoint(-77.54200745,43.03973389),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mendon Center Elementary School",'Pittsford=' + Pittsford.length);
Hilton[Hilton.length] = createMarker(new GPoint(-77.80056000,43.29438782),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Merton Williams Middle School",'Hilton=' + Hilton.length);
Fairport[Fairport.length] = createMarker(new GPoint(-77.45020294,43.09193802),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Minerva Deland School",'Fairport=' + Fairport.length);
Rush[Rush.length] = createMarker(new GPoint(-77.64212799,43.00544357),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Monica B. Leary Elementary School",'Rush=' + Rush.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.60748291,43.15940475),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Monroe Correctional Facility",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.61249542,43.11466217),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Monroe County Childrens Center",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.71634674,43.16446304),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Neil Armstrong School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.60033417,43.18933868),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Nester St Group Home",'Rochester=' + Rochester.length);
Henrietta[Henrietta.length] = createMarker(new GPoint(-77.61840057,43.04990005),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Ninth Grade Academy",'Henrietta=' + Henrietta.length);
Fairport[Fairport.length] = createMarker(new GPoint(-77.40748596,43.10259247),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Northside School",'Fairport=' + Fairport.length);
Hilton[Hilton.length] = createMarker(new GPoint(-77.73252869,43.26662445),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Northwood Elementary School",'Hilton=' + Hilton.length);
Rush[Rush.length] = createMarker(new GPoint(-77.71302032,42.99959183),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Oatka Res Center",'Rush=' + Rush.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.67171478,43.20318985),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Odyssey School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.67281342,43.22356415),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Olympia Senior High School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.65964508,43.25276184),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Paddy Hill Elementary School",'Rochester=' + Rochester.length);
Pittsford[Pittsford.length] = createMarker(new GPoint(-77.53363037,43.09115982),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Park Road School",'Pittsford=' + Pittsford.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.67428589,43.23843765),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Parkland Elementary School Campus",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.72493744,43.10606384),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Paul Road School",'Rochester=' + Rochester.length);
Penfield[Penfield.length] = createMarker(new GPoint(-77.45880127,43.14170074),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Penfield Senior High School",'Penfield=' + Penfield.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.71082306,43.23881149),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pine Brook Elementary School",'Rochester=' + Rochester.length);
Pittsford[Pittsford.length] = createMarker(new GPoint(-77.52758026,43.05918503),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Pittsford Middle School",'Pittsford=' + Pittsford.length);
Pittsford[Pittsford.length] = createMarker(new GPoint(-77.52227783,43.08867645),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Pittsford Sutherland High School",'Pittsford=' + Pittsford.length);
Pittsford[Pittsford.length] = createMarker(new GPoint(-77.51973724,43.06093597),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Pittsford-mendon High School",'Pittsford=' + Pittsford.length);
Webster[Webster.length] = createMarker(new GPoint(-77.48451996,43.18216324),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Plank Road North Elementary School",'Webster=' + Webster.length);
Webster[Webster.length] = createMarker(new GPoint(-77.48182678,43.18208313),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Plank Road South Elementary School",'Webster=' + Webster.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.64309692,43.14810181),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Preschool-parent Prog",'Rochester=' + Rochester.length);
Hilton[Hilton.length] = createMarker(new GPoint(-77.79927063,43.28779984),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Quest Elementary School",'Hilton=' + Hilton.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.60821533,43.12486267),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Rochester Chldrn & Youth Svcs",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.65316010,43.15543747),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rochester Leadership Academy Charter School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.60764313,43.20296478),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Rogers Middle School",'Rochester=' + Rochester.length);
Henrietta[Henrietta.length] = createMarker(new GPoint(-77.61840057,43.04990005),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Rush-henrietta Senior High School",'Henrietta=' + Henrietta.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.73204800,43.18045300),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Sch Of Engineering & Manufacturing At Edison",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.73204800,43.18045300),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Sch Of Imaging & Information Tech At Edison",'Rochester=' + Rochester.length);
Webster[Webster.length] = createMarker(new GPoint(-77.40481567,43.24091721),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Schlegel Road Elementary School",'Webster=' + Webster.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.56406403,43.14306259),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 1-martin B Anderson",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.62642670,43.14476395),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 2-clara Barton",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.61782074,43.14866257),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 3-nathaniel Rochester",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.64309692,43.14810181),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 4-george Mather Forbes",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.62812805,43.16676331),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 5-john Williams",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.60250092,43.17109680),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 6-dag Hammarskjold",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.63815308,43.18446350),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 7-virgil Grissom",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.62532806,43.17713165),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 8-roberto Clemente",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.61110687,43.16773224),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 9-dr Martin Luther King, Junior High School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.60822296,43.13407516),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 12-james P B Duffy",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.59828186,43.15970230),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 14-chester Dewey",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.59052200,43.15061600),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 15-children's School Of Rochester (the)",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.64792633,43.13927078),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 16-john Walton Spencer",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.63492584,43.15823364),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 17-enrico Fermi",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.62702179,43.13813019),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 19-dr Charles T Lunsford",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.61437225,43.17096329),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 20-henry Lomb School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.60997772,43.18302536),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 22-lincoln School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.58239746,43.14734268),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 23-francis Parker",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.57879639,43.17180252),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 25-nathaniel Hawthorne",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.55690765,43.15372849),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 28-henry Hudson",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.63878632,43.14636230),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 29-adlai E Stevenson",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.63967896,43.16906357),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 30-general Elwell S Otis",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.57162476,43.17012787),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 33-audubon",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.64472198,43.17936325),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 34-dr Louis A Cerulli",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.58935547,43.13867569),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 35-pinnacle",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.59453583,43.17798233),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 36-henry W Longfellow",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.64704895,43.12886429),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 37-lewis H Morgan",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.57927704,43.18510056),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 39-andrew J Townson",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.63505554,43.19874191),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 41-kodak Park",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.62657928,43.23041916),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 42-abelard Reynolds",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.66062927,43.16486359),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 43-theodore Roosevelt",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.65820312,43.14294434),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 44-lincoln Park",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.58356476,43.17560196),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 45-mary Mcleod Bethune",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.54224396,43.15402222),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 46-charles Carroll",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.60896301,43.19257736),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 50-helen Barrett Montgomery",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.55284882,43.16550446),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 52-frank Fowler Dow",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.65262604,43.13076401),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 54-flower City Community School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.63135529,43.16941071),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 57-early Childhood School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.59828186,43.15970230),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School 58-world Of Inquiry School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.59056854,43.15842819),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("School Of Arts",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.60132599,43.14736176),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("School Without Walls",'Rochester=' + Rochester.length);
Penfield[Penfield.length] = createMarker(new GPoint(-77.48487091,43.15576935),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Scribner Road Elementary School",'Penfield=' + Penfield.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.59942627,43.23123169),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Seneca School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.73204800,43.18045300),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Skilled Trades At Edison",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.60704803,43.20196152),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Southlawn School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.61904907,43.17089462),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Spec Educ Pre-school At Family Learn",'Rochester=' + Rochester.length);
Spencerport[Spencerport.length] = createMarker(new GPoint(-77.77656555,43.18372726),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Spencerport High School",'Spencerport=' + Spencerport.length);
Webster[Webster.length] = createMarker(new GPoint(-77.43006897,43.20882416),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Spry Middle School",'Webster=' + Webster.length);
Webster[Webster.length] = createMarker(new GPoint(-77.41954041,43.20199966),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("State Road Elementary School",'Webster=' + Webster.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.66905212,43.20924377),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Stoneridge",'Rochester=' + Rochester.length);
Scottsville[Scottsville.length] = createMarker(new GPoint(-77.74716187,43.02587509),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("T.j. Connor Elementary School",'Scottsville=' + Scottsville.length);
Spencerport[Spencerport.length] = createMarker(new GPoint(-77.80789948,43.18880081),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Terry Taylor Elementary School",'Spencerport=' + Spencerport.length);
Webster[Webster.length] = createMarker(new GPoint(-77.47541809,43.21892929),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Thomas High School",'Webster=' + Webster.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.62290192,43.15409851),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Thomas Jefferson MiddleSchool",'Rochester=' + Rochester.length);
Pittsford[Pittsford.length] = createMarker(new GPoint(-77.50911713,43.05406570),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Thornell Road School",'Pittsford=' + Pittsford.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.56586456,43.12624741),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Twelve Corners Middle School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.55379400,43.15330100),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Urban Choice Charter School",'Rochester=' + Rochester.length);
Hilton[Hilton.length] = createMarker(new GPoint(-77.79985809,43.29441071),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Village Elementary School",'Hilton=' + Hilton.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.73619080,43.13945770),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Walt Disney School",'Rochester=' + Rochester.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.69683075,43.12895203),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Washington Irving School",'Rochester=' + Rochester.length);
Webster[Webster.length] = createMarker(new GPoint(-77.47098541,43.20595551),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Webster-schroeder High School",'Webster=' + Webster.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.68630981,43.21189880),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("West Ridge School",'Rochester=' + Rochester.length);
Scottsville[Scottsville.length] = createMarker(new GPoint(-77.76655579,43.02800751),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Wheatland Chili High School",'Scottsville=' + Scottsville.length);
Spencerport[Spencerport.length] = createMarker(new GPoint(-77.75332642,43.17836380),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("William C. Munn School",'Spencerport=' + Spencerport.length);
Webster[Webster.length] = createMarker(new GPoint(-77.46642303,43.21824646),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Willink Middle School",'Webster=' + Webster.length);
Rochester[Rochester.length] = createMarker(new GPoint(-77.61596680,43.15443802),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Young Mothers Prog",'Rochester=' + Rochester.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(Brockport);
map.removeOverlays(Churchville);
map.removeOverlays(East_Rochester);
map.removeOverlays(Fairport);
map.removeOverlays(Henrietta);
map.removeOverlays(Hilton);
map.removeOverlays(Honeoye_Falls);
map.removeOverlays(Penfield);
map.removeOverlays(Pittsford);
map.removeOverlays(Rochester);
map.removeOverlays(Rush);
map.removeOverlays(Scottsville);
map.removeOverlays(Spencerport);
map.removeOverlays(Webster);
map.removeOverlays(West_Henrietta);
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(Brockport);map.removeOverlays(Brockport);
map.removeOverlays(Churchville);
map.removeOverlays(East_Rochester);
map.removeOverlays(Fairport);
map.removeOverlays(Henrietta);
map.removeOverlays(Hilton);
map.removeOverlays(Honeoye_Falls);
map.removeOverlays(Penfield);
map.removeOverlays(Pittsford);
map.removeOverlays(Rochester);
map.removeOverlays(Rush);
map.removeOverlays(Scottsville);
map.removeOverlays(Spencerport);
map.removeOverlays(Webster);
map.removeOverlays(West_Henrietta);
map.addOverlays(Brockport);
centerByArray(Brockport, false, false);
cntMarker += Brockport.length;
map.addOverlays(Churchville);
centerByArray(Churchville, false, false);
cntMarker += Churchville.length;
map.addOverlays(East_Rochester);
centerByArray(East_Rochester, false, false);
cntMarker += East_Rochester.length;
map.addOverlays(Fairport);
centerByArray(Fairport, false, false);
cntMarker += Fairport.length;
map.addOverlays(Henrietta);
centerByArray(Henrietta, false, false);
cntMarker += Henrietta.length;
map.addOverlays(Hilton);
centerByArray(Hilton, false, false);
cntMarker += Hilton.length;
map.addOverlays(Honeoye_Falls);
centerByArray(Honeoye_Falls, false, false);
cntMarker += Honeoye_Falls.length;
map.addOverlays(Penfield);
centerByArray(Penfield, false, false);
cntMarker += Penfield.length;
map.addOverlays(Pittsford);
centerByArray(Pittsford, false, false);
cntMarker += Pittsford.length;
map.addOverlays(Rochester);
centerByArray(Rochester, false, false);
cntMarker += Rochester.length;
map.addOverlays(Rush);
centerByArray(Rush, false, false);
cntMarker += Rush.length;
map.addOverlays(Scottsville);
centerByArray(Scottsville, false, false);
cntMarker += Scottsville.length;
map.addOverlays(Spencerport);
centerByArray(Spencerport, false, false);
cntMarker += Spencerport.length;
map.addOverlays(Webster);
centerByArray(Webster, false, false);
cntMarker += Webster.length;
map.addOverlays(West_Henrietta);
centerByArray(West_Henrietta, false, false);
cntMarker += West_Henrietta.length;
centerByArray(Brockport,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');
}
}