function addStateMarkers() { mySelect = document.getElementById('selection'); boys[boys.length] = createMarker(new GPoint(-78.556044,38.265762),"
Blue Ridge School
273 Mayo Drive
St. George, VA 22935
All-boys school, 9-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Blue Ridge School",'boys=' + boys.length); coEd[coEd.length] = createMarker(new GPoint(-71.08288,42.707418),"
Brooks School
1160 Great Pond Road
North Andover, MA 01845
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Brooks School",'coEd=' + coEd.length); boys[boys.length] = createMarker(new GPoint(-75.594869,40.031928),"
CFS, The School at Church Farm
1001 East Lincoln Highway
Exton, PA 19341
All-boys school, 7-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("CFS, The School at Church Farm",'boys=' + boys.length); girls[girls.length] = createMarker(new GPoint(-79.390374,36.826967),"
Chatham Hall
800 Chatham Hall Circle
Chatham, VA 24531
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Chatham Hall",'girls=' + girls.length); boys[boys.length] = createMarker(new GPoint(-82.493542,35.464827),"
Christ School
500 Christ School Road
Asheville, NC 28704
All-boys school, 8-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Christ School",'boys=' + boys.length); boys[boys.length] = createMarker(new GPoint(-76.546749,37.609504),"
Christchurch School
49 Seahorse Lane
Christchurch, VA 23031
All-boys school, 9-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Christchurch School",'boys=' + boys.length); coEd[coEd.length] = createMarker(new GPoint(-77.088839,38.82517),"
Episcopal High School
1200 N. Quaker Lane
Alexandria, VA 22302
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Episcopal High School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.582122,42.593804),"
Groton School
282 Farmers Row, Box 991
Groton, MA 01450
Co-ed school, 8-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Groton School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.688166,43.757797),"
Holderness School
PO Box 1879
Plymouth, NH 03264
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Holderness School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-73.328892,42.862203),"
Hoosac School
PO Box 9
Hoosick, NY 12089
Co-ed school, 8-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hoosac School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-85.425795,41.724904),"
Howe Military School & Summer Camp
5755 North State Road 9/P.O. Box 240
Howe, IN 46746
Co-ed school, 5-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Howe Military School & Summer Camp",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-73.502981,41.778838),"
Kent School
PO Box 2006
Kent, CT 06757
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Kent School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-122.757684,45.475098),"
Oregon Episcopal School
6300 SW Nicol Road
Portland, OR 97223
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Oregon Episcopal School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.960109,41.897689),"
Pomfret School
PO Box 128, 398 Pomfret Street
Pomfret, CT 06258
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Pomfret School",'coEd=' + coEd.length); boys[boys.length] = createMarker(new GPoint(-77.092873,38.937851),"
St. Albans School
Mt. St. Alban
Washington, D.C., DC 20016
All-boys school, 9-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("St. Albans School",'boys=' + boys.length); coEd[coEd.length] = createMarker(new GPoint(-80.147156,26.385019),"
Saint Andrew's School
3900 Jog Road
Boca Raton, FL 33434
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Saint Andrew's School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-75.697925,39.473931),"
St. Andrew's School, DE
350 Noxontown Road
Middletown, DE 19709
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Andrew's School, DE",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-85.891144,35.217474),"
St. Andrew's-Sewanee School
290 Quintard Rd.
Sewanee, TN 37375
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Andrew's-Sewanee School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.311849,41.49655),"
St. George's School
PO Box 1910
Newport, RI 02840
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. George's School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-77.737759,39.57571),"
Saint James School
17641 College Road
St. James, MD 21781
Co-ed school, 8-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Saint James School",'coEd=' + coEd.length); boys[boys.length] = createMarker(new GPoint(-88.404159,43.064276),"
St. John's Northwestern Military Academy
1101 Genesee Street
Delafield, WI 53018
All-boys school, 7-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("St. John's Northwestern Military Academy",'boys=' + boys.length); girls[girls.length] = createMarker(new GPoint(-76.899868,37.905395),"
St. Margaret's School
444 Water Lane PO Box 158
Tappahannock, VA 22560
All-girls school, 8-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("St. Margaret's School",'girls=' + girls.length); coEd[coEd.length] = createMarker(new GPoint(-71.531945,42.305764),"
St. Mark's School
25 Marlborough Road
Southborough, MA 01772
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Mark's School",'coEd=' + coEd.length); girls[girls.length] = createMarker(new GPoint(-78.65225,35.781285),"
Saint Mary's School
900 Hillsborough St.
Raleigh, NC 27603
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Saint Mary's School",'girls=' + girls.length); coEd[coEd.length] = createMarker(new GPoint(-71.567187,43.197562),"
St. Paul's School
325 Pleasant Street
Concord, NH 03301
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Paul's School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-97.815209,30.333792),"
St. Stephen's Episcopal School
6500 St. Stephen's Drive
Austin, TX 78746
Co-ed school, 8-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Stephen's Episcopal School",'coEd=' + coEd.length); girls[girls.length] = createMarker(new GPoint(-76.685687,39.40758),"
St. Timothy's School
8400 Greenspring Avenue
Stevenson, MD 21153
All-girls school, 9-12, PG
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("St. Timothy's School",'girls=' + girls.length); coEd[coEd.length] = createMarker(new GPoint(-93.290045,44.298698),"
Shattuck-St. Mary's School
1000 Shumway Ave. PO Box 218
Faribault, MN 55021
Co-ed school, 6-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Shattuck-St. Mary's School",'coEd=' + coEd.length); boys[boys.length] = createMarker(new GPoint(-73.408287,41.730679),"
South Kent School
40 Bull's Ridge Road
South Kent, CT 06785
All-boys school, 9-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("South Kent School",'boys=' + boys.length); coEd[coEd.length] = createMarker(new GPoint(-79.075981,38.150288),"
Stuart Hall School
235 West Frederick Street
Staunton, VA 24401
Co-ed school, 8-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Stuart Hall School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-98.601761,29.635594),"
TMI -The Episcopal School of Texas
20955 West Tejas Trail
San Antonio, TX 78257
Co-ed school, 8-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("TMI -The Episcopal School of Texas",'coEd=' + coEd.length); boys[boys.length] = createMarker(new GPoint(-73.592985,41.570816),"
Trinity Pawling School
700 Route 22
Pawling, NY 12564
All-boys school, 9-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Trinity Pawling School",'boys=' + boys.length); coEd[coEd.length] = createMarker(new GPoint(-79.187224,37.453353),"
Virginia Episcopal School
400 V.E.S. Road
Lynchburg, VA 24503
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Virginia Episcopal School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.751681,44.278798),"
The White Mountain School
371 West Farm Road
Bethlehem, NH 03574
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The White Mountain School",'coEd=' + coEd.length); var markers = coEd.concat(boys); markers = girls.concat(markers); var bounds = arrayBounds(markers); 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 = myMap.getBoundsZoomLevel(bounds); if(zoom==17) zoom=4; myMap.setCenter(center,zoom); myMap.addOverlays(coEd); myMap.addOverlays(boys); myMap.addOverlays(girls); } // End addStateMarkers JavaScript Function function createMarker(point, label, icon) { var marker = new GMarker(point, icon); var html = label; GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html); }); return marker; } function selectChange(selection) { var myVal = selection.options[selection.selectedIndex].value; if (myVal.indexOf('boys') != -1 && myVal.indexOf('all') == -1) { var temp = myVal.split('='); var myIndex = parseInt(temp[1]) - 1; myMap.removeOverlay(boys[myIndex]); myMap.addOverlay(boys[myIndex]); GEvent.trigger(boys[myIndex],'click'); } if (myVal.indexOf('coEd') != -1 && myVal.indexOf('all') == -1) { var temp = myVal.split('='); var myIndex = parseInt(temp[1]) - 1; myMap.removeOverlay(coEd[myIndex]); myMap.addOverlay(coEd[myIndex]); GEvent.trigger(coEd[myIndex],'click'); } if (myVal.indexOf('girls') != -1 && myVal.indexOf('all') == -1) { var temp = myVal.split('='); var myIndex = parseInt(temp[1]) - 1; myMap.removeOverlay(girls[myIndex]); myMap.addOverlay(girls[myIndex]); GEvent.trigger(girls[myIndex],'click'); } if (myVal.indexOf('all') != -1 && myVal != 'all') { var temp = myVal.split('='); var showArray = temp[1]; myMap.clearOverlays() myMap.addOverlays(eval(showArray)); } if (myVal == 'all') { myMap.clearOverlays() myMap.addOverlays(coEd); myMap.addOverlays(boys); myMap.addOverlays(girls); } }