function addMarkers()
{
mySelect = document.getElementById('selection');
Shawnee_Mission = [];Olathe = [];Overland_Park = [];Stilwell = [];Shawnee = [];De_Soto = [];Edgerton = [];Gardner = [];Leawood = [];Lenexa = [];Spring_Hill = [];mySelect.options[mySelect.options.length] = new Option("De Soto schools",'all=De_Soto');
mySelect.options[mySelect.options.length] = new Option("Edgerton schools",'all=Edgerton');
mySelect.options[mySelect.options.length] = new Option("Gardner schools",'all=Gardner');
mySelect.options[mySelect.options.length] = new Option("Leawood schools",'all=Leawood');
mySelect.options[mySelect.options.length] = new Option("Lenexa schools",'all=Lenexa');
mySelect.options[mySelect.options.length] = new Option("Olathe schools",'all=Olathe');
mySelect.options[mySelect.options.length] = new Option("Overland Park schools",'all=Overland_Park');
mySelect.options[mySelect.options.length] = new Option("Shawnee schools",'all=Shawnee');
mySelect.options[mySelect.options.length] = new Option("Shawnee Mission schools",'all=Shawnee_Mission');
mySelect.options[mySelect.options.length] = new Option("Spring Hill schools",'all=Spring_Hill');
mySelect.options[mySelect.options.length] = new Option("Stilwell schools",'all=Stilwell');
mySelect.options[mySelect.options.length] = new Option("---------------------------",'');
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.68041229,39.00039673),"
",iconBl);
mySelect.options[mySelect.options.length] = new Option("Antioch Middle School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.70964050,38.96643448),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Apache Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.77241516,38.83455276),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Arbor Creek Elementary School",'Olathe=' + Olathe.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.67224884,39.00955582),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Arrowhead Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.61654663,39.01388931),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Belinder Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.72042847,38.89136887),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bentwood Elementary School",'Overland_Park=' + Overland_Park.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.76966095,38.86171722),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Black Bob Elementary School",'Olathe=' + Olathe.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.64528656,38.83274841),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Blue River Elementary School",'Overland_Park=' + Overland_Park.length);
Stilwell[Stilwell.length] = createMarker(new GPoint(-94.65339661,38.80540085),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Blue Valley High School",'Stilwell=' + Stilwell.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.64413452,38.83313751),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Blue Valley Middle School",'Overland_Park=' + Overland_Park.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.70048523,38.88768768),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Blue Valley Northwest High School",'Overland_Park=' + Overland_Park.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.68634033,38.83316040),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Blue Valley West High School",'Overland_Park=' + Overland_Park.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.72083282,39.03881073),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bluejacket-flint Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.74221802,38.96003723),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bonjour Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.76561737,38.87276459),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Briarwood Elementary School",'Olathe=' + Olathe.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.64479828,38.95460129),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Briarwood Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.75653839,39.02200317),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Broken Arrow Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.67693329,38.94904327),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Brookridge Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.62405396,38.94217300),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Brookwood Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.77172089,38.84708023),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Brougham Elementary School",'Olathe=' + Olathe.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.74626923,38.88702774),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("California Trail Junior High School",'Olathe=' + Olathe.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.87137604,38.92599487),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cedar Creek Elementary School",'Olathe=' + Olathe.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.64511500,38.82855100),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cedar Hills Elementary School",'Overland_Park=' + Overland_Park.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.81707764,38.87874603),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Central Elementary School",'Olathe=' + Olathe.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.77957916,38.84024429),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Chisholm Trail Junior Middle School",'Olathe=' + Olathe.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.76519012,38.97829819),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Christa Mcauliffe Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee[Shawnee.length] = createMarker(new GPoint(-94.83932495,39.02402878),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Clear Creek Elementary School",'Shawnee=' + Shawnee.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.81887400,38.88353000),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Clearwater Creek Elementary School",'Olathe=' + Olathe.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.69283295,38.95808029),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Comanche Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.63031769,38.97870255),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Corinth Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.70667267,38.89444351),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cottonwood Point Elementary School",'Overland_Park=' + Overland_Park.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.77531433,38.90240097),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Countryside Elementary School",'Olathe=' + Olathe.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.67829895,39.01860046),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Crestview Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
De_Soto[De_Soto.length] = createMarker(new GPoint(-94.98326874,38.96413803),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("De Soto High School",'De_Soto=' + De_Soto.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.69507599,38.94617844),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dorothy Moody Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.67704773,38.99571609),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("East Antioch Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Edgerton[Edgerton.length] = createMarker(new GPoint(-95.01119995,38.76490021),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Edgerton Elementary School",'Edgerton=' + Edgerton.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.83218384,38.88918686),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fairview Elementary School",'Olathe=' + Olathe.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.76351166,38.86908722),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Frontier Trail Junior High School",'Olathe=' + Olathe.length);
Gardner[Gardner.length] = createMarker(new GPoint(-94.94572449,38.81707382),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Gardner Edgerton High School",'Gardner=' + Gardner.length);
Gardner[Gardner.length] = createMarker(new GPoint(-94.92452240,38.81203842),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Gardner Elementary School",'Gardner=' + Gardner.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.75687408,38.86234283),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Green Springs Elementary School",'Olathe=' + Olathe.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.69451141,38.87060547),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Harmony Elementary School",'Overland_Park=' + Overland_Park.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.69821930,38.87165451),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Harmony Middle School",'Overland_Park=' + Overland_Park.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.79148102,38.86946106),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Havencroft Elementary School",'Olathe=' + Olathe.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.68056488,38.89649582),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Heartland Elementary School",'Overland_Park=' + Overland_Park.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.74690247,38.90602875),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Heatherstone Elementary School",'Olathe=' + Olathe.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.78792572,38.85909653),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Heritage Elementary School",'Olathe=' + Olathe.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.63977051,39.01679993),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Highlands Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.77996826,38.81107330),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hilltop Elementary School",'Olathe=' + Olathe.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.70584106,39.02235031),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Hocker Grove Middle School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.65836334,39.02219772),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Horizons High School",'Shawnee_Mission=' + Shawnee_Mission.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.76101685,38.89469147),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Indian Creek Elementary School",'Olathe=' + Olathe.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.63043976,39.01359177),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Indian Hills Middle School",'Shawnee_Mission=' + Shawnee_Mission.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.79441071,38.85463333),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Indian Trail Junior High School",'Olathe=' + Olathe.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.69799805,38.91960526),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Indian Valley Elementary School",'Overland_Park=' + Overland_Park.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.65394592,38.95308685),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Indian Woods Middle School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.65832520,38.95476151),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("John Diemer Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.69721222,38.95380020),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Katherine Carpenter Elementary School",'Overland_Park=' + Overland_Park.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.65953064,38.86397552),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lakewood Elementary School",'Overland_Park=' + Overland_Park.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.66334534,38.86416245),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Lakewood Middle School",'Overland_Park=' + Overland_Park.length);
Leawood[Leawood.length] = createMarker(new GPoint(-94.61335754,38.90564728),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Leawood Elementary School",'Leawood=' + Leawood.length);
Leawood[Leawood.length] = createMarker(new GPoint(-94.61347198,38.90564728),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Leawood Middle School",'Leawood=' + Leawood.length);
De_Soto[De_Soto.length] = createMarker(new GPoint(-94.98327637,38.97004700),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Lexington Trails Middle School",'De_Soto=' + De_Soto.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.75008392,38.85942078),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Liberty View Elementary School",'Olathe=' + Olathe.length);
Gardner[Gardner.length] = createMarker(new GPoint(-94.94407300,38.81923200),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Madison Elementary School",'Gardner=' + Gardner.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.80672455,38.90410233),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mahaffie Elementary School",'Olathe=' + Olathe.length);
Lenexa[Lenexa.length] = createMarker(new GPoint(-94.84024000,38.94921100),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Manchester Park Elementary School",'Lenexa=' + Lenexa.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.79084778,38.92509079),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Meadow Lane Elementary School",'Olathe=' + Olathe.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.70292664,39.01849747),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Merriam Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.74622345,38.98559189),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mill Creek Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee[Shawnee.length] = createMarker(new GPoint(-94.83967590,39.02269363),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Mill Valley High School",'Shawnee=' + Shawnee.length);
Leawood[Leawood.length] = createMarker(new GPoint(-94.63054657,38.88885880),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mission Trail Elementary School",'Leawood=' + Leawood.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.63027954,38.97440720),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Mission Valley Middle School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee[Shawnee.length] = createMarker(new GPoint(-94.88158417,38.99617386),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mize Elementary, Prek-5 Elementary School",'Shawnee=' + Shawnee.length);
Shawnee[Shawnee.length] = createMarker(new GPoint(-94.83967590,39.01856232),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Monticello Trails Middle School",'Shawnee=' + Shawnee.length);
Gardner[Gardner.length] = createMarker(new GPoint(-94.90907288,38.80291748),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Moonlight Elementary School",'Gardner=' + Gardner.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.72631836,38.85253906),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Morse Elementary School",'Overland_Park=' + Overland_Park.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.71130371,39.00748825),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Nieman Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Gardner[Gardner.length] = createMarker(new GPoint(-94.92734528,38.77344894),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Nike Intermediate",'Gardner=' + Gardner.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.81372070,38.89521790),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Northview Elementary School",'Olathe=' + Olathe.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.70379639,38.90387344),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oak Hill Elementary School",'Overland_Park=' + Overland_Park.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.71408844,38.94727325),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oak Park Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.75555420,38.89815140),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Olathe East Senior High School",'Olathe=' + Olathe.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.80938721,38.88733673),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Olathe North Senior High School",'Olathe=' + Olathe.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.84329987,38.89590073),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Olathe Northwest High School",'Olathe=' + Olathe.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.79020691,38.85468674),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Olathe South Senior High School",'Olathe=' + Olathe.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.84762573,38.86912537),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Oregon Trail Junior High School",'Olathe=' + Olathe.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.67427063,38.98165512),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Overland Park Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.65779114,38.88656235),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Overland Trail Elementary School",'Overland_Park=' + Overland_Park.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.65745544,38.88656616),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Overland Trail Middle School",'Overland_Park=' + Overland_Park.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.70513916,38.90221786),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Oxford Middle School",'Overland_Park=' + Overland_Park.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.69510651,38.96390915),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pawnee Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.76101685,38.89817047),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Pioneer Trail Junior High School",'Olathe=' + Olathe.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.73559570,38.90737152),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pleasant Ridge Elementary School",'Overland_Park=' + Overland_Park.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.68870544,38.83004761),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Pleasant Ridge Middle School",'Overland_Park=' + Overland_Park.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.86057281,38.89141464),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Prairie Center Elementary School",'Olathe=' + Olathe.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.63043213,39.00874329),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Prairie Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee[Shawnee.length] = createMarker(new GPoint(-94.84524100,39.02079000),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Prairie Ridge Elementary School",'Shawnee=' + Shawnee.length);
Leawood[Leawood.length] = createMarker(new GPoint(-94.62946320,38.86917877),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Prairie Star Elementary School",'Leawood=' + Leawood.length);
Leawood[Leawood.length] = createMarker(new GPoint(-94.63059235,38.87195587),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Prairie Star Middle School",'Leawood=' + Leawood.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.83573900,38.93519300),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Prairie Trail Junior High School",'Olathe=' + Olathe.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.82634700,38.90691600),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ravenwood Elementary School",'Olathe=' + Olathe.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.73326111,39.02725983),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ray Marsh Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.74968719,38.88751221),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Regency Place Elementary School",'Olathe=' + Olathe.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.72902679,39.00688553),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rhein Benninghoven Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.79837036,38.87770081),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ridgeview Elementary School",'Olathe=' + Olathe.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.74628448,38.97310257),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rising Star Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee[Shawnee.length] = createMarker(new GPoint(-94.83473969,39.04363632),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Riverview Elementary School",'Shawnee=' + Shawnee.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.64478302,39.02877045),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Roeland Park Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.63469696,39.04113388),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Roesland Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.84314728,38.87686157),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rolling Ridge Elementary School",'Olathe=' + Olathe.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.73290253,38.95105743),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rosehill Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.65547180,39.03558350),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rushton Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.65837860,39.00037003),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Santa Fe Trail Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.79730225,38.89799118),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Santa Fe Trail Junior High School",'Olathe=' + Olathe.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.79002380,38.84989548),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Scarborough Elementary School",'Olathe=' + Olathe.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.81298065,38.88213730),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("School For Deaf Elementary School",'Olathe=' + Olathe.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.81298065,38.88213730),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("School For Deaf High School",'Olathe=' + Olathe.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.71595764,38.99288940),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Shawanoe Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.63040924,38.99325943),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Shawnee Mission East High School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.66875458,39.02228165),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Shawnee Mission North High School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.73246002,39.00739670),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Shawnee Mission Northwest High School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.65238953,38.93479156),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Shawnee Mission South High School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.68737793,38.97487640),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Shawnee Mission West High School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.61701965,38.98415756),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Somerset Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.68709564,39.03871918),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("South Park Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Spring_Hill[Spring_Hill.length] = createMarker(new GPoint(-94.82559967,38.73458862),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Spring Hill Elementary School",'Spring_Hill=' + Spring_Hill.length);
Spring_Hill[Spring_Hill.length] = createMarker(new GPoint(-94.82256317,38.73469925),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Spring Hill High Charter School",'Spring_Hill=' + Spring_Hill.length);
Spring_Hill[Spring_Hill.length] = createMarker(new GPoint(-94.81604767,38.73837662),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Spring Hill Middle School",'Spring_Hill=' + Spring_Hill.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.65592194,38.84123993),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Stanley Elementary School",'Overland_Park=' + Overland_Park.length);
De_Soto[De_Soto.length] = createMarker(new GPoint(-94.97499847,38.96350098),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Starside Elementary School",'De_Soto=' + De_Soto.length);
Stilwell[Stilwell.length] = createMarker(new GPoint(-94.65928650,38.76720810),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Stilwell Elementary School",'Stilwell=' + Stilwell.length);
Gardner[Gardner.length] = createMarker(new GPoint(-94.92742157,38.82330322),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sunflower Elementary School",'Gardner=' + Gardner.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.77310181,38.95709991),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sunflower Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.78720093,38.84080124),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sunnyside Elementary School",'Olathe=' + Olathe.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.69395447,38.85692978),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sunset Ridge Elementary School",'Overland_Park=' + Overland_Park.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.76922607,38.87768173),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Tomahawk Elementary School",'Olathe=' + Olathe.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.67900085,38.99129868),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Tomahawk Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.67704773,38.91286087),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Tomahawk Ridge Elementary School",'Overland_Park=' + Overland_Park.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.72370148,38.99281311),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Trailridge Middle School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.64406586,38.95679474),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Trailwood Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Overland_Park[Overland_Park.length] = createMarker(new GPoint(-94.65875244,38.90556335),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Valley Park Elementary School",'Overland_Park=' + Overland_Park.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.74247742,38.91455460),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Walnut Grove Elementary School",'Olathe=' + Olathe.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.79730988,38.89937592),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Washington Elementary School",'Olathe=' + Olathe.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.70511627,39.00026321),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("West Antioch Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.71488190,38.95655441),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Westridge Middle School",'Shawnee_Mission=' + Shawnee_Mission.length);
Olathe[Olathe.length] = createMarker(new GPoint(-94.82975769,38.87529373),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Westview Elementary School",'Olathe=' + Olathe.length);
Shawnee_Mission[Shawnee_Mission.length] = createMarker(new GPoint(-94.61291504,39.03738785),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Westwood View Elementary School",'Shawnee_Mission=' + Shawnee_Mission.length);
Gardner[Gardner.length] = createMarker(new GPoint(-94.92252350,38.81293869),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Wheatridge Middle School",'Gardner=' + Gardner.length);
Shawnee[Shawnee.length] = createMarker(new GPoint(-94.85307312,39.02855682),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Woodsonia Elementary School",'Shawnee=' + Shawnee.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(De_Soto);
map.removeOverlays(Edgerton);
map.removeOverlays(Gardner);
map.removeOverlays(Leawood);
map.removeOverlays(Lenexa);
map.removeOverlays(Olathe);
map.removeOverlays(Overland_Park);
map.removeOverlays(Shawnee);
map.removeOverlays(Shawnee_Mission);
map.removeOverlays(Spring_Hill);
map.removeOverlays(Stilwell);
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(Shawnee_Mission);map.removeOverlays(De_Soto);
map.removeOverlays(Edgerton);
map.removeOverlays(Gardner);
map.removeOverlays(Leawood);
map.removeOverlays(Lenexa);
map.removeOverlays(Olathe);
map.removeOverlays(Overland_Park);
map.removeOverlays(Shawnee);
map.removeOverlays(Shawnee_Mission);
map.removeOverlays(Spring_Hill);
map.removeOverlays(Stilwell);
map.addOverlays(De_Soto);
centerByArray(De_Soto, false, false);
cntMarker += De_Soto.length;
map.addOverlays(Edgerton);
centerByArray(Edgerton, false, false);
cntMarker += Edgerton.length;
map.addOverlays(Gardner);
centerByArray(Gardner, false, false);
cntMarker += Gardner.length;
map.addOverlays(Leawood);
centerByArray(Leawood, false, false);
cntMarker += Leawood.length;
map.addOverlays(Lenexa);
centerByArray(Lenexa, false, false);
cntMarker += Lenexa.length;
map.addOverlays(Olathe);
centerByArray(Olathe, false, false);
cntMarker += Olathe.length;
map.addOverlays(Overland_Park);
centerByArray(Overland_Park, false, false);
cntMarker += Overland_Park.length;
map.addOverlays(Shawnee);
centerByArray(Shawnee, false, false);
cntMarker += Shawnee.length;
map.addOverlays(Shawnee_Mission);
centerByArray(Shawnee_Mission, false, false);
cntMarker += Shawnee_Mission.length;
map.addOverlays(Spring_Hill);
centerByArray(Spring_Hill, false, false);
cntMarker += Spring_Hill.length;
map.addOverlays(Stilwell);
centerByArray(Stilwell, false, false);
cntMarker += Stilwell.length;
centerByArray(Shawnee_Mission,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');
}
}