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(-72.603726,42.548158),"
Bement School
94 Old Main Street, PO Box 8
Deerfield, MA 01342
Co-ed school, 3-9
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Bement School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-73.408248,42.115787),"
Berkshire School
245 North Undermountain Road
Sheffield, MA 01257
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Berkshire School",'coEd=' + coEd.length); girls[girls.length] = createMarker(new GPoint(-79.409323,43.689616),"
The Bishop Strachan School
298 Lonsdale Rd.
Toronto, --
All-girls school, 7-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("The Bishop Strachan School",'girls=' + girls.length); coEd[coEd.length] = createMarker(new GPoint(-74.96288,40.983113),"
Blair Academy
2 Park Street
Blairstown, NJ 07825
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Blair Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-123.558769,48.668178),"
Brentwood College School
2735 Mt. Baker Road
Mill Bay, --
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Brentwood College 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(-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); 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(-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); coEd[coEd.length] = createMarker(new GPoint(-79.799334,36.659673),"
Carlisle School
300 Carlisle Road
Axton, VA 24054
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Carlisle School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.234103,42.386016),"
Chapel Hill-Chauncy Hall
785 Beaver Street
Waltham, MA 02452
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Chapel Hill-Chauncy Hall",'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(-72.807511,41.45667),"
Choate Rosemary Hall
333 Christian Street
Wallingford, CT 06492
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Choate Rosemary Hall",'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(-83.245219,42.58384),"
Cranbrook Schools
PO Box 801 39221 Woodward Ave.
Bloomfield Hills, MI 48303
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Cranbrook Schools",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.908354,42.6358),"
Cushing Academy
39 School Street, P.O. Box 8000
Ashburnham, MA 01430
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Cushing Academy",'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.601999,42.54247),"
Deerfield Academy
Office of Admission
Deerfield, MA 01342
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Deerfield Academy",'coEd=' + coEd.length); girls[girls.length] = createMarker(new GPoint(-73.665465,42.711862),"
Emma Willard School
285 Pawling Avenue
Troy, NY 12180
All-girls school, 9-12, PG
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Emma Willard 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); 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); coEd[coEd.length] = createMarker(new GPoint(-71.532888,42.305315),"
Fay School
48 Main Street
Southborough, MA 01772
Co-ed school, 6-9
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Fay School",'coEd=' + coEd.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); 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); 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); 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(-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(-73.310565,41.629329),"
The Gunnery
99 Green Hill Rd.
Washington, CT 06793
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Gunnery",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-70.407614,44.19822),"
Hebron Academy
P.O. Box 309
Hebron, ME 04238
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hebron Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-75.636972,40.244114),"
Hill School
717 East High Street
Pottstown, PA 19464
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hill School",'coEd=' + coEd.length); girls[girls.length] = createMarker(new GPoint(-96.829562,32.907256),"
The Hockaday School
11600 Welch Road
Dallas, TX 75229
All-girls school, 8-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("The Hockaday School",'girls=' + girls.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.440469,41.96427),"
The Hotchkiss School
PO Box 800
Lakeville, CT 06039
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Hotchkiss School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-74.68237,40.337961),"
The Hun School of Princeton
176 Edgerstoune Road
Princeton, NJ 08540
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Hun School of Princeton",'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); 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); 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); } }