function addMarkers() { mySelect = document.getElementById('selection'); Stamford = [];Danbury = [];Bethel = [];Ridgefield = [];Bridgeport = [];Westport = [];Shelton = [];Trumbull = [];Norwalk = [];Brookfield = [];Fairfield = [];Stratford = [];Greenwich = [];Monroe = [];Wilton = [];New_Fairfield = [];Cos_Cob = [];Darien = [];New_Canaan = [];Riverside = [];Newtown = [];Easton = [];Weston = [];Redding = [];Rush = [];Sandy_Hook = [];Old_Greenwich = [];Rowayton = [];Sherman = [];mySelect.options[mySelect.options.length] = new Option("Bethel schools",'all=Bethel'); mySelect.options[mySelect.options.length] = new Option("Bridgeport schools",'all=Bridgeport'); mySelect.options[mySelect.options.length] = new Option("Brookfield schools",'all=Brookfield'); mySelect.options[mySelect.options.length] = new Option("Cos Cob schools",'all=Cos_Cob'); mySelect.options[mySelect.options.length] = new Option("Danbury schools",'all=Danbury'); mySelect.options[mySelect.options.length] = new Option("Darien schools",'all=Darien'); mySelect.options[mySelect.options.length] = new Option("Easton schools",'all=Easton'); mySelect.options[mySelect.options.length] = new Option("Fairfield schools",'all=Fairfield'); mySelect.options[mySelect.options.length] = new Option("Greenwich schools",'all=Greenwich'); mySelect.options[mySelect.options.length] = new Option("Monroe schools",'all=Monroe'); mySelect.options[mySelect.options.length] = new Option("New Canaan schools",'all=New_Canaan'); mySelect.options[mySelect.options.length] = new Option("New Fairfield schools",'all=New_Fairfield'); mySelect.options[mySelect.options.length] = new Option("Newtown schools",'all=Newtown'); mySelect.options[mySelect.options.length] = new Option("Norwalk schools",'all=Norwalk'); mySelect.options[mySelect.options.length] = new Option("Old Greenwich schools",'all=Old_Greenwich'); mySelect.options[mySelect.options.length] = new Option("Redding schools",'all=Redding'); mySelect.options[mySelect.options.length] = new Option("Ridgefield schools",'all=Ridgefield'); mySelect.options[mySelect.options.length] = new Option("Riverside schools",'all=Riverside'); mySelect.options[mySelect.options.length] = new Option("Rowayton schools",'all=Rowayton'); mySelect.options[mySelect.options.length] = new Option("Rush schools",'all=Rush'); mySelect.options[mySelect.options.length] = new Option("Sandy Hook schools",'all=Sandy_Hook'); mySelect.options[mySelect.options.length] = new Option("Shelton schools",'all=Shelton'); mySelect.options[mySelect.options.length] = new Option("Sherman schools",'all=Sherman'); mySelect.options[mySelect.options.length] = new Option("Stamford schools",'all=Stamford'); mySelect.options[mySelect.options.length] = new Option("Stratford schools",'all=Stratford'); mySelect.options[mySelect.options.length] = new Option("Trumbull schools",'all=Trumbull'); mySelect.options[mySelect.options.length] = new Option("Weston schools",'all=Weston'); mySelect.options[mySelect.options.length] = new Option("Westport schools",'all=Westport'); mySelect.options[mySelect.options.length] = new Option("Wilton schools",'all=Wilton'); mySelect.options[mySelect.options.length] = new Option("---------------------------",''); Stamford[Stamford.length] = createMarker(new GPoint(-73.54460144,41.08570099),"
",iconGr); mySelect.options[mySelect.options.length] = new Option("Academy Of Information Technology",'Stamford=' + Stamford.length); Danbury[Danbury.length] = createMarker(new GPoint(-73.44113922,41.40186310),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Alternative Center For Education",'Danbury=' + Danbury.length); Bethel[Bethel.length] = createMarker(new GPoint(-73.39483643,41.37981415),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Anna H. Rockwell School",'Bethel=' + Bethel.length); Ridgefield[Ridgefield.length] = createMarker(new GPoint(-73.49849701,41.30170059),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Barlow Mountain Elementary School",'Ridgefield=' + Ridgefield.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.18455505,41.18880081),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Barnum School",'Bridgeport=' + Bridgeport.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.20714569,41.17389679),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Bassick High School",'Bridgeport=' + Bridgeport.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.18210602,41.19968033),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Beardsley School",'Bridgeport=' + Bridgeport.length); Westport[Westport.length] = createMarker(new GPoint(-73.33345795,41.15649414),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Bedford Middle School",'Westport=' + Westport.length); Bethel[Bethel.length] = createMarker(new GPoint(-73.39525604,41.38094711),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Bethel High School",'Bethel=' + Bethel.length); Bethel[Bethel.length] = createMarker(new GPoint(-73.39617157,41.37837219),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Bethel Middle School",'Bethel=' + Bethel.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.22584534,41.15688324),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Black Rock School",'Bridgeport=' + Bridgeport.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.21322632,41.20630264),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Blackham School",'Bridgeport=' + Bridgeport.length); Shelton[Shelton.length] = createMarker(new GPoint(-73.18385315,41.28569412),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Booth Hill School",'Shelton=' + Shelton.length); Trumbull[Trumbull.length] = createMarker(new GPoint(-73.20600128,41.25370026),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Booth Hill School",'Trumbull=' + Trumbull.length); Ridgefield[Ridgefield.length] = createMarker(new GPoint(-73.44631195,41.27043915),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Branchville Elementary School",'Ridgefield=' + Ridgefield.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.20680237,41.21030045),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Bridge Academy",'Bridgeport=' + Bridgeport.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.19921875,41.18979263),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Bridgeport Community Correctional Center",'Bridgeport=' + Bridgeport.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.20920200,41.21405900),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Bridgeport Learning Center",'Bridgeport=' + Bridgeport.length); Norwalk[Norwalk.length] = createMarker(new GPoint(-73.43537140,41.08562088),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Brien Mcmahon High School",'Norwalk=' + Norwalk.length); Norwalk[Norwalk.length] = createMarker(new GPoint(-73.42306519,41.13029480),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Briggs High School",'Norwalk=' + Norwalk.length); Danbury[Danbury.length] = createMarker(new GPoint(-73.44098663,41.40844345),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Broadview Middle School",'Danbury=' + Danbury.length); Brookfield[Brookfield.length] = createMarker(new GPoint(-73.39080048,41.47847748),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Brookfield High School",'Brookfield=' + Brookfield.length); Fairfield[Fairfield.length] = createMarker(new GPoint(-73.23358154,41.16895676),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Brooklawn Academy",'Fairfield=' + Fairfield.length); Norwalk[Norwalk.length] = createMarker(new GPoint(-73.43708038,41.09006882),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Brookside Elementary School",'Norwalk=' + Norwalk.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.21514893,41.17385483),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Bryant School",'Bridgeport=' + Bridgeport.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.16492462,41.20017624),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Bullard-havens Vocational School",'Bridgeport=' + Bridgeport.length); Stratford[Stratford.length] = createMarker(new GPoint(-73.13615417,41.22589493),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Bunnell High School",'Stratford=' + Stratford.length); Fairfield[Fairfield.length] = createMarker(new GPoint(-73.28849400,41.19709600),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Burr Elementary School",'Fairfield=' + Fairfield.length); Trumbull[Trumbull.length] = createMarker(new GPoint(-73.20183563,41.23022842),"",iconGr); mySelect.options[mySelect.options.length] = new Option("C. E. S.",'Trumbull=' + Trumbull.length); Brookfield[Brookfield.length] = createMarker(new GPoint(-73.36581421,41.47364426),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Center Elementary School",'Brookfield=' + Brookfield.length); Stratford[Stratford.length] = createMarker(new GPoint(-73.12857056,41.19364166),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Center School",'Stratford=' + Stratford.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.19126900,41.18188000),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Central At Night",'Bridgeport=' + Bridgeport.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.20805359,41.18969727),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Central High School",'Bridgeport=' + Bridgeport.length); Greenwich[Greenwich.length] = createMarker(new GPoint(-73.60348511,41.04755020),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Central Middle School",'Greenwich=' + Greenwich.length); Monroe[Monroe.length] = createMarker(new GPoint(-73.23108673,41.34640503),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Chalk Hill Middle School",'Monroe=' + Monroe.length); Stratford[Stratford.length] = createMarker(new GPoint(-73.11721802,41.23854065),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Chapel School",'Stratford=' + Stratford.length); Wilton[Wilton.length] = createMarker(new GPoint(-73.43146515,41.20629501),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Cider Mill School",'Wilton=' + Wilton.length); Bethel[Bethel.length] = createMarker(new GPoint(-73.39483643,41.37981415),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Circle Of Friends",'Bethel=' + Bethel.length); Stamford[Stamford.length] = createMarker(new GPoint(-73.54636383,41.05843353),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Cloonan School",'Stamford=' + Stamford.length); Westport[Westport.length] = createMarker(new GPoint(-73.34838104,41.17568588),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Coleytown Elementary School",'Westport=' + Westport.length); Westport[Westport.length] = createMarker(new GPoint(-73.34967041,41.17869186),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Coleytown Middle School",'Westport=' + Westport.length); Norwalk[Norwalk.length] = createMarker(new GPoint(-73.42046356,41.09339523),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Columbus Elementary School",'Norwalk=' + Norwalk.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.19838715,41.18576431),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Columbus School",'Bridgeport=' + Bridgeport.length); New_Fairfield[New_Fairfield.length] = createMarker(new GPoint(-73.49411774,41.46229553),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Consolidated School",'New_Fairfield=' + New_Fairfield.length); Cos_Cob[Cos_Cob.length] = createMarker(new GPoint(-73.59656525,41.03909683),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Cos Cob School",'Cos_Cob=' + Cos_Cob.length); Norwalk[Norwalk.length] = createMarker(new GPoint(-73.40421295,41.15548325),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Cranbury Elementary School",'Norwalk=' + Norwalk.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.19446564,41.22462463),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Cross School",'Bridgeport=' + Bridgeport.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.21035767,41.17759705),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Curiale School",'Bridgeport=' + Bridgeport.length); Danbury[Danbury.length] = createMarker(new GPoint(-73.47246552,41.41579437),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Danbury High School",'Danbury=' + Danbury.length); Trumbull[Trumbull.length] = createMarker(new GPoint(-73.20041656,41.26966095),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Daniels Farm School",'Trumbull=' + Trumbull.length); Darien[Darien.length] = createMarker(new GPoint(-73.48884583,41.08328247),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Darien High School",'Darien=' + Darien.length); Stamford[Stamford.length] = createMarker(new GPoint(-73.53072357,41.10040665),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Davenport Ridge School",'Stamford=' + Stamford.length); Stratford[Stratford.length] = createMarker(new GPoint(-73.13953400,41.21114349),"",iconBl); mySelect.options[mySelect.options.length] = new Option("David Wooster Middle School",'Stratford=' + Stratford.length); Stamford[Stamford.length] = createMarker(new GPoint(-73.52414703,41.07777786),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Dolan School",'Stamford=' + Stamford.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.16452026,41.17800522),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Dunbar School",'Bridgeport=' + Bridgeport.length); Fairfield[Fairfield.length] = createMarker(new GPoint(-73.29145813,41.16269684),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Dwight Elementary School",'Fairfield=' + Fairfield.length); Ridgefield[Ridgefield.length] = createMarker(new GPoint(-73.49275208,41.27688599),"",iconBl); mySelect.options[mySelect.options.length] = new Option("East Ridge Middle School",'Ridgefield=' + Ridgefield.length); New_Canaan[New_Canaan.length] = createMarker(new GPoint(-73.47966003,41.14729309),"",iconRd); mySelect.options[mySelect.options.length] = new Option("East School",'New_Canaan=' + New_Canaan.length); Riverside[Riverside.length] = createMarker(new GPoint(-73.58126068,41.03308868),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Eastern Middle School",'Riverside=' + Riverside.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.16293335,41.19526672),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Edison School",'Bridgeport=' + Bridgeport.length); Shelton[Shelton.length] = createMarker(new GPoint(-73.13305664,41.31485748),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Elizabeth Shelton School",'Shelton=' + Shelton.length); Fairfield[Fairfield.length] = createMarker(new GPoint(-73.25905609,41.14421082),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Fairfield Early Childhood Center",'Fairfield=' + Fairfield.length); Fairfield[Fairfield.length] = createMarker(new GPoint(-73.26320700,41.15036800),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Fairfield Ludlowe High School",'Fairfield=' + Fairfield.length); Fairfield[Fairfield.length] = createMarker(new GPoint(-73.23385620,41.18929672),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Fairfield Warde High School",'Fairfield=' + Fairfield.length); Fairfield[Fairfield.length] = createMarker(new GPoint(-73.24964905,41.18798065),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Fairfield Woods Middle School",'Fairfield=' + Fairfield.length); Ridgefield[Ridgefield.length] = createMarker(new GPoint(-73.50016785,41.28142929),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Farmingville Elementary School",'Ridgefield=' + Ridgefield.length); Monroe[Monroe.length] = createMarker(new GPoint(-73.23108673,41.34640503),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Fawn Hollow Elementary School",'Monroe=' + Monroe.length); Norwalk[Norwalk.length] = createMarker(new GPoint(-73.45366669,41.11547470),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Fox Run Elementary School",'Norwalk=' + Norwalk.length); Bethel[Bethel.length] = createMarker(new GPoint(-73.39567566,41.38208008),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Frank A. Berry School",'Bethel=' + Bethel.length); Stratford[Stratford.length] = createMarker(new GPoint(-73.14785767,41.19269562),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Franklin School",'Stratford=' + Stratford.length); Trumbull[Trumbull.length] = createMarker(new GPoint(-73.20600128,41.25370026),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Frenchtown Elementary School",'Trumbull=' + Trumbull.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.17633820,41.19234467),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Garfield School",'Bridgeport=' + Bridgeport.length); Newtown[Newtown.length] = createMarker(new GPoint(-73.27588654,41.39599228),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Garner Correctional Institute High School",'Newtown=' + Newtown.length); Greenwich[Greenwich.length] = createMarker(new GPoint(-73.66307068,41.04099655),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Glenville School",'Greenwich=' + Greenwich.length); Danbury[Danbury.length] = createMarker(new GPoint(-73.43356323,41.42049408),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Great Plain School",'Danbury=' + Danbury.length); Westport[Westport.length] = createMarker(new GPoint(-73.32550049,41.13744354),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Green's Farms Elementary School",'Westport=' + Westport.length); Westport[Westport.length] = createMarker(new GPoint(-81.65208000,30.34881900),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Green's Farms School",'Westport=' + Westport.length); Greenwich[Greenwich.length] = createMarker(new GPoint(-73.61000061,41.03665161),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Greenwich High School",'Greenwich=' + Greenwich.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.15901947,41.19179916),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Hall School",'Bridgeport=' + Bridgeport.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.19132233,41.21690369),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Hallen School",'Bridgeport=' + Bridgeport.length); Greenwich[Greenwich.length] = createMarker(new GPoint(-73.63839722,41.01660919),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Hamilton Avenue School",'Greenwich=' + Greenwich.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.16768646,41.19085312),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Harding High School",'Bridgeport=' + Bridgeport.length); Stratford[Stratford.length] = createMarker(new GPoint(-73.11794281,41.23830795),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Harry B. Flood Middle School",'Stratford=' + Stratford.length); Stamford[Stamford.length] = createMarker(new GPoint(-73.54729462,41.05750656),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Hart Elementary School",'Stamford=' + Stamford.length); Newtown[Newtown.length] = createMarker(new GPoint(-73.30335999,41.41414642),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Hawley Elementary School",'Newtown=' + Newtown.length); Danbury[Danbury.length] = createMarker(new GPoint(-73.45270538,41.41307831),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Hayestown Avenue School",'Danbury=' + Danbury.length); Newtown[Newtown.length] = createMarker(new GPoint(-81.76555700,26.12645700),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Head O'meadow Elementary School",'Newtown=' + Newtown.length); Easton[Easton.length] = createMarker(new GPoint(-73.27455902,41.24449539),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Helen Keller Middle School",'Easton=' + Easton.length); Danbury[Danbury.length] = createMarker(new GPoint(-73.45428467,41.41331863),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Henry Abbott Vocational School",'Danbury=' + Danbury.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.16510773,41.19975281),"",iconRd); mySelect.options[mySelect.options.length] = new Option("High Horizons School",'Bridgeport=' + Bridgeport.length); Trumbull[Trumbull.length] = createMarker(new GPoint(-73.19903564,41.26325226),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Hillcrest Middle School",'Trumbull=' + Trumbull.length); Darien[Darien.length] = createMarker(new GPoint(-73.48816681,41.05806351),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Hindley Elementary School",'Darien=' + Darien.length); Fairfield[Fairfield.length] = createMarker(new GPoint(-73.24536133,41.17069244),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Holland Hill School",'Fairfield=' + Fairfield.length); Darien[Darien.length] = createMarker(new GPoint(-73.51119995,41.07790375),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Holmes Elementary School",'Darien=' + Darien.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.19869995,41.17869949),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Homebound",'Bridgeport=' + Bridgeport.length); Ridgefield[Ridgefield.length] = createMarker(new GPoint(-73.49849701,41.30170059),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Homebound",'Ridgefield=' + Ridgefield.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.16977692,41.21690750),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Hooker School",'Bridgeport=' + Bridgeport.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.20899200,41.17339706),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Howe School",'Bridgeport=' + Bridgeport.length); Brookfield[Brookfield.length] = createMarker(new GPoint(-73.41643524,41.44826126),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Huckleberry Hill Elementary School",'Brookfield=' + Brookfield.length); Weston[Weston.length] = createMarker(new GPoint(-73.38245392,41.20400238),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Hurlbutt Elementary School",'Weston=' + Weston.length); Wilton[Wilton.length] = createMarker(new GPoint(-73.43909454,41.17386246),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Ina E. Driscoll School",'Wilton=' + Wilton.length); Shelton[Shelton.length] = createMarker(new GPoint(-73.10018158,41.31280518),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Intermediate School",'Shelton=' + Shelton.length); Riverside[Riverside.length] = createMarker(new GPoint(-73.57533264,41.05216980),"",iconRd); mySelect.options[mySelect.options.length] = new Option("International School At Dundee",'Riverside=' + Riverside.length); Stamford[Stamford.length] = createMarker(new GPoint(-73.53959656,41.04850006),"",iconGr); mySelect.options[mySelect.options.length] = new Option("J. M. Wright Vocational School",'Stamford=' + Stamford.length); Trumbull[Trumbull.length] = createMarker(new GPoint(-73.22835541,41.25309753),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Jane Ryan School",'Trumbull=' + Trumbull.length); Norwalk[Norwalk.length] = createMarker(new GPoint(-73.42076111,41.11739731),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Jefferson Elementary School",'Norwalk=' + Norwalk.length); Fairfield[Fairfield.length] = createMarker(new GPoint(-73.24575806,41.18682098),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Jennings School",'Fairfield=' + Fairfield.length); Monroe[Monroe.length] = createMarker(new GPoint(-73.23015594,41.34583282),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Jockey Hollow Middle School",'Monroe=' + Monroe.length); Redding[Redding.length] = createMarker(new GPoint(-73.34474945,41.29790497),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Joel Barlow High School",'Redding=' + Redding.length); Redding[Redding.length] = createMarker(new GPoint(-73.43553162,41.32625961),"",iconBl); mySelect.options[mySelect.options.length] = new Option("John Read Middle School",'Redding=' + Redding.length); Stamford[Stamford.length] = createMarker(new GPoint(-73.52037811,41.06697083),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Julia A. Stark School",'Stamford=' + Stamford.length); Greenwich[Greenwich.length] = createMarker(new GPoint(-73.61999512,41.03109741),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Julian Curtiss School",'Greenwich=' + Greenwich.length); Stamford[Stamford.length] = createMarker(new GPoint(-73.51006317,41.04740524),"",iconRd); mySelect.options[mySelect.options.length] = new Option("K. T. Murphy School",'Stamford=' + Stamford.length); Norwalk[Norwalk.length] = createMarker(new GPoint(-73.45366669,41.11547470),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Kendall Elementary School",'Norwalk=' + Norwalk.length); Danbury[Danbury.length] = createMarker(new GPoint(-73.50229645,41.42444229),"",iconRd); mySelect.options[mySelect.options.length] = new Option("King Street Intermediate",'Danbury=' + Danbury.length); Danbury[Danbury.length] = createMarker(new GPoint(-73.49772644,41.42089081),"",iconRd); mySelect.options[mySelect.options.length] = new Option("King Street Primary School",'Danbury=' + Danbury.length); Westport[Westport.length] = createMarker(new GPoint(-73.35852100,41.14146700),"",iconRd); mySelect.options[mySelect.options.length] = new Option("King's Highway Elementary School",'Westport=' + Westport.length); Shelton[Shelton.length] = createMarker(new GPoint(-73.08248901,41.30922699),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Lafayette School",'Shelton=' + Shelton.length); Shelton[Shelton.length] = createMarker(new GPoint(-73.09808350,41.28341675),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Long Hill School",'Shelton=' + Shelton.length); Westport[Westport.length] = createMarker(new GPoint(-73.31478882,41.14412689),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Long Lots School",'Westport=' + Westport.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.21846771,41.16094208),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Longfellow School",'Bridgeport=' + Bridgeport.length); Stratford[Stratford.length] = createMarker(new GPoint(-73.12607574,41.15353394),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Lordship School",'Stratford=' + Stratford.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.17418671,41.19340515),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Luis Munoz Marin School",'Bridgeport=' + Bridgeport.length); Trumbull[Trumbull.length] = createMarker(new GPoint(-73.24656677,41.25325394),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Madison Middle School",'Trumbull=' + Trumbull.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.22184753,41.16422653),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Madison School",'Bridgeport=' + Bridgeport.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.19800568,41.19495773),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Maplewood Annex Elementary School",'Bridgeport=' + Bridgeport.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.20972443,41.17884827),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Maplewood School",'Bridgeport=' + Bridgeport.length); Norwalk[Norwalk.length] = createMarker(new GPoint(-73.39601135,41.09278488),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Marvin Elementary School",'Norwalk=' + Norwalk.length); Monroe[Monroe.length] = createMarker(new GPoint(-73.19906616,41.34730911),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Masuk High School",'Monroe=' + Monroe.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.16046906,41.17937851),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Mckinley School",'Bridgeport=' + Bridgeport.length); Fairfield[Fairfield.length] = createMarker(new GPoint(-73.26560211,41.16429901),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Mckinley School",'Fairfield=' + Fairfield.length); New_Fairfield[New_Fairfield.length] = createMarker(new GPoint(-73.49897003,41.46099472),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Meeting House Hill School",'New_Fairfield=' + New_Fairfield.length); Rush[Rush.length] = createMarker(new GPoint(-104.09181213,38.82602310),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Miami/yoder Junior-senior High School",'Rush=' + Rush.length); Newtown[Newtown.length] = createMarker(new GPoint(-73.27167511,41.36712646),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Middle Gate Elementary School",'Newtown=' + Newtown.length); Trumbull[Trumbull.length] = createMarker(new GPoint(-73.21177673,41.25011444),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Middlebrook School",'Trumbull=' + Trumbull.length); Wilton[Wilton.length] = createMarker(new GPoint(-73.43409729,41.20249939),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Middlebrook School",'Wilton=' + Wilton.length); Darien[Darien.length] = createMarker(new GPoint(-73.49791718,41.07268524),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Middlesex Middle School",'Darien=' + Darien.length); Fairfield[Fairfield.length] = createMarker(new GPoint(-73.29335785,41.14029694),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Mill Hill School",'Fairfield=' + Fairfield.length); Danbury[Danbury.length] = createMarker(new GPoint(-73.48538971,41.38734055),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Mill Ridge Intermediate",'Danbury=' + Danbury.length); Danbury[Danbury.length] = createMarker(new GPoint(-73.48258209,41.39116287),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Mill Ridge Primary School",'Danbury=' + Danbury.length); Shelton[Shelton.length] = createMarker(new GPoint(-73.17098999,41.30369568),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Mohegan School",'Shelton=' + Shelton.length); Monroe[Monroe.length] = createMarker(new GPoint(-73.22250366,41.30773544),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Monroe Elementary School",'Monroe=' + Monroe.length); Danbury[Danbury.length] = createMarker(new GPoint(-73.46556854,41.39529419),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Morris Street School",'Danbury=' + Danbury.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.16510773,41.19975281),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Multicultural Magnet School",'Bridgeport=' + Bridgeport.length); Norwalk[Norwalk.length] = createMarker(new GPoint(-73.39096069,41.11935425),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Naramake Elementary School",'Norwalk=' + Norwalk.length); Norwalk[Norwalk.length] = createMarker(new GPoint(-73.39619446,41.11659622),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Nathan Hale Middle School",'Norwalk=' + Norwalk.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.17936707,41.18696213),"",iconRd); mySelect.options[mySelect.options.length] = new Option("New Beginnings Family Academy District",'Bridgeport=' + Bridgeport.length); New_Canaan[New_Canaan.length] = createMarker(new GPoint(-73.49327850,41.12937546),"",iconGr); mySelect.options[mySelect.options.length] = new Option("New Canaan High School",'New_Canaan=' + New_Canaan.length); New_Fairfield[New_Fairfield.length] = createMarker(new GPoint(-73.50344086,41.45875168),"",iconGr); mySelect.options[mySelect.options.length] = new Option("New Fairfield High School",'New_Fairfield=' + New_Fairfield.length); New_Fairfield[New_Fairfield.length] = createMarker(new GPoint(-73.50717163,41.45879364),"",iconBl); mySelect.options[mySelect.options.length] = new Option("New Fairfield Middle School",'New_Fairfield=' + New_Fairfield.length); Greenwich[Greenwich.length] = createMarker(new GPoint(-73.63388824,41.01214600),"",iconRd); mySelect.options[mySelect.options.length] = new Option("New Lebanon School",'Greenwich=' + Greenwich.length); Stamford[Stamford.length] = createMarker(new GPoint(-73.54460144,41.08570099),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Newfield School",'Stamford=' + Stamford.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.16807556,41.17419052),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Newfield School",'Bridgeport=' + Bridgeport.length); Sandy_Hook[Sandy_Hook.length] = createMarker(new GPoint(-73.27397919,41.41287231),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Newtown High School",'Sandy_Hook=' + Sandy_Hook.length); Newtown[Newtown.length] = createMarker(new GPoint(-73.30320740,41.41389465),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Newtown Middle School",'Newtown=' + Newtown.length); Newtown[Newtown.length] = createMarker(new GPoint(-73.28823000,41.40562200),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Newtown Preschool",'Newtown=' + Newtown.length); Stratford[Stratford.length] = createMarker(new GPoint(-73.13958740,41.20227051),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Nichols School",'Stratford=' + Stratford.length); Riverside[Riverside.length] = createMarker(new GPoint(-73.57856750,41.05729675),"",iconRd); mySelect.options[mySelect.options.length] = new Option("North Mianus School",'Riverside=' + Riverside.length); Fairfield[Fairfield.length] = createMarker(new GPoint(-73.24674988,41.20758820),"",iconRd); mySelect.options[mySelect.options.length] = new Option("North Stratfield School",'Fairfield=' + Fairfield.length); Greenwich[Greenwich.length] = createMarker(new GPoint(-73.61721039,41.05799484),"",iconRd); mySelect.options[mySelect.options.length] = new Option("North Street School",'Greenwich=' + Greenwich.length); Stamford[Stamford.length] = createMarker(new GPoint(-73.54708862,41.12348938),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Northeast School",'Stamford=' + Stamford.length); Norwalk[Norwalk.length] = createMarker(new GPoint(-73.40599823,41.13240051),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Norwalk High School",'Norwalk=' + Norwalk.length); Old_Greenwich[Old_Greenwich.length] = createMarker(new GPoint(-73.56306458,41.02019882),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Old Greenwich School",'Old_Greenwich=' + Old_Greenwich.length); Fairfield[Fairfield.length] = createMarker(new GPoint(-73.25635529,41.17619705),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Osborn Hill School",'Fairfield=' + Fairfield.length); Darien[Darien.length] = createMarker(new GPoint(-73.48336792,41.10339355),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Ox Ridge Elementary School",'Darien=' + Darien.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.18903100,41.17737200),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Parent-children Program",'Bridgeport=' + Bridgeport.length); Danbury[Danbury.length] = createMarker(new GPoint(-73.46372986,41.38676453),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Park Avenue School",'Danbury=' + Danbury.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.20215400,41.16922400),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Park City Academy",'Bridgeport=' + Bridgeport.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.19101715,41.16466522),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Park City Alternative",'Bridgeport=' + Bridgeport.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.20277405,41.21933365),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Park City Magnet School",'Bridgeport=' + Bridgeport.length); Greenwich[Greenwich.length] = createMarker(new GPoint(-73.65408325,41.11035538),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Parkway School",'Greenwich=' + Greenwich.length); Danbury[Danbury.length] = createMarker(new GPoint(-73.45536804,41.42186737),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Pembroke School",'Danbury=' + Danbury.length); Norwalk[Norwalk.length] = createMarker(new GPoint(-73.44386292,41.12249756),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Ponus Ridge Middle School",'Norwalk=' + Norwalk.length); New_Canaan[New_Canaan.length] = createMarker(new GPoint(-73.49420166,41.14929962),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Pre-school Speech At Saxe Middle School",'New_Canaan=' + New_Canaan.length); Trumbull[Trumbull.length] = createMarker(new GPoint(-73.24656677,41.25325394),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Preschool Integration Program",'Trumbull=' + Trumbull.length); Stamford[Stamford.length] = createMarker(new GPoint(-73.54172516,41.05045700),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Preschool Speech Services",'Stamford=' + Stamford.length); Bethel[Bethel.length] = createMarker(new GPoint(-73.39939880,41.38240051),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Ralph M. T. Johnson School",'Bethel=' + Bethel.length); Bethel[Bethel.length] = createMarker(new GPoint(-73.39488983,41.37883377),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Ralph M.t. Johnson School",'Bethel=' + Bethel.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.19934845,41.20264053),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Read School",'Bridgeport=' + Bridgeport.length); Redding[Redding.length] = createMarker(new GPoint(-73.38489532,41.30997086),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Redding Elementary School",'Redding=' + Redding.length); Newtown[Newtown.length] = createMarker(new GPoint(-73.31809998,41.39889908),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Reed Intermediate School",'Newtown=' + Newtown.length); Ridgefield[Ridgefield.length] = createMarker(new GPoint(-10.00000000,10.00000000),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Ridgebury Elementary School",'Ridgefield=' + Ridgefield.length); Ridgefield[Ridgefield.length] = createMarker(new GPoint(-73.52957153,41.32625580),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Ridgefield High School",'Ridgefield=' + Ridgefield.length); Stamford[Stamford.length] = createMarker(new GPoint(-73.54802704,41.08390427),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Rippowam Middle School",'Stamford=' + Stamford.length); Fairfield[Fairfield.length] = createMarker(new GPoint(-73.26648712,41.16242218),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Riverfield School",'Fairfield=' + Fairfield.length); Riverside[Riverside.length] = createMarker(new GPoint(-73.57886505,41.03344727),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Riverside School",'Riverside=' + Riverside.length); Danbury[Danbury.length] = createMarker(new GPoint(-73.44453430,41.40090179),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Roberts Avenue School",'Danbury=' + Danbury.length); Fairfield[Fairfield.length] = createMarker(new GPoint(-73.25905609,41.14421082),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Roger Ludlowe Middle School",'Fairfield=' + Fairfield.length); Danbury[Danbury.length] = createMarker(new GPoint(-73.44409943,41.38612747),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Rogers Park Middle School",'Danbury=' + Danbury.length); Stamford[Stamford.length] = createMarker(new GPoint(-73.52086639,41.05249786),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Rogers School",'Stamford=' + Stamford.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.19601440,41.17100906),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Roosevelt School",'Bridgeport=' + Bridgeport.length); Norwalk[Norwalk.length] = createMarker(new GPoint(-73.43386078,41.07969666),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Roton Middle School",'Norwalk=' + Norwalk.length); Rowayton[Rowayton.length] = createMarker(new GPoint(-73.43896484,41.06749725),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Rowayton School",'Rowayton=' + Rowayton.length); Stamford[Stamford.length] = createMarker(new GPoint(-73.53922272,41.05334091),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Roxbury School",'Stamford=' + Stamford.length); Darien[Darien.length] = createMarker(new GPoint(-73.47224426,41.08639145),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Royle Elementary School",'Darien=' + Darien.length); Easton[Easton.length] = createMarker(new GPoint(-73.29508209,41.24987793),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Samuel Staples Elementary School",'Easton=' + Easton.length); Sandy_Hook[Sandy_Hook.length] = createMarker(new GPoint(-73.27828979,41.42225647),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Sandy Hook Elementary School",'Sandy_Hook=' + Sandy_Hook.length); Westport[Westport.length] = createMarker(new GPoint(-73.36528778,41.13433838),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Saugatuck Elementary School",'Westport=' + Westport.length); New_Canaan[New_Canaan.length] = createMarker(new GPoint(-73.48758698,41.13160324),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Saxe Middle School",'New_Canaan=' + New_Canaan.length); Stamford[Stamford.length] = createMarker(new GPoint(-73.55643463,41.14037704),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Scofield Middle School",'Stamford=' + Stamford.length); Ridgefield[Ridgefield.length] = createMarker(new GPoint(-73.49847900,41.28151000),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Scotland Elementary School",'Ridgefield=' + Ridgefield.length); Ridgefield[Ridgefield.length] = createMarker(new GPoint(-73.49849701,41.30170059),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Scotts Ridge Middle School",'Ridgefield=' + Ridgefield.length); Stratford[Stratford.length] = createMarker(new GPoint(-73.14933777,41.21875381),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Second Hill Lane School",'Stratford=' + Stratford.length); Danbury[Danbury.length] = createMarker(new GPoint(-73.42046356,41.39399338),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Shelter Rock School",'Danbury=' + Danbury.length); Shelton[Shelton.length] = createMarker(new GPoint(-73.11662292,41.32079315),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Shelton High School",'Shelton=' + Shelton.length); Fairfield[Fairfield.length] = createMarker(new GPoint(-73.24565887,41.13883972),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Sherman School",'Fairfield=' + Fairfield.length); Sherman[Sherman.length] = createMarker(new GPoint(-73.49330139,41.57329941),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Sherman School",'Sherman=' + Sherman.length); Norwalk[Norwalk.length] = createMarker(new GPoint(-73.42036438,41.09596252),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Side By Side Community School",'Norwalk=' + Norwalk.length); Norwalk[Norwalk.length] = createMarker(new GPoint(-73.44086456,41.14829636),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Silvermine Elementary School",'Norwalk=' + Norwalk.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.16030121,41.20420456),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Six-six Magnet School",'Bridgeport=' + Bridgeport.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.22714233,41.21493530),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Skane Center",'Bridgeport=' + Bridgeport.length); New_Canaan[New_Canaan.length] = createMarker(new GPoint(-73.48744202,41.13199997),"",iconRd); mySelect.options[mySelect.options.length] = new Option("South School",'New_Canaan=' + New_Canaan.length); Danbury[Danbury.length] = createMarker(new GPoint(-73.44367981,41.38741684),"",iconRd); mySelect.options[mySelect.options.length] = new Option("South Street School",'Danbury=' + Danbury.length); Stamford[Stamford.length] = createMarker(new GPoint(-73.52216339,41.07469559),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Springdale School",'Stamford=' + Stamford.length); Danbury[Danbury.length] = createMarker(new GPoint(-73.42839813,41.43425369),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Stadley Rough School",'Danbury=' + Danbury.length); Stamford[Stamford.length] = createMarker(new GPoint(-73.53646800,41.05933200),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Stamford Academy",'Stamford=' + Stamford.length); Stamford[Stamford.length] = createMarker(new GPoint(-73.53260040,41.06139755),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Stamford High School",'Stamford=' + Stamford.length); Westport[Westport.length] = createMarker(new GPoint(-73.33178711,41.15404510),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Staples High School",'Westport=' + Westport.length); Monroe[Monroe.length] = createMarker(new GPoint(-73.25495911,41.31540680),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Stepney Elementary School",'Monroe=' + Monroe.length); Stamford[Stamford.length] = createMarker(new GPoint(-73.55947113,41.05809784),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Stillmeadow School",'Stamford=' + Stamford.length); Fairfield[Fairfield.length] = createMarker(new GPoint(-73.23670959,41.19509125),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Stratfield School",'Fairfield=' + Fairfield.length); Stratford[Stratford.length] = createMarker(new GPoint(-73.13945770,41.17976379),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Stratford Academy",'Stratford=' + Stratford.length); Stratford[Stratford.length] = createMarker(new GPoint(-73.13246918,41.19701767),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Stratford High School",'Stratford=' + Stratford.length); Shelton[Shelton.length] = createMarker(new GPoint(-73.07474700,41.29118400),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Sunnyside School",'Shelton=' + Shelton.length); Trumbull[Trumbull.length] = createMarker(new GPoint(-73.24295044,41.27539444),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Tashua School",'Trumbull=' + Trumbull.length); Wilton[Wilton.length] = createMarker(new GPoint(-73.43654633,41.17637634),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Tilford W. Miller School",'Wilton=' + Wilton.length); Darien[Darien.length] = createMarker(new GPoint(-73.45872498,41.07357788),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Tokeneke Elementary School",'Darien=' + Darien.length); Fairfield[Fairfield.length] = createMarker(new GPoint(-73.25905609,41.14421082),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Tomlinson Middle School",'Fairfield=' + Fairfield.length); Stamford[Stamford.length] = createMarker(new GPoint(-73.52206421,41.08019638),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Toquam Magnet Elementary School",'Stamford=' + Stamford.length); Norwalk[Norwalk.length] = createMarker(new GPoint(-73.41271210,41.12218475),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Tracey School",'Norwalk=' + Norwalk.length); Stamford[Stamford.length] = createMarker(new GPoint(-73.53900146,41.05350113),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Trailblazers Academy",'Stamford=' + Stamford.length); Trumbull[Trumbull.length] = createMarker(new GPoint(-73.19258118,41.26517105),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Trumbull High School",'Trumbull=' + Trumbull.length); Stamford[Stamford.length] = createMarker(new GPoint(-73.54346466,41.10069656),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Turn Of River School",'Stamford=' + Stamford.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.18725200,41.16557800),"",iconGr); mySelect.options[mySelect.options.length] = new Option("University School",'Bridgeport=' + Bridgeport.length); Ridgefield[Ridgefield.length] = createMarker(new GPoint(-73.49781036,41.28053284),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Veterans Park Elementary School",'Ridgefield=' + Ridgefield.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.17760468,41.18220520),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Waltersville School",'Bridgeport=' + Bridgeport.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.20246124,41.18710327),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Webster School",'Bridgeport=' + Bridgeport.length); Norwalk[Norwalk.length] = createMarker(new GPoint(-73.41450500,41.13459778),"",iconBl); mySelect.options[mySelect.options.length] = new Option("West Rocks Middle School",'Norwalk=' + Norwalk.length); New_Canaan[New_Canaan.length] = createMarker(new GPoint(-73.45646667,41.13029480),"",iconRd); mySelect.options[mySelect.options.length] = new Option("West School",'New_Canaan=' + New_Canaan.length); Greenwich[Greenwich.length] = createMarker(new GPoint(-73.64880371,41.01030731),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Western Middle School",'Greenwich=' + Greenwich.length); Stamford[Stamford.length] = createMarker(new GPoint(-73.56514740,41.09053040),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Westhill High School",'Stamford=' + Stamford.length); Weston[Weston.length] = createMarker(new GPoint(-73.38234711,41.21069336),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Weston High School",'Weston=' + Weston.length); Weston[Weston.length] = createMarker(new GPoint(-73.38010000,41.20966700),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Weston Intermediate School",'Weston=' + Weston.length); Weston[Weston.length] = createMarker(new GPoint(-73.38232422,41.21195602),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Weston Middle School",'Weston=' + Weston.length); Stamford[Stamford.length] = createMarker(new GPoint(-73.55854797,41.05664444),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Westover School",'Stamford=' + Stamford.length); Brookfield[Brookfield.length] = createMarker(new GPoint(-73.37676239,41.44179535),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Whisconier Middle School",'Brookfield=' + Brookfield.length); Stratford[Stratford.length] = createMarker(new GPoint(-73.13486481,41.22208786),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Whitney School",'Stratford=' + Stratford.length); Stratford[Stratford.length] = createMarker(new GPoint(-73.12212372,41.20729446),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Wilcoxson School",'Stratford=' + Stratford.length); Wilton[Wilton.length] = createMarker(new GPoint(-73.43170929,41.21042252),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Wilton High School",'Wilton=' + Wilton.length); Bridgeport[Bridgeport.length] = createMarker(new GPoint(-73.23241425,41.22160721),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Winthrop School",'Bridgeport=' + Bridgeport.length); Norwalk[Norwalk.length] = createMarker(new GPoint(-73.40820312,41.11759949),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Wolfpit School",'Norwalk=' + Norwalk.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(Bethel); map.removeOverlays(Bridgeport); map.removeOverlays(Brookfield); map.removeOverlays(Cos_Cob); map.removeOverlays(Danbury); map.removeOverlays(Darien); map.removeOverlays(Easton); map.removeOverlays(Fairfield); map.removeOverlays(Greenwich); map.removeOverlays(Monroe); map.removeOverlays(New_Canaan); map.removeOverlays(New_Fairfield); map.removeOverlays(Newtown); map.removeOverlays(Norwalk); map.removeOverlays(Old_Greenwich); map.removeOverlays(Redding); map.removeOverlays(Ridgefield); map.removeOverlays(Riverside); map.removeOverlays(Rowayton); map.removeOverlays(Rush); map.removeOverlays(Sandy_Hook); map.removeOverlays(Shelton); map.removeOverlays(Sherman); map.removeOverlays(Stamford); map.removeOverlays(Stratford); map.removeOverlays(Trumbull); map.removeOverlays(Weston); map.removeOverlays(Westport); map.removeOverlays(Wilton); 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(Stamford);map.removeOverlays(Bethel); map.removeOverlays(Bridgeport); map.removeOverlays(Brookfield); map.removeOverlays(Cos_Cob); map.removeOverlays(Danbury); map.removeOverlays(Darien); map.removeOverlays(Easton); map.removeOverlays(Fairfield); map.removeOverlays(Greenwich); map.removeOverlays(Monroe); map.removeOverlays(New_Canaan); map.removeOverlays(New_Fairfield); map.removeOverlays(Newtown); map.removeOverlays(Norwalk); map.removeOverlays(Old_Greenwich); map.removeOverlays(Redding); map.removeOverlays(Ridgefield); map.removeOverlays(Riverside); map.removeOverlays(Rowayton); map.removeOverlays(Rush); map.removeOverlays(Sandy_Hook); map.removeOverlays(Shelton); map.removeOverlays(Sherman); map.removeOverlays(Stamford); map.removeOverlays(Stratford); map.removeOverlays(Trumbull); map.removeOverlays(Weston); map.removeOverlays(Westport); map.removeOverlays(Wilton); map.addOverlays(Bethel); centerByArray(Bethel, false, false); cntMarker += Bethel.length; map.addOverlays(Bridgeport); centerByArray(Bridgeport, false, false); cntMarker += Bridgeport.length; map.addOverlays(Brookfield); centerByArray(Brookfield, false, false); cntMarker += Brookfield.length; map.addOverlays(Cos_Cob); centerByArray(Cos_Cob, false, false); cntMarker += Cos_Cob.length; map.addOverlays(Danbury); centerByArray(Danbury, false, false); cntMarker += Danbury.length; map.addOverlays(Darien); centerByArray(Darien, false, false); cntMarker += Darien.length; map.addOverlays(Easton); centerByArray(Easton, false, false); cntMarker += Easton.length; map.addOverlays(Fairfield); centerByArray(Fairfield, false, false); cntMarker += Fairfield.length; map.addOverlays(Greenwich); centerByArray(Greenwich, false, false); cntMarker += Greenwich.length; map.addOverlays(Monroe); centerByArray(Monroe, false, false); cntMarker += Monroe.length; map.addOverlays(New_Canaan); centerByArray(New_Canaan, false, false); cntMarker += New_Canaan.length; map.addOverlays(New_Fairfield); centerByArray(New_Fairfield, false, false); cntMarker += New_Fairfield.length; map.addOverlays(Newtown); centerByArray(Newtown, false, false); cntMarker += Newtown.length; map.addOverlays(Norwalk); centerByArray(Norwalk, false, false); cntMarker += Norwalk.length; map.addOverlays(Old_Greenwich); centerByArray(Old_Greenwich, false, false); cntMarker += Old_Greenwich.length; map.addOverlays(Redding); centerByArray(Redding, false, false); cntMarker += Redding.length; map.addOverlays(Ridgefield); centerByArray(Ridgefield, false, false); cntMarker += Ridgefield.length; map.addOverlays(Riverside); centerByArray(Riverside, false, false); cntMarker += Riverside.length; map.addOverlays(Rowayton); centerByArray(Rowayton, false, false); cntMarker += Rowayton.length; map.addOverlays(Rush); centerByArray(Rush, false, false); cntMarker += Rush.length; map.addOverlays(Sandy_Hook); centerByArray(Sandy_Hook, false, false); cntMarker += Sandy_Hook.length; map.addOverlays(Shelton); centerByArray(Shelton, false, false); cntMarker += Shelton.length; map.addOverlays(Sherman); centerByArray(Sherman, false, false); cntMarker += Sherman.length; map.addOverlays(Stamford); centerByArray(Stamford, false, false); cntMarker += Stamford.length; map.addOverlays(Stratford); centerByArray(Stratford, false, false); cntMarker += Stratford.length; map.addOverlays(Trumbull); centerByArray(Trumbull, false, false); cntMarker += Trumbull.length; map.addOverlays(Weston); centerByArray(Weston, false, false); cntMarker += Weston.length; map.addOverlays(Westport); centerByArray(Westport, false, false); cntMarker += Westport.length; map.addOverlays(Wilton); centerByArray(Wilton, false, false); cntMarker += Wilton.length; centerByArray(Stamford,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'); } }