function addStateMarkers() { mySelect = document.getElementById('selection'); girls[girls.length] = createMarker(new GPoint(-72.084535,41.616825),"
Academy of the Holy Family
54 W. Main St. Box 691
Baltic, CT 06330
All-girls school, 9-12, PG
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Academy of the Holy Family",'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(-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(-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(-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.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(-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(-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(-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(-72.644174,41.85076),"
The Loomis Chaffee School
Office of Admission
Windsor, CT 06095
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Loomis Chaffee School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.371622,42.493361),"
Middlesex School
1400 Lowell Road
Concord, MA 01742
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Middlesex School",'coEd=' + coEd.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(-81.150569,39.988129),"
Olney Friends School
61830 Sandy Ridge Road
Barnesville, OH 43713
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Olney Friends School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.324712,41.748702),"
St. Andrew's School - RI
63 Federal Road
Barrington, RI 02806
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Andrew's School - RI",'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); 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(-94.362095,45.594855),"
Saint John's Preparatory School
1857 Watertower Road, Box 4000
Collegeville, MN 56321
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Saint John's Preparatory School",'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(-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); coEd[coEd.length] = createMarker(new GPoint(-0.536077,51.406358),"
TASIS The American School in England
Coldharbour Lane
Thorpe, Surrey TW20 8TE, --
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("TASIS The American School in England",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-90.396519,38.539627),"
Thomas Jefferson School
4100 South Lindbergh Blvd.
Saint Louis, MO 63127
Co-ed school, 7-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Thomas Jefferson 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(-72.798108,41.885944),"
Westminster School
995 Hopmeadow Street
Simsbury, CT 06070
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Westminster School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.751681,44.278798),"
The White Mountain School
371 West Farm Road
Bethlehem, NH 03574
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The White Mountain School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-72.036714,42.67519),"
The Winchendon School
172 Ash Street
Winchendon, MA 01475
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Winchendon 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); } }