function addMarkers()
{
mySelect = document.getElementById('selection');
Spokane = [];Veradale = [];Deer_Park = [];Greenacres = [];Cheney = [];Chattaroy = [];Spokane_Valley = [];Colbert = [];Newman_Lake = [];Rockford = [];Medical_Lake = [];Nine_Mile_Falls = [];Spangle = [];Liberty_Lake = [];Mead = [];Fairchild_Afb = [];Otis_Orchards = [];Airway_Heights = [];mySelect.options[mySelect.options.length] = new Option("Airway Heights schools",'all=Airway_Heights');
mySelect.options[mySelect.options.length] = new Option("Chattaroy schools",'all=Chattaroy');
mySelect.options[mySelect.options.length] = new Option("Cheney schools",'all=Cheney');
mySelect.options[mySelect.options.length] = new Option("Colbert schools",'all=Colbert');
mySelect.options[mySelect.options.length] = new Option("Deer Park schools",'all=Deer_Park');
mySelect.options[mySelect.options.length] = new Option("Fairchild Afb schools",'all=Fairchild_Afb');
mySelect.options[mySelect.options.length] = new Option("Greenacres schools",'all=Greenacres');
mySelect.options[mySelect.options.length] = new Option("Liberty Lake schools",'all=Liberty_Lake');
mySelect.options[mySelect.options.length] = new Option("Mead schools",'all=Mead');
mySelect.options[mySelect.options.length] = new Option("Medical Lake schools",'all=Medical_Lake');
mySelect.options[mySelect.options.length] = new Option("Newman Lake schools",'all=Newman_Lake');
mySelect.options[mySelect.options.length] = new Option("Nine Mile Falls schools",'all=Nine_Mile_Falls');
mySelect.options[mySelect.options.length] = new Option("Otis Orchards schools",'all=Otis_Orchards');
mySelect.options[mySelect.options.length] = new Option("Rockford schools",'all=Rockford');
mySelect.options[mySelect.options.length] = new Option("Spangle schools",'all=Spangle');
mySelect.options[mySelect.options.length] = new Option("Spokane schools",'all=Spokane');
mySelect.options[mySelect.options.length] = new Option("Spokane Valley schools",'all=Spokane_Valley');
mySelect.options[mySelect.options.length] = new Option("Veradale schools",'all=Veradale');
mySelect.options[mySelect.options.length] = new Option("---------------------------",'');
Spokane[Spokane.length] = createMarker(new GPoint(-117.40927124,47.65656281),"
",iconGr);
mySelect.options[mySelect.options.length] = new Option("A-3 Multiagency Adolescent Prog High School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.35739899,47.60919952),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Adams Elementary School",'Spokane=' + Spokane.length);
Veradale[Veradale.length] = createMarker(new GPoint(-117.20722198,47.64983749),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Adams Elementary School",'Veradale=' + Veradale.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.40560150,47.62960052),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alt Morning Star Boys Ranch",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.42725372,47.67206192),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alternative Bancroft School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.37370300,47.69365311),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Alternative Northeast Community Center Preschool",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.41997528,47.65446472),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alternative School Crosswalk",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.42491913,47.66004944),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alternative Tamarack School",'Spokane=' + Spokane.length);
Deer_Park[Deer_Park.length] = createMarker(new GPoint(-117.45855713,47.95058441),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Arcadia Elementary School",'Deer_Park=' + Deer_Park.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.37190247,47.71554947),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Arlington Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.44194794,47.67963791),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Audubon Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.45540619,47.71802139),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Balboa Elementary School",'Spokane=' + Spokane.length);
Greenacres[Greenacres.length] = createMarker(new GPoint(-117.15359497,47.67062759),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Barker Center",'Greenacres=' + Greenacres.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.37541962,47.68850708),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bemiss Elementary School",'Spokane=' + Spokane.length);
Cheney[Cheney.length] = createMarker(new GPoint(-117.57779694,47.49564362),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Betz Elementary School",'Cheney=' + Cheney.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.25319672,47.63770676),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Bowdish Middle School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.41685486,47.76255798),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Brentwood Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.44947052,47.68544769),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Bridge Spec School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.25701904,47.66416168),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Broadway Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.46496582,47.70520401),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Browne Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.43681335,47.66551971),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Bryant Center",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.25049591,47.65626907),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Cbe Alternative Programs High School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.29920197,47.66516113),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Centennial Middle School",'Spokane=' + Spokane.length);
Veradale[Veradale.length] = createMarker(new GPoint(-117.19639587,47.64937592),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Central Valley High School",'Veradale=' + Veradale.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.34026337,47.62107086),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Chase Middle School",'Spokane=' + Spokane.length);
Chattaroy[Chattaroy.length] = createMarker(new GPoint(-117.35790253,47.89155197),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Chattaroy Elementary School",'Chattaroy=' + Chattaroy.length);
Cheney[Cheney.length] = createMarker(new GPoint(-117.57760620,47.48927307),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Cheney Alternative High School",'Cheney=' + Cheney.length);
Cheney[Cheney.length] = createMarker(new GPoint(-117.57569885,47.49760437),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Cheney High School",'Cheney=' + Cheney.length);
Cheney[Cheney.length] = createMarker(new GPoint(-117.57575226,47.50672150),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Cheney Middle School",'Cheney=' + Cheney.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.23989868,47.63198090),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Chester Elementary School",'Spokane=' + Spokane.length);
Spokane_Valley[Spokane_Valley.length] = createMarker(new GPoint(-117.21569824,47.66839981),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Children First Elementary School",'Spokane_Valley=' + Spokane_Valley.length);
Colbert[Colbert.length] = createMarker(new GPoint(-117.34223938,47.80923843),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Colbert Elementary School",'Colbert=' + Colbert.length);
Spokane_Valley[Spokane_Valley.length] = createMarker(new GPoint(-117.23996735,47.68822479),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Connection School",'Spokane_Valley=' + Spokane_Valley.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.17741394,47.70046234),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Continuous Curriculum School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.35881042,47.68624878),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cooper Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.43147278,47.67685699),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Daybreak Alternative School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.42345428,47.65163803),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Deaconess Hospital Alternative",'Spokane=' + Spokane.length);
Deer_Park[Deer_Park.length] = createMarker(new GPoint(-117.47679138,47.95854187),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Deer Park Elementary School",'Deer_Park=' + Deer_Park.length);
Deer_Park[Deer_Park.length] = createMarker(new GPoint(-117.45510101,47.94430161),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Deer Park High School",'Deer_Park=' + Deer_Park.length);
Deer_Park[Deer_Park.length] = createMarker(new GPoint(-117.47541809,47.95328903),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Deer Park Home Link Program",'Deer_Park=' + Deer_Park.length);
Deer_Park[Deer_Park.length] = createMarker(new GPoint(-117.46879578,47.95092010),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Deer Park Middle School",'Deer_Park=' + Deer_Park.length);
Newman_Lake[Newman_Lake.length] = createMarker(new GPoint(-117.05267334,47.70773697),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("East Farms Elementary School",'Newman_Lake=' + Newman_Lake.length);
Spokane_Valley[Spokane_Valley.length] = createMarker(new GPoint(-117.19393158,47.70063782),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("East Valley High School&extension",'Spokane_Valley=' + Spokane_Valley.length);
Spokane_Valley[Spokane_Valley.length] = createMarker(new GPoint(-117.20219421,47.70203781),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Eastvalley Middle School",'Spokane_Valley=' + Spokane_Valley.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.41514587,47.73556137),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Evergreen Elementary School",'Spokane=' + Spokane.length);
Veradale[Veradale.length] = createMarker(new GPoint(-117.21365356,47.64253616),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Evergreen Middle School",'Veradale=' + Veradale.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.37921143,47.77481842),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Farwell Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.36633301,47.62076187),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Ferris High School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.45270538,47.69194412),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Finch Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.37191010,47.64033890),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Franklin Elementary School",'Spokane=' + Spokane.length);
Rockford[Rockford.length] = createMarker(new GPoint(-117.19544983,47.51742172),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Freeman Elementary School",'Rockford=' + Rockford.length);
Rockford[Rockford.length] = createMarker(new GPoint(-117.19589996,47.51981735),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Freeman High School",'Rockford=' + Rockford.length);
Rockford[Rockford.length] = createMarker(new GPoint(-117.19562400,47.51660600),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Freeman Middle School",'Rockford=' + Rockford.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.41477203,47.67683792),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Garfield Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.39900970,47.70977783),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Garry Middle School",'Spokane=' + Spokane.length);
Spokane_Valley[Spokane_Valley.length] = createMarker(new GPoint(-117.23996735,47.68822479),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Ged Program High School",'Spokane_Valley=' + Spokane_Valley.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.44685364,47.69733810),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Glover Middle School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.39089203,47.64706421),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Grant Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.51838684,47.68619919),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Great Northern Elementary School",'Spokane=' + Spokane.length);
Greenacres[Greenacres.length] = createMarker(new GPoint(-117.16404724,47.65333557),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Greenacres Elementary School",'Greenacres=' + Greenacres.length);
Greenacres[Greenacres.length] = createMarker(new GPoint(-117.17065430,47.65706253),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Greenacres Middle School",'Greenacres=' + Greenacres.length);
Medical_Lake[Medical_Lake.length] = createMarker(new GPoint(-117.67569733,47.57698822),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Hallett Elementary School",'Medical_Lake=' + Medical_Lake.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.38018799,47.61743546),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hamblen Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.43147278,47.67685699),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Havermale Alternative School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.32979584,47.64966202),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Healing Lodge High School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.36482239,47.69793701),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hillyard Preschool (cape)",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.44975281,47.66893768),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Holmes Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.42412567,47.66426468),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Home School Academy",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.23871613,47.62113953),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Horizon Middle School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.39669037,47.63287735),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hutton Elementary School",'Spokane=' + Spokane.length);
Chattaroy[Chattaroy.length] = createMarker(new GPoint(-117.34980774,47.96969223),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Independence Scholar",'Chattaroy=' + Chattaroy.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.47219849,47.72035217),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Indian Trail Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.40209961,47.62132263),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Jefferson Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.22920227,47.65129852),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Keystone Elementary School",'Spokane=' + Spokane.length);
Nine_Mile_Falls[Nine_Mile_Falls.length] = createMarker(new GPoint(-117.49649048,47.72643280),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lake Spokane Elementary School",'Nine_Mile_Falls=' + Nine_Mile_Falls.length);
Medical_Lake[Medical_Lake.length] = createMarker(new GPoint(-117.68267059,47.57281113),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Lakeland Village School",'Medical_Lake=' + Medical_Lake.length);
Nine_Mile_Falls[Nine_Mile_Falls.length] = createMarker(new GPoint(-117.49625397,47.72625732),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Lakeside High School",'Nine_Mile_Falls=' + Nine_Mile_Falls.length);
Nine_Mile_Falls[Nine_Mile_Falls.length] = createMarker(new GPoint(-117.49683380,47.72668457),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Lakeside Middle School",'Nine_Mile_Falls=' + Nine_Mile_Falls.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.41991425,47.65233231),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Lewis & Clark High School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.36799622,47.65616226),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Libby Center",'Spokane=' + Spokane.length);
Spangle[Spangle.length] = createMarker(new GPoint(-117.31877136,47.38473892),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Liberty High School",'Spangle=' + Spangle.length);
Spangle[Spangle.length] = createMarker(new GPoint(-117.31786346,47.38194275),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Liberty Junior High & Elementary School",'Spangle=' + Spangle.length);
Liberty_Lake[Liberty_Lake.length] = createMarker(new GPoint(-117.08838654,47.66746140),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Liberty Lake Elementary School",'Liberty_Lake=' + Liberty_Lake.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.40541840,47.70803833),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lidgerwood Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.36148834,47.63426208),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lincoln Heights Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.42430115,47.72259140),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Linwood Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.39407349,47.67843628),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Logan Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.39759827,47.69216156),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Longfellow Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.41640472,47.70875549),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Madison Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.46732330,47.72319794),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Marian Heights Special School",'Spokane=' + Spokane.length);
Medical_Lake[Medical_Lake.length] = createMarker(new GPoint(-117.69659424,47.57186127),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Martin Hall Detention Center",'Medical_Lake=' + Medical_Lake.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.22899628,47.64289856),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mc Donald Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.41962433,47.76876068),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Mead Alternative High School",'Spokane=' + Spokane.length);
Mead[Mead.length] = createMarker(new GPoint(-117.35413361,47.77113342),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Mead Education Partnership Prog",'Mead=' + Mead.length);
Mead[Mead.length] = createMarker(new GPoint(-117.35413361,47.77113342),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Mead Middle School",'Mead=' + Mead.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.41505432,47.76923752),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Mead Senior High School",'Spokane=' + Spokane.length);
Mead[Mead.length] = createMarker(new GPoint(-117.35792542,47.79888916),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Meadow Ridge Elementary School",'Mead=' + Mead.length);
Medical_Lake[Medical_Lake.length] = createMarker(new GPoint(-117.67330170,47.57144928),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Medical Lake Elementary School",'Medical_Lake=' + Medical_Lake.length);
Medical_Lake[Medical_Lake.length] = createMarker(new GPoint(-117.68290400,47.57603500),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Medical Lake Experiential School",'Medical_Lake=' + Medical_Lake.length);
Medical_Lake[Medical_Lake.length] = createMarker(new GPoint(-117.68099976,47.57556152),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Medical Lake High School",'Medical_Lake=' + Medical_Lake.length);
Medical_Lake[Medical_Lake.length] = createMarker(new GPoint(-117.66998291,47.57276154),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Medical Lake Middle School",'Medical_Lake=' + Medical_Lake.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.42725372,47.67206192),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Medicine Wheel Academy",'Spokane=' + Spokane.length);
Fairchild_Afb[Fairchild_Afb.length] = createMarker(new GPoint(-117.65317535,47.63493729),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Michael Anderson Elementary School",'Fairchild_Afb=' + Fairchild_Afb.length);
Colbert[Colbert.length] = createMarker(new GPoint(-117.39653015,47.80923843),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Midway Elementary School",'Colbert=' + Colbert.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.28641510,47.68346405),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Millwood Early Childhood Center",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.34808350,47.60196304),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Moran Prairie Elementary School",'Spokane=' + Spokane.length);
Newman_Lake[Newman_Lake.length] = createMarker(new GPoint(-117.05310059,47.71084213),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Mountain View Middle School",'Newman_Lake=' + Newman_Lake.length);
Mead[Mead.length] = createMarker(new GPoint(-117.32794952,47.78750992),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Mt Spokane High School",'Mead=' + Mead.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.37197113,47.59662247),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mullan Road Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.27510071,47.66606140),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ness Elementary School",'Spokane=' + Spokane.length);
Nine_Mile_Falls[Nine_Mile_Falls.length] = createMarker(new GPoint(-117.55156708,47.77961349),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Nine Mile Falls Elementary School",'Nine_Mile_Falls=' + Nine_Mile_Falls.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.42019653,47.67234039),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("North Central High School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.24000549,47.66341019),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("North Pines Middle School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.38410950,47.77574921),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Northwood Middle School",'Spokane=' + Spokane.length);
Spokane_Valley[Spokane_Valley.length] = createMarker(new GPoint(-10.00000000,10.00000000),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Off-campus Special Education",'Spokane_Valley=' + Spokane_Valley.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.24779510,47.64698792),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Opportunity Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.30347443,47.68232346),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Orchard Center Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.31465149,47.72698975),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Orchard Prairie Elementary School",'Spokane=' + Spokane.length);
Otis_Orchards[Otis_Orchards.length] = createMarker(new GPoint(-117.11044312,47.70026398),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Otis Orchards Elementary School",'Otis_Orchards=' + Otis_Orchards.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.29035950,47.69799423),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pasadena Park Elementary School",'Spokane=' + Spokane.length);
Nine_Mile_Falls[Nine_Mile_Falls.length] = createMarker(new GPoint(-117.49625397,47.72625732),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Phoenix Alternative School",'Nine_Mile_Falls=' + Nine_Mile_Falls.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.26908875,47.61893845),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ponderosa Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.31185913,47.65343857),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pratt Elementary School",'Spokane=' + Spokane.length);
Veradale[Veradale.length] = createMarker(new GPoint(-117.20179749,47.66342163),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Progress Elementary School",'Veradale=' + Veradale.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.43147278,47.67685699),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Real School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.37052917,47.69713593),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Regal Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.43378448,47.70976257),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ridgeview Elementary School",'Spokane=' + Spokane.length);
Chattaroy[Chattaroy.length] = createMarker(new GPoint(-117.34980774,47.96969223),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Riverside Achievement Center",'Chattaroy=' + Chattaroy.length);
Chattaroy[Chattaroy.length] = createMarker(new GPoint(-117.34463600,47.97166500),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Riverside Alternative High School",'Chattaroy=' + Chattaroy.length);
Chattaroy[Chattaroy.length] = createMarker(new GPoint(-117.35736847,47.97046280),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Riverside Elementary School",'Chattaroy=' + Chattaroy.length);
Chattaroy[Chattaroy.length] = createMarker(new GPoint(-117.35270691,47.97046280),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Riverside High School",'Chattaroy=' + Chattaroy.length);
Chattaroy[Chattaroy.length] = createMarker(new GPoint(-117.35718536,47.97046280),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Riverside Middle School",'Chattaroy=' + Chattaroy.length);
Cheney[Cheney.length] = createMarker(new GPoint(-117.58305359,47.48874283),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Robert Reid Lab School",'Cheney=' + Cheney.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.38628387,47.70046234),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Rogers High School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.41712952,47.64256287),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Roosevelt Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.40434265,47.62470245),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Sacajawea Middle School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.41264343,47.64822388),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Sacred Heart Hospital",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.44867706,47.71651077),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Salk Middle School",'Spokane=' + Spokane.length);
Cheney[Cheney.length] = createMarker(new GPoint(-117.59463501,47.48171997),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Salnave Elementary School",'Cheney=' + Cheney.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.46311188,47.67508698),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Sccp Images High School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.38671875,47.67179871),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Seth Woodard Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.43670654,47.69773483),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Shadle Park High School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.38970900,47.68935000),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Shaw Middle School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.35578156,47.65193558),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sheridan Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.40245819,47.73323822),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Shiloh Hills Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.42521667,47.65134048),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Shrine Hospital",'Spokane=' + Spokane.length);
Spokane_Valley[Spokane_Valley.length] = createMarker(new GPoint(-117.17741394,47.70046234),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Skyview Elementary School",'Spokane_Valley=' + Spokane_Valley.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.24325562,47.63533783),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("South Pines Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.43000031,47.66543579),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Spokane Juvenile Detention School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.28424072,47.67448044),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Spokane Valley High School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.21569824,47.66839981),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Spokane Valley Learning Academy",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.28424072,47.67448044),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Spokane Valley Transition School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.38529205,47.67073822),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Stevens Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.43000031,47.66543579),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Structural Alt Confinement School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.22659302,47.66443634),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Summit School",'Spokane=' + Spokane.length);
Veradale[Veradale.length] = createMarker(new GPoint(-117.20890045,47.63523865),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sunrise Elementary School",'Veradale=' + Veradale.length);
Airway_Heights[Airway_Heights.length] = createMarker(new GPoint(-117.58704376,47.64483643),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sunset Elementary School",'Airway_Heights=' + Airway_Heights.length);
Cheney[Cheney.length] = createMarker(new GPoint(-117.57477400,47.48901000),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Three Springs High School",'Cheney=' + Cheney.length);
Spokane_Valley[Spokane_Valley.length] = createMarker(new GPoint(-117.23975372,47.68764877),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Trent Elementary School",'Spokane_Valley=' + Spokane_Valley.length);
Spokane_Valley[Spokane_Valley.length] = createMarker(new GPoint(-117.20748138,47.70063782),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Trentwood Elementary School",'Spokane_Valley=' + Spokane_Valley.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.26129150,47.64216995),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("University Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.26773071,47.64866257),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("University High School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.36830139,47.69535446),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Voc Skills Center Spokane",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.44300079,47.67235947),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("West Central Preschool",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.28521729,47.66036224),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("West Valley City School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.29328156,47.68233871),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("West Valley High School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.28424072,47.67448044),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("West Valley Shared Learning",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.46569061,47.71374130),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Westview Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.38710785,47.70664978),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Whitman Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.41950226,47.69753647),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Willard Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.42532349,47.63166428),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wilson Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.49028778,47.59463882),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Windsor Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.48440552,47.74534225),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Woodridge Elementary School",'Spokane=' + Spokane.length);
Spokane[Spokane.length] = createMarker(new GPoint(-117.30733600,47.66993000),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wv Help",'Spokane=' + Spokane.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(Airway_Heights);
map.removeOverlays(Chattaroy);
map.removeOverlays(Cheney);
map.removeOverlays(Colbert);
map.removeOverlays(Deer_Park);
map.removeOverlays(Fairchild_Afb);
map.removeOverlays(Greenacres);
map.removeOverlays(Liberty_Lake);
map.removeOverlays(Mead);
map.removeOverlays(Medical_Lake);
map.removeOverlays(Newman_Lake);
map.removeOverlays(Nine_Mile_Falls);
map.removeOverlays(Otis_Orchards);
map.removeOverlays(Rockford);
map.removeOverlays(Spangle);
map.removeOverlays(Spokane);
map.removeOverlays(Spokane_Valley);
map.removeOverlays(Veradale);
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(Spokane);map.removeOverlays(Airway_Heights);
map.removeOverlays(Chattaroy);
map.removeOverlays(Cheney);
map.removeOverlays(Colbert);
map.removeOverlays(Deer_Park);
map.removeOverlays(Fairchild_Afb);
map.removeOverlays(Greenacres);
map.removeOverlays(Liberty_Lake);
map.removeOverlays(Mead);
map.removeOverlays(Medical_Lake);
map.removeOverlays(Newman_Lake);
map.removeOverlays(Nine_Mile_Falls);
map.removeOverlays(Otis_Orchards);
map.removeOverlays(Rockford);
map.removeOverlays(Spangle);
map.removeOverlays(Spokane);
map.removeOverlays(Spokane_Valley);
map.removeOverlays(Veradale);
map.addOverlays(Airway_Heights);
centerByArray(Airway_Heights, false, false);
cntMarker += Airway_Heights.length;
map.addOverlays(Chattaroy);
centerByArray(Chattaroy, false, false);
cntMarker += Chattaroy.length;
map.addOverlays(Cheney);
centerByArray(Cheney, false, false);
cntMarker += Cheney.length;
map.addOverlays(Colbert);
centerByArray(Colbert, false, false);
cntMarker += Colbert.length;
map.addOverlays(Deer_Park);
centerByArray(Deer_Park, false, false);
cntMarker += Deer_Park.length;
map.addOverlays(Fairchild_Afb);
centerByArray(Fairchild_Afb, false, false);
cntMarker += Fairchild_Afb.length;
map.addOverlays(Greenacres);
centerByArray(Greenacres, false, false);
cntMarker += Greenacres.length;
map.addOverlays(Liberty_Lake);
centerByArray(Liberty_Lake, false, false);
cntMarker += Liberty_Lake.length;
map.addOverlays(Mead);
centerByArray(Mead, false, false);
cntMarker += Mead.length;
map.addOverlays(Medical_Lake);
centerByArray(Medical_Lake, false, false);
cntMarker += Medical_Lake.length;
map.addOverlays(Newman_Lake);
centerByArray(Newman_Lake, false, false);
cntMarker += Newman_Lake.length;
map.addOverlays(Nine_Mile_Falls);
centerByArray(Nine_Mile_Falls, false, false);
cntMarker += Nine_Mile_Falls.length;
map.addOverlays(Otis_Orchards);
centerByArray(Otis_Orchards, false, false);
cntMarker += Otis_Orchards.length;
map.addOverlays(Rockford);
centerByArray(Rockford, false, false);
cntMarker += Rockford.length;
map.addOverlays(Spangle);
centerByArray(Spangle, false, false);
cntMarker += Spangle.length;
map.addOverlays(Spokane);
centerByArray(Spokane, false, false);
cntMarker += Spokane.length;
map.addOverlays(Spokane_Valley);
centerByArray(Spokane_Valley, false, false);
cntMarker += Spokane_Valley.length;
map.addOverlays(Veradale);
centerByArray(Veradale, false, false);
cntMarker += Veradale.length;
centerByArray(Spokane,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');
}
}