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); boys[boys.length] = createMarker(new GPoint(-72.836502,41.781261),"
Avon Old Farms School
500 Old Farms Road
Avon, CT 06001
All-boys school, 9-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Avon Old Farms School",'boys=' + boys.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(-71.271775,42.38644),"
The Cambridge School of Weston
Georgian Road
Weston, MA 02493
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Cambridge School of Weston",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.354201,42.459272),"
Concord Academy
166 Main Street
Concord, MA 01742
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Concord Academy",'coEd=' + coEd.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(-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(-70.976421,44.019861),"
Fryeburg Academy
745 Main Street
Fryeburg, ME 04037
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Fryeburg Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-70.895894,42.750704),"
The Governor's Academy <br> (formerly Governor Dummer Academy)
1 Elm Street
Byfield, MA 01922
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Governor's Academy <br> (formerly Governor Dummer Academy)",'coEd=' + coEd.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.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(-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(-80.694328,40.075265),"
The Linsly School
60 Knox Lane
Wheeling, WV 26003
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Linsly School",'coEd=' + coEd.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(-73.254221,42.447408),"
Miss Hall's School
492 Holmes Road, PO Box 1166
Pittsfield, MA 01201
All-girls school, 9-12, PG
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Miss Hall's School",'girls=' + girls.length); coEd[coEd.length] = createMarker(new GPoint(-72.488606,42.673004),"
Northfield Mount Hermon School
One Lamplighter Way
Mount Hermon, MA 01354
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Northfield Mount Hermon School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-73.925175,41.658549),"
Oakwood Friends School
22 Spackenkill Road
Poughkeepsie, NY 12603
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Oakwood Friends School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-74.539664,40.276315),"
Peddie School
P.O. Box A
Hightstown, NJ 08520
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Peddie School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-75.50335,40.398676),"
Perkiomen School
200 Seminary Avenue
Pennsburg, PA 18073
Co-ed school, 7-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Perkiomen School",'coEd=' + coEd.length); girls[girls.length] = createMarker(new GPoint(-74.721791,40.719238),"
Purnell School
51 Pottersville Road, P.O. Box 500
Pottersville, NJ 07979
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Purnell School",'girls=' + girls.length); boys[boys.length] = createMarker(new GPoint(-83.832271,34.336459),"
Riverside Military Academy
2001 Riverside Drive
Gainesville, GA 30501
All-boys school, 7-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Riverside Military Academy",'boys=' + boys.length); boys[boys.length] = createMarker(new GPoint(-79.471016,44.013292),"
St. Andrew's College
15800 Yonge Street
Aurora, ON, -- L4G 3H7
All-boys school, 6-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("St. Andrew's College",'boys=' + boys.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(-72.015709,44.418512),"
St. Johnsbury Academy
1000 Main Street, PO Box 906
St. Johnsbury, VT 05819
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Johnsbury Academy",'coEd=' + coEd.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(-74.988413,40.381852),"
Solebury School
6832 Phillips Mill Road
New Hope, PA 18938
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Solebury School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-121.94939,36.582754),"
Stevenson School
3152 Forest Lake Road
Pebble Beach, CA 93953
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Stevenson 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(-75.897931,41.263129),"
Wyoming Seminary Upper School
201 North Sprague Avenue
Kingston, PA 18704
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Wyoming Seminary Upper 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); } }