function addStateMarkers() { mySelect = document.getElementById('selection'); coEd[coEd.length] = createMarker(new GPoint(-81.39728,41.643149),"
Andrews Osborne Academy
38588 Mentor Avenue
Willoughby, OH 44094
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Andrews Osborne Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-82.620004,35.568684),"
Asheville School
360 Asheville School Rd.
Asheville, NC 28806
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Asheville School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.20654,43.581712),"
Brewster Academy
80 Academy Drive
Wolfeboro, NH 03894
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Brewster Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-73.412634,41.585649),"
Canterbury School
101 Aspetuck Avenue
New Milford, CT 06776
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Canterbury School",'coEd=' + coEd.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); coEd[coEd.length] = createMarker(new GPoint(-85.955658,10.40543),"
Country Day School, Costa Rica
400 mts Sur del Hotel Melia Conchal
<br>Brasilito de Santa Cruz, Guanacaste, -- 1000
Co-ed school, 8-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Country Day School, Costa Rica",'coEd=' + coEd.length); girls[girls.length] = createMarker(new GPoint(-71.287817,42.291943),"
Dana Hall School
45 Dana Road
Wellesley, MA 02482
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Dana Hall School",'girls=' + girls.length); coEd[coEd.length] = createMarker(new GPoint(-72.069609,42.90525),"
Dublin School
18 Lehmann Way, PO Box 522
Dublin, NH 03444
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Dublin School",'coEd=' + coEd.length); girls[girls.length] = createMarker(new GPoint(-72.835373,41.849302),"
The Ethel Walker School
230 Bushy Hill Road
Simsbury, CT 06070
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("The Ethel Walker School",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-118.183414,34.180484),"
Flintridge Sacred Heart Academy
440 St. Katherine Dr.
La Canada-Flintridge, CA 91011
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Flintridge Sacred Heart Academy",'girls=' + girls.length); coEd[coEd.length] = createMarker(new GPoint(-104.715236,38.739758),"
Fountain Valley School of Colorado
6155 Fountain Valley School Road
Colorado Springs, CO 80911
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Fountain Valley School of Colorado",'coEd=' + coEd.length); girls[girls.length] = createMarker(new GPoint(-77.732499,38.9692),"
Foxcroft School
P.O. Box 5555
Middleburg, VA 20118
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Foxcroft School",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-76.758345,39.41163),"
Garrison Forest School
300 Garrison Forest Road
Owings Mills, MD 21117
All-girls school, 8-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Garrison Forest School",'girls=' + girls.length); coEd[coEd.length] = createMarker(new GPoint(-74.895923,40.26181),"
George School
Box 4460
Newtown, PA 18940
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("George School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-70.790939,44.404085),"
Gould Academy
PO Box 860
Bethel, ME 04217
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Gould Academy",'coEd=' + coEd.length); girls[girls.length] = createMarker(new GPoint(-78.252693,40.656276),"
Grier School
P.O. Box 308
Tyrone, PA 16686
All-girls school, 6-12, PG
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Grier School",'girls=' + girls.length); coEd[coEd.length] = createMarker(new GPoint(-155.700776,20.029304),"
Hawaii Preparatory Academy
65-1692 Kohala Mountain Road
Kamuela, HI 96743
Co-ed school, 6-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hawaii Preparatory Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.973239,41.946385),"
Hyde-Woodstock
PO Box 237
Woodstock, CT 06281
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hyde-Woodstock",'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(-70.027169,44.40958),"
Kents Hill School
PO Box 257, 1614 Main St., Rt. 17
Kents Hill, ME 04349
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Kents Hill School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-72.267903,43.535228),"
Kimball Union Academy
PO Box 188 Main Street
Meriden, NH 03770
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Kimball Union Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-73.187752,40.915613),"
The Knox School
541 Long Beach Road
St. James, NY 11780
Co-ed school, 7-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Knox School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-85.970677,44.908976),"
The Leelanau School
One Old Homestead Road
Glen Arbor, MI 49636
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Leelanau School",'coEd=' + coEd.length); girls[girls.length] = createMarker(new GPoint(-76.301985,40.156182),"
Linden Hall
212 East Main Street
Lititz, PA 17543
All-girls school, 6-12, PG
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Linden Hall",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-77.232151,38.964335),"
The Madeira School
8328 Georgetown Pike
McLean, VA 22102-1200
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("The Madeira School",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-72.829305,41.722305),"
Miss Porter's School
60 Main Street
Farmington, CT 06032
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Miss Porter's School",'girls=' + girls.length); boys[boys.length] = createMarker(new GPoint(-91.869114,39.172054),"
Missouri Military Academy
204 Grand Avenue
Mexico, MO 65265
All-boys school, 6-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Missouri Military Academy",'boys=' + boys.length); coEd[coEd.length] = createMarker(new GPoint(-121.767949,36.982081),"
Monte Vista Christian School
2 School Way
Watsonville, CA 95076
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Monte Vista Christian School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-81.674845,28.596677),"
Montverde Academy
17235 Seventh St.
Montverde, FL 34756
Co-ed school, 7-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Montverde Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.652138,43.605723),"
New Hampton School
70 Main Street
New Hampton, NH 03256
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("New Hampton School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-119.255147,34.445829),"
Ojai Valley School
723 El Paseo Road
Ojai, CA 93023
Co-ed school, 3-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Ojai Valley School",'coEd=' + coEd.length); girls[girls.length] = createMarker(new GPoint(-76.627298,39.553815),"
Oldfields School
1500 Glencoe Road
Glencoe, MD 21152
All-girls school, 8-12, PG
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Oldfields School",'girls=' + girls.length); coEd[coEd.length] = createMarker(new GPoint(-112.150548,34.348552),"
The Orme School of Arizona
H.C. 63, Box 3040
Mayer, AZ 86333
Co-ed school, 8-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Orme School of Arizona",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.253192,41.588797),"
Portsmouth Abbey School
285 Cory's Lane
Portsmouth, RI 02871
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Portsmouth Abbey School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.823119,43.436695),"
Proctor Academy
P.O. BOX 500
Andover, NH 03216
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Proctor Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-78.198376,38.922718),"
Randolph-Macon Academy
200 Academy Drive
Front Royal, VA 22630
Co-ed school, 6-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Randolph-Macon Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-79.248669,43.156335),"
Ridley College
2 Ridley Road
St Catharines, --
Co-ed school, Pre-K-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Ridley College",'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); 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); girls[girls.length] = createMarker(new GPoint(-80.237363,36.089291),"
Salem Academy
500 East Salem Avenue
Winston-Salem, NC 27101
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Salem Academy",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-122.585449,38.013182),"
San Domenico School
1500 Butterfield Road
San Anselmo, CA 94960
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("San Domenico School",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-121.871756,36.593685),"
Santa Catalina School
1500 Mark Thomas Drive
Monterey, CA 93940
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Santa Catalina School",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-72.582667,42.612559),"
Stoneleigh-Burnham School
574 Bernardston Road
Greenfield, MA 01301
All-girls school, 7-12, PG
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Stoneleigh-Burnham School",'girls=' + girls.length); coEd[coEd.length] = createMarker(new GPoint(-73.12333,41.602959),"
The Taft School
110 Woodbury Road
Watertown, CT 06795
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Taft School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-119.181405,34.463358),"
The Thacher School
5025 Thacher Road
Ojai, CA 93023
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Thacher School",'coEd=' + coEd.length); boys[boys.length] = createMarker(new GPoint(-75.384208,40.052801),"
Valley Forge Military Academy
1001 Eagle Road
Wayne, PA 19087
All-boys school, 7-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Valley Forge Military Academy",'boys=' + boys.length); coEd[coEd.length] = createMarker(new GPoint(-72.5086,43.141777),"
Vermont Academy
10 Long Walk
Saxtons River, VT 05154
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Vermont Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-111.457461,39.544885),"
Wasatch Academy
120 South 100 West
Mt. Pleasant, UT 84647
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Wasatch Academy",'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); } }