function addMarkers() { mySelect = document.getElementById('selection'); Belleville = [];East_Saint_Louis = [];Alorton = [];East_St_Louis = [];Dupo = [];Cahokia = [];Freeburg = [];Caseyville = [];Ofallon = [];Collinsville = [];Fairview_Heights = [];Swansea = [];Centreville = [];Lebanon = [];Lovejoy = [];Marissa = [];Mascoutah = [];Millstadt = [];New_Athens = [];Scott_A_F_Base = [];Shiloh = [];Smithton = [];E_St_Louis = [];Saint_Libory = [];Summerfield = [];mySelect.options[mySelect.options.length] = new Option("Alorton schools",'all=Alorton'); mySelect.options[mySelect.options.length] = new Option("Belleville schools",'all=Belleville'); mySelect.options[mySelect.options.length] = new Option("Cahokia schools",'all=Cahokia'); mySelect.options[mySelect.options.length] = new Option("Caseyville schools",'all=Caseyville'); mySelect.options[mySelect.options.length] = new Option("Centreville schools",'all=Centreville'); mySelect.options[mySelect.options.length] = new Option("Collinsville schools",'all=Collinsville'); mySelect.options[mySelect.options.length] = new Option("Dupo schools",'all=Dupo'); mySelect.options[mySelect.options.length] = new Option("E St Louis schools",'all=E_St_Louis'); mySelect.options[mySelect.options.length] = new Option("East Saint Louis schools",'all=East_Saint_Louis'); mySelect.options[mySelect.options.length] = new Option("East St Louis schools",'all=East_St_Louis'); mySelect.options[mySelect.options.length] = new Option("Fairview Heights schools",'all=Fairview_Heights'); mySelect.options[mySelect.options.length] = new Option("Freeburg schools",'all=Freeburg'); mySelect.options[mySelect.options.length] = new Option("Lebanon schools",'all=Lebanon'); mySelect.options[mySelect.options.length] = new Option("Lovejoy schools",'all=Lovejoy'); mySelect.options[mySelect.options.length] = new Option("Marissa schools",'all=Marissa'); mySelect.options[mySelect.options.length] = new Option("Mascoutah schools",'all=Mascoutah'); mySelect.options[mySelect.options.length] = new Option("Millstadt schools",'all=Millstadt'); mySelect.options[mySelect.options.length] = new Option("New Athens schools",'all=New_Athens'); mySelect.options[mySelect.options.length] = new Option("Ofallon schools",'all=Ofallon'); mySelect.options[mySelect.options.length] = new Option("Saint Libory schools",'all=Saint_Libory'); mySelect.options[mySelect.options.length] = new Option("Scott A F Base schools",'all=Scott_A_F_Base'); mySelect.options[mySelect.options.length] = new Option("Shiloh schools",'all=Shiloh'); mySelect.options[mySelect.options.length] = new Option("Smithton schools",'all=Smithton'); mySelect.options[mySelect.options.length] = new Option("Summerfield schools",'all=Summerfield'); mySelect.options[mySelect.options.length] = new Option("Swansea schools",'all=Swansea'); mySelect.options[mySelect.options.length] = new Option("---------------------------",''); Belleville[Belleville.length] = createMarker(new GPoint(-90.01102448,38.54556656),"
Abraham Lincoln Elementary School
820 Royal Heights Rd
Belleville, IL 62226

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Abraham Lincoln Elementary School",'Belleville=' + Belleville.length); East_Saint_Louis[East_Saint_Louis.length] = createMarker(new GPoint(-90.14035500,38.60047300),"
Alta Sita Elementary School
2601 Bond Ave
East Saint Louis, IL 62207

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Alta Sita Elementary School",'East_Saint_Louis=' + East_Saint_Louis.length); Alorton[Alorton.length] = createMarker(new GPoint(-90.11631012,38.58780670),"
Alternative High School & Crisis
4400 Grand St
Alorton, IL 62207

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Alternative High School & Crisis",'Alorton=' + Alorton.length); East_St_Louis[East_St_Louis.length] = createMarker(new GPoint(-90.13646800,38.60555400),"
Alternative Middle School
2436 Kansas Ave
East St Louis, IL 62207

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Alternative Middle School",'East_St_Louis=' + East_St_Louis.length); East_St_Louis[East_St_Louis.length] = createMarker(new GPoint(-10.00000000,10.00000000),"
Annette Officer Elementary School
27th Henrieth Ave
East St Louis, IL 62205

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Annette Officer Elementary School",'East_St_Louis=' + East_St_Louis.length); East_St_Louis[East_St_Louis.length] = createMarker(new GPoint(-90.13646800,38.60555400),"
Attucks Elementary School
2436 Kansas Ave
East St Louis, IL 62205

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Attucks Elementary School",'East_St_Louis=' + East_St_Louis.length); Belleville[Belleville.length] = createMarker(new GPoint(-89.94519806,38.52590561),"
Belle Valley Elementary School-north
100 Andora Dr
Belleville, IL 62221

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Belle Valley Elementary School-north",'Belleville=' + Belleville.length); Belleville[Belleville.length] = createMarker(new GPoint(-89.95396423,38.50476456),"
Belle Valley School South
1901 Mascoutah Rd
Belleville, IL 62220

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Belle Valley School South",'Belleville=' + Belleville.length); Belleville[Belleville.length] = createMarker(new GPoint(-89.94599915,38.51937485),"
Belleville High School-east
2555 West Blvd
Belleville, IL 62221

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Belleville High School-east",'Belleville=' + Belleville.length); Belleville[Belleville.length] = createMarker(new GPoint(-90.01145935,38.52490234),"
Belleville High School-west
4063 Frank Scott Pky
Belleville, IL 62223

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Belleville High School-west",'Belleville=' + Belleville.length); East_St_Louis[East_St_Louis.length] = createMarker(new GPoint(-90.14383500,38.61751500),"
Billy Jones Elementary School
1601 Cleveland
East St Louis, IL 62201

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Billy Jones Elementary School",'East_St_Louis=' + East_St_Louis.length); Dupo[Dupo.length] = createMarker(new GPoint(-90.20867920,38.50875854),"
Bluffview Elementary School
905 Bluffview Ln
Dupo, IL 62239

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Bluffview Elementary School",'Dupo=' + Dupo.length); East_Saint_Louis[East_Saint_Louis.length] = createMarker(new GPoint(-90.12048340,38.58067322),"
Brown Elementary School
4850 Market St
East Saint Louis, IL 62207

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Brown Elementary School",'East_Saint_Louis=' + East_Saint_Louis.length); Cahokia[Cahokia.length] = createMarker(new GPoint(-90.16595459,38.56590652),"
Cahokia High School
800 Range Ln
Cahokia, IL 62206

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Cahokia High School",'Cahokia=' + Cahokia.length); Freeburg[Freeburg.length] = createMarker(new GPoint(-89.91127014,38.42216110),"
Carl L Barton Middle School
408 S Belleville St
Freeburg, IL 62243

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Carl L Barton Middle School",'Freeburg=' + Freeburg.length); Caseyville[Caseyville.length] = createMarker(new GPoint(-90.03035736,38.63620758),"
Caseyville Elementary School
433 S 2nd St
Caseyville, IL 62232

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Caseyville Elementary School",'Caseyville=' + Caseyville.length); Cahokia[Cahokia.length] = createMarker(new GPoint(-90.11290741,38.55429459),"
Centerville Elementary School
3429 Camp Jackson Rd
Cahokia, IL 62206

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Centerville Elementary School",'Cahokia=' + Cahokia.length); Ofallon[Ofallon.length] = createMarker(new GPoint(-89.94767761,38.58939743),"
Central Elementary School
309 Hartman Ln
Ofallon, IL 62269

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Central Elementary School",'Ofallon=' + Ofallon.length); Belleville[Belleville.length] = createMarker(new GPoint(-89.97679901,38.50130081),"
Central Junior High School
1801 Central Sch Rd
Belleville, IL 62220

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Central Junior High School",'Belleville=' + Belleville.length); East_Saint_Louis[East_Saint_Louis.length] = createMarker(new GPoint(-90.11959076,38.61186218),"
Clark Middle School
3310 State St
East Saint Louis, IL 62205

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Clark Middle School",'East_Saint_Louis=' + East_Saint_Louis.length); Collinsville[Collinsville.length] = createMarker(new GPoint(-90.01139832,38.64583588),"
Collinsville Area Voc Center
2201 S Morrison Ave
Collinsville, IL 62234

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Collinsville Area Voc Center",'Collinsville=' + Collinsville.length); Collinsville[Collinsville.length] = createMarker(new GPoint(-90.01139832,38.64583588),"
Collinsville High School
2201 S Morrison Ave
Collinsville, IL 62234

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Collinsville High School",'Collinsville=' + Collinsville.length); East_Saint_Louis[East_Saint_Louis.length] = createMarker(new GPoint(-90.13644400,38.60454100),"
Dalton Gardens Elementary School
2600 Kansas Ave
East Saint Louis, IL 62205

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Dalton Gardens Elementary School",'East_Saint_Louis=' + East_Saint_Louis.length); Ofallon[Ofallon.length] = createMarker(new GPoint(-89.92015839,38.60995865),"
Delores Moye Elementary School
1010 Moye School Rd
Ofallon, IL 62269

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Delores Moye Elementary School",'Ofallon=' + Ofallon.length); East_Saint_Louis[East_Saint_Louis.length] = createMarker(new GPoint(-90.13157654,38.60850143),"
Donald Mchenry Elementary School
2700 Summit Ave
East Saint Louis, IL 62205

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Donald Mchenry Elementary School",'East_Saint_Louis=' + East_Saint_Louis.length); Belleville[Belleville.length] = createMarker(new GPoint(-89.96585083,38.51473618),"
Douglas Elementary School
125 Carlyle Ave
Belleville, IL 62220

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Douglas Elementary School",'Belleville=' + Belleville.length); East_Saint_Louis[East_Saint_Louis.length] = createMarker(new GPoint(-10.00000000,10.00000000),"
Dunbar Elementary School
10th Ohio Ave
East Saint Louis, IL 62207

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Dunbar Elementary School",'East_Saint_Louis=' + East_Saint_Louis.length); Dupo[Dupo.length] = createMarker(new GPoint(-90.20775604,38.51406097),"
Dupo High School
600 Louisa Ave
Dupo, IL 62239

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Dupo High School",'Dupo=' + Dupo.length); Dupo[Dupo.length] = createMarker(new GPoint(-90.20775604,38.51406097),"
Dupo Junior High School
600 Louisa Ave
Dupo, IL 62239

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Dupo Junior High School",'Dupo=' + Dupo.length); East_Saint_Louis[East_Saint_Louis.length] = createMarker(new GPoint(-90.10109100,38.61005600),"
East St Louis Senior High School
4901 State St
East Saint Louis, IL 62205

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("East St Louis Senior High School",'East_Saint_Louis=' + East_Saint_Louis.length); East_Saint_Louis[East_Saint_Louis.length] = createMarker(new GPoint(-90.15834045,38.61488724),"
East St Louis-lincoln Middle School
12 S 10th St
East Saint Louis, IL 62207

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("East St Louis-lincoln Middle School",'East_Saint_Louis=' + East_Saint_Louis.length); East_Saint_Louis[East_Saint_Louis.length] = createMarker(new GPoint(-90.06124100,38.59174800),"
Edgemont Elementary School
8601 Washington St
East Saint Louis, IL 62203

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Edgemont Elementary School",'East_Saint_Louis=' + East_Saint_Louis.length); Cahokia[Cahokia.length] = createMarker(new GPoint(-90.17440796,38.55400467),"
Elizabeth Morris Elementary School
1500 Andrews Dr
Cahokia, IL 62206

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Elizabeth Morris Elementary School",'Cahokia=' + Cahokia.length); Belleville[Belleville.length] = createMarker(new GPoint(-90.06667328,38.54130936),"
Ellis Elementary School
250 Illini Dr
Belleville, IL 62223

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Ellis Elementary School",'Belleville=' + Belleville.length); Belleville[Belleville.length] = createMarker(new GPoint(-90.05431366,38.54789734),"
Emge Junior High School
7401 Westchester Dr
Belleville, IL 62223

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Emge Junior High School",'Belleville=' + Belleville.length); Ofallon[Ofallon.length] = createMarker(new GPoint(-89.90247345,38.59712982),"
Estelle Kampmeyer Elementary School
707 N Smiley St
Ofallon, IL 62269

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Estelle Kampmeyer Elementary School",'Ofallon=' + Ofallon.length); Cahokia[Cahokia.length] = createMarker(new GPoint(-90.15634400,38.56403500),"
Estelle Sauget Academic Center
1700 Jerome Ln
Cahokia, IL 62206

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Estelle Sauget Academic Center",'Cahokia=' + Cahokia.length); Cahokia[Cahokia.length] = createMarker(new GPoint(-90.13719177,38.54978943),"
Fort Bowman Academy
2734 Calvin Blvd
Cahokia, IL 62206

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Fort Bowman Academy",'Cahokia=' + Cahokia.length); Belleville[Belleville.length] = createMarker(new GPoint(-89.98707581,38.51674652),"
Franklin Elementary School
301 N 2nd St
Belleville, IL 62220

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Franklin Elementary School",'Belleville=' + Belleville.length); Freeburg[Freeburg.length] = createMarker(new GPoint(-89.91196442,38.42335129),"
Freeburg Community High School
401 S Monroe St
Freeburg, IL 62243

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Freeburg Community High School",'Freeburg=' + Freeburg.length); Freeburg[Freeburg.length] = createMarker(new GPoint(-89.90904900,38.42311500),"
Freeburg Elementary School
408 S Belleville St
Freeburg, IL 62243

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Freeburg Elementary School",'Freeburg=' + Freeburg.length); Freeburg[Freeburg.length] = createMarker(new GPoint(-89.90917206,38.42015457),"
Freeburg Primary Center
650 S State
Freeburg, IL 62243

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Freeburg Primary Center",'Freeburg=' + Freeburg.length); Ofallon[Ofallon.length] = createMarker(new GPoint(-89.92343903,38.61783600),"
Fulton Junior High School
307 Kyle Rd
Ofallon, IL 62269

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Fulton Junior High School",'Ofallon=' + Ofallon.length); Fairview_Heights[Fairview_Heights.length] = createMarker(new GPoint(-90.01145935,38.59286118),"
Grant Middle School
10110 Old Lincoln Tr
Fairview Heights, IL 62208

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Grant Middle School",'Fairview_Heights=' + Fairview_Heights.length); East_Saint_Louis[East_Saint_Louis.length] = createMarker(new GPoint(-90.07356262,38.59991455),"
Harding Elementary School
731 N 74th St
East Saint Louis, IL 62203

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Harding Elementary School",'East_Saint_Louis=' + East_Saint_Louis.length); Belleville[Belleville.length] = createMarker(new GPoint(-89.84765625,38.53239822),"
Harmony Preschool
500 Wilshire
Belleville, IL 62223

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Harmony Preschool",'Belleville=' + Belleville.length); East_Saint_Louis[East_Saint_Louis.length] = createMarker(new GPoint(-90.10853600,38.63074900),"
Hawthorne Elementary School
1600 N 40th St
East Saint Louis, IL 62204

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Hawthorne Elementary School",'East_Saint_Louis=' + East_Saint_Louis.length); Belleville[Belleville.length] = createMarker(new GPoint(-90.00162506,38.51216507),"
Henry Raab Elementary School
1120 Union Ave
Belleville, IL 62220

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Henry Raab Elementary School",'Belleville=' + Belleville.length); Swansea[Swansea.length] = createMarker(new GPoint(-89.98793030,38.53203964),"
High Mount Elementary School
1721 Boul Ave
Swansea, IL 62226

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("High Mount Elementary School",'Swansea=' + Swansea.length); Caseyville[Caseyville.length] = createMarker(new GPoint(-89.99662018,38.63280869),"
Hollywood Heights Elementary School
6 N Oakland Dr
Caseyville, IL 62232

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Hollywood Heights Elementary School",'Caseyville=' + Caseyville.length); Cahokia[Cahokia.length] = createMarker(new GPoint(-90.18738556,38.56332779),"
Huffman Elementary School
600 St Robert Dr
Cahokia, IL 62206

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Huffman Elementary School",'Cahokia=' + Cahokia.length); Fairview_Heights[Fairview_Heights.length] = createMarker(new GPoint(-90.01907349,38.61243820),"
Illini Elementary School
21 Circle Dr
Fairview Heights, IL 62208

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Illini Elementary School",'Fairview_Heights=' + Fairview_Heights.length); Ofallon[Ofallon.length] = createMarker(new GPoint(-89.92372894,38.59978485),"
J Emmett Hinchcliffe Senior Elementary School
1050 Ogle Rd
Ofallon, IL 62269

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("J Emmett Hinchcliffe Senior Elementary School",'Ofallon=' + Ofallon.length); East_Saint_Louis[East_Saint_Louis.length] = createMarker(new GPoint(-90.13586700,38.62234500),"
Jackson Elementary School
1798 College Ave
East Saint Louis, IL 62205

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Jackson Elementary School",'East_Saint_Louis=' + East_Saint_Louis.length); Belleville[Belleville.length] = createMarker(new GPoint(-89.97205353,38.52569962),"
Jefferson Elementary School
1400 N Charles St
Belleville, IL 62221

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Jefferson Elementary School",'Belleville=' + Belleville.length); Cahokia[Cahokia.length] = createMarker(new GPoint(-90.15410614,38.56237030),"
Jerome Early Childhood Center
1825 Jerome Ln
Cahokia, IL 62206

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Jerome Early Childhood Center",'Cahokia=' + Cahokia.length); East_Saint_Louis[East_Saint_Louis.length] = createMarker(new GPoint(-90.15631866,38.61175537),"
John Robinson Elementary School
1435 Market Ave
East Saint Louis, IL 62201

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("John Robinson Elementary School",'East_Saint_Louis=' + East_Saint_Louis.length); Centreville[Centreville.length] = createMarker(new GPoint(-90.10335541,38.56713486),"
Lalumier Elementary School
6702 Bond Ave
Centreville, IL 62207

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lalumier Elementary School",'Centreville=' + Centreville.length); Ofallon[Ofallon.length] = createMarker(new GPoint(-89.90157318,38.57831955),"
Laverna Evans Elementary School
802 Dartmouth Dr
Ofallon, IL 62269

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Laverna Evans Elementary School",'Ofallon=' + Ofallon.length); Lebanon[Lebanon.length] = createMarker(new GPoint(-89.80779266,38.60096359),"
Lebanon Elementary School
102 W Schuetz St
Lebanon, IL 62254

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lebanon Elementary School",'Lebanon=' + Lebanon.length); Lebanon[Lebanon.length] = createMarker(new GPoint(-89.80917358,38.60096359),"
Lebanon High School
200 W Schuetz St
Lebanon, IL 62254

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Lebanon High School",'Lebanon=' + Lebanon.length); East_Saint_Louis[East_Saint_Louis.length] = createMarker(new GPoint(-90.15352100,38.61807700),"
Lilly-freeman Elementary School
1236 E Broadway
East Saint Louis, IL 62201

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lilly-freeman Elementary School",'East_Saint_Louis=' + East_Saint_Louis.length); Lovejoy[Lovejoy.length] = createMarker(new GPoint(-90.14910126,38.62749863),"
Lovejoy Elementary School
Po Box 250
Lovejoy, IL 62059

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lovejoy Elementary School",'Lovejoy=' + Lovejoy.length); Lovejoy[Lovejoy.length] = createMarker(new GPoint(-90.14910126,38.62749863),"
Lovejoy Middle School
Po Box 250
Lovejoy, IL 62059

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Lovejoy Middle School",'Lovejoy=' + Lovejoy.length); Lovejoy[Lovejoy.length] = createMarker(new GPoint(-90.14910126,38.62749863),"
Lovejoy Technology Academy
Po Box 250
Lovejoy, IL 62059

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Lovejoy Technology Academy",'Lovejoy=' + Lovejoy.length); East_Saint_Louis[East_Saint_Louis.length] = createMarker(new GPoint(-90.15890200,38.60592800),"
Lucas Elementary School
1620 Russell Ave
East Saint Louis, IL 62207

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lucas Elementary School",'East_Saint_Louis=' + East_Saint_Louis.length); East_Saint_Louis[East_Saint_Louis.length] = createMarker(new GPoint(-90.09251600,38.63593600),"
Manners Elementary School
1915 N 55th St
East Saint Louis, IL 62204

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Manners Elementary School",'East_Saint_Louis=' + East_Saint_Louis.length); Cahokia[Cahokia.length] = createMarker(new GPoint(-90.17362976,38.57330704),"
Maplewood Elementary School
600 Jerome Ln
Cahokia, IL 62206

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Maplewood Elementary School",'Cahokia=' + Cahokia.length); Ofallon[Ofallon.length] = createMarker(new GPoint(-89.91277313,38.58832550),"
Marie Schaefer Elementary School
505 S Cherry St
Ofallon, IL 62269

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Marie Schaefer Elementary School",'Ofallon=' + Ofallon.length); Marissa[Marissa.length] = createMarker(new GPoint(-89.75273132,38.24810028),"
Marissa Elementary School
206 E Fulton St
Marissa, IL 62257

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Marissa Elementary School",'Marissa=' + Marissa.length); Marissa[Marissa.length] = createMarker(new GPoint(-89.75397491,38.25817871),"
Marissa Junior & Senior High School
300 School View Dr
Marissa, IL 62257

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Marissa Junior & Senior High School",'Marissa=' + Marissa.length); Mascoutah[Mascoutah.length] = createMarker(new GPoint(-89.80687714,38.49574661),"
Mascoutah Elementary School
533 N 6th St
Mascoutah, IL 62258

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mascoutah Elementary School",'Mascoutah=' + Mascoutah.length); Mascoutah[Mascoutah.length] = createMarker(new GPoint(-89.81813049,38.49347687),"
Mascoutah High School
1313 W Main St
Mascoutah, IL 62258

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Mascoutah High School",'Mascoutah=' + Mascoutah.length); Mascoutah[Mascoutah.length] = createMarker(new GPoint(-89.80652618,38.49761200),"
Mascoutah Middle School
846 N 6th St
Mascoutah, IL 62258

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Mascoutah Middle School",'Mascoutah=' + Mascoutah.length); East_Saint_Louis[East_Saint_Louis.length] = createMarker(new GPoint(-90.14012909,38.62559891),"
Miles D Davis Elementary School
725 N 15th St
East Saint Louis, IL 62205

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Miles D Davis Elementary School",'East_Saint_Louis=' + East_Saint_Louis.length); Millstadt[Millstadt.length] = createMarker(new GPoint(-90.09395599,38.46233749),"
Millstadt Elementary School
211 W Mill St
Millstadt, IL 62260

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Millstadt Elementary School",'Millstadt=' + Millstadt.length); East_Saint_Louis[East_Saint_Louis.length] = createMarker(new GPoint(-90.09242249,38.60492325),"
Morrison Elementary School
630 N 59th St
East Saint Louis, IL 62203

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Morrison Elementary School",'East_Saint_Louis=' + East_Saint_Louis.length); East_Saint_Louis[East_Saint_Louis.length] = createMarker(new GPoint(-90.12122345,38.63483810),"
Nelson Mandela School
1800 N 25th St
East Saint Louis, IL 62204

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Nelson Mandela School",'East_Saint_Louis=' + East_Saint_Louis.length); New_Athens[New_Athens.length] = createMarker(new GPoint(-89.86812592,38.31875229),"
New Athens Elementary School
501 Hanft St
New Athens, IL 62264

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("New Athens Elementary School",'New_Athens=' + New_Athens.length); New_Athens[New_Athens.length] = createMarker(new GPoint(-89.86812592,38.31875229),"
New Athens High School
501 Hanft St
New Athens, IL 62264

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("New Athens High School",'New_Athens=' + New_Athens.length); New_Athens[New_Athens.length] = createMarker(new GPoint(-89.86812592,38.31875229),"
New Athens Junior High School
501 Hanft St
New Athens, IL 62264

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("New Athens Junior High School",'New_Athens=' + New_Athens.length); Belleville[Belleville.length] = createMarker(new GPoint(-90.01145935,38.52490234),"
North Gem Junior Senior High School
4063 Frank Scott Pky
Belleville, IL 62223

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("North Gem Junior Senior High School",'Belleville=' + Belleville.length); Ofallon[Ofallon.length] = createMarker(new GPoint(-89.90233612,38.58635330),"
O Fallon High School
600 S Smiley St
Ofallon, IL 62269

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("O Fallon High School",'Ofallon=' + Ofallon.length); Cahokia[Cahokia.length] = createMarker(new GPoint(-90.18965149,38.57160950),"
Oliver Parks Middle School
1900 Rear Mousette
Cahokia, IL 62206

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Oliver Parks Middle School",'Cahokia=' + Cahokia.length); Belleville[Belleville.length] = createMarker(new GPoint(-89.93027496,38.51155090),"
Pathways School
2401 Pathways Xing
Belleville, IL 62221

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Pathways School",'Belleville=' + Belleville.length); Cahokia[Cahokia.length] = createMarker(new GPoint(-90.16864777,38.55810165),"
Penniman Elementary School
300 Annunciation Ct
Cahokia, IL 62206

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Penniman Elementary School",'Cahokia=' + Cahokia.length); Fairview_Heights[Fairview_Heights.length] = createMarker(new GPoint(-89.97592926,38.58536148),"
Pontiac Junior High School
400 Ashland Dr
Fairview Heights, IL 62208

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Pontiac Junior High School",'Fairview_Heights=' + Fairview_Heights.length); Belleville[Belleville.length] = createMarker(new GPoint(-89.99297333,38.50486374),"
Roosevelt Elementary School
700 W Cleveland Ave
Belleville, IL 62220

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Roosevelt Elementary School",'Belleville=' + Belleville.length); Scott_A_F_Base[Scott_A_F_Base.length] = createMarker(new GPoint(-89.87274170,38.52914810),"
Scott Elementary School
4732 Patriots Dr
Scott A F Base, IL 62225

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Scott Elementary School",'Scott_A_F_Base=' + Scott_A_F_Base.length); Shiloh[Shiloh.length] = createMarker(new GPoint(-89.89768600,38.55811000),"
Shiloh Middle School
1 Wildcat Xing
Shiloh, IL 62269

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Shiloh Middle School",'Shiloh=' + Shiloh.length); Shiloh[Shiloh.length] = createMarker(new GPoint(-89.89862061,38.55721283),"
Shiloh Village Elementary School
125 Diamond Ct
Shiloh, IL 62269

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Shiloh Village Elementary School",'Shiloh=' + Shiloh.length); Belleville[Belleville.length] = createMarker(new GPoint(-90.05857086,38.57564545),"
Signal Hill Elementary School
40 Signal Hill Pl
Belleville, IL 62223

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Signal Hill Elementary School",'Belleville=' + Belleville.length); East_Saint_Louis[East_Saint_Louis.length] = createMarker(new GPoint(-90.16333771,38.62257767),"
Siu Charter School Of East St Louis
601 James R Thompson
East Saint Louis, IL 62201

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Siu Charter School Of East St Louis",'East_Saint_Louis=' + East_Saint_Louis.length); East_Saint_Louis[East_Saint_Louis.length] = createMarker(new GPoint(-90.09879300,38.62672200),"
Skyway Elementary School
4817 Hallows Ave
East Saint Louis, IL 62204

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Skyway Elementary School",'East_Saint_Louis=' + East_Saint_Louis.length); Smithton[Smithton.length] = createMarker(new GPoint(-89.99510193,38.40100098),"
Smithton Elementary School
Po Box 395
Smithton, IL 62285

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Smithton Elementary School",'Smithton=' + Smithton.length); E_St_Louis[E_St_Louis.length] = createMarker(new GPoint(-89.36270142,40.12670135),"
Southwestern Il Correctional Center
950 Kingshwy St
E St Louis, IL 62203

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Southwestern Il Correctional Center",'E_St_Louis=' + E_St_Louis.length); Belleville[Belleville.length] = createMarker(new GPoint(-90.05735779,38.58702087),"
St Clair Co Juv Detention Center
9006 Lebanon Rd
Belleville, IL 62223

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St Clair Co Juv Detention Center",'Belleville=' + Belleville.length); Belleville[Belleville.length] = createMarker(new GPoint(-90.02420044,38.54196930),"
St Clair Co Reg Office Safe School
25 Bellevue Park Plz
Belleville, IL 62226

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St Clair Co Reg Office Safe School",'Belleville=' + Belleville.length); Saint_Libory[Saint_Libory.length] = createMarker(new GPoint(-89.71369934,38.36199951),"
St Libory Elementary School
Po Box 323
Saint Libory, IL 62282

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("St Libory Elementary School",'Saint_Libory=' + Saint_Libory.length); Summerfield[Summerfield.length] = createMarker(new GPoint(-89.75199890,38.59700012),"
Summerfield Elementary School
Po Box 424
Summerfield, IL 62289

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Summerfield Elementary School",'Summerfield=' + Summerfield.length); East_St_Louis[East_St_Louis.length] = createMarker(new GPoint(-90.15399933,38.62229919),"
Tomorrows Builders Charter School
Po Box 6126
East St Louis, IL 62202

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Tomorrows Builders Charter School",'East_St_Louis=' + East_St_Louis.length); Collinsville[Collinsville.length] = createMarker(new GPoint(-90.00122833,38.64843369),"
Twin Echo Elementary School
1937 S Morrison Ave
Collinsville, IL 62234

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Twin Echo Elementary School",'Collinsville=' + Collinsville.length); Belleville[Belleville.length] = createMarker(new GPoint(-90.01165009,38.52536392),"
Union Elementary School
20 S 27th St
Belleville, IL 62226

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Union Elementary School",'Belleville=' + Belleville.length); Alorton[Alorton.length] = createMarker(new GPoint(-90.11631012,38.58780670),"
Vernice G Neeley School
4400 Grand St
Alorton, IL 62207

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Vernice G Neeley School",'Alorton=' + Alorton.length); Alorton[Alorton.length] = createMarker(new GPoint(-90.11631012,38.58780670),"
Vernice G Neely School
4400 Grand St
Alorton, IL 62207

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Vernice G Neely School",'Alorton=' + Alorton.length); East_St_Louis[East_St_Louis.length] = createMarker(new GPoint(-90.14859009,38.62590790),"
Vivian Adams Early Child Center
501 N 10th St
East St Louis, IL 63031

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Vivian Adams Early Child Center",'East_St_Louis=' + East_St_Louis.length); Belleville[Belleville.length] = createMarker(new GPoint(-89.97882080,38.50966263),"
Washington School
400 S Charles St
Belleville, IL 62220

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Washington School",'Belleville=' + Belleville.length); Belleville[Belleville.length] = createMarker(new GPoint(-90.01102448,38.54589462),"
West Junior High School
840 Royal Heights Rd
Belleville, IL 62226

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("West Junior High School",'Belleville=' + Belleville.length); Belleville[Belleville.length] = createMarker(new GPoint(-89.98250580,38.49052811),"
Westhaven Elementary School
118 Westhaven Sch Rd
Belleville, IL 62220

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Westhaven Elementary School",'Belleville=' + Belleville.length); Belleville[Belleville.length] = createMarker(new GPoint(-89.95475006,38.53931046),"
Whiteside Elementary School
2028 Lebanon Ave
Belleville, IL 62221

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Whiteside Elementary School",'Belleville=' + Belleville.length); Belleville[Belleville.length] = createMarker(new GPoint(-89.94580078,38.55089951),"
Whiteside Middle School
111 Warrior Way
Belleville, IL 62221

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Whiteside Middle School",'Belleville=' + Belleville.length); Fairview_Heights[Fairview_Heights.length] = createMarker(new GPoint(-89.97582245,38.58326340),"
William Holliday Elementary School
400 Joseph Dr
Fairview Heights, IL 62208

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("William Holliday Elementary School",'Fairview_Heights=' + Fairview_Heights.length); East_Saint_Louis[East_Saint_Louis.length] = createMarker(new GPoint(-90.09879300,38.62672200),"
Wilson Elementary School
4817 Hallows Ave
East Saint Louis, IL 62204

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Wilson Elementary School",'East_Saint_Louis=' + East_Saint_Louis.length); Cahokia[Cahokia.length] = createMarker(new GPoint(-90.13007355,38.56283188),"
Wirth Middle School
1900 Mousette Ln
Cahokia, IL 62206

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Wirth Middle School",'Cahokia=' + Cahokia.length); Cahokia[Cahokia.length] = createMarker(new GPoint(-90.13007355,38.56283188),"
Wirth-parks Middle School
1900 Mousette Ln
Cahokia, IL 62206

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Wirth-parks Middle School",'Cahokia=' + Cahokia.length); Swansea[Swansea.length] = createMarker(new GPoint(-89.98813629,38.55606842),"
Wolf Branch Elementary School
125 Huntwood Rd
Swansea, IL 62226

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Wolf Branch Elementary School",'Swansea=' + Swansea.length); Swansea[Swansea.length] = createMarker(new GPoint(-89.98414400,38.52667000),"
Wolf Branch Middle School
410 Huntwood Rd
Swansea, IL 62226

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Wolf Branch Middle School",'Swansea=' + Swansea.length); East_Saint_Louis[East_Saint_Louis.length] = createMarker(new GPoint(-90.10921100,38.63059000),"
Yvetta H Younge Middle School
3939 Caseyville Ave
East Saint Louis, IL 62204

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Yvetta H Younge Middle School",'East_Saint_Louis=' + East_Saint_Louis.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(Alorton); map.removeOverlays(Belleville); map.removeOverlays(Cahokia); map.removeOverlays(Caseyville); map.removeOverlays(Centreville); map.removeOverlays(Collinsville); map.removeOverlays(Dupo); map.removeOverlays(E_St_Louis); map.removeOverlays(East_Saint_Louis); map.removeOverlays(East_St_Louis); map.removeOverlays(Fairview_Heights); map.removeOverlays(Freeburg); map.removeOverlays(Lebanon); map.removeOverlays(Lovejoy); map.removeOverlays(Marissa); map.removeOverlays(Mascoutah); map.removeOverlays(Millstadt); map.removeOverlays(New_Athens); map.removeOverlays(Ofallon); map.removeOverlays(Saint_Libory); map.removeOverlays(Scott_A_F_Base); map.removeOverlays(Shiloh); map.removeOverlays(Smithton); map.removeOverlays(Summerfield); map.removeOverlays(Swansea); 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(Belleville);map.removeOverlays(Alorton); map.removeOverlays(Belleville); map.removeOverlays(Cahokia); map.removeOverlays(Caseyville); map.removeOverlays(Centreville); map.removeOverlays(Collinsville); map.removeOverlays(Dupo); map.removeOverlays(E_St_Louis); map.removeOverlays(East_Saint_Louis); map.removeOverlays(East_St_Louis); map.removeOverlays(Fairview_Heights); map.removeOverlays(Freeburg); map.removeOverlays(Lebanon); map.removeOverlays(Lovejoy); map.removeOverlays(Marissa); map.removeOverlays(Mascoutah); map.removeOverlays(Millstadt); map.removeOverlays(New_Athens); map.removeOverlays(Ofallon); map.removeOverlays(Saint_Libory); map.removeOverlays(Scott_A_F_Base); map.removeOverlays(Shiloh); map.removeOverlays(Smithton); map.removeOverlays(Summerfield); map.removeOverlays(Swansea); map.addOverlays(Alorton); centerByArray(Alorton, false, false); cntMarker += Alorton.length; map.addOverlays(Belleville); centerByArray(Belleville, false, false); cntMarker += Belleville.length; map.addOverlays(Cahokia); centerByArray(Cahokia, false, false); cntMarker += Cahokia.length; map.addOverlays(Caseyville); centerByArray(Caseyville, false, false); cntMarker += Caseyville.length; map.addOverlays(Centreville); centerByArray(Centreville, false, false); cntMarker += Centreville.length; map.addOverlays(Collinsville); centerByArray(Collinsville, false, false); cntMarker += Collinsville.length; map.addOverlays(Dupo); centerByArray(Dupo, false, false); cntMarker += Dupo.length; map.addOverlays(E_St_Louis); centerByArray(E_St_Louis, false, false); cntMarker += E_St_Louis.length; map.addOverlays(East_Saint_Louis); centerByArray(East_Saint_Louis, false, false); cntMarker += East_Saint_Louis.length; map.addOverlays(East_St_Louis); centerByArray(East_St_Louis, false, false); cntMarker += East_St_Louis.length; map.addOverlays(Fairview_Heights); centerByArray(Fairview_Heights, false, false); cntMarker += Fairview_Heights.length; map.addOverlays(Freeburg); centerByArray(Freeburg, false, false); cntMarker += Freeburg.length; map.addOverlays(Lebanon); centerByArray(Lebanon, false, false); cntMarker += Lebanon.length; map.addOverlays(Lovejoy); centerByArray(Lovejoy, false, false); cntMarker += Lovejoy.length; map.addOverlays(Marissa); centerByArray(Marissa, false, false); cntMarker += Marissa.length; map.addOverlays(Mascoutah); centerByArray(Mascoutah, false, false); cntMarker += Mascoutah.length; map.addOverlays(Millstadt); centerByArray(Millstadt, false, false); cntMarker += Millstadt.length; map.addOverlays(New_Athens); centerByArray(New_Athens, false, false); cntMarker += New_Athens.length; map.addOverlays(Ofallon); centerByArray(Ofallon, false, false); cntMarker += Ofallon.length; map.addOverlays(Saint_Libory); centerByArray(Saint_Libory, false, false); cntMarker += Saint_Libory.length; map.addOverlays(Scott_A_F_Base); centerByArray(Scott_A_F_Base, false, false); cntMarker += Scott_A_F_Base.length; map.addOverlays(Shiloh); centerByArray(Shiloh, false, false); cntMarker += Shiloh.length; map.addOverlays(Smithton); centerByArray(Smithton, false, false); cntMarker += Smithton.length; map.addOverlays(Summerfield); centerByArray(Summerfield, false, false); cntMarker += Summerfield.length; map.addOverlays(Swansea); centerByArray(Swansea, false, false); cntMarker += Swansea.length; centerByArray(Belleville,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'); } }