function addMarkers() { mySelect = document.getElementById('selection'); Greeley = [];Evans = [];Eaton = [];Briggsdale = [];Frederick = [];Keenesburg = [];Erie = [];Fort_Lupton = [];Firestone = [];Galeton = [];Gilcrest = [];Windsor = [];Pierce = [];Ault = [];Hudson = [];Milliken = [];Johnstown = [];Lochbuie = [];Mead = [];La_Salle = [];Grover = [];Kersey = [];Platteville = [];New_Raymer = [];Roggen = [];mySelect.options[mySelect.options.length] = new Option("Ault schools",'all=Ault'); mySelect.options[mySelect.options.length] = new Option("Briggsdale schools",'all=Briggsdale'); mySelect.options[mySelect.options.length] = new Option("Eaton schools",'all=Eaton'); mySelect.options[mySelect.options.length] = new Option("Erie schools",'all=Erie'); mySelect.options[mySelect.options.length] = new Option("Evans schools",'all=Evans'); mySelect.options[mySelect.options.length] = new Option("Firestone schools",'all=Firestone'); mySelect.options[mySelect.options.length] = new Option("Fort Lupton schools",'all=Fort_Lupton'); mySelect.options[mySelect.options.length] = new Option("Frederick schools",'all=Frederick'); mySelect.options[mySelect.options.length] = new Option("Galeton schools",'all=Galeton'); mySelect.options[mySelect.options.length] = new Option("Gilcrest schools",'all=Gilcrest'); mySelect.options[mySelect.options.length] = new Option("Greeley schools",'all=Greeley'); mySelect.options[mySelect.options.length] = new Option("Grover schools",'all=Grover'); mySelect.options[mySelect.options.length] = new Option("Hudson schools",'all=Hudson'); mySelect.options[mySelect.options.length] = new Option("Johnstown schools",'all=Johnstown'); mySelect.options[mySelect.options.length] = new Option("Keenesburg schools",'all=Keenesburg'); mySelect.options[mySelect.options.length] = new Option("Kersey schools",'all=Kersey'); mySelect.options[mySelect.options.length] = new Option("La Salle schools",'all=La_Salle'); mySelect.options[mySelect.options.length] = new Option("Lochbuie schools",'all=Lochbuie'); mySelect.options[mySelect.options.length] = new Option("Mead schools",'all=Mead'); mySelect.options[mySelect.options.length] = new Option("Milliken schools",'all=Milliken'); mySelect.options[mySelect.options.length] = new Option("New Raymer schools",'all=New_Raymer'); mySelect.options[mySelect.options.length] = new Option("Pierce schools",'all=Pierce'); mySelect.options[mySelect.options.length] = new Option("Platteville schools",'all=Platteville'); mySelect.options[mySelect.options.length] = new Option("Roggen schools",'all=Roggen'); mySelect.options[mySelect.options.length] = new Option("Windsor schools",'all=Windsor'); mySelect.options[mySelect.options.length] = new Option("---------------------------",''); Greeley[Greeley.length] = createMarker(new GPoint(-104.72541809,40.42858124),"
Adelante Alternative Middle School
2407 5th Avenue
Greeley, CO 80634

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Adelante Alternative Middle School",'Greeley=' + Greeley.length); Evans[Evans.length] = createMarker(new GPoint(-104.73007965,40.37126160),"
Ann K Heiman Elementary School
3500 Palermo
Evans, CO 80620

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Ann K Heiman Elementary School",'Evans=' + Evans.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.78082275,40.38198090),"
Bella Romero Elememtary School
1400 East 20th Street
Greeley, CO 80631

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Bella Romero Elememtary School",'Greeley=' + Greeley.length); Eaton[Eaton.length] = createMarker(new GPoint(-104.71755981,40.52470016),"
Benjamin Eaton Elementary School
100 South Mountain View Drive
Eaton, CO 80615

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Benjamin Eaton Elementary School",'Eaton=' + Eaton.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.70151520,40.43634796),"
Billie Martinez Elementary School
341 14th Avenue
Greeley, CO 80631

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Billie Martinez Elementary School",'Greeley=' + Greeley.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.72071838,40.39617920),"
Brentwood Middle School
2600 24th Avenue Court
Greeley, CO 80634

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Brentwood Middle School",'Greeley=' + Greeley.length); Briggsdale[Briggsdale.length] = createMarker(new GPoint(-104.26689911,40.60459900),"
Briggsdale Elementary School
P O Box 125
Briggsdale, CO 80611

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Briggsdale Elementary School",'Briggsdale=' + Briggsdale.length); Briggsdale[Briggsdale.length] = createMarker(new GPoint(-104.26689911,40.60459900),"
Briggsdale Undivided High School
P O Box 125
Briggsdale, CO 80611

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Briggsdale Undivided High School",'Briggsdale=' + Briggsdale.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.69993591,40.41672516),"
Cameron Elementary School
1424 13th Avenue
Greeley, CO 80631

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Cameron Elementary School",'Greeley=' + Greeley.length); Frederick[Frederick.length] = createMarker(new GPoint(-104.97797600,40.11317100),"
Carbon Valley Charter School
4040 Coriolis Way
Frederick, CO 80530

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Carbon Valley Charter School",'Frederick=' + Frederick.length); Keenesburg[Keenesburg.length] = createMarker(new GPoint(-104.50080109,40.09140015),"
Cardinal Community Academy Charter School
3101 County Road 65
Keenesburg, CO 80643

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Cardinal Community Academy Charter School",'Keenesburg=' + Keenesburg.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.76210785,40.43046570),"
Carson Treatment Center
2350 3rd Street Road
Greeley, CO 80634

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Carson Treatment Center",'Greeley=' + Greeley.length); Evans[Evans.length] = createMarker(new GPoint(-104.70042419,40.37738037),"
Centennial Elementary School
1400 37th Street
Evans, CO 80620

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Centennial Elementary School",'Evans=' + Evans.length); Evans[Evans.length] = createMarker(new GPoint(-104.70948029,40.38111115),"
Chappelow Arts & Literacy Magnet School
2001 34th Street
Evans, CO 80620

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Chappelow Arts & Literacy Magnet School",'Evans=' + Evans.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.76631165,40.42741394),"
Christa Mc Auliffe Elementary School
600 51st Avenue
Greeley, CO 80634

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Christa Mc Auliffe Elementary School",'Greeley=' + Greeley.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.72316742,40.42076111),"
Colorado High School Of Greeley
2651 11th Street Road
Greeley, CO 80634

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Colorado High School Of Greeley",'Greeley=' + Greeley.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.70909882,40.42317963),"
Deaf Or Hard Of Hearing Prog
Laboratory School Unc
Greeley, CO 80639

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Deaf Or Hard Of Hearing Prog",'Greeley=' + Greeley.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.78545380,40.41023636),"
Deaf Or Hard Of Hearing Program
6525 W 18 Street
Greeley, CO 80634

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Deaf Or Hard Of Hearing Program",'Greeley=' + Greeley.length); Evans[Evans.length] = createMarker(new GPoint(-104.71364594,40.38113403),"
Dos Rios Elementary School
2201 34th Street
Evans, CO 80620

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Dos Rios Elementary School",'Evans=' + Evans.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.66982269,40.40645218),"
East Memorial Elementary School
614 East 20th Street
Greeley, CO 80631

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("East Memorial Elementary School",'Greeley=' + Greeley.length); Eaton[Eaton.length] = createMarker(new GPoint(-104.71578217,40.52582169),"
Eaton Elementary School
25 Cheyenne
Eaton, CO 80615

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Eaton Elementary School",'Eaton=' + Eaton.length); Eaton[Eaton.length] = createMarker(new GPoint(-104.71720123,40.52629471),"
Eaton High School
114 Park
Eaton, CO 80615

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Eaton High School",'Eaton=' + Eaton.length); Eaton[Eaton.length] = createMarker(new GPoint(-104.72384644,40.52774429),"
Eaton Middle School
225 Juniper
Eaton, CO 80615

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Eaton Middle School",'Eaton=' + Eaton.length); Erie[Erie.length] = createMarker(new GPoint(-105.13100200,39.98133500),"
Erie High School
3180 County Road 5
Erie, CO 80516

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Erie High School",'Erie=' + Erie.length); Erie[Erie.length] = createMarker(new GPoint(-105.03829956,40.04100037),"
Erie Middle/senior High School
650 Main Street
Erie, CO 80516

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Erie Middle/senior High School",'Erie=' + Erie.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.70909882,40.42317963),"
External Charter School (u N C
Univ Of Northern Colorado
Greeley, CO 80639

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("External Charter School (u N C",'Greeley=' + Greeley.length); Fort_Lupton[Fort_Lupton.length] = createMarker(new GPoint(-104.81291400,40.07961000),"
Fort Lupton High School
530 Reynolds Street
Fort Lupton, CO 80621

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Fort Lupton High School",'Fort_Lupton=' + Fort_Lupton.length); Fort_Lupton[Fort_Lupton.length] = createMarker(new GPoint(-104.81275940,40.07895279),"
Fort Lupton Middle School
201 South Mckinley
Fort Lupton, CO 80621

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Fort Lupton Middle School",'Fort_Lupton=' + Fort_Lupton.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.73518372,40.42477417),"
Franklin Middle School
818 35th Avenue
Greeley, CO 80634

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Franklin Middle School",'Greeley=' + Greeley.length); Frederick[Frederick.length] = createMarker(new GPoint(-104.93422699,40.09615707),"
Frederick Elementary School
555 8th Street
Frederick, CO 80530

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Frederick Elementary School",'Frederick=' + Frederick.length); Firestone[Firestone.length] = createMarker(new GPoint(-104.93209839,40.09939957),"
Frederick Middle School
6201 Booth Drive
Firestone, CO 80504

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Frederick Middle School",'Firestone=' + Firestone.length); Frederick[Frederick.length] = createMarker(new GPoint(-104.93343353,40.09862900),"
Frederick Senior High School
600 5th St
Frederick, CO 80530

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Frederick Senior High School",'Frederick=' + Frederick.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.72970581,40.38746643),"
Frontier Charter Academy
2560 West 29th Street
Greeley, CO 80634

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Frontier Charter Academy",'Greeley=' + Greeley.length); Galeton[Galeton.length] = createMarker(new GPoint(-104.46410370,40.57239914),"
Galeton Elementary School
P O Box 759
Galeton, CO 80622

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Galeton Elementary School",'Galeton=' + Galeton.length); Gilcrest[Gilcrest.length] = createMarker(new GPoint(-104.77809906,40.28359985),"
Gilcrest Elementary School
P O Box 158
Gilcrest, CO 80623

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Gilcrest Elementary School",'Gilcrest=' + Gilcrest.length); Windsor[Windsor.length] = createMarker(new GPoint(-105.05560303,40.54489899),"
Grandview Elementary School
1583 Grand Avenue
Windsor, CO 80550

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Grandview Elementary School",'Windsor=' + Windsor.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.70174408,40.41543198),"
Greeley Central High School
1515 14th Avenue
Greeley, CO 80631

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Greeley Central High School",'Greeley=' + Greeley.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.73498535,40.39923096),"
Greeley West High School
2401 35th Avenue
Greeley, CO 80634

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Greeley West High School",'Greeley=' + Greeley.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.78082275,40.38198090),"
Harold S Winograd Elementary School
320 North 71st Avenue
Greeley, CO 80634

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Harold S Winograd Elementary School",'Greeley=' + Greeley.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.71466064,40.41383362),"
Heath Middle School
2223 16th Street
Greeley, CO 80631

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Heath Middle School",'Greeley=' + Greeley.length); Pierce[Pierce.length] = createMarker(new GPoint(-104.75250244,40.63970184),"
Highland Elementary School
P O Box 39
Pierce, CO 80650

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Highland Elementary School",'Pierce=' + Pierce.length); Ault[Ault.length] = createMarker(new GPoint(-104.70269775,40.60639954),"
Highland High School
P O Box 68
Ault, CO 80610

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Highland High School",'Ault=' + Ault.length); Ault[Ault.length] = createMarker(new GPoint(-104.70269775,40.60639954),"
Highland Middle School
P O Box 68
Ault, CO 80610

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Highland Middle School",'Ault=' + Ault.length); Keenesburg[Keenesburg.length] = createMarker(new GPoint(-104.50080109,40.09140015),"
Hoff Elementary School
P O Box 269
Keenesburg, CO 80643

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Hoff Elementary School",'Keenesburg=' + Keenesburg.length); Hudson[Hudson.length] = createMarker(new GPoint(-104.62760162,40.05339813),"
Hudson Elementary School
P O Box 278
Hudson, CO 80642

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Hudson Elementary School",'Hudson=' + Hudson.length); Hudson[Hudson.length] = createMarker(new GPoint(-104.64041901,40.07609940),"
Hudson Headstart Elementary School
3003 Beech Street
Hudson, CO 80642

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Hudson Headstart Elementary School",'Hudson=' + Hudson.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.71171570,40.39600372),"
Jackson Elementary School
2002 25th Street
Greeley, CO 80631

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Jackson Elementary School",'Greeley=' + Greeley.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.68370056,40.41814804),"
Jefferson Elementary School
1315 4th Avenue
Greeley, CO 80631

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Jefferson Elementary School",'Greeley=' + Greeley.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.70280457,40.39116669),"
John Evans Middle School
2900 15th Avenue
Greeley, CO 80631

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("John Evans Middle School",'Greeley=' + Greeley.length); Milliken[Milliken.length] = createMarker(new GPoint(-104.83412170,40.32969284),"
Knowledge Quest Academy
110 South Centennial Drive Sui
Milliken, CO 80543

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Knowledge Quest Academy",'Milliken=' + Milliken.length); Frederick[Frederick.length] = createMarker(new GPoint(-104.96594600,40.11325000),"
Legacy Elementary School
7701 Eagle Boulevard
Frederick, CO 80504

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Legacy Elementary School",'Frederick=' + Frederick.length); Fort_Lupton[Fort_Lupton.length] = createMarker(new GPoint(-104.81275940,40.07667160),"
Leo William Butler Elementary School
411 South Mckinley
Fort Lupton, CO 80621

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Leo William Butler Elementary School",'Fort_Lupton=' + Fort_Lupton.length); Johnstown[Johnstown.length] = createMarker(new GPoint(-104.91860199,40.34078217),"
Letford Elementary School
2 North Jay Avenue
Johnstown, CO 80534

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Letford Elementary School",'Johnstown=' + Johnstown.length); Lochbuie[Lochbuie.length] = createMarker(new GPoint(-104.72171783,40.00403976),"
Lochbuie Elementary School
201 Bonanza Boulevard
Lochbuie, CO 80603

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lochbuie Elementary School",'Lochbuie=' + Lochbuie.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.71832275,40.42778015),"
Madison Elementary School
500 24th Avenue
Greeley, CO 80634

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Madison Elementary School",'Greeley=' + Greeley.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.71134949,40.41989899),"
Maplewood Middle School
1201 21st Avenue
Greeley, CO 80631

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Maplewood Middle School",'Greeley=' + Greeley.length); Mead[Mead.length] = createMarker(new GPoint(-104.99160004,40.23799896),"
Mead Elementary School
520 Welker Ave.
Mead, CO 80542

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mead Elementary School",'Mead=' + Mead.length); Mead[Mead.length] = createMarker(new GPoint(-104.99160004,40.23799896),"
Mead Middle School
620 Welker Ave.
Mead, CO 80542

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Mead Middle School",'Mead=' + Mead.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.72735596,40.40247726),"
Meeker Elementary School
2221 28th Avenue
Greeley, CO 80634

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Meeker Elementary School",'Greeley=' + Greeley.length); Milliken[Milliken.length] = createMarker(new GPoint(-104.85569763,40.32939911),"
Milliken Elementary School
100 Broad Street
Milliken, CO 80543

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Milliken Elementary School",'Milliken=' + Milliken.length); Milliken[Milliken.length] = createMarker(new GPoint(-104.85569763,40.32939911),"
Milliken Middle School
P O Box 339
Milliken, CO 80543

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Milliken Middle School",'Milliken=' + Milliken.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.75627136,40.40499878),"
Monfort Elementary School
2101 47th Avenue
Greeley, CO 80634

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Monfort Elementary School",'Greeley=' + Greeley.length); Windsor[Windsor.length] = createMarker(new GPoint(-104.90097809,40.47037506),"
Mountain View Elementary School
810 Third Street
Windsor, CO 80550

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mountain View Elementary School",'Windsor=' + Windsor.length); La_Salle[La_Salle.length] = createMarker(new GPoint(-104.69339752,40.32389832),"
North Valley Middle School
P O Box 248
La Salle, CO 80645

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("North Valley Middle School",'La_Salle=' + La_Salle.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.79241180,40.43633652),"
Northridge High School
100 71st Avenue
Greeley, CO 80634

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Northridge High School",'Greeley=' + Greeley.length); Grover[Grover.length] = createMarker(new GPoint(-104.20749664,40.88539886),"
Pawnee Elementary School
P O Box 220
Grover, CO 80729

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Pawnee Elementary School",'Grover=' + Grover.length); Grover[Grover.length] = createMarker(new GPoint(-104.20749664,40.88539886),"
Pawnee Junior-senior High School
P O Box 220
Grover, CO 80729

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Pawnee Junior-senior High School",'Grover=' + Grover.length); La_Salle[La_Salle.length] = createMarker(new GPoint(-104.69339752,40.32389832),"
Pete Mirich Elementary School
P O Box 268
La Salle, CO 80645

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Pete Mirich Elementary School",'La_Salle=' + La_Salle.length); Johnstown[Johnstown.length] = createMarker(new GPoint(-104.90768700,40.30210100),"
Pioneer Ridge Elementary School
2300 Cinnamon Teal
Johnstown, CO 80534

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Pioneer Ridge Elementary School",'Johnstown=' + Johnstown.length); Kersey[Kersey.length] = createMarker(new GPoint(-104.53610229,40.36640167),"
Platte Valley Elementary School
P O Box 486
Kersey, CO 80644

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Platte Valley Elementary School",'Kersey=' + Kersey.length); Kersey[Kersey.length] = createMarker(new GPoint(-104.53610229,40.36640167),"
Platte Valley High School
P O Box 487
Kersey, CO 80644

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Platte Valley High School",'Kersey=' + Kersey.length); Kersey[Kersey.length] = createMarker(new GPoint(-104.53610229,40.36640167),"
Platte Valley Middle School
P O Box 515
Kersey, CO 80644

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Platte Valley Middle School",'Kersey=' + Kersey.length); Platteville[Platteville.length] = createMarker(new GPoint(-104.81169891,40.23199844),"
Platteville Elementary School
P O Box 427
Platteville, CO 80651

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Platteville Elementary School",'Platteville=' + Platteville.length); New_Raymer[New_Raymer.length] = createMarker(new GPoint(-103.83550262,40.67699814),"
Prairie Elementary School
P O Box 68
New Raymer, CO 80742

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Prairie Elementary School",'New_Raymer=' + New_Raymer.length); New_Raymer[New_Raymer.length] = createMarker(new GPoint(-103.83550262,40.67699814),"
Prairie Junior-senior High School
P O Box 68
New Raymer, CO 80742

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Prairie Junior-senior High School",'New_Raymer=' + New_Raymer.length); Firestone[Firestone.length] = createMarker(new GPoint(-105.19860077,40.17414474),"
Prairie Ridge Elementary School
6632 St Vrain Ranch Boulevard
Firestone, CO 80504

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Prairie Ridge Elementary School",'Firestone=' + Firestone.length); Johnstown[Johnstown.length] = createMarker(new GPoint(-104.91282654,40.33826447),"
Roosevelt High School
616 North 2nd Street
Johnstown, CO 80534

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Roosevelt High School",'Johnstown=' + Johnstown.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.72887421,40.41835022),"
Scott Elementary School
3000 13th Street
Greeley, CO 80634

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Scott Elementary School",'Greeley=' + Greeley.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.73622131,40.42626953),"
Shawsheen Elementary School
4020 West 7th Street
Greeley, CO 80634

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Shawsheen Elementary School",'Greeley=' + Greeley.length); Windsor[Windsor.length] = createMarker(new GPoint(-104.91470337,40.47063828),"
Skyview Elementary School
1000 Stone Mountain Drive
Windsor, CO 80550

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Skyview Elementary School",'Windsor=' + Windsor.length); Roggen[Roggen.length] = createMarker(new GPoint(-104.37143707,40.16827774),"
Small Wonders Preschool
6007 Wcr 73
Roggen, CO 80652

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Small Wonders Preschool",'Roggen=' + Roggen.length); Platteville[Platteville.length] = createMarker(new GPoint(-104.82335663,40.21022415),"
South Valley Middle School
1004 Main Street
Platteville, CO 80651

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("South Valley Middle School",'Platteville=' + Platteville.length); Windsor[Windsor.length] = createMarker(new GPoint(-104.90438080,40.47456360),"
Tozer Elementary School
501 Oak Street
Windsor, CO 80550

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Tozer Elementary School",'Windsor=' + Windsor.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.71308136,40.41759491),"
Trademark Learning Center
1401 22nd Avenue
Greeley, CO 80631

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Trademark Learning Center",'Greeley=' + Greeley.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.71308136,40.41759491),"
Trademark Night School
1401 22nd Avenue
Greeley, CO 80631

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Trademark Night School",'Greeley=' + Greeley.length); Fort_Lupton[Fort_Lupton.length] = createMarker(new GPoint(-104.79904938,40.08721542),"
Twombly Elementary School
1600 Ninth Street
Fort Lupton, CO 80621

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Twombly Elementary School",'Fort_Lupton=' + Fort_Lupton.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.76839447,40.40690231),"
Union Colony Prepatory School
2000 Clubhouse Drive
Greeley, CO 80634

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Union Colony Prepatory School",'Greeley=' + Greeley.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.76284900,40.40935000),"
University Schools
6525 18th Street
Greeley, CO 80634

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("University Schools",'Greeley=' + Greeley.length); Gilcrest[Gilcrest.length] = createMarker(new GPoint(-104.77732900,40.28266400),"
Valley High School
P O Box 156
Gilcrest, CO 80623

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Valley High School",'Gilcrest=' + Gilcrest.length); Keenesburg[Keenesburg.length] = createMarker(new GPoint(-104.51988983,40.10823059),"
Weld Central Junior High School
4977 Weld County Road 59
Keenesburg, CO 80643

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Weld Central Junior High School",'Keenesburg=' + Keenesburg.length); Keenesburg[Keenesburg.length] = createMarker(new GPoint(-104.51988983,40.10823059),"
Weld Central Senior High School
4977 Weld County Road 59
Keenesburg, CO 80643

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Weld Central Senior High School",'Keenesburg=' + Keenesburg.length); Greeley[Greeley.length] = createMarker(new GPoint(-104.67797852,40.39673996),"
Weld Opportunity High School
2505 1st Avenue
Greeley, CO 80631

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Weld Opportunity High School",'Greeley=' + Greeley.length); Windsor[Windsor.length] = createMarker(new GPoint(-104.88116455,40.47154236),"
Windsor Charter Academy
680 Academy Court
Windsor, CO 80550

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Windsor Charter Academy",'Windsor=' + Windsor.length); Windsor[Windsor.length] = createMarker(new GPoint(-104.90142400,40.47852500),"
Windsor High School
1100 West Main Street
Windsor, CO 80550

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Windsor High School",'Windsor=' + Windsor.length); Windsor[Windsor.length] = createMarker(new GPoint(-104.91130066,40.48002243),"
Windsor Middle School
900 Main Street
Windsor, CO 80550

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Windsor Middle School",'Windsor=' + Windsor.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(Ault); map.removeOverlays(Briggsdale); map.removeOverlays(Eaton); map.removeOverlays(Erie); map.removeOverlays(Evans); map.removeOverlays(Firestone); map.removeOverlays(Fort_Lupton); map.removeOverlays(Frederick); map.removeOverlays(Galeton); map.removeOverlays(Gilcrest); map.removeOverlays(Greeley); map.removeOverlays(Grover); map.removeOverlays(Hudson); map.removeOverlays(Johnstown); map.removeOverlays(Keenesburg); map.removeOverlays(Kersey); map.removeOverlays(La_Salle); map.removeOverlays(Lochbuie); map.removeOverlays(Mead); map.removeOverlays(Milliken); map.removeOverlays(New_Raymer); map.removeOverlays(Pierce); map.removeOverlays(Platteville); map.removeOverlays(Roggen); map.removeOverlays(Windsor); 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(Greeley);map.removeOverlays(Ault); map.removeOverlays(Briggsdale); map.removeOverlays(Eaton); map.removeOverlays(Erie); map.removeOverlays(Evans); map.removeOverlays(Firestone); map.removeOverlays(Fort_Lupton); map.removeOverlays(Frederick); map.removeOverlays(Galeton); map.removeOverlays(Gilcrest); map.removeOverlays(Greeley); map.removeOverlays(Grover); map.removeOverlays(Hudson); map.removeOverlays(Johnstown); map.removeOverlays(Keenesburg); map.removeOverlays(Kersey); map.removeOverlays(La_Salle); map.removeOverlays(Lochbuie); map.removeOverlays(Mead); map.removeOverlays(Milliken); map.removeOverlays(New_Raymer); map.removeOverlays(Pierce); map.removeOverlays(Platteville); map.removeOverlays(Roggen); map.removeOverlays(Windsor); map.addOverlays(Ault); centerByArray(Ault, false, false); cntMarker += Ault.length; map.addOverlays(Briggsdale); centerByArray(Briggsdale, false, false); cntMarker += Briggsdale.length; map.addOverlays(Eaton); centerByArray(Eaton, false, false); cntMarker += Eaton.length; map.addOverlays(Erie); centerByArray(Erie, false, false); cntMarker += Erie.length; map.addOverlays(Evans); centerByArray(Evans, false, false); cntMarker += Evans.length; map.addOverlays(Firestone); centerByArray(Firestone, false, false); cntMarker += Firestone.length; map.addOverlays(Fort_Lupton); centerByArray(Fort_Lupton, false, false); cntMarker += Fort_Lupton.length; map.addOverlays(Frederick); centerByArray(Frederick, false, false); cntMarker += Frederick.length; map.addOverlays(Galeton); centerByArray(Galeton, false, false); cntMarker += Galeton.length; map.addOverlays(Gilcrest); centerByArray(Gilcrest, false, false); cntMarker += Gilcrest.length; map.addOverlays(Greeley); centerByArray(Greeley, false, false); cntMarker += Greeley.length; map.addOverlays(Grover); centerByArray(Grover, false, false); cntMarker += Grover.length; map.addOverlays(Hudson); centerByArray(Hudson, false, false); cntMarker += Hudson.length; map.addOverlays(Johnstown); centerByArray(Johnstown, false, false); cntMarker += Johnstown.length; map.addOverlays(Keenesburg); centerByArray(Keenesburg, false, false); cntMarker += Keenesburg.length; map.addOverlays(Kersey); centerByArray(Kersey, false, false); cntMarker += Kersey.length; map.addOverlays(La_Salle); centerByArray(La_Salle, false, false); cntMarker += La_Salle.length; map.addOverlays(Lochbuie); centerByArray(Lochbuie, false, false); cntMarker += Lochbuie.length; map.addOverlays(Mead); centerByArray(Mead, false, false); cntMarker += Mead.length; map.addOverlays(Milliken); centerByArray(Milliken, false, false); cntMarker += Milliken.length; map.addOverlays(New_Raymer); centerByArray(New_Raymer, false, false); cntMarker += New_Raymer.length; map.addOverlays(Pierce); centerByArray(Pierce, false, false); cntMarker += Pierce.length; map.addOverlays(Platteville); centerByArray(Platteville, false, false); cntMarker += Platteville.length; map.addOverlays(Roggen); centerByArray(Roggen, false, false); cntMarker += Roggen.length; map.addOverlays(Windsor); centerByArray(Windsor, false, false); cntMarker += Windsor.length; centerByArray(Greeley,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'); } }