function addStateMarkers() { mySelect = document.getElementById('selection'); 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); 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.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.213291,42.704628),"
Buxton School
291 South Street
Williamstown, MA 01267
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Buxton 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(-119.5033,34.389796),"
Cate School
1960 Cate Mesa Road, P.O. Box 5005
Carpinteria, CA 93014
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Cate 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); coEd[coEd.length] = createMarker(new GPoint(-72.901089,41.500662),"
Cheshire Academy
10 Main Street
Cheshire, CT 06410
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Cheshire Academy",'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(-73.38085,42.452813),"
Darrow School
110 Darrow Road
New Lebanon, NY 12125
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Darrow School",'coEd=' + coEd.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(-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(-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(-86.771296,33.342669),"
Indian Springs School
190 Woodward Drive
Indian Springs, AL 35124
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Indian Springs School",'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(-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); coEd[coEd.length] = createMarker(new GPoint(-73.455403,41.782029),"
The Marvelwood School
476 Skiff Mountain Road
Kent, CT 06757
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Marvelwood School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-73.871609,41.012694),"
The Masters School
49 Clinton Avenue
Dobbs Ferry, NY 10522
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Masters School",'coEd=' + coEd.length); boys[boys.length] = createMarker(new GPoint(-85.273401,35.030406),"
McCallie School
Missionary Ridge 500 Dodds Avenue
Chattanooga, TN 37404
All-boys school, 9-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("McCallie School",'boys=' + boys.length); coEd[coEd.length] = createMarker(new GPoint(-71.07054,42.25648),"
Milton Academy
170 Centre Street
Milton, MA 02186
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Milton Academy",'coEd=' + coEd.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); 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(-71.134868,42.648486),"
Phillips Academy Andover
180 Main Street
Andover, MA 01810
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Phillips Academy Andover",'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(-72.540423,42.97163),"
The Putney School
418 Houghton Brook Road
Putney, VT 05346
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Putney School",'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(-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); coEd[coEd.length] = createMarker(new GPoint(-120.22290039,39.18030167),"
Squaw Valley Academy
235 Squaw Valley Road/P.O. Box 2667
Olympic Valley, CA 96146
Co-ed school, 6-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Squaw Valley Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-74.010774,41.423084),"
The Storm King School
314 Mountain Road
Cornwall on Hudson, NY 12520
Co-ed school, 8-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Storm King School",'coEd=' + coEd.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); coEd[coEd.length] = createMarker(new GPoint(-86.389888,35.610794),"
The Webb School
319 Webb Road East, P.O. 488
Bell Buckle, TN 37020
Co-ed school, 7-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Webb 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); } }