function addMarkers() { mySelect = document.getElementById('selection'); Longmont = [];Lafayette = [];Boulder = [];Louisville = [];Superior = [];Erie = [];Gold_Hill = [];Jamestown = [];Lyons = [];Nederland = [];Niwot = [];Fort_Collins = [];mySelect.options[mySelect.options.length] = new Option("Boulder schools",'all=Boulder'); mySelect.options[mySelect.options.length] = new Option("Erie schools",'all=Erie'); mySelect.options[mySelect.options.length] = new Option("Fort Collins schools",'all=Fort_Collins'); mySelect.options[mySelect.options.length] = new Option("Gold Hill schools",'all=Gold_Hill'); mySelect.options[mySelect.options.length] = new Option("Jamestown schools",'all=Jamestown'); mySelect.options[mySelect.options.length] = new Option("Lafayette schools",'all=Lafayette'); mySelect.options[mySelect.options.length] = new Option("Longmont schools",'all=Longmont'); mySelect.options[mySelect.options.length] = new Option("Louisville schools",'all=Louisville'); mySelect.options[mySelect.options.length] = new Option("Lyons schools",'all=Lyons'); mySelect.options[mySelect.options.length] = new Option("Nederland schools",'all=Nederland'); mySelect.options[mySelect.options.length] = new Option("Niwot schools",'all=Niwot'); mySelect.options[mySelect.options.length] = new Option("Superior schools",'all=Superior'); mySelect.options[mySelect.options.length] = new Option("---------------------------",''); Longmont[Longmont.length] = createMarker(new GPoint(-105.11164093,40.15203857),"
Adult Education/lincoln Center
619 Bowen
Longmont, CO 80501

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Adult Education/lincoln Center",'Longmont=' + Longmont.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.08677800,40.19383000),"
Alpine Elementary School
2005 Alpine Street
Longmont, CO 80501

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Alpine Elementary School",'Longmont=' + Longmont.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.16315600,40.14347500),"
Altona Middle School
4600 Clover Basin Drive
Longmont, CO 80503

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Altona Middle School",'Longmont=' + Longmont.length); Lafayette[Lafayette.length] = createMarker(new GPoint(-105.08654022,39.98690033),"
Angevine Middle School
1150 South Boulder Road
Lafayette, CO 80026

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Angevine Middle School",'Lafayette=' + Lafayette.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.19918060,40.01456451),"
Arapahoe Ridge High School
6600 Arapahoe Avenue
Boulder, CO 80303

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Arapahoe Ridge High School",'Boulder=' + Boulder.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.26761627,40.00023651),"
Base Line Middle School-arts Focus
700 20th Street
Boulder, CO 80302

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Base Line Middle School-arts Focus",'Boulder=' + Boulder.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.26273346,39.98100662),"
Bear Creek Elementary School
2500 Table Mesa Drive
Boulder, CO 80305

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Bear Creek Elementary School",'Boulder=' + Boulder.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.24390411,40.00383759),"
Boulder Community School/integrated Studies Elementary School
3995 East Aurora Avenue
Boulder, CO 80303

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Boulder Community School/integrated Studies Elementary School",'Boulder=' + Boulder.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.27339172,40.01446152),"
Boulder High School
1604 Arapahoe Avenue
Boulder, CO 80302

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Boulder High School",'Boulder=' + Boulder.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.22070312,40.04600143),"
Boulder Prep Charter High School
5075 Chaparral Court 1
Boulder, CO 80301

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Boulder Prep Charter High School",'Boulder=' + Boulder.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.10758209,40.17672348),"
Burlington Elementary School
1051 S. Pratt Parkway
Longmont, CO 80501

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Burlington Elementary School",'Longmont=' + Longmont.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.28007507,40.02273941),"
Casey Middle School
2410 13th Street
Boulder, CO 80304

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Casey Middle School",'Boulder=' + Boulder.length); Lafayette[Lafayette.length] = createMarker(new GPoint(-105.08555603,39.98666382),"
Centaurus High School
10300 South Boulder Road
Lafayette, CO 80026

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Centaurus High School",'Lafayette=' + Lafayette.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.26882935,40.04443741),"
Centennial Middle School
2205 Norwood Avenue
Boulder, CO 80304

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Centennial Middle School",'Boulder=' + Boulder.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.10816193,40.16614914),"
Central Elementary School
1020 4th Avenue
Longmont, CO 80501

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Central Elementary School",'Longmont=' + Longmont.length); Louisville[Louisville.length] = createMarker(new GPoint(-105.15731812,39.98239136),"
Coal Creek Elementary School
801 West Tamarisk Street
Louisville, CO 80027

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Coal Creek Elementary School",'Louisville=' + Louisville.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.27052307,40.03180695),"
Columbine Elementary School
3130 Repplier Drive
Boulder, CO 80304

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Columbine Elementary School",'Boulder=' + Boulder.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.10379791,40.17242050),"
Columbine Elementary School
111 Longs Peak Avenue
Longmont, CO 80501

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Columbine Elementary School",'Longmont=' + Longmont.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.27137756,40.00342178),"
Community Montessori School
805 Gillaspie Dr
Boulder, CO 80305

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Community Montessori School",'Boulder=' + Boulder.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.24863434,39.99100876),"
Creekside Elementary School At Martin Park
3740 Martin Drive
Boulder, CO 80305

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Creekside Elementary School At Martin Park",'Boulder=' + Boulder.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.27300262,40.05093765),"
Crest View Elementary School
1897 Sumac Avenue
Boulder, CO 80304

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Crest View Elementary School",'Boulder=' + Boulder.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.17803955,40.00210190),"
Douglass Elementary School
840 75th Street
Boulder, CO 80303

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Douglass Elementary School",'Boulder=' + Boulder.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.14057159,40.14524841),"
Eagle Crest Elementary School
4444 Clover Basin Drive
Longmont, CO 80503

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Eagle Crest Elementary School",'Longmont=' + Longmont.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.23461914,40.00757599),"
Eisenhower Elementary School
1220 Eisenhower Drive
Boulder, CO 80303

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Eisenhower Elementary School",'Boulder=' + Boulder.length); Superior[Superior.length] = createMarker(new GPoint(-105.15957642,39.92108154),"
Eldorado K-8 Elementary School
3351 South Indiana Street
Superior, CO 80027

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Eldorado K-8 Elementary School",'Superior=' + Superior.length); Erie[Erie.length] = createMarker(new GPoint(-105.03829956,40.04100037),"
Erie Elementary School
P O Box 700
Erie, CO 80516

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Erie Elementary School",'Erie=' + Erie.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.24157715,39.97276306),"
Fairview High School
1515 Greenbriar Boulevard
Boulder, CO 80305

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Fairview High School",'Boulder=' + Boulder.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.06425476,40.18366241),"
Fall River Elementary School
1400 Deerwood Drive
Longmont, CO 80501

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Fall River Elementary School",'Longmont=' + Longmont.length); Louisville[Louisville.length] = createMarker(new GPoint(-105.15774536,39.96829987),"
Fireside Elementary School
845 West Dahlia
Louisville, CO 80027

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Fireside Elementary School",'Louisville=' + Louisville.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.19608400,40.07582600),"
Flagstaff Charter School
1841 Left Hand Circle
Longmont, CO 80501

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Flagstaff Charter School",'Longmont=' + Longmont.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.28542328,40.00779343),"
Flatirons Elementary School
1150 7th Street
Boulder, CO 80302

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Flatirons Elementary School",'Boulder=' + Boulder.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.28418732,40.03513718),"
Foothill Elementary School
1001 Hawthorne Avenue
Boulder, CO 80304

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Foothill Elementary School",'Boulder=' + Boulder.length); Gold_Hill[Gold_Hill.length] = createMarker(new GPoint(-106.04218292,39.47423935),"
Gold Hill Elementary School
890 Main Street
Gold Hill, CO 80302

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Gold Hill Elementary School",'Gold_Hill=' + Gold_Hill.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.25637054,39.99266052),"
Halcyon School (special Education)
3100 Bucknell Court
Boulder, CO 80303

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Halcyon School (special Education)",'Boulder=' + Boulder.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.17285156,40.05806351),"
Heatherwood Elementary School
7750 Concord Drive
Boulder, CO 80301

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Heatherwood Elementary School",'Boulder=' + Boulder.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.08571625,40.18116379),"
Heritage Middle School
233 E. Mountain View
Longmont, CO 80501

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Heritage Middle School",'Longmont=' + Longmont.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.24390411,40.00383759),"
High Peaks Elementary School
3995 East Aurora Avenue
Boulder, CO 80303

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("High Peaks Elementary School",'Boulder=' + Boulder.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.23746490,39.99323654),"
Horizons K-8 Alternative Charter School
4545 Sioux Drive
Boulder, CO 80303

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Horizons K-8 Alternative Charter School",'Boulder=' + Boulder.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.17823792,40.19158554),"
Hygiene Elementary School
11968 N. 75th Street
Longmont, CO 80503

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Hygiene Elementary School",'Longmont=' + Longmont.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.11697388,40.14317322),"
Indian Peaks Elementary School
1335 South Judson
Longmont, CO 80501

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Indian Peaks Elementary School",'Longmont=' + Longmont.length); Jamestown[Jamestown.length] = createMarker(new GPoint(-105.38806915,40.11466980),"
Jamestown Elementary School
111 Mesa Street
Jamestown, CO 80455

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Jamestown Elementary School",'Jamestown=' + Jamestown.length); Lafayette[Lafayette.length] = createMarker(new GPoint(-105.09587860,39.99834442),"
Lafayette Elementary School
101 North Bermont Avenue
Lafayette, CO 80026

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lafayette Elementary School",'Lafayette=' + Lafayette.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.10112000,40.16576767),"
Loma Linda Elementary School
333 E. Mountain View
Longmont, CO 80501

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Loma Linda Elementary School",'Longmont=' + Longmont.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.14788818,40.18653488),"
Longmont Estates Elementary School
1601 Northwestern Road
Longmont, CO 80503

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Longmont Estates Elementary School",'Longmont=' + Longmont.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.12119293,40.14760971),"
Longmont High School
1040 Sunset Street
Longmont, CO 80501

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Longmont High School",'Longmont=' + Longmont.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.11653900,40.18348312),"
Longs Peak Middle School
1500 14th Avenue
Longmont, CO 80501

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Longs Peak Middle School",'Longmont=' + Longmont.length); Louisville[Louisville.length] = createMarker(new GPoint(-105.13784790,39.97470856),"
Louisville Elementary School
400 Hutchinson Street
Louisville, CO 80027

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Louisville Elementary School",'Louisville=' + Louisville.length); Louisville[Louisville.length] = createMarker(new GPoint(-105.13237762,39.98309708),"
Louisville Middle School
1341 Main Street
Louisville, CO 80027

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Louisville Middle School",'Louisville=' + Louisville.length); Lyons[Lyons.length] = createMarker(new GPoint(-105.34339905,40.23479843),"
Lyons Elementary School
P O Box 559
Lyons, CO 80540

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lyons Elementary School",'Lyons=' + Lyons.length); Lyons[Lyons.length] = createMarker(new GPoint(-105.34339905,40.23479843),"
Lyons Middle/senior High School
P O Box 619
Lyons, CO 80540

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Lyons Middle/senior High School",'Lyons=' + Lyons.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.22915649,39.99348450),"
Manhattan School Of Arts And Academics
290 Manhattan Drive
Boulder, CO 80303

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Manhattan School Of Arts And Academics",'Boulder=' + Boulder.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.28560638,40.02036285),"
Mapleton Elementary School
840 Mapleton Avenue
Boulder, CO 80304

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mapleton Elementary School",'Boulder=' + Boulder.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.26027679,39.97233963),"
Mesa Elementary School
1575 Lehigh Street
Boulder, CO 80305

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mesa Elementary School",'Boulder=' + Boulder.length); Louisville[Louisville.length] = createMarker(new GPoint(-105.14065552,39.95074081),"
Monarch High School
329 Campus Drive
Louisville, CO 80027

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Monarch High School",'Louisville=' + Louisville.length); Louisville[Louisville.length] = createMarker(new GPoint(-105.14205170,39.95074081),"
Monarch K-8 School
263 Campus Drive
Louisville, CO 80027

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Monarch K-8 School",'Louisville=' + Louisville.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.11465454,40.18348312),"
Mountain View Elementary School
1415 14th Street
Longmont, CO 80501

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mountain View Elementary School",'Longmont=' + Longmont.length); Nederland[Nederland.length] = createMarker(new GPoint(-105.49569702,39.96419907),"
Nederland Elementary School
1 Sundown Trail
Nederland, CO 80466

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Nederland Elementary School",'Nederland=' + Nederland.length); Nederland[Nederland.length] = createMarker(new GPoint(-105.52728271,39.95237732),"
Nederland Middle-senior High School
597 Eldora Road
Nederland, CO 80466

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Nederland Middle-senior High School",'Nederland=' + Nederland.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.21051025,40.00346375),"
Nevin Platt Middle School
6096 Baseline Road
Boulder, CO 80303

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Nevin Platt Middle School",'Boulder=' + Boulder.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.25172424,39.98266220),"
New Vista High School
700 02th Street
Boulder, CO 80302

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("New Vista High School",'Boulder=' + Boulder.length); Niwot[Niwot.length] = createMarker(new GPoint(-105.14603424,40.10038376),"
Niwot Elementary School
8778 Morton Road
Niwot, CO 80503

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Niwot Elementary School",'Niwot=' + Niwot.length); Niwot[Niwot.length] = createMarker(new GPoint(-105.14209747,40.10184860),"
Niwot High School
8989 E. Niwot Road
Niwot, CO 80503

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Niwot High School",'Niwot=' + Niwot.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.10919952,40.19318771),"
Northridge Elementary School
1200 19th Avenue
Longmont, CO 80501

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Northridge Elementary School",'Longmont=' + Longmont.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.12113953,40.14718246),"
Olde Columbine High School
1200 South Sunset
Longmont, CO 80501

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Olde Columbine High School",'Longmont=' + Longmont.length); Lafayette[Lafayette.length] = createMarker(new GPoint(-105.08100128,39.98743820),"
Peak To Peak Charter School
800 Merline Drive
Lafayette, CO 80026

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Peak To Peak Charter School",'Lafayette=' + Lafayette.length); Lafayette[Lafayette.length] = createMarker(new GPoint(-105.09030914,40.00033569),"
Pioneer Bilingual Elementary School
101 E. Baseline Road
Lafayette, CO 80026

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Pioneer Bilingual Elementary School",'Lafayette=' + Lafayette.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.00029755,40.15499878),"
Prairie Ridge Elementary School
6632 St Vrain Ranch Boulevard
Longmont, CO 80504

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Prairie Ridge Elementary School",'Longmont=' + Longmont.length); Fort_Collins[Fort_Collins.length] = createMarker(new GPoint(-105.02661896,40.52333832),"
Psd Mountain Crest Alternative Program High School
4601 Corbett Drive
Fort Collins, CO 80528

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Psd Mountain Crest Alternative Program High School",'Fort_Collins=' + Fort_Collins.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.07743835,40.16668320),"
Rocky Mountain Elementary School
800 East 5th
Longmont, CO 80501

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Rocky Mountain Elementary School",'Longmont=' + Longmont.length); Lafayette[Lafayette.length] = createMarker(new GPoint(-105.10884857,39.98085403),"
Ryan Elementary School
1405 Centaur Village Drive
Lafayette, CO 80026

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Ryan Elementary School",'Lafayette=' + Lafayette.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.11904144,40.19833374),"
Sanborn Elementary School
2235 Vivian Street
Longmont, CO 80501

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Sanborn Elementary School",'Longmont=' + Longmont.length); Lafayette[Lafayette.length] = createMarker(new GPoint(-105.08337402,39.98957062),"
Sanchez Elementary School
655 Sir Galahad Drive
Lafayette, CO 80026

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Sanchez Elementary School",'Lafayette=' + Lafayette.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.26374054,40.14528656),"
Silver Creek School
4901 Nelson Road
Longmont, CO 80503

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Silver Creek School",'Longmont=' + Longmont.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.07888031,40.18150330),"
Skyline High School
600 East Mountain View
Longmont, CO 80501

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Skyline High School",'Longmont=' + Longmont.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.24922180,40.03049850),"
Sojourner Charter School
3050 34th Street
Boulder, CO 80301

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Sojourner Charter School",'Boulder=' + Boulder.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.24581909,39.97474289),"
Southern Hills Middle School
1500 Knox Drive
Boulder, CO 80305

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Southern Hills Middle School",'Boulder=' + Boulder.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.09747314,40.18435287),"
Spangler Elementary School
1440 Collyer Street
Longmont, CO 80501

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Spangler Elementary School",'Longmont=' + Longmont.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.23709869,39.98580170),"
Summit Middle Charter School
4655 Hanover Avenue
Boulder, CO 80305

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Summit Middle Charter School",'Boulder=' + Boulder.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.12104034,40.14538574),"
Sunset Middle School
1300 S. Sunset
Longmont, CO 80501

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Sunset Middle School",'Longmont=' + Longmont.length); Superior[Superior.length] = createMarker(new GPoint(-105.15765381,39.93736649),"
Superior Elementary School
1800 South Indiana St.
Superior, CO 80027

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Superior Elementary School",'Superior=' + Superior.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.06104200,40.17733900),"
Trail Ridge Middle School
1000 Button Rock Drive
Longmont, CO 80501

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Trail Ridge Middle School",'Longmont=' + Longmont.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.10215759,40.15129089),"
Twin Peaks Charter Academy
820 Main Street
Longmont, CO 80501

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Twin Peaks Charter Academy",'Longmont=' + Longmont.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.27232361,40.00464249),"
University Hill Elementary School
956 16th Street
Boulder, CO 80302

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("University Hill Elementary School",'Boulder=' + Boulder.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.10223389,40.15455627),"
Ute Creek Secondary Charter Academy
1198 Boston Avenue
Longmont, CO 80501

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Ute Creek Secondary Charter Academy",'Longmont=' + Longmont.length); Fort_Collins[Fort_Collins.length] = createMarker(new GPoint(-105.12330627,40.58918381),"
Village School
2540 Laporte Avenue
Fort Collins, CO 80521

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Village School",'Fort_Collins=' + Fort_Collins.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.28170013,40.02813721),"
Washington Bilingual Elementary School
1215 Cedar Avenue
Boulder, CO 80304

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Washington Bilingual Elementary School",'Boulder=' + Boulder.length); Longmont[Longmont.length] = createMarker(new GPoint(-105.14936829,40.14321899),"
Westview Middle School
1651 Airport Road
Longmont, CO 80503

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Westview Middle School",'Longmont=' + Longmont.length); Boulder[Boulder.length] = createMarker(new GPoint(-105.26998901,40.02191925),"
Whittier Elementary School
2008 Pine Street
Boulder, CO 80302

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Whittier Elementary School",'Boulder=' + Boulder.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(Boulder); map.removeOverlays(Erie); map.removeOverlays(Fort_Collins); map.removeOverlays(Gold_Hill); map.removeOverlays(Jamestown); map.removeOverlays(Lafayette); map.removeOverlays(Longmont); map.removeOverlays(Louisville); map.removeOverlays(Lyons); map.removeOverlays(Nederland); map.removeOverlays(Niwot); map.removeOverlays(Superior); 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(Longmont);map.removeOverlays(Boulder); map.removeOverlays(Erie); map.removeOverlays(Fort_Collins); map.removeOverlays(Gold_Hill); map.removeOverlays(Jamestown); map.removeOverlays(Lafayette); map.removeOverlays(Longmont); map.removeOverlays(Louisville); map.removeOverlays(Lyons); map.removeOverlays(Nederland); map.removeOverlays(Niwot); map.removeOverlays(Superior); map.addOverlays(Boulder); centerByArray(Boulder, false, false); cntMarker += Boulder.length; map.addOverlays(Erie); centerByArray(Erie, false, false); cntMarker += Erie.length; map.addOverlays(Fort_Collins); centerByArray(Fort_Collins, false, false); cntMarker += Fort_Collins.length; map.addOverlays(Gold_Hill); centerByArray(Gold_Hill, false, false); cntMarker += Gold_Hill.length; map.addOverlays(Jamestown); centerByArray(Jamestown, false, false); cntMarker += Jamestown.length; map.addOverlays(Lafayette); centerByArray(Lafayette, false, false); cntMarker += Lafayette.length; map.addOverlays(Longmont); centerByArray(Longmont, false, false); cntMarker += Longmont.length; map.addOverlays(Louisville); centerByArray(Louisville, false, false); cntMarker += Louisville.length; map.addOverlays(Lyons); centerByArray(Lyons, false, false); cntMarker += Lyons.length; map.addOverlays(Nederland); centerByArray(Nederland, false, false); cntMarker += Nederland.length; map.addOverlays(Niwot); centerByArray(Niwot, false, false); cntMarker += Niwot.length; map.addOverlays(Superior); centerByArray(Superior, false, false); cntMarker += Superior.length; centerByArray(Longmont,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'); } }