function addStateMarkers() { mySelect = document.getElementById('selection'); 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); boys[boys.length] = createMarker(new GPoint(-72.036496,43.676448),"
Cardigan Mountain School
62 Alumni Drive
Canaan, NH 03741
All-boys school, 6-9
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Cardigan Mountain School",'boys=' + boys.length); coEd[coEd.length] = createMarker(new GPoint(-107.228913,39.411968),"
Colorado Rocky Mountain School
1493 County Road 106
Carbondale, CO 81623
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Colorado Rocky Mountain School",'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); 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(-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); coEd[coEd.length] = createMarker(new GPoint(-73.193369,41.746775),"
The Forman School
12 Norfolk Road, P.O. Box 80
Litchfield, CT 06759
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Forman 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); 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(-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); boys[boys.length] = createMarker(new GPoint(-71.604902,42.350966),"
Hillside School
404 Robin Hill Road
Marlborough, MA 01752
All-boys school, 5-9
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Hillside School",'boys=' + boys.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.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(-71.571599,42.608505),"
Lawrence Academy
Powderhouse Road, P.O. Box 992
Groton, MA 01450
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Lawrence Academy",'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(7.008235,46.341739),"
Leysin American School in Switzerland (LAS)
Av. Rollier
1854 Leysin, --
Co-ed school, 8-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Leysin American School in Switzerland (LAS)",'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(-122.626962,40.811028),"
Nawa Academy
17351 Trinity Mountain Road
French Gulch, CA 96033
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Nawa 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(-73.983217,44.27901),"
Northwood School
P.O. Box 1070, 92 Northwood Road
Lake Placid, NY 12946
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Northwood School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-72.057533,44.04341),"
Oliverian School
Mount Moosilauke Highway - Route 25
Haverhill, NH 03765
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Oliverian 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.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(-79.636436,45.252399),"
Rosseau Lake College
1967 Bright Street
Rosseau, --
Co-ed school, 7-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Rosseau Lake College",'coEd=' + coEd.length); boys[boys.length] = createMarker(new GPoint(-73.392929,42.000938),"
Salisbury School
251 Canaan Road
Salisbury, CT 06068
All-boys school, 9-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Salisbury School",'boys=' + boys.length); coEd[coEd.length] = createMarker(new GPoint(-74.939054,45.6502),"
Sedbergh School
810 Cote Azelie RR1
Montebello, Quebec, --
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Sedbergh School",'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(-72.649803,41.985481),"
Suffield Academy
Suffield Academy
Suffield, CT 06078
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Suffield Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.588921,43.444297),"
Tilton School
30 School Street
Tilton, NH 03276
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Tilton School",'coEd=' + coEd.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); coEd[coEd.length] = createMarker(new GPoint(-72.431297,42.125207),"
Wilbraham & Monson Academy
423 Main Street
Wilbraham, MA 01095
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Wilbraham & Monson 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); 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); } }