function addMarkers() { mySelect = document.getElementById('selection'); Flagstaff = [];Page = [];Fredonia = [];Williams = [];Grand_Canyon = [];Tuba_City = [];Supai = [];Kaibito = [];Parks = [];Tonalea = [];Sedona = [];Winslow = [];mySelect.options[mySelect.options.length] = new Option("Flagstaff schools",'all=Flagstaff'); mySelect.options[mySelect.options.length] = new Option("Fredonia schools",'all=Fredonia'); mySelect.options[mySelect.options.length] = new Option("Grand Canyon schools",'all=Grand_Canyon'); mySelect.options[mySelect.options.length] = new Option("Kaibito schools",'all=Kaibito'); mySelect.options[mySelect.options.length] = new Option("Page schools",'all=Page'); mySelect.options[mySelect.options.length] = new Option("Parks schools",'all=Parks'); mySelect.options[mySelect.options.length] = new Option("Sedona schools",'all=Sedona'); mySelect.options[mySelect.options.length] = new Option("Supai schools",'all=Supai'); mySelect.options[mySelect.options.length] = new Option("Tonalea schools",'all=Tonalea'); mySelect.options[mySelect.options.length] = new Option("Tuba City schools",'all=Tuba_City'); mySelect.options[mySelect.options.length] = new Option("Williams schools",'all=Williams'); mySelect.options[mySelect.options.length] = new Option("Winslow schools",'all=Winslow'); mySelect.options[mySelect.options.length] = new Option("---------------------------",''); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.64658356,35.20005035),"
Bright Angel High School
121 East Birch Avenue, Suite 2
Flagstaff, AZ 86001

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Bright Angel High School",'Flagstaff=' + Flagstaff.length); Page[Page.length] = createMarker(new GPoint(-111.45431300,36.90304300),"
Caviat - Coconino High School
P.o. Box 3940
Page, AZ 86040

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Caviat - Coconino High School",'Page=' + Page.length); Page[Page.length] = createMarker(new GPoint(-111.45431300,36.90304300),"
Caviat - Flagstaff High School
P.o. Box 3940
Page, AZ 86040

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Caviat - Flagstaff High School",'Page=' + Page.length); Page[Page.length] = createMarker(new GPoint(-111.45431300,36.90304300),"
Caviat - Sinagua High School
P.o. Box 3940
Page, AZ 86040

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Caviat - Sinagua High School",'Page=' + Page.length); Fredonia[Fredonia.length] = createMarker(new GPoint(-112.34290314,36.72919846),"
Caviat- Fredonia High School
P.o. Box 247
Fredonia, AZ 86022

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Caviat- Fredonia High School",'Fredonia=' + Fredonia.length); Williams[Williams.length] = createMarker(new GPoint(-112.23130035,35.42770004),"
Caviat- Williams High School
P.o. Box 427
Williams, AZ 86046

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Caviat- Williams High School",'Williams=' + Williams.length); Grand_Canyon[Grand_Canyon.length] = createMarker(new GPoint(-112.11750031,36.03129959),"
Caviat-grand Canyon High School
P.o. Box 519
Grand Canyon, AZ 86023

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Caviat-grand Canyon High School",'Grand_Canyon=' + Grand_Canyon.length); Page[Page.length] = createMarker(new GPoint(-111.41989899,36.88090134),"
Caviat-page High School
P.o. Box 1927
Page, AZ 86040

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Caviat-page High School",'Page=' + Page.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.65028381,35.19787979),"
Charles W Sechrist Elementary School
2230 Fort Valley Rd.
Flagstaff, AZ 86001

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Charles W Sechrist Elementary School",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.62266541,35.21531296),"
Coconino High School
2801 N Izabel Street
Flagstaff, AZ 86004

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Coconino High School",'Flagstaff=' + Flagstaff.length); Page[Page.length] = createMarker(new GPoint(-111.41989899,36.88090134),"
Desert View Elementary School
Po Box 1927
Page, AZ 86040

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Desert View Elementary School",'Page=' + Page.length); Tuba_City[Tuba_City.length] = createMarker(new GPoint(-111.29969788,36.08509827),"
Dzil Libei Elementary School
P. O. Box 67
Tuba City, AZ 86045

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Dzil Libei Elementary School",'Tuba_City=' + Tuba_City.length); Tuba_City[Tuba_City.length] = createMarker(new GPoint(-111.29969788,36.08509827),"
Eagles Nest Intermediate School
Po Box 67
Tuba City, AZ 86045

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Eagles Nest Intermediate School",'Tuba_City=' + Tuba_City.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.64707947,35.19917679),"
Esperanza Academy (grand Canyon Campus)
100 E Birch Ave
Flagstaff, AZ 86001

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Esperanza Academy (grand Canyon Campus)",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.65235901,35.20603561),"
Eva Marshall Elementary School
850 Bonito St.
Flagstaff, AZ 86001

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Eva Marshall Elementary School",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.61657715,35.20430756),"
Excel Education Centers Flagstaff, Llc
2229 E. Spruce Ave.
Flagstaff, AZ 86004

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Excel Education Centers Flagstaff, Llc",'Flagstaff=' + Flagstaff.length); Williams[Williams.length] = createMarker(new GPoint(-112.26081848,35.62110138),"
Excel Education Centers Flagstaff, Llc- Williams C
790 E. Rodeo Rd.
Williams, AZ 86046

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Excel Education Centers Flagstaff, Llc- Williams C",'Williams=' + Williams.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.69245148,35.24956894),"
Flagstaff Arts And Leadership Academy
3100 N. Fort Valley Rd. 41
Flagstaff, AZ 86001

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Flagstaff Arts And Leadership Academy",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.73670197,35.35329819),"
Flagstaff Arts And Leadership Academy (charter)
3100 N. Fort Valley Road, 41
Flagstaff, AZ 86001

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Flagstaff Arts And Leadership Academy (charter)",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.65132000,35.19817700),"
Flagstaff Dormitory
Po Box 609
Flagstaff, AZ 86001

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Flagstaff Dormitory",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.65139771,35.20367813),"
Flagstaff High School
400 W Elm Street
Flagstaff, AZ 86001

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Flagstaff High School",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.64488220,35.21333694),"
Flagstaff Junior Academy
306 W. Cedar Avenue
Flagstaff, AZ 86001

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Flagstaff Junior Academy",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.64488220,35.21333694),"
Flagstaff Junior Academy (charter)
306 W. Cedar Avenue
Flagstaff, AZ 86001

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Flagstaff Junior Academy (charter)",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.65267181,35.20706940),"
Flagstaff Middle School
755 N Bonito Street
Flagstaff, AZ 86001

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Flagstaff Middle School",'Flagstaff=' + Flagstaff.length); Fredonia[Fredonia.length] = createMarker(new GPoint(-112.34290314,36.72919846),"
Fredonia Elementary School
222 North 200 East
Fredonia, AZ 86022

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Fredonia Elementary School",'Fredonia=' + Fredonia.length); Fredonia[Fredonia.length] = createMarker(new GPoint(-112.34290314,36.72919846),"
Fredonia High School
221 E Hortt Street
Fredonia, AZ 86022

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Fredonia High School",'Fredonia=' + Fredonia.length); Tuba_City[Tuba_City.length] = createMarker(new GPoint(-111.29969788,36.08509827),"
Gap Primary School
Po Box 67
Tuba City, AZ 86045

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Gap Primary School",'Tuba_City=' + Tuba_City.length); Grand_Canyon[Grand_Canyon.length] = createMarker(new GPoint(-112.11750031,36.03129959),"
Grand Canyon Elementary School
P.o. Box 519
Grand Canyon, AZ 86023

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Grand Canyon Elementary School",'Grand_Canyon=' + Grand_Canyon.length); Grand_Canyon[Grand_Canyon.length] = createMarker(new GPoint(-112.11750031,36.03129959),"
Grand Canyon High School
P.o. Box 519
Grand Canyon, AZ 86023

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Grand Canyon High School",'Grand_Canyon=' + Grand_Canyon.length); Tuba_City[Tuba_City.length] = createMarker(new GPoint(-111.29969788,36.08509827),"
Greyhills High School
P.o. Box 160, Knight Drive
Tuba City, AZ 86045

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Greyhills High School",'Tuba_City=' + Tuba_City.length); Supai[Supai.length] = createMarker(new GPoint(-112.49330139,36.12210083),"
Havasupai School
P.o. Box 40
Supai, AZ 86435

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Havasupai School",'Supai=' + Supai.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.60053253,35.21853638),"
John Q Thomas Elementary School
3330 E. Lockett Rd.
Flagstaff, AZ 86004

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("John Q Thomas Elementary School",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.64658356,35.20005035),"
Juvenile Detention
110 E. Cherry Ave.
Flagstaff, AZ 86001

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Juvenile Detention",'Flagstaff=' + Flagstaff.length); Kaibito[Kaibito.length] = createMarker(new GPoint(-111.23919678,36.47930145),"
Kaibeto Boarding School
Po Box 1420
Kaibito, AZ 86053

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Kaibeto Boarding School",'Kaibito=' + Kaibito.length); Page[Page.length] = createMarker(new GPoint(-111.41989899,36.88090134),"
Lake Powell Academy
Box 580
Page, AZ 86040

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lake Powell Academy",'Page=' + Page.length); Page[Page.length] = createMarker(new GPoint(-111.41989899,36.88090134),"
Lake Powell Academy (charter)
P.o. Box 580
Page, AZ 86040

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lake Powell Academy (charter)",'Page=' + Page.length); Page[Page.length] = createMarker(new GPoint(-111.41989899,36.88090134),"
Lake View Elementary School
P.o. Box 1927
Page, AZ 86040

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lake View Elementary School",'Page=' + Page.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.60604095,35.19876099),"
Leupp Public School
3285 E Sparrow
Flagstaff, AZ 86004

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Leupp Public School",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.57752991,35.22533798),"
Life House Alternative School
5400 E. Railhead Ave.
Flagstaff, AZ 86004

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Life House Alternative School",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.64846802,35.18144608),"
Lura Kinsey Elementary School
1601 S. Lonetree Rd.
Flagstaff, AZ 86001

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lura Kinsey Elementary School",'Flagstaff=' + Flagstaff.length); Parks[Parks.length] = createMarker(new GPoint(-111.94889832,35.25979996),"
Maine Consolidated School
P.o. Box 50381
Parks, AZ 86018

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Maine Consolidated School",'Parks=' + Parks.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.68096161,35.16865540),"
Manuel Demiguel Elementary School
3500 S Gillenwater Dr
Flagstaff, AZ 86001

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Manuel Demiguel Elementary School",'Flagstaff=' + Flagstaff.length); Tuba_City[Tuba_City.length] = createMarker(new GPoint(-111.23922729,36.13356018),"
Moencopi Day School
South Highway 264, Po Box 185
Tuba City, AZ 86045

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Moencopi Day School",'Tuba_City=' + Tuba_City.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.63146210,35.19998932),"
Montessori Charter School Of Flagstaff - Campus
850 N. Locust
Flagstaff, AZ 86001

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Montessori Charter School Of Flagstaff - Campus",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.61367035,35.21908569),"
Mount Elden Middle School
3223 N 4th Street
Flagstaff, AZ 86004

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Mount Elden Middle School",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.61573029,35.21083832),"
Mountain English Spanish Academy Of Flagstaff (m.e
2300 E. 6th Ave.
Flagstaff, AZ 86004

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Mountain English Spanish Academy Of Flagstaff (m.e",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.66904449,35.16276169),"
Mountain School
311 W Cattle Drive Trail
Flagstaff, AZ 86001

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mountain School",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-116.76240540,47.72239304),"
Mountain School (charter)
510 N. Leroux
Flagstaff, AZ 86001

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mountain School (charter)",'Flagstaff=' + Flagstaff.length); Tonalea[Tonalea.length] = createMarker(new GPoint(-110.87210083,35.99200058),"
Naa Tsis' Ana (navajo Mountain) Community School
P.o. Box 10010
Tonalea, AZ 86044

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Naa Tsis' Ana (navajo Mountain) Community School",'Tonalea=' + Tonalea.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.58417511,35.22379684),"
Neil V Christensen School
4000 North Cummings Street
Flagstaff, AZ 86004

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Neil V Christensen School",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.61797333,35.20092010),"
Northland Preparatory Academy
3300 W. Sparrow Ave.
Flagstaff, AZ 86004

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Northland Preparatory Academy",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.61797333,35.20092010),"
Northland Preparatory Academy (charter)
2290 E. Route 66
Flagstaff, AZ 86004

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Northland Preparatory Academy (charter)",'Flagstaff=' + Flagstaff.length); Page[Page.length] = createMarker(new GPoint(-111.41989899,36.88090134),"
Page High School
P.o, Box 1927
Page, AZ 86040

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Page High School",'Page=' + Page.length); Page[Page.length] = createMarker(new GPoint(-111.41989899,36.88090134),"
Page Middle School
Po Box 1927
Page, AZ 86040

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Page Middle School",'Page=' + Page.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.61682892,35.20790482),"
Peak School
2016 North First Street A B
Flagstaff, AZ 86004

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Peak School",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.66663361,35.19123840),"
Pine Forest School
1120 West Kaibab Lane
Flagstaff, AZ 86001

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Pine Forest School",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.66616058,35.19128036),"
Pine Forest School (charter)
1120 W. Kaibab Lane
Flagstaff, AZ 86001

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Pine Forest School (charter)",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.60432000,35.20887200),"
Ponderosa High School
2384 N. Steves Blvd.
Flagstaff, AZ 86004

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Ponderosa High School",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.65629578,35.20330048),"
Project New Start High School
320 N Aztec
Flagstaff, AZ 86001

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Project New Start High School",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.61367035,35.22053909),"
Renaissance Magnet Middle School
3223 N. 4th Street
Flagstaff, AZ 86004

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Renaissance Magnet Middle School",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.64658356,35.20005035),"
Secure Care High School
110 E. Cherry Ave.
Flagstaff, AZ 86001

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Secure Care High School",'Flagstaff=' + Flagstaff.length); Sedona[Sedona.length] = createMarker(new GPoint(-111.76616669,34.86314392),"
Sedona Integrated Preschool
221 Brewer Road
Sedona, AZ 86336

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Sedona Integrated Preschool",'Sedona=' + Sedona.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.60019684,35.19490814),"
Sinagua High School
3950 E Butler Ave
Flagstaff, AZ 86004

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Sinagua High School",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.65211487,35.19308472),"
South Beaver Elementary School
506 S. Beaver St.
Flagstaff, AZ 86001

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("South Beaver Elementary School",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.43260193,35.20429993),"
Star Charter School
145 Leupp Road
Flagstaff, AZ 86004

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Star Charter School",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.52229309,35.26963806),"
Sturgeon Cromer Elementary School
7150 E Silver Saddle Road
Flagstaff, AZ 86004

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Sturgeon Cromer Elementary School",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.59950256,35.19518280),"
Thomas M Knoles Elementary School
4005 E Butler
Flagstaff, AZ 86004

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Thomas M Knoles Elementary School",'Flagstaff=' + Flagstaff.length); Winslow[Winslow.length] = createMarker(new GPoint(-110.33799744,35.25849915),"
Tolani Lake Elementary School Academy (charter)
Hc-61, Box 300
Winslow, AZ 86047

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Tolani Lake Elementary School Academy (charter)",'Winslow=' + Winslow.length); Tonalea[Tonalea.length] = createMarker(new GPoint(-110.87210083,35.99200058),"
Tonalea Day (red Lake) School
P.o. Box 39
Tonalea, AZ 86044

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Tonalea Day (red Lake) School",'Tonalea=' + Tonalea.length); Page[Page.length] = createMarker(new GPoint(-111.46175800,36.91983700),"
Tse'yaato' High School
21po Box 3477
Page, AZ 86040

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Tse'yaato' High School",'Page=' + Page.length); Tuba_City[Tuba_City.length] = createMarker(new GPoint(-111.29969788,36.08509827),"
Tuba City Alternative School
P.o. Box 67
Tuba City, AZ 86045

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Tuba City Alternative School",'Tuba_City=' + Tuba_City.length); Tuba_City[Tuba_City.length] = createMarker(new GPoint(-111.23979950,36.13359833),"
Tuba City Boarding School
306 Main Street, Po Box 187
Tuba City, AZ 86045

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Tuba City Boarding School",'Tuba_City=' + Tuba_City.length); Tuba_City[Tuba_City.length] = createMarker(new GPoint(-111.29969788,36.08509827),"
Tuba City High School
P.o. Box 67
Tuba City, AZ 86045

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Tuba City High School",'Tuba_City=' + Tuba_City.length); Tuba_City[Tuba_City.length] = createMarker(new GPoint(-111.29969788,36.08509827),"
Tuba City Junior High School
P. O. Box 67
Tuba City, AZ 86045

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Tuba City Junior High School",'Tuba_City=' + Tuba_City.length); Tuba_City[Tuba_City.length] = createMarker(new GPoint(-111.29969788,36.08509827),"
Tuba City Primary School
Box 67
Tuba City, AZ 86045

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Tuba City Primary School",'Tuba_City=' + Tuba_City.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.61585400,35.21070700),"
W F Killip Elementary School
2300 E 6th Ave
Flagstaff, AZ 86004

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("W F Killip Elementary School",'Flagstaff=' + Flagstaff.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.50441000,35.25312900),"
Weitzel's Puente De Hozho Bilingual Magnet School
03401 N. Fourth Street
Flagstaff, AZ 86004

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Weitzel's Puente De Hozho Bilingual Magnet School",'Flagstaff=' + Flagstaff.length); Williams[Williams.length] = createMarker(new GPoint(-112.23130035,35.42770004),"
Williams Elementary Middle School
601 N. 7th St
Williams, AZ 86046

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Williams Elementary Middle School",'Williams=' + Williams.length); Williams[Williams.length] = createMarker(new GPoint(-112.23130035,35.42770004),"
Williams High School
440 S 7th Street
Williams, AZ 86046

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Williams High School",'Williams=' + Williams.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(Flagstaff); map.removeOverlays(Fredonia); map.removeOverlays(Grand_Canyon); map.removeOverlays(Kaibito); map.removeOverlays(Page); map.removeOverlays(Parks); map.removeOverlays(Sedona); map.removeOverlays(Supai); map.removeOverlays(Tonalea); map.removeOverlays(Tuba_City); map.removeOverlays(Williams); map.removeOverlays(Winslow); 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(Flagstaff);map.removeOverlays(Flagstaff); map.removeOverlays(Fredonia); map.removeOverlays(Grand_Canyon); map.removeOverlays(Kaibito); map.removeOverlays(Page); map.removeOverlays(Parks); map.removeOverlays(Sedona); map.removeOverlays(Supai); map.removeOverlays(Tonalea); map.removeOverlays(Tuba_City); map.removeOverlays(Williams); map.removeOverlays(Winslow); map.addOverlays(Flagstaff); centerByArray(Flagstaff, false, false); cntMarker += Flagstaff.length; map.addOverlays(Fredonia); centerByArray(Fredonia, false, false); cntMarker += Fredonia.length; map.addOverlays(Grand_Canyon); centerByArray(Grand_Canyon, false, false); cntMarker += Grand_Canyon.length; map.addOverlays(Kaibito); centerByArray(Kaibito, false, false); cntMarker += Kaibito.length; map.addOverlays(Page); centerByArray(Page, false, false); cntMarker += Page.length; map.addOverlays(Parks); centerByArray(Parks, false, false); cntMarker += Parks.length; map.addOverlays(Sedona); centerByArray(Sedona, false, false); cntMarker += Sedona.length; map.addOverlays(Supai); centerByArray(Supai, false, false); cntMarker += Supai.length; map.addOverlays(Tonalea); centerByArray(Tonalea, false, false); cntMarker += Tonalea.length; map.addOverlays(Tuba_City); centerByArray(Tuba_City, false, false); cntMarker += Tuba_City.length; map.addOverlays(Williams); centerByArray(Williams, false, false); cntMarker += Williams.length; map.addOverlays(Winslow); centerByArray(Winslow, false, false); cntMarker += Winslow.length; centerByArray(Flagstaff,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'); } }