function addMarkers()
{
mySelect = document.getElementById('selection');
Santa_Rosa = [];Sonoma = [];Healdsburg = [];Sebastopol = [];Tomales = [];Windsor = [];Geyserville = [];Petaluma = [];Cloverdale = [];Rohnert_Park = [];Glen_Ellen = [];Forestville = [];Cazadero = [];Guerneville = [];Occidental = [];Annapolis = [];Stewarts_Point = [];Kenwood = [];Monte_Rio = [];Cotati = [];Penngrove = [];mySelect.options[mySelect.options.length] = new Option("Annapolis schools",'all=Annapolis');
mySelect.options[mySelect.options.length] = new Option("Cazadero schools",'all=Cazadero');
mySelect.options[mySelect.options.length] = new Option("Cloverdale schools",'all=Cloverdale');
mySelect.options[mySelect.options.length] = new Option("Cotati schools",'all=Cotati');
mySelect.options[mySelect.options.length] = new Option("Forestville schools",'all=Forestville');
mySelect.options[mySelect.options.length] = new Option("Geyserville schools",'all=Geyserville');
mySelect.options[mySelect.options.length] = new Option("Glen Ellen schools",'all=Glen_Ellen');
mySelect.options[mySelect.options.length] = new Option("Guerneville schools",'all=Guerneville');
mySelect.options[mySelect.options.length] = new Option("Healdsburg schools",'all=Healdsburg');
mySelect.options[mySelect.options.length] = new Option("Kenwood schools",'all=Kenwood');
mySelect.options[mySelect.options.length] = new Option("Monte Rio schools",'all=Monte_Rio');
mySelect.options[mySelect.options.length] = new Option("Occidental schools",'all=Occidental');
mySelect.options[mySelect.options.length] = new Option("Penngrove schools",'all=Penngrove');
mySelect.options[mySelect.options.length] = new Option("Petaluma schools",'all=Petaluma');
mySelect.options[mySelect.options.length] = new Option("Rohnert Park schools",'all=Rohnert_Park');
mySelect.options[mySelect.options.length] = new Option("Santa Rosa schools",'all=Santa_Rosa');
mySelect.options[mySelect.options.length] = new Option("Sebastopol schools",'all=Sebastopol');
mySelect.options[mySelect.options.length] = new Option("Sonoma schools",'all=Sonoma');
mySelect.options[mySelect.options.length] = new Option("Stewarts Point schools",'all=Stewarts_Point');
mySelect.options[mySelect.options.length] = new Option("Tomales schools",'all=Tomales');
mySelect.options[mySelect.options.length] = new Option("Windsor schools",'all=Windsor');
mySelect.options[mySelect.options.length] = new Option("---------------------------",'');
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.71769200,38.44562500),"
",iconGr);
mySelect.options[mySelect.options.length] = new Option("Abraxis Charter",'Santa_Rosa=' + Santa_Rosa.length);
Sonoma[Sonoma.length] = createMarker(new GPoint(-122.45982361,38.27795029),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Adele Harrison Middle School",'Sonoma=' + Sonoma.length);
Healdsburg[Healdsburg.length] = createMarker(new GPoint(-122.79441833,38.65683365),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Alexander Valley Elementary School",'Healdsburg=' + Healdsburg.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.73400116,38.40909958),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Allen (elsie) High School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.79965973,38.51206207),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alternative Education Programs",'Santa_Rosa=' + Santa_Rosa.length);
Sonoma[Sonoma.length] = createMarker(new GPoint(-122.46949768,38.28530121),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Altimira Middle School",'Sonoma=' + Sonoma.length);
Sebastopol[Sebastopol.length] = createMarker(new GPoint(-122.82657623,38.40703583),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Analy High School",'Sebastopol=' + Sebastopol.length);
Sebastopol[Sebastopol.length] = createMarker(new GPoint(-122.85053253,38.38845062),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Apple Blossom Elementary School",'Sebastopol=' + Sebastopol.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.63769531,38.46308136),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Austin Creek Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.73487091,38.39817429),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bellevue Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.75469971,38.44329834),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Biella (albert F.) Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.66200256,38.47358322),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Binkley Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Tomales[Tomales.length] = createMarker(new GPoint(-122.91449738,38.24589920),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bodega Bay Elementary School",'Tomales=' + Tomales.length);
Sebastopol[Sebastopol.length] = createMarker(new GPoint(-122.84329987,38.39410019),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Brook Haven Elementary School",'Sebastopol=' + Sebastopol.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.68769836,38.45330048),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Brook Hill Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Windsor[Windsor.length] = createMarker(new GPoint(-122.80729675,38.54420090),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Brooks Elementary School",'Windsor=' + Windsor.length);
Geyserville[Geyserville.length] = createMarker(new GPoint(-122.92230225,38.70650101),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Buena Vista High School",'Geyserville=' + Geyserville.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.75469971,38.44329834),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Burbank (luther) Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Windsor[Windsor.length] = createMarker(new GPoint(-122.82912445,38.56480408),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cali Calmecac (charter #162) Elementary School",'Windsor=' + Windsor.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.70750000,38.28201300),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("California Virtual Academy @ Sonoma",'Petaluma=' + Petaluma.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.74681900,38.47390500),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Career Academy At Piner-olivet",'Santa_Rosa=' + Santa_Rosa.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.64630127,38.22788239),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Carpe Diem High Continuation School",'Petaluma=' + Petaluma.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.63929749,38.45909882),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Carrillo (maria) High School",'Santa_Rosa=' + Santa_Rosa.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.59822083,38.24108887),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Casa Grande High School",'Petaluma=' + Petaluma.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.64409637,38.32210159),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cinnabar Elementary School",'Petaluma=' + Petaluma.length);
Cloverdale[Cloverdale.length] = createMarker(new GPoint(-123.02109528,38.81058121),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Cloverdale High School",'Cloverdale=' + Cloverdale.length);
Rohnert_Park[Rohnert_Park.length] = createMarker(new GPoint(-122.72132111,38.35374069),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Community Day",'Rohnert_Park=' + Rohnert_Park.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.73400116,38.40909958),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Cook (lawrence) Middle School",'Santa_Rosa=' + Santa_Rosa.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.64747620,38.27412033),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Corona Creek Elementary School",'Petaluma=' + Petaluma.length);
Sonoma[Sonoma.length] = createMarker(new GPoint(-122.46949768,38.28530121),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Creekside High Continuation School",'Sonoma=' + Sonoma.length);
Rohnert_Park[Rohnert_Park.length] = createMarker(new GPoint(-122.68544006,38.35108566),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Creekside Middle School",'Rohnert_Park=' + Rohnert_Park.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.64343262,38.22885895),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Crossroads School",'Petaluma=' + Petaluma.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.67269897,38.43849945),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Doyle Park Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Glen_Ellen[Glen_Ellen.length] = createMarker(new GPoint(-122.51959991,38.36579895),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dunbar Elementary School",'Glen_Ellen=' + Glen_Ellen.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.75733185,38.32112885),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dunham Elementary School",'Petaluma=' + Petaluma.length);
Cloverdale[Cloverdale.length] = createMarker(new GPoint(-123.02107900,38.80711400),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Eagle Creek Community Day",'Cloverdale=' + Cloverdale.length);
Rohnert_Park[Rohnert_Park.length] = createMarker(new GPoint(-122.72132111,38.35376740),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("El Camino High Continuation School",'Rohnert_Park=' + Rohnert_Park.length);
Forestville[Forestville.length] = createMarker(new GPoint(-122.89037323,38.48180771),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("El Molino High School",'Forestville=' + Forestville.length);
Sonoma[Sonoma.length] = createMarker(new GPoint(-122.48670197,38.29930115),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("El Verano Elementary School",'Sonoma=' + Sonoma.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.62600708,38.25425339),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Eldredge (bernard) Elementary School",'Petaluma=' + Petaluma.length);
Rohnert_Park[Rohnert_Park.length] = createMarker(new GPoint(-122.69091034,38.35739136),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Evergreen Elementary School",'Rohnert_Park=' + Rohnert_Park.length);
Healdsburg[Healdsburg.length] = createMarker(new GPoint(-122.86180878,38.62317657),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fitch Mountain Elementary School",'Healdsburg=' + Healdsburg.length);
Sonoma[Sonoma.length] = createMarker(new GPoint(-122.48429871,38.31409836),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Flowery Elementary School",'Sonoma=' + Sonoma.length);
Forestville[Forestville.length] = createMarker(new GPoint(-122.88793182,38.47269058),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Forestville Elementary School",'Forestville=' + Forestville.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.71579742,38.44321060),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fort Ross Charter",'Santa_Rosa=' + Santa_Rosa.length);
Cazadero[Cazadero.length] = createMarker(new GPoint(-123.26406097,38.55604935),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fort Ross Elementary School",'Cazadero=' + Cazadero.length);
Healdsburg[Healdsburg.length] = createMarker(new GPoint(-122.87294006,38.63109589),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Foss Creek Elementary School",'Healdsburg=' + Healdsburg.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.68769836,38.45330048),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fremont (john) Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Sonoma[Sonoma.length] = createMarker(new GPoint(-122.46949768,38.28530121),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Gateway High School",'Sonoma=' + Sonoma.length);
Sonoma[Sonoma.length] = createMarker(new GPoint(-122.46949768,38.28530121),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Gateway Middel School",'Sonoma=' + Sonoma.length);
Sebastopol[Sebastopol.length] = createMarker(new GPoint(-122.82443237,38.40634918),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Gerboth (jack) High Continuation School",'Sebastopol=' + Sebastopol.length);
Geyserville[Geyserville.length] = createMarker(new GPoint(-122.89131000,38.72194200),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Geyserville Community Day School",'Geyserville=' + Geyserville.length);
Geyserville[Geyserville.length] = createMarker(new GPoint(-122.92230225,38.70650101),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Geyserville Educational Park High School",'Geyserville=' + Geyserville.length);
Geyserville[Geyserville.length] = createMarker(new GPoint(-122.92230225,38.70650101),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Geyserville Elementary School",'Geyserville=' + Geyserville.length);
Geyserville[Geyserville.length] = createMarker(new GPoint(-122.92230225,38.70650101),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Geyserville Middle School",'Geyserville=' + Geyserville.length);
Rohnert_Park[Rohnert_Park.length] = createMarker(new GPoint(-122.68074036,38.36744308),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Gold Ridge Elementary School",'Rohnert_Park=' + Rohnert_Park.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.74739838,38.48220062),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Grace High Continuation School",'Santa_Rosa=' + Santa_Rosa.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.63057709,38.22095108),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Grant Elementary School",'Petaluma=' + Petaluma.length);
Sebastopol[Sebastopol.length] = createMarker(new GPoint(-122.78477200,38.36402600),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Gravenstein Community Day",'Sebastopol=' + Sebastopol.length);
Sebastopol[Sebastopol.length] = createMarker(new GPoint(-122.78479767,38.36166763),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Gravenstein Elementary School",'Sebastopol=' + Sebastopol.length);
Guerneville[Guerneville.length] = createMarker(new GPoint(-122.99559021,38.51031876),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Guerneville Community Day",'Guerneville=' + Guerneville.length);
Guerneville[Guerneville.length] = createMarker(new GPoint(-122.99559021,38.51031876),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Guerneville Elementary School",'Guerneville=' + Guerneville.length);
Rohnert_Park[Rohnert_Park.length] = createMarker(new GPoint(-122.69496918,38.36524582),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hahn (marguerite) Elementary School",'Rohnert_Park=' + Rohnert_Park.length);
Occidental[Occidental.length] = createMarker(new GPoint(-122.94752900,38.40711000),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Harmony Elementary School",'Occidental=' + Occidental.length);
Healdsburg[Healdsburg.length] = createMarker(new GPoint(-122.86152649,38.61263657),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Healdsburg Elementary School",'Healdsburg=' + Healdsburg.length);
Healdsburg[Healdsburg.length] = createMarker(new GPoint(-122.86791992,38.62201691),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Healdsburg High School",'Healdsburg=' + Healdsburg.length);
Healdsburg[Healdsburg.length] = createMarker(new GPoint(-122.86693573,38.61601257),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Healdsburg Junior High School",'Healdsburg=' + Healdsburg.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.68769836,38.45330048),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hidden Valley Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Sebastopol[Sebastopol.length] = createMarker(new GPoint(-122.80654144,38.37059784),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Hillcrest Middle School",'Sebastopol=' + Sebastopol.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.74739838,38.48220062),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Hilliard Comstock Middle School",'Santa_Rosa=' + Santa_Rosa.length);
Annapolis[Annapolis.length] = createMarker(new GPoint(-123.36506653,38.71662521),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Horicon Elementary School",'Annapolis=' + Annapolis.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.63189697,38.46088028),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Jack London Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Cloverdale[Cloverdale.length] = createMarker(new GPoint(-123.02417755,38.81187439),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Jefferson Elementary School",'Cloverdale=' + Cloverdale.length);
Cloverdale[Cloverdale.length] = createMarker(new GPoint(-123.02097321,38.80723953),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Johanna Echols-hansen High Continuation School",'Cloverdale=' + Cloverdale.length);
Stewarts_Point[Stewarts_Point.length] = createMarker(new GPoint(-123.35610199,38.65760040),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Kashia Elementary School",'Stewarts_Point=' + Stewarts_Point.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.70021057,38.42105103),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Kawana Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.63016510,38.24431229),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Kenilworth Junior High School",'Petaluma=' + Petaluma.length);
Kenwood[Kenwood.length] = createMarker(new GPoint(-122.55180359,38.41490173),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Kenwood Elementary School",'Kenwood=' + Kenwood.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.75469971,38.44329834),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Kid Street Charter",'Santa_Rosa=' + Santa_Rosa.length);
Rohnert_Park[Rohnert_Park.length] = createMarker(new GPoint(-122.69206238,38.32501602),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("La Fiesta Elementary School",'Rohnert_Park=' + Rohnert_Park.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.60975647,38.24634171),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("La Tercera Elementary School",'Petaluma=' + Petaluma.length);
Sebastopol[Sebastopol.length] = createMarker(new GPoint(-122.82389832,38.40614319),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Laguna High Continuation School",'Sebastopol=' + Sebastopol.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.75469971,38.44329834),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lehman (helen M.) Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.71650700,38.46217800),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Lewis Opportunity",'Santa_Rosa=' + Santa_Rosa.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.70443726,38.27918625),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Liberty Elementary School",'Petaluma=' + Petaluma.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.75469971,38.44329834),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lincoln (abraham) Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.65704346,38.24147797),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Live Oak Charter",'Petaluma=' + Petaluma.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.67498016,38.46886063),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Madrone Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Healdsburg[Healdsburg.length] = createMarker(new GPoint(-122.86791992,38.62201691),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Marce Becerra Academy (cont)",'Healdsburg=' + Healdsburg.length);
Sebastopol[Sebastopol.length] = createMarker(new GPoint(-122.84329987,38.39410019),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mariposa Alternative Elementary School",'Sebastopol=' + Sebastopol.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.76039600,38.51242200),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mark West Charter",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.76013947,38.50320816),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mark West Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.64681244,38.24241257),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mary Collins School At Cherry Valley",'Petaluma=' + Petaluma.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.67121124,38.43874359),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Matanzas Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.61931610,38.24722672),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mcdowell Elementary School",'Petaluma=' + Petaluma.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.63254547,38.24451065),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mckinley Elementary School",'Petaluma=' + Petaluma.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.63640594,38.22286224),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mcnear Elementary School",'Petaluma=' + Petaluma.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.64550781,38.26593399),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Meadow Elementary School",'Petaluma=' + Petaluma.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.71399689,38.44041061),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Meadow View Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.75469971,38.44329834),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Mesa High Continuation School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.73400116,38.40909958),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Midrose High Continuation School",'Santa_Rosa=' + Santa_Rosa.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.61179352,38.23711777),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Miwok Valley Elementary School",'Petaluma=' + Petaluma.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.75170898,38.45697021),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Monroe (james) Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Monte_Rio[Monte_Rio.length] = createMarker(new GPoint(-123.01309967,38.46889877),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Monte Rio Elementary School",'Monte_Rio=' + Monte_Rio.length);
Rohnert_Park[Rohnert_Park.length] = createMarker(new GPoint(-122.68192291,38.32883835),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Monte Vista Elementary School",'Rohnert_Park=' + Rohnert_Park.length);
Cazadero[Cazadero.length] = createMarker(new GPoint(-123.15550232,38.53580093),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Montgomery Elementary School",'Cazadero=' + Cazadero.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.67269897,38.43849945),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Montgomery High School",'Santa_Rosa=' + Santa_Rosa.length);
Rohnert_Park[Rohnert_Park.length] = createMarker(new GPoint(-122.69982147,38.33900452),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Mountain Shadows Middle School",'Rohnert_Park=' + Rohnert_Park.length);
Sonoma[Sonoma.length] = createMarker(new GPoint(-122.46949768,38.28530121),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("New Middle School",'Sonoma=' + Sonoma.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.68769836,38.45330048),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Nueva Vista High Continuation School",'Santa_Rosa=' + Santa_Rosa.length);
Forestville[Forestville.length] = createMarker(new GPoint(-122.89011900,38.48211800),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Nuevo Leon High School",'Forestville=' + Forestville.length);
Sebastopol[Sebastopol.length] = createMarker(new GPoint(-122.86392975,38.43227005),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oak Grove Elementary School",'Sebastopol=' + Sebastopol.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.59787750,38.26242828),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Old Adobe Elementary School",'Petaluma=' + Petaluma.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.80703735,38.46477890),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Olivet Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Sebastopol[Sebastopol.length] = createMarker(new GPoint(-122.85053253,38.38845062),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Orchard View",'Sebastopol=' + Sebastopol.length);
Cotati[Cotati.length] = createMarker(new GPoint(-122.72845459,38.32946396),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Page (thomas) Elementary School",'Cotati=' + Cotati.length);
Sebastopol[Sebastopol.length] = createMarker(new GPoint(-122.84329987,38.39410019),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Park Side Elementary School",'Sebastopol=' + Sebastopol.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.96499634,38.40039825),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Pathways Charter School",'Santa_Rosa=' + Santa_Rosa.length);
Penngrove[Penngrove.length] = createMarker(new GPoint(-122.66100311,38.30960083),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Penngrove Elementary School",'Penngrove=' + Penngrove.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.64255524,38.28234482),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Petaluma Charter School",'Petaluma=' + Petaluma.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.64630127,38.22788239),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Petaluma High School",'Petaluma=' + Petaluma.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.65832520,38.23093796),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Petaluma Junior High School",'Petaluma=' + Petaluma.length);
Rohnert_Park[Rohnert_Park.length] = createMarker(new GPoint(-122.72132111,38.35371399),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Phoenix High Continuation School",'Rohnert_Park=' + Rohnert_Park.length);
Sebastopol[Sebastopol.length] = createMarker(new GPoint(-122.84329987,38.39410019),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pine Crest Elementary School",'Sebastopol=' + Sebastopol.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.77232361,38.46699905),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Piner Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.74739838,38.48220062),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Piner High School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.74649811,38.47374725),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Piner Olivet Charter",'Santa_Rosa=' + Santa_Rosa.length);
Sonoma[Sonoma.length] = createMarker(new GPoint(-122.46949768,38.28530121),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Prestwood Elementary School",'Sonoma=' + Sonoma.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.68769836,38.45330048),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Proctor Terrace Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Rohnert_Park[Rohnert_Park.length] = createMarker(new GPoint(-122.68528748,38.34096909),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Rancho Cotate High School",'Rohnert_Park=' + Rohnert_Park.length);
Rohnert_Park[Rohnert_Park.length] = createMarker(new GPoint(-122.70608521,38.34003830),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Reed (john) Elementary School",'Rohnert_Park=' + Rohnert_Park.length);
Rohnert_Park[Rohnert_Park.length] = createMarker(new GPoint(-122.69107056,38.34000015),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Richard Crane Elementary School",'Rohnert_Park=' + Rohnert_Park.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.75469971,38.44329834),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Ridgway High Continuation School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.74031067,38.50045013),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Riebli (john B.) Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.65275500,38.46937500),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Rincon Valley Charter",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.63929749,38.45909882),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Rincon Valley Middle School",'Santa_Rosa=' + Santa_Rosa.length);
Rohnert_Park[Rohnert_Park.length] = createMarker(new GPoint(-122.69934082,38.33394241),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rohnert (waldo) Elementary School",'Rohnert_Park=' + Rohnert_Park.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.73400116,38.40909958),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Roseland Accelerated Middle School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.73421300,38.40970100),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Roseland Charter",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.73055267,38.42921829),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Roseland Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Guerneville[Guerneville.length] = createMarker(new GPoint(-122.99109650,38.50719833),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Russian River Charter School",'Guerneville=' + Guerneville.length);
Occidental[Occidental.length] = createMarker(new GPoint(-122.93295288,38.38652420),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Salmon Creek Middle School",'Occidental=' + Occidental.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.62856293,38.23810959),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("San Antonio High (cont.)",'Petaluma=' + Petaluma.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.76022339,38.51414490),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("San Miguel Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.67001600,38.48097000),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Santa Rosa Accelerated Charter",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.74739838,38.48220062),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Santa Rosa Education Cooperative Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.75469971,38.44329834),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Santa Rosa High School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.68769836,38.45330048),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Santa Rosa Middle School",'Santa_Rosa=' + Santa_Rosa.length);
Sonoma[Sonoma.length] = createMarker(new GPoint(-122.46949768,38.28530121),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sassarini Elementary School",'Sonoma=' + Sonoma.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.74532318,38.47446060),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Schaefer Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Sebastopol[Sebastopol.length] = createMarker(new GPoint(-122.82270050,38.40219879),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sebastopol Independent Charter",'Sebastopol=' + Sebastopol.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.65277863,38.46946335),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sequoia Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.72791290,38.41977310),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sheppard Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.67269897,38.43849945),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Slater (herbert) Middle School",'Santa_Rosa=' + Santa_Rosa.length);
Sonoma[Sonoma.length] = createMarker(new GPoint(-122.46949768,38.28530121),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sonoma Charter Elementary School",'Sonoma=' + Sonoma.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.79965973,38.51206207),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Sonoma County Court",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.79988300,38.51202800),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Sonoma County Rop",'Santa_Rosa=' + Santa_Rosa.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.62960052,38.26703262),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sonoma Mountain Elementary School",'Petaluma=' + Petaluma.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.59848785,38.24079514),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Sonoma Mountain High Continuation School",'Petaluma=' + Petaluma.length);
Sonoma[Sonoma.length] = createMarker(new GPoint(-122.46949768,38.28530121),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Sonoma Valley High School",'Sonoma=' + Sonoma.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.79965973,38.51206207),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Special Education",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.66561890,38.44438553),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Spring Creek Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.74739838,38.48220062),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Steele Lane Elementary Annex (spec Ed)",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.74739838,38.48220062),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Steele Lane Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.74336243,38.41803741),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Stevens (robert L.) Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.66145325,38.43476486),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Strawberry Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Sebastopol[Sebastopol.length] = createMarker(new GPoint(-122.85101318,38.39091492),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Sunridge Charter School",'Sebastopol=' + Sebastopol.length);
Rohnert_Park[Rohnert_Park.length] = createMarker(new GPoint(-122.67301941,38.33633804),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Technology High School",'Rohnert_Park=' + Rohnert_Park.length);
Sebastopol[Sebastopol.length] = createMarker(new GPoint(-122.83525848,38.37896347),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Twin Hills Middle School",'Sebastopol=' + Sebastopol.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.77884674,38.25607681),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Two Rock Elementary School",'Petaluma=' + Petaluma.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.62818909,38.23789215),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Valley Oaks Elementary Alternative School",'Petaluma=' + Petaluma.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.62818909,38.23789215),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Valley Oaks High Alternative School",'Petaluma=' + Petaluma.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.65334320,38.23193741),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Valley Vista Elementary School",'Petaluma=' + Petaluma.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.71399689,38.44041061),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Village Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.80729675,38.54420090),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Washburn (mattie) Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Cloverdale[Cloverdale.length] = createMarker(new GPoint(-123.01911163,38.80389023),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Washington Middle School",'Cloverdale=' + Cloverdale.length);
Healdsburg[Healdsburg.length] = createMarker(new GPoint(-122.88366699,38.57979965),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("West Side Elementary School",'Healdsburg=' + Healdsburg.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.75469971,38.44329834),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("West Sonoma Charter",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.66162109,38.46484375),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Whited (douglas) Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.80601501,38.43803787),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Willowside Middle School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.75250244,38.43218613),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wilson (j. X.) Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Petaluma[Petaluma.length] = createMarker(new GPoint(-122.68579865,38.24515915),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wilson Elementary School",'Petaluma=' + Petaluma.length);
Windsor[Windsor.length] = createMarker(new GPoint(-122.80889893,38.54638672),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Windsor Creek Elementary School",'Windsor=' + Windsor.length);
Windsor[Windsor.length] = createMarker(new GPoint(-122.80729675,38.54420090),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Windsor High School",'Windsor=' + Windsor.length);
Windsor[Windsor.length] = createMarker(new GPoint(-122.80729675,38.54420090),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Windsor Middle School",'Windsor=' + Windsor.length);
Windsor[Windsor.length] = createMarker(new GPoint(-122.81334686,38.54931259),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Windsor Oaks Academy",'Windsor=' + Windsor.length);
Sonoma[Sonoma.length] = createMarker(new GPoint(-122.49861500,38.31261200),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Woodland Star Charter",'Sonoma=' + Sonoma.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.77594757,38.41918182),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wright Elementary School",'Santa_Rosa=' + Santa_Rosa.length);
Santa_Rosa[Santa_Rosa.length] = createMarker(new GPoint(-122.67387390,38.42897415),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Yulupa Elementary School",'Santa_Rosa=' + Santa_Rosa.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(Annapolis);
map.removeOverlays(Cazadero);
map.removeOverlays(Cloverdale);
map.removeOverlays(Cotati);
map.removeOverlays(Forestville);
map.removeOverlays(Geyserville);
map.removeOverlays(Glen_Ellen);
map.removeOverlays(Guerneville);
map.removeOverlays(Healdsburg);
map.removeOverlays(Kenwood);
map.removeOverlays(Monte_Rio);
map.removeOverlays(Occidental);
map.removeOverlays(Penngrove);
map.removeOverlays(Petaluma);
map.removeOverlays(Rohnert_Park);
map.removeOverlays(Santa_Rosa);
map.removeOverlays(Sebastopol);
map.removeOverlays(Sonoma);
map.removeOverlays(Stewarts_Point);
map.removeOverlays(Tomales);
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(Santa_Rosa);map.removeOverlays(Annapolis);
map.removeOverlays(Cazadero);
map.removeOverlays(Cloverdale);
map.removeOverlays(Cotati);
map.removeOverlays(Forestville);
map.removeOverlays(Geyserville);
map.removeOverlays(Glen_Ellen);
map.removeOverlays(Guerneville);
map.removeOverlays(Healdsburg);
map.removeOverlays(Kenwood);
map.removeOverlays(Monte_Rio);
map.removeOverlays(Occidental);
map.removeOverlays(Penngrove);
map.removeOverlays(Petaluma);
map.removeOverlays(Rohnert_Park);
map.removeOverlays(Santa_Rosa);
map.removeOverlays(Sebastopol);
map.removeOverlays(Sonoma);
map.removeOverlays(Stewarts_Point);
map.removeOverlays(Tomales);
map.removeOverlays(Windsor);
map.addOverlays(Annapolis);
centerByArray(Annapolis, false, false);
cntMarker += Annapolis.length;
map.addOverlays(Cazadero);
centerByArray(Cazadero, false, false);
cntMarker += Cazadero.length;
map.addOverlays(Cloverdale);
centerByArray(Cloverdale, false, false);
cntMarker += Cloverdale.length;
map.addOverlays(Cotati);
centerByArray(Cotati, false, false);
cntMarker += Cotati.length;
map.addOverlays(Forestville);
centerByArray(Forestville, false, false);
cntMarker += Forestville.length;
map.addOverlays(Geyserville);
centerByArray(Geyserville, false, false);
cntMarker += Geyserville.length;
map.addOverlays(Glen_Ellen);
centerByArray(Glen_Ellen, false, false);
cntMarker += Glen_Ellen.length;
map.addOverlays(Guerneville);
centerByArray(Guerneville, false, false);
cntMarker += Guerneville.length;
map.addOverlays(Healdsburg);
centerByArray(Healdsburg, false, false);
cntMarker += Healdsburg.length;
map.addOverlays(Kenwood);
centerByArray(Kenwood, false, false);
cntMarker += Kenwood.length;
map.addOverlays(Monte_Rio);
centerByArray(Monte_Rio, false, false);
cntMarker += Monte_Rio.length;
map.addOverlays(Occidental);
centerByArray(Occidental, false, false);
cntMarker += Occidental.length;
map.addOverlays(Penngrove);
centerByArray(Penngrove, false, false);
cntMarker += Penngrove.length;
map.addOverlays(Petaluma);
centerByArray(Petaluma, false, false);
cntMarker += Petaluma.length;
map.addOverlays(Rohnert_Park);
centerByArray(Rohnert_Park, false, false);
cntMarker += Rohnert_Park.length;
map.addOverlays(Santa_Rosa);
centerByArray(Santa_Rosa, false, false);
cntMarker += Santa_Rosa.length;
map.addOverlays(Sebastopol);
centerByArray(Sebastopol, false, false);
cntMarker += Sebastopol.length;
map.addOverlays(Sonoma);
centerByArray(Sonoma, false, false);
cntMarker += Sonoma.length;
map.addOverlays(Stewarts_Point);
centerByArray(Stewarts_Point, false, false);
cntMarker += Stewarts_Point.length;
map.addOverlays(Tomales);
centerByArray(Tomales, false, false);
cntMarker += Tomales.length;
map.addOverlays(Windsor);
centerByArray(Windsor, false, false);
cntMarker += Windsor.length;
centerByArray(Santa_Rosa,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');
}
}