function addStateMarkers() { mySelect = document.getElementById('selection'); coEd[coEd.length] = createMarker(new GPoint(-121.951613,37.833705),"
The Athenian School
2100 Mt. Diablo Scenic Blvd.
Danville, CA 94506
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Athenian 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); coEd[coEd.length] = createMarker(new GPoint(-84.302559,33.983755),"
Brandon Hall School
1701 Brandon Hall Drive
Atlanta, GA 30350
Co-ed school, 4-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Brandon Hall 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); boys[boys.length] = createMarker(new GPoint(-75.594869,40.031928),"
CFS, The School at Church Farm
1001 East Lincoln Highway
Exton, PA 19341
All-boys school, 7-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("CFS, The School at Church Farm",'boys=' + boys.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); boys[boys.length] = createMarker(new GPoint(-76.546749,37.609504),"
Christchurch School
49 Seahorse Lane
Christchurch, VA 23031
All-boys school, 9-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Christchurch School",'boys=' + boys.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); boys[boys.length] = createMarker(new GPoint(-79.400065,36.832311),"
Hargrave Military Academy
200 Military Drive
Chatham, VA 24531
All-boys school, 7-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Hargrave Military Academy",'boys=' + boys.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(-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); 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); 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.616262,41.845257),"
Millbrook School
131 Millbrook School Road
Millbrook, NY 12545
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Millbrook School",'coEd=' + coEd.length); boys[boys.length] = createMarker(new GPoint(-91.869114,39.172054),"
Missouri Military Academy
204 Grand Avenue
Mexico, MO 65265
All-boys school, 6-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Missouri Military Academy",'boys=' + boys.length); coEd[coEd.length] = createMarker(new GPoint(-74.793636,40.327694),"
The Pennington School
112 W. Delaware Avenue
Pennington, NJ 08534
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Pennington School",'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(-83.390888,34.961812),"
Rabun Gap-Nacoochee School
339 Nacoochee Drive
Rabun Gap, GA 30568
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Rabun Gap-Nacoochee School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-78.198376,38.922718),"
Randolph-Macon Academy
200 Academy Drive
Front Royal, VA 22630
Co-ed school, 6-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Randolph-Macon Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-80.147156,26.385019),"
Saint Andrew's School
3900 Jog Road
Boca Raton, FL 33434
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Saint Andrew's 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); 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.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(-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(-88.828846,43.456381),"
Wayland Academy
101 North University
Beaver Dam, WI 53916
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Wayland 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(-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); coEd[coEd.length] = createMarker(new GPoint(-122.215246,37.37478),"
Woodside Priory School (The Priory)
302 Portola Road
Portola Valley, CA 94028
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Woodside Priory School (The Priory)",'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); } }