function addMarkers()
{
mySelect = document.getElementById('selection');
Long_Branch = [];Lake_Como = [];Neptune = [];Freehold = [];Howell = [];Allentown = [];Wall = [];Farmingdale = [];Asbury_Park = [];Morganville = [];Atlantic_Highlands = [];Tinton_Falls = [];Avon = [];Leonardo = [];Belford = [];Hazlet = [];Belmar = [];West_Long_Branch = [];Bradley_Beach = [];Brielle = [];Aberdeen = [];Colts_Neck = [];Keyport = [];Manalapan = [];Cliffwood = [];Deal = [];Rumson = [];Elberon = [];Red_Bank = [];Marlboro = [];Spring_Lake = [];New_Monmouth = [];Highlands = [];Lincroft = [];Holmdel = [];Keansburg = [];Fair_Haven = [];Englishtown = [];Manasquan = [];Oceanport = [];Eatontown = [];Sandy_Hook = [];Little_Silver = [];Union_Beach = [];Middletown = [];Clarksburg = [];Monmouth_Beach = [];Navesink = [];North_Middletown = [];Oakhurst = [];Ocean = [];Sea_Girt = [];Port_Monmouth = [];Matawan = [];Red__Bank = [];Roosevelt = [];Shrewsbury = [];Spring_Lake_Heights = [];Wanamassa = [];West_Belmar = [];Neptune_City = [];mySelect.options[mySelect.options.length] = new Option("Aberdeen schools",'all=Aberdeen');
mySelect.options[mySelect.options.length] = new Option("Allentown schools",'all=Allentown');
mySelect.options[mySelect.options.length] = new Option("Asbury Park schools",'all=Asbury_Park');
mySelect.options[mySelect.options.length] = new Option("Atlantic Highlands schools",'all=Atlantic_Highlands');
mySelect.options[mySelect.options.length] = new Option("Avon schools",'all=Avon');
mySelect.options[mySelect.options.length] = new Option("Belford schools",'all=Belford');
mySelect.options[mySelect.options.length] = new Option("Belmar schools",'all=Belmar');
mySelect.options[mySelect.options.length] = new Option("Bradley Beach schools",'all=Bradley_Beach');
mySelect.options[mySelect.options.length] = new Option("Brielle schools",'all=Brielle');
mySelect.options[mySelect.options.length] = new Option("Clarksburg schools",'all=Clarksburg');
mySelect.options[mySelect.options.length] = new Option("Cliffwood schools",'all=Cliffwood');
mySelect.options[mySelect.options.length] = new Option("Colts Neck schools",'all=Colts_Neck');
mySelect.options[mySelect.options.length] = new Option("Deal schools",'all=Deal');
mySelect.options[mySelect.options.length] = new Option("Eatontown schools",'all=Eatontown');
mySelect.options[mySelect.options.length] = new Option("Elberon schools",'all=Elberon');
mySelect.options[mySelect.options.length] = new Option("Englishtown schools",'all=Englishtown');
mySelect.options[mySelect.options.length] = new Option("Fair Haven schools",'all=Fair_Haven');
mySelect.options[mySelect.options.length] = new Option("Farmingdale schools",'all=Farmingdale');
mySelect.options[mySelect.options.length] = new Option("Freehold schools",'all=Freehold');
mySelect.options[mySelect.options.length] = new Option("Hazlet schools",'all=Hazlet');
mySelect.options[mySelect.options.length] = new Option("Highlands schools",'all=Highlands');
mySelect.options[mySelect.options.length] = new Option("Holmdel schools",'all=Holmdel');
mySelect.options[mySelect.options.length] = new Option("Howell schools",'all=Howell');
mySelect.options[mySelect.options.length] = new Option("Keansburg schools",'all=Keansburg');
mySelect.options[mySelect.options.length] = new Option("Keyport schools",'all=Keyport');
mySelect.options[mySelect.options.length] = new Option("Lake Como schools",'all=Lake_Como');
mySelect.options[mySelect.options.length] = new Option("Leonardo schools",'all=Leonardo');
mySelect.options[mySelect.options.length] = new Option("Lincroft schools",'all=Lincroft');
mySelect.options[mySelect.options.length] = new Option("Little Silver schools",'all=Little_Silver');
mySelect.options[mySelect.options.length] = new Option("Long Branch schools",'all=Long_Branch');
mySelect.options[mySelect.options.length] = new Option("Manalapan schools",'all=Manalapan');
mySelect.options[mySelect.options.length] = new Option("Manasquan schools",'all=Manasquan');
mySelect.options[mySelect.options.length] = new Option("Marlboro schools",'all=Marlboro');
mySelect.options[mySelect.options.length] = new Option("Matawan schools",'all=Matawan');
mySelect.options[mySelect.options.length] = new Option("Middletown schools",'all=Middletown');
mySelect.options[mySelect.options.length] = new Option("Monmouth Beach schools",'all=Monmouth_Beach');
mySelect.options[mySelect.options.length] = new Option("Morganville schools",'all=Morganville');
mySelect.options[mySelect.options.length] = new Option("Navesink schools",'all=Navesink');
mySelect.options[mySelect.options.length] = new Option("Neptune schools",'all=Neptune');
mySelect.options[mySelect.options.length] = new Option("Neptune City schools",'all=Neptune_City');
mySelect.options[mySelect.options.length] = new Option("New Monmouth schools",'all=New_Monmouth');
mySelect.options[mySelect.options.length] = new Option("North Middletown schools",'all=North_Middletown');
mySelect.options[mySelect.options.length] = new Option("Oakhurst schools",'all=Oakhurst');
mySelect.options[mySelect.options.length] = new Option("Ocean schools",'all=Ocean');
mySelect.options[mySelect.options.length] = new Option("Oceanport schools",'all=Oceanport');
mySelect.options[mySelect.options.length] = new Option("Port Monmouth schools",'all=Port_Monmouth');
mySelect.options[mySelect.options.length] = new Option("Red Bank schools",'all=Red_Bank');
mySelect.options[mySelect.options.length] = new Option("Red Bank schools",'all=Red__Bank');
mySelect.options[mySelect.options.length] = new Option("Roosevelt schools",'all=Roosevelt');
mySelect.options[mySelect.options.length] = new Option("Rumson schools",'all=Rumson');
mySelect.options[mySelect.options.length] = new Option("Sandy Hook schools",'all=Sandy_Hook');
mySelect.options[mySelect.options.length] = new Option("Sea Girt schools",'all=Sea_Girt');
mySelect.options[mySelect.options.length] = new Option("Shrewsbury schools",'all=Shrewsbury');
mySelect.options[mySelect.options.length] = new Option("Spring Lake schools",'all=Spring_Lake');
mySelect.options[mySelect.options.length] = new Option("Spring Lake Heights schools",'all=Spring_Lake_Heights');
mySelect.options[mySelect.options.length] = new Option("Tinton Falls schools",'all=Tinton_Falls');
mySelect.options[mySelect.options.length] = new Option("Union Beach schools",'all=Union_Beach');
mySelect.options[mySelect.options.length] = new Option("Wall schools",'all=Wall');
mySelect.options[mySelect.options.length] = new Option("Wanamassa schools",'all=Wanamassa');
mySelect.options[mySelect.options.length] = new Option("West Belmar schools",'all=West_Belmar');
mySelect.options[mySelect.options.length] = new Option("West Long Branch schools",'all=West_Long_Branch');
mySelect.options[mySelect.options.length] = new Option("---------------------------",'');
Long_Branch[Long_Branch.length] = createMarker(new GPoint(-73.99198151,40.29881287),"
",iconRd);
mySelect.options[mySelect.options.length] = new Option("A A Anastasia Elementary School",'Long_Branch=' + Long_Branch.length);
Lake_Como[Lake_Como.length] = createMarker(new GPoint(-74.02758026,40.17202377),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Academy Charter High School Academy Charter",'Lake_Como=' + Lake_Como.length);
Neptune[Neptune.length] = createMarker(new GPoint(-74.06040192,40.21210098),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("AcademyAllied Health & Sci High School",'Neptune=' + Neptune.length);
Freehold[Freehold.length] = createMarker(new GPoint(-74.27639771,40.23889923),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Adelphia School",'Freehold=' + Freehold.length);
Howell[Howell.length] = createMarker(new GPoint(-74.24475861,40.15081787),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Aldrich Elementary School",'Howell=' + Howell.length);
Allentown[Allentown.length] = createMarker(new GPoint(-74.56759644,40.16389847),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Allentown High School",'Allentown=' + Allentown.length);
Wall[Wall.length] = createMarker(new GPoint(-74.05960083,40.17150116),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Allenwood Elementary School",'Wall=' + Wall.length);
Farmingdale[Farmingdale.length] = createMarker(new GPoint(-74.21011353,40.20478058),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ardena Elementary School",'Farmingdale=' + Farmingdale.length);
Asbury_Park[Asbury_Park.length] = createMarker(new GPoint(-74.01323700,40.22788239),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Asbury Park High School",'Asbury_Park=' + Asbury_Park.length);
Morganville[Morganville.length] = createMarker(new GPoint(-74.29004669,40.34460831),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Asher Holmes Elementary School",'Morganville=' + Morganville.length);
Atlantic_Highlands[Atlantic_Highlands.length] = createMarker(new GPoint(-74.00773621,40.40286255),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Atlantic Highlands Elementary School",'Atlantic_Highlands=' + Atlantic_Highlands.length);
Long_Branch[Long_Branch.length] = createMarker(new GPoint(-73.98578644,40.30264664),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Audrey W. Clark School",'Long_Branch=' + Long_Branch.length);
Tinton_Falls[Tinton_Falls.length] = createMarker(new GPoint(-74.03970337,40.23830032),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Autistic School",'Tinton_Falls=' + Tinton_Falls.length);
Avon[Avon.length] = createMarker(new GPoint(-74.02165985,40.19062042),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Avon Elementary School",'Avon=' + Avon.length);
Leonardo[Leonardo.length] = createMarker(new GPoint(-74.06558990,40.41532135),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("B.e.s.t. Acedemy",'Leonardo=' + Leonardo.length);
Atlantic_Highlands[Atlantic_Highlands.length] = createMarker(new GPoint(-74.03331757,40.40871811),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("B.j.c. Learning Acedemy",'Atlantic_Highlands=' + Atlantic_Highlands.length);
Asbury_Park[Asbury_Park.length] = createMarker(new GPoint(-74.02169037,40.21868134),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bangs Ave Elementary School",'Asbury_Park=' + Asbury_Park.length);
Leonardo[Leonardo.length] = createMarker(new GPoint(-74.07045746,40.41419983),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Bayshore Middle School",'Leonardo=' + Leonardo.length);
Belford[Belford.length] = createMarker(new GPoint(-74.08508301,40.41450882),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bayview Elementary School",'Belford=' + Belford.length);
Hazlet[Hazlet.length] = createMarker(new GPoint(-74.19734955,40.41529846),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Beers St Elementary School",'Hazlet=' + Hazlet.length);
Belmar[Belmar.length] = createMarker(new GPoint(-74.02621460,40.17828751),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Belmar Elementary School",'Belmar=' + Belmar.length);
West_Long_Branch[West_Long_Branch.length] = createMarker(new GPoint(-74.01905823,40.29072571),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Betty Mcelmom Elementary School",'West_Long_Branch=' + West_Long_Branch.length);
Freehold[Freehold.length] = createMarker(new GPoint(-74.24568400,40.26513200),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Biotechnology H. S.",'Freehold=' + Freehold.length);
Bradley_Beach[Bradley_Beach.length] = createMarker(new GPoint(-74.01489258,40.20243835),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bradley Beach Elementary School",'Bradley_Beach=' + Bradley_Beach.length);
Asbury_Park[Asbury_Park.length] = createMarker(new GPoint(-74.01582336,40.22450638),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bradley Elememtary Elementary School",'Asbury_Park=' + Asbury_Park.length);
Brielle[Brielle.length] = createMarker(new GPoint(-74.05858612,40.11131668),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Brielle Elementary School",'Brielle=' + Brielle.length);
Freehold[Freehold.length] = createMarker(new GPoint(-74.27649689,40.23910141),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("C Richard Applegate Elementary School",'Freehold=' + Freehold.length);
Aberdeen[Aberdeen.length] = createMarker(new GPoint(-74.23950195,40.41199875),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cambridge Park Elementary School",'Aberdeen=' + Aberdeen.length);
Colts_Neck[Colts_Neck.length] = createMarker(new GPoint(-74.17599400,40.28811000),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Cedar Drive",'Colts_Neck=' + Colts_Neck.length);
Asbury_Park[Asbury_Park.length] = createMarker(new GPoint(-74.01619720,40.21810150),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Center School",'Asbury_Park=' + Asbury_Park.length);
Wall[Wall.length] = createMarker(new GPoint(-74.05909729,40.17160034),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Central Elementary School",'Wall=' + Wall.length);
Keyport[Keyport.length] = createMarker(new GPoint(-74.19741821,40.42922211),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Central Elementary School",'Keyport=' + Keyport.length);
Manalapan[Manalapan.length] = createMarker(new GPoint(-74.35836900,40.29595500),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Clark Mills",'Manalapan=' + Manalapan.length);
Long_Branch[Long_Branch.length] = createMarker(new GPoint(-73.99179077,40.28721237),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Class Academy",'Long_Branch=' + Long_Branch.length);
Cliffwood[Cliffwood.length] = createMarker(new GPoint(-74.22817230,40.43793869),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cliffwood Ave School",'Cliffwood=' + Cliffwood.length);
Freehold[Freehold.length] = createMarker(new GPoint(-74.29929352,40.23860931),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Clifton T. Barkalow Middle School",'Freehold=' + Freehold.length);
Colts_Neck[Colts_Neck.length] = createMarker(new GPoint(-74.21120453,40.27634811),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Colts Neck High School",'Colts_Neck=' + Colts_Neck.length);
Wall[Wall.length] = createMarker(new GPoint(-74.05960083,40.17150116),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Communications High School",'Wall=' + Wall.length);
Colts_Neck[Colts_Neck.length] = createMarker(new GPoint(-74.20336914,40.29620361),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Conover Road Primary School",'Colts_Neck=' + Colts_Neck.length);
Colts_Neck[Colts_Neck.length] = createMarker(new GPoint(-74.19271851,40.31827164),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Conover Road School",'Colts_Neck=' + Colts_Neck.length);
Hazlet[Hazlet.length] = createMarker(new GPoint(-74.17340088,40.43100739),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cove Road School",'Hazlet=' + Hazlet.length);
Deal[Deal.length] = createMarker(new GPoint(-74.00608063,40.24777985),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Deal Elementary School",'Deal=' + Deal.length);
Rumson[Rumson.length] = createMarker(new GPoint(-74.00000000,40.37070084),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Deane-porter Elementary School",'Rumson=' + Rumson.length);
Aberdeen[Aberdeen.length] = createMarker(new GPoint(-74.23950195,40.41199875),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Developmental Learning",'Aberdeen=' + Aberdeen.length);
Freehold[Freehold.length] = createMarker(new GPoint(-74.24026489,40.26276779),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Dwight D Eisenhower Middle School",'Freehold=' + Freehold.length);
Neptune[Neptune.length] = createMarker(new GPoint(-74.01851654,40.21231461),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Early Childhood Center",'Neptune=' + Neptune.length);
Freehold[Freehold.length] = createMarker(new GPoint(-74.29522200,40.22974500),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Early Childhood Learn Center",'Freehold=' + Freehold.length);
Morganville[Morganville.length] = createMarker(new GPoint(-74.26920319,40.35990143),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Early Childhood Learn Cnt Elementary School",'Morganville=' + Morganville.length);
Farmingdale[Farmingdale.length] = createMarker(new GPoint(-74.23910522,40.20755386),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Edith M Griebling Elementary School",'Farmingdale=' + Farmingdale.length);
Elberon[Elberon.length] = createMarker(new GPoint(-73.99294900,40.26947500),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Elberon Elementary School",'Elberon=' + Elberon.length);
Red_Bank[Red_Bank.length] = createMarker(new GPoint(-74.08676147,40.37258530),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fairview Elementary School",'Red_Bank=' + Red_Bank.length);
Farmingdale[Farmingdale.length] = createMarker(new GPoint(-74.16850281,40.20380020),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Farmingdale Elementary School",'Farmingdale=' + Farmingdale.length);
Rumson[Rumson.length] = createMarker(new GPoint(-74.00000000,40.37070084),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Forrestdale Middle School",'Rumson=' + Rumson.length);
West_Long_Branch[West_Long_Branch.length] = createMarker(new GPoint(-74.01747894,40.28961182),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Frank Antonides Middle School",'West_Long_Branch=' + West_Long_Branch.length);
Marlboro[Marlboro.length] = createMarker(new GPoint(-74.25939941,40.31570053),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Frank Defino Central School",'Marlboro=' + Marlboro.length);
Marlboro[Marlboro.length] = createMarker(new GPoint(-74.26280212,40.31480026),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Frank J Dugan School",'Marlboro=' + Marlboro.length);
Freehold[Freehold.length] = createMarker(new GPoint(-74.26759338,40.26651001),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Freehold Borough High School",'Freehold=' + Freehold.length);
Freehold[Freehold.length] = createMarker(new GPoint(-74.27649689,40.23910141),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Freehold Learning Center",'Freehold=' + Freehold.length);
Freehold[Freehold.length] = createMarker(new GPoint(-74.27649689,40.23910141),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Freehold Township High School",'Freehold=' + Freehold.length);
Neptune[Neptune.length] = createMarker(new GPoint(-74.06040192,40.21210098),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Gables Elementary School",'Neptune=' + Neptune.length);
Neptune[Neptune.length] = createMarker(new GPoint(-74.06040192,40.21210098),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Green Grove Elementary School",'Neptune=' + Neptune.length);
Howell[Howell.length] = createMarker(new GPoint(-74.21099854,40.14950180),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Greenville School",'Howell=' + Howell.length);
Long_Branch[Long_Branch.length] = createMarker(new GPoint(-73.99169922,40.29915237),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Gregory Elementary School",'Long_Branch=' + Long_Branch.length);
Spring_Lake[Spring_Lake.length] = createMarker(new GPoint(-74.02982330,40.15787125),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("H W Mountz Elementary School",'Spring_Lake=' + Spring_Lake.length);
New_Monmouth[New_Monmouth.length] = createMarker(new GPoint(-74.11560059,40.40340042),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Harmony Elementary School",'New_Monmouth=' + New_Monmouth.length);
Hazlet[Hazlet.length] = createMarker(new GPoint(-74.16384888,40.43456650),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Hazlet Middle School",'Hazlet=' + Hazlet.length);
Highlands[Highlands.length] = createMarker(new GPoint(-73.98738098,40.39130783),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Henry Hudson Regional School",'Highlands=' + Highlands.length);
Lincroft[Lincroft.length] = createMarker(new GPoint(-74.12020111,40.33689880),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("High Technology High School",'Lincroft=' + Lincroft.length);
Highlands[Highlands.length] = createMarker(new GPoint(-73.98698425,40.39941025),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Highlands School",'Highlands=' + Highlands.length);
Holmdel[Holmdel.length] = createMarker(new GPoint(-77.59551200,43.21717200),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Holmdel High School",'Holmdel=' + Holmdel.length);
Asbury_Park[Asbury_Park.length] = createMarker(new GPoint(-74.00746918,40.21879196),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hope Academy Charter School",'Asbury_Park=' + Asbury_Park.length);
Farmingdale[Farmingdale.length] = createMarker(new GPoint(-74.16850281,40.20380020),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Howell High School",'Farmingdale=' + Farmingdale.length);
Farmingdale[Farmingdale.length] = createMarker(new GPoint(-74.16850281,40.20380020),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Howell Township Middle School North",'Farmingdale=' + Farmingdale.length);
Howell[Howell.length] = createMarker(new GPoint(-74.21109772,40.14939880),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Howell Township Middle School South",'Howell=' + Howell.length);
Freehold[Freehold.length] = createMarker(new GPoint(-74.21784500,40.20785400),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Howell Twp Memorial MiddleSchool",'Freehold=' + Freehold.length);
Holmdel[Holmdel.length] = createMarker(new GPoint(-74.18965149,40.40415192),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Indian Hill Elementary School",'Holmdel=' + Holmdel.length);
Wall[Wall.length] = createMarker(new GPoint(-74.05909729,40.17160034),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Intermediate Middle School",'Wall=' + Wall.length);
Freehold[Freehold.length] = createMarker(new GPoint(-74.28095245,40.25244522),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Intermediate Middle School",'Freehold=' + Freehold.length);
Colts_Neck[Colts_Neck.length] = createMarker(new GPoint(-74.10638428,40.30751038),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Johanna Huntowski Academy",'Colts_Neck=' + Colts_Neck.length);
Keansburg[Keansburg.length] = createMarker(new GPoint(-74.13016510,40.43741989),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Joseph Bolger Middle School",'Keansburg=' + Keansburg.length);
Keansburg[Keansburg.length] = createMarker(new GPoint(-74.14638519,40.42709351),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Joseph C Caruso School",'Keansburg=' + Keansburg.length);
Freehold[Freehold.length] = createMarker(new GPoint(-74.24050903,40.26278687),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Joseph J Catena School",'Freehold=' + Freehold.length);
Long_Branch[Long_Branch.length] = createMarker(new GPoint(-73.98113251,40.31764603),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Joseph M Ferraina Lrn Cnt Elementary School",'Long_Branch=' + Long_Branch.length);
Keansburg[Keansburg.length] = createMarker(new GPoint(-74.12367249,40.44195557),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Keansburg High School",'Keansburg=' + Keansburg.length);
Keyport[Keyport.length] = createMarker(new GPoint(-74.19715118,40.42873001),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Keyport High School",'Keyport=' + Keyport.length);
Tinton_Falls[Tinton_Falls.length] = createMarker(new GPoint(-74.08979034,40.30038834),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Kiva High School",'Tinton_Falls=' + Tinton_Falls.length);
Fair_Haven[Fair_Haven.length] = createMarker(new GPoint(-74.04161072,40.35626984),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Knollwood Middle School",'Fair_Haven=' + Fair_Haven.length);
Englishtown[Englishtown.length] = createMarker(new GPoint(-74.29489136,40.29945755),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Lafayette Mills Middle School",'Englishtown=' + Englishtown.length);
Howell[Howell.length] = createMarker(new GPoint(-74.21109772,40.14939880),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Land O Pines Elementary School",'Howell=' + Howell.length);
Freehold[Freehold.length] = createMarker(new GPoint(-74.28550720,40.22718048),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Laura Donovan Elementary School",'Freehold=' + Freehold.length);
Long_Branch[Long_Branch.length] = createMarker(new GPoint(-73.98175049,40.30705261),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lenna W Conrow Elementary School",'Long_Branch=' + Long_Branch.length);
Leonardo[Leonardo.length] = createMarker(new GPoint(-74.05944061,40.41246414),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Leonardo Elementary School",'Leonardo=' + Leonardo.length);
Hazlet[Hazlet.length] = createMarker(new GPoint(-74.14775085,40.42950821),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lillian Drive School",'Hazlet=' + Hazlet.length);
Lincroft[Lincroft.length] = createMarker(new GPoint(-74.10102081,40.33681488),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lincroft Elementary School",'Lincroft=' + Lincroft.length);
Aberdeen[Aberdeen.length] = createMarker(new GPoint(-74.23960114,40.41199875),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lloyd Road Elementary School",'Aberdeen=' + Aberdeen.length);
Long_Branch[Long_Branch.length] = createMarker(new GPoint(-73.99298096,40.29231262),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Long Branch High School",'Long_Branch=' + Long_Branch.length);
Long_Branch[Long_Branch.length] = createMarker(new GPoint(-73.98989105,40.28746033),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Long Branch Middle School",'Long_Branch=' + Long_Branch.length);
Tinton_Falls[Tinton_Falls.length] = createMarker(new GPoint(-74.09143066,40.31436157),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mahala F Atchison Elementary School",'Tinton_Falls=' + Tinton_Falls.length);
Englishtown[Englishtown.length] = createMarker(new GPoint(-74.32851410,40.28477478),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Manalapan High School",'Englishtown=' + Englishtown.length);
Englishtown[Englishtown.length] = createMarker(new GPoint(-74.35349274,40.28273773),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Manalapan-englishtown Middle School",'Englishtown=' + Englishtown.length);
Manasquan[Manasquan.length] = createMarker(new GPoint(-74.04958344,40.12601471),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Manasquan Elementary School",'Manasquan=' + Manasquan.length);
Manasquan[Manasquan.length] = createMarker(new GPoint(-74.04958344,40.12601471),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Manasquan High School",'Manasquan=' + Manasquan.length);
Oceanport[Oceanport.length] = createMarker(new GPoint(-74.01760101,40.31499863),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Maple Place Middle School",'Oceanport=' + Oceanport.length);
Eatontown[Eatontown.length] = createMarker(new GPoint(-74.06352997,40.29728317),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Margaret L Vetter Elementary School",'Eatontown=' + Eatontown.length);
Sandy_Hook[Sandy_Hook.length] = createMarker(new GPoint(-73.99289703,40.41770172),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Marine Academy of Science & Technical",'Sandy_Hook=' + Sandy_Hook.length);
Little_Silver[Little_Silver.length] = createMarker(new GPoint(-74.04190063,40.33589935),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Markham Place Middle School",'Little_Silver=' + Little_Silver.length);
Marlboro[Marlboro.length] = createMarker(new GPoint(-74.26590729,40.32324982),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Marlboro Elementary School",'Marlboro=' + Marlboro.length);
Marlboro[Marlboro.length] = createMarker(new GPoint(-74.24488831,40.32840729),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Marlboro High School",'Marlboro=' + Marlboro.length);
Morganville[Morganville.length] = createMarker(new GPoint(-74.26920319,40.35990143),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Marlboro Memorial Middle School",'Morganville=' + Morganville.length);
Marlboro[Marlboro.length] = createMarker(new GPoint(-74.25939941,40.31570053),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Marlboro Middle School",'Marlboro=' + Marlboro.length);
Freehold[Freehold.length] = createMarker(new GPoint(-74.27649689,40.23910141),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Marshall W. Errickson Elementary School",'Freehold=' + Freehold.length);
Cliffwood[Cliffwood.length] = createMarker(new GPoint(-74.23690033,40.43619919),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Matawan Avenue Middle School",'Cliffwood=' + Cliffwood.length);
Aberdeen[Aberdeen.length] = createMarker(new GPoint(-74.23960114,40.41199875),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Matawan Regional High School",'Aberdeen=' + Aberdeen.length);
Eatontown[Eatontown.length] = createMarker(new GPoint(-74.04739380,40.29994202),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Meadowbrook Elementary School",'Eatontown=' + Eatontown.length);
Union_Beach[Union_Beach.length] = createMarker(new GPoint(-74.19670105,40.43870163),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Memorial Elementary School",'Union_Beach=' + Union_Beach.length);
Eatontown[Eatontown.length] = createMarker(new GPoint(-74.06697083,40.28887939),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Memorial Middle School",'Eatontown=' + Eatontown.length);
Hazlet[Hazlet.length] = createMarker(new GPoint(-74.16947174,40.42605591),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Middle Road School",'Hazlet=' + Hazlet.length);
Asbury_Park[Asbury_Park.length] = createMarker(new GPoint(-74.01867676,40.21846771),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Middle School",'Asbury_Park=' + Asbury_Park.length);
Middletown[Middletown.length] = createMarker(new GPoint(-74.10070801,40.40087509),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Middletown High School North",'Middletown=' + Middletown.length);
Middletown[Middletown.length] = createMarker(new GPoint(-74.14878845,40.36560822),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Middletown High School South",'Middletown=' + Middletown.length);
Middletown[Middletown.length] = createMarker(new GPoint(-74.12379456,40.39677048),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Middletown Village Elementary School",'Middletown=' + Middletown.length);
Englishtown[Englishtown.length] = createMarker(new GPoint(-74.34210205,40.29119873),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Milford Brook Elementary School",'Englishtown=' + Englishtown.length);
Clarksburg[Clarksburg.length] = createMarker(new GPoint(-74.42578888,40.20561218),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Millstone Township Elementary School",'Clarksburg=' + Clarksburg.length);
Clarksburg[Clarksburg.length] = createMarker(new GPoint(-74.42818451,40.20705795),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Millstone Township Middle School",'Clarksburg=' + Clarksburg.length);
Monmouth_Beach[Monmouth_Beach.length] = createMarker(new GPoint(-73.98139954,40.33300018),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Monmouth Beach Elementary School",'Monmouth_Beach=' + Monmouth_Beach.length);
Freehold[Freehold.length] = createMarker(new GPoint(-74.27649689,40.23910141),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Monmouth Cty Career Cent",'Freehold=' + Freehold.length);
Freehold[Freehold.length] = createMarker(new GPoint(-10.00000000,10.00000000),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Monmouth Cty Voc Tech High School",'Freehold=' + Freehold.length);
Tinton_Falls[Tinton_Falls.length] = createMarker(new GPoint(-74.07260132,40.29610062),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Monmouth Regional High School",'Tinton_Falls=' + Tinton_Falls.length);
Navesink[Navesink.length] = createMarker(new GPoint(-74.03579712,40.39939880),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Navesink Elementary School",'Navesink=' + Navesink.length);
Neptune[Neptune.length] = createMarker(new GPoint(-74.03551483,40.21114731),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Neptune High School",'Neptune=' + Neptune.length);
Neptune[Neptune.length] = createMarker(new GPoint(-74.06040192,40.21210098),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Neptune Middle School",'Neptune=' + Neptune.length);
Middletown[Middletown.length] = createMarker(new GPoint(-74.10646820,40.40939331),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("New Monmouth Elementary School",'Middletown=' + Middletown.length);
Howell[Howell.length] = createMarker(new GPoint(-74.21298981,40.15661240),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Newbury Elementary School",'Howell=' + Howell.length);
Middletown[Middletown.length] = createMarker(new GPoint(-74.11560059,40.40340042),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Nut Swamp Elementary School",'Middletown=' + Middletown.length);
North_Middletown[North_Middletown.length] = createMarker(new GPoint(-74.11560059,40.40340042),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ocean Avenue Elementary School",'North_Middletown=' + North_Middletown.length);
Oakhurst[Oakhurst.length] = createMarker(new GPoint(-74.02220154,40.26340103),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ocean Township Elementary School",'Oakhurst=' + Oakhurst.length);
Oakhurst[Oakhurst.length] = createMarker(new GPoint(-74.03016663,40.26853943),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Ocean Township High School",'Oakhurst=' + Oakhurst.length);
Ocean[Ocean.length] = createMarker(new GPoint(-74.06892395,40.25960541),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Ocean Township Intermediate",'Ocean=' + Ocean.length);
Sea_Girt[Sea_Girt.length] = createMarker(new GPoint(-74.05960083,40.17150116),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Old Mill Elementary School",'Sea_Girt=' + Sea_Girt.length);
Freehold[Freehold.length] = createMarker(new GPoint(-74.28095245,40.25244522),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Park Avenue Elementary School",'Freehold=' + Freehold.length);
Englishtown[Englishtown.length] = createMarker(new GPoint(-74.32655334,40.31904984),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Pine Brook Middle School",'Englishtown=' + Englishtown.length);
Little_Silver[Little_Silver.length] = createMarker(new GPoint(-74.04190063,40.33589935),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Point Road Elementary School",'Little_Silver=' + Little_Silver.length);
Port_Monmouth[Port_Monmouth.length] = createMarker(new GPoint(-74.10510254,40.43000031),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Port Monmouth Elementary School",'Port_Monmouth=' + Port_Monmouth.length);
Keansburg[Keansburg.length] = createMarker(new GPoint(-74.12357330,40.44197083),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Port Monmouth Rd School",'Keansburg=' + Keansburg.length);
Howell[Howell.length] = createMarker(new GPoint(-74.15241241,40.11315536),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ramtown Elementary School",'Howell=' + Howell.length);
Hazlet[Hazlet.length] = createMarker(new GPoint(-74.15477753,40.42413330),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Raritan High School",'Hazlet=' + Hazlet.length);
Hazlet[Hazlet.length] = createMarker(new GPoint(-74.20635986,40.41329956),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Raritan Valley School",'Hazlet=' + Hazlet.length);
Matawan[Matawan.length] = createMarker(new GPoint(-74.23960114,40.41199875),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ravine Drive Elementary School",'Matawan=' + Matawan.length);
Red_Bank[Red_Bank.length] = createMarker(new GPoint(-74.06789398,40.35136032),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Red Bank Charter School",'Red_Bank=' + Red_Bank.length);
Red_Bank[Red_Bank.length] = createMarker(new GPoint(-74.06318665,40.34750748),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Red Bank Middle School",'Red_Bank=' + Red_Bank.length);
Red__Bank[Red__Bank.length] = createMarker(new GPoint(-74.08257294,40.34242630),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Red Bank Primary",'Red__Bank=' + Red__Bank.length);
Little_Silver[Little_Silver.length] = createMarker(new GPoint(-74.04108429,40.35120773),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Red Bank Regional High School",'Little_Silver=' + Little_Silver.length);
Tinton_Falls[Tinton_Falls.length] = createMarker(new GPoint(-74.07260132,40.29610062),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Regional Alternative School",'Tinton_Falls=' + Tinton_Falls.length);
Neptune[Neptune.length] = createMarker(new GPoint(-74.06040192,40.21210098),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ridge Ave School",'Neptune=' + Neptune.length);
Red_Bank[Red_Bank.length] = createMarker(new GPoint(-74.08772278,40.35546494),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("River Plaza Elementary School",'Red_Bank=' + Red_Bank.length);
Morganville[Morganville.length] = createMarker(new GPoint(-74.28980255,40.34460831),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Robertsville Elementary School",'Morganville=' + Morganville.length);
Roosevelt[Roosevelt.length] = createMarker(new GPoint(-74.47360229,40.22000122),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Roosevelt Elementary School",'Roosevelt=' + Roosevelt.length);
Rumson[Rumson.length] = createMarker(new GPoint(-74.00298309,40.36820984),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Rumson Fair Haven Regional High School",'Rumson=' + Rumson.length);
Sea_Girt[Sea_Girt.length] = createMarker(new GPoint(-74.04239655,40.13399887),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sea Girt Elementary School",'Sea_Girt=' + Sea_Girt.length);
Neptune[Neptune.length] = createMarker(new GPoint(-74.06040192,40.21210098),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Shark River Hills Elementary School",'Neptune=' + Neptune.length);
West_Long_Branch[West_Long_Branch.length] = createMarker(new GPoint(-74.01750183,40.29059982),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Shore Regional High School",'West_Long_Branch=' + West_Long_Branch.length);
Shrewsbury[Shrewsbury.length] = createMarker(new GPoint(-74.06494904,40.32876205),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Shrewsbury Elementary School",'Shrewsbury=' + Shrewsbury.length);
Howell[Howell.length] = createMarker(new GPoint(-74.22754669,40.12935638),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Southard Elementary School",'Howell=' + Howell.length);
Spring_Lake_Heights[Spring_Lake_Heights.length] = createMarker(new GPoint(-74.03630066,40.15319824),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Spring Lake Heights Elementary School",'Spring_Lake_Heights=' + Spring_Lake_Heights.length);
Aberdeen[Aberdeen.length] = createMarker(new GPoint(-74.23960114,40.41199875),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Strathmore Elementary School",'Aberdeen=' + Aberdeen.length);
Neptune[Neptune.length] = createMarker(new GPoint(-74.06040192,40.21210098),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Summerfield Elementary School",'Neptune=' + Neptune.length);
Tinton_Falls[Tinton_Falls.length] = createMarker(new GPoint(-74.08382416,40.32863998),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Swimming River Middle School",'Tinton_Falls=' + Tinton_Falls.length);
Hazlet[Hazlet.length] = createMarker(new GPoint(-74.18668365,40.42377090),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sycamore Drive School",'Hazlet=' + Hazlet.length);
Howell[Howell.length] = createMarker(new GPoint(-74.21305084,40.15124893),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Taunton Elementary School",'Howell=' + Howell.length);
Englishtown[Englishtown.length] = createMarker(new GPoint(-74.35836900,40.29595500),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Taylor Mills",'Englishtown=' + Englishtown.length);
Middletown[Middletown.length] = createMarker(new GPoint(-74.11560059,40.40340042),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Thompson Middle School",'Middletown=' + Middletown.length);
Port_Monmouth[Port_Monmouth.length] = createMarker(new GPoint(-74.11924744,40.41842651),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Thorne Middle School",'Port_Monmouth=' + Port_Monmouth.length);
Asbury_Park[Asbury_Park.length] = createMarker(new GPoint(-74.00981903,40.21820450),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Thurgood Marshall Primary",'Asbury_Park=' + Asbury_Park.length);
Tinton_Falls[Tinton_Falls.length] = createMarker(new GPoint(-74.09838867,40.30271149),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Tinton Falls Middle School",'Tinton_Falls=' + Tinton_Falls.length);
Allentown[Allentown.length] = createMarker(new GPoint(-74.56759644,40.16389847),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Upper Freehold Reg. Elementary School",'Allentown=' + Allentown.length);
Holmdel[Holmdel.length] = createMarker(new GPoint(-74.17105103,40.34639359),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Village School",'Holmdel=' + Holmdel.length);
Fair_Haven[Fair_Haven.length] = createMarker(new GPoint(-74.03769684,40.35979843),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Viola L Sickles Elementary School",'Fair_Haven=' + Fair_Haven.length);
Wall[Wall.length] = createMarker(new GPoint(-74.05960083,40.17150116),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Wall High School",'Wall=' + Wall.length);
Wall[Wall.length] = createMarker(new GPoint(-74.05960083,40.17150116),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wall Primary School",'Wall=' + Wall.length);
Wanamassa[Wanamassa.length] = createMarker(new GPoint(-74.03970337,40.23830032),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wanamassa Elementary School",'Wanamassa=' + Wanamassa.length);
Ocean[Ocean.length] = createMarker(new GPoint(-74.07012939,40.25218582),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wayside Elementary School",'Ocean=' + Ocean.length);
Manalapan[Manalapan.length] = createMarker(new GPoint(-74.35113525,40.28091431),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Wemrock Brook School",'Manalapan=' + Manalapan.length);
West_Belmar[West_Belmar.length] = createMarker(new GPoint(-74.05960083,40.17150116),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("West Belmar Elementary School",'West_Belmar=' + West_Belmar.length);
Long_Branch[Long_Branch.length] = createMarker(new GPoint(-73.98748016,40.28581238),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("West End Elementary School",'Long_Branch=' + Long_Branch.length);
Freehold[Freehold.length] = createMarker(new GPoint(-74.30178833,40.24207306),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("West Freehold Elementary School",'Freehold=' + Freehold.length);
Holmdel[Holmdel.length] = createMarker(new GPoint(-74.18044281,40.38109970),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("William Satz Intermediate",'Holmdel=' + Holmdel.length);
Oceanport[Oceanport.length] = createMarker(new GPoint(-74.01760101,40.31499863),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wolf Hill Elementary School",'Oceanport=' + Oceanport.length);
Eatontown[Eatontown.length] = createMarker(new GPoint(-74.06124878,40.28117371),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Woodmere Elementary School",'Eatontown=' + Eatontown.length);
Neptune_City[Neptune_City.length] = createMarker(new GPoint(-74.03935242,40.20274734),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Woodrow Wilson Elementary School",'Neptune_City=' + Neptune_City.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(Aberdeen);
map.removeOverlays(Allentown);
map.removeOverlays(Asbury_Park);
map.removeOverlays(Atlantic_Highlands);
map.removeOverlays(Avon);
map.removeOverlays(Belford);
map.removeOverlays(Belmar);
map.removeOverlays(Bradley_Beach);
map.removeOverlays(Brielle);
map.removeOverlays(Clarksburg);
map.removeOverlays(Cliffwood);
map.removeOverlays(Colts_Neck);
map.removeOverlays(Deal);
map.removeOverlays(Eatontown);
map.removeOverlays(Elberon);
map.removeOverlays(Englishtown);
map.removeOverlays(Fair_Haven);
map.removeOverlays(Farmingdale);
map.removeOverlays(Freehold);
map.removeOverlays(Hazlet);
map.removeOverlays(Highlands);
map.removeOverlays(Holmdel);
map.removeOverlays(Howell);
map.removeOverlays(Keansburg);
map.removeOverlays(Keyport);
map.removeOverlays(Lake_Como);
map.removeOverlays(Leonardo);
map.removeOverlays(Lincroft);
map.removeOverlays(Little_Silver);
map.removeOverlays(Long_Branch);
map.removeOverlays(Manalapan);
map.removeOverlays(Manasquan);
map.removeOverlays(Marlboro);
map.removeOverlays(Matawan);
map.removeOverlays(Middletown);
map.removeOverlays(Monmouth_Beach);
map.removeOverlays(Morganville);
map.removeOverlays(Navesink);
map.removeOverlays(Neptune);
map.removeOverlays(Neptune_City);
map.removeOverlays(New_Monmouth);
map.removeOverlays(North_Middletown);
map.removeOverlays(Oakhurst);
map.removeOverlays(Ocean);
map.removeOverlays(Oceanport);
map.removeOverlays(Port_Monmouth);
map.removeOverlays(Red_Bank);
map.removeOverlays(Red__Bank);
map.removeOverlays(Roosevelt);
map.removeOverlays(Rumson);
map.removeOverlays(Sandy_Hook);
map.removeOverlays(Sea_Girt);
map.removeOverlays(Shrewsbury);
map.removeOverlays(Spring_Lake);
map.removeOverlays(Spring_Lake_Heights);
map.removeOverlays(Tinton_Falls);
map.removeOverlays(Union_Beach);
map.removeOverlays(Wall);
map.removeOverlays(Wanamassa);
map.removeOverlays(West_Belmar);
map.removeOverlays(West_Long_Branch);
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(Long_Branch);map.removeOverlays(Aberdeen);
map.removeOverlays(Allentown);
map.removeOverlays(Asbury_Park);
map.removeOverlays(Atlantic_Highlands);
map.removeOverlays(Avon);
map.removeOverlays(Belford);
map.removeOverlays(Belmar);
map.removeOverlays(Bradley_Beach);
map.removeOverlays(Brielle);
map.removeOverlays(Clarksburg);
map.removeOverlays(Cliffwood);
map.removeOverlays(Colts_Neck);
map.removeOverlays(Deal);
map.removeOverlays(Eatontown);
map.removeOverlays(Elberon);
map.removeOverlays(Englishtown);
map.removeOverlays(Fair_Haven);
map.removeOverlays(Farmingdale);
map.removeOverlays(Freehold);
map.removeOverlays(Hazlet);
map.removeOverlays(Highlands);
map.removeOverlays(Holmdel);
map.removeOverlays(Howell);
map.removeOverlays(Keansburg);
map.removeOverlays(Keyport);
map.removeOverlays(Lake_Como);
map.removeOverlays(Leonardo);
map.removeOverlays(Lincroft);
map.removeOverlays(Little_Silver);
map.removeOverlays(Long_Branch);
map.removeOverlays(Manalapan);
map.removeOverlays(Manasquan);
map.removeOverlays(Marlboro);
map.removeOverlays(Matawan);
map.removeOverlays(Middletown);
map.removeOverlays(Monmouth_Beach);
map.removeOverlays(Morganville);
map.removeOverlays(Navesink);
map.removeOverlays(Neptune);
map.removeOverlays(Neptune_City);
map.removeOverlays(New_Monmouth);
map.removeOverlays(North_Middletown);
map.removeOverlays(Oakhurst);
map.removeOverlays(Ocean);
map.removeOverlays(Oceanport);
map.removeOverlays(Port_Monmouth);
map.removeOverlays(Red_Bank);
map.removeOverlays(Red__Bank);
map.removeOverlays(Roosevelt);
map.removeOverlays(Rumson);
map.removeOverlays(Sandy_Hook);
map.removeOverlays(Sea_Girt);
map.removeOverlays(Shrewsbury);
map.removeOverlays(Spring_Lake);
map.removeOverlays(Spring_Lake_Heights);
map.removeOverlays(Tinton_Falls);
map.removeOverlays(Union_Beach);
map.removeOverlays(Wall);
map.removeOverlays(Wanamassa);
map.removeOverlays(West_Belmar);
map.removeOverlays(West_Long_Branch);
map.addOverlays(Aberdeen);
centerByArray(Aberdeen, false, false);
cntMarker += Aberdeen.length;
map.addOverlays(Allentown);
centerByArray(Allentown, false, false);
cntMarker += Allentown.length;
map.addOverlays(Asbury_Park);
centerByArray(Asbury_Park, false, false);
cntMarker += Asbury_Park.length;
map.addOverlays(Atlantic_Highlands);
centerByArray(Atlantic_Highlands, false, false);
cntMarker += Atlantic_Highlands.length;
map.addOverlays(Avon);
centerByArray(Avon, false, false);
cntMarker += Avon.length;
map.addOverlays(Belford);
centerByArray(Belford, false, false);
cntMarker += Belford.length;
map.addOverlays(Belmar);
centerByArray(Belmar, false, false);
cntMarker += Belmar.length;
map.addOverlays(Bradley_Beach);
centerByArray(Bradley_Beach, false, false);
cntMarker += Bradley_Beach.length;
map.addOverlays(Brielle);
centerByArray(Brielle, false, false);
cntMarker += Brielle.length;
map.addOverlays(Clarksburg);
centerByArray(Clarksburg, false, false);
cntMarker += Clarksburg.length;
map.addOverlays(Cliffwood);
centerByArray(Cliffwood, false, false);
cntMarker += Cliffwood.length;
map.addOverlays(Colts_Neck);
centerByArray(Colts_Neck, false, false);
cntMarker += Colts_Neck.length;
map.addOverlays(Deal);
centerByArray(Deal, false, false);
cntMarker += Deal.length;
map.addOverlays(Eatontown);
centerByArray(Eatontown, false, false);
cntMarker += Eatontown.length;
map.addOverlays(Elberon);
centerByArray(Elberon, false, false);
cntMarker += Elberon.length;
map.addOverlays(Englishtown);
centerByArray(Englishtown, false, false);
cntMarker += Englishtown.length;
map.addOverlays(Fair_Haven);
centerByArray(Fair_Haven, false, false);
cntMarker += Fair_Haven.length;
map.addOverlays(Farmingdale);
centerByArray(Farmingdale, false, false);
cntMarker += Farmingdale.length;
map.addOverlays(Freehold);
centerByArray(Freehold, false, false);
cntMarker += Freehold.length;
map.addOverlays(Hazlet);
centerByArray(Hazlet, false, false);
cntMarker += Hazlet.length;
map.addOverlays(Highlands);
centerByArray(Highlands, false, false);
cntMarker += Highlands.length;
map.addOverlays(Holmdel);
centerByArray(Holmdel, false, false);
cntMarker += Holmdel.length;
map.addOverlays(Howell);
centerByArray(Howell, false, false);
cntMarker += Howell.length;
map.addOverlays(Keansburg);
centerByArray(Keansburg, false, false);
cntMarker += Keansburg.length;
map.addOverlays(Keyport);
centerByArray(Keyport, false, false);
cntMarker += Keyport.length;
map.addOverlays(Lake_Como);
centerByArray(Lake_Como, false, false);
cntMarker += Lake_Como.length;
map.addOverlays(Leonardo);
centerByArray(Leonardo, false, false);
cntMarker += Leonardo.length;
map.addOverlays(Lincroft);
centerByArray(Lincroft, false, false);
cntMarker += Lincroft.length;
map.addOverlays(Little_Silver);
centerByArray(Little_Silver, false, false);
cntMarker += Little_Silver.length;
map.addOverlays(Long_Branch);
centerByArray(Long_Branch, false, false);
cntMarker += Long_Branch.length;
map.addOverlays(Manalapan);
centerByArray(Manalapan, false, false);
cntMarker += Manalapan.length;
map.addOverlays(Manasquan);
centerByArray(Manasquan, false, false);
cntMarker += Manasquan.length;
map.addOverlays(Marlboro);
centerByArray(Marlboro, false, false);
cntMarker += Marlboro.length;
map.addOverlays(Matawan);
centerByArray(Matawan, false, false);
cntMarker += Matawan.length;
map.addOverlays(Middletown);
centerByArray(Middletown, false, false);
cntMarker += Middletown.length;
map.addOverlays(Monmouth_Beach);
centerByArray(Monmouth_Beach, false, false);
cntMarker += Monmouth_Beach.length;
map.addOverlays(Morganville);
centerByArray(Morganville, false, false);
cntMarker += Morganville.length;
map.addOverlays(Navesink);
centerByArray(Navesink, false, false);
cntMarker += Navesink.length;
map.addOverlays(Neptune);
centerByArray(Neptune, false, false);
cntMarker += Neptune.length;
map.addOverlays(Neptune_City);
centerByArray(Neptune_City, false, false);
cntMarker += Neptune_City.length;
map.addOverlays(New_Monmouth);
centerByArray(New_Monmouth, false, false);
cntMarker += New_Monmouth.length;
map.addOverlays(North_Middletown);
centerByArray(North_Middletown, false, false);
cntMarker += North_Middletown.length;
map.addOverlays(Oakhurst);
centerByArray(Oakhurst, false, false);
cntMarker += Oakhurst.length;
map.addOverlays(Ocean);
centerByArray(Ocean, false, false);
cntMarker += Ocean.length;
map.addOverlays(Oceanport);
centerByArray(Oceanport, false, false);
cntMarker += Oceanport.length;
map.addOverlays(Port_Monmouth);
centerByArray(Port_Monmouth, false, false);
cntMarker += Port_Monmouth.length;
map.addOverlays(Red_Bank);
centerByArray(Red_Bank, false, false);
cntMarker += Red_Bank.length;
map.addOverlays(Red__Bank);
centerByArray(Red__Bank, false, false);
cntMarker += Red__Bank.length;
map.addOverlays(Roosevelt);
centerByArray(Roosevelt, false, false);
cntMarker += Roosevelt.length;
map.addOverlays(Rumson);
centerByArray(Rumson, false, false);
cntMarker += Rumson.length;
map.addOverlays(Sandy_Hook);
centerByArray(Sandy_Hook, false, false);
cntMarker += Sandy_Hook.length;
map.addOverlays(Sea_Girt);
centerByArray(Sea_Girt, false, false);
cntMarker += Sea_Girt.length;
map.addOverlays(Shrewsbury);
centerByArray(Shrewsbury, false, false);
cntMarker += Shrewsbury.length;
map.addOverlays(Spring_Lake);
centerByArray(Spring_Lake, false, false);
cntMarker += Spring_Lake.length;
map.addOverlays(Spring_Lake_Heights);
centerByArray(Spring_Lake_Heights, false, false);
cntMarker += Spring_Lake_Heights.length;
map.addOverlays(Tinton_Falls);
centerByArray(Tinton_Falls, false, false);
cntMarker += Tinton_Falls.length;
map.addOverlays(Union_Beach);
centerByArray(Union_Beach, false, false);
cntMarker += Union_Beach.length;
map.addOverlays(Wall);
centerByArray(Wall, false, false);
cntMarker += Wall.length;
map.addOverlays(Wanamassa);
centerByArray(Wanamassa, false, false);
cntMarker += Wanamassa.length;
map.addOverlays(West_Belmar);
centerByArray(West_Belmar, false, false);
cntMarker += West_Belmar.length;
map.addOverlays(West_Long_Branch);
centerByArray(West_Long_Branch, false, false);
cntMarker += West_Long_Branch.length;
centerByArray(Long_Branch,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');
}
}