function addMarkers()
{
mySelect = document.getElementById('selection');
Silver_Spring = [];Kensington = [];Rockville = [];Bethesda = [];Potomac = [];Olney = [];Burtonsville = [];Gaithersburg = [];Germantown = [];Chevy_Chase = [];Clarksburg = [];Damascus = [];Garrett_Park = [];Brookeville = [];Poolesville = [];Dickerson = [];Takoma_Park = [];Derwood = [];Sandy_Spring = [];mySelect.options[mySelect.options.length] = new Option("Bethesda schools",'all=Bethesda');
mySelect.options[mySelect.options.length] = new Option("Brookeville schools",'all=Brookeville');
mySelect.options[mySelect.options.length] = new Option("Burtonsville schools",'all=Burtonsville');
mySelect.options[mySelect.options.length] = new Option("Chevy Chase schools",'all=Chevy_Chase');
mySelect.options[mySelect.options.length] = new Option("Clarksburg schools",'all=Clarksburg');
mySelect.options[mySelect.options.length] = new Option("Damascus schools",'all=Damascus');
mySelect.options[mySelect.options.length] = new Option("Derwood schools",'all=Derwood');
mySelect.options[mySelect.options.length] = new Option("Dickerson schools",'all=Dickerson');
mySelect.options[mySelect.options.length] = new Option("Gaithersburg schools",'all=Gaithersburg');
mySelect.options[mySelect.options.length] = new Option("Garrett Park schools",'all=Garrett_Park');
mySelect.options[mySelect.options.length] = new Option("Germantown schools",'all=Germantown');
mySelect.options[mySelect.options.length] = new Option("Kensington schools",'all=Kensington');
mySelect.options[mySelect.options.length] = new Option("Olney schools",'all=Olney');
mySelect.options[mySelect.options.length] = new Option("Poolesville schools",'all=Poolesville');
mySelect.options[mySelect.options.length] = new Option("Potomac schools",'all=Potomac');
mySelect.options[mySelect.options.length] = new Option("Rockville schools",'all=Rockville');
mySelect.options[mySelect.options.length] = new Option("Sandy Spring schools",'all=Sandy_Spring');
mySelect.options[mySelect.options.length] = new Option("Silver Spring schools",'all=Silver_Spring');
mySelect.options[mySelect.options.length] = new Option("Takoma Park schools",'all=Takoma_Park');
mySelect.options[mySelect.options.length] = new Option("---------------------------",'');
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.07183600,39.06450800),"
",iconBl);
mySelect.options[mySelect.options.length] = new Option("A. Mario Loiderman Middle School",'Silver_Spring=' + Silver_Spring.length);
Kensington[Kensington.length] = createMarker(new GPoint(-77.07075500,39.03874588),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Albert Einstein High School",'Kensington=' + Kensington.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.07828522,39.06146240),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alternative Programs",'Rockville=' + Rockville.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.04998016,39.09045029),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Argyle Middle School",'Silver_Spring=' + Silver_Spring.length);
Bethesda[Bethesda.length] = createMarker(new GPoint(-77.12807465,39.02004242),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ashburton Elementary School",'Bethesda=' + Bethesda.length);
Bethesda[Bethesda.length] = createMarker(new GPoint(-77.13623047,38.97433853),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bannockburn Elementary School",'Bethesda=' + Bethesda.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.16192627,39.08723831),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Beall Elementary School",'Rockville=' + Rockville.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.05574799,39.08276749),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bel Pre Elementary School",'Silver_Spring=' + Silver_Spring.length);
Potomac[Potomac.length] = createMarker(new GPoint(-77.16764069,39.03120804),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bells Mill Elementary School",'Potomac=' + Potomac.length);
Olney[Olney.length] = createMarker(new GPoint(-77.06710052,39.17775726),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Belmont Elementary School",'Olney=' + Olney.length);
Burtonsville[Burtonsville.length] = createMarker(new GPoint(-76.94799042,39.09738541),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Benjamin Banneker Middle School",'Burtonsville=' + Burtonsville.length);
Bethesda[Bethesda.length] = createMarker(new GPoint(-77.09870148,38.98604202),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bethesda Elementary School",'Bethesda=' + Bethesda.length);
Bethesda[Bethesda.length] = createMarker(new GPoint(-77.08762360,38.98579788),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Bethesda-chevy Chase High School",'Bethesda=' + Bethesda.length);
Potomac[Potomac.length] = createMarker(new GPoint(-77.17516327,39.05233002),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Beverly Farms Elementary School",'Potomac=' + Potomac.length);
Bethesda[Bethesda.length] = createMarker(new GPoint(-77.11777496,38.99853134),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bradley Hills Elementary School",'Bethesda=' + Bethesda.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-76.97344208,39.11033630),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Briggs Chaney Middle School",'Silver_Spring=' + Silver_Spring.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-76.98432922,39.00815582),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Broad Acres Elementary School",'Silver_Spring=' + Silver_Spring.length);
Olney[Olney.length] = createMarker(new GPoint(-77.05167389,39.15752029),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Brooke Grove Elementary School",'Olney=' + Olney.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.09116364,39.08279419),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Brookhaven Elementary School",'Rockville=' + Rockville.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.22821808,39.14136124),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Brown Station Elementary School",'Gaithersburg=' + Gaithersburg.length);
Bethesda[Bethesda.length] = createMarker(new GPoint(-77.14221954,38.98911667),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Burning Tree Elementary School",'Bethesda=' + Bethesda.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.00283813,39.03874207),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Burnt Mills Elementary School",'Silver_Spring=' + Silver_Spring.length);
Burtonsville[Burtonsville.length] = createMarker(new GPoint(-76.93613434,39.10872650),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Burtonsville Elementary School",'Burtonsville=' + Burtonsville.length);
Potomac[Potomac.length] = createMarker(new GPoint(-77.17276001,39.03051758),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Cabin John Middle School",'Potomac=' + Potomac.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.14531708,39.12886810),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Candlewood Elementary School",'Rockville=' + Rockville.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-76.99389648,39.06950378),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cannon Road Elementary School",'Silver_Spring=' + Silver_Spring.length);
Germantown[Germantown.length] = createMarker(new GPoint(-77.23394775,39.19050598),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Captain James E. Daly Elementary School",'Germantown=' + Germantown.length);
Bethesda[Bethesda.length] = createMarker(new GPoint(-77.17310333,38.98236465),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Carderock Springs Elementary School",'Bethesda=' + Bethesda.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.11065674,39.07611465),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Carl Sandburg Center",'Rockville=' + Rockville.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.08678436,39.13690567),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cashell Elementary School",'Rockville=' + Rockville.length);
Germantown[Germantown.length] = createMarker(new GPoint(-77.23237610,39.25109863),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cedar Grove Elementary School",'Germantown=' + Germantown.length);
Chevy_Chase[Chevy_Chase.length] = createMarker(new GPoint(-77.07913971,38.97785187),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Chevy Chase Elementary School",'Chevy_Chase=' + Chevy_Chase.length);
Clarksburg[Clarksburg.length] = createMarker(new GPoint(-77.28027344,39.23820496),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Clarksburg Elementary School",'Clarksburg=' + Clarksburg.length);
Damascus[Damascus.length] = createMarker(new GPoint(-77.20644379,39.26700211),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Clearspring Elementary School",'Damascus=' + Damascus.length);
Germantown[Germantown.length] = createMarker(new GPoint(-77.26354218,39.15762329),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Clopper Mill Elementary School",'Germantown=' + Germantown.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-76.95112610,39.08426666),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cloverly Elementary School",'Silver_Spring=' + Silver_Spring.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.02973938,39.04924393),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Col. E. Brooke Lee Middle School",'Silver_Spring=' + Silver_Spring.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.11931610,39.12966156),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Col. Zadok Magruder High School",'Rockville=' + Rockville.length);
Potomac[Potomac.length] = createMarker(new GPoint(-77.18744659,39.06016922),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cold Spring Elementary School",'Potomac=' + Potomac.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.16190338,39.10375977),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("College Gardens Elementary School",'Rockville=' + Rockville.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-76.98678589,39.02701569),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cresthaven Elementary School",'Silver_Spring=' + Silver_Spring.length);
Damascus[Damascus.length] = createMarker(new GPoint(-77.20998383,39.28468704),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Damascus Elementary School",'Damascus=' + Damascus.length);
Damascus[Damascus.length] = createMarker(new GPoint(-77.21173096,39.28038788),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Damascus High School",'Damascus=' + Damascus.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.28330231,39.10122681),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Darnestown Elementary School",'Gaithersburg=' + Gaithersburg.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.23714447,39.13523102),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Diamond Elementary School",'Gaithersburg=' + Gaithersburg.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-76.98616791,39.09131622),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dr. Charles R. Drew Elementary School",'Silver_Spring=' + Silver_Spring.length);
Germantown[Germantown.length] = createMarker(new GPoint(-77.23707000,39.20930600),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dr. Sally K. Ride Elementary School",'Germantown=' + Germantown.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.23849487,39.10142899),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dufief Elementary School",'Gaithersburg=' + Gaithersburg.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.10889435,39.09257126),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Earle B. Wood Middle School",'Rockville=' + Rockville.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.01441956,38.99199677),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("East Silver Spring Elementary School",'Silver_Spring=' + Silver_Spring.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.00266266,39.01215744),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Eastern Middle School",'Silver_Spring=' + Silver_Spring.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-76.95722961,39.09129715),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fairland Elementary School",'Silver_Spring=' + Silver_Spring.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.17698669,39.07889938),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fallsmead Elementary School",'Rockville=' + Rockville.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.14388275,39.04750061),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Farmland Elementary School",'Rockville=' + Rockville.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.21156311,39.12026215),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fields Road Elementary School",'Gaithersburg=' + Gaithersburg.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.17211151,39.15885162),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Flower Hill Elementary School",'Gaithersburg=' + Gaithersburg.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.09089661,39.10638428),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Flower Valley Elementary School",'Rockville=' + Rockville.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.02094269,39.03402710),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Forest Knolls Elementary School",'Silver_Spring=' + Silver_Spring.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.18290710,39.15199280),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Forest Oak Middle School",'Gaithersburg=' + Gaithersburg.length);
Germantown[Germantown.length] = createMarker(new GPoint(-77.24259949,39.17307663),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fox Chapel Elementary School",'Germantown=' + Germantown.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-76.99079132,39.02827072),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Francis Scott Key Middle School",'Silver_Spring=' + Silver_Spring.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.19317627,39.14288712),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Gaithersburg Elementary School",'Gaithersburg=' + Gaithersburg.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.19396210,39.13772964),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Gaithersburg High School",'Gaithersburg=' + Gaithersburg.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.18264008,39.14256287),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Gaithersburg Middle School",'Gaithersburg=' + Gaithersburg.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-76.94494629,39.06313324),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Galway Elementary School",'Silver_Spring=' + Silver_Spring.length);
Garrett_Park[Garrett_Park.length] = createMarker(new GPoint(-77.09512329,39.03328323),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Garrett Park Elementary School",'Garrett_Park=' + Garrett_Park.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.02646000,39.04779500),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Gateway To College Program",'Silver_Spring=' + Silver_Spring.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.06307220,39.07586288),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Georgian Forest Elementary School",'Silver_Spring=' + Silver_Spring.length);
Germantown[Germantown.length] = createMarker(new GPoint(-77.27453613,39.17039490),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Germantown Elementary School",'Germantown=' + Germantown.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.11361694,39.02263641),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Glen Haven Elementary School",'Silver_Spring=' + Silver_Spring.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.04000092,39.06082916),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Glenallan Elementary School",'Silver_Spring=' + Silver_Spring.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.16298676,39.09276581),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Goshen Elementary School",'Gaithersburg=' + Gaithersburg.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-76.94489288,39.07960129),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Greencastle Elementary School",'Silver_Spring=' + Silver_Spring.length);
Brookeville[Brookeville.length] = createMarker(new GPoint(-77.06565857,39.16743851),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Greenwood Elementary School",'Brookeville=' + Brookeville.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.07720947,39.07601929),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Harmony Hills Elementary School",'Silver_Spring=' + Silver_Spring.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.17839813,39.04679489),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Herbert Hoover Middle School",'Rockville=' + Rockville.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.06219482,39.05017853),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Highland Elementary School",'Silver_Spring=' + Silver_Spring.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.01066589,39.00457001),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Highland View Elementary School",'Silver_Spring=' + Silver_Spring.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-76.99259949,39.05583572),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Jackson Road Elementary School",'Silver_Spring=' + Silver_Spring.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.01460266,39.11407852),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("James Hubert Blake High School",'Silver_Spring=' + Silver_Spring.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.03712463,39.06518936),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("John F. Kennedy High School",'Silver_Spring=' + Silver_Spring.length);
Poolesville[Poolesville.length] = createMarker(new GPoint(-77.40810394,39.12540436),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("John H. Poole Middle School",'Poolesville=' + Poolesville.length);
Damascus[Damascus.length] = createMarker(new GPoint(-77.21684265,39.27473068),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("John T. Baker Middle School",'Damascus=' + Damascus.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.26490021,39.10157013),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Jones Lane Elementary School",'Gaithersburg=' + Gaithersburg.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.15045166,39.17997742),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Judith A. Resnik Elementary School",'Gaithersburg=' + Gaithersburg.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.16451263,39.07391739),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Julius West Middle School",'Rockville=' + Rockville.length);
Bethesda[Bethesda.length] = createMarker(new GPoint(-77.01703644,39.04303360),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Kemp Mill Elementary School",'Bethesda=' + Bethesda.length);
Kensington[Kensington.length] = createMarker(new GPoint(-77.09435272,39.02170181),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Kensington Parkwood Elementary School",'Kensington=' + Kensington.length);
Germantown[Germantown.length] = createMarker(new GPoint(-77.28720856,39.16481781),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Kingsview Middle School",'Germantown=' + Germantown.length);
Germantown[Germantown.length] = createMarker(new GPoint(-77.28298187,39.18582153),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lake Seneca Elementary School",'Germantown=' + Germantown.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.23325200,39.11599900),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Lakelands Park Middle School",'Gaithersburg=' + Gaithersburg.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.10288239,39.10390854),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lakewood Elementary School",'Rockville=' + Rockville.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.14270020,39.21778870),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Laytonsville Elementary School",'Gaithersburg=' + Gaithersburg.length);
Damascus[Damascus.length] = createMarker(new GPoint(-77.21412659,39.25897598),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lois P. Rockwell Elementary School",'Damascus=' + Damascus.length);
Germantown[Germantown.length] = createMarker(new GPoint(-77.29477692,39.15116119),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Longview School",'Germantown=' + Germantown.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.10294342,39.09469986),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lucy V. Barnsley Elementary School",'Rockville=' + Rockville.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.12928772,39.04352951),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Luxmanor Elementary School",'Rockville=' + Rockville.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.12288666,39.09310913),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Mark Twain School",'Rockville=' + Rockville.length);
Germantown[Germantown.length] = createMarker(new GPoint(-77.28678131,39.18011475),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Martin Luther King Junior Middle School",'Germantown=' + Germantown.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.13571930,39.08724213),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Maryvale Elementary School",'Rockville=' + Rockville.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.05280304,39.02004242),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mckenney Hills Center",'Silver_Spring=' + Silver_Spring.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.12375400,39.09469700),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Mcps Transitions School",'Rockville=' + Rockville.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.11682129,39.08384705),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Meadow Hall Elementary School",'Rockville=' + Rockville.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.15226746,39.14618301),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mill Creek Towne Elementary School",'Rockville=' + Rockville.length);
Dickerson[Dickerson.length] = createMarker(new GPoint(-77.39888000,39.22517395),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Monocacy Elementary School",'Dickerson=' + Dickerson.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.01075745,39.01928711),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Montgomery Blair High School",'Silver_Spring=' + Silver_Spring.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.07828522,39.06146240),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Montgomery County Evening High School",'Rockville=' + Rockville.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-76.99408722,39.00654221),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Montgomery Knolls Elementary School",'Silver_Spring=' + Silver_Spring.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.13069916,39.04362488),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Montgomery Village Middle School",'Gaithersburg=' + Gaithersburg.length);
Germantown[Germantown.length] = createMarker(new GPoint(-77.24330139,39.19501114),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Neelsville Middle School",'Germantown=' + Germantown.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-76.99169159,38.99741364),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("New Hampshire Estates Elementary School",'Silver_Spring=' + Silver_Spring.length);
Kensington[Kensington.length] = createMarker(new GPoint(-77.06952667,39.04184723),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Newport Mill Middle School",'Kensington=' + Kensington.length);
Bethesda[Bethesda.length] = createMarker(new GPoint(-77.12582397,39.00344467),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("North Bethesda Middle School",'Bethesda=' + Bethesda.length);
Chevy_Chase[Chevy_Chase.length] = createMarker(new GPoint(-77.07236481,38.99924088),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("North Chevy Chase Elementary School",'Chevy_Chase=' + Chevy_Chase.length);
Germantown[Germantown.length] = createMarker(new GPoint(-77.27988434,39.14957809),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Northwest High School",'Germantown=' + Germantown.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.02394300,39.03393700),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Northwood High School",'Silver_Spring=' + Silver_Spring.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.00126648,39.00419617),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oak View Elementary School",'Silver_Spring=' + Silver_Spring.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.05577087,39.02972031),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oakland Terrace Elementary School",'Silver_Spring=' + Silver_Spring.length);
Olney[Olney.length] = createMarker(new GPoint(-77.06689453,39.14836121),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Olney Elementary School",'Olney=' + Olney.length);
Burtonsville[Burtonsville.length] = createMarker(new GPoint(-76.94921112,39.08804703),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Paint Branch High School",'Burtonsville=' + Burtonsville.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.09104156,39.08526230),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Parkland Middle School",'Rockville=' + Rockville.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.00541687,39.02073288),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pine Crest Elementary School",'Silver_Spring=' + Silver_Spring.length);
Takoma_Park[Takoma_Park.length] = createMarker(new GPoint(-77.00949097,38.98154831),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Piney Branch Elementary School",'Takoma_Park=' + Takoma_Park.length);
Poolesville[Poolesville.length] = createMarker(new GPoint(-77.40750122,39.14234924),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Poolesville Elementary School",'Poolesville=' + Poolesville.length);
Poolesville[Poolesville.length] = createMarker(new GPoint(-77.42048645,39.14261246),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Poolesville High School",'Poolesville=' + Poolesville.length);
Potomac[Potomac.length] = createMarker(new GPoint(-77.21256256,39.02043533),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Potomac Elementary School",'Potomac=' + Potomac.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.25291443,39.11439133),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Quince Orchard High School",'Gaithersburg=' + Gaithersburg.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.24647522,39.11608505),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rachel Carson Elementary School",'Gaithersburg=' + Gaithersburg.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.13085937,39.13840485),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Redland Middle School",'Rockville=' + Rockville.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.20031738,39.10178375),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Regional Institute For Children & Adolescents",'Rockville=' + Rockville.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.14456940,39.07809448),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Richard Montgomery High School",'Rockville=' + Rockville.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.24776459,39.12744141),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Ridgeview Middle School",'Gaithersburg=' + Gaithersburg.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.17237854,39.06241989),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ritchie Park Elementary School",'Rockville=' + Rockville.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.18663788,39.07383347),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Robert Frost Middle School",'Rockville=' + Rockville.length);
Germantown[Germantown.length] = createMarker(new GPoint(-77.24760437,39.16479492),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Roberto W. Clemente Middle School",'Germantown=' + Germantown.length);
Chevy_Chase[Chevy_Chase.length] = createMarker(new GPoint(-77.05096436,38.99316788),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rock Creek Forest Elementary School",'Chevy_Chase=' + Chevy_Chase.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.10211945,39.08208466),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rock Creek Valley Elementary School",'Rockville=' + Rockville.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.15969849,39.09277725),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Rock Terrace School",'Rockville=' + Rockville.length);
Kensington[Kensington.length] = createMarker(new GPoint(-77.07569122,39.03879547),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rock View Elementary School",'Kensington=' + Kensington.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.02416992,39.03406143),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Rockville High School",'Rockville=' + Rockville.length);
Clarksburg[Clarksburg.length] = createMarker(new GPoint(-77.26721191,39.22254944),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Rocky Hill Middle School",'Clarksburg=' + Clarksburg.length);
Takoma_Park[Takoma_Park.length] = createMarker(new GPoint(-76.99722290,38.99590683),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rolling Terrace Elementary School",'Takoma_Park=' + Takoma_Park.length);
Germantown[Germantown.length] = createMarker(new GPoint(-77.29056549,39.16873932),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ronald A. Mcnair Elementary School",'Germantown=' + Germantown.length);
Olney[Olney.length] = createMarker(new GPoint(-77.08093262,39.17089081),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Rosa M. Parks Middle School",'Olney=' + Olney.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.04542542,39.00067139),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rosemary Hills Elementary School",'Silver_Spring=' + Silver_Spring.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.18404388,39.12504959),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rosemont Elementary School",'Gaithersburg=' + Gaithersburg.length);
Germantown[Germantown.length] = createMarker(new GPoint(-77.25964355,39.16740799),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("S. Christa Mcauliffe Elementary School",'Germantown=' + Germantown.length);
Germantown[Germantown.length] = createMarker(new GPoint(-77.26431274,39.17691803),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Seneca Valley High School",'Germantown=' + Germantown.length);
Derwood[Derwood.length] = createMarker(new GPoint(-77.11949921,39.13978577),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sequoyah Elementary School",'Derwood=' + Derwood.length);
Bethesda[Bethesda.length] = createMarker(new GPoint(-77.16009521,39.01197052),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Seven Locks Elementary School",'Bethesda=' + Bethesda.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.15932465,39.14302063),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Shady Grove Middle School",'Gaithersburg=' + Gaithersburg.length);
Sandy_Spring[Sandy_Spring.length] = createMarker(new GPoint(-77.03319550,39.14866257),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sherwood Elementary School",'Sandy_Spring=' + Sandy_Spring.length);
Sandy_Spring[Sandy_Spring.length] = createMarker(new GPoint(-77.01747131,39.14895630),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Sherwood High School",'Sandy_Spring=' + Sandy_Spring.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.01231384,38.99982834),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Silver Spring International Middle School",'Silver_Spring=' + Silver_Spring.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.01594543,39.00126266),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sligo Creek Elementary School",'Silver_Spring=' + Silver_Spring.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.03101349,39.02500916),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Sligo Middle School",'Silver_Spring=' + Silver_Spring.length);
Chevy_Chase[Chevy_Chase.length] = createMarker(new GPoint(-77.09317780,38.96785355),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Somerset Elementary School",'Chevy_Chase=' + Chevy_Chase.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.19602966,39.15231705),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("South Lake Elementary School",'Gaithersburg=' + Gaithersburg.length);
Germantown[Germantown.length] = createMarker(new GPoint(-77.29470062,39.15087891),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Spark M. Matsunaga Elementary School",'Germantown=' + Germantown.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.00360870,39.05792236),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Springbrook High School",'Silver_Spring=' + Silver_Spring.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.21189880,39.17453766),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Stedwick Elementary School",'Gaithersburg=' + Gaithersburg.length);
Kensington[Kensington.length] = createMarker(new GPoint(-77.05177307,39.03206253),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Stephen Knolls School",'Kensington=' + Kensington.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.21944427,39.09532928),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Stone Mill Elementary School",'Gaithersburg=' + Gaithersburg.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.01471710,39.09185791),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Stonegate Elementary School",'Silver_Spring=' + Silver_Spring.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.06322479,39.08731079),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Strathmore Elementary School",'Silver_Spring=' + Silver_Spring.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.18222809,39.16460419),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Strawberry Knoll Elementary School",'Gaithersburg=' + Gaithersburg.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.20410156,39.13419342),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Summit Hall Elementary School",'Gaithersburg=' + Gaithersburg.length);
Takoma_Park[Takoma_Park.length] = createMarker(new GPoint(-77.01295471,38.98306274),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Takoma Park Elementary School",'Takoma_Park=' + Takoma_Park.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.01468658,38.98484802),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Takoma Park Middle School",'Silver_Spring=' + Silver_Spring.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.06818500,39.06102500),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Thomas Edison High School Of Technology",'Silver_Spring=' + Silver_Spring.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.18157196,39.07277298),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Thomas S. Wootton High School",'Rockville=' + Rockville.length);
Bethesda[Bethesda.length] = createMarker(new GPoint(-77.12770844,38.98826218),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Thomas W. Pyle Middle School",'Bethesda=' + Bethesda.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.25787354,39.12329865),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Thurgood Marshall Elementary School",'Gaithersburg=' + Gaithersburg.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.12306976,39.03803635),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Tilden Middle School",'Rockville=' + Rockville.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.24974823,39.08152771),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Travilah Elementary School",'Gaithersburg=' + Gaithersburg.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.11936951,39.06714249),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Twinbrook Elementary School",'Rockville=' + Rockville.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.08551025,39.04730988),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Viers Mill Elementary School",'Silver_Spring=' + Silver_Spring.length);
Bethesda[Bethesda.length] = createMarker(new GPoint(-77.12570190,38.98129654),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Walt Whitman High School",'Bethesda=' + Bethesda.length);
Bethesda[Bethesda.length] = createMarker(new GPoint(-77.12526703,39.02707291),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Walter Johnson High School",'Bethesda=' + Bethesda.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.18040466,39.13427353),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Washington Grove Elementary School",'Gaithersburg=' + Gaithersburg.length);
Germantown[Germantown.length] = createMarker(new GPoint(-77.26787567,39.18959808),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Waters Landing Elementary School",'Germantown=' + Germantown.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.21182251,39.16763687),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Watkins Mill Elementary School",'Gaithersburg=' + Gaithersburg.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.21205139,39.18389893),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Watkins Mill High School",'Gaithersburg=' + Gaithersburg.length);
Potomac[Potomac.length] = createMarker(new GPoint(-77.20543671,39.02740860),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wayside Elementary School",'Potomac=' + Potomac.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.06578827,39.06480789),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Weller Road Elementary School",'Silver_Spring=' + Silver_Spring.length);
Bethesda[Bethesda.length] = createMarker(new GPoint(-77.10288239,38.95684814),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Westbrook Elementary School",'Bethesda=' + Bethesda.length);
Bethesda[Bethesda.length] = createMarker(new GPoint(-77.11230469,38.95938873),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Westland Middle School",'Bethesda=' + Bethesda.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.01671600,39.07467651),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Westover Elementary School",'Silver_Spring=' + Silver_Spring.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.06712341,39.06212616),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Wheaton High School",'Silver_Spring=' + Silver_Spring.length);
Rockville[Rockville.length] = createMarker(new GPoint(-77.08881378,39.06878662),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wheaton Woods Elementary School",'Rockville=' + Rockville.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.19761658,39.17235565),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Whetstone Elementary School",'Gaithersburg=' + Gaithersburg.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-76.99552917,39.05527496),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("White Oak Middle School",'Silver_Spring=' + Silver_Spring.length);
Olney[Olney.length] = createMarker(new GPoint(-77.05172729,39.12918472),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("William H. Farquhar Middle School",'Olney=' + Olney.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-76.95867920,39.07449722),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("William Tyler Page Elementary School",'Silver_Spring=' + Silver_Spring.length);
Potomac[Potomac.length] = createMarker(new GPoint(-77.17094421,39.04463577),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Winston Churchill High School",'Potomac=' + Potomac.length);
Bethesda[Bethesda.length] = createMarker(new GPoint(-77.11804962,38.96844482),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wood Acres Elementary School",'Bethesda=' + Bethesda.length);
Gaithersburg[Gaithersburg.length] = createMarker(new GPoint(-77.15045166,39.17997742),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Woodfield Elementary School",'Gaithersburg=' + Gaithersburg.length);
Silver_Spring[Silver_Spring.length] = createMarker(new GPoint(-77.04669800,39.00598500),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Woodlin Elementary School",'Silver_Spring=' + Silver_Spring.length);
Bethesda[Bethesda.length] = createMarker(new GPoint(-77.12751007,39.00843811),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wyngate Elementary School",'Bethesda=' + Bethesda.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(Bethesda);
map.removeOverlays(Brookeville);
map.removeOverlays(Burtonsville);
map.removeOverlays(Chevy_Chase);
map.removeOverlays(Clarksburg);
map.removeOverlays(Damascus);
map.removeOverlays(Derwood);
map.removeOverlays(Dickerson);
map.removeOverlays(Gaithersburg);
map.removeOverlays(Garrett_Park);
map.removeOverlays(Germantown);
map.removeOverlays(Kensington);
map.removeOverlays(Olney);
map.removeOverlays(Poolesville);
map.removeOverlays(Potomac);
map.removeOverlays(Rockville);
map.removeOverlays(Sandy_Spring);
map.removeOverlays(Silver_Spring);
map.removeOverlays(Takoma_Park);
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(Silver_Spring);map.removeOverlays(Bethesda);
map.removeOverlays(Brookeville);
map.removeOverlays(Burtonsville);
map.removeOverlays(Chevy_Chase);
map.removeOverlays(Clarksburg);
map.removeOverlays(Damascus);
map.removeOverlays(Derwood);
map.removeOverlays(Dickerson);
map.removeOverlays(Gaithersburg);
map.removeOverlays(Garrett_Park);
map.removeOverlays(Germantown);
map.removeOverlays(Kensington);
map.removeOverlays(Olney);
map.removeOverlays(Poolesville);
map.removeOverlays(Potomac);
map.removeOverlays(Rockville);
map.removeOverlays(Sandy_Spring);
map.removeOverlays(Silver_Spring);
map.removeOverlays(Takoma_Park);
map.addOverlays(Bethesda);
centerByArray(Bethesda, false, false);
cntMarker += Bethesda.length;
map.addOverlays(Brookeville);
centerByArray(Brookeville, false, false);
cntMarker += Brookeville.length;
map.addOverlays(Burtonsville);
centerByArray(Burtonsville, false, false);
cntMarker += Burtonsville.length;
map.addOverlays(Chevy_Chase);
centerByArray(Chevy_Chase, false, false);
cntMarker += Chevy_Chase.length;
map.addOverlays(Clarksburg);
centerByArray(Clarksburg, false, false);
cntMarker += Clarksburg.length;
map.addOverlays(Damascus);
centerByArray(Damascus, false, false);
cntMarker += Damascus.length;
map.addOverlays(Derwood);
centerByArray(Derwood, false, false);
cntMarker += Derwood.length;
map.addOverlays(Dickerson);
centerByArray(Dickerson, false, false);
cntMarker += Dickerson.length;
map.addOverlays(Gaithersburg);
centerByArray(Gaithersburg, false, false);
cntMarker += Gaithersburg.length;
map.addOverlays(Garrett_Park);
centerByArray(Garrett_Park, false, false);
cntMarker += Garrett_Park.length;
map.addOverlays(Germantown);
centerByArray(Germantown, false, false);
cntMarker += Germantown.length;
map.addOverlays(Kensington);
centerByArray(Kensington, false, false);
cntMarker += Kensington.length;
map.addOverlays(Olney);
centerByArray(Olney, false, false);
cntMarker += Olney.length;
map.addOverlays(Poolesville);
centerByArray(Poolesville, false, false);
cntMarker += Poolesville.length;
map.addOverlays(Potomac);
centerByArray(Potomac, false, false);
cntMarker += Potomac.length;
map.addOverlays(Rockville);
centerByArray(Rockville, false, false);
cntMarker += Rockville.length;
map.addOverlays(Sandy_Spring);
centerByArray(Sandy_Spring, false, false);
cntMarker += Sandy_Spring.length;
map.addOverlays(Silver_Spring);
centerByArray(Silver_Spring, false, false);
cntMarker += Silver_Spring.length;
map.addOverlays(Takoma_Park);
centerByArray(Takoma_Park, false, false);
cntMarker += Takoma_Park.length;
centerByArray(Silver_Spring,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');
}
}