function addMarkers()
{
mySelect = document.getElementById('selection');
Maumelle = [];Little_Rock = [];North_Little_Rock = [];Jacksonville = [];Mabelvale = [];Sherwood = [];College_Station = [];Cabot = [];Scott = [];mySelect.options[mySelect.options.length] = new Option("Cabot schools",'all=Cabot');
mySelect.options[mySelect.options.length] = new Option("College Station schools",'all=College_Station');
mySelect.options[mySelect.options.length] = new Option("Jacksonville schools",'all=Jacksonville');
mySelect.options[mySelect.options.length] = new Option("Little Rock schools",'all=Little_Rock');
mySelect.options[mySelect.options.length] = new Option("Mabelvale schools",'all=Mabelvale');
mySelect.options[mySelect.options.length] = new Option("Maumelle schools",'all=Maumelle');
mySelect.options[mySelect.options.length] = new Option("North Little Rock schools",'all=North_Little_Rock');
mySelect.options[mySelect.options.length] = new Option("Scott schools",'all=Scott');
mySelect.options[mySelect.options.length] = new Option("Sherwood schools",'all=Sherwood');
mySelect.options[mySelect.options.length] = new Option("---------------------------",'');
Maumelle[Maumelle.length] = createMarker(new GPoint(-92.40229797,34.85350037),"
",iconBl);
mySelect.options[mySelect.options.length] = new Option("Academic Plus Charter School",'Maumelle=' + Maumelle.length);
Maumelle[Maumelle.length] = createMarker(new GPoint(-92.40238400,34.85606000),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Academics Plus High School",'Maumelle=' + Maumelle.length);
Maumelle[Maumelle.length] = createMarker(new GPoint(-92.40229797,34.85350037),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Academics Plus Middle School",'Maumelle=' + Maumelle.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.31935883,34.67808914),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Accelerated Learning Program",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.24279400,34.73924300),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alternative Agencies",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.24229431,34.73958588),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alternative Learning Center",'Little_Rock=' + Little_Rock.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.29147339,34.80906677),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Amboy Elementary School",'North_Little_Rock=' + North_Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.30226898,34.75093842),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ark. School For Blind Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.30226898,34.75093842),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Ark. School For Blind High School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.29886627,34.75083542),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ark. School For Deaf Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.29886627,34.75083542),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Ark. School For Deaf High School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.29877500,34.75074000),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Ark. School For/deaf Middle School",'Little_Rock=' + Little_Rock.length);
Jacksonville[Jacksonville.length] = createMarker(new GPoint(-92.13809967,34.89643860),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Arnold Drive Elementary School",'Jacksonville=' + Jacksonville.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.19394684,34.71883774),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Badgett Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.43893433,34.75184631),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Baker Interdistrict Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.34787750,34.72336197),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bale Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.31838989,34.66778564),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Baseline Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.28997803,34.74626923),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bates Elementary School",'Little_Rock=' + Little_Rock.length);
Jacksonville[Jacksonville.length] = createMarker(new GPoint(-92.15702057,34.95005417),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bayou Meto Elementary School",'Jacksonville=' + Jacksonville.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.29143524,34.79210663),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Belwood Elementary School",'North_Little_Rock=' + North_Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.26140594,34.72359848),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Booker Arts Magnet Elementary School",'Little_Rock=' + Little_Rock.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.28722382,34.76683044),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Boone Park Elementary School",'North_Little_Rock=' + North_Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.36254883,34.75296402),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Brady Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.24642944,34.74213791),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Carver Magnet Elementary School",'Little_Rock=' + Little_Rock.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.21996307,34.88267899),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cato Elementary School",'North_Little_Rock=' + North_Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.29796600,34.73680878),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Central High School",'Little_Rock=' + Little_Rock.length);
Mabelvale[Mabelvale.length] = createMarker(new GPoint(-92.36354828,34.64945221),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Chicot Elementary School",'Mabelvale=' + Mabelvale.length);
Sherwood[Sherwood.length] = createMarker(new GPoint(-92.20130157,34.82529831),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Clinton Elementary School",'Sherwood=' + Sherwood.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.35020447,34.67319870),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cloverdale Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.34779358,34.67309570),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Cloverdale Middle School",'Little_Rock=' + Little_Rock.length);
College_Station[College_Station.length] = createMarker(new GPoint(-92.24890137,34.65370178),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("College Station Elementary School",'College_Station=' + College_Station.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.24444580,34.80315399),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Crestwood Elementary School",'North_Little_Rock=' + North_Little_Rock.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.35168457,34.80540466),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Crystal Hill Elementary School",'North_Little_Rock=' + North_Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.39316559,34.69045258),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("David O'dodd Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.28586578,34.73203659),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Dunbar Magnet Middle School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.32761383,34.58303833),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("East End Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.33246613,34.75650024),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fair Park Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.34470100,34.67429300),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Felder Alternative Academy",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.33858490,34.76196289),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Forest Heights Middle School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.33380127,34.76700211),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Forest Park Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.33224487,34.73634338),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Franklin Incentive Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.39532471,34.77854538),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fulbright Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.25742340,34.67220688),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Fuller Middle School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.34048462,34.70173645),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Geyer Springs Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.28543091,34.73491669),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Gibbs Magnet Elementary School",'Little_Rock=' + Little_Rock.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.20826721,34.76744080),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Glenview Elementary School",'North_Little_Rock=' + North_Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.34716797,34.75984192),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Hall High School",'Little_Rock=' + Little_Rock.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.19808960,34.79359055),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Harris Elementary School",'North_Little_Rock=' + North_Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.37192535,34.75111389),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Henderson Middle School",'Little_Rock=' + Little_Rock.length);
Jacksonville[Jacksonville.length] = createMarker(new GPoint(-92.12677765,34.84256744),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Homer Adkins Elementary School",'Jacksonville=' + Jacksonville.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.23992157,34.81930542),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Indian Hills Elementary School",'North_Little_Rock=' + North_Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.40850067,34.71097946),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("J.a. Fair High School",'Little_Rock=' + Little_Rock.length);
Jacksonville[Jacksonville.length] = createMarker(new GPoint(-92.10927582,34.86453629),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Jacksonville Elementary School",'Jacksonville=' + Jacksonville.length);
Jacksonville[Jacksonville.length] = createMarker(new GPoint(-92.10106659,34.88785172),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Jacksonville High School",'Jacksonville=' + Jacksonville.length);
Jacksonville[Jacksonville.length] = createMarker(new GPoint(-92.12244415,34.86259842),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Jacksonville Junior High Sch.",'Jacksonville=' + Jacksonville.length);
Jacksonville[Jacksonville.length] = createMarker(new GPoint(-92.12493896,34.86655045),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Jacksonville Middle School",'Jacksonville=' + Jacksonville.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.34496307,34.77583694),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Jefferson Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.51736450,34.81753922),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Joe T. Robinson Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.50756836,34.81586456),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Joe T. Robinson High School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.49951935,34.81300354),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Joe T. Robinson Middle School",'Little_Rock=' + Little_Rock.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.24538422,34.79392242),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lakewood Elementary School",'North_Little_Rock=' + North_Little_Rock.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.23040771,34.78589249),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Lakewood Middle School",'North_Little_Rock=' + North_Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.32336426,34.60125351),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Landmark Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.49382019,34.71668243),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lawson Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.38739000,34.75088000),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Lisa Academy",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.33126600,34.74755700),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Lisa Academy High School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.19394684,34.71883774),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Little Rock Charter Elementary School",'Little_Rock=' + Little_Rock.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.19960022,34.75696182),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lynch Drive Elementary School",'North_Little_Rock=' + North_Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.28893280,34.74221039),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("M.l. King Magnet Elementary School",'Little_Rock=' + Little_Rock.length);
Mabelvale[Mabelvale.length] = createMarker(new GPoint(-92.38134766,34.65166473),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mabelvale Elementary School",'Mabelvale=' + Mabelvale.length);
Mabelvale[Mabelvale.length] = createMarker(new GPoint(-92.39724731,34.65546417),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Mabelvale Middle School",'Mabelvale=' + Mabelvale.length);
Cabot[Cabot.length] = createMarker(new GPoint(-92.01727295,34.97544098),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Magness Creek Elementary School",'Cabot=' + Cabot.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.26103210,34.72383881),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Mann Magnet Middle School",'Little_Rock=' + Little_Rock.length);
Maumelle[Maumelle.length] = createMarker(new GPoint(-92.39449200,34.85787800),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Maumelle Middle School",'Maumelle=' + Maumelle.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.34435272,34.66507721),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Mcclellan Magnet High School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.37635803,34.76264572),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mcdermott Elementary School",'Little_Rock=' + Little_Rock.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.19023132,34.77403641),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Meadow Park Elementary School",'North_Little_Rock=' + North_Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.35192871,34.69347763),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Meadowcliff Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.31935883,34.67808914),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Metropolitan Vo-tech School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.29446411,34.72615051),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mitchell Incentive Elementary School",'Little_Rock=' + Little_Rock.length);
Jacksonville[Jacksonville.length] = createMarker(new GPoint(-92.08626556,34.85405731),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Murrell Taylor Elementary School",'Jacksonville=' + Jacksonville.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.23168182,34.78583527),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Nlr High School-east Campus",'North_Little_Rock=' + North_Little_Rock.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.26707458,34.77573776),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Nlr High School-west Campus",'North_Little_Rock=' + North_Little_Rock.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.27341461,34.79962158),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("No. Heights Elementary School",'North_Little_Rock=' + North_Little_Rock.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.26593781,34.76926041),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Northwood Middle School",'North_Little_Rock=' + North_Little_Rock.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.33209229,34.84206390),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Oak Grove Elementary School",'North_Little_Rock=' + North_Little_Rock.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.32976532,34.84542465),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Oak Grove High School",'North_Little_Rock=' + North_Little_Rock.length);
Sherwood[Sherwood.length] = createMarker(new GPoint(-92.20953369,34.83446121),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oakbrooke Elementary School",'Sherwood=' + Sherwood.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.43424225,34.66074753),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Otter Creek Elementary School",'Little_Rock=' + Little_Rock.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.26593781,34.76926041),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Park Hill Elementary School",'North_Little_Rock=' + North_Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.37246704,34.73085403),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Parkview Magnet High School",'Little_Rock=' + Little_Rock.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.26266479,34.79866409),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pike View Elementary School",'North_Little_Rock=' + North_Little_Rock.length);
Maumelle[Maumelle.length] = createMarker(new GPoint(-92.40097046,34.86567307),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pine Forest Elementary School",'Maumelle=' + Maumelle.length);
Jacksonville[Jacksonville.length] = createMarker(new GPoint(-92.09156799,34.88462067),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pinewood Elementary School",'Jacksonville=' + Jacksonville.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.26502228,34.77662659),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Poplar Street Middle School",'North_Little_Rock=' + North_Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.31611633,34.75358582),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pulaski Heights Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.31607819,34.75425720),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Pulaski Heights Middle School",'Little_Rock=' + Little_Rock.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.23556519,34.75634003),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Redwood Pre-school",'North_Little_Rock=' + North_Little_Rock.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.26466370,34.79657364),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Ridgeroad Charter Middle School",'North_Little_Rock=' + North_Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.28367615,34.73068619),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rightsell Incentive Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.26593018,34.73173523),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rockefeller Incentive Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.38198090,34.72308731),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Romine Interdist. Elementary School",'Little_Rock=' + Little_Rock.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.20107269,34.75573349),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Rose City Middle School",'North_Little_Rock=' + North_Little_Rock.length);
Scott[Scott.length] = createMarker(new GPoint(-92.10121155,34.70208740),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Scott Elementary School",'Scott=' + Scott.length);
North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.25455475,34.75959778),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Seventh Street Elementary School",'North_Little_Rock=' + North_Little_Rock.length);
Sherwood[Sherwood.length] = createMarker(new GPoint(-92.21816254,34.81633377),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sherwood Elementary School",'Sherwood=' + Sherwood.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.35084534,34.72164536),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Southwest Middle School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.31507111,34.73503876),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Stephens Elementary School",'Little_Rock=' + Little_Rock.length);
Sherwood[Sherwood.length] = createMarker(new GPoint(-92.23865509,34.84846497),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sylvan Hills Elementary School",'Sherwood=' + Sherwood.length);
Sherwood[Sherwood.length] = createMarker(new GPoint(-92.23628998,34.85059357),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Sylvan Hills High School",'Sherwood=' + Sherwood.length);
Sherwood[Sherwood.length] = createMarker(new GPoint(-92.23845673,34.84869003),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Sylvan Hills Middle School",'Sherwood=' + Sherwood.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.39396667,34.75773621),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Terry Elementary School",'Little_Rock=' + Little_Rock.length);
Jacksonville[Jacksonville.length] = createMarker(new GPoint(-92.15813446,34.88037872),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Tolleson Elementary School",'Jacksonville=' + Jacksonville.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.33313751,34.68606186),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wakefield Elementary School",'Little_Rock=' + Little_Rock.length);
Jacksonville[Jacksonville.length] = createMarker(new GPoint(-92.11480713,34.88193512),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Warren Dupree Elementary School",'Jacksonville=' + Jacksonville.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.27449799,34.72229385),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Washington Magnet Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.35615540,34.66224670),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Watson Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.36013031,34.70822906),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Western Hills Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.25494385,34.67242813),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Wilbur D. Mills High School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.35522461,34.76249695),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Williams Magnet Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.35953522,34.71646881),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wilson Elementary School",'Little_Rock=' + Little_Rock.length);
Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.30684662,34.74553680),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Woodruff Elementary School",'Little_Rock=' + Little_Rock.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(Cabot);
map.removeOverlays(College_Station);
map.removeOverlays(Jacksonville);
map.removeOverlays(Little_Rock);
map.removeOverlays(Mabelvale);
map.removeOverlays(Maumelle);
map.removeOverlays(North_Little_Rock);
map.removeOverlays(Scott);
map.removeOverlays(Sherwood);
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(Maumelle);map.removeOverlays(Cabot);
map.removeOverlays(College_Station);
map.removeOverlays(Jacksonville);
map.removeOverlays(Little_Rock);
map.removeOverlays(Mabelvale);
map.removeOverlays(Maumelle);
map.removeOverlays(North_Little_Rock);
map.removeOverlays(Scott);
map.removeOverlays(Sherwood);
map.addOverlays(Cabot);
centerByArray(Cabot, false, false);
cntMarker += Cabot.length;
map.addOverlays(College_Station);
centerByArray(College_Station, false, false);
cntMarker += College_Station.length;
map.addOverlays(Jacksonville);
centerByArray(Jacksonville, false, false);
cntMarker += Jacksonville.length;
map.addOverlays(Little_Rock);
centerByArray(Little_Rock, false, false);
cntMarker += Little_Rock.length;
map.addOverlays(Mabelvale);
centerByArray(Mabelvale, false, false);
cntMarker += Mabelvale.length;
map.addOverlays(Maumelle);
centerByArray(Maumelle, false, false);
cntMarker += Maumelle.length;
map.addOverlays(North_Little_Rock);
centerByArray(North_Little_Rock, false, false);
cntMarker += North_Little_Rock.length;
map.addOverlays(Scott);
centerByArray(Scott, false, false);
cntMarker += Scott.length;
map.addOverlays(Sherwood);
centerByArray(Sherwood, false, false);
cntMarker += Sherwood.length;
centerByArray(Maumelle,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');
}
}