function addMarkers()
{
mySelect = document.getElementById('selection');
Titusville = [];Cocoa = [];Merritt_Island = [];Palm_Bay = [];Rockledge = [];Viera = [];Port_St_John = [];Cape_Canaveral = [];West_Melbourne = [];Cocoa_Beach = [];Melbourne = [];Satellite_Beach = [];Mims = [];Melbourne_Beach = [];Indialantic = [];Indian_Harbour_Beach = [];Scottsmoor = [];Sebastian = [];mySelect.options[mySelect.options.length] = new Option("Cape Canaveral schools",'all=Cape_Canaveral');
mySelect.options[mySelect.options.length] = new Option("Cocoa schools",'all=Cocoa');
mySelect.options[mySelect.options.length] = new Option("Cocoa Beach schools",'all=Cocoa_Beach');
mySelect.options[mySelect.options.length] = new Option("Indialantic schools",'all=Indialantic');
mySelect.options[mySelect.options.length] = new Option("Indian Harbour Beach schools",'all=Indian_Harbour_Beach');
mySelect.options[mySelect.options.length] = new Option("Melbourne schools",'all=Melbourne');
mySelect.options[mySelect.options.length] = new Option("Melbourne Beach schools",'all=Melbourne_Beach');
mySelect.options[mySelect.options.length] = new Option("Merritt Island schools",'all=Merritt_Island');
mySelect.options[mySelect.options.length] = new Option("Mims schools",'all=Mims');
mySelect.options[mySelect.options.length] = new Option("Palm Bay schools",'all=Palm_Bay');
mySelect.options[mySelect.options.length] = new Option("Port St John schools",'all=Port_St_John');
mySelect.options[mySelect.options.length] = new Option("Rockledge schools",'all=Rockledge');
mySelect.options[mySelect.options.length] = new Option("Satellite Beach schools",'all=Satellite_Beach');
mySelect.options[mySelect.options.length] = new Option("Scottsmoor schools",'all=Scottsmoor');
mySelect.options[mySelect.options.length] = new Option("Sebastian schools",'all=Sebastian');
mySelect.options[mySelect.options.length] = new Option("Titusville schools",'all=Titusville');
mySelect.options[mySelect.options.length] = new Option("Viera schools",'all=Viera');
mySelect.options[mySelect.options.length] = new Option("West Melbourne schools",'all=West_Melbourne');
mySelect.options[mySelect.options.length] = new Option("---------------------------",'');
Titusville[Titusville.length] = createMarker(new GPoint(-80.81990814,28.57138252),"
",iconBl);
mySelect.options[mySelect.options.length] = new Option("Andrew Jackson Middle School",'Titusville=' + Titusville.length);
Titusville[Titusville.length] = createMarker(new GPoint(-80.84240723,28.57987022),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Apollo Elementary School",'Titusville=' + Titusville.length);
Titusville[Titusville.length] = createMarker(new GPoint(-80.85007477,28.62558556),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Astronaut High School",'Titusville=' + Titusville.length);
Cocoa[Cocoa.length] = createMarker(new GPoint(-80.79528046,28.48777962),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Atlantis Elementary School",'Cocoa=' + Cocoa.length);
Merritt_Island[Merritt_Island.length] = createMarker(new GPoint(-80.66844940,28.37719727),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Audubon Elementary School",'Merritt_Island=' + Merritt_Island.length);
Palm_Bay[Palm_Bay.length] = createMarker(new GPoint(-80.67560577,27.93769836),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Bayside High School",'Palm_Bay=' + Palm_Bay.length);
Rockledge[Rockledge.length] = createMarker(new GPoint(-80.72233900,28.34304800),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Brevard Achievement Center",'Rockledge=' + Rockledge.length);
Viera[Viera.length] = createMarker(new GPoint(-80.73790900,28.24569000),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Brevard County Superintendent's Office",'Viera=' + Viera.length);
Cocoa[Cocoa.length] = createMarker(new GPoint(-80.75027466,28.38248253),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cambridge Elementary School",'Cocoa=' + Cocoa.length);
Port_St_John[Port_St_John.length] = createMarker(new GPoint(-80.77027893,28.48034477),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Campus Charter School",'Port_St_John=' + Port_St_John.length);
Cape_Canaveral[Cape_Canaveral.length] = createMarker(new GPoint(-80.59977722,28.39373207),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cape View Elementary School",'Cape_Canaveral=' + Cape_Canaveral.length);
Cocoa[Cocoa.length] = createMarker(new GPoint(-80.78740692,28.41102219),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Center For Drug Free Living",'Cocoa=' + Cocoa.length);
Rockledge[Rockledge.length] = createMarker(new GPoint(-80.72233900,28.34304800),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Central Area Arc Center",'Rockledge=' + Rockledge.length);
West_Melbourne[West_Melbourne.length] = createMarker(new GPoint(-80.66115570,28.06072044),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Central Middle School",'West_Melbourne=' + West_Melbourne.length);
Cocoa[Cocoa.length] = createMarker(new GPoint(-80.80168152,28.46570969),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Challenger 7 Elementary School",'Cocoa=' + Cocoa.length);
Rockledge[Rockledge.length] = createMarker(new GPoint(-80.73485900,28.33268900),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Children's Interagency Program",'Rockledge=' + Rockledge.length);
Palm_Bay[Palm_Bay.length] = createMarker(new GPoint(-80.67397308,28.00857544),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Christa Mcauliffe Elementary School",'Palm_Bay=' + Palm_Bay.length);
Cocoa[Cocoa.length] = createMarker(new GPoint(-80.75486755,28.37622070),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Clearlake Middle School",'Cocoa=' + Cocoa.length);
Cocoa_Beach[Cocoa_Beach.length] = createMarker(new GPoint(-80.62708282,28.31848335),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Cocoa Beach Junior/senior High School",'Cocoa_Beach=' + Cocoa_Beach.length);
Cocoa[Cocoa.length] = createMarker(new GPoint(-80.76539612,28.38176918),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Cocoa High School",'Cocoa=' + Cocoa.length);
Rockledge[Rockledge.length] = createMarker(new GPoint(-80.73235321,28.33161354),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Cogswell Offsite Alt Abeyance",'Rockledge=' + Rockledge.length);
Palm_Bay[Palm_Bay.length] = createMarker(new GPoint(-80.63622284,27.96673775),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Columbia Elementary School",'Palm_Bay=' + Palm_Bay.length);
Titusville[Titusville.length] = createMarker(new GPoint(-80.81104279,28.56472969),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Coquina Elementary School",'Titusville=' + Titusville.length);
Cocoa[Cocoa.length] = createMarker(new GPoint(-80.74249268,28.37369728),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Crosswinds",'Cocoa=' + Cocoa.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.65517426,28.13044739),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Croton Elementary School",'Melbourne=' + Melbourne.length);
Satellite_Beach[Satellite_Beach.length] = createMarker(new GPoint(-80.59677124,28.18318939),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Delaura Middle School",'Satellite_Beach=' + Satellite_Beach.length);
Cocoa[Cocoa.length] = createMarker(new GPoint(-80.78466797,28.44820595),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Detention Center",'Cocoa=' + Cocoa.length);
Cocoa[Cocoa.length] = createMarker(new GPoint(-80.78466797,28.44820595),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Detention Center (formerly Brevard Juvenile Detent",'Cocoa=' + Cocoa.length);
Viera[Viera.length] = createMarker(new GPoint(-80.60704041,28.08328819),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Devereau Hospital",'Viera=' + Viera.length);
Mims[Mims.length] = createMarker(new GPoint(-80.84030151,28.66017532),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Devereux Center At Normandy School",'Mims=' + Mims.length);
Titusville[Titusville.length] = createMarker(new GPoint(-80.82365417,28.60766411),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Devereux Center At Whispering Hills (formerly Deve",'Titusville=' + Titusville.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.67187500,28.14160538),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Devereux South Pine Grove (i",'Melbourne=' + Melbourne.length);
Palm_Bay[Palm_Bay.length] = createMarker(new GPoint(-80.71980286,28.02945328),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Discovery Elementary School",'Palm_Bay=' + Palm_Bay.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.64327240,28.13929176),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dr. W.j. Creel Elementary School",'Melbourne=' + Melbourne.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.62145233,28.05441093),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Early Intervention Center",'Melbourne=' + Melbourne.length);
Palm_Bay[Palm_Bay.length] = createMarker(new GPoint(-80.62295100,27.99745600),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Easter Seals Florida, Inc.",'Palm_Bay=' + Palm_Bay.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.68307495,28.07440948),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Eau Gallie High School",'Melbourne=' + Melbourne.length);
Merritt_Island[Merritt_Island.length] = createMarker(new GPoint(-80.69532776,28.36148453),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Edgewood Junior/senior High School",'Merritt_Island=' + Merritt_Island.length);
West_Melbourne[West_Melbourne.length] = createMarker(new GPoint(-80.67256927,28.08605194),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Educational Horizons Charter",'West_Melbourne=' + West_Melbourne.length);
Cocoa[Cocoa.length] = createMarker(new GPoint(-80.79630280,28.39130020),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Einstein Montessori",'Cocoa=' + Cocoa.length);
Cocoa[Cocoa.length] = createMarker(new GPoint(-80.74647522,28.36967468),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Endeavour Elementary Magnet",'Cocoa=' + Cocoa.length);
Cocoa[Cocoa.length] = createMarker(new GPoint(-80.82360077,28.47597504),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Enterprise Elementary School",'Cocoa=' + Cocoa.length);
Titusville[Titusville.length] = createMarker(new GPoint(-80.67187500,28.14160538),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Ese Infants And Toddlers",'Titusville=' + Titusville.length);
West_Melbourne[West_Melbourne.length] = createMarker(new GPoint(-80.70051575,28.09878540),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Explorer Elementary Middle Charter",'West_Melbourne=' + West_Melbourne.length);
Cocoa[Cocoa.length] = createMarker(new GPoint(-80.76174164,28.43888092),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fairglen Elementary School",'Cocoa=' + Cocoa.length);
Titusville[Titusville.length] = createMarker(new GPoint(-80.81900024,28.56049919),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Fieldston Preparatory School",'Titusville=' + Titusville.length);
Cocoa_Beach[Cocoa_Beach.length] = createMarker(new GPoint(-80.61326599,28.31128502),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Freedom 7 Elementary/international Studies Elementary School",'Cocoa_Beach=' + Cocoa_Beach.length);
Merritt_Island[Merritt_Island.length] = createMarker(new GPoint(-80.70660400,28.37955475),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Gardendale Magnet Elementary School",'Merritt_Island=' + Merritt_Island.length);
Melbourne_Beach[Melbourne_Beach.length] = createMarker(new GPoint(-80.55257416,28.05279541),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Gemini Elementary School",'Melbourne_Beach=' + Melbourne_Beach.length);
Rockledge[Rockledge.length] = createMarker(new GPoint(-80.74267578,28.33714485),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Golfview Elementary Magnet School",'Rockledge=' + Rockledge.length);
Titusville[Titusville.length] = createMarker(new GPoint(-80.79021454,28.54497337),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Halfway House",'Titusville=' + Titusville.length);
Rockledge[Rockledge.length] = createMarker(new GPoint(-80.74277496,28.31028557),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hans Christian Andersen Elementary School",'Rockledge=' + Rockledge.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.65125900,28.14133000),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Harbor City Elementary School",'Melbourne=' + Melbourne.length);
Indialantic[Indialantic.length] = createMarker(new GPoint(-80.57415009,28.10029030),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Herbert C. Hoover Middle School",'Indialantic=' + Indialantic.length);
Rockledge[Rockledge.length] = createMarker(new GPoint(-80.72599792,28.30319977),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Horace Mann Academy",'Rockledge=' + Rockledge.length);
Titusville[Titusville.length] = createMarker(new GPoint(-80.81145477,28.54286385),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Imperial Estates Elementary School",'Titusville=' + Titusville.length);
Indialantic[Indialantic.length] = createMarker(new GPoint(-80.57157135,28.09239388),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Indialantic Elementary School",'Indialantic=' + Indialantic.length);
Titusville[Titusville.length] = createMarker(new GPoint(-80.85102844,28.63696098),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("James Madison Middle School",'Titusville=' + Titusville.length);
Rockledge[Rockledge.length] = createMarker(new GPoint(-80.74278259,28.32638550),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("John F. Kennedy Middle School",'Rockledge=' + Rockledge.length);
Palm_Bay[Palm_Bay.length] = createMarker(new GPoint(-80.66089630,27.98741913),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("John F. Turner, Senior Elementary School",'Palm_Bay=' + Palm_Bay.length);
Palm_Bay[Palm_Bay.length] = createMarker(new GPoint(-80.69855499,27.98786354),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Jupiter Elementary School",'Palm_Bay=' + Palm_Bay.length);
Merritt_Island[Merritt_Island.length] = createMarker(new GPoint(-80.70055389,28.39456367),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lewis Carroll Elementary School",'Merritt_Island=' + Merritt_Island.length);
Palm_Bay[Palm_Bay.length] = createMarker(new GPoint(-80.65844727,28.02473640),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lockmar Elementary School",'Palm_Bay=' + Palm_Bay.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.67207336,28.17569160),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Longleaf Elementary School",'Melbourne=' + Melbourne.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.65517426,28.14228439),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Lyndon B. Johnson Middle School",'Melbourne=' + Melbourne.length);
Viera[Viera.length] = createMarker(new GPoint(-80.69110107,28.22220039),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Manatee Elementary School",'Viera=' + Viera.length);
West_Melbourne[West_Melbourne.length] = createMarker(new GPoint(-80.66770935,28.06127167),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Meadowlane Elementary School",'West_Melbourne=' + West_Melbourne.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.62019348,28.08879471),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Melbourne Senior High School",'Melbourne=' + Melbourne.length);
Merritt_Island[Merritt_Island.length] = createMarker(new GPoint(-80.69236900,28.36141000),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Merritt Island Senior High School",'Merritt_Island=' + Merritt_Island.length);
Merritt_Island[Merritt_Island.length] = createMarker(new GPoint(-80.70317841,28.36138344),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mila Elementary School",'Merritt_Island=' + Merritt_Island.length);
Palm_Bay[Palm_Bay.length] = createMarker(new GPoint(-80.57834625,28.03151131),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Milestones Community Charter",'Palm_Bay=' + Palm_Bay.length);
Mims[Mims.length] = createMarker(new GPoint(-80.84670258,28.66842651),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mims Elementary School",'Mims=' + Mims.length);
Titusville[Titusville.length] = createMarker(new GPoint(-80.85235596,28.63695335),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oakpark Elementary School",'Titusville=' + Titusville.length);
Palm_Bay[Palm_Bay.length] = createMarker(new GPoint(-80.62197300,27.96748000),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Oakwood Academy",'Palm_Bay=' + Palm_Bay.length);
Indian_Harbour_Beach[Indian_Harbour_Beach.length] = createMarker(new GPoint(-80.59167480,28.15039253),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ocean Breeze Elementary School",'Indian_Harbour_Beach=' + Indian_Harbour_Beach.length);
Palm_Bay[Palm_Bay.length] = createMarker(new GPoint(-80.68050385,28.03182602),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Odyssey Charter School",'Palm_Bay=' + Palm_Bay.length);
Mims[Mims.length] = createMarker(new GPoint(-80.84031677,28.66185570),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Offsite Alternate Abeyance Pgm",'Mims=' + Mims.length);
Rockledge[Rockledge.length] = createMarker(new GPoint(-80.72430900,28.30286900),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Osprey Elementary School",'Rockledge=' + Rockledge.length);
Scottsmoor[Scottsmoor.length] = createMarker(new GPoint(-80.87660217,28.76339912),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Outward Bound",'Scottsmoor=' + Scottsmoor.length);
Palm_Bay[Palm_Bay.length] = createMarker(new GPoint(-80.61140442,28.03439140),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Palm Bay Academy Charter School",'Palm_Bay=' + Palm_Bay.length);
Palm_Bay[Palm_Bay.length] = createMarker(new GPoint(-80.59165192,28.02773666),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Palm Bay Elementary School",'Palm_Bay=' + Palm_Bay.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.61159515,28.04950142),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Palm Bay Senior High School",'Melbourne=' + Melbourne.length);
Mims[Mims.length] = createMarker(new GPoint(-80.85894775,28.70196342),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pinewood Elementary School",'Mims=' + Mims.length);
Palm_Bay[Palm_Bay.length] = createMarker(new GPoint(-80.62082672,28.00452805),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Port Malabar Elementary School",'Palm_Bay=' + Palm_Bay.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.66004944,28.15630722),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Prekindergarten Centers",'Melbourne=' + Melbourne.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.72348300,28.22253800),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Quest Elementary School",'Melbourne=' + Melbourne.length);
Rockledge[Rockledge.length] = createMarker(new GPoint(-80.71994781,28.27146912),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ralph M Williams Junior Elementary School",'Rockledge=' + Rockledge.length);
Palm_Bay[Palm_Bay.length] = createMarker(new GPoint(-80.62674400,28.03518000),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("River's Edge Charter Academy",'Palm_Bay=' + Palm_Bay.length);
Palm_Bay[Palm_Bay.length] = createMarker(new GPoint(-80.61379242,28.03495407),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Riverdale Country Day School",'Palm_Bay=' + Palm_Bay.length);
Titusville[Titusville.length] = createMarker(new GPoint(-80.81261444,28.58140182),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Riverview Elementary Magnet School",'Titusville=' + Titusville.length);
Palm_Bay[Palm_Bay.length] = createMarker(new GPoint(-80.64549255,28.03228378),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Riviera Elementary School",'Palm_Bay=' + Palm_Bay.length);
Merritt_Island[Merritt_Island.length] = createMarker(new GPoint(-80.67129517,28.39788246),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Robert L. Stevenson Elementary School",'Merritt_Island=' + Merritt_Island.length);
Rockledge[Rockledge.length] = createMarker(new GPoint(-80.74287415,28.30495071),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Rockledge Educational Horizons Charter School (fo",'Rockledge=' + Rockledge.length);
Rockledge[Rockledge.length] = createMarker(new GPoint(-80.72235107,28.34233665),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Rockledge Senior High School",'Rockledge=' + Rockledge.length);
Cocoa[Cocoa.length] = createMarker(new GPoint(-80.73672485,28.34938622),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Ronald Mcnair Magnet Middle School",'Cocoa=' + Cocoa.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.66486359,28.11789131),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Roy Allen Elementary School",'Melbourne=' + Melbourne.length);
Palm_Bay[Palm_Bay.length] = createMarker(new GPoint(-80.62254333,27.96688652),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Royal Palm Charter School",'Palm_Bay=' + Palm_Bay.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.67177582,28.12922668),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sabal Elementary School",'Melbourne=' + Melbourne.length);
Satellite_Beach[Satellite_Beach.length] = createMarker(new GPoint(-80.59718323,28.18648720),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Satellite Senior High School",'Satellite_Beach=' + Satellite_Beach.length);
Cocoa[Cocoa.length] = createMarker(new GPoint(-80.77130890,28.36805534),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Saturn Elementary School",'Cocoa=' + Cocoa.length);
Rockledge[Rockledge.length] = createMarker(new GPoint(-80.72430900,28.30286900),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Sawgrass Academy",'Rockledge=' + Rockledge.length);
Titusville[Titusville.length] = createMarker(new GPoint(-80.81403351,28.53275871),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sculptor Elementary Charter",'Titusville=' + Titusville.length);
Satellite_Beach[Satellite_Beach.length] = createMarker(new GPoint(-80.60404205,28.20334053),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sea Park Elementary School",'Satellite_Beach=' + Satellite_Beach.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.66453552,28.17199135),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sherwood Elementary School",'Melbourne=' + Melbourne.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.62182000,28.08657300),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("South Area Achievement Center",'Melbourne=' + Melbourne.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.62182000,28.08657300),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("South Area Arc Center",'Melbourne=' + Melbourne.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.67187500,28.14160538),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("South Area Offsite Alternate",'Melbourne=' + Melbourne.length);
Titusville[Titusville.length] = createMarker(new GPoint(-80.85159302,28.61617279),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("South Lake Elementary School",'Titusville=' + Titusville.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.67187500,28.14160538),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("South Pine Grove School",'Melbourne=' + Melbourne.length);
Palm_Bay[Palm_Bay.length] = createMarker(new GPoint(-80.66137695,27.98973083),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Southwest Middle School",'Palm_Bay=' + Palm_Bay.length);
Cocoa[Cocoa.length] = createMarker(new GPoint(-80.82654572,28.47593880),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Space Coast Junior/senior High School",'Cocoa=' + Cocoa.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.71405792,28.12053680),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Space Coast Marine Institute",'Melbourne=' + Melbourne.length);
Satellite_Beach[Satellite_Beach.length] = createMarker(new GPoint(-80.60317230,28.18588448),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Spessard L. Holland Elementary School",'Satellite_Beach=' + Satellite_Beach.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.60392761,28.06378937),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Stone Middle School",'Melbourne=' + Melbourne.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.60829926,28.08329964),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Summit Quest Charter Academy",'Melbourne=' + Melbourne.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.67631531,28.21750450),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Suntree Elementary School",'Melbourne=' + Melbourne.length);
Satellite_Beach[Satellite_Beach.length] = createMarker(new GPoint(-80.60100555,28.17229080),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Surfside Elementary School",'Satellite_Beach=' + Satellite_Beach.length);
Cocoa_Beach[Cocoa_Beach.length] = createMarker(new GPoint(-80.62157440,28.31828499),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Theodore Roosevelt Elementary School",'Cocoa_Beach=' + Cocoa_Beach.length);
Merritt_Island[Merritt_Island.length] = createMarker(new GPoint(-80.68701172,28.33584976),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Thomas Jefferson Middle School",'Merritt_Island=' + Merritt_Island.length);
Titusville[Titusville.length] = createMarker(new GPoint(-80.80346680,28.59117889),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Titusville High School",'Titusville=' + Titusville.length);
Merritt_Island[Merritt_Island.length] = createMarker(new GPoint(-80.69400024,28.34168434),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Tropical Elementary School",'Merritt_Island=' + Merritt_Island.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.62767792,28.06389427),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("University Park Elementary Magnet",'Melbourne=' + Melbourne.length);
West_Melbourne[West_Melbourne.length] = createMarker(new GPoint(-80.67077637,28.07330894),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("W. Melbourne Elementary For Science",'West_Melbourne=' + West_Melbourne.length);
Sebastian[Sebastian.length] = createMarker(new GPoint(-80.39749908,27.63829994),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Wabasso School",'Sebastian=' + Sebastian.length);
Melbourne[Melbourne.length] = createMarker(new GPoint(-80.62586975,28.10713196),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Westshore Junior/senior High School",'Melbourne=' + Melbourne.length);
Palm_Bay[Palm_Bay.length] = createMarker(new GPoint(-80.67568207,27.94374084),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Westside Elementary School",'Palm_Bay=' + Palm_Bay.length);
Titusville[Titusville.length] = createMarker(new GPoint(-80.82352448,28.60662842),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Whispering Hills Offsite Alternate Abeyance Progra",'Titusville=' + Titusville.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(Cape_Canaveral);
map.removeOverlays(Cocoa);
map.removeOverlays(Cocoa_Beach);
map.removeOverlays(Indialantic);
map.removeOverlays(Indian_Harbour_Beach);
map.removeOverlays(Melbourne);
map.removeOverlays(Melbourne_Beach);
map.removeOverlays(Merritt_Island);
map.removeOverlays(Mims);
map.removeOverlays(Palm_Bay);
map.removeOverlays(Port_St_John);
map.removeOverlays(Rockledge);
map.removeOverlays(Satellite_Beach);
map.removeOverlays(Scottsmoor);
map.removeOverlays(Sebastian);
map.removeOverlays(Titusville);
map.removeOverlays(Viera);
map.removeOverlays(West_Melbourne);
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(Titusville);map.removeOverlays(Cape_Canaveral);
map.removeOverlays(Cocoa);
map.removeOverlays(Cocoa_Beach);
map.removeOverlays(Indialantic);
map.removeOverlays(Indian_Harbour_Beach);
map.removeOverlays(Melbourne);
map.removeOverlays(Melbourne_Beach);
map.removeOverlays(Merritt_Island);
map.removeOverlays(Mims);
map.removeOverlays(Palm_Bay);
map.removeOverlays(Port_St_John);
map.removeOverlays(Rockledge);
map.removeOverlays(Satellite_Beach);
map.removeOverlays(Scottsmoor);
map.removeOverlays(Sebastian);
map.removeOverlays(Titusville);
map.removeOverlays(Viera);
map.removeOverlays(West_Melbourne);
map.addOverlays(Cape_Canaveral);
centerByArray(Cape_Canaveral, false, false);
cntMarker += Cape_Canaveral.length;
map.addOverlays(Cocoa);
centerByArray(Cocoa, false, false);
cntMarker += Cocoa.length;
map.addOverlays(Cocoa_Beach);
centerByArray(Cocoa_Beach, false, false);
cntMarker += Cocoa_Beach.length;
map.addOverlays(Indialantic);
centerByArray(Indialantic, false, false);
cntMarker += Indialantic.length;
map.addOverlays(Indian_Harbour_Beach);
centerByArray(Indian_Harbour_Beach, false, false);
cntMarker += Indian_Harbour_Beach.length;
map.addOverlays(Melbourne);
centerByArray(Melbourne, false, false);
cntMarker += Melbourne.length;
map.addOverlays(Melbourne_Beach);
centerByArray(Melbourne_Beach, false, false);
cntMarker += Melbourne_Beach.length;
map.addOverlays(Merritt_Island);
centerByArray(Merritt_Island, false, false);
cntMarker += Merritt_Island.length;
map.addOverlays(Mims);
centerByArray(Mims, false, false);
cntMarker += Mims.length;
map.addOverlays(Palm_Bay);
centerByArray(Palm_Bay, false, false);
cntMarker += Palm_Bay.length;
map.addOverlays(Port_St_John);
centerByArray(Port_St_John, false, false);
cntMarker += Port_St_John.length;
map.addOverlays(Rockledge);
centerByArray(Rockledge, false, false);
cntMarker += Rockledge.length;
map.addOverlays(Satellite_Beach);
centerByArray(Satellite_Beach, false, false);
cntMarker += Satellite_Beach.length;
map.addOverlays(Scottsmoor);
centerByArray(Scottsmoor, false, false);
cntMarker += Scottsmoor.length;
map.addOverlays(Sebastian);
centerByArray(Sebastian, false, false);
cntMarker += Sebastian.length;
map.addOverlays(Titusville);
centerByArray(Titusville, false, false);
cntMarker += Titusville.length;
map.addOverlays(Viera);
centerByArray(Viera, false, false);
cntMarker += Viera.length;
map.addOverlays(West_Melbourne);
centerByArray(West_Melbourne, false, false);
cntMarker += West_Melbourne.length;
centerByArray(Titusville,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');
}
}